2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ld 2.38.50.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev
/null
; then :
213 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
218 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir
=.
225 for as_base
in sh bash ksh sh5
; do
226 # Try only shells that exist, to save several forks.
227 as_shell
=$as_dir/$as_base
228 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
230 CONFIG_SHELL
=$as_shell as_have_required
=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
239 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
241 CONFIG_SHELL
=$SHELL as_have_required
=yes
246 if test "x$CONFIG_SHELL" != x
; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
256 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x
$as_have_required = xno
; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x
${ZSH_VERSION+set} = xset
; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL
=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE
= GREP_OPTIONS
=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir
=.
/$as_dir;;
329 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
333 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs
="'$as_qdir' $as_dirs"
337 as_dir
=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
363 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p
()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
406 as_val
=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status
=$1; test $as_status -eq 0 && as_status
=1
420 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit
$as_status
427 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
434 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
446 as_me
=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits
='0123456789'
470 as_cr_alnum
=$as_cr_Letters$as_cr_digits
473 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
474 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x
"$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec
=no
; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C
= ECHO_N
= ECHO_T
=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
521 rm -f conf$$ conf$$.exe conf$$.
file
522 if test -d conf$$.dir
; then
523 rm -f conf$$.dir
/conf$$.
file
526 mkdir conf$$.dir
2>/dev
/null
528 if (echo >conf$$.
file) 2>/dev
/null
; then
529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
537 elif ln conf$$.
file conf$$
2>/dev
/null
; then
545 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
546 rmdir conf$$.dir
2>/dev
/null
548 if mkdir
-p .
2>/dev
/null
; then
549 as_mkdir_p
='mkdir -p "$as_dir"'
551 test -d .
/-p && rmdir .
/-p
556 as_executable_p
=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL
=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix
=/usr
/local
580 ac_config_libobj_dir
=.
587 # Identity of this package.
590 PACKAGE_VERSION
='2.38.50'
591 PACKAGE_STRING
='ld 2.38.50'
595 ac_unique_file
="ldmain.c"
596 # Factoring default headers for most tests.
597 ac_includes_default
="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
633 ac_subst_vars
='am__EXEEXT_FALSE
645 elf_plt_unwind_list_options
646 elf_shlib_list_options
678 WARN_CFLAGS_FOR_BUILD
688 enable_initfini_array
691 TARGET_SYSTEM_ROOT_DEFINE
694 ENABLE_BFD_64_BIT_FALSE
695 ENABLE_BFD_64_BIT_TRUE
741 MAINTAINER_MODE_FALSE
755 INSTALL_STRIP_PROGRAM
809 program_transform_name
822 enable_option_checking
824 enable_maintainer_mode
825 enable_dependency_tracking
841 enable_compressed_debug_sections
846 enable_warn_execstack
847 enable_warn_rwx_segments
848 enable_default_execstack
849 enable_error_handling_script
850 enable_default_hash_style
851 enable_initfini_array
855 enable_build_warnings
859 ac_precious_vars
='build_alias
881 # Initialize some variables set by options.
883 ac_init_version
=false
884 ac_unrecognized_opts
=
886 # The variables have the same names as the options, with
887 # dashes changed to underlines.
895 program_transform_name
=s
,x
,x
,
903 # Installation directory options.
904 # These are left unexpanded so users can "make install exec_prefix=/foo"
905 # and all the variables that are supposed to be based on exec_prefix
906 # by default will actually change.
907 # Use braces instead of parens because sh, perl, etc. also accept them.
908 # (The list follows the same order as the GNU Coding Standards.)
909 bindir
='${exec_prefix}/bin'
910 sbindir
='${exec_prefix}/sbin'
911 libexecdir
='${exec_prefix}/libexec'
912 datarootdir
='${prefix}/share'
913 datadir
='${datarootdir}'
914 sysconfdir
='${prefix}/etc'
915 sharedstatedir
='${prefix}/com'
916 localstatedir
='${prefix}/var'
917 includedir
='${prefix}/include'
918 oldincludedir
='/usr/include'
919 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
920 infodir
='${datarootdir}/info'
925 libdir
='${exec_prefix}/lib'
926 localedir
='${datarootdir}/locale'
927 mandir
='${datarootdir}/man'
933 # If the previous option needs an argument, assign it.
934 if test -n "$ac_prev"; then
935 eval $ac_prev=\
$ac_option
941 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
946 # Accept the important Cygnus configure options, so we can diagnose typos.
948 case $ac_dashdash$ac_option in
952 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
954 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
957 -build |
--build |
--buil |
--bui |
--bu)
958 ac_prev
=build_alias
;;
959 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
960 build_alias
=$ac_optarg ;;
962 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
963 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
964 ac_prev
=cache_file
;;
965 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
966 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
967 cache_file
=$ac_optarg ;;
970 cache_file
=config.cache
;;
972 -datadir |
--datadir |
--datadi |
--datad)
974 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
975 datadir
=$ac_optarg ;;
977 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
978 |
--dataroo |
--dataro |
--datar)
979 ac_prev
=datarootdir
;;
980 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
981 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
982 datarootdir
=$ac_optarg ;;
984 -disable-* |
--disable-*)
985 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
988 as_fn_error $?
"invalid feature name: $ac_useropt"
989 ac_useropt_orig
=$ac_useropt
990 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
995 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
996 ac_unrecognized_sep
=', ';;
998 eval enable_
$ac_useropt=no
;;
1000 -docdir |
--docdir |
--docdi |
--doc |
--do)
1002 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1003 docdir
=$ac_optarg ;;
1005 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1007 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1008 dvidir
=$ac_optarg ;;
1010 -enable-* |
--enable-*)
1011 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1014 as_fn_error $?
"invalid feature name: $ac_useropt"
1015 ac_useropt_orig
=$ac_useropt
1016 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1019 "enable_
$ac_useropt"
1021 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1022 ac_unrecognized_sep
=', ';;
1024 eval enable_
$ac_useropt=\
$ac_optarg ;;
1026 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1027 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1028 |
--exec |
--exe |
--ex)
1029 ac_prev
=exec_prefix
;;
1030 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1031 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1032 |
--exec=* |
--exe=* |
--ex=*)
1033 exec_prefix
=$ac_optarg ;;
1035 -gas |
--gas |
--ga |
--g)
1036 # Obsolete; use --with-gas.
1039 -help |
--help |
--hel |
--he |
-h)
1040 ac_init_help
=long
;;
1041 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1042 ac_init_help
=recursive
;;
1043 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1044 ac_init_help
=short
;;
1046 -host |
--host |
--hos |
--ho)
1047 ac_prev
=host_alias
;;
1048 -host=* |
--host=* |
--hos=* |
--ho=*)
1049 host_alias
=$ac_optarg ;;
1051 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1053 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1055 htmldir
=$ac_optarg ;;
1057 -includedir |
--includedir |
--includedi |
--included |
--include \
1058 |
--includ |
--inclu |
--incl |
--inc)
1059 ac_prev
=includedir
;;
1060 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1061 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1062 includedir
=$ac_optarg ;;
1064 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1066 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1067 infodir
=$ac_optarg ;;
1069 -libdir |
--libdir |
--libdi |
--libd)
1071 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1072 libdir
=$ac_optarg ;;
1074 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1075 |
--libexe |
--libex |
--libe)
1076 ac_prev
=libexecdir
;;
1077 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1078 |
--libexe=* |
--libex=* |
--libe=*)
1079 libexecdir
=$ac_optarg ;;
1081 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1082 ac_prev
=localedir
;;
1083 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1084 localedir
=$ac_optarg ;;
1086 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1087 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1088 ac_prev
=localstatedir
;;
1089 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1090 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1091 localstatedir
=$ac_optarg ;;
1093 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1095 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1096 mandir
=$ac_optarg ;;
1098 -nfp |
--nfp |
--nf)
1099 # Obsolete; use --without-fp.
1102 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1103 |
--no-cr |
--no-c |
-n)
1106 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1107 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1110 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1111 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1112 |
--oldin |
--oldi |
--old |
--ol |
--o)
1113 ac_prev
=oldincludedir
;;
1114 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1115 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1116 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1117 oldincludedir
=$ac_optarg ;;
1119 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1121 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1122 prefix
=$ac_optarg ;;
1124 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1125 |
--program-pre |
--program-pr |
--program-p)
1126 ac_prev
=program_prefix
;;
1127 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1128 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1129 program_prefix
=$ac_optarg ;;
1131 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1132 |
--program-suf |
--program-su |
--program-s)
1133 ac_prev
=program_suffix
;;
1134 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1135 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1136 program_suffix
=$ac_optarg ;;
1138 -program-transform-name |
--program-transform-name \
1139 |
--program-transform-nam |
--program-transform-na \
1140 |
--program-transform-n |
--program-transform- \
1141 |
--program-transform |
--program-transfor \
1142 |
--program-transfo |
--program-transf \
1143 |
--program-trans |
--program-tran \
1144 |
--progr-tra |
--program-tr |
--program-t)
1145 ac_prev
=program_transform_name
;;
1146 -program-transform-name=* |
--program-transform-name=* \
1147 |
--program-transform-nam=* |
--program-transform-na=* \
1148 |
--program-transform-n=* |
--program-transform-=* \
1149 |
--program-transform=* |
--program-transfor=* \
1150 |
--program-transfo=* |
--program-transf=* \
1151 |
--program-trans=* |
--program-tran=* \
1152 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1153 program_transform_name
=$ac_optarg ;;
1155 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1157 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1158 pdfdir
=$ac_optarg ;;
1160 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1162 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1165 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1166 |
-silent |
--silent |
--silen |
--sile |
--sil)
1169 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1171 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1173 sbindir
=$ac_optarg ;;
1175 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1176 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1177 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1179 ac_prev
=sharedstatedir
;;
1180 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1181 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1182 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1184 sharedstatedir
=$ac_optarg ;;
1186 -site |
--site |
--sit)
1188 -site=* |
--site=* |
--sit=*)
1191 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1193 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1194 srcdir
=$ac_optarg ;;
1196 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1197 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1198 ac_prev
=sysconfdir
;;
1199 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1200 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1201 sysconfdir
=$ac_optarg ;;
1203 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1204 ac_prev
=target_alias
;;
1205 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1206 target_alias
=$ac_optarg ;;
1208 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1211 -version |
--version |
--versio |
--versi |
--vers |
-V)
1212 ac_init_version
=: ;;
1215 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1218 as_fn_error $?
"invalid package name: $ac_useropt"
1219 ac_useropt_orig
=$ac_useropt
1220 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1225 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1226 ac_unrecognized_sep
=', ';;
1228 eval with_
$ac_useropt=\
$ac_optarg ;;
1230 -without-* |
--without-*)
1231 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1234 as_fn_error $?
"invalid package name: $ac_useropt"
1235 ac_useropt_orig
=$ac_useropt
1236 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237 case $ac_user_opts in
1241 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1242 ac_unrecognized_sep
=', ';;
1244 eval with_
$ac_useropt=no
;;
1247 # Obsolete; use --with-x.
1250 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1251 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1252 ac_prev
=x_includes
;;
1253 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1254 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1255 x_includes
=$ac_optarg ;;
1257 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1258 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1259 ac_prev
=x_libraries
;;
1260 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1261 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1262 x_libraries
=$ac_optarg ;;
1264 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1265 Try \`$0 --help' for more information"
1269 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1270 # Reject names that are not valid shell variable names.
1271 case $ac_envvar in #(
1272 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1273 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1275 eval $ac_envvar=\
$ac_optarg
1276 export $ac_envvar ;;
1279 # FIXME: should be removed in autoconf 3.0.
1280 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1281 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1282 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1283 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1289 if test -n "$ac_prev"; then
1290 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1291 as_fn_error $?
"missing argument to $ac_option"
1294 if test -n "$ac_unrecognized_opts"; then
1295 case $enable_option_checking in
1297 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1298 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1302 # Check all directory arguments for consistency.
1303 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1304 datadir sysconfdir sharedstatedir localstatedir includedir \
1305 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1306 libdir localedir mandir
1308 eval ac_val
=\$
$ac_var
1309 # Remove trailing slashes.
1312 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1313 eval $ac_var=\
$ac_val;;
1315 # Be sure to have absolute directory names.
1317 [\\/$
]* | ?
:[\\/]* ) continue;;
1318 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1320 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1323 # There might be people who depend on the old broken behavior: `$host'
1324 # used to hold the argument of --host etc.
1325 # FIXME: To remove some day.
1328 target
=$target_alias
1330 # FIXME: To remove some day.
1331 if test "x$host_alias" != x
; then
1332 if test "x$build_alias" = x
; then
1333 cross_compiling
=maybe
1334 elif test "x$build_alias" != "x$host_alias"; then
1340 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1342 test "$silent" = yes && exec 6>/dev
/null
1345 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1346 ac_ls_di
=`ls -di .` &&
1347 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1348 as_fn_error $?
"working directory cannot be determined"
1349 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1350 as_fn_error $?
"pwd does not report name of working directory"
1353 # Find the source files, if location was not specified.
1354 if test -z "$srcdir"; then
1355 ac_srcdir_defaulted
=yes
1356 # Try the directory containing this script, then the parent directory.
1357 ac_confdir
=`$as_dirname -- "$as_myself" ||
1358 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359 X"$as_myself" : 'X\(//\)[^/]' \| \
1360 X"$as_myself" : 'X\(//\)$' \| \
1361 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1362 $as_echo X"$as_myself" |
1363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1385 ac_srcdir_defaulted
=no
1387 if test ! -r "$srcdir/$ac_unique_file"; then
1388 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1389 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1391 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1393 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1395 # When building in place, set srcdir=.
1396 if test "$ac_abs_confdir" = "$ac_pwd"; then
1399 # Remove unnecessary trailing slashes from srcdir.
1400 # Double slashes in file names in object file debugging info
1401 # mess up M-x gdb in Emacs.
1403 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1405 for ac_var
in $ac_precious_vars; do
1406 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1407 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1408 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1409 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1413 # Report the --help message.
1415 if test "$ac_init_help" = "long"; then
1416 # Omit some internal or obsolete options to make the list less imposing.
1417 # This message is too long to be a string in the A/UX 3.1 sh.
1419 \`configure' configures ld 2.38.50 to adapt to many kinds of systems.
1421 Usage: $0 [OPTION]... [VAR=VALUE]...
1423 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1424 VAR=VALUE. See below for descriptions of some of the useful variables.
1426 Defaults for the options are specified in brackets.
1429 -h, --help display this help and exit
1430 --help=short display options specific to this package
1431 --help=recursive display the short help of all the included packages
1432 -V, --version display version information and exit
1433 -q, --quiet, --silent do not print \`checking ...' messages
1434 --cache-file=FILE cache test results in FILE [disabled]
1435 -C, --config-cache alias for \`--cache-file=config.cache'
1436 -n, --no-create do not create output files
1437 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1439 Installation directories:
1440 --prefix=PREFIX install architecture-independent files in PREFIX
1441 [$ac_default_prefix]
1442 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1445 By default, \`make install' will install all the files in
1446 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1447 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1448 for instance \`--prefix=\$HOME'.
1450 For better control, use the options below.
1452 Fine tuning of the installation directories:
1453 --bindir=DIR user executables [EPREFIX/bin]
1454 --sbindir=DIR system admin executables [EPREFIX/sbin]
1455 --libexecdir=DIR program executables [EPREFIX/libexec]
1456 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1457 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1458 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1459 --libdir=DIR object code libraries [EPREFIX/lib]
1460 --includedir=DIR C header files [PREFIX/include]
1461 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1462 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1463 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1464 --infodir=DIR info documentation [DATAROOTDIR/info]
1465 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1466 --mandir=DIR man documentation [DATAROOTDIR/man]
1467 --docdir=DIR documentation root [DATAROOTDIR/doc/ld]
1468 --htmldir=DIR html documentation [DOCDIR]
1469 --dvidir=DIR dvi documentation [DOCDIR]
1470 --pdfdir=DIR pdf documentation [DOCDIR]
1471 --psdir=DIR ps documentation [DOCDIR]
1477 --program-prefix=PREFIX prepend PREFIX to installed program names
1478 --program-suffix=SUFFIX append SUFFIX to installed program names
1479 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1482 --build=BUILD configure
for building on BUILD
[guessed
]
1483 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1484 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1488 if test -n "$ac_init_help"; then
1489 case $ac_init_help in
1490 short | recursive
) echo "Configuration of ld 2.38.50:";;
1495 --disable-option-checking ignore unrecognized
--enable/--with options
1496 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1497 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1498 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1499 --disable-silent-rules verbose build output
(undo
: "make V=0")
1500 --enable-maintainer-mode
1501 enable make rules and dependencies not useful
(and
1502 sometimes confusing
) to the casual installer
1503 --enable-dependency-tracking
1504 do not reject slow dependency extractors
1505 --disable-dependency-tracking
1506 speeds up one-time build
1507 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1508 --enable-static[=PKGS
] build static libraries
[default
=yes]
1509 --enable-fast-install[=PKGS
]
1510 optimize
for fast installation
[default
=yes]
1511 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1512 --enable-plugins Enable support
for plugins
1513 --disable-largefile omit support
for large files
1514 --enable-checking enable run-time checks
1515 --enable-targets alternative target configurations
1516 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1517 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1518 --enable-got=<type> GOT handling scheme
(target
, single
, negative
,
1520 --enable-compressed-debug-sections={all
,ld
,none
}
1521 compress debug sections by default
]
1522 --enable-new-dtags set DT_RUNPATH instead of DT_RPATH by default
]
1523 --enable-relro enable -z relro
in ELF linker by default
1524 --enable-textrel-check=[yes|no|warning|error
]
1525 enable DT_TEXTREL check
in ELF linker
1526 --enable-separate-code enable -z separate-code
in ELF linker by default
1527 --enable-warn-execstack enable warnings when creating an executable stack
1528 --enable-warn-rwx-segments
1529 enable warnings when creating segements with RWX
1531 --enable-default-execstack
1532 create an executable stack
if an input
file is
1533 missing a .note.GNU-stack section
1534 --enable-error-handling-script
1535 enable
/disable support
for the
1536 --error-handling-script option
1537 --enable-default-hash-style={sysv
,gnu
,both
}
1538 use this default
hash style
1539 --disable-initfini-array do not use .init_array
/.fini_array sections
1540 --enable-libctf Handle .ctf type-info sections
[default
=yes]
1541 --enable-jansson enable jansson
[default
=no
]
1542 --enable-werror treat compile warnings as errors
1543 --enable-build-warnings enable build-time compiler warnings
1544 --disable-nls do not use Native Language Support
1547 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1548 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1549 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1551 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1552 --with-lib-path=dir1
:dir2...
set default LIB_PATH
1553 --with-sysroot=DIR Search
for usr
/lib et al within DIR.
1554 --with-system-zlib use installed libz
1556 Some influential environment variables
:
1557 CC C compiler
command
1558 CFLAGS C compiler flags
1559 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1560 nonstandard directory
<lib dir
>
1561 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1562 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1563 you have headers
in a nonstandard directory
<include dir
>
1564 CXX C
++ compiler
command
1565 CXXFLAGS C
++ compiler flags
1567 CXXCPP C
++ preprocessor
1568 PKG_CONFIG path to pkg-config utility
1570 directories to add to pkg-config
's search path
1572 path overriding pkg-config's built-in search path
1574 C compiler flags
for JANSSON
, overriding pkg-config
1576 linker flags
for JANSSON
, overriding pkg-config
1577 YACC The
`Yet Another Compiler Compiler' implementation to use.
1578 Defaults to the first program found out of: `bison
-y', `byacc',
1580 YFLAGS The list of arguments that will be passed by default to $YACC.
1581 This script will default YFLAGS to the empty string to avoid a
1582 default value of `-d' given by some make applications.
1584 Use these variables to override the choices made by `configure' or to
help
1585 it to
find libraries and programs with nonstandard names
/locations.
1587 Report bugs to the package provider.
1592 if test "$ac_init_help" = "recursive"; then
1593 # If there are subdirs, report their specific --help.
1594 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1595 test -d "$ac_dir" ||
1596 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1601 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1603 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1604 # A ".." for each directory in $ac_dir_suffix.
1605 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1606 case $ac_top_builddir_sub in
1607 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1608 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1611 ac_abs_top_builddir
=$ac_pwd
1612 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1613 # for backward compatibility:
1614 ac_top_builddir
=$ac_top_build_prefix
1617 .
) # We are building in place.
1619 ac_top_srcdir
=$ac_top_builddir_sub
1620 ac_abs_top_srcdir
=$ac_pwd ;;
1621 [\\/]* | ?
:[\\/]* ) # Absolute name.
1622 ac_srcdir
=$srcdir$ac_dir_suffix;
1623 ac_top_srcdir
=$srcdir
1624 ac_abs_top_srcdir
=$srcdir ;;
1626 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1627 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1628 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1630 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1632 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1633 # Check for guested configure.
1634 if test -f "$ac_srcdir/configure.gnu"; then
1636 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1637 elif test -f "$ac_srcdir/configure"; then
1639 $SHELL "$ac_srcdir/configure" --help=recursive
1641 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1643 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1647 test -n "$ac_init_help" && exit $ac_status
1648 if $ac_init_version; then
1650 ld configure
2.38.50
1651 generated by GNU Autoconf
2.69
1653 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1654 This configure
script is free software
; the Free Software Foundation
1655 gives unlimited permission to copy
, distribute and modify it.
1660 ## ------------------------ ##
1661 ## Autoconf initialization. ##
1662 ## ------------------------ ##
1664 # ac_fn_c_try_compile LINENO
1665 # --------------------------
1666 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_c_try_compile
()
1669 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1670 rm -f conftest.
$ac_objext
1671 if { { ac_try
="$ac_compile"
1673 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_compile") 2>conftest.err
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } && {
1687 test -z "$ac_c_werror_flag" ||
1688 test ! -s conftest.err
1689 } && test -s conftest.$ac_objext; then :
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 as_fn_set_status $ac_retval
1700 } # ac_fn_c_try_compile
1702 # ac_fn_cxx_try_compile LINENO
1703 # ----------------------------
1704 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1705 ac_fn_cxx_try_compile ()
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 rm -f conftest.$ac_objext
1709 if { { ac_try="$ac_compile"
1711 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1712 *) ac_try_echo
=$ac_try;;
1714 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_compile") 2>conftest.err
1718 if test -s conftest.err
; then
1719 grep -v '^ *+' conftest.err
>conftest.er1
1720 cat conftest.er1
>&5
1721 mv -f conftest.er1 conftest.err
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && {
1725 test -z "$ac_cxx_werror_flag" ||
1726 test ! -s conftest.err
1727 } && test -s conftest.
$ac_objext; then :
1730 $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.
$ac_ext >&5
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status
$ac_retval
1738 } # ac_fn_cxx_try_compile
1740 # ac_fn_c_try_cpp LINENO
1741 # ----------------------
1742 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1745 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1746 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1748 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1755 if test -s conftest.err; then
1756 grep -v '^ *+' conftest.err >conftest.er1
1757 cat conftest.er1 >&5
1758 mv -f conftest.er1 conftest.err
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; } > conftest.i && {
1762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1763 test ! -s conftest.err
1767 $as_echo "$as_me: failed program was:" >&5
1768 sed 's/^/| /' conftest.$ac_ext >&5
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
1777 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1778 # -------------------------------------------------------
1779 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1780 # the include files in INCLUDES and setting the cache variable VAR
1782 ac_fn_c_check_header_mongrel ()
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 if eval \${$3+:} false; then :
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787 $as_echo_n "checking for $2... " >&6; }
1788 if eval \${$3+:} false; then :
1789 $as_echo_n "(cached) " >&6
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793 $as_echo "$ac_res" >&6; }
1795 # Is the header compilable?
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1797 $as_echo_n "checking $2 usability... " >&6; }
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h. */
1803 if ac_fn_c_try_compile "$LINENO"; then :
1804 ac_header_compiler=yes
1806 ac_header_compiler=no
1808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1810 $as_echo "$ac_header_compiler" >&6; }
1812 # Is the header present?
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1814 $as_echo_n "checking $2 presence... " >&6; }
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1819 if ac_fn_c_try_cpp "$LINENO"; then :
1820 ac_header_preproc=yes
1822 ac_header_preproc=no
1824 rm -f conftest.err conftest.i conftest.$ac_ext
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1826 $as_echo "$ac_header_preproc" >&6; }
1828 # So? What about this header?
1829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1832 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1834 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1838 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1840 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1842 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1844 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1846 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850 $as_echo_n "checking for $2... " >&6; }
1851 if eval \${$3+:} false; then :
1852 $as_echo_n "(cached) " >&6
1854 eval "$3=\$ac_header_compiler"
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862 } # ac_fn_c_check_header_mongrel
1864 # ac_fn_c_try_run LINENO
1865 # ----------------------
1866 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1867 # that executables *can* be run.
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 if { { ac_try="$ac_link"
1873 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1874 *) ac_try_echo
=$ac_try;;
1876 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877 $as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_link") 2>&5
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1882 { { case "(($ac_try" in
1883 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_try") 2>&5
1890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891 test $ac_status = 0; }; }; then :
1894 $as_echo "$as_me: program exited with status $ac_status" >&5
1895 $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1898 ac_retval=$ac_status
1900 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
1906 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1907 # -------------------------------------------------------
1908 # Tests whether HEADER exists and can be compiled using the include files in
1909 # INCLUDES, setting the cache variable VAR accordingly.
1910 ac_fn_c_check_header_compile ()
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914 $as_echo_n "checking for $2... " >&6; }
1915 if eval \${$3+:} false; then :
1916 $as_echo_n "(cached) " >&6
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1923 if ac_fn_c_try_compile "$LINENO"; then :
1928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 $as_echo "$ac_res" >&6; }
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 } # ac_fn_c_check_header_compile
1937 # ac_fn_c_try_link LINENO
1938 # -----------------------
1939 # Try to link conftest.$ac_ext, and return whether this succeeded.
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 rm -f conftest.$ac_objext conftest$ac_exeext
1944 if { { ac_try="$ac_link"
1946 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1947 *) ac_try_echo
=$ac_try;;
1949 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1950 $as_echo "$ac_try_echo"; } >&5
1951 (eval "$ac_link") 2>conftest.err
1953 if test -s conftest.err
; then
1954 grep -v '^ *+' conftest.err
>conftest.er1
1955 cat conftest.er1
>&5
1956 mv -f conftest.er1 conftest.err
1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; } && {
1960 test -z "$ac_c_werror_flag" ||
1961 test ! -s conftest.err
1962 } && test -s conftest
$ac_exeext && {
1963 test "$cross_compiling" = yes ||
1964 test -x conftest
$ac_exeext
1968 $as_echo "$as_me: failed program was:" >&5
1969 sed 's/^/| /' conftest.
$ac_ext >&5
1973 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1974 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1975 # interfere with the next link command; also delete a directory that is
1976 # left behind by Apple's compiler. We do this before executing the actions.
1977 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979 as_fn_set_status
$ac_retval
1981 } # ac_fn_c_try_link
1983 # ac_fn_c_check_func LINENO FUNC VAR
1984 # ----------------------------------
1985 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1986 ac_fn_c_check_func
()
1988 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990 $as_echo_n "checking for $2... " >&6; }
1991 if eval \
${$3+:} false
; then :
1992 $as_echo_n "(cached) " >&6
1994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1995 /* end confdefs.h. */
1996 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1998 #define $2 innocuous_$2
2000 /* System header to define __stub macros and hopefully few prototypes,
2001 which can conflict with char $2 (); below.
2002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2003 <limits.h> exists even on freestanding compilers. */
2006 # include <limits.h>
2008 # include <assert.h>
2013 /* Override any GCC internal prototype to avoid an error.
2014 Use char because int might match the return type of a GCC
2015 builtin and then its argument prototype would still apply. */
2020 /* The GNU C library defines this for functions which it implements
2021 to always fail with ENOSYS. Some functions are actually named
2022 something starting with __ and the normal name is an alias. */
2023 #if defined __stub_$2 || defined __stub___$2
2035 if ac_fn_c_try_link
"$LINENO"; then :
2040 rm -f core conftest.err conftest.
$ac_objext \
2041 conftest
$ac_exeext conftest.
$ac_ext
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2045 $as_echo "$ac_res" >&6; }
2046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048 } # ac_fn_c_check_func
2050 # ac_fn_cxx_try_cpp LINENO
2051 # ------------------------
2052 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2053 ac_fn_cxx_try_cpp
()
2055 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2056 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2059 *) ac_try_echo=$ac_try;;
2061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2062 $as_echo "$ac_try_echo"; } >&5
2063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2065 if test -s conftest.err; then
2066 grep -v '^ *+' conftest.err >conftest.er1
2067 cat conftest.er1 >&5
2068 mv -f conftest.er1 conftest.err
2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071 test $ac_status = 0; } > conftest.i && {
2072 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2073 test ! -s conftest.err
2077 $as_echo "$as_me: failed program was:" >&5
2078 sed 's/^/| /' conftest.$ac_ext >&5
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083 as_fn_set_status $ac_retval
2085 } # ac_fn_cxx_try_cpp
2087 # ac_fn_cxx_try_link LINENO
2088 # -------------------------
2089 # Try to link conftest.$ac_ext, and return whether this succeeded.
2090 ac_fn_cxx_try_link ()
2092 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093 rm -f conftest.$ac_objext conftest$ac_exeext
2094 if { { ac_try="$ac_link"
2096 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2097 *) ac_try_echo
=$ac_try;;
2099 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2100 $as_echo "$ac_try_echo"; } >&5
2101 (eval "$ac_link") 2>conftest.err
2103 if test -s conftest.err
; then
2104 grep -v '^ *+' conftest.err
>conftest.er1
2105 cat conftest.er1
>&5
2106 mv -f conftest.er1 conftest.err
2108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2109 test $ac_status = 0; } && {
2110 test -z "$ac_cxx_werror_flag" ||
2111 test ! -s conftest.err
2112 } && test -s conftest
$ac_exeext && {
2113 test "$cross_compiling" = yes ||
2114 test -x conftest
$ac_exeext
2118 $as_echo "$as_me: failed program was:" >&5
2119 sed 's/^/| /' conftest.
$ac_ext >&5
2123 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2124 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2125 # interfere with the next link command; also delete a directory that is
2126 # left behind by Apple's compiler. We do this before executing the actions.
2127 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2128 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2129 as_fn_set_status
$ac_retval
2131 } # ac_fn_cxx_try_link
2133 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2134 # --------------------------------------------
2135 # Tries to find the compile-time value of EXPR in a program that includes
2136 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2138 ac_fn_c_compute_int
()
2140 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2141 if test "$cross_compiling" = yes; then
2142 # Depending upon the size, compute the lo and hi bounds.
2143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2149 static int test_array [1 - 2 * !(($2) >= 0)];
2151 return test_array [0];
2157 if ac_fn_c_try_compile
"$LINENO"; then :
2160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2166 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2168 return test_array [0];
2174 if ac_fn_c_try_compile
"$LINENO"; then :
2175 ac_hi
=$ac_mid; break
2177 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2178 if test $ac_lo -le $ac_mid; then
2182 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2193 static int test_array [1 - 2 * !(($2) < 0)];
2195 return test_array [0];
2201 if ac_fn_c_try_compile
"$LINENO"; then :
2204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h. */
2210 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2212 return test_array [0];
2218 if ac_fn_c_try_compile
"$LINENO"; then :
2219 ac_lo
=$ac_mid; break
2221 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2222 if test $ac_mid -le $ac_hi; then
2226 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2228 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2233 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2235 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2236 # Binary search between lo and hi bounds.
2237 while test "x$ac_lo" != "x$ac_hi"; do
2238 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h. */
2245 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2247 return test_array [0];
2253 if ac_fn_c_try_compile
"$LINENO"; then :
2256 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2261 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2268 static long int longval () { return $2; }
2269 static unsigned long int ulongval () { return $2; }
2276 FILE *f = fopen ("conftest.val", "w");
2281 long int i = longval ();
2284 fprintf (f, "%ld", i);
2288 unsigned long int i = ulongval ();
2291 fprintf (f, "%lu", i);
2293 /* Do not output a trailing newline, as this causes \r\n confusion
2294 on some platforms. */
2295 return ferror (f) || fclose (f) != 0;
2301 if ac_fn_c_try_run
"$LINENO"; then :
2302 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2306 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2307 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2311 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2312 as_fn_set_status
$ac_retval
2314 } # ac_fn_c_compute_int
2316 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2317 # ---------------------------------------------
2318 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2320 ac_fn_c_check_decl
()
2322 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2323 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2324 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2326 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2327 if eval \
${$3+:} false
; then :
2328 $as_echo_n "(cached) " >&6
2330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2336 #ifndef $as_decl_name
2338 (void) $as_decl_use;
2340 (void) $as_decl_name;
2348 if ac_fn_c_try_compile
"$LINENO"; then :
2353 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2357 $as_echo "$ac_res" >&6; }
2358 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2360 } # ac_fn_c_check_decl
2361 cat >config.log
<<_ACEOF
2362 This file contains any messages produced by compilers while
2363 running configure, to aid debugging if configure makes a mistake.
2365 It was created by ld $as_me 2.38.50, which was
2366 generated by GNU Autoconf 2.69. Invocation command line was
2378 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2379 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2380 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2381 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2382 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2384 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2385 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2387 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2388 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2389 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2390 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2391 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2392 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2393 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2397 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2401 test -z "$as_dir" && as_dir
=.
2402 $as_echo "PATH: $as_dir"
2418 # Keep a trace of the command line.
2419 # Strip out --no-create and --no-recursion so they do not pile up.
2420 # Strip out --silent because we don't want to record it for future runs.
2421 # Also quote any args containing shell meta-characters.
2422 # Make two passes to allow for proper duplicate-argument suppression.
2426 ac_must_keep_next
=false
2432 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2433 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2434 |
-silent |
--silent |
--silen |
--sile |
--sil)
2437 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2440 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2442 as_fn_append ac_configure_args1
" '$ac_arg'"
2443 if test $ac_must_keep_next = true
; then
2444 ac_must_keep_next
=false
# Got value, back to normal.
2447 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2448 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2449 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2450 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2451 case "$ac_configure_args0 " in
2452 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2455 -* ) ac_must_keep_next
=true
;;
2458 as_fn_append ac_configure_args
" '$ac_arg'"
2463 { ac_configure_args0
=; unset ac_configure_args0
;}
2464 { ac_configure_args1
=; unset ac_configure_args1
;}
2466 # When interrupted or exit'd, cleanup temporary files, and complete
2467 # config.log. We remove comments because anyway the quotes in there
2468 # would cause problems or look ugly.
2469 # WARNING: Use '\'' to represent an apostrophe within the trap.
2470 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2471 trap 'exit_status=$?
2472 # Save into config.log some information that might help in debugging.
2476 $as_echo "## ---------------- ##
2477 ## Cache variables. ##
2478 ## ---------------- ##"
2480 # The following way of writing the cache mishandles newlines in values,
2482 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2483 eval ac_val=\$$ac_var
2487 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2488 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2491 _ | IFS | as_nl) ;; #(
2492 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2493 *) { eval $ac_var=; unset $ac_var;} ;;
2498 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2499 *${as_nl}ac_space=\ *)
2501 "s/'\''/'\''\\\\'\'''\''/g;
2502 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2505 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2512 $as_echo "## ----------------- ##
2513 ## Output variables. ##
2514 ## ----------------- ##"
2516 for ac_var in $ac_subst_vars
2518 eval ac_val=\$$ac_var
2520 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2522 $as_echo "$ac_var='\''$ac_val'\''"
2526 if test -n "$ac_subst_files"; then
2527 $as_echo "## ------------------- ##
2528 ## File substitutions. ##
2529 ## ------------------- ##"
2531 for ac_var
in $ac_subst_files
2533 eval ac_val
=\$
$ac_var
2535 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2537 $as_echo "$ac_var='\''$ac_val'\''"
2542 if test -s confdefs.h; then
2543 $as_echo "## ----------- ##
2550 test "$ac_signal" != 0 &&
2551 $as_echo "$as_me: caught signal $ac_signal"
2552 $as_echo "$as_me: exit $exit_status"
2554 rm -f core *.core core.conftest.* &&
2555 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2558 for ac_signal
in 1 2 13 15; do
2559 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2563 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2564 rm -f -r conftest
* confdefs.h
2566 $as_echo "/* confdefs.h */" > confdefs.h
2568 # Predefined preprocessor variables.
2570 cat >>confdefs.h
<<_ACEOF
2571 #define PACKAGE_NAME "$PACKAGE_NAME"
2574 cat >>confdefs.h
<<_ACEOF
2575 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2578 cat >>confdefs.h
<<_ACEOF
2579 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2582 cat >>confdefs.h
<<_ACEOF
2583 #define PACKAGE_STRING "$PACKAGE_STRING"
2586 cat >>confdefs.h
<<_ACEOF
2587 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2590 cat >>confdefs.h
<<_ACEOF
2591 #define PACKAGE_URL "$PACKAGE_URL"
2595 # Let the site file select an alternate cache file if it wants to.
2596 # Prefer an explicitly selected file to automatically selected ones.
2599 if test -n "$CONFIG_SITE"; then
2600 # We do not want a PATH search for config.site.
2601 case $CONFIG_SITE in #((
2602 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2603 */*) ac_site_file1
=$CONFIG_SITE;;
2604 *) ac_site_file1
=.
/$CONFIG_SITE;;
2606 elif test "x$prefix" != xNONE
; then
2607 ac_site_file1
=$prefix/share
/config.site
2608 ac_site_file2
=$prefix/etc
/config.site
2610 ac_site_file1
=$ac_default_prefix/share
/config.site
2611 ac_site_file2
=$ac_default_prefix/etc
/config.site
2613 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2615 test "x$ac_site_file" = xNONE
&& continue
2616 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2618 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2619 sed 's/^/| /' "$ac_site_file" >&5
2621 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2623 as_fn_error $?
"failed to load site script $ac_site_file
2624 See \`config.log' for more details" "$LINENO" 5; }
2628 if test -r "$cache_file"; then
2629 # Some versions of bash will fail to source /dev/null (special files
2630 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2631 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2633 $as_echo "$as_me: loading cache $cache_file" >&6;}
2635 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2636 *) .
"./$cache_file";;
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2641 $as_echo "$as_me: creating cache $cache_file" >&6;}
2645 as_fn_append ac_header_list
" stdlib.h"
2646 as_fn_append ac_header_list
" unistd.h"
2647 as_fn_append ac_header_list
" sys/param.h"
2648 # Check that the precious variables saved in the cache have kept the same
2650 ac_cache_corrupted
=false
2651 for ac_var
in $ac_precious_vars; do
2652 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2653 eval ac_new_set
=\
$ac_env_${ac_var}_set
2654 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2655 eval ac_new_val
=\
$ac_env_${ac_var}_value
2656 case $ac_old_set,$ac_new_set in
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2659 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2660 ac_cache_corrupted
=: ;;
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2663 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2664 ac_cache_corrupted
=: ;;
2667 if test "x$ac_old_val" != "x$ac_new_val"; then
2668 # differences in whitespace do not lead to failure.
2669 ac_old_val_w
=`echo x $ac_old_val`
2670 ac_new_val_w
=`echo x $ac_new_val`
2671 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2673 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2674 ac_cache_corrupted
=:
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2677 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2678 eval $ac_var=\
$ac_old_val
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2681 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2683 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2686 # Pass precious variables to config.status.
2687 if test "$ac_new_set" = set; then
2689 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2690 *) ac_arg
=$ac_var=$ac_new_val ;;
2692 case " $ac_configure_args " in
2693 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2694 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2698 if $ac_cache_corrupted; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2702 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2703 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2705 ## -------------------- ##
2706 ## Main body of script. ##
2707 ## -------------------- ##
2710 ac_cpp
='$CPP $CPPFLAGS'
2711 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2712 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2713 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2722 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2723 if test -f "$ac_dir/install-sh"; then
2725 ac_install_sh
="$ac_aux_dir/install-sh -c"
2727 elif test -f "$ac_dir/install.sh"; then
2729 ac_install_sh
="$ac_aux_dir/install.sh -c"
2731 elif test -f "$ac_dir/shtool"; then
2733 ac_install_sh
="$ac_aux_dir/shtool install -c"
2737 if test -z "$ac_aux_dir"; then
2738 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2741 # These three variables are undocumented and unsupported,
2742 # and are intended to be withdrawn in a future Autoconf release.
2743 # They can cause serious problems if a builder's source tree is in a directory
2744 # whose full name contains unusual characters.
2745 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2746 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2747 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2750 # Make sure we can run config.sub.
2751 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2752 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2755 $as_echo_n "checking build system type... " >&6; }
2756 if ${ac_cv_build+:} false
; then :
2757 $as_echo_n "(cached) " >&6
2759 ac_build_alias
=$build_alias
2760 test "x$ac_build_alias" = x
&&
2761 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2762 test "x$ac_build_alias" = x
&&
2763 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2764 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2765 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2769 $as_echo "$ac_cv_build" >&6; }
2770 case $ac_cv_build in
2772 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2775 ac_save_IFS
=$IFS; IFS
='-'
2781 # Remember, the first character of IFS is used to create $*,
2782 # except with old shells:
2785 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2789 $as_echo_n "checking host system type... " >&6; }
2790 if ${ac_cv_host+:} false
; then :
2791 $as_echo_n "(cached) " >&6
2793 if test "x$host_alias" = x
; then
2794 ac_cv_host
=$ac_cv_build
2796 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2797 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2802 $as_echo "$ac_cv_host" >&6; }
2805 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2808 ac_save_IFS
=$IFS; IFS
='-'
2814 # Remember, the first character of IFS is used to create $*,
2815 # except with old shells:
2818 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2822 $as_echo_n "checking target system type... " >&6; }
2823 if ${ac_cv_target+:} false
; then :
2824 $as_echo_n "(cached) " >&6
2826 if test "x$target_alias" = x
; then
2827 ac_cv_target
=$ac_cv_host
2829 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2830 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2835 $as_echo "$ac_cv_target" >&6; }
2836 case $ac_cv_target in
2838 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2840 target
=$ac_cv_target
2841 ac_save_IFS
=$IFS; IFS
='-'
2847 # Remember, the first character of IFS is used to create $*,
2848 # except with old shells:
2851 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2854 # The aliases save the names the user supplied, while $host etc.
2855 # will get canonicalized.
2856 test -n "$target_alias" &&
2857 test "$program_prefix$program_suffix$program_transform_name" = \
2859 program_prefix
=${target_alias}-
2862 am__api_version
='1.15'
2864 # Find a good install program. We prefer a C program (faster),
2865 # so one script is as good as another. But avoid the broken or
2866 # incompatible versions:
2867 # SysV /etc/install, /usr/sbin/install
2868 # SunOS /usr/etc/install
2869 # IRIX /sbin/install
2871 # AmigaOS /C/install, which installs bootblocks on floppy discs
2872 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2873 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2874 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2875 # OS/2's system install, which has a completely different semantic
2876 # ./install, which can be erroneously created by make from ./install.sh.
2877 # Reject install programs that cannot install multiple files.
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2879 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2880 if test -z "$INSTALL"; then
2881 if ${ac_cv_path_install+:} false
; then :
2882 $as_echo_n "(cached) " >&6
2884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2888 test -z "$as_dir" && as_dir
=.
2889 # Account for people who put trailing slashes in PATH elements.
2890 case $as_dir/ in #((
2891 .
/ | .
// |
/[cC
]/* | \
2892 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2893 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2896 # OSF1 and SCO ODT 3.0 have their own names for install.
2897 # Don't use installbsd from OSF since it installs stuff as root
2899 for ac_prog
in ginstall scoinst
install; do
2900 for ac_exec_ext
in '' $ac_executable_extensions; do
2901 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2902 if test $ac_prog = install &&
2903 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2904 # AIX install. It has an incompatible calling convention.
2906 elif test $ac_prog = install &&
2907 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2908 # program-specific install script used by HP pwplus--don't use.
2911 rm -rf conftest.one conftest.two conftest.dir
2912 echo one
> conftest.one
2913 echo two
> conftest.two
2915 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2916 test -s conftest.one
&& test -s conftest.two
&&
2917 test -s conftest.dir
/conftest.one
&&
2918 test -s conftest.dir
/conftest.two
2920 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2933 rm -rf conftest.one conftest.two conftest.dir
2936 if test "${ac_cv_path_install+set}" = set; then
2937 INSTALL
=$ac_cv_path_install
2939 # As a last resort, use the slow shell script. Don't cache a
2940 # value for INSTALL within a source directory, because that will
2941 # break other packages using the cache if that directory is
2942 # removed, or if the value is a relative name.
2943 INSTALL
=$ac_install_sh
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2947 $as_echo "$INSTALL" >&6; }
2949 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2950 # It thinks the first close brace ends the variable substitution.
2951 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2953 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2955 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2958 $as_echo_n "checking whether build environment is sane... " >&6; }
2959 # Reject unsafe characters in $srcdir or the absolute working directory
2960 # name. Accept space and tab only in the latter.
2964 *[\\\"\
#\$\&\'\`$am_lf]*)
2965 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2968 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2969 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2972 # Do 'set' in a subshell so we don't clobber the current shell's
2973 # arguments. Must try -L first in case configure is actually a
2974 # symlink; some systems play weird games with the mod time of symlinks
2975 # (eg FreeBSD returns the mod time of the symlink's containing
2979 for am_try
in 1 2; do
2980 echo "timestamp, slept: $am_has_slept" > conftest.
file
2981 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2982 if test "$*" = "X"; then
2984 set X
`ls -t "$srcdir/configure" conftest.file`
2986 if test "$*" != "X $srcdir/configure conftest.file" \
2987 && test "$*" != "X conftest.file $srcdir/configure"; then
2989 # If neither matched, then we have a broken ls. This can happen
2990 # if, for instance, CONFIG_SHELL is bash and it inherits a
2991 # broken ls alias from the environment. This has actually
2992 # happened. Such a system could not be considered "sane".
2993 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2994 alias in your environment" "$LINENO" 5
2996 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
3003 test "$2" = conftest.
file
3009 as_fn_error $?
"newly created file is older than distributed files!
3010 Check your system clock" "$LINENO" 5
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3013 $as_echo "yes" >&6; }
3014 # If we didn't sleep, we still need to ensure time stamps of config.status and
3015 # generated files are strictly newer.
3017 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
3024 test "$program_prefix" != NONE
&&
3025 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3026 # Use a double $ so make ignores it.
3027 test "$program_suffix" != NONE
&&
3028 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3029 # Double any \ or $.
3030 # By default was `s,x,x', remove it if useless.
3031 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3032 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3034 # Expand $ac_aux_dir to an absolute path.
3035 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
3037 if test x
"${MISSING+set}" != xset
; then
3040 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3042 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3045 # Use eval to expand $SHELL
3046 if eval "$MISSING --is-lightweight"; then
3047 am_missing_run
="$MISSING "
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3051 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3054 if test x
"${install_sh+set}" != xset
; then
3057 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3059 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3063 # Installed binaries are usually stripped using 'strip' when the user
3064 # run "make install-strip". However 'strip' might not be the right
3065 # tool to use in cross-compilation environments, therefore Automake
3066 # will honor the 'STRIP' environment variable to overrule this program.
3067 if test "$cross_compiling" != no
; then
3068 if test -n "$ac_tool_prefix"; then
3069 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3070 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3072 $as_echo_n "checking for $ac_word... " >&6; }
3073 if ${ac_cv_prog_STRIP+:} false
; then :
3074 $as_echo_n "(cached) " >&6
3076 if test -n "$STRIP"; then
3077 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3079 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3083 test -z "$as_dir" && as_dir
=.
3084 for ac_exec_ext
in '' $ac_executable_extensions; do
3085 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3086 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3096 STRIP
=$ac_cv_prog_STRIP
3097 if test -n "$STRIP"; then
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3099 $as_echo "$STRIP" >&6; }
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102 $as_echo "no" >&6; }
3107 if test -z "$ac_cv_prog_STRIP"; then
3109 # Extract the first word of "strip", so it can be a program name with args.
3110 set dummy strip
; ac_word
=$2
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3112 $as_echo_n "checking for $ac_word... " >&6; }
3113 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3114 $as_echo_n "(cached) " >&6
3116 if test -n "$ac_ct_STRIP"; then
3117 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3123 test -z "$as_dir" && as_dir
=.
3124 for ac_exec_ext
in '' $ac_executable_extensions; do
3125 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3126 ac_cv_prog_ac_ct_STRIP
="strip"
3127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3137 if test -n "$ac_ct_STRIP"; then
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3139 $as_echo "$ac_ct_STRIP" >&6; }
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142 $as_echo "no" >&6; }
3145 if test "x$ac_ct_STRIP" = x
; then
3148 case $cross_compiling:$ac_tool_warned in
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3152 ac_tool_warned
=yes ;;
3157 STRIP
="$ac_cv_prog_STRIP"
3161 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3164 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3165 if test -z "$MKDIR_P"; then
3166 if ${ac_cv_path_mkdir+:} false
; then :
3167 $as_echo_n "(cached) " >&6
3169 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3170 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3173 test -z "$as_dir" && as_dir
=.
3174 for ac_prog
in mkdir gmkdir
; do
3175 for ac_exec_ext
in '' $ac_executable_extensions; do
3176 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3177 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3178 'mkdir (GNU coreutils) '* | \
3179 'mkdir (coreutils) '* | \
3180 'mkdir (fileutils) '4.1*)
3181 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3191 test -d .
/--version && rmdir .
/--version
3192 if test "${ac_cv_path_mkdir+set}" = set; then
3193 MKDIR_P
="$ac_cv_path_mkdir -p"
3195 # As a last resort, use the slow shell script. Don't cache a
3196 # value for MKDIR_P within a source directory, because that will
3197 # break other packages using the cache if that directory is
3198 # removed, or if the value is a relative name.
3199 MKDIR_P
="$ac_install_sh -d"
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3203 $as_echo "$MKDIR_P" >&6; }
3205 for ac_prog
in gawk mawk nawk
awk
3207 # Extract the first word of "$ac_prog", so it can be a program name with args.
3208 set dummy
$ac_prog; ac_word
=$2
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210 $as_echo_n "checking for $ac_word... " >&6; }
3211 if ${ac_cv_prog_AWK+:} false
; then :
3212 $as_echo_n "(cached) " >&6
3214 if test -n "$AWK"; then
3215 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3217 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3221 test -z "$as_dir" && as_dir
=.
3222 for ac_exec_ext
in '' $ac_executable_extensions; do
3223 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3224 ac_cv_prog_AWK
="$ac_prog"
3225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3235 if test -n "$AWK"; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3237 $as_echo "$AWK" >&6; }
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3244 test -n "$AWK" && break
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3248 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3250 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3251 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3252 $as_echo_n "(cached) " >&6
3254 cat >conftest.
make <<\_ACEOF
3257 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3259 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3260 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3262 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3264 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3268 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3270 $as_echo "yes" >&6; }
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 $as_echo "no" >&6; }
3275 SET_MAKE
="MAKE=${MAKE-make}"
3278 rm -rf .tst
2>/dev
/null
3279 mkdir .tst
2>/dev
/null
3280 if test -d .tst
; then
3285 rmdir .tst
2>/dev
/null
3287 # Check whether --enable-silent-rules was given.
3288 if test "${enable_silent_rules+set}" = set; then :
3289 enableval
=$enable_silent_rules;
3292 case $enable_silent_rules in # (((
3293 yes) AM_DEFAULT_VERBOSITY
=0;;
3294 no
) AM_DEFAULT_VERBOSITY
=1;;
3295 *) AM_DEFAULT_VERBOSITY
=1;;
3297 am_make
=${MAKE-make}
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3299 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3300 if ${am_cv_make_support_nested_variables+:} false
; then :
3301 $as_echo_n "(cached) " >&6
3303 if $as_echo 'TRUE=$(BAR$(V))
3309 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3310 am_cv_make_support_nested_variables
=yes
3312 am_cv_make_support_nested_variables
=no
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3316 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3317 if test $am_cv_make_support_nested_variables = yes; then
3319 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3321 AM_V
=$AM_DEFAULT_VERBOSITY
3322 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3326 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3327 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3328 # is not polluted with repeated "-I."
3329 am__isrc
=' -I$(srcdir)'
3330 # test to see if srcdir already configured
3331 if test -f $srcdir/config.status
; then
3332 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3336 # test whether we have cygpath
3337 if test -z "$CYGPATH_W"; then
3338 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3339 CYGPATH_W
='cygpath -w'
3346 # Define the identity of the package.
3351 cat >>confdefs.h
<<_ACEOF
3352 #define PACKAGE "$PACKAGE"
3356 cat >>confdefs.h
<<_ACEOF
3357 #define VERSION "$VERSION"
3360 # Some tools Automake needs.
3362 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3365 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3368 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3371 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3374 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3376 # For better backward compatibility. To be removed once Automake 1.9.x
3377 # dies out for good. For more background, see:
3378 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3379 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3380 mkdir_p
='$(MKDIR_P)'
3382 # We need awk for the "check" target (and possibly the TAP driver). The
3383 # system "awk" is bad on some platforms.
3384 # Always define AMTAR for backward compatibility. Yes, it's still used
3385 # in the wild :-( We should find a proper way to deprecate it ...
3389 # We'll loop over all known methods to create a tar archive until one works.
3390 _am_tools
='gnutar pax cpio none'
3392 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3399 # POSIX will say in a future version that running "rm -f" with no argument
3400 # is OK; and we want to be able to make that assumption in our Makefile
3401 # recipes. So use an aggressive probe to check that the usage we want is
3402 # actually supported "in the wild" to an acceptable degree.
3403 # See automake bug#10828.
3404 # To make any issue more visible, cause the running configure to be aborted
3405 # by default if the 'rm' program in use doesn't match our expectations; the
3406 # user can still override this though.
3407 if rm -f && rm -fr && rm -rf; then : OK
; else
3411 Your 'rm' program seems unable to run without file operands specified
3412 on the command line, even when the '-f' option is present. This is contrary
3413 to the behaviour of most rm programs out there, and not conforming with
3414 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3416 Please tell bug-automake@gnu.org about your system, including the value
3417 of your $PATH and any error possibly output before this message. This
3418 can help us improve future automake versions.
3421 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3422 echo 'Configuration will proceed anyway, since you have set the' >&2
3423 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3427 Aborting the configuration process, to ensure you take notice of the issue.
3429 You can download and install GNU coreutils to get an 'rm' implementation
3430 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3432 If you want to complete the configuration process using your problematic
3433 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3434 to "yes", and re-run configure.
3437 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3441 # Check whether --enable-silent-rules was given.
3442 if test "${enable_silent_rules+set}" = set; then :
3443 enableval
=$enable_silent_rules;
3446 case $enable_silent_rules in # (((
3447 yes) AM_DEFAULT_VERBOSITY
=0;;
3448 no
) AM_DEFAULT_VERBOSITY
=1;;
3449 *) AM_DEFAULT_VERBOSITY
=0;;
3451 am_make
=${MAKE-make}
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3453 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3454 if ${am_cv_make_support_nested_variables+:} false
; then :
3455 $as_echo_n "(cached) " >&6
3457 if $as_echo 'TRUE=$(BAR$(V))
3463 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3464 am_cv_make_support_nested_variables
=yes
3466 am_cv_make_support_nested_variables
=no
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3470 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3471 if test $am_cv_make_support_nested_variables = yes; then
3473 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3475 AM_V
=$AM_DEFAULT_VERBOSITY
3476 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3482 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3483 # Check whether --enable-maintainer-mode was given.
3484 if test "${enable_maintainer_mode+set}" = set; then :
3485 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3487 USE_MAINTAINER_MODE=no
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3491 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3492 if test $USE_MAINTAINER_MODE = yes; then
3493 MAINTAINER_MODE_TRUE=
3494 MAINTAINER_MODE_FALSE='#'
3496 MAINTAINER_MODE_TRUE
='#'
3497 MAINTAINER_MODE_FALSE
=
3500 MAINT
=$MAINTAINER_MODE_TRUE
3505 ac_cpp
='$CPP $CPPFLAGS'
3506 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3507 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3508 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3509 if test -n "$ac_tool_prefix"; then
3510 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3511 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3513 $as_echo_n "checking for $ac_word... " >&6; }
3514 if ${ac_cv_prog_CC+:} false
; then :
3515 $as_echo_n "(cached) " >&6
3517 if test -n "$CC"; then
3518 ac_cv_prog_CC
="$CC" # Let the user override the test.
3520 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3524 test -z "$as_dir" && as_dir
=.
3525 for ac_exec_ext
in '' $ac_executable_extensions; do
3526 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3527 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 if test -n "$CC"; then
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3540 $as_echo "$CC" >&6; }
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543 $as_echo "no" >&6; }
3548 if test -z "$ac_cv_prog_CC"; then
3550 # Extract the first word of "gcc", so it can be a program name with args.
3551 set dummy gcc
; ac_word
=$2
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3553 $as_echo_n "checking for $ac_word... " >&6; }
3554 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3555 $as_echo_n "(cached) " >&6
3557 if test -n "$ac_ct_CC"; then
3558 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3560 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3564 test -z "$as_dir" && as_dir
=.
3565 for ac_exec_ext
in '' $ac_executable_extensions; do
3566 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3567 ac_cv_prog_ac_ct_CC
="gcc"
3568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3577 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3578 if test -n "$ac_ct_CC"; then
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3580 $as_echo "$ac_ct_CC" >&6; }
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583 $as_echo "no" >&6; }
3586 if test "x$ac_ct_CC" = x
; then
3589 case $cross_compiling:$ac_tool_warned in
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3593 ac_tool_warned
=yes ;;
3601 if test -z "$CC"; then
3602 if test -n "$ac_tool_prefix"; then
3603 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3604 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3606 $as_echo_n "checking for $ac_word... " >&6; }
3607 if ${ac_cv_prog_CC+:} false
; then :
3608 $as_echo_n "(cached) " >&6
3610 if test -n "$CC"; then
3611 ac_cv_prog_CC
="$CC" # Let the user override the test.
3613 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3617 test -z "$as_dir" && as_dir
=.
3618 for ac_exec_ext
in '' $ac_executable_extensions; do
3619 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3620 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3631 if test -n "$CC"; then
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3633 $as_echo "$CC" >&6; }
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3636 $as_echo "no" >&6; }
3642 if test -z "$CC"; then
3643 # Extract the first word of "cc", so it can be a program name with args.
3644 set dummy cc
; ac_word
=$2
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3646 $as_echo_n "checking for $ac_word... " >&6; }
3647 if ${ac_cv_prog_CC+:} false
; then :
3648 $as_echo_n "(cached) " >&6
3650 if test -n "$CC"; then
3651 ac_cv_prog_CC
="$CC" # Let the user override the test.
3654 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3658 test -z "$as_dir" && as_dir
=.
3659 for ac_exec_ext
in '' $ac_executable_extensions; do
3660 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3661 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3662 ac_prog_rejected
=yes
3666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3673 if test $ac_prog_rejected = yes; then
3674 # We found a bogon in the path, so make sure we never use it.
3675 set dummy
$ac_cv_prog_CC
3677 if test $# != 0; then
3678 # We chose a different compiler from the bogus one.
3679 # However, it has the same basename, so the bogon will be chosen
3680 # first if we set CC to just the basename; use the full file name.
3682 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3688 if test -n "$CC"; then
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3690 $as_echo "$CC" >&6; }
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693 $as_echo "no" >&6; }
3698 if test -z "$CC"; then
3699 if test -n "$ac_tool_prefix"; then
3700 for ac_prog
in cl.exe
3702 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3703 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3705 $as_echo_n "checking for $ac_word... " >&6; }
3706 if ${ac_cv_prog_CC+:} false
; then :
3707 $as_echo_n "(cached) " >&6
3709 if test -n "$CC"; then
3710 ac_cv_prog_CC
="$CC" # Let the user override the test.
3712 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3716 test -z "$as_dir" && as_dir
=.
3717 for ac_exec_ext
in '' $ac_executable_extensions; do
3718 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3719 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3730 if test -n "$CC"; then
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3732 $as_echo "$CC" >&6; }
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3735 $as_echo "no" >&6; }
3739 test -n "$CC" && break
3742 if test -z "$CC"; then
3744 for ac_prog
in cl.exe
3746 # Extract the first word of "$ac_prog", so it can be a program name with args.
3747 set dummy
$ac_prog; ac_word
=$2
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3749 $as_echo_n "checking for $ac_word... " >&6; }
3750 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3751 $as_echo_n "(cached) " >&6
3753 if test -n "$ac_ct_CC"; then
3754 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3756 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3760 test -z "$as_dir" && as_dir
=.
3761 for ac_exec_ext
in '' $ac_executable_extensions; do
3762 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3763 ac_cv_prog_ac_ct_CC
="$ac_prog"
3764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3774 if test -n "$ac_ct_CC"; then
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3776 $as_echo "$ac_ct_CC" >&6; }
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3779 $as_echo "no" >&6; }
3783 test -n "$ac_ct_CC" && break
3786 if test "x$ac_ct_CC" = x
; then
3789 case $cross_compiling:$ac_tool_warned in
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3793 ac_tool_warned
=yes ;;
3802 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3804 as_fn_error $?
"no acceptable C compiler found in \$PATH
3805 See \`config.log' for more details" "$LINENO" 5; }
3807 # Provide some information about the compiler.
3808 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3811 for ac_option
in --version -v -V -qversion; do
3812 { { ac_try
="$ac_compiler $ac_option >&5"
3814 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3815 *) ac_try_echo=$ac_try;;
3817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3818 $as_echo "$ac_try_echo"; } >&5
3819 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3821 if test -s conftest.err; then
3823 ... rest of stderr output deleted ...
3824 10q' conftest.err >conftest.er1
3825 cat conftest.er1 >&5
3827 rm -f conftest.er1 conftest.err
3828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3829 test $ac_status = 0; }
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3843 ac_clean_files_save=$ac_clean_files
3844 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3845 # Try to create an executable without -o first, disregard a.out.
3846 # It will help us diagnose broken compilers, and finding out an intuition
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3849 $as_echo_n "checking whether the C compiler works... " >&6; }
3850 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3852 # The possible output files:
3853 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3856 for ac_file in $ac_files
3859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3860 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3865 if { { ac_try="$ac_link_default"
3867 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3868 *) ac_try_echo
=$ac_try;;
3870 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3871 $as_echo "$ac_try_echo"; } >&5
3872 (eval "$ac_link_default") 2>&5
3874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3875 test $ac_status = 0; }; then :
3876 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3877 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3878 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3879 # so that the user can short-circuit this test for compilers unknown to
3881 for ac_file
in $ac_files ''
3883 test -f "$ac_file" ||
continue
3885 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3888 # We found the default executable, but exeext='' is most
3892 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3894 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3896 # We set ac_cv_exeext here because the later test for it is not
3897 # safe: cross compilers may not add the suffix if given an `-o'
3898 # argument, so we may need to know it at that point already.
3899 # Even if this section looks crufty: it has the advantage of
3906 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3911 if test -z "$ac_file"; then :
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3913 $as_echo "no" >&6; }
3914 $as_echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.
$ac_ext >&5
3917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3919 as_fn_error
77 "C compiler cannot create executables
3920 See \`config.log' for more details" "$LINENO" 5; }
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3923 $as_echo "yes" >&6; }
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3926 $as_echo_n "checking for C compiler default output file name... " >&6; }
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3928 $as_echo "$ac_file" >&6; }
3929 ac_exeext
=$ac_cv_exeext
3931 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3932 ac_clean_files
=$ac_clean_files_save
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3934 $as_echo_n "checking for suffix of executables... " >&6; }
3935 if { { ac_try
="$ac_link"
3937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3941 $as_echo "$ac_try_echo"; } >&5
3942 (eval "$ac_link") 2>&5
3944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3945 test $ac_status = 0; }; then :
3946 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3947 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3948 # work properly (i.e., refer to `conftest.exe'), while it won't with
3950 for ac_file
in conftest.exe conftest conftest.
*; do
3951 test -f "$ac_file" ||
continue
3953 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3954 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3962 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3963 See \`config.log' for more details" "$LINENO" 5; }
3965 rm -f conftest conftest
$ac_cv_exeext
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3967 $as_echo "$ac_cv_exeext" >&6; }
3969 rm -f conftest.
$ac_ext
3970 EXEEXT
=$ac_cv_exeext
3972 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3978 FILE *f = fopen ("conftest.out", "w");
3979 return ferror (f) || fclose (f) != 0;
3985 ac_clean_files
="$ac_clean_files conftest.out"
3986 # Check that the compiler produces executables we can run. If not, either
3987 # the compiler is broken, or we cross compile.
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3989 $as_echo_n "checking whether we are cross compiling... " >&6; }
3990 if test "$cross_compiling" != yes; then
3991 { { ac_try
="$ac_link"
3993 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3997 $as_echo "$ac_try_echo"; } >&5
3998 (eval "$ac_link") 2>&5
4000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4001 test $ac_status = 0; }
4002 if { ac_try='./conftest$ac_cv_exeext'
4003 { { case "(($ac_try" in
4004 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4005 *) ac_try_echo
=$ac_try;;
4007 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4008 $as_echo "$ac_try_echo"; } >&5
4009 (eval "$ac_try") 2>&5
4011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4012 test $ac_status = 0; }; }; then
4015 if test "$cross_compiling" = maybe
; then
4018 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4020 as_fn_error $?
"cannot run C compiled programs.
4021 If you meant to cross compile, use \`--host'.
4022 See \`config.log' for more details" "$LINENO" 5; }
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4027 $as_echo "$cross_compiling" >&6; }
4029 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4030 ac_clean_files
=$ac_clean_files_save
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4032 $as_echo_n "checking for suffix of object files... " >&6; }
4033 if ${ac_cv_objext+:} false
; then :
4034 $as_echo_n "(cached) " >&6
4036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4047 rm -f conftest.o conftest.obj
4048 if { { ac_try
="$ac_compile"
4050 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4054 $as_echo "$ac_try_echo"; } >&5
4055 (eval "$ac_compile") 2>&5
4057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4058 test $ac_status = 0; }; then :
4059 for ac_file in conftest.o conftest.obj conftest.*; do
4060 test -f "$ac_file" || continue;
4062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4063 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4068 $as_echo "$as_me: failed program was:" >&5
4069 sed 's/^/| /' conftest.$ac_ext >&5
4071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4073 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4074 See \
`config.log' for more details" "$LINENO" 5; }
4076 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4079 $as_echo "$ac_cv_objext" >&6; }
4080 OBJEXT=$ac_cv_objext
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4083 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4084 if ${ac_cv_c_compiler_gnu+:} false; then :
4085 $as_echo_n "(cached) " >&6
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4101 if ac_fn_c_try_compile "$LINENO"; then :
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4111 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4112 if test $ac_compiler_gnu = yes; then
4117 ac_test_CFLAGS=${CFLAGS+set}
4118 ac_save_CFLAGS=$CFLAGS
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4120 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4121 if ${ac_cv_prog_cc_g+:} false; then :
4122 $as_echo_n "(cached) " >&6
4124 ac_save_c_werror_flag=$ac_c_werror_flag
4125 ac_c_werror_flag=yes
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4139 if ac_fn_c_try_compile "$LINENO"; then :
4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h. */
4154 if ac_fn_c_try_compile "$LINENO"; then :
4157 ac_c_werror_flag=$ac_save_c_werror_flag
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4170 if ac_fn_c_try_compile "$LINENO"; then :
4173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178 ac_c_werror_flag=$ac_save_c_werror_flag
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4181 $as_echo "$ac_cv_prog_cc_g" >&6; }
4182 if test "$ac_test_CFLAGS" = set; then
4183 CFLAGS=$ac_save_CFLAGS
4184 elif test $ac_cv_prog_cc_g = yes; then
4185 if test "$GCC" = yes; then
4191 if test "$GCC" = yes; then
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4198 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4199 if ${ac_cv_prog_cc_c89+:} false; then :
4200 $as_echo_n "(cached) " >&6
4202 ac_cv_prog_cc_c89=no
4204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205 /* end confdefs.h. */
4209 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4210 struct buf { int x; };
4211 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4212 static char *e (p, i)
4218 static char *f (char * (*g) (char **, int), char **p, ...)
4223 s = g (p, va_arg (v,int));
4228 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4229 function prototypes and stuff, but not '\xHH' hex character constants.
4230 These don't provoke an error unfortunately, instead are silently treated
4231 as 'x'. The following induces an error, until -std is added to get
4232 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4233 array size at least. It's necessary to write '\x00'==0 to get something
4234 that's true only with -std. */
4235 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4237 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4238 inside strings and character constants. */
4240 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4242 int test (int i, double x);
4243 struct s1 {int (*f) (int a);};
4244 struct s2 {int (*f) (double a);};
4245 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4251 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4256 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4257 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4259 CC="$ac_save_CC $ac_arg"
4260 if ac_fn_c_try_compile "$LINENO"; then :
4261 ac_cv_prog_cc_c89=$ac_arg
4263 rm -f core conftest.err conftest.$ac_objext
4264 test "x$ac_cv_prog_cc_c89" != "xno" && break
4266 rm -f conftest.$ac_ext
4271 case "x$ac_cv_prog_cc_c89" in
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4274 $as_echo "none needed" >&6; } ;;
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4277 $as_echo "unsupported" >&6; } ;;
4279 CC="$CC $ac_cv_prog_cc_c89"
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4281 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4283 if test "x$ac_cv_prog_cc_c89" != xno; then :
4288 ac_cpp='$CPP $CPPFLAGS'
4289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4294 ac_cpp='$CPP $CPPFLAGS'
4295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4299 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4300 if ${am_cv_prog_cc_c_o+:} false; then :
4301 $as_echo_n "(cached) " >&6
4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304 /* end confdefs.h. */
4314 # Make sure it works both with $CC and with simple cc.
4315 # Following AC_PROG_CC_C_O, we do the test twice because some
4316 # compilers refuse to overwrite an existing .o file with -o,
4317 # though they will create one.
4318 am_cv_prog_cc_c_o=yes
4320 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4321 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); } \
4325 && test -f conftest2.$ac_objext; then
4328 am_cv_prog_cc_c_o=no
4332 rm -f core conftest*
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4336 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4337 if test "$am_cv_prog_cc_c_o" != yes; then
4338 # Losing compiler, so override with the script.
4339 # FIXME: It is wrong to rewrite CC.
4340 # But if we don't then we get into trouble of one sort or another.
4341 # A longer-term fix would be to have automake use am__CC in this case,
4342 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4343 CC="$am_aux_dir/compile $CC"
4346 ac_cpp='$CPP $CPPFLAGS'
4347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4351 DEPDIR="${am__leading_dot}deps"
4353 ac_config_commands="$ac_config_commands depfiles"
4356 am_make=${MAKE-make}
4357 cat > confinc << 'END'
4359 @echo this is the am__doit target
4362 # If we don't find an include directive, just comment out the code.
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4364 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4368 # First try GNU make style include.
4369 echo "include confinc" > confmf
4370 # Ignore all kinds of additional output from 'make'.
4371 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4372 *the\ am__doit\ target*)
4378 # Now try BSD make style include.
4379 if test "$am__include" = "#"; then
4380 echo '.include "confinc"' > confmf
4381 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4382 *the\ am__doit\ target*)
4383 am__include=.include
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4392 $as_echo "$_am_result" >&6; }
4393 rm -f confinc confmf
4395 # Check whether --enable-dependency-tracking was given.
4396 if test "${enable_dependency_tracking+set}" = set; then :
4397 enableval=$enable_dependency_tracking;
4400 if test "x$enable_dependency_tracking" != xno; then
4401 am_depcomp="$ac_aux_dir/depcomp"
4405 if test "x$enable_dependency_tracking" != xno; then
4415 depcc="$CC" am_compiler_list=
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4418 $as_echo_n "checking dependency style of $depcc... " >&6; }
4419 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4420 $as_echo_n "(cached) " >&6
4422 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4423 # We make a subdir and do the tests there. Otherwise we can end up
4424 # making bogus files that we don't know about and never remove. For
4425 # instance it was reported that on HP-UX the gcc test will end up
4426 # making a dummy file named 'D' -- because '-MD' means "put the output
4430 # Copy depcomp to subdir because otherwise we won't find it if we're
4431 # using a relative directory.
4432 cp "$am_depcomp" conftest.dir
4434 # We will build objects and dependencies in a subdirectory because
4435 # it helps to detect inapplicable dependency modes. For instance
4436 # both Tru64's cc and ICC support -MD to output dependencies as a
4437 # side effect of compilation, but ICC will put the dependencies in
4438 # the current directory while Tru64 will put them in the object
4442 am_cv_CC_dependencies_compiler_type=none
4443 if test "$am_compiler_list" = ""; then
4444 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4447 case " $depcc " in #(
4448 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4451 for depmode in $am_compiler_list; do
4452 # Setup a source with many dependencies, because some compilers
4453 # like to wrap large dependency lists on column 80 (with \), and
4454 # we should not choose a depcomp mode which is confused by this.
4456 # We need to recreate these files for each test, as the compiler may
4457 # overwrite some of them when testing with obscure command lines.
4458 # This happens at least with the AIX C compiler.
4460 for i in 1 2 3 4 5 6; do
4461 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4462 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4463 # Solaris 10 /bin/sh.
4464 echo '/* dummy */' > sub/conftst$i.h
4466 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4468 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4469 # mode. It turns out that the SunPro C++ compiler does not properly
4470 # handle '-M -o', and we need to detect this. Also, some Intel
4471 # versions had trouble with output in subdirs.
4472 am__obj=sub/conftest.${OBJEXT-o}
4473 am__minus_obj="-o $am__obj"
4476 # This depmode causes a compiler race in universal mode.
4477 test "$am__universal" = false || continue
4480 # After this tag, mechanisms are not by side-effect, so they'll
4481 # only be used when explicitly requested.
4482 if test "x$enable_dependency_tracking" = xyes; then
4488 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4489 # This compiler won't grok '-c -o', but also, the minuso test has
4490 # not run yet. These depmodes are late enough in the game, and
4491 # so weak that their functioning should not be impacted.
4492 am__obj=conftest.${OBJEXT-o}
4497 if depmode=$depmode \
4498 source=sub/conftest.c object=$am__obj \
4499 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4500 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4501 >/dev/null 2>conftest.err &&
4502 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4503 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4504 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4505 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4506 # icc doesn't choke on unknown options, it will just issue warnings
4507 # or remarks (even with -Werror). So we grep stderr for any message
4508 # that says an option was ignored or not supported.
4509 # When given -MP, icc 7.0 and 7.1 complain thusly:
4510 # icc: Command line warning: ignoring option '-M'; no argument required
4511 # The diagnosis changed in icc 8.0:
4512 # icc: Command line remark: option '-MP' not supported
4513 if (grep 'ignoring option' conftest.err ||
4514 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4515 am_cv_CC_dependencies_compiler_type=$depmode
4524 am_cv_CC_dependencies_compiler_type=none
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4529 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4530 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4533 test "x$enable_dependency_tracking" != xno \
4534 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4536 am__fastdepCC_FALSE='#'
4538 am__fastdepCC_TRUE='#'
4539 am__fastdepCC_FALSE=
4544 ac_cpp='$CXXCPP $CPPFLAGS'
4545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4548 if test -z "$CXX"; then
4549 if test -n "$CCC"; then
4552 if test -n "$ac_tool_prefix"; then
4553 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4555 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4556 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 $as_echo_n "checking for $ac_word... " >&6; }
4559 if ${ac_cv_prog_CXX+:} false; then :
4560 $as_echo_n "(cached) " >&6
4562 if test -n "$CXX"; then
4563 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4572 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 if test -n "$CXX"; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4585 $as_echo "$CXX" >&6; }
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4592 test -n "$CXX" && break
4595 if test -z "$CXX"; then
4597 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4599 # Extract the first word of "$ac_prog", so it can be a program name with args.
4600 set dummy $ac_prog; ac_word=$2
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4602 $as_echo_n "checking for $ac_word... " >&6; }
4603 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4604 $as_echo_n "(cached) " >&6
4606 if test -n "$ac_ct_CXX"; then
4607 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 test -z "$as_dir" && as_dir=.
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4616 ac_cv_prog_ac_ct_CXX="$ac_prog"
4617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4627 if test -n "$ac_ct_CXX"; then
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4629 $as_echo "$ac_ct_CXX" >&6; }
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4632 $as_echo "no" >&6; }
4636 test -n "$ac_ct_CXX" && break
4639 if test "x$ac_ct_CXX" = x; then
4642 case $cross_compiling:$ac_tool_warned in
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4646 ac_tool_warned=yes ;;
4654 # Provide some information about the compiler.
4655 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4658 for ac_option in --version -v -V -qversion; do
4659 { { ac_try="$ac_compiler $ac_option >&5"
4661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4662 *) ac_try_echo
=$ac_try;;
4664 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4665 $as_echo "$ac_try_echo"; } >&5
4666 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4668 if test -s conftest.err
; then
4670 ... rest of stderr output deleted ...
4671 10q' conftest.err
>conftest.er1
4672 cat conftest.er1
>&5
4674 rm -f conftest.er1 conftest.err
4675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4676 test $ac_status = 0; }
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4680 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4681 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4682 $as_echo_n "(cached) " >&6
4684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4698 if ac_fn_cxx_try_compile
"$LINENO"; then :
4703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4704 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4708 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4709 if test $ac_compiler_gnu = yes; then
4714 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4715 ac_save_CXXFLAGS
=$CXXFLAGS
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4717 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4718 if ${ac_cv_prog_cxx_g+:} false
; then :
4719 $as_echo_n "(cached) " >&6
4721 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4722 ac_cxx_werror_flag
=yes
4725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4726 /* end confdefs.h. */
4736 if ac_fn_cxx_try_compile
"$LINENO"; then :
4737 ac_cv_prog_cxx_g
=yes
4740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h. */
4751 if ac_fn_cxx_try_compile
"$LINENO"; then :
4754 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h. */
4767 if ac_fn_cxx_try_compile
"$LINENO"; then :
4768 ac_cv_prog_cxx_g
=yes
4770 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4772 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4775 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4778 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4779 if test "$ac_test_CXXFLAGS" = set; then
4780 CXXFLAGS
=$ac_save_CXXFLAGS
4781 elif test $ac_cv_prog_cxx_g = yes; then
4782 if test "$GXX" = yes; then
4788 if test "$GXX" = yes; then
4795 ac_cpp
='$CPP $CPPFLAGS'
4796 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4800 depcc
="$CXX" am_compiler_list
=
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4803 $as_echo_n "checking dependency style of $depcc... " >&6; }
4804 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
4805 $as_echo_n "(cached) " >&6
4807 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4808 # We make a subdir and do the tests there. Otherwise we can end up
4809 # making bogus files that we don't know about and never remove. For
4810 # instance it was reported that on HP-UX the gcc test will end up
4811 # making a dummy file named 'D' -- because '-MD' means "put the output
4815 # Copy depcomp to subdir because otherwise we won't find it if we're
4816 # using a relative directory.
4817 cp "$am_depcomp" conftest.dir
4819 # We will build objects and dependencies in a subdirectory because
4820 # it helps to detect inapplicable dependency modes. For instance
4821 # both Tru64's cc and ICC support -MD to output dependencies as a
4822 # side effect of compilation, but ICC will put the dependencies in
4823 # the current directory while Tru64 will put them in the object
4827 am_cv_CXX_dependencies_compiler_type
=none
4828 if test "$am_compiler_list" = ""; then
4829 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4832 case " $depcc " in #(
4833 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4836 for depmode
in $am_compiler_list; do
4837 # Setup a source with many dependencies, because some compilers
4838 # like to wrap large dependency lists on column 80 (with \), and
4839 # we should not choose a depcomp mode which is confused by this.
4841 # We need to recreate these files for each test, as the compiler may
4842 # overwrite some of them when testing with obscure command lines.
4843 # This happens at least with the AIX C compiler.
4845 for i
in 1 2 3 4 5 6; do
4846 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4847 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4848 # Solaris 10 /bin/sh.
4849 echo '/* dummy */' > sub
/conftst
$i.h
4851 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4853 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4854 # mode. It turns out that the SunPro C++ compiler does not properly
4855 # handle '-M -o', and we need to detect this. Also, some Intel
4856 # versions had trouble with output in subdirs.
4857 am__obj
=sub
/conftest.
${OBJEXT-o}
4858 am__minus_obj
="-o $am__obj"
4861 # This depmode causes a compiler race in universal mode.
4862 test "$am__universal" = false ||
continue
4865 # After this tag, mechanisms are not by side-effect, so they'll
4866 # only be used when explicitly requested.
4867 if test "x$enable_dependency_tracking" = xyes
; then
4873 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4874 # This compiler won't grok '-c -o', but also, the minuso test has
4875 # not run yet. These depmodes are late enough in the game, and
4876 # so weak that their functioning should not be impacted.
4877 am__obj
=conftest.
${OBJEXT-o}
4882 if depmode
=$depmode \
4883 source=sub
/conftest.c object
=$am__obj \
4884 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4885 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4886 >/dev
/null
2>conftest.err
&&
4887 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4888 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4889 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4890 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4891 # icc doesn't choke on unknown options, it will just issue warnings
4892 # or remarks (even with -Werror). So we grep stderr for any message
4893 # that says an option was ignored or not supported.
4894 # When given -MP, icc 7.0 and 7.1 complain thusly:
4895 # icc: Command line warning: ignoring option '-M'; no argument required
4896 # The diagnosis changed in icc 8.0:
4897 # icc: Command line remark: option '-MP' not supported
4898 if (grep 'ignoring option' conftest.err ||
4899 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4900 am_cv_CXX_dependencies_compiler_type
=$depmode
4909 am_cv_CXX_dependencies_compiler_type
=none
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4914 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4915 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
4918 test "x$enable_dependency_tracking" != xno \
4919 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
4920 am__fastdepCXX_TRUE
=
4921 am__fastdepCXX_FALSE
='#'
4923 am__fastdepCXX_TRUE
='#'
4924 am__fastdepCXX_FALSE
=
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4929 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4930 if ${ac_cv_path_GREP+:} false
; then :
4931 $as_echo_n "(cached) " >&6
4933 if test -z "$GREP"; then
4934 ac_path_GREP_found
=false
4935 # Loop through the user's path and test for each of PROGNAME-LIST
4936 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4937 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4940 test -z "$as_dir" && as_dir
=.
4941 for ac_prog
in grep ggrep
; do
4942 for ac_exec_ext
in '' $ac_executable_extensions; do
4943 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4944 as_fn_executable_p
"$ac_path_GREP" ||
continue
4945 # Check for GNU ac_path_GREP and select it if it is found.
4946 # Check for GNU $ac_path_GREP
4947 case `"$ac_path_GREP" --version 2>&1` in
4949 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4952 $as_echo_n 0123456789 >"conftest.in"
4955 cat "conftest.in" "conftest.in" >"conftest.tmp"
4956 mv "conftest.tmp" "conftest.in"
4957 cp "conftest.in" "conftest.nl"
4958 $as_echo 'GREP' >> "conftest.nl"
4959 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4960 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4961 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4962 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4963 # Best one so far, save it but keep looking for a better one
4964 ac_cv_path_GREP
="$ac_path_GREP"
4965 ac_path_GREP_max
=$ac_count
4967 # 10*(2^10) chars as input seems more than enough
4968 test $ac_count -gt 10 && break
4970 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4973 $ac_path_GREP_found && break 3
4978 if test -z "$ac_cv_path_GREP"; then
4979 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4982 ac_cv_path_GREP
=$GREP
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4987 $as_echo "$ac_cv_path_GREP" >&6; }
4988 GREP
="$ac_cv_path_GREP"
4993 ac_cpp
='$CPP $CPPFLAGS'
4994 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4995 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4996 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4998 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4999 # On Suns, sometimes $CPP names a directory.
5000 if test -n "$CPP" && test -d "$CPP"; then
5003 if test -z "$CPP"; then
5004 if ${ac_cv_prog_CPP+:} false
; then :
5005 $as_echo_n "(cached) " >&6
5007 # Double quotes because CPP needs to be expanded
5008 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5011 for ac_c_preproc_warn_flag
in '' yes
5013 # Use a header file that comes with gcc, so configuring glibc
5014 # with a fresh cross-compiler works.
5015 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5016 # <limits.h> exists even on freestanding compilers.
5017 # On the NeXT, cc -E runs the code through the compiler's parser,
5018 # not just through cpp. "Syntax error" is here to catch this case.
5019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5020 /* end confdefs.h. */
5022 # include <limits.h>
5024 # include <assert.h>
5028 if ac_fn_c_try_cpp
"$LINENO"; then :
5031 # Broken: fails on valid input.
5034 rm -f conftest.err conftest.i conftest.
$ac_ext
5036 # OK, works on sane cases. Now check whether nonexistent headers
5037 # can be detected and how.
5038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5039 /* end confdefs.h. */
5040 #include <ac_nonexistent.h>
5042 if ac_fn_c_try_cpp
"$LINENO"; then :
5043 # Broken: success on invalid input.
5046 # Passes both tests.
5050 rm -f conftest.err conftest.i conftest.
$ac_ext
5053 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5054 rm -f conftest.i conftest.err conftest.
$ac_ext
5055 if $ac_preproc_ok; then :
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5068 $as_echo "$CPP" >&6; }
5070 for ac_c_preproc_warn_flag
in '' yes
5072 # Use a header file that comes with gcc, so configuring glibc
5073 # with a fresh cross-compiler works.
5074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5075 # <limits.h> exists even on freestanding compilers.
5076 # On the NeXT, cc -E runs the code through the compiler's parser,
5077 # not just through cpp. "Syntax error" is here to catch this case.
5078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5079 /* end confdefs.h. */
5081 # include <limits.h>
5083 # include <assert.h>
5087 if ac_fn_c_try_cpp
"$LINENO"; then :
5090 # Broken: fails on valid input.
5093 rm -f conftest.err conftest.i conftest.
$ac_ext
5095 # OK, works on sane cases. Now check whether nonexistent headers
5096 # can be detected and how.
5097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5098 /* end confdefs.h. */
5099 #include <ac_nonexistent.h>
5101 if ac_fn_c_try_cpp
"$LINENO"; then :
5102 # Broken: success on invalid input.
5105 # Passes both tests.
5109 rm -f conftest.err conftest.i conftest.
$ac_ext
5112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5113 rm -f conftest.i conftest.err conftest.
$ac_ext
5114 if $ac_preproc_ok; then :
5117 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5119 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5120 See \`config.log' for more details" "$LINENO" 5; }
5124 ac_cpp
='$CPP $CPPFLAGS'
5125 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5126 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5127 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5131 $as_echo_n "checking for egrep... " >&6; }
5132 if ${ac_cv_path_EGREP+:} false
; then :
5133 $as_echo_n "(cached) " >&6
5135 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5136 then ac_cv_path_EGREP
="$GREP -E"
5138 if test -z "$EGREP"; then
5139 ac_path_EGREP_found
=false
5140 # Loop through the user's path and test for each of PROGNAME-LIST
5141 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5142 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5145 test -z "$as_dir" && as_dir
=.
5146 for ac_prog
in egrep; do
5147 for ac_exec_ext
in '' $ac_executable_extensions; do
5148 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5149 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5150 # Check for GNU ac_path_EGREP and select it if it is found.
5151 # Check for GNU $ac_path_EGREP
5152 case `"$ac_path_EGREP" --version 2>&1` in
5154 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5157 $as_echo_n 0123456789 >"conftest.in"
5160 cat "conftest.in" "conftest.in" >"conftest.tmp"
5161 mv "conftest.tmp" "conftest.in"
5162 cp "conftest.in" "conftest.nl"
5163 $as_echo 'EGREP' >> "conftest.nl"
5164 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5165 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5166 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5167 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5168 # Best one so far, save it but keep looking for a better one
5169 ac_cv_path_EGREP
="$ac_path_EGREP"
5170 ac_path_EGREP_max
=$ac_count
5172 # 10*(2^10) chars as input seems more than enough
5173 test $ac_count -gt 10 && break
5175 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5178 $ac_path_EGREP_found && break 3
5183 if test -z "$ac_cv_path_EGREP"; then
5184 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5187 ac_cv_path_EGREP
=$EGREP
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5193 $as_echo "$ac_cv_path_EGREP" >&6; }
5194 EGREP
="$ac_cv_path_EGREP"
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5198 $as_echo_n "checking for ANSI C header files... " >&6; }
5199 if ${ac_cv_header_stdc+:} false
; then :
5200 $as_echo_n "(cached) " >&6
5202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h. */
5217 if ac_fn_c_try_compile
"$LINENO"; then :
5218 ac_cv_header_stdc
=yes
5220 ac_cv_header_stdc
=no
5222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5224 if test $ac_cv_header_stdc = yes; then
5225 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5227 /* end confdefs.h. */
5231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5232 $EGREP "memchr" >/dev
/null
2>&1; then :
5235 ac_cv_header_stdc
=no
5241 if test $ac_cv_header_stdc = yes; then
5242 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h. */
5248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5249 $EGREP "free" >/dev
/null
2>&1; then :
5252 ac_cv_header_stdc
=no
5258 if test $ac_cv_header_stdc = yes; then
5259 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5260 if test "$cross_compiling" = yes; then :
5263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5264 /* end confdefs.h. */
5267 #if ((' ' & 0x0FF) == 0x020)
5268 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5269 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5271 # define ISLOWER(c) \
5272 (('a' <= (c) && (c) <= 'i') \
5273 || ('j' <= (c) && (c) <= 'r') \
5274 || ('s' <= (c) && (c) <= 'z'))
5275 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5278 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5283 for (i = 0; i < 256; i++)
5284 if (XOR (islower (i), ISLOWER (i))
5285 || toupper (i) != TOUPPER (i))
5290 if ac_fn_c_try_run
"$LINENO"; then :
5293 ac_cv_header_stdc
=no
5295 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5296 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5302 $as_echo "$ac_cv_header_stdc" >&6; }
5303 if test $ac_cv_header_stdc = yes; then
5305 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5309 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5310 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5311 inttypes.h stdint.h unistd.h
5313 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5314 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5316 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5317 cat >>confdefs.h
<<_ACEOF
5318 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5327 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5328 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5335 if test "$MINIX" = yes; then
5337 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5340 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5343 $as_echo "#define _MINIX 1" >>confdefs.h
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5349 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5350 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5351 $as_echo_n "(cached) " >&6
5353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5354 /* end confdefs.h. */
5356 # define __EXTENSIONS__ 1
5357 $ac_includes_default
5366 if ac_fn_c_try_compile
"$LINENO"; then :
5367 ac_cv_safe_to_define___extensions__
=yes
5369 ac_cv_safe_to_define___extensions__
=no
5371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5374 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5375 test $ac_cv_safe_to_define___extensions__ = yes &&
5376 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5378 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5380 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5382 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5384 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5394 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5399 macro_version
='2.2.7a'
5400 macro_revision
='1.3134'
5414 ltmain
="$ac_aux_dir/ltmain.sh"
5416 # Backslashify metacharacters that are still active within
5417 # double-quoted strings.
5418 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
5420 # Same as above, but do not quote variable references.
5421 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
5423 # Sed substitution to delay expansion of an escaped shell variable in a
5424 # double_quote_subst'ed string.
5425 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5427 # Sed substitution to delay expansion of an escaped single quote.
5428 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
5430 # Sed substitution to avoid accidental globbing in evaled expressions
5431 no_glob_subst
='s/\*/\\\*/g'
5433 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5434 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5435 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5438 $as_echo_n "checking how to print strings... " >&6; }
5439 # Test print first, because it will be a builtin if present.
5440 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5441 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5443 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5446 # Use this function as a fallback that always works.
5447 func_fallback_echo ()
5449 eval 'cat <<_LTECHO_EOF
5453 ECHO='func_fallback_echo
'
5456 # func_echo_all arg...
5457 # Invoke $ECHO with all args, space-separated.
5464 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5465 $as_echo "printf" >&6; } ;;
5466 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5467 $as_echo "print -r" >&6; } ;;
5468 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5469 $as_echo "cat" >&6; } ;;
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5486 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5487 if ${ac_cv_path_SED+:} false; then :
5488 $as_echo_n "(cached) " >&6
5490 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5491 for ac_i in 1 2 3 4 5 6 7; do
5492 ac_script="$ac_script$as_nl$ac_script"
5494 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5495 { ac_script=; unset ac_script;}
5496 if test -z "$SED"; then
5497 ac_path_SED_found=false
5498 # Loop through the user's path and
test for each of PROGNAME-LIST
5499 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5503 test -z "$as_dir" && as_dir
=.
5504 for ac_prog
in sed gsed
; do
5505 for ac_exec_ext
in '' $ac_executable_extensions; do
5506 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
5507 as_fn_executable_p
"$ac_path_SED" ||
continue
5508 # Check for GNU ac_path_SED and select it if it is found.
5509 # Check for GNU $ac_path_SED
5510 case `"$ac_path_SED" --version 2>&1` in
5512 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
5515 $as_echo_n 0123456789 >"conftest.in"
5518 cat "conftest.in" "conftest.in" >"conftest.tmp"
5519 mv "conftest.tmp" "conftest.in"
5520 cp "conftest.in" "conftest.nl"
5521 $as_echo '' >> "conftest.nl"
5522 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5523 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5524 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5525 if test $ac_count -gt ${ac_path_SED_max-0}; then
5526 # Best one so far, save it but keep looking for a better one
5527 ac_cv_path_SED
="$ac_path_SED"
5528 ac_path_SED_max
=$ac_count
5530 # 10*(2^10) chars as input seems more than enough
5531 test $ac_count -gt 10 && break
5533 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5536 $ac_path_SED_found && break 3
5541 if test -z "$ac_cv_path_SED"; then
5542 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5550 $as_echo "$ac_cv_path_SED" >&6; }
5551 SED
="$ac_cv_path_SED"
5554 test -z "$SED" && SED
=sed
5555 Xsed
="$SED -e 1s/^X//"
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5568 $as_echo_n "checking for fgrep... " >&6; }
5569 if ${ac_cv_path_FGREP+:} false
; then :
5570 $as_echo_n "(cached) " >&6
5572 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
5573 then ac_cv_path_FGREP
="$GREP -F"
5575 if test -z "$FGREP"; then
5576 ac_path_FGREP_found
=false
5577 # Loop through the user's path and test for each of PROGNAME-LIST
5578 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5579 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5582 test -z "$as_dir" && as_dir
=.
5583 for ac_prog
in fgrep
; do
5584 for ac_exec_ext
in '' $ac_executable_extensions; do
5585 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
5586 as_fn_executable_p
"$ac_path_FGREP" ||
continue
5587 # Check for GNU ac_path_FGREP and select it if it is found.
5588 # Check for GNU $ac_path_FGREP
5589 case `"$ac_path_FGREP" --version 2>&1` in
5591 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
5594 $as_echo_n 0123456789 >"conftest.in"
5597 cat "conftest.in" "conftest.in" >"conftest.tmp"
5598 mv "conftest.tmp" "conftest.in"
5599 cp "conftest.in" "conftest.nl"
5600 $as_echo 'FGREP' >> "conftest.nl"
5601 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5602 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5603 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5604 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5605 # Best one so far, save it but keep looking for a better one
5606 ac_cv_path_FGREP
="$ac_path_FGREP"
5607 ac_path_FGREP_max
=$ac_count
5609 # 10*(2^10) chars as input seems more than enough
5610 test $ac_count -gt 10 && break
5612 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5615 $ac_path_FGREP_found && break 3
5620 if test -z "$ac_cv_path_FGREP"; then
5621 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5624 ac_cv_path_FGREP
=$FGREP
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5630 $as_echo "$ac_cv_path_FGREP" >&6; }
5631 FGREP
="$ac_cv_path_FGREP"
5634 test -z "$GREP" && GREP
=grep
5654 # Check whether --with-gnu-ld was given.
5655 if test "${with_gnu_ld+set}" = set; then :
5656 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5662 if test "$GCC" = yes; then
5663 # Check if gcc -print-prog-name=ld gives a path.
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5665 $as_echo_n "checking for ld used by $CC... " >&6; }
5668 # gcc leaves a trailing carriage return which upsets mingw
5669 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5671 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5674 # Accept absolute paths.
5676 re_direlt
='/[^/][^/]*/\.\./'
5677 # Canonicalize the pathname of ld
5678 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5679 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
5680 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5682 test -z "$LD" && LD
="$ac_prog"
5685 # If it fails, then pretend we aren't using GCC.
5689 # If it is relative, then search for the first ld in PATH.
5693 elif test "$with_gnu_ld" = yes; then
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5695 $as_echo_n "checking for GNU ld... " >&6; }
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5698 $as_echo_n "checking for non-GNU ld... " >&6; }
5700 if ${lt_cv_path_LD+:} false
; then :
5701 $as_echo_n "(cached) " >&6
5703 if test -z "$LD"; then
5704 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5705 for ac_dir
in $PATH; do
5707 test -z "$ac_dir" && ac_dir
=.
5708 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5709 lt_cv_path_LD
="$ac_dir/$ac_prog"
5710 # Check to see if the program is GNU ld. I'd rather use --version,
5711 # but apparently some variants of GNU ld only accept -v.
5712 # Break only if it was the GNU/non-GNU ld that we prefer.
5713 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5714 *GNU
* |
*'with BFD'*)
5715 test "$with_gnu_ld" != no
&& break
5718 test "$with_gnu_ld" != yes && break
5725 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
5730 if test -n "$LD"; then
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5732 $as_echo "$LD" >&6; }
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5735 $as_echo "no" >&6; }
5737 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5739 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5740 if ${lt_cv_prog_gnu_ld+:} false
; then :
5741 $as_echo_n "(cached) " >&6
5743 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5744 case `$LD -v 2>&1 </dev/null` in
5745 *GNU
* |
*'with BFD'*)
5746 lt_cv_prog_gnu_ld
=yes
5749 lt_cv_prog_gnu_ld
=no
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5754 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5755 with_gnu_ld
=$lt_cv_prog_gnu_ld
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5766 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5767 if ${lt_cv_path_NM+:} false
; then :
5768 $as_echo_n "(cached) " >&6
5770 if test -n "$NM"; then
5771 # Let the user override the nm to test.
5772 lt_nm_to_check
="$NM"
5774 lt_nm_to_check
="${ac_tool_prefix}nm"
5775 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5776 lt_nm_to_check
="$lt_nm_to_check nm"
5779 for lt_tmp_nm
in "$lt_nm_to_check"; do
5780 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5781 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
5783 test -z "$ac_dir" && ac_dir
=.
5784 # Strip out any user-provided options from the nm to test twice,
5785 # the first time to test to see if nm (rather than its options) has
5786 # an explicit path, the second time to yield a file which can be
5788 tmp_nm_path
="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5789 case "$tmp_nm_path" in
5790 */*|
*\\*) tmp_nm
="$lt_tmp_nm";;
5791 *) tmp_nm
="$ac_dir/$lt_tmp_nm";;
5793 tmp_nm_to_nm
="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5794 if test -f "$tmp_nm_to_nm" ||
test -f "$tmp_nm_to_nm$ac_exeext" ; then
5795 # Check to see if the nm accepts a BSD-compat flag.
5796 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5797 # nm: unknown option "B" ignored
5798 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5799 *$tmp_nm*) lt_cv_path_NM
="$tmp_nm -B"
5803 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5805 lt_cv_path_NM
="$tmp_nm -p"
5809 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5810 continue # so that we can try to find one that supports BSD flags
5819 : ${lt_cv_path_NM=no}
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5822 $as_echo "$lt_cv_path_NM" >&6; }
5823 if test "$lt_cv_path_NM" != "no"; then
5826 # Didn't find any BSD compatible name lister, look for dumpbin.
5827 if test -n "$DUMPBIN"; then :
5828 # Let the user override the test.
5830 if test -n "$ac_tool_prefix"; then
5831 for ac_prog
in dumpbin
"link -dump"
5833 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5834 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5836 $as_echo_n "checking for $ac_word... " >&6; }
5837 if ${ac_cv_prog_DUMPBIN+:} false
; then :
5838 $as_echo_n "(cached) " >&6
5840 if test -n "$DUMPBIN"; then
5841 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
5843 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5847 test -z "$as_dir" && as_dir
=.
5848 for ac_exec_ext
in '' $ac_executable_extensions; do
5849 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5850 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
5851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5860 DUMPBIN
=$ac_cv_prog_DUMPBIN
5861 if test -n "$DUMPBIN"; then
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5863 $as_echo "$DUMPBIN" >&6; }
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 $as_echo "no" >&6; }
5870 test -n "$DUMPBIN" && break
5873 if test -z "$DUMPBIN"; then
5874 ac_ct_DUMPBIN
=$DUMPBIN
5875 for ac_prog
in dumpbin
"link -dump"
5877 # Extract the first word of "$ac_prog", so it can be a program name with args.
5878 set dummy
$ac_prog; ac_word
=$2
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880 $as_echo_n "checking for $ac_word... " >&6; }
5881 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
5882 $as_echo_n "(cached) " >&6
5884 if test -n "$ac_ct_DUMPBIN"; then
5885 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
5887 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5891 test -z "$as_dir" && as_dir
=.
5892 for ac_exec_ext
in '' $ac_executable_extensions; do
5893 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5894 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
5895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5904 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
5905 if test -n "$ac_ct_DUMPBIN"; then
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5907 $as_echo "$ac_ct_DUMPBIN" >&6; }
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910 $as_echo "no" >&6; }
5914 test -n "$ac_ct_DUMPBIN" && break
5917 if test "x$ac_ct_DUMPBIN" = x
; then
5920 case $cross_compiling:$ac_tool_warned in
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5924 ac_tool_warned
=yes ;;
5926 DUMPBIN
=$ac_ct_DUMPBIN
5930 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5932 DUMPBIN
="$DUMPBIN -symbols"
5940 if test "$DUMPBIN" != ":"; then
5944 test -z "$NM" && NM
=nm
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5952 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5953 if ${lt_cv_nm_interface+:} false
; then :
5954 $as_echo_n "(cached) " >&6
5956 lt_cv_nm_interface
="BSD nm"
5957 echo "int some_variable = 0;" > conftest.
$ac_ext
5958 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5959 (eval "$ac_compile" 2>conftest.err
)
5960 cat conftest.err
>&5
5961 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5962 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
5963 cat conftest.err
>&5
5964 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5965 cat conftest.out
>&5
5966 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
5967 lt_cv_nm_interface
="MS dumpbin"
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5972 $as_echo "$lt_cv_nm_interface" >&6; }
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5975 $as_echo_n "checking whether ln -s works... " >&6; }
5977 if test "$LN_S" = "ln -s"; then
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5979 $as_echo "yes" >&6; }
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5982 $as_echo "no, using $LN_S" >&6; }
5985 # find the maximum length of command line arguments
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5987 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5988 if ${lt_cv_sys_max_cmd_len+:} false
; then :
5989 $as_echo_n "(cached) " >&6
5996 # On DJGPP, this test can blow up pretty badly due to problems in libc
5997 # (any single argument exceeding 2000 bytes causes a buffer overrun
5998 # during glob expansion). Even if it were fixed, the result of this
5999 # check would be larger than it should be.
6000 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6004 # Under GNU Hurd, this test is not required because there is
6005 # no limit to the length of command line arguments.
6006 # Libtool will interpret -1 as no limit whatsoever
6007 lt_cv_sys_max_cmd_len
=-1;
6010 cygwin
* | mingw
* | cegcc
*)
6011 # On Win9x/ME, this test blows up -- it succeeds, but takes
6012 # about 5 minutes as the teststring grows exponentially.
6013 # Worse, since 9x/ME are not pre-emptively multitasking,
6014 # you end up with a "frozen" computer, even though with patience
6015 # the test eventually succeeds (with a max line length of 256k).
6016 # Instead, let's just punt: use the minimum linelength reported by
6017 # all of the supported platforms: 8192 (on NT/2K/XP).
6018 lt_cv_sys_max_cmd_len
=8192;
6022 # On MiNT this can take a long time and run out of memory.
6023 lt_cv_sys_max_cmd_len
=8192;
6027 # On AmigaOS with pdksh, this test takes hours, literally.
6028 # So we just punt and use a minimum line length of 8192.
6029 lt_cv_sys_max_cmd_len
=8192;
6032 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6033 # This has been around since 386BSD, at least. Likely further.
6034 if test -x /sbin
/sysctl
; then
6035 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6036 elif test -x /usr
/sbin
/sysctl
; then
6037 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6039 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6041 # And add a safety zone
6042 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6043 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6047 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6048 lt_cv_sys_max_cmd_len
=196608
6052 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6053 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6054 # nice to cause kernel panics so lets avoid the loop below.
6055 # First set a reasonable default.
6056 lt_cv_sys_max_cmd_len
=16384
6058 if test -x /sbin
/sysconfig
; then
6059 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6060 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6065 lt_cv_sys_max_cmd_len
=102400
6067 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6068 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6069 if test -n "$kargmax"; then
6070 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6072 lt_cv_sys_max_cmd_len
=32768
6076 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6077 if test -n "$lt_cv_sys_max_cmd_len"; then
6078 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6079 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6081 # Make teststring a little bigger before we do anything with it.
6082 # a 1K string should be a reasonable start.
6083 for i
in 1 2 3 4 5 6 7 8 ; do
6084 teststring
=$teststring$teststring
6086 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6087 # If test is not a shell built-in, we'll probably end up computing a
6088 # maximum length that is only half of the actual maximum length, but
6090 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6091 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
6092 test $i != 17 # 1/2 MB should be enough
6095 teststring
=$teststring$teststring
6097 # Only check the string length outside the loop.
6098 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6100 # Add a significant safety factor because C++ compilers can tack on
6101 # massive amounts of additional arguments before passing them to the
6102 # linker. It appears as though 1/2 is a usable value.
6103 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6110 if test -n $lt_cv_sys_max_cmd_len ; then
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6112 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6115 $as_echo "none" >&6; }
6117 max_cmd_len
=$lt_cv_sys_max_cmd_len
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6129 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6130 # Try some XSI features
6133 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6135 && eval 'test $(( 1 + 1 )) -eq 2 \
6136 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
6139 $as_echo "$xsi_shell" >&6; }
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
6143 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
6145 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
6147 && lt_shell_append=yes
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
6149 $as_echo "$lt_shell_append" >&6; }
6152 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6162 # test EBCDIC or ASCII
6163 case `echo X|tr X '\101'` in
6164 A) # ASCII based system
6165 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6166 lt_SP2NL='tr \040 \012'
6167 lt_NL2SP='tr \015\012 \040\040'
6169 *) # EBCDIC based system
6170 lt_SP2NL='tr \100 \n'
6171 lt_NL2SP='tr \r\n \100\100'
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
6184 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
6185 if ${lt_cv_ld_reload_flag+:} false; then :
6186 $as_echo_n "(cached
) " >&6
6188 lt_cv_ld_reload_flag='-r'
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
6191 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6192 reload_flag=$lt_cv_ld_reload_flag
6193 case $reload_flag in
6195 *) reload_flag=" $reload_flag" ;;
6197 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6200 if test "$GCC" = yes; then
6201 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6203 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6216 if test -n "$ac_tool_prefix"; then
6217 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
6218 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6220 $as_echo_n "checking
for $ac_word...
" >&6; }
6221 if ${ac_cv_prog_OBJDUMP+:} false; then :
6222 $as_echo_n "(cached
) " >&6
6224 if test -n "$OBJDUMP"; then
6225 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 test -z "$as_dir" && as_dir=.
6232 for ac_exec_ext in '' $ac_executable_extensions; do
6233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6234 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
6235 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6244 OBJDUMP=$ac_cv_prog_OBJDUMP
6245 if test -n "$OBJDUMP"; then
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
6247 $as_echo "$OBJDUMP" >&6; }
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6250 $as_echo "no
" >&6; }
6255 if test -z "$ac_cv_prog_OBJDUMP"; then
6256 ac_ct_OBJDUMP=$OBJDUMP
6257 # Extract the first word of "objdump
", so it can be a program name with args.
6258 set dummy objdump; ac_word=$2
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6260 $as_echo_n "checking
for $ac_word...
" >&6; }
6261 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6262 $as_echo_n "(cached
) " >&6
6264 if test -n "$ac_ct_OBJDUMP"; then
6265 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271 test -z "$as_dir" && as_dir=.
6272 for ac_exec_ext in '' $ac_executable_extensions; do
6273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6274 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
6275 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6284 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6285 if test -n "$ac_ct_OBJDUMP"; then
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
6287 $as_echo "$ac_ct_OBJDUMP" >&6; }
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6290 $as_echo "no
" >&6; }
6293 if test "x
$ac_ct_OBJDUMP" = x; then
6296 case $cross_compiling:$ac_tool_warned in
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6299 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6300 ac_tool_warned=yes ;;
6302 OBJDUMP=$ac_ct_OBJDUMP
6305 OBJDUMP="$ac_cv_prog_OBJDUMP"
6308 test -z "$OBJDUMP" && OBJDUMP=objdump
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
6319 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
6320 if ${lt_cv_deplibs_check_method+:} false; then :
6321 $as_echo_n "(cached
) " >&6
6323 lt_cv_file_magic_cmd='$MAGIC_CMD'
6324 lt_cv_file_magic_test_file=
6325 lt_cv_deplibs_check_method='unknown'
6326 # Need to set the preceding variable on all platforms that support
6327 # interlibrary dependencies.
6328 # 'none' -- dependencies not supported.
6329 # `unknown' -- same as none, but documents that we really don't know.
6330 # 'pass_all' -- all dependencies passed with no checks.
6331 # 'test_compile' -- check by making test program.
6332 # 'file_magic [[regex]]' -- check by looking for files in library path
6333 # which responds to the $file_magic_cmd with a given extended regex.
6334 # If you have `file' or equivalent on your system and you're not sure
6335 # whether `pass_all' will *always* work, you probably want this one.
6339 lt_cv_deplibs_check_method=pass_all
6343 lt_cv_deplibs_check_method=pass_all
6347 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6348 lt_cv_file_magic_cmd='/usr/bin/file -L'
6349 lt_cv_file_magic_test_file=/shlib/libc.so
6353 # func_win32_libid is a shell function defined in ltmain.sh
6354 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6355 lt_cv_file_magic_cmd='func_win32_libid'
6359 # Base MSYS/MinGW do not provide the 'file' command needed by
6360 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6361 # unless we find 'file', for example because we are cross-compiling.
6362 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6363 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
6364 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6365 lt_cv_file_magic_cmd='func_win32_libid'
6367 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6368 lt_cv_file_magic_cmd='$OBJDUMP -f'
6373 # use the weaker test based on 'objdump'. See mingw*.
6374 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6375 lt_cv_file_magic_cmd='$OBJDUMP -f'
6378 darwin* | rhapsody*)
6379 lt_cv_deplibs_check_method=pass_all
6382 freebsd* | dragonfly*)
6383 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6386 # Not sure whether the presence of OpenBSD here was a mistake.
6387 # Let's accept both of them until this is cleared up.
6388 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6389 lt_cv_file_magic_cmd=/usr/bin/file
6390 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6394 lt_cv_deplibs_check_method=pass_all
6399 lt_cv_deplibs_check_method=pass_all
6403 lt_cv_deplibs_check_method=pass_all
6406 hpux10.20* | hpux11*)
6407 lt_cv_file_magic_cmd=/usr/bin/file
6410 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6411 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6414 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6415 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6418 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6419 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6425 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6426 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6429 irix5* | irix6* | nonstopux*)
6431 *-32|*"-32 ") libmagic=32-bit;;
6432 *-n32|*"-n32 ") libmagic=N32;;
6433 *-64|*"-64 ") libmagic=64-bit;;
6434 *) libmagic=never-match;;
6436 lt_cv_deplibs_check_method=pass_all
6439 # This must be Linux ELF.
6440 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6441 lt_cv_deplibs_check_method=pass_all
6445 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6446 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6448 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6453 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6454 lt_cv_file_magic_cmd=/usr/bin/file
6455 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6459 lt_cv_deplibs_check_method=pass_all
6463 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
6464 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6466 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6470 osf3* | osf4* | osf5*)
6471 lt_cv_deplibs_check_method=pass_all
6475 lt_cv_deplibs_check_method=pass_all
6479 lt_cv_deplibs_check_method=pass_all
6482 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6483 lt_cv_deplibs_check_method=pass_all
6487 case $host_vendor in
6489 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]'
6490 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6493 lt_cv_deplibs_check_method=pass_all
6496 lt_cv_file_magic_cmd='/bin/file'
6497 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6500 lt_cv_file_magic_cmd='/bin/file'
6501 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
6502 lt_cv_file_magic_test_file=/lib/libc.so
6505 lt_cv_deplibs_check_method=pass_all
6508 lt_cv_deplibs_check_method=pass_all
6514 lt_cv_deplibs_check_method=pass_all
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
6520 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6521 file_magic_cmd=$lt_cv_file_magic_cmd
6522 deplibs_check_method=$lt_cv_deplibs_check_method
6523 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6537 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
6538 for plugin in $plugin_names; do
6539 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6540 if test x$plugin_so = x$plugin; then
6541 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6543 if test x$plugin_so != x$plugin; then
6544 plugin_option="--plugin $plugin_so"
6549 if test -n "$ac_tool_prefix"; then
6550 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6551 set dummy ${ac_tool_prefix}ar; ac_word=$2
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6553 $as_echo_n "checking
for $ac_word...
" >&6; }
6554 if ${ac_cv_prog_AR+:} false; then :
6555 $as_echo_n "(cached
) " >&6
6557 if test -n "$AR"; then
6558 ac_cv_prog_AR="$AR" # Let the user override the test.
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564 test -z "$as_dir" && as_dir=.
6565 for ac_exec_ext in '' $ac_executable_extensions; do
6566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6567 ac_cv_prog_AR="${ac_tool_prefix}ar"
6568 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6578 if test -n "$AR"; then
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
6580 $as_echo "$AR" >&6; }
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6583 $as_echo "no
" >&6; }
6588 if test -z "$ac_cv_prog_AR"; then
6590 # Extract the first word of "ar", so it can be a program name with args.
6591 set dummy ar; ac_word=$2
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6593 $as_echo_n "checking
for $ac_word...
" >&6; }
6594 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6595 $as_echo_n "(cached
) " >&6
6597 if test -n "$ac_ct_AR"; then
6598 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604 test -z "$as_dir" && as_dir=.
6605 for ac_exec_ext in '' $ac_executable_extensions; do
6606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6607 ac_cv_prog_ac_ct_AR="ar"
6608 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6617 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6618 if test -n "$ac_ct_AR"; then
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
6620 $as_echo "$ac_ct_AR" >&6; }
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6623 $as_echo "no
" >&6; }
6626 if test "x
$ac_ct_AR" = x; then
6629 case $cross_compiling:$ac_tool_warned in
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6632 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6633 ac_tool_warned=yes ;;
6641 test -z "$AR" && AR=ar
6642 if test -n "$plugin_option"; then
6643 if $AR --help 2>&1 | grep -q "\
--plugin"; then
6645 $AR $plugin_option rc conftest.a conftest.c
6646 if test "$?
" != 0; then
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
6648 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
6650 AR="$AR $plugin_option"
6655 test -z "$AR_FLAGS" && AR_FLAGS=cru
6667 if test -n "$ac_tool_prefix"; then
6668 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6669 set dummy ${ac_tool_prefix}strip; ac_word=$2
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6671 $as_echo_n "checking
for $ac_word...
" >&6; }
6672 if ${ac_cv_prog_STRIP+:} false; then :
6673 $as_echo_n "(cached
) " >&6
6675 if test -n "$STRIP"; then
6676 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 test -z "$as_dir" && as_dir=.
6683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6685 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6686 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6695 STRIP=$ac_cv_prog_STRIP
6696 if test -n "$STRIP"; then
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6698 $as_echo "$STRIP" >&6; }
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6701 $as_echo "no
" >&6; }
6706 if test -z "$ac_cv_prog_STRIP"; then
6708 # Extract the first word of "strip
", so it can be a program name with args.
6709 set dummy strip; ac_word=$2
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6711 $as_echo_n "checking
for $ac_word...
" >&6; }
6712 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6713 $as_echo_n "(cached
) " >&6
6715 if test -n "$ac_ct_STRIP"; then
6716 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6725 ac_cv_prog_ac_ct_STRIP="strip
"
6726 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6735 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6736 if test -n "$ac_ct_STRIP"; then
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6738 $as_echo "$ac_ct_STRIP" >&6; }
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6741 $as_echo "no
" >&6; }
6744 if test "x
$ac_ct_STRIP" = x; then
6747 case $cross_compiling:$ac_tool_warned in
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6750 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6751 ac_tool_warned=yes ;;
6756 STRIP="$ac_cv_prog_STRIP"
6759 test -z "$STRIP" && STRIP=:
6766 if test -n "$ac_tool_prefix"; then
6767 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6768 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6770 $as_echo_n "checking
for $ac_word...
" >&6; }
6771 if ${ac_cv_prog_RANLIB+:} false; then :
6772 $as_echo_n "(cached
) " >&6
6774 if test -n "$RANLIB"; then
6775 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 test -z "$as_dir" && as_dir=.
6782 for ac_exec_ext in '' $ac_executable_extensions; do
6783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6784 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6785 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6794 RANLIB=$ac_cv_prog_RANLIB
6795 if test -n "$RANLIB"; then
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6797 $as_echo "$RANLIB" >&6; }
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6800 $as_echo "no
" >&6; }
6805 if test -z "$ac_cv_prog_RANLIB"; then
6806 ac_ct_RANLIB=$RANLIB
6807 # Extract the first word of "ranlib
", so it can be a program name with args.
6808 set dummy ranlib; ac_word=$2
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6810 $as_echo_n "checking
for $ac_word...
" >&6; }
6811 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6812 $as_echo_n "(cached
) " >&6
6814 if test -n "$ac_ct_RANLIB"; then
6815 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 test -z "$as_dir" && as_dir=.
6822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6824 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6825 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6834 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6835 if test -n "$ac_ct_RANLIB"; then
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6837 $as_echo "$ac_ct_RANLIB" >&6; }
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6840 $as_echo "no
" >&6; }
6843 if test "x
$ac_ct_RANLIB" = x; then
6846 case $cross_compiling:$ac_tool_warned in
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6849 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6850 ac_tool_warned=yes ;;
6852 RANLIB=$ac_ct_RANLIB
6855 RANLIB="$ac_cv_prog_RANLIB"
6858 test -z "$RANLIB" && RANLIB=:
6859 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6860 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
6861 RANLIB="$RANLIB $plugin_option"
6870 # Determine commands to create old-style static archives.
6871 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6872 old_postinstall_cmds='chmod 644 $oldlib'
6873 old_postuninstall_cmds=
6875 if test -n "$RANLIB"; then
6878 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
6881 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
6884 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
6889 lock_old_archive_extraction=yes ;;
6891 lock_old_archive_extraction=no ;;
6932 # If no C compiler was specified, use CC.
6935 # If no C compiler flags were specified, use CFLAGS.
6936 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6938 # Allow CC to be a program name with arguments.
6942 # Check for command to grab the raw symbol name followed by C symbol from nm.
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6944 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6945 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6946 $as_echo_n "(cached
) " >&6
6949 # These are sane defaults that work on at least a few old systems.
6950 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6952 # Character class describing NM global symbol codes.
6953 symcode='[BCDEGRST]'
6955 # Regexp to match symbols that can be accessed directly from C.
6956 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6958 # Define system-specific variables.
6963 cygwin* | mingw* | pw32* | cegcc*)
6964 symcode='[ABCDGISTW]'
6967 if test "$host_cpu" = ia64; then
6968 symcode='[ABCDEGRST]'
6972 symcode='[BCDEGRST]'
6975 symcode='[BCDEGQRST]'
6986 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6994 # If we're using GNU nm, then use its standard symbol codes.
6995 case `$NM -V 2>&1` in
6996 *GNU* | *'with BFD'*)
6997 symcode='[ABCDGIRSTW]' ;;
7000 # Transform an extracted symbol line into a proper C declaration.
7001 # Some systems (esp. on ia64) link data and code symbols differently,
7002 # so use this general approach.
7003 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7005 # Transform an extracted symbol line into symbol name and symbol address
7006 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7007 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'"
7009 # Handle CRLF in mingw tool chain
7013 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7017 # Try without a prefix underscore, then with it.
7018 for ac_symprfx in "" "_
"; do
7020 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7021 symxfrm="\\1 $ac_symprfx\\2 \\2"
7023 # Write the raw and C identifiers.
7024 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
7025 # Fake it for dumpbin and say T for any non-static function
7026 # and D for any global variable.
7027 # Also find C++ and __fastcall symbols from MSVC++,
7028 # which start with @ or ?.
7029 lt_cv_sys_global_symbol_pipe="$AWK '"\
7030 " {last_section=section; section=\$ 3};"\
7031 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7032 " \$ 0!~/External *\|/{next};"\
7033 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7034 " {if(hide[section]) next};"\
7035 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7036 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7037 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7038 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7039 " ' prfx
=^
$ac_symprfx"
7041 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7044 # Check to see that the pipe works correctly.
7048 cat > conftest.$ac_ext <<_LT_EOF
7053 void nm_test_func(void);
7054 void nm_test_func(void){}
7058 int main(){nm_test_var='a';nm_test_func();return(0);}
7061 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7062 (eval $ac_compile) 2>&5
7064 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7065 test $ac_status = 0; }; then
7066 # Now try to grab the symbols.
7068 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
7069 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7071 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7072 test $ac_status = 0; } && test -s "$nlist"; then
7073 # Try sorting and uniquifying the output.
7074 if sort "$nlist" | uniq > "$nlist"T; then
7075 mv -f "$nlist"T "$nlist"
7080 # Make sure that we snagged all the symbols we need.
7081 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7082 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7083 cat <<_LT_EOF > conftest.$ac_ext
7089 # Now generate the symbol file.
7090 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7092 cat <<_LT_EOF >> conftest.$ac_ext
7094 /* The mapping between symbol names and symbols. */
7099 lt__PROGRAM__LTX_preloaded_symbols[] =
7101 { "@PROGRAM@
", (void *) 0 },
7103 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7104 cat <<\_LT_EOF >> conftest.$ac_ext
7108 /* This works around a problem in FreeBSD linker */
7109 #ifdef FREEBSD_WORKAROUND
7110 static const void *lt_preloaded_setup() {
7111 return lt__PROGRAM__LTX_preloaded_symbols;
7119 # Now try linking the two files.
7120 mv conftest.$ac_objext conftstm.$ac_objext
7121 lt_save_LIBS="$LIBS"
7122 lt_save_CFLAGS="$CFLAGS"
7123 LIBS="conftstm.
$ac_objext"
7124 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7125 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7126 (eval $ac_link) 2>&5
7128 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7129 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7132 LIBS="$lt_save_LIBS"
7133 CFLAGS="$lt_save_CFLAGS"
7135 echo "cannot
find nm_test_func
in $nlist" >&5
7138 echo "cannot
find nm_test_var
in $nlist" >&5
7141 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
7144 echo "$progname: failed program was
:" >&5
7145 cat conftest.$ac_ext >&5
7147 rm -rf conftest* conftst*
7149 # Do not use the global_symbol_pipe unless it works.
7150 if test "$pipe_works" = yes; then
7153 lt_cv_sys_global_symbol_pipe=
7159 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7160 lt_cv_sys_global_symbol_to_cdecl=
7162 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
7164 $as_echo "failed
" >&6; }
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
7167 $as_echo "ok
" >&6; }
7191 # Check whether --enable-libtool-lock was given.
7192 if test "${enable_libtool_lock+set}" = set; then :
7193 enableval=$enable_libtool_lock;
7196 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
7198 # Some flags need to be propagated to the compiler or linker for good
7202 # Find out which ABI we are using.
7203 echo 'int i;' > conftest.$ac_ext
7204 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7205 (eval $ac_compile) 2>&5
7207 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7208 test $ac_status = 0; }; then
7209 case `/usr/bin/file conftest.$ac_objext` in
7221 # Find out which ABI we are using.
7222 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
7223 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7224 (eval $ac_compile) 2>&5
7226 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7227 test $ac_status = 0; }; then
7228 if test "$lt_cv_prog_gnu_ld" = yes; then
7229 case `/usr/bin/file conftest.$ac_objext` in
7231 LD="${LD-ld} -melf32bsmip"
7234 LD="${LD-ld} -melf32bmipn32"
7237 LD="${LD-ld} -melf64bmip"
7241 case `/usr/bin/file conftest.$ac_objext` in
7257 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7258 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7259 # Find out which ABI we are using.
7260 echo 'int i;' > conftest.$ac_ext
7261 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7262 (eval $ac_compile) 2>&5
7264 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7265 test $ac_status = 0; }; then
7266 case `/usr/bin/file conftest.o` in
7269 x86_64-*kfreebsd*-gnu)
7270 LD="${LD-ld} -m elf_i386_fbsd
"
7273 case `/usr/bin/file conftest.o` in
7275 LD="${LD-ld} -m elf32_x86_64
"
7278 LD="${LD-ld} -m elf_i386
"
7282 powerpc64le-*linux*)
7283 LD="${LD-ld} -m elf32lppclinux
"
7286 LD="${LD-ld} -m elf32ppclinux
"
7289 LD="${LD-ld} -m elf_s390
"
7292 LD="${LD-ld} -m elf32_sparc
"
7298 x86_64-*kfreebsd*-gnu)
7299 LD="${LD-ld} -m elf_x86_64_fbsd
"
7302 LD="${LD-ld} -m elf_x86_64
"
7305 LD="${LD-ld} -m elf64lppc
"
7308 LD="${LD-ld} -m elf64ppc
"
7310 s390*-*linux*|s390*-*tpf*)
7311 LD="${LD-ld} -m elf64_s390
"
7314 LD="${LD-ld} -m elf64_sparc
"
7324 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7325 SAVE_CFLAGS="$CFLAGS"
7326 CFLAGS="$CFLAGS -belf"
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
7328 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
7329 if ${lt_cv_cc_needs_belf+:} false; then :
7330 $as_echo_n "(cached
) " >&6
7333 ac_cpp='$CPP $CPPFLAGS'
7334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7339 /* end confdefs.h. */
7349 if ac_fn_c_try_link "$LINENO"; then :
7350 lt_cv_cc_needs_belf=yes
7352 lt_cv_cc_needs_belf=no
7354 rm -f core conftest.err conftest.$ac_objext \
7355 conftest$ac_exeext conftest.$ac_ext
7357 ac_cpp='$CPP $CPPFLAGS'
7358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
7364 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7365 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7366 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7367 CFLAGS="$SAVE_CFLAGS"
7371 # Find out which ABI we are using.
7372 echo 'int i;' > conftest.$ac_ext
7373 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7374 (eval $ac_compile) 2>&5
7376 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7377 test $ac_status = 0; }; then
7378 case `/usr/bin/file conftest.o` in
7380 case $lt_cv_prog_gnu_ld in
7381 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
7383 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7395 need_locks="$enable_libtool_lock"
7399 rhapsody* | darwin*)
7400 if test -n "$ac_tool_prefix"; then
7401 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7402 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7404 $as_echo_n "checking
for $ac_word...
" >&6; }
7405 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7406 $as_echo_n "(cached
) " >&6
7408 if test -n "$DSYMUTIL"; then
7409 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 test -z "$as_dir" && as_dir=.
7416 for ac_exec_ext in '' $ac_executable_extensions; do
7417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7418 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7419 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7428 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7429 if test -n "$DSYMUTIL"; then
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7431 $as_echo "$DSYMUTIL" >&6; }
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7434 $as_echo "no
" >&6; }
7439 if test -z "$ac_cv_prog_DSYMUTIL"; then
7440 ac_ct_DSYMUTIL=$DSYMUTIL
7441 # Extract the first word of "dsymutil
", so it can be a program name with args.
7442 set dummy dsymutil; ac_word=$2
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7444 $as_echo_n "checking
for $ac_word...
" >&6; }
7445 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7446 $as_echo_n "(cached
) " >&6
7448 if test -n "$ac_ct_DSYMUTIL"; then
7449 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455 test -z "$as_dir" && as_dir=.
7456 for ac_exec_ext in '' $ac_executable_extensions; do
7457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7458 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7459 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7468 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7469 if test -n "$ac_ct_DSYMUTIL"; then
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7471 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7474 $as_echo "no
" >&6; }
7477 if test "x
$ac_ct_DSYMUTIL" = x; then
7480 case $cross_compiling:$ac_tool_warned in
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7483 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7484 ac_tool_warned=yes ;;
7486 DSYMUTIL=$ac_ct_DSYMUTIL
7489 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7492 if test -n "$ac_tool_prefix"; then
7493 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7494 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7496 $as_echo_n "checking
for $ac_word...
" >&6; }
7497 if ${ac_cv_prog_NMEDIT+:} false; then :
7498 $as_echo_n "(cached
) " >&6
7500 if test -n "$NMEDIT"; then
7501 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7507 test -z "$as_dir" && as_dir=.
7508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7510 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7511 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7520 NMEDIT=$ac_cv_prog_NMEDIT
7521 if test -n "$NMEDIT"; then
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7523 $as_echo "$NMEDIT" >&6; }
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7526 $as_echo "no
" >&6; }
7531 if test -z "$ac_cv_prog_NMEDIT"; then
7532 ac_ct_NMEDIT=$NMEDIT
7533 # Extract the first word of "nmedit
", so it can be a program name with args.
7534 set dummy nmedit; ac_word=$2
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7536 $as_echo_n "checking
for $ac_word...
" >&6; }
7537 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7538 $as_echo_n "(cached
) " >&6
7540 if test -n "$ac_ct_NMEDIT"; then
7541 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7550 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7551 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7560 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7561 if test -n "$ac_ct_NMEDIT"; then
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7563 $as_echo "$ac_ct_NMEDIT" >&6; }
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7566 $as_echo "no
" >&6; }
7569 if test "x
$ac_ct_NMEDIT" = x; then
7572 case $cross_compiling:$ac_tool_warned in
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7575 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7576 ac_tool_warned=yes ;;
7578 NMEDIT=$ac_ct_NMEDIT
7581 NMEDIT="$ac_cv_prog_NMEDIT"
7584 if test -n "$ac_tool_prefix"; then
7585 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7586 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7588 $as_echo_n "checking
for $ac_word...
" >&6; }
7589 if ${ac_cv_prog_LIPO+:} false; then :
7590 $as_echo_n "(cached
) " >&6
7592 if test -n "$LIPO"; then
7593 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 test -z "$as_dir" && as_dir=.
7600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7602 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7603 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7612 LIPO=$ac_cv_prog_LIPO
7613 if test -n "$LIPO"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7615 $as_echo "$LIPO" >&6; }
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7618 $as_echo "no
" >&6; }
7623 if test -z "$ac_cv_prog_LIPO"; then
7625 # Extract the first word of "lipo
", so it can be a program name with args.
7626 set dummy lipo; ac_word=$2
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7628 $as_echo_n "checking
for $ac_word...
" >&6; }
7629 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7630 $as_echo_n "(cached
) " >&6
7632 if test -n "$ac_ct_LIPO"; then
7633 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639 test -z "$as_dir" && as_dir=.
7640 for ac_exec_ext in '' $ac_executable_extensions; do
7641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7642 ac_cv_prog_ac_ct_LIPO="lipo
"
7643 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7652 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7653 if test -n "$ac_ct_LIPO"; then
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7655 $as_echo "$ac_ct_LIPO" >&6; }
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7658 $as_echo "no
" >&6; }
7661 if test "x
$ac_ct_LIPO" = x; then
7664 case $cross_compiling:$ac_tool_warned in
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7667 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7668 ac_tool_warned=yes ;;
7673 LIPO="$ac_cv_prog_LIPO"
7676 if test -n "$ac_tool_prefix"; then
7677 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7678 set dummy ${ac_tool_prefix}otool; ac_word=$2
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7680 $as_echo_n "checking
for $ac_word...
" >&6; }
7681 if ${ac_cv_prog_OTOOL+:} false; then :
7682 $as_echo_n "(cached
) " >&6
7684 if test -n "$OTOOL"; then
7685 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 test -z "$as_dir" && as_dir=.
7692 for ac_exec_ext in '' $ac_executable_extensions; do
7693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7694 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7695 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7704 OTOOL=$ac_cv_prog_OTOOL
7705 if test -n "$OTOOL"; then
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7707 $as_echo "$OTOOL" >&6; }
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7710 $as_echo "no
" >&6; }
7715 if test -z "$ac_cv_prog_OTOOL"; then
7717 # Extract the first word of "otool
", so it can be a program name with args.
7718 set dummy otool; ac_word=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7720 $as_echo_n "checking
for $ac_word...
" >&6; }
7721 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7722 $as_echo_n "(cached
) " >&6
7724 if test -n "$ac_ct_OTOOL"; then
7725 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731 test -z "$as_dir" && as_dir=.
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7734 ac_cv_prog_ac_ct_OTOOL="otool
"
7735 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7744 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7745 if test -n "$ac_ct_OTOOL"; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7747 $as_echo "$ac_ct_OTOOL" >&6; }
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7750 $as_echo "no
" >&6; }
7753 if test "x
$ac_ct_OTOOL" = x; then
7756 case $cross_compiling:$ac_tool_warned in
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7759 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7760 ac_tool_warned=yes ;;
7765 OTOOL="$ac_cv_prog_OTOOL"
7768 if test -n "$ac_tool_prefix"; then
7769 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7770 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7772 $as_echo_n "checking
for $ac_word...
" >&6; }
7773 if ${ac_cv_prog_OTOOL64+:} false; then :
7774 $as_echo_n "(cached
) " >&6
7776 if test -n "$OTOOL64"; then
7777 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783 test -z "$as_dir" && as_dir=.
7784 for ac_exec_ext in '' $ac_executable_extensions; do
7785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7786 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7787 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7796 OTOOL64=$ac_cv_prog_OTOOL64
7797 if test -n "$OTOOL64"; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7799 $as_echo "$OTOOL64" >&6; }
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7802 $as_echo "no
" >&6; }
7807 if test -z "$ac_cv_prog_OTOOL64"; then
7808 ac_ct_OTOOL64=$OTOOL64
7809 # Extract the first word of "otool64
", so it can be a program name with args.
7810 set dummy otool64; ac_word=$2
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7812 $as_echo_n "checking
for $ac_word...
" >&6; }
7813 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7814 $as_echo_n "(cached
) " >&6
7816 if test -n "$ac_ct_OTOOL64"; then
7817 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823 test -z "$as_dir" && as_dir=.
7824 for ac_exec_ext in '' $ac_executable_extensions; do
7825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7826 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7827 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7836 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7837 if test -n "$ac_ct_OTOOL64"; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7839 $as_echo "$ac_ct_OTOOL64" >&6; }
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7842 $as_echo "no
" >&6; }
7845 if test "x
$ac_ct_OTOOL64" = x; then
7848 case $cross_compiling:$ac_tool_warned in
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7851 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7852 ac_tool_warned=yes ;;
7854 OTOOL64=$ac_ct_OTOOL64
7857 OTOOL64="$ac_cv_prog_OTOOL64"
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7887 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7888 if ${lt_cv_apple_cc_single_mod+:} false; then :
7889 $as_echo_n "(cached
) " >&6
7891 lt_cv_apple_cc_single_mod=no
7892 if test -z "${LT_MULTI_MODULE}"; then
7893 # By default we will add the -single_module flag. You can override
7894 # by either setting the environment variable LT_MULTI_MODULE
7895 # non-empty at configure time, or by adding -multi_module to the
7897 rm -rf libconftest.dylib*
7898 echo "int foo
(void
){return 1;}" > conftest.c
7899 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7900 -dynamiclib -Wl,-single_module conftest.c
" >&5
7901 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7902 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7904 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7905 lt_cv_apple_cc_single_mod=yes
7907 cat conftest.err >&5
7909 rm -rf libconftest.dylib*
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7914 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7916 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7917 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7918 $as_echo_n "(cached
) " >&6
7920 lt_cv_ld_exported_symbols_list=no
7921 save_LDFLAGS=$LDFLAGS
7922 echo "_main
" > conftest.sym
7923 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h. */
7935 if ac_fn_c_try_link "$LINENO"; then :
7936 lt_cv_ld_exported_symbols_list=yes
7938 lt_cv_ld_exported_symbols_list=no
7940 rm -f core conftest.err conftest.$ac_objext \
7941 conftest$ac_exeext conftest.$ac_ext
7942 LDFLAGS="$save_LDFLAGS"
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7946 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7948 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7949 if ${lt_cv_ld_force_load+:} false; then :
7950 $as_echo_n "(cached
) " >&6
7952 lt_cv_ld_force_load=no
7953 cat > conftest.c << _LT_EOF
7954 int forced_loaded() { return 2;}
7956 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7957 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7958 echo "$AR cru libconftest.a conftest.o
" >&5
7959 $AR cru libconftest.a conftest.o 2>&5
7960 cat > conftest.c << _LT_EOF
7961 int main() { return 0;}
7963 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7964 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7966 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7967 lt_cv_ld_force_load=yes
7969 cat conftest.err >&5
7971 rm -f conftest.err libconftest.a conftest conftest.c
7972 rm -rf conftest.dSYM
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7976 $as_echo "$lt_cv_ld_force_load" >&6; }
7978 rhapsody* | darwin1.[012])
7979 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7981 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7982 darwin*) # darwin 5.x on
7983 # if running on 10.5 or later, the deployment target defaults
7984 # to the OS version, if on x86, and 10.4, the deployment
7985 # target defaults to 10.4. Don't you love it?
7986 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7987 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7988 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7990 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7992 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7996 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7997 _lt_dar_single_mod='$single_module'
7999 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8000 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8002 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8004 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
8005 _lt_dsymutil='~$DSYMUTIL $lib || :'
8012 for ac_header in dlfcn.h
8014 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
" "$ac_includes_default
8016 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
8017 cat >>confdefs.h <<_ACEOF
8018 #define HAVE_DLFCN_H 1
8040 # Check whether --enable-shared was given.
8041 if test "${enable_shared+set}" = set; then :
8042 enableval=$enable_shared; p=${PACKAGE-default}
8044 yes) enable_shared=yes ;;
8045 no) enable_shared=no ;;
8048 # Look at the argument we got. We use all the common list separators.
8049 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8050 for pkg in $enableval; do
8052 if test "X
$pkg" = "X
$p"; then
8071 # Check whether --enable-static was given.
8072 if test "${enable_static+set}" = set; then :
8073 enableval=$enable_static; p=${PACKAGE-default}
8075 yes) enable_static=yes ;;
8076 no) enable_static=no ;;
8079 # Look at the argument we got. We use all the common list separators.
8080 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8081 for pkg in $enableval; do
8083 if test "X
$pkg" = "X
$p"; then
8103 # Check whether --with-pic was given.
8104 if test "${with_pic+set}" = set; then :
8105 withval=$with_pic; pic_mode="$withval"
8111 test -z "$pic_mode" && pic_mode=default
8119 # Check whether --enable-fast-install was given.
8120 if test "${enable_fast_install+set}" = set; then :
8121 enableval=$enable_fast_install; p=${PACKAGE-default}
8123 yes) enable_fast_install=yes ;;
8124 no) enable_fast_install=no ;;
8126 enable_fast_install=no
8127 # Look at the argument we got. We use all the common list separators.
8128 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8129 for pkg in $enableval; do
8131 if test "X
$pkg" = "X
$p"; then
8132 enable_fast_install=yes
8139 enable_fast_install=yes
8152 # This can be used to rebuild libtool when needed
8153 LIBTOOL_DEPS="$ltmain"
8155 # Always use our own libtool.
8156 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8183 test -z "$LN_S" && LN_S="ln -s"
8198 if test -n "${ZSH_VERSION+set}" ; then
8199 setopt NO_GLOB_SUBST
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
8203 $as_echo_n "checking
for objdir...
" >&6; }
8204 if ${lt_cv_objdir+:} false; then :
8205 $as_echo_n "(cached
) " >&6
8207 rm -f .libs 2>/dev/null
8208 mkdir .libs 2>/dev/null
8209 if test -d .libs; then
8212 # MS-DOS does not allow filenames that begin with a dot.
8215 rmdir .libs 2>/dev/null
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
8218 $as_echo "$lt_cv_objdir" >&6; }
8219 objdir=$lt_cv_objdir
8225 cat >>confdefs.h <<_ACEOF
8226 #define LT_OBJDIR "$lt_cv_objdir/"
8234 # AIX sometimes has problems with the GCC collect2 program. For some
8235 # reason, if we set the COLLECT_NAMES environment variable, the problems
8236 # vanish in a puff of smoke.
8237 if test "X
${COLLECT_NAMES+set}" != Xset; then
8239 export COLLECT_NAMES
8246 can_build_shared=yes
8248 # All known linkers require a `.a' archive for static linking (except MSVC,
8249 # which needs '.lib').
8252 with_gnu_ld="$lt_cv_prog_gnu_ld"
8255 old_CFLAGS="$CFLAGS"
8257 # Set sane defaults for various variables
8258 test -z "$CC" && CC=cc
8259 test -z "$LTCC" && LTCC=$CC
8260 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8261 test -z "$LD" && LD=ld
8262 test -z "$ac_objext" && ac_objext=o
8264 for cc_temp in $compiler""; do
8266 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8267 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8272 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
8275 # Only perform the check for file, if the check method requires it
8276 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8277 case $deplibs_check_method in
8279 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
8281 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
8282 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8283 $as_echo_n "(cached
) " >&6
8287 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8290 lt_save_MAGIC_CMD="$MAGIC_CMD"
8291 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8292 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8293 for ac_dir in $ac_dummy; do
8295 test -z "$ac_dir" && ac_dir=.
8296 if test -f $ac_dir/${ac_tool_prefix}file; then
8297 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8298 if test -n "$file_magic_test_file"; then
8299 case $deplibs_check_method in
8301 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8302 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8303 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8304 $EGREP "$file_magic_regex" > /dev/null; then
8309 *** Warning: the command libtool uses to detect shared libraries,
8310 *** $file_magic_cmd, produces output that libtool cannot recognize.
8311 *** The result is that libtool may fail to recognize shared libraries
8312 *** as such. This will affect the creation of libtool libraries that
8313 *** depend on shared libraries, but programs linked with such libtool
8314 *** libraries will work regardless of this problem. Nevertheless, you
8315 *** may want to report the problem to your system manager and/or to
8316 *** bug-libtool@gnu.org
8326 MAGIC_CMD="$lt_save_MAGIC_CMD"
8331 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8332 if test -n "$MAGIC_CMD"; then
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8334 $as_echo "$MAGIC_CMD" >&6; }
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8337 $as_echo "no
" >&6; }
8344 if test -z "$lt_cv_path_MAGIC_CMD"; then
8345 if test -n "$ac_tool_prefix"; then
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
8347 $as_echo_n "checking
for file...
" >&6; }
8348 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8349 $as_echo_n "(cached
) " >&6
8353 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8356 lt_save_MAGIC_CMD="$MAGIC_CMD"
8357 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8358 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8359 for ac_dir in $ac_dummy; do
8361 test -z "$ac_dir" && ac_dir=.
8362 if test -f $ac_dir/file; then
8363 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8364 if test -n "$file_magic_test_file"; then
8365 case $deplibs_check_method in
8367 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8368 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8369 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8370 $EGREP "$file_magic_regex" > /dev/null; then
8375 *** Warning: the command libtool uses to detect shared libraries,
8376 *** $file_magic_cmd, produces output that libtool cannot recognize.
8377 *** The result is that libtool may fail to recognize shared libraries
8378 *** as such. This will affect the creation of libtool libraries that
8379 *** depend on shared libraries, but programs linked with such libtool
8380 *** libraries will work regardless of this problem. Nevertheless, you
8381 *** may want to report the problem to your system manager and/or to
8382 *** bug-libtool@gnu.org
8392 MAGIC_CMD="$lt_save_MAGIC_CMD"
8397 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8398 if test -n "$MAGIC_CMD"; then
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8400 $as_echo "$MAGIC_CMD" >&6; }
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8403 $as_echo "no
" >&6; }
8416 # Use C for the default configuration in the libtool script
8420 ac_cpp='$CPP $CPPFLAGS'
8421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8426 # Source file extension for C test sources.
8429 # Object file extension for compiled C test sources.
8433 # Code to be used in simple compile tests
8434 lt_simple_compile_test_code="int some_variable
= 0;"
8436 # Code to be used in simple link tests
8437 lt_simple_link_test_code='int main(){return(0);}'
8445 # If no C compiler was specified, use CC.
8448 # If no C compiler flags were specified, use CFLAGS.
8449 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8451 # Allow CC to be a program name with arguments.
8454 # Save the default compiler, since it gets overwritten when the other
8455 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8456 compiler_DEFAULT=$CC
8458 # save warnings/boilerplate of simple test code
8459 ac_outfile=conftest.$ac_objext
8460 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8461 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8462 _lt_compiler_boilerplate=`cat conftest.err`
8465 ac_outfile=conftest.$ac_objext
8466 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8467 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8468 _lt_linker_boilerplate=`cat conftest.err`
8473 ## There is no encapsulation within the following macros, do not change
8474 ## the running order or otherwise move them around unless you know exactly
8475 ## what you are doing...
8476 if test -n "$compiler"; then
8478 lt_prog_compiler_no_builtin_flag=
8480 if test "$GCC" = yes; then
8481 case $cc_basename in
8483 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8485 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
8489 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
8490 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8491 $as_echo_n "(cached
) " >&6
8493 lt_cv_prog_compiler_rtti_exceptions=no
8494 ac_outfile=conftest.$ac_objext
8495 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8496 lt_compiler_flag="-fno-rtti -fno-exceptions"
8497 # Insert the option either (1) after the last *FLAGS variable, or
8498 # (2) before a word containing "conftest.
", or (3) at the end.
8499 # Note that $ac_compile itself does not contain backslashes and begins
8500 # with a dollar sign (not a hyphen), so the echo should work correctly.
8501 # The option is referenced via a variable to avoid confusing sed.
8502 lt_compile=`echo "$ac_compile" | $SED \
8503 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8504 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8505 -e 's:$: $lt_compiler_flag:'`
8506 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8507 (eval "$lt_compile" 2>conftest.err)
8509 cat conftest.err >&5
8510 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8511 if (exit $ac_status) && test -s "$ac_outfile"; then
8512 # The compiler can only warn and ignore the option if not recognized
8513 # So say no if there are warnings other than the usual output.
8514 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8515 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8516 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8517 lt_cv_prog_compiler_rtti_exceptions=yes
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
8524 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8526 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8527 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8539 lt_prog_compiler_wl=
8540 lt_prog_compiler_pic=
8541 lt_prog_compiler_static=
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
8544 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
8546 if test "$GCC" = yes; then
8547 lt_prog_compiler_wl='-Wl,'
8548 lt_prog_compiler_static='-static'
8552 # All AIX code is PIC.
8553 if test "$host_cpu" = ia64; then
8554 # AIX 5 now supports IA64 processor
8555 lt_prog_compiler_static='-Bstatic'
8557 lt_prog_compiler_pic='-fPIC'
8563 # see comment about AmigaOS4 .so support
8564 lt_prog_compiler_pic='-fPIC'
8567 # FIXME: we need at least 68020 code to build shared libraries, but
8568 # adding the `-m68020' flag to GCC prevents building anything better,
8570 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8575 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8576 # PIC is the default for these OSes.
8579 mingw* | cygwin* | pw32* | os2* | cegcc*)
8580 # This hack is so that the source file can tell whether it is being
8581 # built for inclusion in a dll (and should export symbols for example).
8582 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8583 # (--disable-auto-import) libraries
8584 lt_prog_compiler_pic='-DDLL_EXPORT'
8587 darwin* | rhapsody*)
8588 # PIC is the default on this platform
8589 # Common symbols not allowed in MH_DYLIB files
8590 lt_prog_compiler_pic='-fno-common'
8594 # PIC is the default for Haiku.
8595 # The "-static" flag exists, but is broken.
8596 lt_prog_compiler_static=
8600 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8601 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8602 # sets the default TLS model and affects inlining.
8608 lt_prog_compiler_pic='-fPIC'
8614 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8615 # Instead, we relocate shared libraries at runtime.
8619 # Just because we use GCC doesn't mean we suddenly get shared libraries
8620 # on systems that don't support them.
8621 lt_prog_compiler_can_build_shared=no
8626 # QNX uses GNU C++, but need to define -shared option too, otherwise
8628 lt_prog_compiler_pic='-fPIC -shared'
8632 if test -d /usr/nec; then
8633 lt_prog_compiler_pic=-Kconform_pic
8638 lt_prog_compiler_pic='-fPIC'
8642 case $cc_basename in
8643 nvcc*) # Cuda Compiler Driver 2.2
8644 lt_prog_compiler_wl='-Xlinker '
8645 lt_prog_compiler_pic='-Xcompiler -fPIC'
8649 # PORTME Check for flag to pass linker flags through the system compiler.
8652 lt_prog_compiler_wl='-Wl,'
8653 if test "$host_cpu" = ia64; then
8654 # AIX 5 now supports IA64 processor
8655 lt_prog_compiler_static='-Bstatic'
8657 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8661 mingw* | cygwin* | pw32* | os2* | cegcc*)
8662 # This hack is so that the source file can tell whether it is being
8663 # built for inclusion in a dll (and should export symbols for example).
8664 lt_prog_compiler_pic='-DDLL_EXPORT'
8667 hpux9* | hpux10* | hpux11*)
8668 lt_prog_compiler_wl='-Wl,'
8669 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8676 lt_prog_compiler_pic='+Z'
8679 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8680 lt_prog_compiler_static='${wl}-a ${wl}archive'
8683 irix5* | irix6* | nonstopux*)
8684 lt_prog_compiler_wl='-Wl,'
8685 # PIC (with -KPIC) is the default.
8686 lt_prog_compiler_static='-non_shared'
8689 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8690 case $cc_basename in
8691 # old Intel for x86_64 which still supported -KPIC.
8693 lt_prog_compiler_wl='-Wl,'
8694 lt_prog_compiler_pic='-KPIC'
8695 lt_prog_compiler_static='-static'
8697 # icc used to be incompatible with GCC.
8698 # ICC 10 doesn't accept -KPIC any more.
8700 lt_prog_compiler_wl='-Wl,'
8701 lt_prog_compiler_pic='-fPIC'
8702 lt_prog_compiler_static='-static'
8704 # Lahey Fortran 8.1.
8706 lt_prog_compiler_wl='-Wl,'
8707 lt_prog_compiler_pic='--shared'
8708 lt_prog_compiler_static='--static'
8710 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8711 # Portland Group compilers (*not* the Pentium gcc compiler,
8712 # which looks to be a dead project)
8713 lt_prog_compiler_wl='-Wl,'
8714 lt_prog_compiler_pic='-fpic'
8715 lt_prog_compiler_static='-Bstatic'
8718 lt_prog_compiler_wl='-Wl,'
8719 # All Alpha code is PIC.
8720 lt_prog_compiler_static='-non_shared'
8722 xl* | bgxl* | bgf* | mpixl*)
8723 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8724 lt_prog_compiler_wl='-Wl,'
8725 lt_prog_compiler_pic='-qpic'
8726 lt_prog_compiler_static='-qstaticlink'
8729 case `$CC -V 2>&1 | sed 5q` in
8730 *Sun\ F* | *Sun*Fortran*)
8731 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8732 lt_prog_compiler_pic='-KPIC'
8733 lt_prog_compiler_static='-Bstatic'
8734 lt_prog_compiler_wl=''
8738 lt_prog_compiler_pic='-KPIC'
8739 lt_prog_compiler_static='-Bstatic'
8740 lt_prog_compiler_wl='-Wl,'
8748 lt_prog_compiler_pic='-KPIC'
8749 lt_prog_compiler_static='-Bstatic'
8753 # QNX uses GNU C++, but need to define -shared option too, otherwise
8755 lt_prog_compiler_pic='-fPIC -shared'
8758 osf3* | osf4* | osf5*)
8759 lt_prog_compiler_wl='-Wl,'
8760 # All OSF/1 code is PIC.
8761 lt_prog_compiler_static='-non_shared'
8765 lt_prog_compiler_static='-non_shared'
8769 lt_prog_compiler_pic='-KPIC'
8770 lt_prog_compiler_static='-Bstatic'
8771 case $cc_basename in
8773 lt_prog_compiler_wl='-Qoption ld ';;
8775 lt_prog_compiler_wl='-Wl,';;
8780 lt_prog_compiler_wl='-Qoption ld '
8781 lt_prog_compiler_pic='-PIC'
8782 lt_prog_compiler_static='-Bstatic'
8785 sysv4 | sysv4.2uw2* | sysv4.3*)
8786 lt_prog_compiler_wl='-Wl,'
8787 lt_prog_compiler_pic='-KPIC'
8788 lt_prog_compiler_static='-Bstatic'
8792 if test -d /usr/nec ;then
8793 lt_prog_compiler_pic='-Kconform_pic'
8794 lt_prog_compiler_static='-Bstatic'
8798 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8799 lt_prog_compiler_wl='-Wl,'
8800 lt_prog_compiler_pic='-KPIC'
8801 lt_prog_compiler_static='-Bstatic'
8805 lt_prog_compiler_wl='-Wl,'
8806 lt_prog_compiler_can_build_shared=no
8810 lt_prog_compiler_pic='-pic'
8811 lt_prog_compiler_static='-Bstatic'
8815 lt_prog_compiler_can_build_shared=no
8821 # For platforms which do not support PIC, -DPIC is meaningless:
8823 lt_prog_compiler_pic=
8826 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
8830 $as_echo "$lt_prog_compiler_pic" >&6; }
8838 # Check to make sure the PIC flag actually works.
8840 if test -n "$lt_prog_compiler_pic"; then
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
8842 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
8843 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8844 $as_echo_n "(cached
) " >&6
8846 lt_cv_prog_compiler_pic_works=no
8847 ac_outfile=conftest.$ac_objext
8848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8849 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8850 # Insert the option either (1) after the last *FLAGS variable, or
8851 # (2) before a word containing "conftest.
", or (3) at the end.
8852 # Note that $ac_compile itself does not contain backslashes and begins
8853 # with a dollar sign (not a hyphen), so the echo should work correctly.
8854 # The option is referenced via a variable to avoid confusing sed.
8855 lt_compile=`echo "$ac_compile" | $SED \
8856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8858 -e 's:$: $lt_compiler_flag:'`
8859 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8860 (eval "$lt_compile" 2>conftest.err)
8862 cat conftest.err >&5
8863 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8864 if (exit $ac_status) && test -s "$ac_outfile"; then
8865 # The compiler can only warn and ignore the option if not recognized
8866 # So say no if there are warnings other than the usual output.
8867 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8868 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8869 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8870 lt_cv_prog_compiler_pic_works=yes
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
8877 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8879 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8880 case $lt_prog_compiler_pic in
8882 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8885 lt_prog_compiler_pic=
8886 lt_prog_compiler_can_build_shared=no
8897 # Check to make sure the static flag actually works.
8899 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
8901 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
8902 if ${lt_cv_prog_compiler_static_works+:} false; then :
8903 $as_echo_n "(cached
) " >&6
8905 lt_cv_prog_compiler_static_works=no
8906 save_LDFLAGS="$LDFLAGS"
8907 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8908 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8909 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8910 # The linker can only warn and ignore the option if not recognized
8911 # So say no if there are warnings
8912 if test -s conftest.err; then
8913 # Append any errors to the config.log.
8914 cat conftest.err 1>&5
8915 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8916 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8917 if diff conftest.exp conftest.er2 >/dev/null; then
8918 lt_cv_prog_compiler_static_works=yes
8921 lt_cv_prog_compiler_static_works=yes
8925 LDFLAGS="$save_LDFLAGS"
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
8929 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8931 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8934 lt_prog_compiler_static=
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
8944 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
8945 if ${lt_cv_prog_compiler_c_o+:} false; then :
8946 $as_echo_n "(cached
) " >&6
8948 lt_cv_prog_compiler_c_o=no
8949 $RM -r conftest 2>/dev/null
8953 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8955 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
8956 # Insert the option either (1) after the last *FLAGS variable, or
8957 # (2) before a word containing "conftest.
", or (3) at the end.
8958 # Note that $ac_compile itself does not contain backslashes and begins
8959 # with a dollar sign (not a hyphen), so the echo should work correctly.
8960 lt_compile=`echo "$ac_compile" | $SED \
8961 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8962 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8963 -e 's:$: $lt_compiler_flag:'`
8964 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
8965 (eval "$lt_compile" 2>out/conftest.err)
8967 cat out/conftest.err >&5
8968 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8969 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8971 # The compiler can only warn and ignore the option if not recognized
8972 # So say no if there are warnings
8973 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8974 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8975 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8976 lt_cv_prog_compiler_c_o=yes
8981 # SGI C++ compiler will create directory out/ii_files/ for
8982 # template instantiation
8983 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8984 $RM out/* && rmdir out
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
8991 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
8999 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
9000 if ${lt_cv_prog_compiler_c_o+:} false; then :
9001 $as_echo_n "(cached
) " >&6
9003 lt_cv_prog_compiler_c_o=no
9004 $RM -r conftest 2>/dev/null
9008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9010 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
9011 # Insert the option either (1) after the last *FLAGS variable, or
9012 # (2) before a word containing "conftest.
", or (3) at the end.
9013 # Note that $ac_compile itself does not contain backslashes and begins
9014 # with a dollar sign (not a hyphen), so the echo should work correctly.
9015 lt_compile=`echo "$ac_compile" | $SED \
9016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9018 -e 's:$: $lt_compiler_flag:'`
9019 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9020 (eval "$lt_compile" 2>out/conftest.err)
9022 cat out/conftest.err >&5
9023 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9024 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9026 # The compiler can only warn and ignore the option if not recognized
9027 # So say no if there are warnings
9028 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9029 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9030 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9031 lt_cv_prog_compiler_c_o=yes
9036 # SGI C++ compiler will create directory out/ii_files/ for
9037 # template instantiation
9038 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9039 $RM out/* && rmdir out
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9046 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9051 hard_links="nottested
"
9052 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9053 # do not overwrite the value of need_locks provided by the user
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
9055 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
9058 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9060 ln conftest.a conftest.b 2>&5 || hard_links=no
9061 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
9063 $as_echo "$hard_links" >&6; }
9064 if test "$hard_links" = no; then
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
9066 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
9079 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
9082 allow_undefined_flag=
9083 always_export_symbols=no
9085 archive_expsym_cmds=
9086 compiler_needs_object=no
9087 enable_shared_with_static_runtimes=no
9088 export_dynamic_flag_spec=
9089 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9090 hardcode_automatic=no
9092 hardcode_direct_absolute=no
9093 hardcode_libdir_flag_spec=
9094 hardcode_libdir_flag_spec_ld=
9095 hardcode_libdir_separator=
9097 hardcode_shlibpath_var=unsupported
9099 link_all_deplibs=unknown
9102 old_archive_from_new_cmds=
9103 old_archive_from_expsyms_cmds=
9104 thread_safe_flag_spec=
9105 whole_archive_flag_spec=
9106 # include_expsyms should be a list of space-separated symbols to be *always*
9107 # included in the symbol list
9109 # exclude_expsyms can be an extended regexp of symbols to exclude
9110 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9111 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9112 # as well as any symbol that contains `d'.
9113 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9114 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9115 # platforms (ab)use it in PIC code, but their linkers get confused if
9116 # the symbol is explicitly referenced. Since portable code cannot
9117 # rely on this symbol name, it's probably fine to never include it in
9118 # preloaded symbol tables.
9119 # Exclude shared library initialization/finalization symbols.
9120 extract_expsyms_cmds=
9123 cygwin* | mingw* | pw32* | cegcc*)
9124 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9125 # When not using gcc, we currently assume that we are using
9126 # Microsoft Visual C++.
9127 if test "$GCC" != yes; then
9132 # we just hope/assume this is gcc and not c89 (= MSVC++)
9142 # On some targets, GNU ld is compatible enough with the native linker
9143 # that we're better off using the native interface for both.
9144 lt_use_gnu_ld_interface=no
9145 if test "$with_gnu_ld" = yes; then
9148 # The AIX port of GNU ld has always aspired to compatibility
9149 # with the native linker. However, as the warning in the GNU ld
9150 # block says, versions before 2.19.5* couldn't really create working
9151 # shared libraries, regardless of the interface used.
9152 case `$LD -v 2>&1` in
9153 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9154 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9155 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9157 lt_use_gnu_ld_interface=yes
9162 lt_use_gnu_ld_interface=yes
9167 if test "$lt_use_gnu_ld_interface" = yes; then
9168 # If archive_cmds runs LD, not CC, wlarc should be empty
9171 # Set some defaults for GNU ld with shared library support. These
9172 # are reset later if shared libraries are not supported. Putting them
9173 # here allows them to be overridden if necessary.
9174 runpath_var=LD_RUN_PATH
9175 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9176 export_dynamic_flag_spec='${wl}--export-dynamic'
9177 # ancient GNU ld didn't support --whole-archive et. al.
9178 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9179 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9181 whole_archive_flag_spec=
9183 supports_anon_versioning=no
9184 case `$LD -v 2>&1` in
9185 *GNU\ gold*) supports_anon_versioning=yes ;;
9186 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9187 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9188 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9189 *\ 2.11.*) ;; # other 2.11 versions
9190 *) supports_anon_versioning=yes ;;
9193 # See if GNU ld supports shared libraries.
9196 # On AIX/PPC, the GNU linker is very broken
9197 if test "$host_cpu" != ia64; then
9201 *** Warning: the GNU linker, at least up to release 2.19, is reported
9202 *** to be unable to reliably create shared libraries on AIX.
9203 *** Therefore, libtool is disabling shared libraries support. If you
9204 *** really care for shared libraries, you may want to install binutils
9205 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9206 *** You will then need to restart the configuration process.
9215 # see comment about AmigaOS4 .so support
9216 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9217 archive_expsym_cmds=''
9220 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)'
9221 hardcode_libdir_flag_spec
='-L$libdir'
9222 hardcode_minus_L
=yes
9228 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9229 allow_undefined_flag
=unsupported
9230 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9231 # support --undefined. This deserves some investigation. FIXME
9232 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9238 cygwin
* | mingw
* | pw32
* | cegcc
*)
9239 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9240 # as there is no search path for DLLs.
9241 hardcode_libdir_flag_spec
='-L$libdir'
9242 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9243 allow_undefined_flag
=unsupported
9244 always_export_symbols
=no
9245 enable_shared_with_static_runtimes
=yes
9246 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9248 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9249 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9250 # If the export-symbols file already is a .def file (1st line
9251 # is EXPORTS), use it as is; otherwise, prepend...
9252 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9253 cp $export_symbols $output_objdir/$soname.def;
9255 echo EXPORTS > $output_objdir/$soname.def;
9256 cat $export_symbols >> $output_objdir/$soname.def;
9258 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9265 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9266 link_all_deplibs
=yes
9271 hardcode_shlibpath_var
=no
9272 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9273 export_dynamic_flag_spec
='${wl}-E'
9274 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9275 # Instead, shared libraries are loaded at an image base (0x10000000 by
9276 # default) and relocated if they conflict, which is a slow very memory
9277 # consuming and fragmenting process. To avoid this, we pick a random,
9278 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9279 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9280 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9281 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'
9284 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9286 if test "$host_os" = linux-dietlibc
; then
9287 case $cc_basename in
9288 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9291 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9292 && test "$tmp_diet" = no
9294 tmp_addflag
=' $pic_flag'
9295 tmp_sharedflag
='-shared'
9296 case $cc_basename,$host_cpu in
9297 pgcc
*) # Portland Group C compiler
9298 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9299 tmp_addflag
=' $pic_flag'
9301 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9302 # Portland Group f77 and f90 compilers
9303 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9304 tmp_addflag
=' $pic_flag -Mnomain' ;;
9305 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9306 tmp_addflag
=' -i_dynamic' ;;
9307 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9308 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9309 ifc
* | ifort
*) # Intel Fortran compiler
9310 tmp_addflag
=' -nofor_main' ;;
9311 lf95
*) # Lahey Fortran 8.1
9312 whole_archive_flag_spec
=
9313 tmp_sharedflag
='--shared' ;;
9314 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9315 tmp_sharedflag
='-qmkshrobj'
9317 nvcc
*) # Cuda Compiler Driver 2.2
9318 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9319 compiler_needs_object
=yes
9322 case `$CC -V 2>&1 | sed 5q` in
9323 *Sun\ C
*) # Sun C 5.9
9324 whole_archive_flag_spec
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9325 compiler_needs_object
=yes
9326 tmp_sharedflag
='-G' ;;
9327 *Sun\ F
*) # Sun Fortran 8.3
9328 tmp_sharedflag
='-G' ;;
9330 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9332 if test "x$supports_anon_versioning" = xyes
; then
9333 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9334 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9335 echo "local: *; };" >> $output_objdir/$libname.ver~
9336 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9339 case $cc_basename in
9340 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9341 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9342 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9343 hardcode_libdir_flag_spec
=
9344 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9345 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9346 if test "x$supports_anon_versioning" = xyes
; then
9347 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9348 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9349 echo "local: *; };" >> $output_objdir/$libname.ver~
9350 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9360 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9361 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9364 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9365 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9370 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9374 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9375 *** create shared libraries on Solaris systems. Therefore, libtool
9376 *** is disabling shared libraries support. We urge you to upgrade GNU
9377 *** binutils to release 2.9.1 or newer. Another option is to modify
9378 *** your PATH or compiler configuration so that the native linker is
9379 *** used, and then restart.
9382 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9383 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9384 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9390 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9391 case `$LD -v 2>&1` in
9392 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9396 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9397 *** reliably create shared libraries on SCO systems. Therefore, libtool
9398 *** is disabling shared libraries support. We urge you to upgrade GNU
9399 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9400 *** your PATH or compiler configuration so that the native linker is
9401 *** used, and then restart.
9406 # For security reasons, it is highly recommended that you always
9407 # use absolute paths for naming shared libraries, and exclude the
9408 # DT_RUNPATH tag from executables and libraries. But doing so
9409 # requires that you compile everything twice, which is a pain.
9410 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9411 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9412 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9413 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9422 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9425 hardcode_shlibpath_var
=no
9429 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9430 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9431 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9438 if test "$ld_shlibs" = no
; then
9440 hardcode_libdir_flag_spec
=
9441 export_dynamic_flag_spec
=
9442 whole_archive_flag_spec
=
9445 # PORTME fill in a description of your system's linker (not GNU ld)
9448 allow_undefined_flag
=unsupported
9449 always_export_symbols
=yes
9450 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'
9451 # Note: this linker hardcodes the directories in LIBPATH if there
9452 # are no directories specified by -L.
9453 hardcode_minus_L
=yes
9454 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9455 # Neither direct hardcoding nor static linking is supported with a
9457 hardcode_direct
=unsupported
9462 if test "$host_cpu" = ia64
; then
9463 # On IA64, the linker does run time linking by default, so we don't
9464 # have to do anything special.
9465 aix_use_runtimelinking
=no
9466 exp_sym_flag
='-Bexport'
9469 # If we're using GNU nm, then we don't want the "-C" option.
9470 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9471 # Also, AIX nm treats weak defined symbols like other global
9472 # defined symbols, whereas GNU nm marks them as "W".
9473 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9474 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9476 export_symbols_cmds
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9478 aix_use_runtimelinking
=no
9480 # Test if we are trying to use run time linking or normal
9481 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9482 # need to do runtime linking.
9483 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9484 for ld_flag
in $LDFLAGS; do
9485 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9486 aix_use_runtimelinking
=yes
9493 exp_sym_flag
='-bexport'
9494 no_entry_flag
='-bnoentry'
9497 # When large executables or shared objects are built, AIX ld can
9498 # have problems creating the table of contents. If linking a library
9499 # or program results in "error TOC overflow" add -mminimal-toc to
9500 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9501 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9505 hardcode_direct_absolute
=yes
9506 hardcode_libdir_separator
=':'
9507 link_all_deplibs
=yes
9508 file_list_spec
='${wl}-f,'
9510 if test "$GCC" = yes; then
9511 case $host_os in aix4.
[012]|aix4.
[012].
*)
9512 # We only want to do this on AIX 4.2 and lower, the check
9513 # below for broken collect2 doesn't work under 4.3+
9514 collect2name
=`${CC} -print-prog-name=collect2`
9515 if test -f "$collect2name" &&
9516 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9518 # We have reworked collect2
9521 # We have old collect2
9522 hardcode_direct
=unsupported
9523 # It fails to find uninstalled libraries when the uninstalled
9524 # path is not listed in the libpath. Setting hardcode_minus_L
9525 # to unsupported forces relinking
9526 hardcode_minus_L
=yes
9527 hardcode_libdir_flag_spec
='-L$libdir'
9528 hardcode_libdir_separator
=
9532 shared_flag
='-shared'
9533 if test "$aix_use_runtimelinking" = yes; then
9534 shared_flag
="$shared_flag "'${wl}-G'
9538 if test "$host_cpu" = ia64
; then
9539 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9540 # chokes on -Wl,-G. The following line is correct:
9543 if test "$aix_use_runtimelinking" = yes; then
9544 shared_flag
='${wl}-G'
9546 shared_flag
='${wl}-bM:SRE'
9551 export_dynamic_flag_spec
='${wl}-bexpall'
9552 # It seems that -bexpall does not export symbols beginning with
9553 # underscore (_), so it is better to generate a list of symbols to export.
9554 always_export_symbols
=yes
9555 if test "$aix_use_runtimelinking" = yes; then
9556 # Warning - without using the other runtime loading flags (-brtl),
9557 # -berok will link without error, but may produce a broken library.
9558 allow_undefined_flag
='-berok'
9559 # Determine the default libpath from the value encoded in an
9561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9562 /* end confdefs.h. */
9572 if ac_fn_c_try_link
"$LINENO"; then :
9574 lt_aix_libpath_sed
='
9575 /Import File Strings/,/^$/ {
9581 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9582 # Check for a 64-bit object if we didn't find anything.
9583 if test -z "$aix_libpath"; then
9584 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9587 rm -f core conftest.err conftest.
$ac_objext \
9588 conftest
$ac_exeext conftest.
$ac_ext
9589 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9591 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9592 archive_expsym_cmds
='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9594 if test "$host_cpu" = ia64
; then
9595 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9596 allow_undefined_flag
="-z nodefs"
9597 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"
9599 # Determine the default libpath from the value encoded in an
9601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9602 /* end confdefs.h. */
9612 if ac_fn_c_try_link
"$LINENO"; then :
9614 lt_aix_libpath_sed
='
9615 /Import File Strings/,/^$/ {
9621 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9622 # Check for a 64-bit object if we didn't find anything.
9623 if test -z "$aix_libpath"; then
9624 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9627 rm -f core conftest.err conftest.
$ac_objext \
9628 conftest
$ac_exeext conftest.
$ac_ext
9629 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9631 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9632 # Warning - without using the other run time loading flags,
9633 # -berok will link without error, but may produce a broken library.
9634 no_undefined_flag
=' ${wl}-bernotok'
9635 allow_undefined_flag
=' ${wl}-berok'
9636 if test "$with_gnu_ld" = yes; then
9637 # We only use this code for GNU lds that support --whole-archive.
9638 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9640 # Exported symbols can be pulled into shared objects from archives
9641 whole_archive_flag_spec
='$convenience'
9643 archive_cmds_need_lc
=yes
9644 # This is similar to how AIX traditionally builds its shared libraries.
9645 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'
9653 # see comment about AmigaOS4 .so support
9654 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9655 archive_expsym_cmds
=''
9658 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)'
9659 hardcode_libdir_flag_spec
='-L$libdir'
9660 hardcode_minus_L
=yes
9666 export_dynamic_flag_spec
=-rdynamic
9669 cygwin
* | mingw
* | pw32
* | cegcc
*)
9670 # When not using gcc, we currently assume that we are using
9671 # Microsoft Visual C++.
9672 # hardcode_libdir_flag_spec is actually meaningless, as there is
9673 # no search path for DLLs.
9674 hardcode_libdir_flag_spec
=' '
9675 allow_undefined_flag
=unsupported
9676 # Tell ltmain to make .lib files, not .a files.
9678 # Tell ltmain to make .dll files, not .so files.
9680 # FIXME: Setting linknames here is a bad hack.
9681 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9682 # The linker will automatically build a .lib file if we build a DLL.
9683 old_archive_from_new_cmds
='true'
9684 # FIXME: Should let the user specify the lib program.
9685 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9686 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9687 enable_shared_with_static_runtimes
=yes
9690 darwin
* | rhapsody
*)
9693 archive_cmds_need_lc
=no
9695 hardcode_automatic
=yes
9696 hardcode_shlibpath_var
=unsupported
9697 if test "$lt_cv_ld_force_load" = "yes"; then
9698 whole_archive_flag_spec
='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9700 whole_archive_flag_spec
=''
9702 link_all_deplibs
=yes
9703 allow_undefined_flag
="$_lt_dar_allow_undefined"
9704 case $cc_basename in
9705 ifort
*) _lt_dar_can_shared
=yes ;;
9706 *) _lt_dar_can_shared
=$GCC ;;
9708 if test "$_lt_dar_can_shared" = "yes"; then
9709 output_verbose_link_cmd
=func_echo_all
9710 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9711 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9712 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}"
9713 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}"
9722 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9723 hardcode_libdir_flag_spec
='-L$libdir'
9724 hardcode_shlibpath_var
=no
9727 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9728 # support. Future versions do this automatically, but an explicit c++rt0.o
9729 # does not break anything, and helps significantly (at the cost of a little
9732 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9733 hardcode_libdir_flag_spec
='-R$libdir'
9735 hardcode_shlibpath_var
=no
9738 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9740 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9742 hardcode_minus_L
=yes
9743 hardcode_shlibpath_var
=no
9746 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9747 freebsd
* | dragonfly
*)
9748 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9749 hardcode_libdir_flag_spec
='-R$libdir'
9751 hardcode_shlibpath_var
=no
9755 if test "$GCC" = yes; then
9756 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'
9758 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'
9760 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9761 hardcode_libdir_separator
=:
9764 # hardcode_minus_L: Not really in the search PATH,
9765 # but as the default location of the library.
9766 hardcode_minus_L
=yes
9767 export_dynamic_flag_spec
='${wl}-E'
9771 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9772 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9774 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9776 if test "$with_gnu_ld" = no
; then
9777 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9778 hardcode_libdir_flag_spec_ld
='+b $libdir'
9779 hardcode_libdir_separator
=:
9781 hardcode_direct_absolute
=yes
9782 export_dynamic_flag_spec
='${wl}-E'
9783 # hardcode_minus_L: Not really in the search PATH,
9784 # but as the default location of the library.
9785 hardcode_minus_L
=yes
9790 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9793 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9796 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9799 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9805 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9808 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9812 # Older versions of the 11.00 compiler do not understand -b yet
9813 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9815 $as_echo_n "checking if $CC understands -b... " >&6; }
9816 if ${lt_cv_prog_compiler__b+:} false
; then :
9817 $as_echo_n "(cached) " >&6
9819 lt_cv_prog_compiler__b
=no
9820 save_LDFLAGS
="$LDFLAGS"
9821 LDFLAGS
="$LDFLAGS -b"
9822 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9823 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9824 # The linker can only warn and ignore the option if not recognized
9825 # So say no if there are warnings
9826 if test -s conftest.err
; then
9827 # Append any errors to the config.log.
9828 cat conftest.err
1>&5
9829 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9830 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9831 if diff conftest.exp conftest.er2
>/dev
/null
; then
9832 lt_cv_prog_compiler__b
=yes
9835 lt_cv_prog_compiler__b
=yes
9839 LDFLAGS
="$save_LDFLAGS"
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9843 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9845 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9846 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9848 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9854 if test "$with_gnu_ld" = no
; then
9855 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9856 hardcode_libdir_separator
=:
9861 hardcode_shlibpath_var
=no
9865 hardcode_direct_absolute
=yes
9866 export_dynamic_flag_spec
='${wl}-E'
9868 # hardcode_minus_L: Not really in the search PATH,
9869 # but as the default location of the library.
9870 hardcode_minus_L
=yes
9876 irix5
* | irix6
* | nonstopux
*)
9877 if test "$GCC" = yes; then
9878 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9879 # Try to use the -exported_symbol ld option, if it does not
9880 # work, assume that -exports_file does not work either and
9881 # implicitly export all symbols.
9882 save_LDFLAGS
="$LDFLAGS"
9883 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9885 /* end confdefs.h. */
9888 if ac_fn_c_try_link
"$LINENO"; then :
9889 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9892 rm -f core conftest.err conftest.
$ac_objext \
9893 conftest
$ac_exeext conftest.
$ac_ext
9894 LDFLAGS
="$save_LDFLAGS"
9896 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9897 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9899 archive_cmds_need_lc
='no'
9900 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9901 hardcode_libdir_separator
=:
9903 link_all_deplibs
=yes
9907 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9908 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9910 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9912 hardcode_libdir_flag_spec
='-R$libdir'
9914 hardcode_shlibpath_var
=no
9918 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9920 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9921 hardcode_libdir_separator
=:
9922 hardcode_shlibpath_var
=no
9929 if test -f /usr
/libexec
/ld.so
; then
9931 hardcode_shlibpath_var
=no
9932 hardcode_direct_absolute
=yes
9933 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9934 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9935 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9936 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9937 export_dynamic_flag_spec
='${wl}-E'
9940 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9941 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9942 hardcode_libdir_flag_spec
='-R$libdir'
9945 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9946 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9956 hardcode_libdir_flag_spec
='-L$libdir'
9957 hardcode_minus_L
=yes
9958 allow_undefined_flag
=unsupported
9959 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'
9960 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9964 if test "$GCC" = yes; then
9965 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9966 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9968 allow_undefined_flag
=' -expect_unresolved \*'
9969 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9971 archive_cmds_need_lc
='no'
9972 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9973 hardcode_libdir_separator
=:
9976 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9977 if test "$GCC" = yes; then
9978 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9979 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9980 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9982 allow_undefined_flag
=' -expect_unresolved \*'
9983 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9984 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~
9985 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9987 # Both c and cxx compiler support -rpath directly
9988 hardcode_libdir_flag_spec
='-rpath $libdir'
9990 archive_cmds_need_lc
='no'
9991 hardcode_libdir_separator
=:
9995 no_undefined_flag
=' -z defs'
9996 if test "$GCC" = yes; then
9998 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9999 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10000 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10002 case `$CC -V 2>&1` in
10005 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10006 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10007 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10011 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10012 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10013 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10017 hardcode_libdir_flag_spec
='-R$libdir'
10018 hardcode_shlibpath_var
=no
10020 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10022 # The compiler driver will combine and reorder linker options,
10023 # but understands `-z linker_flag'. GCC discards it without `$wl',
10024 # but is careful enough not to reorder.
10025 # Supported since Solaris 2.6 (maybe 2.5.1?)
10026 if test "$GCC" = yes; then
10027 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10029 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10033 link_all_deplibs
=yes
10037 if test "x$host_vendor" = xsequent
; then
10038 # Use $CC to link under sequent, because it throws in some extra .o
10039 # files that make .init and .fini sections work.
10040 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10042 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10044 hardcode_libdir_flag_spec
='-L$libdir'
10045 hardcode_direct
=yes
10046 hardcode_minus_L
=yes
10047 hardcode_shlibpath_var
=no
10051 case $host_vendor in
10053 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10054 hardcode_direct
=yes # is this really true???
10057 ## LD is ld it makes a PLAMLIB
10058 ## CC just makes a GrossModule.
10059 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10060 reload_cmds
='$CC -r -o $output$reload_objs'
10064 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10065 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10068 runpath_var
='LD_RUN_PATH'
10069 hardcode_shlibpath_var
=no
10073 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10074 hardcode_shlibpath_var
=no
10075 export_dynamic_flag_spec
='-Bexport'
10079 if test -d /usr
/nec
; then
10080 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10081 hardcode_shlibpath_var
=no
10082 runpath_var
=LD_RUN_PATH
10083 hardcode_runpath_var
=yes
10088 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10089 no_undefined_flag
='${wl}-z,text'
10090 archive_cmds_need_lc
=no
10091 hardcode_shlibpath_var
=no
10092 runpath_var
='LD_RUN_PATH'
10094 if test "$GCC" = yes; then
10095 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10096 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10098 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10099 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10103 sysv5
* | sco3.2v5
* | sco5v6
*)
10104 # Note: We can NOT use -z defs as we might desire, because we do not
10105 # link with -lc, and that would cause any symbols used from libc to
10106 # always be unresolved, which means just about no library would
10107 # ever link correctly. If we're not using GNU ld we use -z text
10108 # though, which does catch some bad symbols but isn't as heavy-handed
10110 no_undefined_flag
='${wl}-z,text'
10111 allow_undefined_flag
='${wl}-z,nodefs'
10112 archive_cmds_need_lc
=no
10113 hardcode_shlibpath_var
=no
10114 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10115 hardcode_libdir_separator
=':'
10116 link_all_deplibs
=yes
10117 export_dynamic_flag_spec
='${wl}-Bexport'
10118 runpath_var
='LD_RUN_PATH'
10120 if test "$GCC" = yes; then
10121 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10122 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10124 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10125 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10130 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10131 hardcode_libdir_flag_spec
='-L$libdir'
10132 hardcode_shlibpath_var
=no
10140 if test x
$host_vendor = xsni
; then
10142 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10143 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10150 $as_echo "$ld_shlibs" >&6; }
10151 test "$ld_shlibs" = no
&& can_build_shared
=no
10153 with_gnu_ld
=$with_gnu_ld
10170 # Do we need to explicitly link libc?
10172 case "x$archive_cmds_need_lc" in
10174 # Assume -lc should be added
10175 archive_cmds_need_lc
=yes
10177 if test "$enable_shared" = yes && test "$GCC" = yes; then
10178 case $archive_cmds in
10180 # FIXME: we may have to deal with multi-command sequences.
10183 # Test whether the compiler implicitly links with -lc since on some
10184 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10185 # to ld, don't add -lc before -lgcc.
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10187 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10188 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10189 $as_echo_n "(cached) " >&6
10192 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10195 (eval $ac_compile) 2>&5
10197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10198 test $ac_status = 0; } 2>conftest.err
; then
10201 libobjs
=conftest.
$ac_objext
10203 wl
=$lt_prog_compiler_wl
10204 pic_flag
=$lt_prog_compiler_pic
10210 lt_save_allow_undefined_flag
=$allow_undefined_flag
10211 allow_undefined_flag
=
10212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10213 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10216 test $ac_status = 0; }
10218 lt_cv_archive_cmds_need_lc
=no
10220 lt_cv_archive_cmds_need_lc
=yes
10222 allow_undefined_flag
=$lt_save_allow_undefined_flag
10224 cat conftest.err
1>&5
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10230 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10231 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10395 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10397 if test "$GCC" = yes; then
10399 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10400 *) lt_awk_arg
="/^libraries:/" ;;
10403 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10404 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10406 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10407 case $lt_search_path_spec in
10409 # if the path contains ";" then we assume it to be the separator
10410 # otherwise default to the standard path separator (i.e. ":") - it is
10411 # assumed that no part of a normal pathname contains ";" but that should
10412 # okay in the real world where ";" in dirpaths is itself problematic.
10413 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10416 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10419 # Ok, now we have the path, separated by spaces, we can step through it
10420 # and add multilib dir if necessary.
10421 lt_tmp_lt_search_path_spec
=
10422 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10423 for lt_sys_path
in $lt_search_path_spec; do
10424 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10425 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10427 test -d "$lt_sys_path" && \
10428 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10431 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10432 BEGIN {RS=" "; FS="/|\n";} {
10435 for (lt_i = NF; lt_i > 0; lt_i--) {
10436 if ($lt_i != "" && $lt_i != ".") {
10437 if ($lt_i == "..") {
10440 if (lt_count == 0) {
10441 lt_foo="/" $lt_i lt_foo;
10448 if (lt_foo != "") { lt_freq[lt_foo]++; }
10449 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10451 # AWK program above erroneously prepends '/' to C:/dos/paths
10454 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10455 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10457 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10459 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10461 library_names_spec
=
10462 libname_spec
='lib$name'
10466 postuninstall_cmds
=
10470 shlibpath_overrides_runpath
=unknown
10472 dynamic_linker
="$host_os ld.so"
10473 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10474 need_lib_prefix
=unknown
10475 hardcode_into_libs
=no
10477 # when you set need_version to no, make sure it does not cause -set_version
10478 # flags to be left without arguments
10479 need_version
=unknown
10484 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10485 shlibpath_var
=LIBPATH
10487 # AIX 3 has no versioning support, so we append a major version to the name.
10488 soname_spec
='${libname}${release}${shared_ext}$major'
10495 hardcode_into_libs
=yes
10496 if test "$host_cpu" = ia64
; then
10497 # AIX 5 supports IA64
10498 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10499 shlibpath_var
=LD_LIBRARY_PATH
10501 # With GCC up to 2.95.x, collect2 would create an import file
10502 # for dependence libraries. The import file would start with
10503 # the line `#! .'. This would cause the generated library to
10504 # depend on `.', always an invalid library. This was fixed in
10505 # development snapshots of GCC prior to 3.0.
10507 aix4 | aix4.
[01] | aix4.
[01].
*)
10508 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10510 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10513 can_build_shared
=no
10517 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10518 # soname into executable. Probably we can add versioning support to
10519 # collect2, so additional links can be useful in future.
10520 if test "$aix_use_runtimelinking" = yes; then
10521 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10522 # instead of lib<name>.a to let people know that these are not
10523 # typical AIX shared libraries.
10524 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10526 # We preserve .a as extension for shared libraries through AIX4.2
10527 # and later when we are not doing run time linking.
10528 library_names_spec
='${libname}${release}.a $libname.a'
10529 soname_spec
='${libname}${release}${shared_ext}$major'
10531 shlibpath_var
=LIBPATH
10538 # Since July 2007 AmigaOS4 officially supports .so libraries.
10539 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10540 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10543 library_names_spec
='$libname.ixlibrary $libname.a'
10544 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10545 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10551 library_names_spec
='${libname}${shared_ext}'
10552 dynamic_linker
="$host_os ld.so"
10553 shlibpath_var
=LIBRARY_PATH
10559 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10560 soname_spec
='${libname}${release}${shared_ext}$major'
10561 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10562 shlibpath_var
=LD_LIBRARY_PATH
10563 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10564 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10565 # the default ld.so.conf also contains /usr/contrib/lib and
10566 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10567 # libtool to hard-code these into programs
10570 cygwin
* | mingw
* | pw32
* | cegcc
*)
10571 version_type
=windows
10576 case $GCC,$host_os in
10577 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
10578 library_names_spec
='$libname.dll.a'
10579 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10580 postinstall_cmds
='base_file=`basename \${file}`~
10581 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10582 dldir=$destdir/`dirname \$dlpath`~
10583 test -d \$dldir || mkdir -p \$dldir~
10584 $install_prog $dir/$dlname \$dldir/$dlname~
10585 chmod a+x \$dldir/$dlname~
10586 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10587 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10589 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10590 dlpath=$dir/\$dldll~
10592 shlibpath_overrides_runpath
=yes
10596 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10597 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10599 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10602 # MinGW DLLs use traditional 'lib' prefix
10603 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10606 # pw32 DLLs use 'pw' prefix rather than 'lib'
10607 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10613 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10616 dynamic_linker
='Win32 ld.exe'
10617 # FIXME: first we should search . and the directory the executable is in
10621 darwin
* | rhapsody
*)
10622 dynamic_linker
="$host_os dyld"
10623 version_type
=darwin
10626 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10627 soname_spec
='${libname}${release}${major}$shared_ext'
10628 shlibpath_overrides_runpath
=yes
10629 shlibpath_var
=DYLD_LIBRARY_PATH
10630 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10632 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10633 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10640 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10641 soname_spec
='${libname}${release}${shared_ext}$major'
10642 shlibpath_var
=LD_LIBRARY_PATH
10645 freebsd
* | dragonfly
*)
10646 # DragonFly does not have aout. When/if they implement a new
10647 # versioning mechanism, adjust this.
10648 if test -x /usr
/bin
/objformat
; then
10649 objformat
=`/usr/bin/objformat`
10652 freebsd
[23].
*) objformat
=aout
;;
10653 *) objformat
=elf
;;
10656 version_type
=freebsd-
$objformat
10657 case $version_type in
10659 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10664 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10668 shlibpath_var
=LD_LIBRARY_PATH
10671 shlibpath_overrides_runpath
=yes
10673 freebsd3.
[01]* | freebsdelf3.
[01]*)
10674 shlibpath_overrides_runpath
=yes
10675 hardcode_into_libs
=yes
10677 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10678 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10679 shlibpath_overrides_runpath
=no
10680 hardcode_into_libs
=yes
10682 *) # from 4.6 on, and DragonFly
10683 shlibpath_overrides_runpath
=yes
10684 hardcode_into_libs
=yes
10693 dynamic_linker
="$host_os runtime_loader"
10694 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10695 soname_spec
='${libname}${release}${shared_ext}$major'
10696 shlibpath_var
=LIBRARY_PATH
10697 shlibpath_overrides_runpath
=yes
10698 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10699 hardcode_into_libs
=yes
10702 hpux9
* | hpux10
* | hpux11
*)
10703 # Give a soname corresponding to the major version so that dld.sl refuses to
10704 # link against other versions.
10711 hardcode_into_libs
=yes
10712 dynamic_linker
="$host_os dld.so"
10713 shlibpath_var
=LD_LIBRARY_PATH
10714 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10715 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10716 soname_spec
='${libname}${release}${shared_ext}$major'
10717 if test "X$HPUX_IA64_MODE" = X32
; then
10718 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10720 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10722 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10726 hardcode_into_libs
=yes
10727 dynamic_linker
="$host_os dld.sl"
10728 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10729 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10730 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10731 soname_spec
='${libname}${release}${shared_ext}$major'
10732 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10733 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10737 dynamic_linker
="$host_os dld.sl"
10738 shlibpath_var
=SHLIB_PATH
10739 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10740 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10741 soname_spec
='${libname}${release}${shared_ext}$major'
10744 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10745 postinstall_cmds
='chmod 555 $lib'
10746 # or fails outright, so override atomically:
10747 install_override_mode
=555
10754 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10755 soname_spec
='${libname}${release}${shared_ext}$major'
10756 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10757 shlibpath_var
=LD_LIBRARY_PATH
10758 shlibpath_overrides_runpath
=no
10759 hardcode_into_libs
=yes
10762 irix5
* | irix6
* | nonstopux
*)
10764 nonstopux
*) version_type
=nonstopux
;;
10766 if test "$lt_cv_prog_gnu_ld" = yes; then
10774 soname_spec
='${libname}${release}${shared_ext}$major'
10775 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10777 irix5
* | nonstopux
*)
10778 libsuff
= shlibsuff
=
10781 case $LD in # libtool.m4 will add one of these switches to LD
10782 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10783 libsuff
= shlibsuff
= libmagic
=32-bit;;
10784 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10785 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10786 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10787 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10788 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10792 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10793 shlibpath_overrides_runpath
=no
10794 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10795 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10796 hardcode_into_libs
=yes
10799 # No shared lib support for Linux oldld, aout, or coff.
10800 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10804 # This must be Linux ELF.
10805 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
10809 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10810 soname_spec
='${libname}${release}${shared_ext}$major'
10811 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10812 shlibpath_var
=LD_LIBRARY_PATH
10813 shlibpath_overrides_runpath
=no
10815 # Some binutils ld are patched to set DT_RUNPATH
10816 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10817 $as_echo_n "(cached) " >&6
10819 lt_cv_shlibpath_overrides_runpath
=no
10820 save_LDFLAGS
=$LDFLAGS
10821 save_libdir
=$libdir
10822 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10823 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h. */
10835 if ac_fn_c_try_link
"$LINENO"; then :
10836 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10837 lt_cv_shlibpath_overrides_runpath
=yes
10840 rm -f core conftest.err conftest.
$ac_objext \
10841 conftest
$ac_exeext conftest.
$ac_ext
10842 LDFLAGS
=$save_LDFLAGS
10843 libdir
=$save_libdir
10847 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10849 # This implies no fast_install, which is unacceptable.
10850 # Some rework will be needed to allow for fast_install
10851 # before this can be enabled.
10852 hardcode_into_libs
=yes
10854 # Append ld.so.conf contents to the search path
10855 if test -f /etc
/ld.so.conf
; then
10856 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10857 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10860 # We used to test for /lib/ld.so.1 and disable shared libraries on
10861 # powerpc, because MkLinux only supported shared libraries with the
10862 # GNU dynamic linker. Since this was broken with cross compilers,
10863 # most powerpc-linux boxes support dynamic linking these days and
10864 # people can always --disable-shared, the test was removed, and we
10865 # assume the GNU/Linux dynamic linker is in use.
10866 dynamic_linker
='GNU/Linux ld.so'
10873 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10874 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10875 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10876 dynamic_linker
='NetBSD (a.out) ld.so'
10878 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10879 soname_spec
='${libname}${release}${shared_ext}$major'
10880 dynamic_linker
='NetBSD ld.elf_so'
10882 shlibpath_var
=LD_LIBRARY_PATH
10883 shlibpath_overrides_runpath
=yes
10884 hardcode_into_libs
=yes
10889 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10890 shlibpath_var
=LD_LIBRARY_PATH
10891 shlibpath_overrides_runpath
=yes
10898 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10899 soname_spec
='${libname}${release}${shared_ext}$major'
10900 shlibpath_var
=LD_LIBRARY_PATH
10901 shlibpath_overrides_runpath
=no
10902 hardcode_into_libs
=yes
10903 dynamic_linker
='ldqnx.so'
10908 sys_lib_dlsearch_path_spec
="/usr/lib"
10910 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10912 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10913 *) need_version
=no
;;
10915 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10916 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10917 shlibpath_var
=LD_LIBRARY_PATH
10918 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10920 openbsd2.
[89] | openbsd2.
[89].
*)
10921 shlibpath_overrides_runpath
=no
10924 shlibpath_overrides_runpath
=yes
10928 shlibpath_overrides_runpath
=yes
10933 libname_spec
='$name'
10936 library_names_spec
='$libname${shared_ext} $libname.a'
10937 dynamic_linker
='OS/2 ld.exe'
10938 shlibpath_var
=LIBPATH
10941 osf3
* | osf4
* | osf5
*)
10945 soname_spec
='${libname}${release}${shared_ext}$major'
10946 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10947 shlibpath_var
=LD_LIBRARY_PATH
10948 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10949 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10960 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10961 soname_spec
='${libname}${release}${shared_ext}$major'
10962 shlibpath_var
=LD_LIBRARY_PATH
10963 shlibpath_overrides_runpath
=yes
10964 hardcode_into_libs
=yes
10965 # ldd complains unless libraries are executable
10966 postinstall_cmds
='chmod +x $lib'
10971 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10972 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10973 shlibpath_var
=LD_LIBRARY_PATH
10974 shlibpath_overrides_runpath
=yes
10975 if test "$with_gnu_ld" = yes; then
10983 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10984 soname_spec
='${libname}${release}${shared_ext}$major'
10985 shlibpath_var
=LD_LIBRARY_PATH
10986 case $host_vendor in
10988 shlibpath_overrides_runpath
=no
10990 runpath_var
=LD_RUN_PATH
10998 shlibpath_overrides_runpath
=no
10999 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11005 if test -d /usr
/nec
;then
11007 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11008 soname_spec
='$libname${shared_ext}.$major'
11009 shlibpath_var
=LD_LIBRARY_PATH
11013 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11014 version_type
=freebsd-elf
11017 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11018 soname_spec
='${libname}${release}${shared_ext}$major'
11019 shlibpath_var
=LD_LIBRARY_PATH
11020 shlibpath_overrides_runpath
=yes
11021 hardcode_into_libs
=yes
11022 if test "$with_gnu_ld" = yes; then
11023 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11025 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11028 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11032 sys_lib_dlsearch_path_spec
='/usr/lib'
11036 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11040 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11041 shlibpath_var
=LD_LIBRARY_PATH
11042 shlibpath_overrides_runpath
=no
11043 hardcode_into_libs
=yes
11048 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11049 soname_spec
='${libname}${release}${shared_ext}$major'
11050 shlibpath_var
=LD_LIBRARY_PATH
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11058 $as_echo "$dynamic_linker" >&6; }
11059 test "$dynamic_linker" = no
&& can_build_shared
=no
11061 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11062 if test "$GCC" = yes; then
11063 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11066 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11067 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11069 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11070 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11165 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11167 if test -n "$hardcode_libdir_flag_spec" ||
11168 test -n "$runpath_var" ||
11169 test "X$hardcode_automatic" = "Xyes" ; then
11171 # We can hardcode non-existent directories.
11172 if test "$hardcode_direct" != no
&&
11173 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11174 # have to relink, otherwise we might link with an installed library
11175 # when we should be linking with a yet-to-be-installed one
11176 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11177 test "$hardcode_minus_L" != no
; then
11178 # Linking always hardcodes the temporary library directory.
11179 hardcode_action
=relink
11181 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11182 hardcode_action
=immediate
11185 # We cannot hardcode anything, or else we can only hardcode existing
11187 hardcode_action
=unsupported
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11190 $as_echo "$hardcode_action" >&6; }
11192 if test "$hardcode_action" = relink ||
11193 test "$inherit_rpath" = yes; then
11194 # Fast installation is not supported
11195 enable_fast_install
=no
11196 elif test "$shlibpath_overrides_runpath" = yes ||
11197 test "$enable_shared" = no
; then
11198 # Fast installation is not necessary
11199 enable_fast_install
=needless
11207 if test "x$enable_dlopen" != xyes
; then
11208 enable_dlopen
=unknown
11209 enable_dlopen_self
=unknown
11210 enable_dlopen_self_static
=unknown
11217 lt_cv_dlopen
="load_add_on"
11219 lt_cv_dlopen_self
=yes
11222 mingw
* | pw32
* | cegcc
*)
11223 lt_cv_dlopen
="LoadLibrary"
11228 lt_cv_dlopen
="dlopen"
11233 # if libdl is installed we need to link against it
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11235 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11236 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11237 $as_echo_n "(cached) " >&6
11239 ac_check_lib_save_LIBS
=$LIBS
11241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11242 /* end confdefs.h. */
11244 /* Override any GCC internal prototype to avoid an error.
11245 Use char because int might match the return type of a GCC
11246 builtin and then its argument prototype would still apply. */
11259 if ac_fn_c_try_link
"$LINENO"; then :
11260 ac_cv_lib_dl_dlopen
=yes
11262 ac_cv_lib_dl_dlopen
=no
11264 rm -f core conftest.err conftest.
$ac_objext \
11265 conftest
$ac_exeext conftest.
$ac_ext
11266 LIBS
=$ac_check_lib_save_LIBS
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11269 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11270 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11271 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11274 lt_cv_dlopen
="dyld"
11276 lt_cv_dlopen_self
=yes
11283 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11284 if test "x$ac_cv_func_shl_load" = xyes
; then :
11285 lt_cv_dlopen
="shl_load"
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11288 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11289 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11290 $as_echo_n "(cached) " >&6
11292 ac_check_lib_save_LIBS
=$LIBS
11294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11295 /* end confdefs.h. */
11297 /* Override any GCC internal prototype to avoid an error.
11298 Use char because int might match the return type of a GCC
11299 builtin and then its argument prototype would still apply. */
11307 return shl_load ();
11312 if ac_fn_c_try_link
"$LINENO"; then :
11313 ac_cv_lib_dld_shl_load
=yes
11315 ac_cv_lib_dld_shl_load
=no
11317 rm -f core conftest.err conftest.
$ac_objext \
11318 conftest
$ac_exeext conftest.
$ac_ext
11319 LIBS
=$ac_check_lib_save_LIBS
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11322 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11323 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11324 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11326 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11327 if test "x$ac_cv_func_dlopen" = xyes
; then :
11328 lt_cv_dlopen
="dlopen"
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11331 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11332 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11333 $as_echo_n "(cached) " >&6
11335 ac_check_lib_save_LIBS
=$LIBS
11337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11338 /* end confdefs.h. */
11340 /* Override any GCC internal prototype to avoid an error.
11341 Use char because int might match the return type of a GCC
11342 builtin and then its argument prototype would still apply. */
11355 if ac_fn_c_try_link
"$LINENO"; then :
11356 ac_cv_lib_dl_dlopen
=yes
11358 ac_cv_lib_dl_dlopen
=no
11360 rm -f core conftest.err conftest.
$ac_objext \
11361 conftest
$ac_exeext conftest.
$ac_ext
11362 LIBS
=$ac_check_lib_save_LIBS
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11365 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11366 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11367 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11370 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11371 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11372 $as_echo_n "(cached) " >&6
11374 ac_check_lib_save_LIBS
=$LIBS
11375 LIBS
="-lsvld $LIBS"
11376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11377 /* end confdefs.h. */
11379 /* Override any GCC internal prototype to avoid an error.
11380 Use char because int might match the return type of a GCC
11381 builtin and then its argument prototype would still apply. */
11394 if ac_fn_c_try_link
"$LINENO"; then :
11395 ac_cv_lib_svld_dlopen
=yes
11397 ac_cv_lib_svld_dlopen
=no
11399 rm -f core conftest.err conftest.
$ac_objext \
11400 conftest
$ac_exeext conftest.
$ac_ext
11401 LIBS
=$ac_check_lib_save_LIBS
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11404 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11405 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11406 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11409 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11410 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11411 $as_echo_n "(cached) " >&6
11413 ac_check_lib_save_LIBS
=$LIBS
11415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11416 /* end confdefs.h. */
11418 /* Override any GCC internal prototype to avoid an error.
11419 Use char because int might match the return type of a GCC
11420 builtin and then its argument prototype would still apply. */
11428 return dld_link ();
11433 if ac_fn_c_try_link
"$LINENO"; then :
11434 ac_cv_lib_dld_dld_link
=yes
11436 ac_cv_lib_dld_dld_link
=no
11438 rm -f core conftest.err conftest.
$ac_objext \
11439 conftest
$ac_exeext conftest.
$ac_ext
11440 LIBS
=$ac_check_lib_save_LIBS
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11443 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11444 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11445 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11466 if test "x$lt_cv_dlopen" != xno
; then
11472 case $lt_cv_dlopen in
11474 save_CPPFLAGS
="$CPPFLAGS"
11475 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11477 save_LDFLAGS
="$LDFLAGS"
11478 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11481 LIBS
="$lt_cv_dlopen_libs $LIBS"
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11484 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11485 if ${lt_cv_dlopen_self+:} false
; then :
11486 $as_echo_n "(cached) " >&6
11488 if test "$cross_compiling" = yes; then :
11489 lt_cv_dlopen_self
=cross
11491 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11492 lt_status
=$lt_dlunknown
11493 cat > conftest.
$ac_ext <<_LT_EOF
11494 #line 11494 "configure"
11495 #include "confdefs.h"
11504 # define LT_DLGLOBAL RTLD_GLOBAL
11507 # define LT_DLGLOBAL DL_GLOBAL
11509 # define LT_DLGLOBAL 0
11513 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11514 find out it does not work in some platform. */
11515 #ifndef LT_DLLAZY_OR_NOW
11517 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11520 # define LT_DLLAZY_OR_NOW DL_LAZY
11523 # define LT_DLLAZY_OR_NOW RTLD_NOW
11526 # define LT_DLLAZY_OR_NOW DL_NOW
11528 # define LT_DLLAZY_OR_NOW 0
11535 /* When -fvisbility=hidden is used, assume the code has been annotated
11536 correspondingly for the symbols needed. */
11537 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11538 void fnord () __attribute__((visibility("default")));
11541 void fnord () { int i=42; }
11544 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11545 int status = $lt_dlunknown;
11549 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11552 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11553 else puts (dlerror ());
11555 /* dlclose (self); */
11563 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11564 (eval $ac_link) 2>&5
11566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11567 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11568 (.
/conftest
; exit; ) >&5 2>/dev
/null
11570 case x
$lt_status in
11571 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11572 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11573 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11576 # compilation failed
11577 lt_cv_dlopen_self
=no
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11585 $as_echo "$lt_cv_dlopen_self" >&6; }
11587 if test "x$lt_cv_dlopen_self" = xyes
; then
11588 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11590 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11591 if ${lt_cv_dlopen_self_static+:} false
; then :
11592 $as_echo_n "(cached) " >&6
11594 if test "$cross_compiling" = yes; then :
11595 lt_cv_dlopen_self_static
=cross
11597 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11598 lt_status
=$lt_dlunknown
11599 cat > conftest.
$ac_ext <<_LT_EOF
11600 #line 11600 "configure"
11601 #include "confdefs.h"
11610 # define LT_DLGLOBAL RTLD_GLOBAL
11613 # define LT_DLGLOBAL DL_GLOBAL
11615 # define LT_DLGLOBAL 0
11619 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11620 find out it does not work in some platform. */
11621 #ifndef LT_DLLAZY_OR_NOW
11623 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11626 # define LT_DLLAZY_OR_NOW DL_LAZY
11629 # define LT_DLLAZY_OR_NOW RTLD_NOW
11632 # define LT_DLLAZY_OR_NOW DL_NOW
11634 # define LT_DLLAZY_OR_NOW 0
11641 /* When -fvisbility=hidden is used, assume the code has been annotated
11642 correspondingly for the symbols needed. */
11643 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11644 void fnord () __attribute__((visibility("default")));
11647 void fnord () { int i=42; }
11650 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11651 int status = $lt_dlunknown;
11655 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11658 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11659 else puts (dlerror ());
11661 /* dlclose (self); */
11669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11670 (eval $ac_link) 2>&5
11672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11673 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11674 (.
/conftest
; exit; ) >&5 2>/dev
/null
11676 case x
$lt_status in
11677 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11678 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11679 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11682 # compilation failed
11683 lt_cv_dlopen_self_static
=no
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11691 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11694 CPPFLAGS
="$save_CPPFLAGS"
11695 LDFLAGS
="$save_LDFLAGS"
11700 case $lt_cv_dlopen_self in
11701 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11702 *) enable_dlopen_self
=unknown
;;
11705 case $lt_cv_dlopen_self_static in
11706 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11707 *) enable_dlopen_self_static
=unknown
;;
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11730 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11731 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11732 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11733 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11735 $as_echo "yes" >&6; }
11737 # FIXME - insert some real tests, host_os isn't really good enough
11740 if test -n "$STRIP" ; then
11741 striplib
="$STRIP -x"
11742 old_striplib
="$STRIP -S"
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11744 $as_echo "yes" >&6; }
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11747 $as_echo "no" >&6; }
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11752 $as_echo "no" >&6; }
11768 # Report which library types will actually be built
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11770 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11772 $as_echo "$can_build_shared" >&6; }
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11775 $as_echo_n "checking whether to build shared libraries... " >&6; }
11776 test "$can_build_shared" = "no" && enable_shared
=no
11778 # On AIX, shared libraries and static libraries use the same namespace, and
11779 # are all built from PIC.
11782 test "$enable_shared" = yes && enable_static
=no
11783 if test -n "$RANLIB"; then
11784 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11785 postinstall_cmds
='$RANLIB $lib'
11790 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11791 test "$enable_shared" = yes && enable_static
=no
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11796 $as_echo "$enable_shared" >&6; }
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11799 $as_echo_n "checking whether to build static libraries... " >&6; }
11800 # Make sure either enable_shared or enable_static is yes.
11801 test "$enable_shared" = yes || enable_static
=yes
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11803 $as_echo "$enable_static" >&6; }
11810 ac_cpp
='$CPP $CPPFLAGS'
11811 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11812 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11813 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11817 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11818 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11819 (test "X$CXX" != "Xg++"))) ; then
11821 ac_cpp
='$CXXCPP $CPPFLAGS'
11822 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11823 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11824 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11826 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11827 if test -z "$CXXCPP"; then
11828 if ${ac_cv_prog_CXXCPP+:} false
; then :
11829 $as_echo_n "(cached) " >&6
11831 # Double quotes because CXXCPP needs to be expanded
11832 for CXXCPP
in "$CXX -E" "/lib/cpp"
11834 ac_preproc_ok
=false
11835 for ac_cxx_preproc_warn_flag
in '' yes
11837 # Use a header file that comes with gcc, so configuring glibc
11838 # with a fresh cross-compiler works.
11839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11840 # <limits.h> exists even on freestanding compilers.
11841 # On the NeXT, cc -E runs the code through the compiler's parser,
11842 # not just through cpp. "Syntax error" is here to catch this case.
11843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11844 /* end confdefs.h. */
11846 # include <limits.h>
11848 # include <assert.h>
11852 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11855 # Broken: fails on valid input.
11858 rm -f conftest.err conftest.i conftest.
$ac_ext
11860 # OK, works on sane cases. Now check whether nonexistent headers
11861 # can be detected and how.
11862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11863 /* end confdefs.h. */
11864 #include <ac_nonexistent.h>
11866 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11867 # Broken: success on invalid input.
11870 # Passes both tests.
11874 rm -f conftest.err conftest.i conftest.
$ac_ext
11877 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11878 rm -f conftest.i conftest.err conftest.
$ac_ext
11879 if $ac_preproc_ok; then :
11884 ac_cv_prog_CXXCPP
=$CXXCPP
11887 CXXCPP
=$ac_cv_prog_CXXCPP
11889 ac_cv_prog_CXXCPP
=$CXXCPP
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11892 $as_echo "$CXXCPP" >&6; }
11893 ac_preproc_ok
=false
11894 for ac_cxx_preproc_warn_flag
in '' yes
11896 # Use a header file that comes with gcc, so configuring glibc
11897 # with a fresh cross-compiler works.
11898 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11899 # <limits.h> exists even on freestanding compilers.
11900 # On the NeXT, cc -E runs the code through the compiler's parser,
11901 # not just through cpp. "Syntax error" is here to catch this case.
11902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11903 /* end confdefs.h. */
11905 # include <limits.h>
11907 # include <assert.h>
11911 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11914 # Broken: fails on valid input.
11917 rm -f conftest.err conftest.i conftest.
$ac_ext
11919 # OK, works on sane cases. Now check whether nonexistent headers
11920 # can be detected and how.
11921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11922 /* end confdefs.h. */
11923 #include <ac_nonexistent.h>
11925 if ac_fn_cxx_try_cpp
"$LINENO"; then :
11926 # Broken: success on invalid input.
11929 # Passes both tests.
11933 rm -f conftest.err conftest.i conftest.
$ac_ext
11936 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11937 rm -f conftest.i conftest.err conftest.
$ac_ext
11938 if $ac_preproc_ok; then :
11941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11943 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
11944 See \`config.log' for more details" "$LINENO" 5; }
11948 ac_cpp
='$CPP $CPPFLAGS'
11949 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11950 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11951 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11954 _lt_caught_CXX_error
=yes
11958 ac_cpp
='$CXXCPP $CPPFLAGS'
11959 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11960 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11961 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
11963 archive_cmds_need_lc_CXX
=no
11964 allow_undefined_flag_CXX
=
11965 always_export_symbols_CXX
=no
11966 archive_expsym_cmds_CXX
=
11967 compiler_needs_object_CXX
=no
11968 export_dynamic_flag_spec_CXX
=
11969 hardcode_direct_CXX
=no
11970 hardcode_direct_absolute_CXX
=no
11971 hardcode_libdir_flag_spec_CXX
=
11972 hardcode_libdir_flag_spec_ld_CXX
=
11973 hardcode_libdir_separator_CXX
=
11974 hardcode_minus_L_CXX
=no
11975 hardcode_shlibpath_var_CXX
=unsupported
11976 hardcode_automatic_CXX
=no
11977 inherit_rpath_CXX
=no
11979 module_expsym_cmds_CXX
=
11980 link_all_deplibs_CXX
=unknown
11981 old_archive_cmds_CXX
=$old_archive_cmds
11982 reload_flag_CXX
=$reload_flag
11983 reload_cmds_CXX
=$reload_cmds
11984 no_undefined_flag_CXX
=
11985 whole_archive_flag_spec_CXX
=
11986 enable_shared_with_static_runtimes_CXX
=no
11988 # Source file extension for C++ test sources.
11991 # Object file extension for compiled C++ test sources.
11995 # No sense in running all these tests if we already determined that
11996 # the CXX compiler isn't working. Some variables (like enable_shared)
11997 # are currently assumed to apply to all compilers on this platform,
11998 # and will be corrupted by setting them based on a non-working compiler.
11999 if test "$_lt_caught_CXX_error" != yes; then
12000 # Code to be used in simple compile tests
12001 lt_simple_compile_test_code
="int some_variable = 0;"
12003 # Code to be used in simple link tests
12004 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
12006 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12013 # If no C compiler was specified, use CC.
12016 # If no C compiler flags were specified, use CFLAGS.
12017 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
12019 # Allow CC to be a program name with arguments.
12023 # save warnings/boilerplate of simple test code
12024 ac_outfile
=conftest.
$ac_objext
12025 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
12026 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12027 _lt_compiler_boilerplate
=`cat conftest.err`
12030 ac_outfile
=conftest.
$ac_objext
12031 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
12032 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12033 _lt_linker_boilerplate
=`cat conftest.err`
12037 # Allow CC to be a program name with arguments.
12042 lt_save_with_gnu_ld
=$with_gnu_ld
12043 lt_save_path_LD
=$lt_cv_path_LD
12044 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12045 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
12047 $as_unset lt_cv_prog_gnu_ld
12049 if test -n "${lt_cv_path_LDCXX+set}"; then
12050 lt_cv_path_LD
=$lt_cv_path_LDCXX
12052 $as_unset lt_cv_path_LD
12054 test -z "${LDCXX+set}" || LD
=$LDCXX
12058 for cc_temp
in $compiler""; do
12060 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12061 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12066 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12069 if test -n "$compiler"; then
12070 # We don't want -fno-exception when compiling C++ code, so set the
12071 # no_builtin_flag separately
12072 if test "$GXX" = yes; then
12073 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
12075 lt_prog_compiler_no_builtin_flag_CXX
=
12078 if test "$GXX" = yes; then
12079 # Set up default GNU C++ configuration
12083 # Check whether --with-gnu-ld was given.
12084 if test "${with_gnu_ld+set}" = set; then :
12085 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12091 if test "$GCC" = yes; then
12092 # Check if gcc -print-prog-name=ld gives a path.
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12094 $as_echo_n "checking for ld used by $CC... " >&6; }
12097 # gcc leaves a trailing carriage return which upsets mingw
12098 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12100 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12103 # Accept absolute paths.
12105 re_direlt
='/[^/][^/]*/\.\./'
12106 # Canonicalize the pathname of ld
12107 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12108 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12109 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12111 test -z "$LD" && LD
="$ac_prog"
12114 # If it fails, then pretend we aren't using GCC.
12118 # If it is relative, then search for the first ld in PATH.
12119 with_gnu_ld
=unknown
12122 elif test "$with_gnu_ld" = yes; then
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12124 $as_echo_n "checking for GNU ld... " >&6; }
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12127 $as_echo_n "checking for non-GNU ld... " >&6; }
12129 if ${lt_cv_path_LD+:} false
; then :
12130 $as_echo_n "(cached) " >&6
12132 if test -z "$LD"; then
12133 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12134 for ac_dir
in $PATH; do
12136 test -z "$ac_dir" && ac_dir
=.
12137 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12138 lt_cv_path_LD
="$ac_dir/$ac_prog"
12139 # Check to see if the program is GNU ld. I'd rather use --version,
12140 # but apparently some variants of GNU ld only accept -v.
12141 # Break only if it was the GNU/non-GNU ld that we prefer.
12142 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12143 *GNU
* |
*'with BFD'*)
12144 test "$with_gnu_ld" != no
&& break
12147 test "$with_gnu_ld" != yes && break
12154 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12158 LD
="$lt_cv_path_LD"
12159 if test -n "$LD"; then
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12161 $as_echo "$LD" >&6; }
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12164 $as_echo "no" >&6; }
12166 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12168 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12169 if ${lt_cv_prog_gnu_ld+:} false
; then :
12170 $as_echo_n "(cached) " >&6
12172 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12173 case `$LD -v 2>&1 </dev/null` in
12174 *GNU
* |
*'with BFD'*)
12175 lt_cv_prog_gnu_ld
=yes
12178 lt_cv_prog_gnu_ld
=no
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12183 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12184 with_gnu_ld
=$lt_cv_prog_gnu_ld
12192 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12193 # archiving commands below assume that GNU ld is being used.
12194 if test "$with_gnu_ld" = yes; then
12195 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12196 archive_expsym_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12198 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12199 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12201 # If archive_cmds runs LD, not CC, wlarc should be empty
12202 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12203 # investigate it a little bit more. (MM)
12206 # ancient GNU ld didn't support --whole-archive et. al.
12207 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12208 $GREP 'no-whole-archive' > /dev
/null
; then
12209 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12211 whole_archive_flag_spec_CXX
=
12217 # A generic and very simple default shared library creation
12218 # command for GNU C++ for the case where it uses the native
12219 # linker, instead of GNU ld. If possible, this setting should
12220 # overridden to take advantage of the native linker features on
12221 # the platform it is being used on.
12222 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12225 # Commands to make compiler produce verbose output that lists
12226 # what "hidden" libraries, object files and flags are used when
12227 # linking a shared library.
12228 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12236 # PORTME: fill in a description of your system's C++ link characteristics
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12238 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12242 # FIXME: insert proper C++ library support
12246 if test "$host_cpu" = ia64
; then
12247 # On IA64, the linker does run time linking by default, so we don't
12248 # have to do anything special.
12249 aix_use_runtimelinking
=no
12250 exp_sym_flag
='-Bexport'
12253 aix_use_runtimelinking
=no
12255 # Test if we are trying to use run time linking or normal
12256 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12257 # need to do runtime linking.
12258 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
12259 for ld_flag
in $LDFLAGS; do
12262 aix_use_runtimelinking
=yes
12270 exp_sym_flag
='-bexport'
12271 no_entry_flag
='-bnoentry'
12274 # When large executables or shared objects are built, AIX ld can
12275 # have problems creating the table of contents. If linking a library
12276 # or program results in "error TOC overflow" add -mminimal-toc to
12277 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12278 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12280 archive_cmds_CXX
=''
12281 hardcode_direct_CXX
=yes
12282 hardcode_direct_absolute_CXX
=yes
12283 hardcode_libdir_separator_CXX
=':'
12284 link_all_deplibs_CXX
=yes
12285 file_list_spec_CXX
='${wl}-f,'
12287 if test "$GXX" = yes; then
12288 case $host_os in aix4.
[012]|aix4.
[012].
*)
12289 # We only want to do this on AIX 4.2 and lower, the check
12290 # below for broken collect2 doesn't work under 4.3+
12291 collect2name
=`${CC} -print-prog-name=collect2`
12292 if test -f "$collect2name" &&
12293 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
12295 # We have reworked collect2
12298 # We have old collect2
12299 hardcode_direct_CXX
=unsupported
12300 # It fails to find uninstalled libraries when the uninstalled
12301 # path is not listed in the libpath. Setting hardcode_minus_L
12302 # to unsupported forces relinking
12303 hardcode_minus_L_CXX
=yes
12304 hardcode_libdir_flag_spec_CXX
='-L$libdir'
12305 hardcode_libdir_separator_CXX
=
12308 shared_flag
='-shared'
12309 if test "$aix_use_runtimelinking" = yes; then
12310 shared_flag
="$shared_flag "'${wl}-G'
12314 if test "$host_cpu" = ia64
; then
12315 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12316 # chokes on -Wl,-G. The following line is correct:
12319 if test "$aix_use_runtimelinking" = yes; then
12320 shared_flag
='${wl}-G'
12322 shared_flag
='${wl}-bM:SRE'
12327 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
12328 # It seems that -bexpall does not export symbols beginning with
12329 # underscore (_), so it is better to generate a list of symbols to
12331 always_export_symbols_CXX
=yes
12332 if test "$aix_use_runtimelinking" = yes; then
12333 # Warning - without using the other runtime loading flags (-brtl),
12334 # -berok will link without error, but may produce a broken library.
12335 allow_undefined_flag_CXX
='-berok'
12336 # Determine the default libpath from the value encoded in an empty
12338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h. */
12349 if ac_fn_cxx_try_link
"$LINENO"; then :
12351 lt_aix_libpath_sed
='
12352 /Import File Strings/,/^$/ {
12358 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12359 # Check for a 64-bit object if we didn't find anything.
12360 if test -z "$aix_libpath"; then
12361 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12364 rm -f core conftest.err conftest.
$ac_objext \
12365 conftest
$ac_exeext conftest.
$ac_ext
12366 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12368 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
12370 archive_expsym_cmds_CXX
='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12372 if test "$host_cpu" = ia64
; then
12373 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
12374 allow_undefined_flag_CXX
="-z nodefs"
12375 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"
12377 # Determine the default libpath from the value encoded in an
12378 # empty executable.
12379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12380 /* end confdefs.h. */
12390 if ac_fn_cxx_try_link
"$LINENO"; then :
12392 lt_aix_libpath_sed
='
12393 /Import File Strings/,/^$/ {
12399 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12400 # Check for a 64-bit object if we didn't find anything.
12401 if test -z "$aix_libpath"; then
12402 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12405 rm -f core conftest.err conftest.
$ac_objext \
12406 conftest
$ac_exeext conftest.
$ac_ext
12407 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12409 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
12410 # Warning - without using the other run time loading flags,
12411 # -berok will link without error, but may produce a broken library.
12412 no_undefined_flag_CXX
=' ${wl}-bernotok'
12413 allow_undefined_flag_CXX
=' ${wl}-berok'
12414 if test "$with_gnu_ld" = yes; then
12415 # We only use this code for GNU lds that support --whole-archive.
12416 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12418 # Exported symbols can be pulled into shared objects from archives
12419 whole_archive_flag_spec_CXX
='$convenience'
12421 archive_cmds_need_lc_CXX
=yes
12422 # This is similar to how AIX traditionally builds its shared
12424 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'
12430 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12431 allow_undefined_flag_CXX
=unsupported
12432 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12433 # support --undefined. This deserves some investigation. FIXME
12434 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12441 case $cc_basename in
12443 # FIXME: insert proper C++ library support
12449 cygwin
* | mingw
* | pw32
* | cegcc
*)
12450 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12451 # as there is no search path for DLLs.
12452 hardcode_libdir_flag_spec_CXX
='-L$libdir'
12453 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
12454 allow_undefined_flag_CXX
=unsupported
12455 always_export_symbols_CXX
=no
12456 enable_shared_with_static_runtimes_CXX
=yes
12458 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
12459 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'
12460 # If the export-symbols file already is a .def file (1st line
12461 # is EXPORTS), use it as is; otherwise, prepend...
12462 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12463 cp $export_symbols $output_objdir/$soname.def;
12465 echo EXPORTS > $output_objdir/$soname.def;
12466 cat $export_symbols >> $output_objdir/$soname.def;
12468 $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'
12473 darwin
* | rhapsody
*)
12476 archive_cmds_need_lc_CXX
=no
12477 hardcode_direct_CXX
=no
12478 hardcode_automatic_CXX
=yes
12479 hardcode_shlibpath_var_CXX
=unsupported
12480 if test "$lt_cv_ld_force_load" = "yes"; then
12481 whole_archive_flag_spec_CXX
='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12483 whole_archive_flag_spec_CXX
=''
12485 link_all_deplibs_CXX
=yes
12486 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
12487 case $cc_basename in
12488 ifort
*) _lt_dar_can_shared
=yes ;;
12489 *) _lt_dar_can_shared
=$GCC ;;
12491 if test "$_lt_dar_can_shared" = "yes"; then
12492 output_verbose_link_cmd
=func_echo_all
12493 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}"
12494 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12495 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}"
12496 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}"
12497 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12498 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}"
12499 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}"
12509 case $cc_basename in
12511 # FIXME: insert proper C++ library support
12515 # Green Hills C++ Compiler
12516 # FIXME: insert proper C++ library support
12520 # FIXME: insert proper C++ library support
12527 # C++ shared libraries reported to be fairly broken before
12533 archive_cmds_need_lc_CXX
=no
12536 freebsd
* | dragonfly
*)
12537 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12546 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12547 link_all_deplibs_CXX
=yes
12551 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
12552 hardcode_libdir_separator_CXX
=:
12553 export_dynamic_flag_spec_CXX
='${wl}-E'
12554 hardcode_direct_CXX
=yes
12555 hardcode_minus_L_CXX
=yes # Not in the search PATH,
12556 # but as the default
12557 # location of the library.
12559 case $cc_basename in
12561 # FIXME: insert proper C++ library support
12565 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'
12566 # Commands to make compiler produce verbose output that lists
12567 # what "hidden" libraries, object files and flags are used when
12568 # linking a shared library.
12570 # There doesn't appear to be a way to prevent this compiler from
12571 # explicitly linking system object files so we need to strip them
12572 # from the output so that they don't get included in the library
12574 output_verbose_link_cmd
='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12577 if test "$GXX" = yes; then
12578 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'
12580 # FIXME: insert proper C++ library support
12588 if test $with_gnu_ld = no
; then
12589 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
12590 hardcode_libdir_separator_CXX
=:
12596 export_dynamic_flag_spec_CXX
='${wl}-E'
12602 hardcode_direct_CXX
=no
12603 hardcode_shlibpath_var_CXX
=no
12606 hardcode_direct_CXX
=yes
12607 hardcode_direct_absolute_CXX
=yes
12608 hardcode_minus_L_CXX
=yes # Not in the search PATH,
12609 # but as the default
12610 # location of the library.
12614 case $cc_basename in
12616 # FIXME: insert proper C++ library support
12622 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12625 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12628 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12631 # Commands to make compiler produce verbose output that lists
12632 # what "hidden" libraries, object files and flags are used when
12633 # linking a shared library.
12635 # There doesn't appear to be a way to prevent this compiler from
12636 # explicitly linking system object files so we need to strip them
12637 # from the output so that they don't get included in the library
12639 output_verbose_link_cmd
='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12642 if test "$GXX" = yes; then
12643 if test $with_gnu_ld = no
; then
12646 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12649 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12652 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'
12657 # FIXME: insert proper C++ library support
12665 hardcode_direct_CXX
=no
12666 hardcode_shlibpath_var_CXX
=no
12667 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12668 export_dynamic_flag_spec_CXX
='${wl}-E'
12669 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12670 # Instead, shared libraries are loaded at an image base (0x10000000 by
12671 # default) and relocated if they conflict, which is a slow very memory
12672 # consuming and fragmenting process. To avoid this, we pick a random,
12673 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12674 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12675 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'
12676 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'
12679 case $cc_basename in
12682 archive_cmds_CXX
='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12684 # Archives containing C++ object files must be created using
12685 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12686 # necessary to make sure instantiated templates are included
12688 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
12691 if test "$GXX" = yes; then
12692 if test "$with_gnu_ld" = no
; then
12693 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12695 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12698 link_all_deplibs_CXX
=yes
12701 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12702 hardcode_libdir_separator_CXX
=:
12703 inherit_rpath_CXX
=yes
12706 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
12707 case $cc_basename in
12709 # Kuck and Associates, Inc. (KAI) C++ Compiler
12711 # KCC will only create a shared library if the output file
12712 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12713 # to its proper name (with version) after linking.
12714 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'
12715 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'
12716 # Commands to make compiler produce verbose output that lists
12717 # what "hidden" libraries, object files and flags are used when
12718 # linking a shared library.
12720 # There doesn't appear to be a way to prevent this compiler from
12721 # explicitly linking system object files so we need to strip them
12722 # from the output so that they don't get included in the library
12724 output_verbose_link_cmd
='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12726 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12727 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12729 # Archives containing C++ object files must be created using
12730 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12731 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
12736 # version 8.0 and above of icpc choke on multiply defined symbols
12737 # if we add $predep_objects and $postdep_objects, however 7.1 and
12738 # earlier do not add the objects themselves.
12739 case `$CC -V 2>&1` in
12741 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12742 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'
12744 *) # Version 8.0 or newer
12747 ia64
*) tmp_idyn
=' -i_dynamic';;
12749 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12750 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'
12753 archive_cmds_need_lc_CXX
=no
12754 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12755 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12756 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12759 # Portland Group C++ compiler
12761 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
12762 prelink_cmds_CXX
='tpldir=Template.dir~
12764 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12765 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12766 old_archive_cmds_CXX
='tpldir=Template.dir~
12768 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12769 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12771 archive_cmds_CXX
='tpldir=Template.dir~
12773 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12774 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12775 archive_expsym_cmds_CXX
='tpldir=Template.dir~
12777 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12778 $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'
12780 *) # Version 6 and above use weak symbols
12781 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12782 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'
12786 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
12787 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12788 whole_archive_flag_spec_CXX
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12792 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12793 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'
12795 runpath_var
=LD_RUN_PATH
12796 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
12797 hardcode_libdir_separator_CXX
=:
12799 # Commands to make compiler produce verbose output that lists
12800 # what "hidden" libraries, object files and flags are used when
12801 # linking a shared library.
12803 # There doesn't appear to be a way to prevent this compiler from
12804 # explicitly linking system object files so we need to strip them
12805 # from the output so that they don't get included in the library
12807 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
12809 xl
* | mpixl
* | bgxl
*)
12810 # IBM XL 8.0 on PPC, with GNU ld
12811 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12812 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12813 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12814 if test "x$supports_anon_versioning" = xyes
; then
12815 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
12816 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12817 echo "local: *; };" >> $output_objdir/$libname.ver~
12818 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12822 case `$CC -V 2>&1 | sed 5q` in
12825 no_undefined_flag_CXX
=' -zdefs'
12826 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12827 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'
12828 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12829 whole_archive_flag_spec_CXX
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12830 compiler_needs_object_CXX
=yes
12832 # Not sure whether something based on
12833 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12835 output_verbose_link_cmd
='func_echo_all'
12837 # Archives containing C++ object files must be created using
12838 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12839 # necessary to make sure instantiated templates are included
12841 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
12849 # FIXME: insert proper C++ library support
12854 # FIXME: insert proper C++ library support
12859 case $cc_basename in
12861 # FIXME: insert proper C++ library support
12865 # FIXME: insert proper C++ library support
12872 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
12873 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12875 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12876 hardcode_direct_CXX
=yes
12877 hardcode_shlibpath_var_CXX
=no
12879 # Workaround some broken pre-1.5 toolchains
12880 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12888 # C++ shared libraries are fairly broken
12893 if test -f /usr
/libexec
/ld.so
; then
12894 hardcode_direct_CXX
=yes
12895 hardcode_shlibpath_var_CXX
=no
12896 hardcode_direct_absolute_CXX
=yes
12897 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12898 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12899 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12900 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12901 export_dynamic_flag_spec_CXX
='${wl}-E'
12902 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12904 output_verbose_link_cmd
=func_echo_all
12910 osf3
* | osf4
* | osf5
*)
12911 case $cc_basename in
12913 # Kuck and Associates, Inc. (KAI) C++ Compiler
12915 # KCC will only create a shared library if the output file
12916 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12917 # to its proper name (with version) after linking.
12918 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'
12920 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12921 hardcode_libdir_separator_CXX
=:
12923 # Archives containing C++ object files must be created using
12924 # the KAI C++ compiler.
12926 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
12927 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
12931 # Rational C++ 2.4.1
12932 # FIXME: insert proper C++ library support
12938 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
12939 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12940 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12943 allow_undefined_flag_CXX
=' -expect_unresolved \*'
12944 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12945 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12946 echo "-hidden">> $lib.exp~
12947 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
12949 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
12953 hardcode_libdir_separator_CXX
=:
12955 # Commands to make compiler produce verbose output that lists
12956 # what "hidden" libraries, object files and flags are used when
12957 # linking a shared library.
12959 # There doesn't appear to be a way to prevent this compiler from
12960 # explicitly linking system object files so we need to strip them
12961 # from the output so that they don't get included in the library
12963 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12966 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
12967 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
12970 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12973 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12977 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12978 hardcode_libdir_separator_CXX
=:
12980 # Commands to make compiler produce verbose output that lists
12981 # what "hidden" libraries, object files and flags are used when
12982 # linking a shared library.
12983 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12986 # FIXME: insert proper C++ library support
12994 # FIXME: insert proper C++ library support
12999 case $cc_basename in
13002 # FIXME: insert proper C++ library support
13007 # FIXME: insert proper C++ library support
13011 # FIXME: insert proper C++ library support
13018 case $cc_basename in
13020 # Sun C++ 4.2, 5.x and Centerline C++
13021 archive_cmds_need_lc_CXX
=yes
13022 no_undefined_flag_CXX
=' -zdefs'
13023 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13024 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13025 $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'
13027 hardcode_libdir_flag_spec_CXX
='-R$libdir'
13028 hardcode_shlibpath_var_CXX
=no
13030 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13032 # The compiler driver will combine and reorder linker options,
13033 # but understands `-z linker_flag'.
13034 # Supported since Solaris 2.6 (maybe 2.5.1?)
13035 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
13038 link_all_deplibs_CXX
=yes
13040 output_verbose_link_cmd
='func_echo_all'
13042 # Archives containing C++ object files must be created using
13043 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13044 # necessary to make sure instantiated templates are included
13046 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
13049 # Green Hills C++ Compiler
13050 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13052 # The C++ compiler must be used to create the archive.
13053 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13056 # GNU C++ compiler with Solaris linker
13057 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
13058 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
13059 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
13060 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13061 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13062 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13064 # Commands to make compiler produce verbose output that lists
13065 # what "hidden" libraries, object files and flags are used when
13066 # linking a shared library.
13067 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13069 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13071 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13072 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13073 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13075 # Commands to make compiler produce verbose output that lists
13076 # what "hidden" libraries, object files and flags are used when
13077 # linking a shared library.
13078 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13081 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
13083 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13085 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13093 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13094 no_undefined_flag_CXX
='${wl}-z,text'
13095 archive_cmds_need_lc_CXX
=no
13096 hardcode_shlibpath_var_CXX
=no
13097 runpath_var
='LD_RUN_PATH'
13099 case $cc_basename in
13101 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13102 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13105 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13106 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13111 sysv5
* | sco3.2v5
* | sco5v6
*)
13112 # Note: We can NOT use -z defs as we might desire, because we do not
13113 # link with -lc, and that would cause any symbols used from libc to
13114 # always be unresolved, which means just about no library would
13115 # ever link correctly. If we're not using GNU ld we use -z text
13116 # though, which does catch some bad symbols but isn't as heavy-handed
13118 no_undefined_flag_CXX
='${wl}-z,text'
13119 allow_undefined_flag_CXX
='${wl}-z,nodefs'
13120 archive_cmds_need_lc_CXX
=no
13121 hardcode_shlibpath_var_CXX
=no
13122 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
13123 hardcode_libdir_separator_CXX
=':'
13124 link_all_deplibs_CXX
=yes
13125 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
13126 runpath_var
='LD_RUN_PATH'
13128 case $cc_basename in
13130 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13131 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13132 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
13133 '"$old_archive_cmds_CXX"
13134 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
13135 '"$reload_cmds_CXX"
13138 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13139 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13145 case $cc_basename in
13147 # NonStop-UX NCC 3.20
13148 # FIXME: insert proper C++ library support
13152 # FIXME: insert proper C++ library support
13159 # FIXME: insert proper C++ library support
13164 # FIXME: insert proper C++ library support
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13170 $as_echo "$ld_shlibs_CXX" >&6; }
13171 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
13177 ## There is no encapsulation within the following macros, do not change
13178 ## the running order or otherwise move them around unless you know exactly
13179 ## what you are doing...
13180 # Dependencies to place before and after the object being linked:
13181 predep_objects_CXX
=
13182 postdep_objects_CXX
=
13185 compiler_lib_search_path_CXX
=
13187 cat > conftest.
$ac_ext <<_LT_EOF
13191 Foo (void) { a = 0; }
13197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13198 (eval $ac_compile) 2>&5
13200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13201 test $ac_status = 0; }; then
13202 # Parse the compiler output and extract the necessary
13203 # objects, libraries and library flags.
13205 # Sentinel used to keep track of whether or not we are before
13206 # the conftest object file.
13207 pre_test_object_deps_done
=no
13209 for p
in `eval "$output_verbose_link_cmd"`; do
13213 # Some compilers place space between "-{L,R}" and the path.
13214 # Remove the space.
13215 if test $p = "-L" ||
13216 test $p = "-R"; then
13223 if test "$pre_test_object_deps_done" = no
; then
13226 # Internal compiler library paths should come after those
13227 # provided the user. The postdeps already come after the
13228 # user supplied libs so there is no need to process them.
13229 if test -z "$compiler_lib_search_path_CXX"; then
13230 compiler_lib_search_path_CXX
="${prev}${p}"
13232 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
13235 # The "-l" case would never come before the object being
13236 # linked, so don't bother handling this case.
13239 if test -z "$postdeps_CXX"; then
13240 postdeps_CXX
="${prev}${p}"
13242 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
13248 # This assumes that the test object file only shows up
13249 # once in the compiler output.
13250 if test "$p" = "conftest.$objext"; then
13251 pre_test_object_deps_done
=yes
13255 if test "$pre_test_object_deps_done" = no
; then
13256 if test -z "$predep_objects_CXX"; then
13257 predep_objects_CXX
="$p"
13259 predep_objects_CXX
="$predep_objects_CXX $p"
13262 if test -z "$postdep_objects_CXX"; then
13263 postdep_objects_CXX
="$p"
13265 postdep_objects_CXX
="$postdep_objects_CXX $p"
13270 *) ;; # Ignore the rest.
13278 echo "libtool.m4: error: problem compiling CXX test program"
13281 $RM -f confest.
$objext
13283 # PORTME: override above test on systems where it is broken
13286 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13287 # hack all around it, let's just trust "g++" to DTRT.
13288 predep_objects_CXX
=
13289 postdep_objects_CXX
=
13294 case `$CC -V 2>&1 | sed 5q` in
13298 # The more standards-conforming stlport4 library is
13299 # incompatible with the Cstd library. Avoid specifying
13300 # it if it's in CXXFLAGS. Ignore libCrun as
13301 # -library=stlport4 depends on it.
13302 case " $CXX $CXXFLAGS " in
13303 *" -library=stlport4 "*)
13304 solaris_use_stlport4
=yes
13308 if test "$solaris_use_stlport4" != yes; then
13309 postdeps_CXX
='-library=Cstd -library=Crun'
13316 case $cc_basename in
13318 # The more standards-conforming stlport4 library is
13319 # incompatible with the Cstd library. Avoid specifying
13320 # it if it's in CXXFLAGS. Ignore libCrun as
13321 # -library=stlport4 depends on it.
13322 case " $CXX $CXXFLAGS " in
13323 *" -library=stlport4 "*)
13324 solaris_use_stlport4
=yes
13328 # Adding this requires a known-good setup of shared libraries for
13329 # Sun compiler versions before 5.6, else PIC objects from an old
13330 # archive will be linked into the output, leading to subtle bugs.
13331 if test "$solaris_use_stlport4" != yes; then
13332 postdeps_CXX
='-library=Cstd -library=Crun'
13340 case " $postdeps_CXX " in
13341 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
13343 compiler_lib_search_dirs_CXX
=
13344 if test -n "${compiler_lib_search_path_CXX}"; then
13345 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13378 lt_prog_compiler_wl_CXX
=
13379 lt_prog_compiler_pic_CXX
=
13380 lt_prog_compiler_static_CXX
=
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13383 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13385 # C++ specific cases for pic, static, wl, etc.
13386 if test "$GXX" = yes; then
13387 lt_prog_compiler_wl_CXX
='-Wl,'
13388 lt_prog_compiler_static_CXX
='-static'
13392 # All AIX code is PIC.
13393 if test "$host_cpu" = ia64
; then
13394 # AIX 5 now supports IA64 processor
13395 lt_prog_compiler_static_CXX
='-Bstatic'
13397 lt_prog_compiler_pic_CXX
='-fPIC'
13403 # see comment about AmigaOS4 .so support
13404 lt_prog_compiler_pic_CXX
='-fPIC'
13407 # FIXME: we need at least 68020 code to build shared libraries, but
13408 # adding the `-m68020' flag to GCC prevents building anything better,
13410 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
13415 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13416 # PIC is the default for these OSes.
13418 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
13419 # This hack is so that the source file can tell whether it is being
13420 # built for inclusion in a dll (and should export symbols for example).
13421 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13422 # (--disable-auto-import) libraries
13423 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
13425 darwin
* | rhapsody
*)
13426 # PIC is the default on this platform
13427 # Common symbols not allowed in MH_DYLIB files
13428 lt_prog_compiler_pic_CXX
='-fno-common'
13431 # DJGPP does not support shared libraries at all
13432 lt_prog_compiler_pic_CXX
=
13435 # PIC is the default for Haiku.
13436 # The "-static" flag exists, but is broken.
13437 lt_prog_compiler_static_CXX
=
13440 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13441 # Instead, we relocate shared libraries at runtime.
13444 if test -d /usr
/nec
; then
13445 lt_prog_compiler_pic_CXX
=-Kconform_pic
13449 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13450 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13451 # sets the default TLS model and affects inlining.
13456 lt_prog_compiler_pic_CXX
='-fPIC'
13461 # QNX uses GNU C++, but need to define -shared option too, otherwise
13462 # it will coredump.
13463 lt_prog_compiler_pic_CXX
='-fPIC -shared'
13466 lt_prog_compiler_pic_CXX
='-fPIC'
13472 # All AIX code is PIC.
13473 if test "$host_cpu" = ia64
; then
13474 # AIX 5 now supports IA64 processor
13475 lt_prog_compiler_static_CXX
='-Bstatic'
13477 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
13481 case $cc_basename in
13483 # Green Hills C++ Compiler
13484 # _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"
13489 case $cc_basename in
13491 lt_prog_compiler_pic_CXX
='-KPIC'
13494 # Green Hills C++ Compiler
13495 lt_prog_compiler_pic_CXX
='-pic'
13501 freebsd
* | dragonfly
*)
13502 # FreeBSD uses GNU C++
13504 hpux9
* | hpux10
* | hpux11
*)
13505 case $cc_basename in
13507 lt_prog_compiler_wl_CXX
='-Wl,'
13508 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
13509 if test "$host_cpu" != ia64
; then
13510 lt_prog_compiler_pic_CXX
='+Z'
13514 lt_prog_compiler_wl_CXX
='-Wl,'
13515 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
13521 lt_prog_compiler_pic_CXX
='+Z'
13530 # This is c89, which is MS Visual C++ (no shared libs)
13531 # Anyone wants to do a port?
13533 irix5
* | irix6
* | nonstopux
*)
13534 case $cc_basename in
13536 lt_prog_compiler_wl_CXX
='-Wl,'
13537 lt_prog_compiler_static_CXX
='-non_shared'
13538 # CC pic flag -KPIC is the default.
13544 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
13545 case $cc_basename in
13548 lt_prog_compiler_wl_CXX
='--backend -Wl,'
13549 lt_prog_compiler_pic_CXX
='-fPIC'
13552 # old Intel C++ for x86_64 which still supported -KPIC.
13553 lt_prog_compiler_wl_CXX
='-Wl,'
13554 lt_prog_compiler_pic_CXX
='-KPIC'
13555 lt_prog_compiler_static_CXX
='-static'
13558 # Intel C++, used to be incompatible with GCC.
13559 # ICC 10 doesn't accept -KPIC any more.
13560 lt_prog_compiler_wl_CXX
='-Wl,'
13561 lt_prog_compiler_pic_CXX
='-fPIC'
13562 lt_prog_compiler_static_CXX
='-static'
13565 # Portland Group C++ compiler
13566 lt_prog_compiler_wl_CXX
='-Wl,'
13567 lt_prog_compiler_pic_CXX
='-fpic'
13568 lt_prog_compiler_static_CXX
='-Bstatic'
13572 # Make sure the PIC flag is empty. It appears that all Alpha
13573 # Linux and Compaq Tru64 Unix objects are PIC.
13574 lt_prog_compiler_pic_CXX
=
13575 lt_prog_compiler_static_CXX
='-non_shared'
13577 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
13578 # IBM XL 8.0, 9.0 on PPC and BlueGene
13579 lt_prog_compiler_wl_CXX
='-Wl,'
13580 lt_prog_compiler_pic_CXX
='-qpic'
13581 lt_prog_compiler_static_CXX
='-qstaticlink'
13584 case `$CC -V 2>&1 | sed 5q` in
13587 lt_prog_compiler_pic_CXX
='-KPIC'
13588 lt_prog_compiler_static_CXX
='-Bstatic'
13589 lt_prog_compiler_wl_CXX
='-Qoption ld '
13600 case $cc_basename in
13602 lt_prog_compiler_pic_CXX
='-W c,exportall'
13611 # QNX uses GNU C++, but need to define -shared option too, otherwise
13612 # it will coredump.
13613 lt_prog_compiler_pic_CXX
='-fPIC -shared'
13615 osf3
* | osf4
* | osf5
*)
13616 case $cc_basename in
13618 lt_prog_compiler_wl_CXX
='--backend -Wl,'
13621 # Rational C++ 2.4.1
13622 lt_prog_compiler_pic_CXX
='-pic'
13625 # Digital/Compaq C++
13626 lt_prog_compiler_wl_CXX
='-Wl,'
13627 # Make sure the PIC flag is empty. It appears that all Alpha
13628 # Linux and Compaq Tru64 Unix objects are PIC.
13629 lt_prog_compiler_pic_CXX
=
13630 lt_prog_compiler_static_CXX
='-non_shared'
13639 case $cc_basename in
13641 # Sun C++ 4.2, 5.x and Centerline C++
13642 lt_prog_compiler_pic_CXX
='-KPIC'
13643 lt_prog_compiler_static_CXX
='-Bstatic'
13644 lt_prog_compiler_wl_CXX
='-Qoption ld '
13647 # Green Hills C++ Compiler
13648 lt_prog_compiler_pic_CXX
='-PIC'
13655 case $cc_basename in
13658 lt_prog_compiler_pic_CXX
='-pic'
13659 lt_prog_compiler_static_CXX
='-Bstatic'
13663 lt_prog_compiler_pic_CXX
='-pic'
13669 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
13670 case $cc_basename in
13672 lt_prog_compiler_wl_CXX
='-Wl,'
13673 lt_prog_compiler_pic_CXX
='-KPIC'
13674 lt_prog_compiler_static_CXX
='-Bstatic'
13679 case $cc_basename in
13681 # NonStop-UX NCC 3.20
13682 lt_prog_compiler_pic_CXX
='-KPIC'
13691 lt_prog_compiler_can_build_shared_CXX
=no
13697 # For platforms which do not support PIC, -DPIC is meaningless:
13699 lt_prog_compiler_pic_CXX
=
13702 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13706 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13711 # Check to make sure the PIC flag actually works.
13713 if test -n "$lt_prog_compiler_pic_CXX"; then
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13715 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13716 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
13717 $as_echo_n "(cached) " >&6
13719 lt_cv_prog_compiler_pic_works_CXX
=no
13720 ac_outfile
=conftest.
$ac_objext
13721 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13722 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
13723 # Insert the option either (1) after the last *FLAGS variable, or
13724 # (2) before a word containing "conftest.", or (3) at the end.
13725 # Note that $ac_compile itself does not contain backslashes and begins
13726 # with a dollar sign (not a hyphen), so the echo should work correctly.
13727 # The option is referenced via a variable to avoid confusing sed.
13728 lt_compile
=`echo "$ac_compile" | $SED \
13729 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13730 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13731 -e 's:$: $lt_compiler_flag:'`
13732 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13733 (eval "$lt_compile" 2>conftest.err
)
13735 cat conftest.err
>&5
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 if (exit $ac_status) && test -s "$ac_outfile"; then
13738 # The compiler can only warn and ignore the option if not recognized
13739 # So say no if there are warnings other than the usual output.
13740 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
13741 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13742 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
13743 lt_cv_prog_compiler_pic_works_CXX
=yes
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13750 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13752 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
13753 case $lt_prog_compiler_pic_CXX in
13755 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
13758 lt_prog_compiler_pic_CXX
=
13759 lt_prog_compiler_can_build_shared_CXX
=no
13767 # Check to make sure the static flag actually works.
13769 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13771 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13772 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
13773 $as_echo_n "(cached) " >&6
13775 lt_cv_prog_compiler_static_works_CXX
=no
13776 save_LDFLAGS
="$LDFLAGS"
13777 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
13778 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
13779 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
13780 # The linker can only warn and ignore the option if not recognized
13781 # So say no if there are warnings
13782 if test -s conftest.err
; then
13783 # Append any errors to the config.log.
13784 cat conftest.err
1>&5
13785 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
13786 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
13787 if diff conftest.exp conftest.er2
>/dev
/null
; then
13788 lt_cv_prog_compiler_static_works_CXX
=yes
13791 lt_cv_prog_compiler_static_works_CXX
=yes
13795 LDFLAGS
="$save_LDFLAGS"
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13799 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13801 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
13804 lt_prog_compiler_static_CXX
=
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13811 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13812 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
13813 $as_echo_n "(cached) " >&6
13815 lt_cv_prog_compiler_c_o_CXX
=no
13816 $RM -r conftest
2>/dev
/null
13820 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13822 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13823 # Insert the option either (1) after the last *FLAGS variable, or
13824 # (2) before a word containing "conftest.", or (3) at the end.
13825 # Note that $ac_compile itself does not contain backslashes and begins
13826 # with a dollar sign (not a hyphen), so the echo should work correctly.
13827 lt_compile
=`echo "$ac_compile" | $SED \
13828 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13829 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13830 -e 's:$: $lt_compiler_flag:'`
13831 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13832 (eval "$lt_compile" 2>out
/conftest.err
)
13834 cat out
/conftest.err
>&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13838 # The compiler can only warn and ignore the option if not recognized
13839 # So say no if there are warnings
13840 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
13841 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
13842 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
13843 lt_cv_prog_compiler_c_o_CXX
=yes
13848 # SGI C++ compiler will create directory out/ii_files/ for
13849 # template instantiation
13850 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
13851 $RM out
/* && rmdir out
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13858 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13863 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13864 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
13865 $as_echo_n "(cached) " >&6
13867 lt_cv_prog_compiler_c_o_CXX
=no
13868 $RM -r conftest
2>/dev
/null
13872 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13874 lt_compiler_flag
="-o out/conftest2.$ac_objext"
13875 # Insert the option either (1) after the last *FLAGS variable, or
13876 # (2) before a word containing "conftest.", or (3) at the end.
13877 # Note that $ac_compile itself does not contain backslashes and begins
13878 # with a dollar sign (not a hyphen), so the echo should work correctly.
13879 lt_compile
=`echo "$ac_compile" | $SED \
13880 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13882 -e 's:$: $lt_compiler_flag:'`
13883 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13884 (eval "$lt_compile" 2>out
/conftest.err
)
13886 cat out
/conftest.err
>&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
13890 # The compiler can only warn and ignore the option if not recognized
13891 # So say no if there are warnings
13892 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
13893 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
13894 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
13895 lt_cv_prog_compiler_c_o_CXX
=yes
13900 # SGI C++ compiler will create directory out/ii_files/ for
13901 # template instantiation
13902 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
13903 $RM out
/* && rmdir out
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13910 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13915 hard_links
="nottested"
13916 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
13917 # do not overwrite the value of need_locks provided by the user
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13919 $as_echo_n "checking if we can lock with hard links... " >&6; }
13922 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13924 ln conftest.a conftest.b
2>&5 || hard_links
=no
13925 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13927 $as_echo "$hard_links" >&6; }
13928 if test "$hard_links" = no
; then
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13930 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13940 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13942 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13945 # If we're using GNU nm, then we don't want the "-C" option.
13946 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13947 # Also, AIX nm treats weak defined symbols like other global defined
13948 # symbols, whereas GNU nm marks them as "W".
13949 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
13950 export_symbols_cmds_CXX
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13952 export_symbols_cmds_CXX
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13956 export_symbols_cmds_CXX
="$ltdll_cmds"
13958 cygwin
* | mingw
* | cegcc
*)
13959 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'
13962 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13965 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13968 $as_echo "$ld_shlibs_CXX" >&6; }
13969 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
13971 with_gnu_ld_CXX
=$with_gnu_ld
13979 # Do we need to explicitly link libc?
13981 case "x$archive_cmds_need_lc_CXX" in
13983 # Assume -lc should be added
13984 archive_cmds_need_lc_CXX
=yes
13986 if test "$enable_shared" = yes && test "$GCC" = yes; then
13987 case $archive_cmds_CXX in
13989 # FIXME: we may have to deal with multi-command sequences.
13992 # Test whether the compiler implicitly links with -lc since on some
13993 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13994 # to ld, don't add -lc before -lgcc.
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13996 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13997 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
13998 $as_echo_n "(cached) " >&6
14001 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14004 (eval $ac_compile) 2>&5
14006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14007 test $ac_status = 0; } 2>conftest.err
; then
14010 libobjs
=conftest.
$ac_objext
14012 wl
=$lt_prog_compiler_wl_CXX
14013 pic_flag
=$lt_prog_compiler_pic_CXX
14019 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
14020 allow_undefined_flag_CXX
=
14021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14022 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
14024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14025 test $ac_status = 0; }
14027 lt_cv_archive_cmds_need_lc_CXX
=no
14029 lt_cv_archive_cmds_need_lc_CXX
=yes
14031 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
14033 cat conftest.err
1>&5
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14039 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14040 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14111 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14113 library_names_spec
=
14114 libname_spec
='lib$name'
14118 postuninstall_cmds
=
14122 shlibpath_overrides_runpath
=unknown
14124 dynamic_linker
="$host_os ld.so"
14125 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14126 need_lib_prefix
=unknown
14127 hardcode_into_libs
=no
14129 # when you set need_version to no, make sure it does not cause -set_version
14130 # flags to be left without arguments
14131 need_version
=unknown
14136 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14137 shlibpath_var
=LIBPATH
14139 # AIX 3 has no versioning support, so we append a major version to the name.
14140 soname_spec
='${libname}${release}${shared_ext}$major'
14147 hardcode_into_libs
=yes
14148 if test "$host_cpu" = ia64
; then
14149 # AIX 5 supports IA64
14150 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14151 shlibpath_var
=LD_LIBRARY_PATH
14153 # With GCC up to 2.95.x, collect2 would create an import file
14154 # for dependence libraries. The import file would start with
14155 # the line `#! .'. This would cause the generated library to
14156 # depend on `.', always an invalid library. This was fixed in
14157 # development snapshots of GCC prior to 3.0.
14159 aix4 | aix4.
[01] | aix4.
[01].
*)
14160 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14162 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
14165 can_build_shared
=no
14169 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14170 # soname into executable. Probably we can add versioning support to
14171 # collect2, so additional links can be useful in future.
14172 if test "$aix_use_runtimelinking" = yes; then
14173 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14174 # instead of lib<name>.a to let people know that these are not
14175 # typical AIX shared libraries.
14176 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14178 # We preserve .a as extension for shared libraries through AIX4.2
14179 # and later when we are not doing run time linking.
14180 library_names_spec
='${libname}${release}.a $libname.a'
14181 soname_spec
='${libname}${release}${shared_ext}$major'
14183 shlibpath_var
=LIBPATH
14190 # Since July 2007 AmigaOS4 officially supports .so libraries.
14191 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14192 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14195 library_names_spec
='$libname.ixlibrary $libname.a'
14196 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14197 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14203 library_names_spec
='${libname}${shared_ext}'
14204 dynamic_linker
="$host_os ld.so"
14205 shlibpath_var
=LIBRARY_PATH
14211 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14212 soname_spec
='${libname}${release}${shared_ext}$major'
14213 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14214 shlibpath_var
=LD_LIBRARY_PATH
14215 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14216 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14217 # the default ld.so.conf also contains /usr/contrib/lib and
14218 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14219 # libtool to hard-code these into programs
14222 cygwin
* | mingw
* | pw32
* | cegcc
*)
14223 version_type
=windows
14228 case $GCC,$host_os in
14229 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
14230 library_names_spec
='$libname.dll.a'
14231 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14232 postinstall_cmds
='base_file=`basename \${file}`~
14233 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14234 dldir=$destdir/`dirname \$dlpath`~
14235 test -d \$dldir || mkdir -p \$dldir~
14236 $install_prog $dir/$dlname \$dldir/$dlname~
14237 chmod a+x \$dldir/$dlname~
14238 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14239 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14241 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14242 dlpath=$dir/\$dldll~
14244 shlibpath_overrides_runpath
=yes
14248 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14249 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14253 # MinGW DLLs use traditional 'lib' prefix
14254 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14257 # pw32 DLLs use 'pw' prefix rather than 'lib'
14258 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14264 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14267 dynamic_linker
='Win32 ld.exe'
14268 # FIXME: first we should search . and the directory the executable is in
14272 darwin
* | rhapsody
*)
14273 dynamic_linker
="$host_os dyld"
14274 version_type
=darwin
14277 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14278 soname_spec
='${libname}${release}${major}$shared_ext'
14279 shlibpath_overrides_runpath
=yes
14280 shlibpath_var
=DYLD_LIBRARY_PATH
14281 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
14283 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14290 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14291 soname_spec
='${libname}${release}${shared_ext}$major'
14292 shlibpath_var
=LD_LIBRARY_PATH
14295 freebsd
* | dragonfly
*)
14296 # DragonFly does not have aout. When/if they implement a new
14297 # versioning mechanism, adjust this.
14298 if test -x /usr
/bin
/objformat
; then
14299 objformat
=`/usr/bin/objformat`
14302 freebsd
[23].
*) objformat
=aout
;;
14303 *) objformat
=elf
;;
14306 version_type
=freebsd-
$objformat
14307 case $version_type in
14309 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14314 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14318 shlibpath_var
=LD_LIBRARY_PATH
14321 shlibpath_overrides_runpath
=yes
14323 freebsd3.
[01]* | freebsdelf3.
[01]*)
14324 shlibpath_overrides_runpath
=yes
14325 hardcode_into_libs
=yes
14327 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
14328 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
14329 shlibpath_overrides_runpath
=no
14330 hardcode_into_libs
=yes
14332 *) # from 4.6 on, and DragonFly
14333 shlibpath_overrides_runpath
=yes
14334 hardcode_into_libs
=yes
14343 dynamic_linker
="$host_os runtime_loader"
14344 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14345 soname_spec
='${libname}${release}${shared_ext}$major'
14346 shlibpath_var
=LIBRARY_PATH
14347 shlibpath_overrides_runpath
=yes
14348 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14349 hardcode_into_libs
=yes
14352 hpux9
* | hpux10
* | hpux11
*)
14353 # Give a soname corresponding to the major version so that dld.sl refuses to
14354 # link against other versions.
14361 hardcode_into_libs
=yes
14362 dynamic_linker
="$host_os dld.so"
14363 shlibpath_var
=LD_LIBRARY_PATH
14364 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14365 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14366 soname_spec
='${libname}${release}${shared_ext}$major'
14367 if test "X$HPUX_IA64_MODE" = X32
; then
14368 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14370 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14372 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14376 hardcode_into_libs
=yes
14377 dynamic_linker
="$host_os dld.sl"
14378 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14379 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14380 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14381 soname_spec
='${libname}${release}${shared_ext}$major'
14382 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14383 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14387 dynamic_linker
="$host_os dld.sl"
14388 shlibpath_var
=SHLIB_PATH
14389 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14390 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14391 soname_spec
='${libname}${release}${shared_ext}$major'
14394 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14395 postinstall_cmds
='chmod 555 $lib'
14396 # or fails outright, so override atomically:
14397 install_override_mode
=555
14404 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14405 soname_spec
='${libname}${release}${shared_ext}$major'
14406 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14407 shlibpath_var
=LD_LIBRARY_PATH
14408 shlibpath_overrides_runpath
=no
14409 hardcode_into_libs
=yes
14412 irix5
* | irix6
* | nonstopux
*)
14414 nonstopux
*) version_type
=nonstopux
;;
14416 if test "$lt_cv_prog_gnu_ld" = yes; then
14424 soname_spec
='${libname}${release}${shared_ext}$major'
14425 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14427 irix5
* | nonstopux
*)
14428 libsuff
= shlibsuff
=
14431 case $LD in # libtool.m4 will add one of these switches to LD
14432 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14433 libsuff
= shlibsuff
= libmagic
=32-bit;;
14434 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14435 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14436 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14437 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14438 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14442 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14443 shlibpath_overrides_runpath
=no
14444 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14445 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14446 hardcode_into_libs
=yes
14449 # No shared lib support for Linux oldld, aout, or coff.
14450 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14454 # This must be Linux ELF.
14455 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
14459 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14460 soname_spec
='${libname}${release}${shared_ext}$major'
14461 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14462 shlibpath_var
=LD_LIBRARY_PATH
14463 shlibpath_overrides_runpath
=no
14465 # Some binutils ld are patched to set DT_RUNPATH
14466 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
14467 $as_echo_n "(cached) " >&6
14469 lt_cv_shlibpath_overrides_runpath
=no
14470 save_LDFLAGS
=$LDFLAGS
14471 save_libdir
=$libdir
14472 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14473 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14475 /* end confdefs.h. */
14485 if ac_fn_cxx_try_link
"$LINENO"; then :
14486 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
14487 lt_cv_shlibpath_overrides_runpath
=yes
14490 rm -f core conftest.err conftest.
$ac_objext \
14491 conftest
$ac_exeext conftest.
$ac_ext
14492 LDFLAGS
=$save_LDFLAGS
14493 libdir
=$save_libdir
14497 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
14499 # This implies no fast_install, which is unacceptable.
14500 # Some rework will be needed to allow for fast_install
14501 # before this can be enabled.
14502 hardcode_into_libs
=yes
14504 # Append ld.so.conf contents to the search path
14505 if test -f /etc
/ld.so.conf
; then
14506 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
14507 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14510 # We used to test for /lib/ld.so.1 and disable shared libraries on
14511 # powerpc, because MkLinux only supported shared libraries with the
14512 # GNU dynamic linker. Since this was broken with cross compilers,
14513 # most powerpc-linux boxes support dynamic linking these days and
14514 # people can always --disable-shared, the test was removed, and we
14515 # assume the GNU/Linux dynamic linker is in use.
14516 dynamic_linker
='GNU/Linux ld.so'
14523 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14524 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14525 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14526 dynamic_linker
='NetBSD (a.out) ld.so'
14528 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14529 soname_spec
='${libname}${release}${shared_ext}$major'
14530 dynamic_linker
='NetBSD ld.elf_so'
14532 shlibpath_var
=LD_LIBRARY_PATH
14533 shlibpath_overrides_runpath
=yes
14534 hardcode_into_libs
=yes
14539 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14540 shlibpath_var
=LD_LIBRARY_PATH
14541 shlibpath_overrides_runpath
=yes
14548 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14549 soname_spec
='${libname}${release}${shared_ext}$major'
14550 shlibpath_var
=LD_LIBRARY_PATH
14551 shlibpath_overrides_runpath
=no
14552 hardcode_into_libs
=yes
14553 dynamic_linker
='ldqnx.so'
14558 sys_lib_dlsearch_path_spec
="/usr/lib"
14560 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14562 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
14563 *) need_version
=no
;;
14565 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14566 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14567 shlibpath_var
=LD_LIBRARY_PATH
14568 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14570 openbsd2.
[89] | openbsd2.
[89].
*)
14571 shlibpath_overrides_runpath
=no
14574 shlibpath_overrides_runpath
=yes
14578 shlibpath_overrides_runpath
=yes
14583 libname_spec
='$name'
14586 library_names_spec
='$libname${shared_ext} $libname.a'
14587 dynamic_linker
='OS/2 ld.exe'
14588 shlibpath_var
=LIBPATH
14591 osf3
* | osf4
* | osf5
*)
14595 soname_spec
='${libname}${release}${shared_ext}$major'
14596 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14597 shlibpath_var
=LD_LIBRARY_PATH
14598 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14599 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
14610 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14611 soname_spec
='${libname}${release}${shared_ext}$major'
14612 shlibpath_var
=LD_LIBRARY_PATH
14613 shlibpath_overrides_runpath
=yes
14614 hardcode_into_libs
=yes
14615 # ldd complains unless libraries are executable
14616 postinstall_cmds
='chmod +x $lib'
14621 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14622 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14623 shlibpath_var
=LD_LIBRARY_PATH
14624 shlibpath_overrides_runpath
=yes
14625 if test "$with_gnu_ld" = yes; then
14633 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14634 soname_spec
='${libname}${release}${shared_ext}$major'
14635 shlibpath_var
=LD_LIBRARY_PATH
14636 case $host_vendor in
14638 shlibpath_overrides_runpath
=no
14640 runpath_var
=LD_RUN_PATH
14648 shlibpath_overrides_runpath
=no
14649 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
14655 if test -d /usr
/nec
;then
14657 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14658 soname_spec
='$libname${shared_ext}.$major'
14659 shlibpath_var
=LD_LIBRARY_PATH
14663 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
14664 version_type
=freebsd-elf
14667 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14668 soname_spec
='${libname}${release}${shared_ext}$major'
14669 shlibpath_var
=LD_LIBRARY_PATH
14670 shlibpath_overrides_runpath
=yes
14671 hardcode_into_libs
=yes
14672 if test "$with_gnu_ld" = yes; then
14673 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14675 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
14678 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
14682 sys_lib_dlsearch_path_spec
='/usr/lib'
14686 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14690 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14691 shlibpath_var
=LD_LIBRARY_PATH
14692 shlibpath_overrides_runpath
=no
14693 hardcode_into_libs
=yes
14698 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14699 soname_spec
='${libname}${release}${shared_ext}$major'
14700 shlibpath_var
=LD_LIBRARY_PATH
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14708 $as_echo "$dynamic_linker" >&6; }
14709 test "$dynamic_linker" = no
&& can_build_shared
=no
14711 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14712 if test "$GCC" = yes; then
14713 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14716 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14717 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
14719 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14720 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14761 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14762 hardcode_action_CXX
=
14763 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14764 test -n "$runpath_var_CXX" ||
14765 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14767 # We can hardcode non-existent directories.
14768 if test "$hardcode_direct_CXX" != no
&&
14769 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14770 # have to relink, otherwise we might link with an installed library
14771 # when we should be linking with a yet-to-be-installed one
14772 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14773 test "$hardcode_minus_L_CXX" != no
; then
14774 # Linking always hardcodes the temporary library directory.
14775 hardcode_action_CXX
=relink
14777 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14778 hardcode_action_CXX
=immediate
14781 # We cannot hardcode anything, or else we can only hardcode existing
14783 hardcode_action_CXX
=unsupported
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14786 $as_echo "$hardcode_action_CXX" >&6; }
14788 if test "$hardcode_action_CXX" = relink ||
14789 test "$inherit_rpath_CXX" = yes; then
14790 # Fast installation is not supported
14791 enable_fast_install
=no
14792 elif test "$shlibpath_overrides_runpath" = yes ||
14793 test "$enable_shared" = no
; then
14794 # Fast installation is not necessary
14795 enable_fast_install
=needless
14804 fi # test -n "$compiler"
14810 with_gnu_ld
=$lt_save_with_gnu_ld
14811 lt_cv_path_LDCXX
=$lt_cv_path_LD
14812 lt_cv_path_LD
=$lt_save_path_LD
14813 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
14814 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
14815 fi # test "$_lt_caught_CXX_error" != yes
14818 ac_cpp
='$CPP $CPPFLAGS'
14819 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14820 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14821 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14835 ac_config_commands
="$ac_config_commands libtool"
14840 # Only expand once:
14844 # The tests for host and target for $enable_largefile require
14849 # As the $enable_largefile decision depends on --enable-plugins we must set it
14850 # even in directories otherwise not depending on the $plugins option.
14854 for ac_header
in dlfcn.h
14856 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14858 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
14859 cat >>confdefs.h
<<_ACEOF
14860 #define HAVE_DLFCN_H 1
14867 for ac_header
in windows.h
14869 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
14871 if test "x$ac_cv_header_windows_h" = xyes
; then :
14872 cat >>confdefs.h
<<_ACEOF
14873 #define HAVE_WINDOWS_H 1
14881 # Check whether --enable-plugins was given.
14882 if test "${enable_plugins+set}" = set; then :
14883 enableval
=$enable_plugins; case "${enableval}" in
14886 if test "$maybe_plugins" != "yes" ; then
14887 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
14891 plugins
=$maybe_plugins
14895 if test "$plugins" = "yes"; then
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
14897 $as_echo_n "checking for library containing dlsym... " >&6; }
14898 if ${ac_cv_search_dlsym+:} false
; then :
14899 $as_echo_n "(cached) " >&6
14901 ac_func_search_save_LIBS
=$LIBS
14902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14903 /* end confdefs.h. */
14905 /* Override any GCC internal prototype to avoid an error.
14906 Use char because int might match the return type of a GCC
14907 builtin and then its argument prototype would still apply. */
14920 for ac_lib
in '' dl
; do
14921 if test -z "$ac_lib"; then
14922 ac_res
="none required"
14925 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14927 if ac_fn_c_try_link
"$LINENO"; then :
14928 ac_cv_search_dlsym
=$ac_res
14930 rm -f core conftest.err conftest.
$ac_objext \
14932 if ${ac_cv_search_dlsym+:} false
; then :
14936 if ${ac_cv_search_dlsym+:} false
; then :
14939 ac_cv_search_dlsym
=no
14941 rm conftest.
$ac_ext
14942 LIBS
=$ac_func_search_save_LIBS
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
14945 $as_echo "$ac_cv_search_dlsym" >&6; }
14946 ac_res
=$ac_cv_search_dlsym
14947 if test "$ac_res" != no
; then :
14948 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14956 sparc-
*-solaris*|i?
86-*-solaris*)
14957 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
14958 # were mutually exclusive until Solaris 11.3. Without procfs support,
14959 # the bfd/ elf module cannot provide certain routines such as
14960 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
14961 # explicitly requested large-file support through the
14962 # --enable-largefile switch, disable large-file support in favor of
14965 # Check if <sys/procfs.h> is incompatible with large-file support.
14966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14967 /* end confdefs.h. */
14968 #define _FILE_OFFSET_BITS 64
14969 #define _STRUCTURED_PROC 1
14970 #include <sys/procfs.h>
14979 if ac_fn_c_try_compile
"$LINENO"; then :
14980 acx_cv_procfs_lfs
=yes
14982 acx_cv_procfs_lfs
=no
14984 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14986 # Forcefully disable large-file support only if necessary, gdb is in
14987 # tree and enabled.
14988 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
14989 -a -d $srcdir/..
/gdb
-a "$enable_gdb" != no
; then
14990 : ${enable_largefile="no"}
14991 if test "$plugins" = yes; then
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14993 plugin support disabled; require large-file support which is incompatible with GDB." >&5
14994 $as_echo "$as_me: WARNING:
14995 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
15000 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
15001 # benefit of g++ 9+ which predefines it on Solaris.
15002 if test "$enable_largefile" = no
; then
15003 LARGEFILE_CPPFLAGS
="-U_FILE_OFFSET_BITS"
15009 # Check whether --enable-largefile was given.
15010 if test "${enable_largefile+set}" = set; then :
15011 enableval
=$enable_largefile;
15014 if test "$enable_largefile" != no
; then
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15017 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15018 if ${ac_cv_sys_largefile_CC+:} false
; then :
15019 $as_echo_n "(cached) " >&6
15021 ac_cv_sys_largefile_CC
=no
15022 if test "$GCC" != yes; then
15025 # IRIX 6.2 and later do not support large files by default,
15026 # so use the C compiler's -n32 option if that helps.
15027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15028 /* end confdefs.h. */
15029 #include <sys/types.h>
15030 /* Check that off_t can represent 2**63 - 1 correctly.
15031 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15032 since some C++ compilers masquerading as C compilers
15033 incorrectly reject 9223372036854775807. */
15034 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15035 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15036 && LARGE_OFF_T % 2147483647 == 1)
15046 if ac_fn_c_try_compile
"$LINENO"; then :
15049 rm -f core conftest.err conftest.
$ac_objext
15051 if ac_fn_c_try_compile
"$LINENO"; then :
15052 ac_cv_sys_largefile_CC
=' -n32'; break
15054 rm -f core conftest.err conftest.
$ac_objext
15058 rm -f conftest.
$ac_ext
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15062 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15063 if test "$ac_cv_sys_largefile_CC" != no
; then
15064 CC
=$CC$ac_cv_sys_largefile_CC
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15068 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15069 if ${ac_cv_sys_file_offset_bits+:} false
; then :
15070 $as_echo_n "(cached) " >&6
15073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15074 /* end confdefs.h. */
15075 #include <sys/types.h>
15076 /* Check that off_t can represent 2**63 - 1 correctly.
15077 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15078 since some C++ compilers masquerading as C compilers
15079 incorrectly reject 9223372036854775807. */
15080 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15081 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15082 && LARGE_OFF_T % 2147483647 == 1)
15092 if ac_fn_c_try_compile
"$LINENO"; then :
15093 ac_cv_sys_file_offset_bits
=no
; break
15095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15097 /* end confdefs.h. */
15098 #define _FILE_OFFSET_BITS 64
15099 #include <sys/types.h>
15100 /* Check that off_t can represent 2**63 - 1 correctly.
15101 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15102 since some C++ compilers masquerading as C compilers
15103 incorrectly reject 9223372036854775807. */
15104 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15105 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15106 && LARGE_OFF_T % 2147483647 == 1)
15116 if ac_fn_c_try_compile
"$LINENO"; then :
15117 ac_cv_sys_file_offset_bits
=64; break
15119 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15120 ac_cv_sys_file_offset_bits
=unknown
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15125 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15126 case $ac_cv_sys_file_offset_bits in #(
15129 cat >>confdefs.h
<<_ACEOF
15130 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15135 if test $ac_cv_sys_file_offset_bits = unknown
; then
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15137 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15138 if ${ac_cv_sys_large_files+:} false
; then :
15139 $as_echo_n "(cached) " >&6
15142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15143 /* end confdefs.h. */
15144 #include <sys/types.h>
15145 /* Check that off_t can represent 2**63 - 1 correctly.
15146 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15147 since some C++ compilers masquerading as C compilers
15148 incorrectly reject 9223372036854775807. */
15149 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15150 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15151 && LARGE_OFF_T % 2147483647 == 1)
15161 if ac_fn_c_try_compile
"$LINENO"; then :
15162 ac_cv_sys_large_files
=no
; break
15164 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15166 /* end confdefs.h. */
15167 #define _LARGE_FILES 1
15168 #include <sys/types.h>
15169 /* Check that off_t can represent 2**63 - 1 correctly.
15170 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15171 since some C++ compilers masquerading as C compilers
15172 incorrectly reject 9223372036854775807. */
15173 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15174 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15175 && LARGE_OFF_T % 2147483647 == 1)
15185 if ac_fn_c_try_compile
"$LINENO"; then :
15186 ac_cv_sys_large_files
=1; break
15188 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15189 ac_cv_sys_large_files
=unknown
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15194 $as_echo "$ac_cv_sys_large_files" >&6; }
15195 case $ac_cv_sys_large_files in #(
15198 cat >>confdefs.h
<<_ACEOF
15199 #define _LARGE_FILES $ac_cv_sys_large_files
15212 .
${srcdir}/..
/bfd
/development.sh
15213 test "$development" = true
&& ac_checking
=yes
15214 # Check whether --enable-checking was given.
15215 if test "${enable_checking+set}" = set; then :
15216 enableval
=$enable_checking; case "${enableval}" in
15217 no|none
) ac_checking
= ;;
15218 *) ac_checking
=yes ;;
15221 if test x
$ac_checking != x
; then
15223 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
15228 # Check whether --with-lib-path was given.
15229 if test "${with_lib_path+set}" = set; then :
15230 withval
=$with_lib_path; LIB_PATH
=$withval
15233 # Check whether --enable-targets was given.
15234 if test "${enable_targets+set}" = set; then :
15235 enableval
=$enable_targets; case "${enableval}" in
15236 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
15238 no
) enable_targets
= ;;
15239 *) enable_targets
=$enableval ;;
15243 # Check whether --enable-64-bit-bfd was given.
15244 if test "${enable_64_bit_bfd+set}" = set; then :
15245 enableval
=$enable_64_bit_bfd; case $enableval in #(
15249 as_fn_error $?
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
15254 enable_64_bit_bfd
=no
15258 if test "x$enable_64_bit_bfd" = "xno"; then :
15259 # The cast to long int works around a bug in the HP C Compiler
15260 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15261 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15262 # This bug is HP SR number 8606223364.
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15264 $as_echo_n "checking size of void *... " >&6; }
15265 if ${ac_cv_sizeof_void_p+:} false
; then :
15266 $as_echo_n "(cached) " >&6
15268 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15271 if test "$ac_cv_type_void_p" = yes; then
15272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15274 as_fn_error
77 "cannot compute sizeof (void *)
15275 See \`config.log' for more details" "$LINENO" 5; }
15277 ac_cv_sizeof_void_p
=0
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15283 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15287 cat >>confdefs.h
<<_ACEOF
15288 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15292 if test "x$ac_cv_sizeof_void_p" = "x8"; then :
15293 enable_64_bit_bfd
=yes
15298 if test "x$enable_64_bit_bfd" = "xyes"; then
15299 ENABLE_BFD_64_BIT_TRUE
=
15300 ENABLE_BFD_64_BIT_FALSE
='#'
15302 ENABLE_BFD_64_BIT_TRUE
='#'
15303 ENABLE_BFD_64_BIT_FALSE
=
15309 # Check whether --with-sysroot was given.
15310 if test "${with_sysroot+set}" = set; then :
15311 withval
=$with_sysroot;
15312 case ${with_sysroot} in
15313 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_alias}/sys-root' ;;
15314 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
15317 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
15320 if test "x$prefix" = xNONE
; then
15321 test_prefix
=/usr
/local
15323 test_prefix
=$prefix
15325 if test "x$exec_prefix" = xNONE
; then
15326 test_exec_prefix
=$test_prefix
15328 test_exec_prefix
=$exec_prefix
15330 case ${TARGET_SYSTEM_ROOT} in
15331 "${test_prefix}"|
"${test_prefix}/"*|\
15332 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
15333 '${prefix}'|
'${prefix}/'*|\
15334 '${exec_prefix}'|
'${exec_prefix}/'*)
15335 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
15336 TARGET_SYSTEM_ROOT_DEFINE
="$t"
15343 TARGET_SYSTEM_ROOT
=
15344 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"\"'
15352 # Check whether --enable-gold was given.
15353 if test "${enable_gold+set}" = set; then :
15354 enableval
=$enable_gold; case "${enableval}" in
15356 install_as_default
=no
15357 installed_linker
=ld.bfd
15360 install_as_default
=yes
15361 installed_linker
=ld.bfd
15364 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
15368 install_as_default
=yes
15369 installed_linker
=ld.bfd
15375 # Check whether --enable-got was given.
15376 if test "${enable_got+set}" = set; then :
15377 enableval
=$enable_got; case "${enableval}" in
15378 target | single | negative | multigot
) got_handling
=$enableval ;;
15379 *) as_fn_error $?
"bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
15382 got_handling
=target
15386 case "${got_handling}" in
15389 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
15393 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
15397 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
15401 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
15403 *) as_fn_error $?
"bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
15407 # Decide the default method for compressing debug sections.
15408 ac_default_compressed_debug_sections
=unset
15409 # Provide a configure time option to override our default.
15410 # Check whether --enable-compressed_debug_sections was given.
15411 if test "${enable_compressed_debug_sections+set}" = set; then :
15412 enableval
=$enable_compressed_debug_sections; case ,"${enableval}", in
15413 ,yes, |
,all
, |
*,ld
,*) ac_default_compressed_debug_sections
=yes ;;
15414 ,no
, |
,none
,) ac_default_compressed_debug_sections
=no
;;
15418 # Decide setting DT_RUNPATH instead of DT_RPATH by default
15419 ac_default_new_dtags
=unset
15420 # Provide a configure time option to override our default.
15421 # Check whether --enable-new_dtags was given.
15422 if test "${enable_new_dtags+set}" = set; then :
15423 enableval
=$enable_new_dtags; case "${enableval}" in
15424 yes) ac_default_new_dtags
=1 ;;
15425 no
) ac_default_new_dtags
=0 ;;
15429 # Decide if -z relro should be enabled in ELF linker by default.
15430 ac_default_ld_z_relro
=unset
15431 # Provide a configure time option to override our default.
15432 # Check whether --enable-relro was given.
15433 if test "${enable_relro+set}" = set; then :
15434 enableval
=$enable_relro; case "${enableval}" in
15435 yes) ac_default_ld_z_relro
=1 ;;
15436 no
) ac_default_ld_z_relro
=0 ;;
15440 # Decide if DT_TEXTREL check should be enabled in ELF linker.
15441 ac_default_ld_textrel_check
=unset
15442 # Check whether --enable-textrel-check was given.
15443 if test "${enable_textrel_check+set}" = set; then :
15444 enableval
=$enable_textrel_check; case "${enableval}" in
15445 yes|no|warning|error
) ac_default_ld_textrel_check
=${enableval} ;;
15450 # Decide if -z separate-code should be enabled in ELF linker by default.
15451 ac_default_ld_z_separate_code
=unset
15452 # Check whether --enable-separate-code was given.
15453 if test "${enable_separate_code+set}" = set; then :
15454 enableval
=$enable_separate_code; case "${enableval}" in
15455 yes) ac_default_ld_z_separate_code
=1 ;;
15456 no
) ac_default_ld_z_separate_code
=0 ;;
15462 # By default warn when an executable stack is created due to object files
15463 # requesting such, not when the user specifies -z execstack.
15464 case "${target}" in
15465 # The HPPA port needs to support older kernels that use executable stacks
15466 # for signals and syscalls.
15467 hppa
*-*-*) ac_default_ld_warn_execstack
=0 ;;
15468 *) ac_default_ld_warn_execstack
=2 ;;
15470 # Check whether --enable-warn-execstack was given.
15471 if test "${enable_warn_execstack+set}" = set; then :
15472 enableval
=$enable_warn_execstack; case "${enableval}" in
15473 yes) ac_default_ld_warn_execstack
=1 ;;
15474 no
) ac_default_ld_warn_execstack
=0 ;;
15479 ac_default_ld_warn_rwx_segments
=unset
15480 # Check whether --enable-warn-rwx-segments was given.
15481 if test "${enable_warn_rwx_segments+set}" = set; then :
15482 enableval
=$enable_warn_rwx_segments; case "${enableval}" in
15483 yes) ac_default_ld_warn_rwx_segments
=1 ;;
15484 no
) ac_default_ld_warn_rwx_segments
=0 ;;
15489 ac_default_ld_default_execstack
=unset
15490 # Check whether --enable-default-execstack was given.
15491 if test "${enable_default_execstack+set}" = set; then :
15492 enableval
=$enable_default_execstack; case "${enableval}" in
15493 yes) ac_default_ld_default_execstack
=1 ;;
15494 no
) ac_default_ld_default_execstack
=0 ;;
15500 # Decide if --error-handling-script should be supported.
15501 ac_support_error_handling_script
=unset
15502 # Check whether --enable-error-handling-script was given.
15503 if test "${enable_error_handling_script+set}" = set; then :
15504 enableval
=$enable_error_handling_script; case "${enableval}" in
15505 yes) ac_support_error_handling_script
=1 ;;
15506 no
) ac_support_error_handling_script
=0 ;;
15511 # Decide which "--hash-style" to use by default
15512 # Provide a configure time option to override our default.
15513 # Check whether --enable-default-hash-style was given.
15514 if test "${enable_default_hash_style+set}" = set; then :
15515 enableval
=$enable_default_hash_style; case "${enable_default_hash_style}" in
15516 sysv | gnu | both
) ;;
15517 *) as_fn_error $?
"bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
15520 case "${target}" in
15521 # Enable gnu hash only on GNU targets, but not mips
15522 mips
*-*-*) enable_default_hash_style
=sysv
;;
15523 *-*-gnu* |
*-*-linux* |
*-*-nacl*) enable_default_hash_style
=both
;;
15524 *) enable_default_hash_style
=sysv
;;
15529 case "${enable_default_hash_style}" in
15530 sysv | both
) ac_default_emit_sysv_hash
=1 ;;
15531 *) ac_default_emit_sysv_hash
=0 ;;
15534 case "${enable_default_hash_style}" in
15535 gnu | both
) ac_default_emit_gnu_hash
=1 ;;
15536 *) ac_default_emit_gnu_hash
=0 ;;
15539 # Check whether --enable-initfini-array was given.
15540 if test "${enable_initfini_array+set}" = set; then :
15541 enableval
=$enable_initfini_array; case "${enableval}" in
15543 *) as_fn_error $?
"invalid --enable-initfini-array argument" "$LINENO" 5 ;;
15546 enable_initfini_array
=yes
15550 if test $enable_initfini_array = yes; then
15552 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
15556 # Check whether --enable-libctf was given.
15557 if test "${enable_libctf+set}" = set; then :
15558 enableval
=$enable_libctf;
15559 case "$enableval" in
15561 *) as_fn_error $?
"Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
15569 if test "${enable_libctf}" = yes; then
15571 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
15574 if test "${enable_libctf}" = yes; then
15575 ENABLE_LIBCTF_TRUE
=
15576 ENABLE_LIBCTF_FALSE
='#'
15578 ENABLE_LIBCTF_TRUE
='#'
15579 ENABLE_LIBCTF_FALSE
=
15584 # Used to validate --package-metadata= input. Disabled by default.
15585 # Check whether --enable-jansson was given.
15586 if test "${enable_jansson+set}" = set; then :
15587 enableval
=$enable_jansson; enable_jansson
=$enableval
15589 enable_jansson
="no"
15593 if test "x$enable_jansson" != "xno"; then
15601 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15602 if test -n "$ac_tool_prefix"; then
15603 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15604 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15606 $as_echo_n "checking for $ac_word... " >&6; }
15607 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
15608 $as_echo_n "(cached) " >&6
15610 case $PKG_CONFIG in
15612 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
15615 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15616 for as_dir
in $PATH
15619 test -z "$as_dir" && as_dir
=.
15620 for ac_exec_ext
in '' $ac_executable_extensions; do
15621 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15622 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
15623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15633 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
15634 if test -n "$PKG_CONFIG"; then
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15636 $as_echo "$PKG_CONFIG" >&6; }
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15639 $as_echo "no" >&6; }
15644 if test -z "$ac_cv_path_PKG_CONFIG"; then
15645 ac_pt_PKG_CONFIG
=$PKG_CONFIG
15646 # Extract the first word of "pkg-config", so it can be a program name with args.
15647 set dummy pkg-config
; ac_word
=$2
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15649 $as_echo_n "checking for $ac_word... " >&6; }
15650 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
15651 $as_echo_n "(cached) " >&6
15653 case $ac_pt_PKG_CONFIG in
15655 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15658 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15659 for as_dir
in $PATH
15662 test -z "$as_dir" && as_dir
=.
15663 for ac_exec_ext
in '' $ac_executable_extensions; do
15664 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
15665 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
15666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15676 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
15677 if test -n "$ac_pt_PKG_CONFIG"; then
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15679 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15682 $as_echo "no" >&6; }
15685 if test "x$ac_pt_PKG_CONFIG" = x
; then
15688 case $cross_compiling:$ac_tool_warned in
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15692 ac_tool_warned
=yes ;;
15694 PKG_CONFIG
=$ac_pt_PKG_CONFIG
15697 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
15701 if test -n "$PKG_CONFIG"; then
15702 _pkg_min_version
=0.9.0
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15704 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15705 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15707 $as_echo "yes" >&6; }
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15710 $as_echo "no" >&6; }
15714 if test -n "$PKG_CONFIG"; then :
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
15719 $as_echo_n "checking for jansson... " >&6; }
15721 if test -n "$JANSSON_CFLAGS"; then
15722 pkg_cv_JANSSON_CFLAGS
="$JANSSON_CFLAGS"
15723 elif test -n "$PKG_CONFIG"; then
15724 if test -n "$PKG_CONFIG" && \
15725 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
15726 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
15728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15729 test $ac_status = 0; }; then
15730 pkg_cv_JANSSON_CFLAGS
=`$PKG_CONFIG --cflags "jansson" 2>/dev/null`
15731 test "x$?" != "x0" && pkg_failed
=yes
15738 if test -n "$JANSSON_LIBS"; then
15739 pkg_cv_JANSSON_LIBS
="$JANSSON_LIBS"
15740 elif test -n "$PKG_CONFIG"; then
15741 if test -n "$PKG_CONFIG" && \
15742 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
15743 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
15745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15746 test $ac_status = 0; }; then
15747 pkg_cv_JANSSON_LIBS
=`$PKG_CONFIG --libs "jansson" 2>/dev/null`
15748 test "x$?" != "x0" && pkg_failed
=yes
15756 if test $pkg_failed = no
; then
15757 pkg_save_LDFLAGS
="$LDFLAGS"
15758 LDFLAGS
="$LDFLAGS $pkg_cv_JANSSON_LIBS"
15759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15760 /* end confdefs.h. */
15770 if ac_fn_c_try_link
"$LINENO"; then :
15775 rm -f core conftest.err conftest.
$ac_objext \
15776 conftest
$ac_exeext conftest.
$ac_ext
15777 LDFLAGS
=$pkg_save_LDFLAGS
15782 if test $pkg_failed = yes; then
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15784 $as_echo "no" >&6; }
15786 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15787 _pkg_short_errors_supported
=yes
15789 _pkg_short_errors_supported
=no
15791 if test $_pkg_short_errors_supported = yes; then
15792 JANSSON_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson" 2>&1`
15794 JANSSON_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "jansson" 2>&1`
15796 # Put the nasty error message in config.log where it belongs
15797 echo "$JANSSON_PKG_ERRORS" >&5
15800 as_fn_error $?
"Cannot find jansson library" "$LINENO" 5
15802 elif test $pkg_failed = untried
; then
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15804 $as_echo "no" >&6; }
15806 as_fn_error $?
"Cannot find jansson library" "$LINENO" 5
15809 JANSSON_CFLAGS
=$pkg_cv_JANSSON_CFLAGS
15810 JANSSON_LIBS
=$pkg_cv_JANSSON_LIBS
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15812 $as_echo "yes" >&6; }
15815 $as_echo "#define HAVE_JANSSON 1" >>confdefs.h
15824 as_fn_error $?
"Cannot find pkg-config" "$LINENO" 5
15830 # Set the 'development' global.
15831 .
$srcdir/..
/bfd
/development.sh
15833 # Set acp_cpp_for_build variable
15834 ac_cpp_for_build
="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
15836 # Default set of GCC warnings to enable.
15837 GCC_WARN_CFLAGS
="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15838 GCC_WARN_CFLAGS_FOR_BUILD
="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
15840 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
15841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15842 /* end confdefs.h. */
15845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15846 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev
/null
2>&1; then :
15849 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Wshadow"
15854 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15856 /* end confdefs.h. */
15859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15860 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev
/null
2>&1; then :
15863 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Wstack-usage=262144"
15868 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
15869 WARN_WRITE_STRINGS
=""
15870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15871 /* end confdefs.h. */
15874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15875 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev
/null
2>&1; then :
15878 WARN_WRITE_STRINGS
="-Wwrite-strings"
15883 # Verify CC_FOR_BUILD to be compatible with warning flags
15885 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
15886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15887 /* end confdefs.h. */
15890 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
15891 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev
/null
2>&1; then :
15894 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
15899 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
15900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15901 /* end confdefs.h. */
15904 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
15905 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev
/null
2>&1; then :
15908 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
15913 # Check whether --enable-werror was given.
15914 if test "${enable_werror+set}" = set; then :
15915 enableval
=$enable_werror; case "${enableval}" in
15916 yes | y
) ERROR_ON_WARNING
="yes" ;;
15917 no | n
) ERROR_ON_WARNING
="no" ;;
15918 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15923 # Disable -Wformat by default when using gcc on mingw
15926 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
15927 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Wno-format"
15928 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
15934 # Enable -Werror by default when using gcc. Turn it off for releases.
15935 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true
; then
15936 ERROR_ON_WARNING
=yes
15940 if test "${ERROR_ON_WARNING}" = yes ; then
15941 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Werror"
15942 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
15943 NO_WERROR
="-Wno-error"
15946 if test "${GCC}" = yes ; then
15947 WARN_CFLAGS
="${GCC_WARN_CFLAGS}"
15948 WARN_CFLAGS_FOR_BUILD
="${GCC_WARN_CFLAGS_FOR_BUILD}"
15951 # Check whether --enable-build-warnings was given.
15952 if test "${enable_build_warnings+set}" = set; then :
15953 enableval
=$enable_build_warnings; case "${enableval}" in
15954 yes) WARN_CFLAGS
="${GCC_WARN_CFLAGS}"
15955 WARN_CFLAGS_FOR_BUILD
="${GCC_WARN_CFLAGS_FOR_BUILD}";;
15956 no
) if test "${GCC}" = yes ; then
15958 WARN_CFLAGS_FOR_BUILD
="-w"
15960 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15961 WARN_CFLAGS
="${GCC_WARN_CFLAGS} ${t}"
15962 WARN_CFLAGS_FOR_BUILD
="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
15963 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15964 WARN_CFLAGS
="${t} ${GCC_WARN_CFLAGS}"
15965 WARN_CFLAGS_FOR_BUILD
="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
15966 *) WARN_CFLAGS
=`echo "${enableval}" | sed -e "s/,/ /g"`
15967 WARN_CFLAGS_FOR_BUILD
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15972 if test x
"$silent" != x
"yes" && test x
"$WARN_CFLAGS" != x
""; then
15973 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15984 $as_echo_n "checking for LC_MESSAGES... " >&6; }
15985 if ${am_cv_val_LC_MESSAGES+:} false
; then :
15986 $as_echo_n "(cached) " >&6
15988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15989 /* end confdefs.h. */
15990 #include <locale.h>
15999 if ac_fn_c_try_link
"$LINENO"; then :
16000 am_cv_val_LC_MESSAGES
=yes
16002 am_cv_val_LC_MESSAGES
=no
16004 rm -f core conftest.err conftest.
$ac_objext \
16005 conftest
$ac_exeext conftest.
$ac_ext
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
16008 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
16009 if test $am_cv_val_LC_MESSAGES = yes; then
16011 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
16016 ac_config_headers
="$ac_config_headers config.h:config.in"
16022 if test -z "$target" ; then
16023 as_fn_error $?
"Unrecognized target system type; please check config.sub." "$LINENO" 5
16025 if test -z "$host" ; then
16026 as_fn_error $?
"Unrecognized host system type; please check config.sub." "$LINENO" 5
16029 # host-specific stuff:
16031 ALL_LINGUAS
="bg da de es fi fr ga id it ja pt_BR ru sr sv tr uk vi zh_CN zh_TW"
16032 # If we haven't got the data from the intl directory,
16033 # assume NLS is disabled.
16042 if test -f ..
/intl
/config.intl
; then
16043 . ..
/intl
/config.intl
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16046 $as_echo_n "checking whether NLS is requested... " >&6; }
16047 if test x
"$USE_NLS" != xyes
; then
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16049 $as_echo "no" >&6; }
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16052 $as_echo "yes" >&6; }
16054 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
16058 $as_echo_n "checking for catalogs to be installed... " >&6; }
16059 # Look for .po and .gmo files in the source directory.
16062 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
16063 # If there aren't any .gmo files the shell will give us the
16064 # literal string "../path/to/srcdir/po/*.gmo" which has to be
16066 case "$cat" in *\
**)
16069 # The quadruple backslash is collapsed to a double backslash
16070 # by the backticks, then collapsed again by the double quotes,
16071 # leaving us with one backslash in the sed expression (right
16072 # before the dot that mustn't act as a wildcard).
16073 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
16074 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
16075 # The user is allowed to set LINGUAS to a list of languages to
16076 # install catalogs for. If it's empty that means "all of them."
16077 if test "x$LINGUAS" = x
; then
16078 CATALOGS
="$CATALOGS $cat"
16079 XLINGUAS
="$XLINGUAS $lang"
16081 case "$LINGUAS" in *$lang*)
16082 CATALOGS
="$CATALOGS $cat"
16083 XLINGUAS
="$XLINGUAS $lang"
16088 LINGUAS
="$XLINGUAS"
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
16090 $as_echo "$LINGUAS" >&6; }
16104 if test -n "$ac_aux_dir"; then
16105 case "$ac_aux_dir" in
16106 /*) MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs" ;;
16107 *) MKINSTALLDIRS
="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16110 if test -z "$MKINSTALLDIRS"; then
16111 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
16116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16117 $as_echo_n "checking whether NLS is requested... " >&6; }
16118 # Check whether --enable-nls was given.
16119 if test "${enable_nls+set}" = set; then :
16120 enableval
=$enable_nls; USE_NLS
=$enableval
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16126 $as_echo "$USE_NLS" >&6; }
16133 # Prepare PATH_SEPARATOR.
16134 # The user is always right.
16135 if test "${PATH_SEPARATOR+set}" != set; then
16136 echo "#! /bin/sh" >conf$$.sh
16137 echo "exit 0" >>conf$$.sh
16139 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
16147 # Find out how to test for executable files. Don't use a zero-byte file,
16148 # as systems may use methods other than mode bits to determine executability.
16149 cat >conf$$.
file <<_ASEOF
16153 chmod +x conf$$.
file
16154 if test -x conf$$.
file >/dev
/null
2>&1; then
16155 ac_executable_p
="test -x"
16157 ac_executable_p
="test -f"
16161 # Extract the first word of "msgfmt", so it can be a program name with args.
16162 set dummy msgfmt
; ac_word
=$2
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16164 $as_echo_n "checking for $ac_word... " >&6; }
16165 if ${ac_cv_path_MSGFMT+:} false
; then :
16166 $as_echo_n "(cached) " >&6
16170 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
16173 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
16174 for ac_dir
in $PATH; do
16176 test -z "$ac_dir" && ac_dir
=.
16177 for ac_exec_ext
in '' $ac_executable_extensions; do
16178 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16179 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
16180 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
16181 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
16188 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
16192 MSGFMT
="$ac_cv_path_MSGFMT"
16193 if test "$MSGFMT" != ":"; then
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16195 $as_echo "$MSGFMT" >&6; }
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16198 $as_echo "no" >&6; }
16201 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16202 set dummy gmsgfmt
; ac_word
=$2
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16204 $as_echo_n "checking for $ac_word... " >&6; }
16205 if ${ac_cv_path_GMSGFMT+:} false
; then :
16206 $as_echo_n "(cached) " >&6
16210 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
16213 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16214 for as_dir
in $PATH
16217 test -z "$as_dir" && as_dir
=.
16218 for ac_exec_ext
in '' $ac_executable_extensions; do
16219 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16220 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
16221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16228 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
16232 GMSGFMT
=$ac_cv_path_GMSGFMT
16233 if test -n "$GMSGFMT"; then
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16235 $as_echo "$GMSGFMT" >&6; }
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16238 $as_echo "no" >&6; }
16244 # Prepare PATH_SEPARATOR.
16245 # The user is always right.
16246 if test "${PATH_SEPARATOR+set}" != set; then
16247 echo "#! /bin/sh" >conf$$.sh
16248 echo "exit 0" >>conf$$.sh
16250 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
16258 # Find out how to test for executable files. Don't use a zero-byte file,
16259 # as systems may use methods other than mode bits to determine executability.
16260 cat >conf$$.
file <<_ASEOF
16264 chmod +x conf$$.
file
16265 if test -x conf$$.
file >/dev
/null
2>&1; then
16266 ac_executable_p
="test -x"
16268 ac_executable_p
="test -f"
16272 # Extract the first word of "xgettext", so it can be a program name with args.
16273 set dummy xgettext
; ac_word
=$2
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16275 $as_echo_n "checking for $ac_word... " >&6; }
16276 if ${ac_cv_path_XGETTEXT+:} false
; then :
16277 $as_echo_n "(cached) " >&6
16279 case "$XGETTEXT" in
16281 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
16284 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
16285 for ac_dir
in $PATH; do
16287 test -z "$ac_dir" && ac_dir
=.
16288 for ac_exec_ext
in '' $ac_executable_extensions; do
16289 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16290 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
16291 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
16292 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
16299 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
16303 XGETTEXT
="$ac_cv_path_XGETTEXT"
16304 if test "$XGETTEXT" != ":"; then
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16306 $as_echo "$XGETTEXT" >&6; }
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16309 $as_echo "no" >&6; }
16315 # Prepare PATH_SEPARATOR.
16316 # The user is always right.
16317 if test "${PATH_SEPARATOR+set}" != set; then
16318 echo "#! /bin/sh" >conf$$.sh
16319 echo "exit 0" >>conf$$.sh
16321 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
16329 # Find out how to test for executable files. Don't use a zero-byte file,
16330 # as systems may use methods other than mode bits to determine executability.
16331 cat >conf$$.
file <<_ASEOF
16335 chmod +x conf$$.
file
16336 if test -x conf$$.
file >/dev
/null
2>&1; then
16337 ac_executable_p
="test -x"
16339 ac_executable_p
="test -f"
16343 # Extract the first word of "msgmerge", so it can be a program name with args.
16344 set dummy msgmerge
; ac_word
=$2
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16346 $as_echo_n "checking for $ac_word... " >&6; }
16347 if ${ac_cv_path_MSGMERGE+:} false
; then :
16348 $as_echo_n "(cached) " >&6
16350 case "$MSGMERGE" in
16352 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
16355 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
16356 for ac_dir
in $PATH; do
16358 test -z "$ac_dir" && ac_dir
=.
16359 for ac_exec_ext
in '' $ac_executable_extensions; do
16360 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16361 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
16362 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
16369 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
16373 MSGMERGE
="$ac_cv_path_MSGMERGE"
16374 if test "$MSGMERGE" != ":"; then
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16376 $as_echo "$MSGMERGE" >&6; }
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16379 $as_echo "no" >&6; }
16383 if test "$GMSGFMT" != ":"; then
16384 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
16385 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
16388 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16390 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16395 if test "$XGETTEXT" != ":"; then
16396 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
16397 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16401 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16407 ac_config_commands
="$ac_config_commands default-1"
16413 for ac_prog
in 'bison -y' byacc
16415 # Extract the first word of "$ac_prog", so it can be a program name with args.
16416 set dummy
$ac_prog; ac_word
=$2
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16418 $as_echo_n "checking for $ac_word... " >&6; }
16419 if ${ac_cv_prog_YACC+:} false
; then :
16420 $as_echo_n "(cached) " >&6
16422 if test -n "$YACC"; then
16423 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
16425 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16426 for as_dir
in $PATH
16429 test -z "$as_dir" && as_dir
=.
16430 for ac_exec_ext
in '' $ac_executable_extensions; do
16431 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16432 ac_cv_prog_YACC
="$ac_prog"
16433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16442 YACC
=$ac_cv_prog_YACC
16443 if test -n "$YACC"; then
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
16445 $as_echo "$YACC" >&6; }
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16448 $as_echo "no" >&6; }
16452 test -n "$YACC" && break
16454 test -n "$YACC" || YACC
="yacc"
16456 for ac_prog
in flex
lex
16458 # Extract the first word of "$ac_prog", so it can be a program name with args.
16459 set dummy
$ac_prog; ac_word
=$2
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16461 $as_echo_n "checking for $ac_word... " >&6; }
16462 if ${ac_cv_prog_LEX+:} false
; then :
16463 $as_echo_n "(cached) " >&6
16465 if test -n "$LEX"; then
16466 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
16468 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16469 for as_dir
in $PATH
16472 test -z "$as_dir" && as_dir
=.
16473 for ac_exec_ext
in '' $ac_executable_extensions; do
16474 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16475 ac_cv_prog_LEX
="$ac_prog"
16476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16485 LEX
=$ac_cv_prog_LEX
16486 if test -n "$LEX"; then
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
16488 $as_echo "$LEX" >&6; }
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16491 $as_echo "no" >&6; }
16495 test -n "$LEX" && break
16497 test -n "$LEX" || LEX
=":"
16501 *) cat >conftest.l
<<_ACEOF
16507 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
16508 yyless ((input () != 0)); }
16509 f { unput (yytext[0]); }
16510 . { BEGIN INITIAL; }
16512 #ifdef YYTEXT_POINTER
16513 extern char *yytext;
16518 return ! yylex () + ! yywrap ();
16521 { { ac_try
="$LEX conftest.l"
16522 case "(($ac_try" in
16523 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16524 *) ac_try_echo=$ac_try;;
16526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16527 $as_echo "$ac_try_echo"; } >&5
16528 (eval "$LEX conftest.l") 2>&5
16530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16531 test $ac_status = 0; }
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16533 $as_echo_n "checking lex output file root... " >&6; }
16534 if ${ac_cv_prog_lex_root+:} false; then :
16535 $as_echo_n "(cached) " >&6
16538 if test -f lex.yy.c; then
16539 ac_cv_prog_lex_root=lex.yy
16540 elif test -f lexyy.c; then
16541 ac_cv_prog_lex_root=lexyy
16543 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16547 $as_echo "$ac_cv_prog_lex_root" >&6; }
16548 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
16550 if test -z "${LEXLIB+set}"; then
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16552 $as_echo_n "checking lex library... " >&6; }
16553 if ${ac_cv_lib_lex+:} false; then :
16554 $as_echo_n "(cached) " >&6
16558 ac_cv_lib_lex='none needed'
16559 for ac_lib in '' -lfl -ll; do
16560 LIBS="$ac_lib $ac_save_LIBS"
16561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16562 /* end confdefs.h. */
16563 `cat $LEX_OUTPUT_ROOT.c
`
16565 if ac_fn_c_try_link "$LINENO"; then :
16566 ac_cv_lib_lex=$ac_lib
16568 rm -f core conftest.err conftest.$ac_objext \
16569 conftest$ac_exeext conftest.$ac_ext
16570 test "$ac_cv_lib_lex" != 'none needed' && break
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16576 $as_echo "$ac_cv_lib_lex" >&6; }
16577 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16582 $as_echo_n "checking whether yytext is a pointer... " >&6; }
16583 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
16584 $as_echo_n "(cached) " >&6
16586 # POSIX says lex can declare yytext either as a pointer or an array; the
16587 # default is implementation-dependent. Figure out which it is, since
16588 # not all implementations provide the %pointer and %array declarations.
16589 ac_cv_prog_lex_yytext_pointer=no
16591 LIBS="$LEXLIB $ac_save_LIBS"
16592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16593 /* end confdefs.h. */
16595 #define YYTEXT_POINTER 1
16596 `cat $LEX_OUTPUT_ROOT.c
`
16598 if ac_fn_c_try_link "$LINENO"; then :
16599 ac_cv_prog_lex_yytext_pointer=yes
16601 rm -f core conftest.err conftest.$ac_objext \
16602 conftest$ac_exeext conftest.$ac_ext
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16607 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
16608 if test $ac_cv_prog_lex_yytext_pointer = yes; then
16610 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
16613 rm -f conftest.l $LEX_OUTPUT_ROOT.c
16616 if test "$LEX" = :; then
16617 LEX=${am_missing_run}flex
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16622 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16623 # Check whether --enable-maintainer-mode was given.
16624 if test "${enable_maintainer_mode+set}" = set; then :
16625 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16627 USE_MAINTAINER_MODE=no
16630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16631 $as_echo "$USE_MAINTAINER_MODE" >&6; }
16632 if test $USE_MAINTAINER_MODE = yes; then
16633 MAINTAINER_MODE_TRUE=
16634 MAINTAINER_MODE_FALSE='#'
16636 MAINTAINER_MODE_TRUE='#'
16637 MAINTAINER_MODE_FALSE=
16640 MAINT=$MAINTAINER_MODE_TRUE
16644 GENINSRC_NEVER_TRUE=
16645 GENINSRC_NEVER_FALSE='#'
16647 GENINSRC_NEVER_TRUE='#'
16648 GENINSRC_NEVER_FALSE=
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
16652 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
16653 if ${gcc_cv_prog_cmp_skip+:} false; then :
16654 $as_echo_n "(cached) " >&6
16658 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
16659 if cmp t1 t2 2 2 > /dev/null 2>&1; then
16660 if cmp t1 t2 1 1 > /dev/null 2>&1; then
16663 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
16666 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
16667 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
16670 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
16677 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
16678 do_compare="$gcc_cv_prog_cmp_skip"
16682 . ${srcdir}/configure.host
16687 # We use headers from include/ that check various HAVE_*_H macros, thus
16688 # should ensure they are set by configure. This is true even when C99
16689 # guarantees they are available.
16690 # sha1.h and md4.h test HAVE_LIMITS_H, HAVE_SYS_TYPES_H and HAVE_STDINT_H
16691 # plugin-api.h tests HAVE_STDINT_H and HAVE_INTTYPES_H
16692 # Besides those, we need to check anything used in ld/ not in C99.
16693 for ac_header in fcntl.h elf-hints.h limits.h inttypes.h stdint.h \
16694 sys/file.h sys/mman.h sys/param.h sys/stat.h sys/time.h \
16695 sys/types.h unistd.h
16697 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
16698 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16699 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16700 cat >>confdefs.h <<_ACEOF
16701 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
16708 for ac_func in close glob lseek mkstemp open realpath sbrk waitpid
16710 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
16711 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16712 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16713 cat >>confdefs.h <<_ACEOF
16714 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
16723 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
16725 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
16729 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
16730 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
16736 cat >>confdefs.h <<_ACEOF
16737 #define HAVE_DECL_ASPRINTF $ac_have_decl
16739 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
16740 if test "x$ac_cv_have_decl_environ" = xyes; then :
16746 cat >>confdefs.h <<_ACEOF
16747 #define HAVE_DECL_ENVIRON $ac_have_decl
16749 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
16750 if test "x$ac_cv_have_decl_sbrk" = xyes; then :
16756 cat >>confdefs.h <<_ACEOF
16757 #define HAVE_DECL_SBRK $ac_have_decl
16764 for ac_header in $ac_header_list
16766 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
16767 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
16769 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16770 cat >>confdefs.h <<_ACEOF
16771 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
16785 for ac_func in getpagesize
16787 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16788 if test "x$ac_cv_func_getpagesize" = xyes; then :
16789 cat >>confdefs.h <<_ACEOF
16790 #define HAVE_GETPAGESIZE 1
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16797 $as_echo_n "checking for working mmap... " >&6; }
16798 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
16799 $as_echo_n "(cached) " >&6
16801 if test "$cross_compiling" = yes; then :
16802 ac_cv_func_mmap_fixed_mapped=no
16804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16805 /* end confdefs.h. */
16806 $ac_includes_default
16807 /* malloc might have been renamed as rpl_malloc. */
16810 /* Thanks to Mike Haertel and Jim Avera for this test.
16811 Here is a matrix of mmap possibilities:
16812 mmap private not fixed
16813 mmap private fixed at somewhere currently unmapped
16814 mmap private fixed at somewhere already mapped
16815 mmap shared not fixed
16816 mmap shared fixed at somewhere currently unmapped
16817 mmap shared fixed at somewhere already mapped
16818 For private mappings, we should verify that changes cannot be read()
16819 back from the file, nor mmap's back from the file at a different
16820 address. (There have been systems where private was not correctly
16821 implemented like the infamous i386 svr4.0, and systems where the
16822 VM page cache was not coherent with the file system buffer cache
16823 like early versions of FreeBSD and possibly contemporary NetBSD.)
16824 For shared mappings, we should conversely verify that changes get
16825 propagated back to all the places they're supposed to be.
16827 Grep wants private fixed already mapped.
16828 The main things grep needs to know about mmap are:
16829 * does it exist and is it safe to write into the mmap'd area
16830 * how to use it (BSD variants) */
16833 #include <sys/mman.h>
16835 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16839 /* This mess was copied from the GNU getpagesize.h. */
16840 #ifndef HAVE_GETPAGESIZE
16841 # ifdef _SC_PAGESIZE
16842 # define getpagesize() sysconf(_SC_PAGESIZE)
16843 # else /* no _SC_PAGESIZE */
16844 # ifdef HAVE_SYS_PARAM_H
16845 # include <sys/param.h>
16846 # ifdef EXEC_PAGESIZE
16847 # define getpagesize() EXEC_PAGESIZE
16848 # else /* no EXEC_PAGESIZE */
16850 # define getpagesize() NBPG * CLSIZE
16853 # endif /* no CLSIZE */
16854 # else /* no NBPG */
16856 # define getpagesize() NBPC
16857 # else /* no NBPC */
16859 # define getpagesize() PAGESIZE
16860 # endif /* PAGESIZE */
16861 # endif /* no NBPC */
16862 # endif /* no NBPG */
16863 # endif /* no EXEC_PAGESIZE */
16864 # else /* no HAVE_SYS_PARAM_H */
16865 # define getpagesize() 8192 /* punt totally */
16866 # endif /* no HAVE_SYS_PARAM_H */
16867 # endif /* no _SC_PAGESIZE */
16869 #endif /* no HAVE_GETPAGESIZE */
16874 char *data, *data2, *data3;
16875 const char *cdata2;
16879 pagesize = getpagesize ();
16881 /* First, make a file with some known garbage in it. */
16882 data = (char *) malloc (pagesize);
16885 for (i = 0; i < pagesize; ++i)
16886 *(data + i) = rand ();
16888 fd = creat ("conftest.mmap", 0600);
16891 if (write (fd, data, pagesize) != pagesize)
16895 /* Next, check that the tail of a page is zero-filled. File must have
16896 non-zero length, otherwise we risk SIGBUS for entire page. */
16897 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
16901 if (write (fd2, cdata2, 1) != 1)
16903 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
16904 if (data2 == MAP_FAILED)
16906 for (i = 0; i < pagesize; ++i)
16910 if (munmap (data2, pagesize))
16913 /* Next, try to mmap the file at a fixed address which already has
16914 something else allocated at it. If we can, also make sure that
16915 we see the same garbage. */
16916 fd = open ("conftest.mmap", O_RDWR);
16919 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16920 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16922 for (i = 0; i < pagesize; ++i)
16923 if (*(data + i) != *(data2 + i))
16926 /* Finally, make sure that changes to the mapped area do not
16927 percolate back to the file as seen by read(). (This is a bug on
16928 some variants of i386 svr4.0.) */
16929 for (i = 0; i < pagesize; ++i)
16930 *(data2 + i) = *(data2 + i) + 1;
16931 data3 = (char *) malloc (pagesize);
16934 if (read (fd, data3, pagesize) != pagesize)
16936 for (i = 0; i < pagesize; ++i)
16937 if (*(data + i) != *(data3 + i))
16943 if ac_fn_c_try_run "$LINENO"; then :
16944 ac_cv_func_mmap_fixed_mapped=yes
16946 ac_cv_func_mmap_fixed_mapped=no
16948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16949 conftest.$ac_objext conftest.beam conftest.$ac_ext
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16954 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16955 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16957 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
16960 rm -f conftest.mmap conftest.txt
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16964 $as_echo_n "checking for library containing dlopen... " >&6; }
16965 if ${ac_cv_search_dlopen+:} false; then :
16966 $as_echo_n "(cached) " >&6
16968 ac_func_search_save_LIBS=$LIBS
16969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16970 /* end confdefs.h. */
16972 /* Override any GCC internal prototype to avoid an error.
16973 Use char because int might match the return type of a GCC
16974 builtin and then its argument prototype would still apply. */
16987 for ac_lib in '' dl; do
16988 if test -z "$ac_lib"; then
16989 ac_res="none required"
16992 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16994 if ac_fn_c_try_link "$LINENO"; then :
16995 ac_cv_search_dlopen=$ac_res
16997 rm -f core conftest.err conftest.$ac_objext \
16999 if ${ac_cv_search_dlopen+:} false; then :
17003 if ${ac_cv_search_dlopen+:} false; then :
17006 ac_cv_search_dlopen=no
17008 rm conftest.$ac_ext
17009 LIBS=$ac_func_search_save_LIBS
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17012 $as_echo "$ac_cv_search_dlopen" >&6; }
17013 ac_res=$ac_cv_search_dlopen
17014 if test "$ac_res" != no; then :
17015 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
17021 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
17022 if ${ld_cv_decl_getopt_unistd_h+:} false; then :
17023 $as_echo_n "(cached) " >&6
17025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17026 /* end confdefs.h. */
17027 #include <unistd.h>
17031 extern int getopt (int, char *const*, const char *);
17036 if ac_fn_c_try_compile "$LINENO"; then :
17037 ld_cv_decl_getopt_unistd_h=yes
17039 ld_cv_decl_getopt_unistd_h=no
17041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
17045 $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
17046 if test $ld_cv_decl_getopt_unistd_h = yes; then
17048 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
17052 # Link in zlib if we can. This allows us to read and write
17053 # compressed CTF sections.
17055 # Use the system's zlib library.
17056 zlibdir="-L\$(top_builddir)/../zlib"
17057 zlibinc="-I\$(top_srcdir)/../zlib"
17059 # Check whether --with-system-zlib was given.
17060 if test "${with_system_zlib+set}" = set; then :
17061 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
17072 # When converting linker scripts into strings for use in emulation
17073 # files, use astring.sed if the compiler supports ANSI string
17074 # concatenation, or ostring.sed otherwise. This is to support the
17075 # broken Microsoft MSVC compiler, which limits the length of string
17076 # constants, while still supporting pre-ANSI compilers which do not
17077 # support string concatenation.
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
17079 $as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
17080 if ${ld_cv_string_concatenation+:} false; then :
17081 $as_echo_n "(cached) " >&6
17083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17084 /* end confdefs.h. */
17094 if ac_fn_c_try_compile "$LINENO"; then :
17095 ld_cv_string_concatenation=yes
17097 ld_cv_string_concatenation=no
17099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
17103 $as_echo "$ld_cv_string_concatenation" >&6; }
17104 if test "$ld_cv_string_concatenation" = "yes"; then
17105 STRINGIFY=astring.sed
17107 STRINGIFY=ostring.sed
17111 # target-specific stuff:
17120 elf_list_options=false
17121 elf_shlib_list_options=false
17122 elf_plt_unwind_list_options=false
17123 for targ_alias in `echo $target_alias $enable_targets |
sed 's/,/ /g'`
17125 if test "$targ_alias" = "all"; then
17127 elf_list_options=true
17128 elf_shlib_list_options=true
17129 elf_plt_unwind_list_options=true
17131 # Canonicalize the secondary target names.
17132 result=`$ac_config_sub $targ_alias 2>/dev
/null
`
17133 if test -n "$result"; then
17139 . ${srcdir}/configure.tgt
17141 if test "$targ" = "$target"; then
17145 if test x${enable_64_bit_bfd} = xno; then
17146 . ${srcdir}/../bfd/config.bfd
17149 if test x${enable_64_bit_bfd} = xyes; then
17150 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
17151 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
17154 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
17155 case " $all_emuls " in
17158 all_emuls="$all_emuls e${i}.o"
17159 eval result=\$tdir_$i
17160 test -z "$result" && result=$targ_alias
17165 elf_list_options=true
17168 if $GREP "TEMPLATE_NAME=elf" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then
17169 elf_list_options=true
17173 if test "$elf_list_options" = "true"; then
17178 source_sh ${srcdir}/emulparams/${i}.sh
17179 if test x${GENERATE_SHLIB_SCRIPT} = xyes; then
17180 elf_shlib_list_options=true
17182 if test x${PLT_UNWIND} = xyes; then
17183 elf_plt_unwind_list_options=true
17190 for i in $targ_emul $targ_extra_libpath; do
17191 case " $all_libpath " in
17194 if test -z "$all_libpath"; then
17197 all_libpath="$all_libpath ${i}"
17203 for i in $targ_extra_ofiles; do
17204 case " $all_emul_extras " in
17207 all_emul_extras="$all_emul_extras ${i}"
17215 if test x$ac_default_compressed_debug_sections = xyes ; then
17217 $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
17221 if test "${ac_default_new_dtags}" = unset; then
17222 ac_default_new_dtags=0
17225 cat >>confdefs.h <<_ACEOF
17226 #define DEFAULT_NEW_DTAGS $ac_default_new_dtags
17230 if test "${ac_default_ld_z_relro}" = unset; then
17231 ac_default_ld_z_relro=0
17234 cat >>confdefs.h <<_ACEOF
17235 #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
17239 ac_default_ld_textrel_check_warning=0
17240 case "${ac_default_ld_textrel_check}" in
17242 ac_default_ld_textrel_check=textrel_check_none
17245 ac_default_ld_textrel_check=textrel_check_warning
17246 ac_default_ld_textrel_check_warning=1
17249 ac_default_ld_textrel_check=textrel_check_error
17253 cat >>confdefs.h <<_ACEOF
17254 #define DEFAULT_LD_TEXTREL_CHECK $ac_default_ld_textrel_check
17258 cat >>confdefs.h <<_ACEOF
17259 #define DEFAULT_LD_TEXTREL_CHECK_WARNING $ac_default_ld_textrel_check_warning
17263 if test "${ac_default_ld_z_separate_code}" = unset; then
17264 ac_default_ld_z_separate_code=0
17267 cat >>confdefs.h <<_ACEOF
17268 #define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code
17274 cat >>confdefs.h <<_ACEOF
17275 #define DEFAULT_LD_WARN_EXECSTACK $ac_default_ld_warn_execstack
17279 if test "${ac_default_ld_warn_rwx_segments}" = unset; then
17280 case "${target}" in
17281 # The HPPA's PLT section uses a constructed trampoline, hence it needs to
17282 # have a RWX segment.
17283 hppa*-*-*) ac_default_ld_warn_rwx_segments=0 ;;
17284 *) ac_default_ld_warn_rwx_segments=1 ;;
17288 cat >>confdefs.h <<_ACEOF
17289 #define DEFAULT_LD_WARN_RWX_SEGMENTS $ac_default_ld_warn_rwx_segments
17293 if test "${ac_default_ld_default_execstack}" = unset; then
17294 ac_default_ld_default_execstack=1
17297 cat >>confdefs.h <<_ACEOF
17298 #define DEFAULT_LD_EXECSTACK $ac_default_ld_default_execstack
17303 if test "${ac_support_error_handling_script}" = unset; then
17304 ac_support_error_handling_script=1
17307 cat >>confdefs.h <<_ACEOF
17308 #define SUPPORT_ERROR_HANDLING_SCRIPT $ac_support_error_handling_script
17313 cat >>confdefs.h <<_ACEOF
17314 #define DEFAULT_EMIT_SYSV_HASH $ac_default_emit_sysv_hash
17319 cat >>confdefs.h <<_ACEOF
17320 #define DEFAULT_EMIT_GNU_HASH $ac_default_emit_gnu_hash
17332 if test x${all_targets} = xtrue; then
17333 if test x${enable_64_bit_bfd} = xyes; then
17334 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
17335 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)'
17337 EMULATION_OFILES='$(ALL_EMULATIONS)'
17338 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
17341 EMULATION_OFILES=$all_emuls
17342 EMUL_EXTRA_OFILES=$all_emul_extras
17348 EMULATION_LIBPATH=$all_libpath
17351 if test x${enable_static} = xno; then
17352 TESTBFDLIB="-Wl,--rpath,../bfd/.libs ../bfd/.libs/libbfd.so"
17353 TESTCTFLIB="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
17355 TESTBFDLIB="../bfd/.libs/libbfd.a"
17356 TESTCTFLIB="../libctf/.libs/libctf.a"
17358 if test "${enable_libctf}" = no; then
17364 target_vendor=${target_vendor=$host_vendor}
17365 case "$target_vendor" in
17366 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
17367 *) EXTRA_SHLIB_EXTENSION= ;;
17370 case "$target_os" in
17371 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
17374 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
17376 cat >>confdefs.h <<_ACEOF
17377 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
17382 ac_config_commands="$ac_config_commands default"
17390 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
17392 cat >confcache <<\_ACEOF
17393 # This file is a shell script that caches the results of configure
17394 # tests run on this system so they can be shared between configure
17395 # scripts and configure runs, see configure's option --config-cache.
17396 # It is not useful on other systems. If it contains results you don't
17397 # want to keep, you may remove or edit it.
17399 # config.status only pays attention to the cache file if you give it
17400 # the --recheck option to rerun configure.
17402 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
17403 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17404 # following values.
17408 # The following way of writing the cache mishandles newlines in values,
17409 # but we know of no workaround that is simple, portable, and efficient.
17410 # So, we kill variables containing newlines.
17411 # Ultrix sh set writes to stderr and can't be redirected directly,
17412 # and sets the high bit in the cache file unless we assign to the vars.
17414 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17415 eval ac_val
=\$
$ac_var
17419 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17420 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17423 _ | IFS | as_nl
) ;; #(
17424 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17425 *) { eval $ac_var=; unset $ac_var;} ;;
17431 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17432 *${as_nl}ac_space
=\
*)
17433 # `set' does not quote correctly, so add quotes: double-quote
17434 # substitution turns \\\\ into \\, and sed turns \\ into \.
17437 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17440 # `set' quotes correctly as required by POSIX, so do not add quotes.
17441 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17450 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17452 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17454 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17455 if test -w "$cache_file"; then
17456 if test "x$cache_file" != "x/dev/null"; then
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17458 $as_echo "$as_me: updating cache $cache_file" >&6;}
17459 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
17460 cat confcache
>"$cache_file"
17462 case $cache_file in #(
17464 mv -f confcache
"$cache_file"$$
&&
17465 mv -f "$cache_file"$$
"$cache_file" ;; #(
17467 mv -f confcache
"$cache_file" ;;
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17473 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17478 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17479 # Let make expand exec_prefix.
17480 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17482 DEFS
=-DHAVE_CONFIG_H
17487 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17488 # 1. Remove the extension, and $U if already installed.
17489 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17490 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17491 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17492 # will be set to the directory where LIBOBJS objects are built.
17493 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17494 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
17496 LIBOBJS
=$ac_libobjs
17498 LTLIBOBJS
=$ac_ltlibobjs
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17502 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17503 if test -n "$am_sleep_pid"; then
17504 # Hide warnings about reused PIDs.
17505 wait $am_sleep_pid 2>/dev
/null
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17508 $as_echo "done" >&6; }
17509 if test -n "$EXEEXT"; then
17511 am__EXEEXT_FALSE
='#'
17513 am__EXEEXT_TRUE
='#'
17517 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17518 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
17519 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17521 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17522 as_fn_error $?
"conditional \"AMDEP\" was never defined.
17523 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17525 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17526 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
17527 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17529 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17530 as_fn_error $?
"conditional \"am__fastdepCXX\" was never defined.
17531 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17533 if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
17534 as_fn_error $?
"conditional \"ENABLE_BFD_64_BIT\" was never defined.
17535 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17537 if test -z "${ENABLE_LIBCTF_TRUE}" && test -z "${ENABLE_LIBCTF_FALSE}"; then
17538 as_fn_error $?
"conditional \"ENABLE_LIBCTF\" was never defined.
17539 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17541 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17542 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
17543 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17545 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
17546 as_fn_error $?
"conditional \"GENINSRC_NEVER\" was never defined.
17547 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17550 : "${CONFIG_STATUS=./config.status}"
17552 ac_clean_files_save
=$ac_clean_files
17553 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17555 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17557 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17559 # Generated by $as_me.
17560 # Run this file to recreate the current configuration.
17561 # Compiler output produced by configure, useful for debugging
17562 # configure, is in config.log if it exists.
17565 ac_cs_recheck=false
17568 SHELL=\${CONFIG_SHELL-$SHELL}
17571 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
17572 ## -------------------- ##
17573 ## M4sh Initialization. ##
17574 ## -------------------- ##
17576 # Be more Bourne compatible
17577 DUALCASE
=1; export DUALCASE
# for MKS sh
17578 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
17581 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17582 # is contrary to our usage. Disable this feature.
17583 alias -g '${1+"$@"}'='"$@"'
17584 setopt NO_GLOB_SUBST
17586 case `(set -o) 2>/dev/null` in #(
17598 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17599 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17600 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17601 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17602 # Prefer a ksh shell builtin over an external printf program on Solaris,
17603 # but without wasting forks for bash or zsh.
17604 if test -z "$BASH_VERSION$ZSH_VERSION" \
17605 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17606 as_echo='print
-r --'
17607 as_echo_n='print
-rn --'
17608 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17609 as_echo='printf %s
\n'
17610 as_echo_n='printf %s
'
17612 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17613 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17614 as_echo_n='/usr
/ucb
/echo -n'
17616 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17617 as_echo_n_body='eval
17621 expr "X$arg" : "X\\(.*\\)$as_nl";
17622 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17624 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17626 export as_echo_n_body
17627 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17629 export as_echo_body
17630 as_echo='sh
-c $as_echo_body as_echo
'
17633 # The user is always right.
17634 if test "${PATH_SEPARATOR+set}" != set; then
17636 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17637 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17644 # We need space, tab and new line, in precisely that order. Quoting is
17645 # there to prevent editors from complaining about space-tab.
17646 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17647 # splitting by setting IFS to empty value.)
17650 # Find who we are. Look in the path if we contain no directory separator.
17653 *[\\/]* ) as_myself=$0 ;;
17654 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17655 for as_dir in $PATH
17658 test -z "$as_dir" && as_dir=.
17659 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17665 # We did not find ourselves, most probably we were run as `sh COMMAND'
17666 # in which case we are not to be found in the path.
17667 if test "x$as_myself" = x
; then
17670 if test ! -f "$as_myself"; then
17671 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17675 # Unset variables that we do not need and which cause bugs (e.g. in
17676 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17677 # suppresses any "Segmentation fault" message there. '((' could
17678 # trigger a bug in pdksh 5.2.14.
17679 for as_var
in BASH_ENV ENV MAIL MAILPATH
17680 do eval test x\
${$as_var+set} = xset \
17681 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17694 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17697 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17698 # ----------------------------------------
17699 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17700 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17701 # script with STATUS, using 1 if that was 0.
17704 as_status
=$1; test $as_status -eq 0 && as_status
=1
17706 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17707 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17709 $as_echo "$as_me: error: $2" >&2
17710 as_fn_exit
$as_status
17714 # as_fn_set_status STATUS
17715 # -----------------------
17716 # Set $? to STATUS, without forking.
17717 as_fn_set_status
()
17720 } # as_fn_set_status
17722 # as_fn_exit STATUS
17723 # -----------------
17724 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17728 as_fn_set_status
$1
17734 # Portably unset VAR.
17737 { eval $1=; unset $1;}
17739 as_unset
=as_fn_unset
17740 # as_fn_append VAR VALUE
17741 # ----------------------
17742 # Append the text in VALUE to the end of the definition contained in VAR. Take
17743 # advantage of any shell optimizations that allow amortized linear growth over
17744 # repeated appends, instead of the typical quadratic growth present in naive
17746 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
17747 eval 'as_fn_append ()
17758 # as_fn_arith ARG...
17759 # ------------------
17760 # Perform arithmetic evaluation on the ARGs, and store the result in the
17761 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17762 # must be portable across $(()) and expr.
17763 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
17764 eval 'as_fn_arith ()
17771 as_val
=`expr "$@" || test $? -eq 1`
17776 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17777 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17783 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17784 as_basename
=basename
17789 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17795 as_me
=`$as_basename -- "$0" ||
17796 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17797 X"$0" : 'X\(//\)$' \| \
17798 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17800 sed '/^.*\/\([^/][^/]*\)\/*$/{
17814 # Avoid depending upon Character Ranges.
17815 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17816 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17817 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17818 as_cr_digits
='0123456789'
17819 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17821 ECHO_C
= ECHO_N
= ECHO_T
=
17822 case `echo -n x` in #(((((
17824 case `echo 'xy\c'` in
17825 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17827 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
17834 rm -f conf$$ conf$$.exe conf$$.
file
17835 if test -d conf$$.dir
; then
17836 rm -f conf$$.dir
/conf$$.
file
17839 mkdir conf$$.dir
2>/dev
/null
17841 if (echo >conf$$.
file) 2>/dev
/null
; then
17842 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17844 # ... but there are two gotchas:
17845 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17846 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17847 # In both cases, we have to default to `cp -pR'.
17848 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17850 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17858 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17859 rmdir conf$$.dir
2>/dev
/null
17864 # Create "$as_dir" as a directory, including parents if necessary.
17869 -*) as_dir
=.
/$as_dir;;
17871 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
17875 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17876 *) as_qdir
=$as_dir;;
17878 as_dirs
="'$as_qdir' $as_dirs"
17879 as_dir
=`$as_dirname -- "$as_dir" ||
17880 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17881 X"$as_dir" : 'X\(//\)[^/]' \| \
17882 X"$as_dir" : 'X\(//\)$' \| \
17883 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17884 $as_echo X"$as_dir" |
17885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17889 /^X\(\/\/\)[^/].*/{
17902 test -d "$as_dir" && break
17904 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17905 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
17909 if mkdir
-p .
2>/dev
/null
; then
17910 as_mkdir_p
='mkdir -p "$as_dir"'
17912 test -d .
/-p && rmdir .
/-p
17917 # as_fn_executable_p FILE
17918 # -----------------------
17919 # Test if FILE is an executable regular file.
17920 as_fn_executable_p
()
17922 test -f "$1" && test -x "$1"
17923 } # as_fn_executable_p
17924 as_test_x
='test -x'
17925 as_executable_p
=as_fn_executable_p
17927 # Sed expression to map a string onto a valid CPP name.
17928 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17930 # Sed expression to map a string onto a valid variable name.
17931 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17935 ## ----------------------------------- ##
17936 ## Main body of $CONFIG_STATUS script. ##
17937 ## ----------------------------------- ##
17939 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
17941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17942 # Save the log message, to keep $0 and so on meaningful, and to
17943 # report actual input values of CONFIG_FILES etc. instead of their
17944 # values after options handling.
17946 This file was extended by ld $as_me 2.38.50, which was
17947 generated by GNU Autoconf 2.69. Invocation command line was
17949 CONFIG_FILES = $CONFIG_FILES
17950 CONFIG_HEADERS = $CONFIG_HEADERS
17951 CONFIG_LINKS = $CONFIG_LINKS
17952 CONFIG_COMMANDS = $CONFIG_COMMANDS
17955 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17960 case $ac_config_files in *"
17961 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17964 case $ac_config_headers in *"
17965 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17970 # Files that config.status was made for.
17971 config_files="$ac_config_files"
17972 config_headers="$ac_config_headers"
17973 config_commands="$ac_config_commands"
17977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17979 \`$as_me' instantiates files and other configuration actions
17980 from templates according to the current configuration. Unless the files
17981 and actions are specified as TAGs, all are instantiated by default.
17983 Usage: $0 [OPTION]... [TAG]...
17985 -h, --help print this help, then exit
17986 -V, --version print version number and configuration settings, then exit
17987 --config print configuration, then exit
17988 -q, --quiet, --silent
17989 do not print progress messages
17990 -d, --debug don't remove temporary files
17991 --recheck update $as_me by reconfiguring in the same conditions
17992 --file=FILE[:TEMPLATE]
17993 instantiate the configuration file FILE
17994 --header=FILE[:TEMPLATE]
17995 instantiate the configuration header FILE
17997 Configuration files:
18000 Configuration headers:
18003 Configuration commands:
18006 Report bugs to the package provider."
18009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18010 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18012 ld config.status 2.38.50
18013 configured by $0, generated by GNU Autoconf 2.69,
18014 with options \\"\$ac_cs_config\\"
18016 Copyright (C) 2012 Free Software Foundation, Inc.
18017 This config.status script is free software; the Free Software Foundation
18018 gives unlimited permission to copy, distribute and modify it."
18025 test -n "\$AWK" || AWK=awk
18028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18029 # The default lists apply if the user does not specify any file.
18035 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18036 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18040 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18052 # Handling of the options.
18053 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18055 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
18056 $as_echo "$ac_cs_version"; exit ;;
18057 --config |
--confi |
--conf |
--con |
--co |
--c )
18058 $as_echo "$ac_cs_config"; exit ;;
18059 --debug |
--debu |
--deb |
--de |
--d |
-d )
18061 --file |
--fil |
--fi |
--f )
18064 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18065 '') as_fn_error $?
"missing file argument" ;;
18067 as_fn_append CONFIG_FILES
" '$ac_optarg'"
18068 ac_need_defaults
=false
;;
18069 --header |
--heade |
--head |
--hea )
18072 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18074 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
18075 ac_need_defaults
=false
;;
18077 # Conflict between --help and --header
18078 as_fn_error $?
"ambiguous option: \`$1'
18079 Try \`$0 --help' for more information.";;
18080 --help |
--hel |
-h )
18081 $as_echo "$ac_cs_usage"; exit ;;
18082 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18083 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18086 # This is an error.
18087 -*) as_fn_error $?
"unrecognized option: \`$1'
18088 Try \`$0 --help' for more information." ;;
18090 *) as_fn_append ac_config_targets
" $1"
18091 ac_need_defaults
=false
;;
18097 ac_configure_extra_args
=
18099 if $ac_cs_silent; then
18101 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18106 if \$ac_cs_recheck; then
18107 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18109 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18110 CONFIG_SHELL='$SHELL'
18111 export CONFIG_SHELL
18116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18120 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18121 ## Running $as_me. ##
18127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18131 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18134 # The HP-UX ksh and POSIX shell print the target directory to stdout
18135 # if CDPATH is set.
18136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18138 sed_quote_subst='$sed_quote_subst'
18139 double_quote_subst='$double_quote_subst'
18140 delay_variable_subst='$delay_variable_subst'
18141 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18142 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18143 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18144 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18145 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18146 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18147 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18148 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18149 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18150 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18151 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18152 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18153 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18154 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18155 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18156 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18157 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18158 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18159 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18160 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18161 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18162 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18163 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18164 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18165 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18166 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18167 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18168 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18169 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18170 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18171 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18172 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18173 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18174 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18175 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18176 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18177 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18178 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18179 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18180 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18181 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18182 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18183 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18184 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18185 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18186 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18187 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18188 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18189 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
18190 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18191 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18192 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18193 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18194 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18195 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18196 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18197 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18198 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18199 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18200 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18201 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18202 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18203 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18204 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18205 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18206 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18207 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18208 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18209 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18210 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18211 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18212 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18213 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18214 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18215 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18216 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18217 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18218 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18219 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18220 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18221 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18222 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18223 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18224 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18225 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18226 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18227 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18228 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18229 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18230 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18231 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18232 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18233 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18234 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18235 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18236 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18237 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18238 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18239 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18240 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18241 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18242 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18243 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18244 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18245 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18246 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18247 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18248 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18249 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18250 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18251 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18252 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18253 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18254 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18255 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18256 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18257 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18258 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18259 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18260 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18261 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18262 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18263 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18264 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18265 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18266 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18267 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18268 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18269 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18270 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18271 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18272 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18273 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18274 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18275 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18276 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18277 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18278 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18279 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18280 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18281 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18282 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18283 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18284 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18285 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18286 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18287 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18288 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18289 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18290 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18291 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18292 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18293 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18294 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18295 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18296 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18297 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18298 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18299 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18300 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18301 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18302 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18303 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18304 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18305 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18306 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18307 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18308 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18309 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18310 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18311 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18312 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18313 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18314 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18315 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18318 LTCFLAGS='$LTCFLAGS'
18319 compiler='$compiler_DEFAULT'
18321 # A function that is used when there is no print builtin or printf.
18322 func_fallback_echo ()
18324 eval 'cat <<_LTECHO_EOF
18329 # Quote evaled strings.
18343 deplibs_check_method \
18352 lt_cv_sys_global_symbol_pipe \
18353 lt_cv_sys_global_symbol_to_cdecl \
18354 lt_cv_sys_global_symbol_to_c_name_address \
18355 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18356 lt_prog_compiler_no_builtin_flag \
18357 lt_prog_compiler_wl \
18358 lt_prog_compiler_pic \
18359 lt_prog_compiler_static \
18360 lt_cv_prog_compiler_c_o \
18368 export_dynamic_flag_spec \
18369 whole_archive_flag_spec \
18370 compiler_needs_object \
18372 allow_undefined_flag \
18373 no_undefined_flag \
18374 hardcode_libdir_flag_spec \
18375 hardcode_libdir_flag_spec_ld \
18376 hardcode_libdir_separator \
18381 variables_saved_for_relink \
18383 library_names_spec \
18385 install_override_mode \
18389 compiler_lib_search_dirs \
18394 compiler_lib_search_path \
18398 lt_prog_compiler_no_builtin_flag_CXX \
18399 lt_prog_compiler_wl_CXX \
18400 lt_prog_compiler_pic_CXX \
18401 lt_prog_compiler_static_CXX \
18402 lt_cv_prog_compiler_c_o_CXX \
18403 export_dynamic_flag_spec_CXX \
18404 whole_archive_flag_spec_CXX \
18405 compiler_needs_object_CXX \
18407 allow_undefined_flag_CXX \
18408 no_undefined_flag_CXX \
18409 hardcode_libdir_flag_spec_CXX \
18410 hardcode_libdir_flag_spec_ld_CXX \
18411 hardcode_libdir_separator_CXX \
18412 fix_srcfile_path_CXX \
18413 exclude_expsyms_CXX \
18414 include_expsyms_CXX \
18415 file_list_spec_CXX \
18416 compiler_lib_search_dirs_CXX \
18417 predep_objects_CXX \
18418 postdep_objects_CXX \
18421 compiler_lib_search_path_CXX; do
18422 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18423 *[\\\\\\\`\\"\\\$]*)
18424 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18427 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18432 # Double-quote double-evaled strings.
18433 for var in reload_cmds \
18434 old_postinstall_cmds \
18435 old_postuninstall_cmds \
18437 extract_expsyms_cmds \
18438 old_archive_from_new_cmds \
18439 old_archive_from_expsyms_cmds \
18441 archive_expsym_cmds \
18443 module_expsym_cmds \
18444 export_symbols_cmds \
18447 postuninstall_cmds \
18449 sys_lib_search_path_spec \
18450 sys_lib_dlsearch_path_spec \
18452 old_archive_cmds_CXX \
18453 old_archive_from_new_cmds_CXX \
18454 old_archive_from_expsyms_cmds_CXX \
18456 archive_expsym_cmds_CXX \
18458 module_expsym_cmds_CXX \
18459 export_symbols_cmds_CXX \
18460 prelink_cmds_CXX; do
18461 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18462 *[\\\\\\\`\\"\\\$]*)
18463 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18466 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18471 ac_aux_dir='$ac_aux_dir'
18472 xsi_shell='$xsi_shell'
18473 lt_shell_append='$lt_shell_append'
18475 # See if we are running on zsh, and set the options which allow our
18476 # commands through without removal of \ escapes INIT.
18477 if test -n "\${ZSH_VERSION+set}" ; then
18478 setopt NO_GLOB_SUBST
18484 TIMESTAMP='$TIMESTAMP'
18492 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
18493 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
18495 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18496 # Capture the value of LINGUAS because we need it to compute CATALOGS.
18497 LINGUAS="${LINGUAS-%UNSET%}"
18503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18505 # Handling of arguments.
18506 for ac_config_target
in $ac_config_targets
18508 case $ac_config_target in
18509 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
18510 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
18511 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
18512 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
18513 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
18514 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18515 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
18517 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18522 # If the user did not use the arguments to specify the items to instantiate,
18523 # then the envvar interface is used. Set only those that are not.
18524 # We use the long form for the default assignment because of an extremely
18525 # bizarre bug on SunOS 4.1.3.
18526 if $ac_need_defaults; then
18527 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18528 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18529 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18532 # Have a temporary directory for convenience. Make it in the build tree
18533 # simply because there is no reason against having it here, and in addition,
18534 # creating and moving files from /tmp can sometimes cause problems.
18535 # Hook for its removal unless debugging.
18536 # Note that there is a small window in which the directory will not be cleaned:
18537 # after its creation but before its name has been assigned to `$tmp'.
18541 trap 'exit_status=$?
18542 : "${ac_tmp:=$tmp}"
18543 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18545 trap 'as_fn_exit 1' 1 2 13 15
18547 # Create a (secure) tmp directory for tmp files.
18550 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18554 tmp
=.
/conf$$
-$RANDOM
18555 (umask 077 && mkdir
"$tmp")
18556 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
18559 # Set up the scripts for CONFIG_FILES section.
18560 # No need to generate them if there are no CONFIG_FILES.
18561 # This happens for instance with `./config.status config.h'.
18562 if test -n "$CONFIG_FILES"; then
18565 ac_cr
=`echo X | tr X '\015'`
18566 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18567 # But we know of no other shell where ac_cr would be empty at this
18568 # point, so we can use a bashism as a fallback.
18569 if test "x$ac_cr" = x
; then
18570 eval ac_cr
=\$
\'\\r
\'
18572 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18573 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18576 ac_cs_awk_cr
=$ac_cr
18579 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18584 echo "cat >conf$$subs.awk <<_ACEOF" &&
18585 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18587 } >conf$$subs.sh ||
18588 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18589 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18591 for ac_last_try in false false false false false :; do
18592 . ./conf$$subs.sh ||
18593 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18595 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18596 if test $ac_delim_n = $ac_delim_num; then
18598 elif $ac_last_try; then
18599 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18601 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18604 rm -f conf$$subs.sh
18606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18607 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
18611 s/^/S["/; s
/!.
*/"]=/
18621 s/\(.\{148\}\)..*/\1/
18623 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18628 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18635 s/\(.\{148\}\)..*/\1/
18637 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18641 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18646 ' <conf$$subs.awk | sed '
18651 ' >>$CONFIG_STATUS || ac_write_fail=1
18652 rm -f conf$$subs.awk
18653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18655 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
18656 for (key in S) S_is_set[key] = 1
18662 nfields = split(line, field, "@
")
18664 len = length(field[1])
18665 for (i = 2; i < nfields; i++) {
18667 keylen = length(key)
18668 if (S_is_set[key]) {
18670 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18671 len += length(value) + length(field[++i])
18682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18683 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18684 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18687 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
18688 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
18691 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18692 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
18693 # trailing colons and then remove the whole line if VPATH becomes empty
18694 # (actually we leave an empty line to preserve line numbers).
18695 if test "x
$srcdir" = x.; then
18696 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18715 fi # test -n "$CONFIG_FILES"
18717 # Set up the scripts for CONFIG_HEADERS section.
18718 # No need to generate them if there are no CONFIG_HEADERS.
18719 # This happens for instance with `./config.status Makefile'.
18720 if test -n "$CONFIG_HEADERS"; then
18721 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
18725 # Transform confdefs.h into an awk script `defines.awk', embedded as
18726 # here-document in config.status, that substitutes the proper values into
18727 # config.h.in to produce config.h.
18729 # Create a delimiter string that does not exist in confdefs.h, to ease
18730 # handling of long lines.
18732 for ac_last_try in false false :; do
18733 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
18734 if test -z "$ac_tt"; then
18736 elif $ac_last_try; then
18737 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
18739 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18743 # For the awk script, D is an array of macro values keyed by name,
18744 # likewise P contains macro parameters if any. Preserve backslash
18745 # newline sequences.
18747 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18749 s/.\{148\}/&'"$ac_delim"'/g
18752 s/^[ ]*#[ ]*define[ ][ ]*/ /
18759 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18761 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18765 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18766 D["\
1"]=" \
3\\\\\\n
"\\/p
18768 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18773 s/.\{148\}/&'"$ac_delim"'/g
18778 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18781 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18783 ' <confdefs.h | sed '
18784 s/'"$ac_delim"'/"\\\
18785 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18788 for (key in D) D_is_set[key] = 1
18791 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18793 split(line, arg, " ")
18794 if (arg[1] == "#") {
18798 defundef
= substr
(arg
[1], 2)
18801 split(mac1
, mac2
, "(") #)
18803 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18804 if (D_is_set
[macro
]) {
18805 # Preserve the white space surrounding the "#".
18806 print prefix
"define", macro P
[macro
] D
[macro
]
18809 # Replace #undef with comments. This is necessary, for example,
18810 # in the case of _POSIX_SOURCE, which is predefined and required
18811 # on some systems where configure will not decide to define it.
18812 if (defundef
== "undef") {
18813 print
"/*", prefix defundef
, macro
, "*/"
18821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18822 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
18823 fi # test -n "$CONFIG_HEADERS"
18826 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18831 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18833 case $ac_mode$ac_tag in
18835 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18836 :[FH
]-) ac_tag
=-:-;;
18837 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18854 -) ac_f
="$ac_tmp/stdin";;
18855 *) # Look for the file first in the build tree, then in the source tree
18856 # (if the path is not absolute). The absolute path cannot be DOS-style,
18857 # because $ac_f cannot contain `:'.
18861 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18863 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18865 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18866 as_fn_append ac_file_inputs
" '$ac_f'"
18869 # Let's still pretend it is `configure' which instantiates (i.e., don't
18870 # use $as_me), people would be surprised to read:
18871 # /* config.h. Generated by config.status. */
18872 configure_input
='Generated from '`
18873 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18875 if test x
"$ac_file" != x-
; then
18876 configure_input
="$ac_file. $configure_input"
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18878 $as_echo "$as_me: creating $ac_file" >&6;}
18880 # Neutralize special characters interpreted by sed in replacement strings.
18881 case $configure_input in #(
18882 *\
&* |
*\|
* |
*\\* )
18883 ac_sed_conf_input
=`$as_echo "$configure_input" |
18884 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18885 *) ac_sed_conf_input
=$configure_input;;
18889 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
18890 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
18895 ac_dir
=`$as_dirname -- "$ac_file" ||
18896 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18897 X"$ac_file" : 'X\(//\)[^/]' \| \
18898 X"$ac_file" : 'X\(//\)$' \| \
18899 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18900 $as_echo X"$ac_file" |
18901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18905 /^X\(\/\/\)[^/].*/{
18918 as_dir
="$ac_dir"; as_fn_mkdir_p
18922 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18924 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18925 # A ".." for each directory in $ac_dir_suffix.
18926 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18927 case $ac_top_builddir_sub in
18928 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18929 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18932 ac_abs_top_builddir
=$ac_pwd
18933 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18934 # for backward compatibility:
18935 ac_top_builddir
=$ac_top_build_prefix
18938 .
) # We are building in place.
18940 ac_top_srcdir
=$ac_top_builddir_sub
18941 ac_abs_top_srcdir
=$ac_pwd ;;
18942 [\\/]* | ?
:[\\/]* ) # Absolute name.
18943 ac_srcdir
=$srcdir$ac_dir_suffix;
18944 ac_top_srcdir
=$srcdir
18945 ac_abs_top_srcdir
=$srcdir ;;
18946 *) # Relative name.
18947 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18948 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18949 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18951 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18961 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18962 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18964 ac_MKDIR_P
=$MKDIR_P
18966 [\\/$
]* | ?
:[\\/]* ) ;;
18967 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
18971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18972 # If the template does not know about datarootdir, expand it.
18973 # FIXME: This hack should be removed a few years after 2.60.
18974 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18985 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18986 *datarootdir
*) ac_datarootdir_seen
=yes;;
18987 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18989 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18992 ac_datarootdir_hack='
18993 s&@datadir@&$datadir&g
18994 s&@docdir@&$docdir&g
18995 s&@infodir@&$infodir&g
18996 s&@localedir@&$localedir&g
18997 s&@mandir@&$mandir&g
18998 s&\\\${datarootdir}&$datarootdir&g' ;;
19002 # Neutralize VPATH when `$srcdir' = `.'.
19003 # Shell code in configure.ac might set extrasub.
19004 # FIXME: do we really want to maintain this feature?
19005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19006 ac_sed_extra="$ac_vpsub
19009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19011 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19012 s|@configure_input@|
$ac_sed_conf_input|
;t t
19013 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19014 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19015 s
&@srcdir@
&$ac_srcdir&;t t
19016 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19017 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19018 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19019 s
&@builddir@
&$ac_builddir&;t t
19020 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19021 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19022 s
&@INSTALL@
&$ac_INSTALL&;t t
19023 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
19024 $ac_datarootdir_hack
19026 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
19027 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
19029 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19030 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
19031 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19032 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19034 which seems to be undefined. Please make sure it is defined" >&5
19035 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19036 which seems to be undefined. Please make sure it is defined" >&2;}
19038 rm -f "$ac_tmp/stdin"
19040 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19041 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19043 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19049 if test x"$ac_file" != x-; then
19051 $as_echo "/* $configure_input */" \
19052 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19053 } >"$ac_tmp/config.h" \
19054 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19055 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19057 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19060 mv "$ac_tmp/config.h" "$ac_file" \
19061 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19064 $as_echo "/* $configure_input */" \
19065 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19066 || as_fn_error $? "could not create -" "$LINENO" 5
19068 # Compute "$ac_file"'s index
in $config_headers.
19071 for _am_header
in $config_headers :; do
19072 case $_am_header in
19073 $_am_arg |
$_am_arg:* )
19076 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
19079 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19080 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19081 X"$_am_arg" : 'X\(//\)[^/]' \| \
19082 X"$_am_arg" : 'X\(//\)$' \| \
19083 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19084 $as_echo X"$_am_arg" |
19085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19089 /^X\(\/\/\)[^/].*/{
19101 s/.*/./; q'`/stamp-h
$_am_stamp_count
19104 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19105 $as_echo "$as_me: executing $ac_file commands" >&6;}
19110 case $ac_file$ac_mode in
19111 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
19112 # Older Autoconf quotes --file arguments for eval, but not when files
19113 # are listed without --file. Let's play safe and only enable the eval
19114 # if we detect the quoting.
19115 case $CONFIG_FILES in
19116 *\'*) eval set x
"$CONFIG_FILES" ;;
19117 *) set x
$CONFIG_FILES ;;
19122 # Strip MF so we end up with the name of the file.
19123 mf
=`echo "$mf" | sed -e 's/:.*$//'`
19124 # Check whether this is an Automake generated Makefile or not.
19125 # We used to match only the files named 'Makefile.in', but
19126 # some people rename them; so instead we look at the file content.
19127 # Grep'ing the first line is not enough: some people post-process
19128 # each Makefile.in and add a new line on top of each file to say so.
19129 # Grep'ing the whole file is not good either: AIX grep has a line
19130 # limit of 2048, but all sed's we know have understand at least 4000.
19131 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
19132 dirpart
=`$as_dirname -- "$mf" ||
19133 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19134 X"$mf" : 'X\(//\)[^/]' \| \
19135 X"$mf" : 'X\(//\)$' \| \
19136 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19142 /^X\(\/\/\)[^/].*/{
19158 # Extract the definition of DEPDIR, am__include, and am__quote
19159 # from the Makefile without running 'make'.
19160 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
19161 test -z "$DEPDIR" && continue
19162 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
19163 test -z "$am__include" && continue
19164 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
19165 # Find all dependency output files, they are included files with
19166 # $(DEPDIR) in their names. We invoke sed twice because it is the
19167 # simplest approach to changing $(DEPDIR) to its actual value in the
19169 for file in `sed -n "
19170 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19171 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19172 # Make sure the directory exists.
19173 test -f "$dirpart/$file" && continue
19174 fdir
=`$as_dirname -- "$file" ||
19175 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19176 X"$file" : 'X\(//\)[^/]' \| \
19177 X"$file" : 'X\(//\)$' \| \
19178 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19179 $as_echo X"$file" |
19180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19184 /^X\(\/\/\)[^/].*/{
19197 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
19198 # echo "creating $dirpart/$file"
19199 echo '# dummy' > "$dirpart/$file"
19206 # See if we are running on zsh, and set the options which allow our
19207 # commands through without removal of \ escapes.
19208 if test -n "${ZSH_VERSION+set}" ; then
19209 setopt NO_GLOB_SUBST
19212 cfgfile
="${ofile}T"
19213 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19216 cat <<_LT_EOF >> "$cfgfile"
19219 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19220 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19221 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19222 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19224 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19225 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19226 # Written by Gordon Matzigkeit, 1996
19228 # This file is part of GNU Libtool.
19230 # GNU Libtool is free software; you can redistribute it and/or
19231 # modify it under the terms of the GNU General Public License as
19232 # published by the Free Software Foundation; either version 2 of
19233 # the License, or (at your option) any later version.
19235 # As a special exception to the GNU General Public License,
19236 # if you distribute this file as part of a program or library that
19237 # is built using GNU Libtool, you may include this file under the
19238 # same distribution terms that you use for the rest of that program.
19240 # GNU Libtool is distributed in the hope that it will be useful,
19241 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19242 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19243 # GNU General Public License for more details.
19245 # You should have received a copy of the GNU General Public License
19246 # along with GNU Libtool; see the file COPYING. If not, a copy
19247 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19248 # obtained by writing to the Free Software Foundation, Inc.,
19249 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19252 # The names of the tagged configurations supported by this script.
19253 available_tags="CXX "
19255 # ### BEGIN LIBTOOL CONFIG
19257 # Which release of libtool.m4 was used?
19258 macro_version=$macro_version
19259 macro_revision=$macro_revision
19261 # Whether or not to build shared libraries.
19262 build_libtool_libs=$enable_shared
19264 # Whether or not to build static libraries.
19265 build_old_libs=$enable_static
19267 # What type of objects to build.
19270 # Whether or not to optimize for fast installation.
19271 fast_install=$enable_fast_install
19273 # Shell to use when invoking shell scripts.
19276 # An echo program that protects backslashes.
19280 host_alias=$host_alias
19284 # The build system.
19285 build_alias=$build_alias
19289 # A sed program that does not truncate output.
19292 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19293 Xsed="\$SED -e 1s/^X//"
19295 # A grep program that handles long lines.
19301 # A literal string matcher.
19304 # A BSD- or MS-compatible name lister.
19307 # Whether we need soft or hard links.
19310 # What is the maximum length of a command?
19311 max_cmd_len=$max_cmd_len
19313 # Object file suffix (normally "o").
19316 # Executable file suffix (normally "").
19319 # whether the shell understands "unset".
19322 # turn spaces into newlines.
19325 # turn newlines into spaces.
19328 # An object symbol dumper.
19329 OBJDUMP=$lt_OBJDUMP
19331 # Method to check whether dependent libraries are shared objects.
19332 deplibs_check_method=$lt_deplibs_check_method
19334 # Command to use when deplibs_check_method == "file_magic".
19335 file_magic_cmd=$lt_file_magic_cmd
19339 AR_FLAGS=$lt_AR_FLAGS
19341 # A symbol stripping program.
19344 # Commands used to install an old-style archive.
19346 old_postinstall_cmds=$lt_old_postinstall_cmds
19347 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19349 # Whether to use a lock for old archive extraction.
19350 lock_old_archive_extraction=$lock_old_archive_extraction
19355 # LTCC compiler flags.
19356 LTCFLAGS=$lt_CFLAGS
19358 # Take the output of nm and produce a listing of raw symbols and C names.
19359 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19361 # Transform the output of nm in a proper C declaration.
19362 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19364 # Transform the output of nm in a C name address pair.
19365 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19367 # Transform the output of nm in a C name address pair when lib prefix is needed.
19368 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19370 # The name of the directory that contains temporary libtool files.
19373 # Used to examine libraries when file_magic_cmd begins with "file".
19374 MAGIC_CMD=$MAGIC_CMD
19376 # Must we lock files when doing compilation?
19377 need_locks=$lt_need_locks
19379 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19380 DSYMUTIL=$lt_DSYMUTIL
19382 # Tool to change global to local symbols on Mac OS X.
19385 # Tool to manipulate fat objects and archives on Mac OS X.
19388 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19391 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19392 OTOOL64=$lt_OTOOL64
19394 # Old archive suffix (normally "a").
19397 # Shared library suffix (normally ".so").
19398 shrext_cmds=$lt_shrext_cmds
19400 # The commands to extract the exported symbol list from a shared archive.
19401 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19403 # Variables whose values should be saved in libtool wrapper scripts and
19404 # restored at link time.
19405 variables_saved_for_relink=$lt_variables_saved_for_relink
19407 # Do we need the "lib" prefix for modules?
19408 need_lib_prefix=$need_lib_prefix
19410 # Do we need a version for libraries?
19411 need_version=$need_version
19413 # Library versioning type.
19414 version_type=$version_type
19416 # Shared library runtime path variable.
19417 runpath_var=$runpath_var
19419 # Shared library path variable.
19420 shlibpath_var=$shlibpath_var
19422 # Is shlibpath searched before the hard-coded library search path?
19423 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19425 # Format of library name prefix.
19426 libname_spec=$lt_libname_spec
19428 # List of archive names. First name is the real one, the rest are links.
19429 # The last name is the one that the linker finds with -lNAME
19430 library_names_spec=$lt_library_names_spec
19432 # The coded name of the library, if different from the real name.
19433 soname_spec=$lt_soname_spec
19435 # Permission mode override for installation of shared libraries.
19436 install_override_mode=$lt_install_override_mode
19438 # Command to use after installation of a shared archive.
19439 postinstall_cmds=$lt_postinstall_cmds
19441 # Command to use after uninstallation of a shared archive.
19442 postuninstall_cmds=$lt_postuninstall_cmds
19444 # Commands used to finish a libtool library installation in a directory.
19445 finish_cmds=$lt_finish_cmds
19447 # As "finish_cmds", except a single script fragment to be evaled but
19449 finish_eval=$lt_finish_eval
19451 # Whether we should hardcode library paths into libraries.
19452 hardcode_into_libs=$hardcode_into_libs
19454 # Compile-time system search path for libraries.
19455 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19457 # Run-time system search path for libraries.
19458 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19460 # Whether dlopen is supported.
19461 dlopen_support=$enable_dlopen
19463 # Whether dlopen of programs is supported.
19464 dlopen_self=$enable_dlopen_self
19466 # Whether dlopen of statically linked programs is supported.
19467 dlopen_self_static=$enable_dlopen_self_static
19469 # Commands to strip libraries.
19470 old_striplib=$lt_old_striplib
19471 striplib=$lt_striplib
19474 # The linker used to build libraries.
19477 # How to create reloadable object files.
19478 reload_flag=$lt_reload_flag
19479 reload_cmds=$lt_reload_cmds
19481 # Commands used to build an old-style archive.
19482 old_archive_cmds=$lt_old_archive_cmds
19484 # A language specific compiler.
19487 # Is the compiler the GNU compiler?
19490 # Compiler flag to turn off builtin functions.
19491 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19493 # How to pass a linker flag through the compiler.
19494 wl=$lt_lt_prog_compiler_wl
19496 # Additional compiler flags for building library objects.
19497 pic_flag=$lt_lt_prog_compiler_pic
19499 # Compiler flag to prevent dynamic linking.
19500 link_static_flag=$lt_lt_prog_compiler_static
19502 # Does compiler simultaneously support -c and -o options?
19503 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19505 # Whether or not to add -lc for building shared libraries.
19506 build_libtool_need_lc=$archive_cmds_need_lc
19508 # Whether or not to disallow shared libs when runtime libs are static.
19509 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19511 # Compiler flag to allow reflexive dlopens.
19512 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19514 # Compiler flag to generate shared objects directly from archives.
19515 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19517 # Whether the compiler copes with passing no objects directly.
19518 compiler_needs_object=$lt_compiler_needs_object
19520 # Create an old-style archive from a shared archive.
19521 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19523 # Create a temporary old-style archive to link instead of a shared archive.
19524 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19526 # Commands used to build a shared archive.
19527 archive_cmds=$lt_archive_cmds
19528 archive_expsym_cmds=$lt_archive_expsym_cmds
19530 # Commands used to build a loadable module if different from building
19531 # a shared archive.
19532 module_cmds=$lt_module_cmds
19533 module_expsym_cmds=$lt_module_expsym_cmds
19535 # Whether we are building with GNU ld or not.
19536 with_gnu_ld=$lt_with_gnu_ld
19538 # Flag that allows shared libraries with undefined symbols to be built.
19539 allow_undefined_flag=$lt_allow_undefined_flag
19541 # Flag that enforces no undefined symbols.
19542 no_undefined_flag=$lt_no_undefined_flag
19544 # Flag to hardcode \$libdir into a binary during linking.
19545 # This must work even if \$libdir does not exist
19546 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19548 # If ld is used when linking, flag to hardcode \$libdir into a binary
19549 # during linking. This must work even if \$libdir does not exist.
19550 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19552 # Whether we need a single "-rpath" flag with a separated argument.
19553 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19555 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19556 # DIR into the resulting binary.
19557 hardcode_direct=$hardcode_direct
19559 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19560 # DIR into the resulting binary and the resulting library dependency is
19561 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19562 # library is relocated.
19563 hardcode_direct_absolute=$hardcode_direct_absolute
19565 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19566 # into the resulting binary.
19567 hardcode_minus_L=$hardcode_minus_L
19569 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19570 # into the resulting binary.
19571 hardcode_shlibpath_var=$hardcode_shlibpath_var
19573 # Set to "yes" if building a shared library automatically hardcodes DIR
19574 # into the library and all subsequent libraries and executables linked
19576 hardcode_automatic=$hardcode_automatic
19578 # Set to yes if linker adds runtime paths of dependent libraries
19579 # to runtime path list.
19580 inherit_rpath=$inherit_rpath
19582 # Whether libtool must link a program against all its dependency libraries.
19583 link_all_deplibs=$link_all_deplibs
19585 # Fix the shell variable \$srcfile for the compiler.
19586 fix_srcfile_path=$lt_fix_srcfile_path
19588 # Set to "yes" if exported symbols are required.
19589 always_export_symbols=$always_export_symbols
19591 # The commands to list exported symbols.
19592 export_symbols_cmds=$lt_export_symbols_cmds
19594 # Symbols that should not be listed in the preloaded symbols.
19595 exclude_expsyms=$lt_exclude_expsyms
19597 # Symbols that must always be exported.
19598 include_expsyms=$lt_include_expsyms
19600 # Commands necessary for linking programs (against libraries) with templates.
19601 prelink_cmds=$lt_prelink_cmds
19603 # Specify filename containing input files.
19604 file_list_spec=$lt_file_list_spec
19606 # How to hardcode a shared library path into an executable.
19607 hardcode_action=$hardcode_action
19609 # The directories searched by this compiler when creating a shared library.
19610 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19612 # Dependencies to place before and after the objects being linked to
19613 # create a shared library.
19614 predep_objects=$lt_predep_objects
19615 postdep_objects=$lt_postdep_objects
19616 predeps=$lt_predeps
19617 postdeps=$lt_postdeps
19619 # The library search path used internally by the compiler when linking
19620 # a shared library.
19621 compiler_lib_search_path=$lt_compiler_lib_search_path
19623 # ### END LIBTOOL CONFIG
19629 cat <<\_LT_EOF
>> "$cfgfile"
19630 # AIX sometimes has problems with the GCC collect2 program. For some
19631 # reason, if we set the COLLECT_NAMES environment variable, the problems
19632 # vanish in a puff of smoke.
19633 if test "X${COLLECT_NAMES+set}" != Xset
; then
19635 export COLLECT_NAMES
19642 ltmain
="$ac_aux_dir/ltmain.sh"
19645 # We use sed instead of cat because bash on DJGPP gets confused if
19646 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19647 # text mode, it properly converts lines to CR/LF. This bash problem
19648 # is reportedly fixed, but why not run on old versions too?
19649 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19650 ||
(rm -f "$cfgfile"; exit 1)
19654 cat << \_LT_EOF
>> "$cfgfile"
19656 # func_dirname file append nondir_replacement
19657 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19658 # otherwise set result to NONDIR_REPLACEMENT.
19662 */*) func_dirname_result
="${1%/*}${2}" ;;
19663 * ) func_dirname_result
="${3}" ;;
19667 # func_basename file
19670 func_basename_result
="${1##*/}"
19673 # func_dirname_and_basename file append nondir_replacement
19674 # perform func_basename and func_dirname in a single function
19676 # dirname: Compute the dirname of FILE. If nonempty,
19677 # add APPEND to the result, otherwise set result
19678 # to NONDIR_REPLACEMENT.
19679 # value returned in "$func_dirname_result"
19680 # basename: Compute filename of FILE.
19681 # value retuned in "$func_basename_result"
19682 # Implementation must be kept synchronized with func_dirname
19683 # and func_basename. For efficiency, we do not delegate to
19684 # those functions but instead duplicate the functionality here.
19685 func_dirname_and_basename
()
19688 */*) func_dirname_result
="${1%/*}${2}" ;;
19689 * ) func_dirname_result
="${3}" ;;
19691 func_basename_result
="${1##*/}"
19694 # func_stripname prefix suffix name
19695 # strip PREFIX and SUFFIX off of NAME.
19696 # PREFIX and SUFFIX must not contain globbing or regex special
19697 # characters, hashes, percent signs, but SUFFIX may contain a leading
19698 # dot (in which case that matches only a dot).
19701 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19702 # positional parameters, so assign one to ordinary parameter first.
19703 func_stripname_result
=${3}
19704 func_stripname_result
=${func_stripname_result#"${1}"}
19705 func_stripname_result
=${func_stripname_result%"${2}"}
19711 func_opt_split_opt
=${1%%=*}
19712 func_opt_split_arg
=${1#*=}
19719 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
19720 *) func_lo2o_result
=${1} ;;
19724 # func_xform libobj-or-source
19727 func_xform_result
=${1%.*}.lo
19730 # func_arith arithmetic-term...
19733 func_arith_result
=$
(( $
* ))
19737 # STRING may not start with a hyphen.
19740 func_len_result
=${#1}
19745 *) # Bourne compatible functions.
19746 cat << \_LT_EOF
>> "$cfgfile"
19748 # func_dirname file append nondir_replacement
19749 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19750 # otherwise set result to NONDIR_REPLACEMENT.
19753 # Extract subdirectory from the argument.
19754 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
19755 if test "X$func_dirname_result" = "X${1}"; then
19756 func_dirname_result
="${3}"
19758 func_dirname_result
="$func_dirname_result${2}"
19762 # func_basename file
19765 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
19769 # func_stripname prefix suffix name
19770 # strip PREFIX and SUFFIX off of NAME.
19771 # PREFIX and SUFFIX must not contain globbing or regex special
19772 # characters, hashes, percent signs, but SUFFIX may contain a leading
19773 # dot (in which case that matches only a dot).
19774 # func_strip_suffix prefix name
19778 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19779 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19784 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
19785 my_sed_long_arg
='1s/^-[^=]*=//'
19790 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19791 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19797 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
19800 # func_xform libobj-or-source
19803 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19806 # func_arith arithmetic-term...
19809 func_arith_result
=`expr "$@"`
19813 # STRING may not start with a hyphen.
19816 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19822 case $lt_shell_append in
19824 cat << \_LT_EOF
>> "$cfgfile"
19826 # func_append var value
19827 # Append VALUE to the end of shell variable VAR.
19835 cat << \_LT_EOF
>> "$cfgfile"
19837 # func_append var value
19838 # Append VALUE to the end of shell variable VAR.
19849 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19850 ||
(rm -f "$cfgfile"; exit 1)
19852 mv -f "$cfgfile" "$ofile" ||
19853 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19857 cat <<_LT_EOF >> "$ofile"
19859 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19861 # The linker used to build libraries.
19864 # How to create reloadable object files.
19865 reload_flag=$lt_reload_flag_CXX
19866 reload_cmds=$lt_reload_cmds_CXX
19868 # Commands used to build an old-style archive.
19869 old_archive_cmds=$lt_old_archive_cmds_CXX
19871 # A language specific compiler.
19872 CC=$lt_compiler_CXX
19874 # Is the compiler the GNU compiler?
19877 # Compiler flag to turn off builtin functions.
19878 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19880 # How to pass a linker flag through the compiler.
19881 wl=$lt_lt_prog_compiler_wl_CXX
19883 # Additional compiler flags for building library objects.
19884 pic_flag=$lt_lt_prog_compiler_pic_CXX
19886 # Compiler flag to prevent dynamic linking.
19887 link_static_flag=$lt_lt_prog_compiler_static_CXX
19889 # Does compiler simultaneously support -c and -o options?
19890 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19892 # Whether or not to add -lc for building shared libraries.
19893 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19895 # Whether or not to disallow shared libs when runtime libs are static.
19896 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19898 # Compiler flag to allow reflexive dlopens.
19899 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19901 # Compiler flag to generate shared objects directly from archives.
19902 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19904 # Whether the compiler copes with passing no objects directly.
19905 compiler_needs_object=$lt_compiler_needs_object_CXX
19907 # Create an old-style archive from a shared archive.
19908 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19910 # Create a temporary old-style archive to link instead of a shared archive.
19911 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19913 # Commands used to build a shared archive.
19914 archive_cmds=$lt_archive_cmds_CXX
19915 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19917 # Commands used to build a loadable module if different from building
19918 # a shared archive.
19919 module_cmds=$lt_module_cmds_CXX
19920 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19922 # Whether we are building with GNU ld or not.
19923 with_gnu_ld=$lt_with_gnu_ld_CXX
19925 # Flag that allows shared libraries with undefined symbols to be built.
19926 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19928 # Flag that enforces no undefined symbols.
19929 no_undefined_flag=$lt_no_undefined_flag_CXX
19931 # Flag to hardcode \$libdir into a binary during linking.
19932 # This must work even if \$libdir does not exist
19933 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19935 # If ld is used when linking, flag to hardcode \$libdir into a binary
19936 # during linking. This must work even if \$libdir does not exist.
19937 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19939 # Whether we need a single "-rpath" flag with a separated argument.
19940 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19942 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19943 # DIR into the resulting binary.
19944 hardcode_direct=$hardcode_direct_CXX
19946 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19947 # DIR into the resulting binary and the resulting library dependency is
19948 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19949 # library is relocated.
19950 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19952 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19953 # into the resulting binary.
19954 hardcode_minus_L=$hardcode_minus_L_CXX
19956 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19957 # into the resulting binary.
19958 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19960 # Set to "yes" if building a shared library automatically hardcodes DIR
19961 # into the library and all subsequent libraries and executables linked
19963 hardcode_automatic=$hardcode_automatic_CXX
19965 # Set to yes if linker adds runtime paths of dependent libraries
19966 # to runtime path list.
19967 inherit_rpath=$inherit_rpath_CXX
19969 # Whether libtool must link a program against all its dependency libraries.
19970 link_all_deplibs=$link_all_deplibs_CXX
19972 # Fix the shell variable \$srcfile for the compiler.
19973 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19975 # Set to "yes" if exported symbols are required.
19976 always_export_symbols=$always_export_symbols_CXX
19978 # The commands to list exported symbols.
19979 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19981 # Symbols that should not be listed in the preloaded symbols.
19982 exclude_expsyms=$lt_exclude_expsyms_CXX
19984 # Symbols that must always be exported.
19985 include_expsyms=$lt_include_expsyms_CXX
19987 # Commands necessary for linking programs (against libraries) with templates.
19988 prelink_cmds=$lt_prelink_cmds_CXX
19990 # Specify filename containing input files.
19991 file_list_spec=$lt_file_list_spec_CXX
19993 # How to hardcode a shared library path into an executable.
19994 hardcode_action=$hardcode_action_CXX
19996 # The directories searched by this compiler when creating a shared library.
19997 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19999 # Dependencies to place before and after the objects being linked to
20000 # create a shared library.
20001 predep_objects=$lt_predep_objects_CXX
20002 postdep_objects=$lt_postdep_objects_CXX
20003 predeps=$lt_predeps_CXX
20004 postdeps=$lt_postdeps_CXX
20006 # The library search path used internally by the compiler when linking
20007 # a shared library.
20008 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20010 # ### END LIBTOOL TAG CONFIG: CXX
20015 for ac_file
in $CONFIG_FILES; do
20016 # Support "outfile[:infile[:infile...]]"
20018 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
20020 # PO directories have a Makefile.in generated from Makefile.in.in.
20021 case "$ac_file" in */Makefile.
in)
20022 # Adjust a relative srcdir.
20023 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
20024 ac_dir_suffix
=/`echo "$ac_dir"|sed 's%^\./%%'`
20025 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20026 # In autoconf-2.13 it is called $ac_given_srcdir.
20027 # In autoconf-2.50 it is called $srcdir.
20028 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
20029 case "$ac_given_srcdir" in
20030 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
20031 /*) top_srcdir
="$ac_given_srcdir" ;;
20032 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
20034 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20035 rm -f "$ac_dir/POTFILES"
20036 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
20037 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
20038 POMAKEFILEDEPS
="POTFILES.in"
20039 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
20040 # on $ac_dir but don't depend on user-specified configuration
20042 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20043 # The LINGUAS file contains the set of available languages.
20044 if test -n "$OBSOLETE_ALL_LINGUAS"; then
20045 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" ||
echo "setting ALL_LINGUAS in configure.ac is obsolete"
20047 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20048 # Hide the ALL_LINGUAS assigment from automake.
20049 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
20050 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
20052 # The set of available languages was given in configure.ac.
20053 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
20055 case "$ac_given_srcdir" in
20057 *) srcdirpre
='$(srcdir)/' ;;
20063 for lang
in $ALL_LINGUAS; do
20064 POFILES
="$POFILES $srcdirpre$lang.po"
20065 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
20066 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
20067 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
20069 # CATALOGS depends on both $ac_dir and the user's LINGUAS
20070 # environment variable.
20072 if test -n "$ALL_LINGUAS"; then
20073 for presentlang
in $ALL_LINGUAS; do
20075 if test "%UNSET%" != "$LINGUAS"; then
20076 desiredlanguages
="$LINGUAS"
20078 desiredlanguages
="$ALL_LINGUAS"
20080 for desiredlang
in $desiredlanguages; do
20081 # Use the presentlang catalog if desiredlang is
20082 # a. equal to presentlang, or
20083 # b. a variant of presentlang (because in this case,
20084 # presentlang can be used as a fallback for messages
20085 # which are not translated in the desiredlang catalog).
20086 case "$desiredlang" in
20087 "$presentlang"*) useit
=yes;;
20090 if test $useit = yes; then
20091 INST_LINGUAS
="$INST_LINGUAS $presentlang"
20096 if test -n "$INST_LINGUAS"; then
20097 for lang
in $INST_LINGUAS; do
20098 CATALOGS
="$CATALOGS $lang.gmo"
20101 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
20102 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
20103 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
20104 if test -f "$f"; then
20106 *.orig |
*.bak |
*~
) ;;
20107 *) cat "$f" >> "$ac_dir/Makefile" ;;
20118 *) srcdirpre
='$(srcdir)/' ;;
20122 for lang
in dummy
$OBSOLETE_ALL_LINGUAS; do
20123 if test $lang != dummy
; then
20124 POFILES
="$POFILES $srcdirpre$lang.po"
20125 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
20128 sed -e '/^SRC-POTFILES =/r po/SRC-POTFILES' \
20129 -e '/^BLD-POTFILES =/r po/BLD-POTFILES' \
20130 -e "s,@POFILES@,$POFILES," \
20131 -e "s,@GMOFILES@,$GMOFILES," \
20132 po
/Makefile.
in > po
/Makefile
;;
20140 ac_clean_files
=$ac_clean_files_save
20142 test $ac_write_fail = 0 ||
20143 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
20146 # configure is writing to config.log, and then calls config.status.
20147 # config.status does its own redirection, appending to config.log.
20148 # Unfortunately, on DOS this fails, as config.log is still kept open
20149 # by configure, so config.status won't be able to write to it; its
20150 # output is simply discarded. So we exec the FD to /dev/null,
20151 # effectively closing config.log, so it can be properly (re)opened and
20152 # appended to by config.status. When coming back to configure, we
20153 # need to make the FD available again.
20154 if test "$no_create" != yes; then
20156 ac_config_status_args
=
20157 test "$silent" = yes &&
20158 ac_config_status_args
="$ac_config_status_args --quiet"
20160 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20162 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20163 # would make configure fail if this is the last instruction.
20164 $ac_cs_success || as_fn_exit
1
20166 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20168 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20173 touch config.status.tmp
20174 if touch --reference=config.status config.status.tmp
> /dev
/null
2>&1; then
20175 sed '/as_fn_exit 0/i \
20176 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
20177 touch --reference=Makefile Makefile.tmp \
20178 mv Makefile.tmp Makefile \
20179 ' config.status
> config.status.tmp
20180 touch --reference=config.status config.status.tmp
20181 mv config.status.tmp config.status
20182 chmod +x config.status
20183 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile
> Makefile.tmp
20184 touch --reference=Makefile Makefile.tmp
20185 mv Makefile.tmp Makefile
20187 rm -f config.status.tmp