2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gprofng 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.
588 PACKAGE_NAME
='gprofng'
589 PACKAGE_TARNAME
='gprofng'
590 PACKAGE_VERSION
='2.38.50'
591 PACKAGE_STRING
='gprofng 2.38.50'
595 # Factoring default headers for most tests.
596 ac_includes_default
="\
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
608 # ifdef HAVE_STDLIB_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
631 enable_option_checking
=no
632 ac_subst_vars
='am__EXEEXT_FALSE
660 BUILD_COLLECTOR_FALSE
662 GPROFNG_NO_SWITCH_CFLAGS
663 GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS
712 MAINTAINER_MODE_FALSE
726 INSTALL_STRIP_PROGRAM
780 program_transform_name
793 enable_option_checking
795 enable_maintainer_mode
796 enable_dependency_tracking
808 ac_precious_vars
='build_alias
821 ac_subdirs_all
='libcollector'
823 # Initialize some variables set by options.
825 ac_init_version
=false
826 ac_unrecognized_opts
=
828 # The variables have the same names as the options, with
829 # dashes changed to underlines.
837 program_transform_name
=s
,x
,x
,
845 # Installation directory options.
846 # These are left unexpanded so users can "make install exec_prefix=/foo"
847 # and all the variables that are supposed to be based on exec_prefix
848 # by default will actually change.
849 # Use braces instead of parens because sh, perl, etc. also accept them.
850 # (The list follows the same order as the GNU Coding Standards.)
851 bindir
='${exec_prefix}/bin'
852 sbindir
='${exec_prefix}/sbin'
853 libexecdir
='${exec_prefix}/libexec'
854 datarootdir
='${prefix}/share'
855 datadir
='${datarootdir}'
856 sysconfdir
='${prefix}/etc'
857 sharedstatedir
='${prefix}/com'
858 localstatedir
='${prefix}/var'
859 includedir
='${prefix}/include'
860 oldincludedir
='/usr/include'
861 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
862 infodir
='${datarootdir}/info'
867 libdir
='${exec_prefix}/lib'
868 localedir
='${datarootdir}/locale'
869 mandir
='${datarootdir}/man'
875 # If the previous option needs an argument, assign it.
876 if test -n "$ac_prev"; then
877 eval $ac_prev=\
$ac_option
883 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888 # Accept the important Cygnus configure options, so we can diagnose typos.
890 case $ac_dashdash$ac_option in
894 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
896 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
899 -build |
--build |
--buil |
--bui |
--bu)
900 ac_prev
=build_alias
;;
901 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
902 build_alias
=$ac_optarg ;;
904 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
905 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
906 ac_prev
=cache_file
;;
907 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
908 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
909 cache_file
=$ac_optarg ;;
912 cache_file
=config.cache
;;
914 -datadir |
--datadir |
--datadi |
--datad)
916 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
917 datadir
=$ac_optarg ;;
919 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
920 |
--dataroo |
--dataro |
--datar)
921 ac_prev
=datarootdir
;;
922 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
923 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
924 datarootdir
=$ac_optarg ;;
926 -disable-* |
--disable-*)
927 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
930 as_fn_error $?
"invalid feature name: $ac_useropt"
931 ac_useropt_orig
=$ac_useropt
932 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933 case $ac_user_opts in
937 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
938 ac_unrecognized_sep
=', ';;
940 eval enable_
$ac_useropt=no
;;
942 -docdir |
--docdir |
--docdi |
--doc |
--do)
944 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
947 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
949 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
952 -enable-* |
--enable-*)
953 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
956 as_fn_error $?
"invalid feature name: $ac_useropt"
957 ac_useropt_orig
=$ac_useropt
958 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
963 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
964 ac_unrecognized_sep
=', ';;
966 eval enable_
$ac_useropt=\
$ac_optarg ;;
968 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
969 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
970 |
--exec |
--exe |
--ex)
971 ac_prev
=exec_prefix
;;
972 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
973 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
974 |
--exec=* |
--exe=* |
--ex=*)
975 exec_prefix
=$ac_optarg ;;
977 -gas |
--gas |
--ga |
--g)
978 # Obsolete; use --with-gas.
981 -help |
--help |
--hel |
--he |
-h)
983 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
984 ac_init_help
=recursive
;;
985 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
986 ac_init_help
=short
;;
988 -host |
--host |
--hos |
--ho)
989 ac_prev
=host_alias
;;
990 -host=* |
--host=* |
--hos=* |
--ho=*)
991 host_alias
=$ac_optarg ;;
993 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
995 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
997 htmldir
=$ac_optarg ;;
999 -includedir |
--includedir |
--includedi |
--included |
--include \
1000 |
--includ |
--inclu |
--incl |
--inc)
1001 ac_prev
=includedir
;;
1002 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1003 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1004 includedir
=$ac_optarg ;;
1006 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1008 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1009 infodir
=$ac_optarg ;;
1011 -libdir |
--libdir |
--libdi |
--libd)
1013 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1014 libdir
=$ac_optarg ;;
1016 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1017 |
--libexe |
--libex |
--libe)
1018 ac_prev
=libexecdir
;;
1019 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1020 |
--libexe=* |
--libex=* |
--libe=*)
1021 libexecdir
=$ac_optarg ;;
1023 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1024 ac_prev
=localedir
;;
1025 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1026 localedir
=$ac_optarg ;;
1028 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1029 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1030 ac_prev
=localstatedir
;;
1031 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1032 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1033 localstatedir
=$ac_optarg ;;
1035 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1037 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1038 mandir
=$ac_optarg ;;
1040 -nfp |
--nfp |
--nf)
1041 # Obsolete; use --without-fp.
1044 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1045 |
--no-cr |
--no-c |
-n)
1048 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1049 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1052 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1053 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1054 |
--oldin |
--oldi |
--old |
--ol |
--o)
1055 ac_prev
=oldincludedir
;;
1056 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1057 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1058 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1059 oldincludedir
=$ac_optarg ;;
1061 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1063 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1064 prefix
=$ac_optarg ;;
1066 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1067 |
--program-pre |
--program-pr |
--program-p)
1068 ac_prev
=program_prefix
;;
1069 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1070 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1071 program_prefix
=$ac_optarg ;;
1073 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1074 |
--program-suf |
--program-su |
--program-s)
1075 ac_prev
=program_suffix
;;
1076 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1077 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1078 program_suffix
=$ac_optarg ;;
1080 -program-transform-name |
--program-transform-name \
1081 |
--program-transform-nam |
--program-transform-na \
1082 |
--program-transform-n |
--program-transform- \
1083 |
--program-transform |
--program-transfor \
1084 |
--program-transfo |
--program-transf \
1085 |
--program-trans |
--program-tran \
1086 |
--progr-tra |
--program-tr |
--program-t)
1087 ac_prev
=program_transform_name
;;
1088 -program-transform-name=* |
--program-transform-name=* \
1089 |
--program-transform-nam=* |
--program-transform-na=* \
1090 |
--program-transform-n=* |
--program-transform-=* \
1091 |
--program-transform=* |
--program-transfor=* \
1092 |
--program-transfo=* |
--program-transf=* \
1093 |
--program-trans=* |
--program-tran=* \
1094 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1095 program_transform_name
=$ac_optarg ;;
1097 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1099 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1100 pdfdir
=$ac_optarg ;;
1102 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1104 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1107 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1108 |
-silent |
--silent |
--silen |
--sile |
--sil)
1111 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1113 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1115 sbindir
=$ac_optarg ;;
1117 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1118 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1119 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1121 ac_prev
=sharedstatedir
;;
1122 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1123 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1124 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1126 sharedstatedir
=$ac_optarg ;;
1128 -site |
--site |
--sit)
1130 -site=* |
--site=* |
--sit=*)
1133 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1135 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1136 srcdir
=$ac_optarg ;;
1138 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1139 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1140 ac_prev
=sysconfdir
;;
1141 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1142 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1143 sysconfdir
=$ac_optarg ;;
1145 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1146 ac_prev
=target_alias
;;
1147 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1148 target_alias
=$ac_optarg ;;
1150 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1153 -version |
--version |
--versio |
--versi |
--vers |
-V)
1154 ac_init_version
=: ;;
1157 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1160 as_fn_error $?
"invalid package name: $ac_useropt"
1161 ac_useropt_orig
=$ac_useropt
1162 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1167 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1168 ac_unrecognized_sep
=', ';;
1170 eval with_
$ac_useropt=\
$ac_optarg ;;
1172 -without-* |
--without-*)
1173 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1176 as_fn_error $?
"invalid package name: $ac_useropt"
1177 ac_useropt_orig
=$ac_useropt
1178 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1183 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1184 ac_unrecognized_sep
=', ';;
1186 eval with_
$ac_useropt=no
;;
1189 # Obsolete; use --with-x.
1192 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1193 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1194 ac_prev
=x_includes
;;
1195 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1196 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1197 x_includes
=$ac_optarg ;;
1199 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1200 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1201 ac_prev
=x_libraries
;;
1202 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1203 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1204 x_libraries
=$ac_optarg ;;
1206 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1207 Try \`$0 --help' for more information"
1211 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1212 # Reject names that are not valid shell variable names.
1213 case $ac_envvar in #(
1214 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1215 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1217 eval $ac_envvar=\
$ac_optarg
1218 export $ac_envvar ;;
1221 # FIXME: should be removed in autoconf 3.0.
1222 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1223 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1224 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1225 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1231 if test -n "$ac_prev"; then
1232 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1233 as_fn_error $?
"missing argument to $ac_option"
1236 if test -n "$ac_unrecognized_opts"; then
1237 case $enable_option_checking in
1239 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1240 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1244 # Check all directory arguments for consistency.
1245 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1246 datadir sysconfdir sharedstatedir localstatedir includedir \
1247 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1248 libdir localedir mandir
1250 eval ac_val
=\$
$ac_var
1251 # Remove trailing slashes.
1254 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1255 eval $ac_var=\
$ac_val;;
1257 # Be sure to have absolute directory names.
1259 [\\/$
]* | ?
:[\\/]* ) continue;;
1260 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1262 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1265 # There might be people who depend on the old broken behavior: `$host'
1266 # used to hold the argument of --host etc.
1267 # FIXME: To remove some day.
1270 target
=$target_alias
1272 # FIXME: To remove some day.
1273 if test "x$host_alias" != x
; then
1274 if test "x$build_alias" = x
; then
1275 cross_compiling
=maybe
1276 elif test "x$build_alias" != "x$host_alias"; then
1282 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1284 test "$silent" = yes && exec 6>/dev
/null
1287 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1288 ac_ls_di
=`ls -di .` &&
1289 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1290 as_fn_error $?
"working directory cannot be determined"
1291 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1292 as_fn_error $?
"pwd does not report name of working directory"
1295 # Find the source files, if location was not specified.
1296 if test -z "$srcdir"; then
1297 ac_srcdir_defaulted
=yes
1298 # Try the directory containing this script, then the parent directory.
1299 ac_confdir
=`$as_dirname -- "$as_myself" ||
1300 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1301 X"$as_myself" : 'X\(//\)[^/]' \| \
1302 X"$as_myself" : 'X\(//\)$' \| \
1303 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1304 $as_echo X"$as_myself" |
1305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1327 ac_srcdir_defaulted
=no
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1331 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1333 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1335 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1337 # When building in place, set srcdir=.
1338 if test "$ac_abs_confdir" = "$ac_pwd"; then
1341 # Remove unnecessary trailing slashes from srcdir.
1342 # Double slashes in file names in object file debugging info
1343 # mess up M-x gdb in Emacs.
1345 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1347 for ac_var
in $ac_precious_vars; do
1348 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1349 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1350 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1351 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1355 # Report the --help message.
1357 if test "$ac_init_help" = "long"; then
1358 # Omit some internal or obsolete options to make the list less imposing.
1359 # This message is too long to be a string in the A/UX 3.1 sh.
1361 \`configure' configures gprofng 2.38.50 to adapt to many kinds of systems.
1363 Usage: $0 [OPTION]... [VAR=VALUE]...
1365 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1366 VAR=VALUE. See below for descriptions of some of the useful variables.
1368 Defaults for the options are specified in brackets.
1371 -h, --help display this help and exit
1372 --help=short display options specific to this package
1373 --help=recursive display the short help of all the included packages
1374 -V, --version display version information and exit
1375 -q, --quiet, --silent do not print \`checking ...' messages
1376 --cache-file=FILE cache test results in FILE [disabled]
1377 -C, --config-cache alias for \`--cache-file=config.cache'
1378 -n, --no-create do not create output files
1379 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1381 Installation directories:
1382 --prefix=PREFIX install architecture-independent files in PREFIX
1383 [$ac_default_prefix]
1384 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1387 By default, \`make install' will install all the files in
1388 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1389 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1390 for instance \`--prefix=\$HOME'.
1392 For better control, use the options below.
1394 Fine tuning of the installation directories:
1395 --bindir=DIR user executables [EPREFIX/bin]
1396 --sbindir=DIR system admin executables [EPREFIX/sbin]
1397 --libexecdir=DIR program executables [EPREFIX/libexec]
1398 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1399 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1400 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1401 --libdir=DIR object code libraries [EPREFIX/lib]
1402 --includedir=DIR C header files [PREFIX/include]
1403 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1404 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1405 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1406 --infodir=DIR info documentation [DATAROOTDIR/info]
1407 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1408 --mandir=DIR man documentation [DATAROOTDIR/man]
1409 --docdir=DIR documentation root [DATAROOTDIR/doc/gprofng]
1410 --htmldir=DIR html documentation [DOCDIR]
1411 --dvidir=DIR dvi documentation [DOCDIR]
1412 --pdfdir=DIR pdf documentation [DOCDIR]
1413 --psdir=DIR ps documentation [DOCDIR]
1419 --program-prefix=PREFIX prepend PREFIX to installed program names
1420 --program-suffix=SUFFIX append SUFFIX to installed program names
1421 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1424 --build=BUILD configure
for building on BUILD
[guessed
]
1425 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1426 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1430 if test -n "$ac_init_help"; then
1431 case $ac_init_help in
1432 short | recursive
) echo "Configuration of gprofng 2.38.50:";;
1437 --disable-option-checking ignore unrecognized
--enable/--with options
1438 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1439 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1440 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1441 --disable-silent-rules verbose build output
(undo
: "make V=0")
1442 --enable-maintainer-mode
1443 enable make rules and dependencies not useful
(and
1444 sometimes confusing
) to the casual installer
1445 --enable-dependency-tracking
1446 do not reject slow dependency extractors
1447 --disable-dependency-tracking
1448 speeds up one-time build
1449 --enable-shared[=PKGS
] build shared libraries
[default
=no
]
1450 --enable-static[=PKGS
] build static libraries
[default
=yes]
1451 --enable-fast-install[=PKGS
]
1452 optimize
for fast installation
[default
=yes]
1453 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1454 --enable-werror-always enable -Werror despite compiler version
1455 --disable-gprofng-tools do not build gprofng
/src directory
1456 --enable-gprofng-debug Enable debugging output
[default
=no
]
1459 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1460 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1461 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1463 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1464 --with-jdk=PATH specify prefix directory
for installed JDK.
1466 Some influential environment variables
:
1467 CC C compiler
command
1468 CFLAGS C compiler flags
1469 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1470 nonstandard directory
<lib dir
>
1471 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1472 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1473 you have headers
in a nonstandard directory
<include dir
>
1475 CXX C
++ compiler
command
1476 CXXFLAGS C
++ compiler flags
1477 CXXCPP C
++ preprocessor
1479 Use these variables to override the choices made by
`configure' or to help
1480 it to find libraries and programs with nonstandard names/locations.
1482 Report bugs to the package provider.
1487 if test "$ac_init_help" = "recursive"; then
1488 # If there are subdirs, report their specific --help.
1489 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1490 test -d "$ac_dir" ||
1491 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1496 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1499 # A ".." for each directory in $ac_dir_suffix.
1500 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1501 case $ac_top_builddir_sub in
1502 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1506 ac_abs_top_builddir=$ac_pwd
1507 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1508 # for backward compatibility:
1509 ac_top_builddir=$ac_top_build_prefix
1512 .) # We are building in place.
1514 ac_top_srcdir=$ac_top_builddir_sub
1515 ac_abs_top_srcdir=$ac_pwd ;;
1516 [\\/]* | ?:[\\/]* ) # Absolute name.
1517 ac_srcdir=$srcdir$ac_dir_suffix;
1518 ac_top_srcdir=$srcdir
1519 ac_abs_top_srcdir=$srcdir ;;
1521 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1522 ac_top_srcdir=$ac_top_build_prefix$srcdir
1523 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1525 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1527 cd "$ac_dir" || { ac_status=$?; continue; }
1528 # Check for guested configure.
1529 if test -f "$ac_srcdir/configure.gnu"; then
1531 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1532 elif test -f "$ac_srcdir/configure"; then
1534 $SHELL "$ac_srcdir/configure" --help=recursive
1536 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1538 cd "$ac_pwd" || { ac_status=$?; break; }
1542 test -n "$ac_init_help" && exit $ac_status
1543 if $ac_init_version; then
1545 gprofng configure 2.38.50
1546 generated by GNU Autoconf 2.69
1548 Copyright (C) 2012 Free Software Foundation, Inc.
1549 This configure script is free software; the Free Software Foundation
1550 gives unlimited permission to copy, distribute and modify it.
1555 ## ------------------------ ##
1556 ## Autoconf initialization. ##
1557 ## ------------------------ ##
1559 # ac_fn_c_try_compile LINENO
1560 # --------------------------
1561 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1562 ac_fn_c_try_compile ()
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 rm -f conftest.$ac_objext
1566 if { { ac_try="$ac_compile"
1568 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1569 *) ac_try_echo
=$ac_try;;
1571 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 $as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_compile") 2>conftest.err
1575 if test -s conftest.err
; then
1576 grep -v '^ *+' conftest.err
>conftest.er1
1577 cat conftest.er1
>&5
1578 mv -f conftest.er1 conftest.err
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } && {
1582 test -z "$ac_c_werror_flag" ||
1583 test ! -s conftest.err
1584 } && test -s conftest.
$ac_objext; then :
1587 $as_echo "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.
$ac_ext >&5
1592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1593 as_fn_set_status
$ac_retval
1595 } # ac_fn_c_try_compile
1597 # ac_fn_c_try_cpp LINENO
1598 # ----------------------
1599 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1602 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1603 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1605 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1606 *) ac_try_echo=$ac_try;;
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1612 if test -s conftest.err; then
1613 grep -v '^ *+' conftest.err >conftest.er1
1614 cat conftest.er1 >&5
1615 mv -f conftest.er1 conftest.err
1617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618 test $ac_status = 0; } > conftest.i && {
1619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1620 test ! -s conftest.err
1624 $as_echo "$as_me: failed program was:" >&5
1625 sed 's/^/| /' conftest.$ac_ext >&5
1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630 as_fn_set_status $ac_retval
1634 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1635 # -------------------------------------------------------
1636 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1637 # the include files in INCLUDES and setting the cache variable VAR
1639 ac_fn_c_check_header_mongrel ()
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 if eval \${$3+:} false; then :
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1644 $as_echo_n "checking for $2... " >&6; }
1645 if eval \${$3+:} false; then :
1646 $as_echo_n "(cached) " >&6
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1650 $as_echo "$ac_res" >&6; }
1652 # Is the header compilable?
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1654 $as_echo_n "checking $2 usability... " >&6; }
1655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1656 /* end confdefs.h. */
1660 if ac_fn_c_try_compile "$LINENO"; then :
1661 ac_header_compiler=yes
1663 ac_header_compiler=no
1665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1667 $as_echo "$ac_header_compiler" >&6; }
1669 # Is the header present?
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1671 $as_echo_n "checking $2 presence... " >&6; }
1672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1673 /* end confdefs.h. */
1676 if ac_fn_c_try_cpp "$LINENO"; then :
1677 ac_header_preproc=yes
1679 ac_header_preproc=no
1681 rm -f conftest.err conftest.i conftest.$ac_ext
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1683 $as_echo "$ac_header_preproc" >&6; }
1685 # So? What about this header?
1686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1689 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1691 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1695 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1697 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1699 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1701 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1703 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 $as_echo_n "checking for $2... " >&6; }
1708 if eval \${$3+:} false; then :
1709 $as_echo_n "(cached) " >&6
1711 eval "$3=\$ac_header_compiler"
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1715 $as_echo "$ac_res" >&6; }
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 } # ac_fn_c_check_header_mongrel
1721 # ac_fn_c_try_run LINENO
1722 # ----------------------
1723 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1724 # that executables *can* be run.
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 if { { ac_try="$ac_link"
1730 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1731 *) ac_try_echo
=$ac_try;;
1733 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_link") 2>&5
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1739 { { case "(($ac_try" in
1740 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_try") 2>&5
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; }; }; then :
1751 $as_echo "$as_me: program exited with status $ac_status" >&5
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1755 ac_retval=$ac_status
1757 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 as_fn_set_status $ac_retval
1763 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1764 # -------------------------------------------------------
1765 # Tests whether HEADER exists and can be compiled using the include files in
1766 # INCLUDES, setting the cache variable VAR accordingly.
1767 ac_fn_c_check_header_compile ()
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771 $as_echo_n "checking for $2... " >&6; }
1772 if eval \${$3+:} false; then :
1773 $as_echo_n "(cached) " >&6
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h. */
1780 if ac_fn_c_try_compile "$LINENO"; then :
1785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792 } # ac_fn_c_check_header_compile
1794 # ac_fn_cxx_try_compile LINENO
1795 # ----------------------------
1796 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1797 ac_fn_cxx_try_compile ()
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 rm -f conftest.$ac_objext
1801 if { { ac_try="$ac_compile"
1803 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1804 *) ac_try_echo
=$ac_try;;
1806 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_compile") 2>conftest.err
1810 if test -s conftest.err
; then
1811 grep -v '^ *+' conftest.err
>conftest.er1
1812 cat conftest.er1
>&5
1813 mv -f conftest.er1 conftest.err
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; } && {
1817 test -z "$ac_cxx_werror_flag" ||
1818 test ! -s conftest.err
1819 } && test -s conftest.
$ac_objext; then :
1822 $as_echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.
$ac_ext >&5
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828 as_fn_set_status
$ac_retval
1830 } # ac_fn_cxx_try_compile
1832 # ac_fn_c_try_link LINENO
1833 # -----------------------
1834 # Try to link conftest.$ac_ext, and return whether this succeeded.
1837 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1838 rm -f conftest.
$ac_objext conftest
$ac_exeext
1839 if { { ac_try
="$ac_link"
1841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_link") 2>conftest.err
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && {
1855 test -z "$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest$ac_exeext && {
1858 test "$cross_compiling" = yes ||
1859 test -x conftest$ac_exeext
1863 $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1868 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1869 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1870 # interfere with the next link command; also delete a directory that is
1871 # left behind by Apple's compiler. We do this before executing the actions.
1872 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874 as_fn_set_status $ac_retval
1876 } # ac_fn_c_try_link
1878 # ac_fn_c_check_func LINENO FUNC VAR
1879 # ----------------------------------
1880 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1881 ac_fn_c_check_func ()
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if eval \${$3+:} false; then :
1887 $as_echo_n "(cached) " >&6
1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h. */
1891 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1893 #define $2 innocuous_$2
1895 /* System header to define __stub macros and hopefully few prototypes,
1896 which can conflict with char $2 (); below.
1897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1898 <limits.h> exists even on freestanding compilers. */
1901 # include <limits.h>
1903 # include <assert.h>
1908 /* Override any GCC internal prototype to avoid an error.
1909 Use char because int might match the return type of a GCC
1910 builtin and then its argument prototype would still apply. */
1915 /* The GNU C library defines this for functions which it implements
1916 to always fail with ENOSYS. Some functions are actually named
1917 something starting with __ and the normal name is an alias. */
1918 #if defined __stub_$2 || defined __stub___$2
1930 if ac_fn_c_try_link "$LINENO"; then :
1935 rm -f core conftest.err conftest.$ac_objext \
1936 conftest$ac_exeext conftest.$ac_ext
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 $as_echo "$ac_res" >&6; }
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943 } # ac_fn_c_check_func
1945 # ac_fn_cxx_try_cpp LINENO
1946 # ------------------------
1947 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1948 ac_fn_cxx_try_cpp ()
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 if { { ac_try="$ac_cpp conftest.$ac_ext"
1953 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1954 *) ac_try_echo
=$ac_try;;
1956 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1957 $as_echo "$ac_try_echo"; } >&5
1958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1960 if test -s conftest.err
; then
1961 grep -v '^ *+' conftest.err
>conftest.er1
1962 cat conftest.er1
>&5
1963 mv -f conftest.er1 conftest.err
1965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966 test $ac_status = 0; } > conftest.i
&& {
1967 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1968 test ! -s conftest.err
1972 $as_echo "$as_me: failed program was:" >&5
1973 sed 's/^/| /' conftest.
$ac_ext >&5
1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978 as_fn_set_status
$ac_retval
1980 } # ac_fn_cxx_try_cpp
1982 # ac_fn_cxx_try_link LINENO
1983 # -------------------------
1984 # Try to link conftest.$ac_ext, and return whether this succeeded.
1985 ac_fn_cxx_try_link
()
1987 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1988 rm -f conftest.
$ac_objext conftest
$ac_exeext
1989 if { { ac_try
="$ac_link"
1991 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1992 *) ac_try_echo=$ac_try;;
1994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995 $as_echo "$ac_try_echo"; } >&5
1996 (eval "$ac_link") 2>conftest.err
1998 if test -s conftest.err; then
1999 grep -v '^ *+' conftest.err >conftest.er1
2000 cat conftest.er1 >&5
2001 mv -f conftest.er1 conftest.err
2003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2004 test $ac_status = 0; } && {
2005 test -z "$ac_cxx_werror_flag" ||
2006 test ! -s conftest.err
2007 } && test -s conftest$ac_exeext && {
2008 test "$cross_compiling" = yes ||
2009 test -x conftest$ac_exeext
2013 $as_echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2018 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2019 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2020 # interfere with the next link command; also delete a directory that is
2021 # left behind by Apple's compiler. We do this before executing the actions.
2022 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024 as_fn_set_status $ac_retval
2026 } # ac_fn_cxx_try_link
2028 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2029 # ---------------------------------------------
2030 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2032 ac_fn_c_check_decl ()
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2036 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2038 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2039 if eval \${$3+:} false; then :
2040 $as_echo_n "(cached) " >&6
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2048 #ifndef $as_decl_name
2050 (void) $as_decl_use;
2052 (void) $as_decl_name;
2060 if ac_fn_c_try_compile "$LINENO"; then :
2065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2069 $as_echo "$ac_res" >&6; }
2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072 } # ac_fn_c_check_decl
2073 cat >config.log <<_ACEOF
2074 This file contains any messages produced by compilers while
2075 running configure, to aid debugging if configure makes a mistake.
2077 It was created by gprofng $as_me 2.38.50, which was
2078 generated by GNU Autoconf 2.69. Invocation command line was
2090 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2091 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2092 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2093 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2094 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2096 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2097 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2099 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2100 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2101 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2102 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2103 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2104 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2105 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2113 test -z "$as_dir" && as_dir=.
2114 $as_echo "PATH: $as_dir"
2130 # Keep a trace of the command line.
2131 # Strip out --no-create and --no-recursion so they do not pile up.
2132 # Strip out --silent because we don't want to record it for future runs.
2133 # Also quote any args containing shell meta-characters.
2134 # Make two passes to allow for proper duplicate-argument suppression.
2138 ac_must_keep_next=false
2144 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2146 | -silent | --silent | --silen | --sile | --sil)
2149 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2152 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2154 as_fn_append ac_configure_args1 " '$ac_arg'"
2155 if test $ac_must_keep_next = true; then
2156 ac_must_keep_next=false # Got value, back to normal.
2159 *=* | --config-cache | -C | -disable-* | --disable-* \
2160 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2161 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2162 | -with-* | --with-* | -without-* | --without-* | --x)
2163 case "$ac_configure_args0 " in
2164 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2167 -* ) ac_must_keep_next=true ;;
2170 as_fn_append ac_configure_args " '$ac_arg'"
2175 { ac_configure_args0=; unset ac_configure_args0;}
2176 { ac_configure_args1=; unset ac_configure_args1;}
2178 # When interrupted or exit'd, cleanup temporary files, and complete
2179 # config.log. We remove comments because anyway the quotes in there
2180 # would cause problems or look ugly.
2181 # WARNING: Use '\'' to represent an apostrophe within the trap.
2182 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2183 trap 'exit_status=$?
2184 # Save into config.log some information that might help in debugging.
2188 $as_echo "## ---------------- ##
2189 ## Cache variables. ##
2190 ## ---------------- ##"
2192 # The following way of writing the cache mishandles newlines in values,
2194 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2195 eval ac_val=\$$ac_var
2199 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2200 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2203 _ | IFS | as_nl) ;; #(
2204 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2205 *) { eval $ac_var=; unset $ac_var;} ;;
2210 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2211 *${as_nl}ac_space=\ *)
2213 "s/'\''/'\''\\\\'\'''\''/g;
2214 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2217 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2224 $as_echo "## ----------------- ##
2225 ## Output variables. ##
2226 ## ----------------- ##"
2228 for ac_var in $ac_subst_vars
2230 eval ac_val=\$$ac_var
2232 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2234 $as_echo "$ac_var='\''$ac_val'\''"
2238 if test -n "$ac_subst_files"; then
2239 $as_echo "## ------------------- ##
2240 ## File substitutions. ##
2241 ## ------------------- ##"
2243 for ac_var in $ac_subst_files
2245 eval ac_val=\$$ac_var
2247 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2249 $as_echo "$ac_var='\''$ac_val'\''"
2254 if test -s confdefs.h; then
2255 $as_echo "## ----------- ##
2262 test "$ac_signal" != 0 &&
2263 $as_echo "$as_me: caught signal $ac_signal"
2264 $as_echo "$as_me: exit $exit_status"
2266 rm -f core *.core core.conftest.* &&
2267 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2270 for ac_signal in 1 2 13 15; do
2271 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2275 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2276 rm -f -r conftest* confdefs.h
2278 $as_echo "/* confdefs.h */" > confdefs.h
2280 # Predefined preprocessor variables.
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_NAME "$PACKAGE_NAME"
2286 cat >>confdefs.h <<_ACEOF
2287 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2290 cat >>confdefs.h <<_ACEOF
2291 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2294 cat >>confdefs.h <<_ACEOF
2295 #define PACKAGE_STRING "$PACKAGE_STRING"
2298 cat >>confdefs.h <<_ACEOF
2299 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2302 cat >>confdefs.h <<_ACEOF
2303 #define PACKAGE_URL "$PACKAGE_URL"
2307 # Let the site file select an alternate cache file if it wants to.
2308 # Prefer an explicitly selected file to automatically selected ones.
2311 if test -n "$CONFIG_SITE"; then
2312 # We do not want a PATH search for config.site.
2313 case $CONFIG_SITE in #((
2314 -*) ac_site_file1=./$CONFIG_SITE;;
2315 */*) ac_site_file1=$CONFIG_SITE;;
2316 *) ac_site_file1=./$CONFIG_SITE;;
2318 elif test "x$prefix" != xNONE; then
2319 ac_site_file1=$prefix/share/config.site
2320 ac_site_file2=$prefix/etc/config.site
2322 ac_site_file1=$ac_default_prefix/share/config.site
2323 ac_site_file2=$ac_default_prefix/etc/config.site
2325 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2327 test "x$ac_site_file" = xNONE && continue
2328 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2330 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2331 sed 's/^/| /' "$ac_site_file" >&5
2333 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2335 as_fn_error $? "failed to load site
script $ac_site_file
2336 See \
`config.log' for more details" "$LINENO" 5; }
2340 if test -r "$cache_file"; then
2341 # Some versions of bash will fail to source /dev/null (special files
2342 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2343 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2345 $as_echo "$as_me: loading cache $cache_file" >&6;}
2347 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2348 *) . "./$cache_file";;
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2353 $as_echo "$as_me: creating cache $cache_file" >&6;}
2357 # Check that the precious variables saved in the cache have kept the same
2359 ac_cache_corrupted=false
2360 for ac_var in $ac_precious_vars; do
2361 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2362 eval ac_new_set=\$ac_env_${ac_var}_set
2363 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2364 eval ac_new_val=\$ac_env_${ac_var}_value
2365 case $ac_old_set,$ac_new_set in
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2368 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2369 ac_cache_corrupted=: ;;
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2372 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2373 ac_cache_corrupted=: ;;
2376 if test "x$ac_old_val" != "x$ac_new_val"; then
2377 # differences in whitespace do not lead to failure.
2378 ac_old_val_w=`echo x
$ac_old_val`
2379 ac_new_val_w=`echo x
$ac_new_val`
2380 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2382 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2383 ac_cache_corrupted=:
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2386 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2387 eval $ac_var=\$ac_old_val
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2390 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2392 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2395 # Pass precious variables to config.status.
2396 if test "$ac_new_set" = set; then
2398 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2399 *) ac_arg=$ac_var=$ac_new_val ;;
2401 case " $ac_configure_args " in
2402 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2403 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2407 if $ac_cache_corrupted; then
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2411 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2412 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2414 ## -------------------- ##
2415 ## Main body of script. ##
2416 ## -------------------- ##
2419 ac_cpp='$CPP $CPPFLAGS'
2420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2426 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2427 if test -f "$ac_dir/install-sh"; then
2429 ac_install_sh="$ac_aux_dir/install-sh -c"
2431 elif test -f "$ac_dir/install.sh"; then
2433 ac_install_sh="$ac_aux_dir/install.sh -c"
2435 elif test -f "$ac_dir/shtool"; then
2437 ac_install_sh="$ac_aux_dir/shtool install -c"
2441 if test -z "$ac_aux_dir"; then
2442 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2445 # These three variables are undocumented and unsupported,
2446 # and are intended to be withdrawn in a future Autoconf release.
2447 # They can cause serious problems if a builder's source tree is in a directory
2448 # whose full name contains unusual characters.
2449 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2450 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2451 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2454 # Make sure we can run config.sub.
2455 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2456 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2459 $as_echo_n "checking build system type... " >&6; }
2460 if ${ac_cv_build+:} false; then :
2461 $as_echo_n "(cached) " >&6
2463 ac_build_alias=$build_alias
2464 test "x$ac_build_alias" = x &&
2465 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2466 test "x$ac_build_alias" = x &&
2467 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2468 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2469 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2473 $as_echo "$ac_cv_build" >&6; }
2474 case $ac_cv_build in
2476 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2479 ac_save_IFS=$IFS; IFS='-'
2485 # Remember, the first character of IFS is used to create $*,
2486 # except with old shells:
2489 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2493 $as_echo_n "checking host system type... " >&6; }
2494 if ${ac_cv_host+:} false; then :
2495 $as_echo_n "(cached) " >&6
2497 if test "x$host_alias" = x; then
2498 ac_cv_host=$ac_cv_build
2500 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2501 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2506 $as_echo "$ac_cv_host" >&6; }
2509 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2512 ac_save_IFS=$IFS; IFS='-'
2518 # Remember, the first character of IFS is used to create $*,
2519 # except with old shells:
2522 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2526 $as_echo_n "checking target system type... " >&6; }
2527 if ${ac_cv_target+:} false; then :
2528 $as_echo_n "(cached) " >&6
2530 if test "x$target_alias" = x; then
2531 ac_cv_target=$ac_cv_host
2533 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2534 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2539 $as_echo "$ac_cv_target" >&6; }
2540 case $ac_cv_target in
2542 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2544 target=$ac_cv_target
2545 ac_save_IFS=$IFS; IFS='-'
2551 # Remember, the first character of IFS is used to create $*,
2552 # except with old shells:
2555 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2558 # The aliases save the names the user supplied, while $host etc.
2559 # will get canonicalized.
2560 test -n "$target_alias" &&
2561 test "$program_prefix$program_suffix$program_transform_name" = \
2563 program_prefix=${target_alias}-
2564 am__api_version='1.15'
2566 # Find a good install program. We prefer a C program (faster),
2567 # so one script is as good as another. But avoid the broken or
2568 # incompatible versions:
2569 # SysV /etc/install, /usr/sbin/install
2570 # SunOS /usr/etc/install
2571 # IRIX /sbin/install
2573 # AmigaOS /C/install, which installs bootblocks on floppy discs
2574 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2575 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2576 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2577 # OS/2's system install, which has a completely different semantic
2578 # ./install, which can be erroneously created by make from ./install.sh.
2579 # Reject install programs that cannot install multiple files.
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2581 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2582 if test -z "$INSTALL"; then
2583 if ${ac_cv_path_install+:} false; then :
2584 $as_echo_n "(cached) " >&6
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 test -z "$as_dir" && as_dir=.
2591 # Account for people who put trailing slashes in PATH elements.
2592 case $as_dir/ in #((
2593 ./ | .// | /[cC]/* | \
2594 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2595 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2598 # OSF1 and SCO ODT 3.0 have their own names for install.
2599 # Don't use installbsd from OSF since it installs stuff as root
2601 for ac_prog in ginstall scoinst install; do
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2604 if test $ac_prog = install &&
2605 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2606 # AIX install. It has an incompatible calling convention.
2608 elif test $ac_prog = install &&
2609 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2610 # program-specific install script used by HP pwplus--don't use.
2613 rm -rf conftest.one conftest.two conftest.dir
2614 echo one > conftest.one
2615 echo two > conftest.two
2617 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2618 test -s conftest.one && test -s conftest.two &&
2619 test -s conftest.dir/conftest.one &&
2620 test -s conftest.dir/conftest.two
2622 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2635 rm -rf conftest.one conftest.two conftest.dir
2638 if test "${ac_cv_path_install+set}" = set; then
2639 INSTALL=$ac_cv_path_install
2641 # As a last resort, use the slow shell script. Don't cache a
2642 # value for INSTALL within a source directory, because that will
2643 # break other packages using the cache if that directory is
2644 # removed, or if the value is a relative name.
2645 INSTALL=$ac_install_sh
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2649 $as_echo "$INSTALL" >&6; }
2651 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2652 # It thinks the first close brace ends the variable substitution.
2653 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2655 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2657 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2660 $as_echo_n "checking whether build environment is sane... " >&6; }
2661 # Reject unsafe characters in $srcdir or the absolute working directory
2662 # name. Accept space and tab only in the latter.
2666 *[\\\"\#\$\&\'\`$am_lf]*)
2667 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2670 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2671 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2674 # Do 'set' in a subshell so we don't clobber the current shell's
2675 # arguments. Must try -L first in case configure is actually a
2676 # symlink; some systems play weird games with the mod time of symlinks
2677 # (eg FreeBSD returns the mod time of the symlink's containing
2681 for am_try
in 1 2; do
2682 echo "timestamp, slept: $am_has_slept" > conftest.
file
2683 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2684 if test "$*" = "X"; then
2686 set X
`ls -t "$srcdir/configure" conftest.file`
2688 if test "$*" != "X $srcdir/configure conftest.file" \
2689 && test "$*" != "X conftest.file $srcdir/configure"; then
2691 # If neither matched, then we have a broken ls. This can happen
2692 # if, for instance, CONFIG_SHELL is bash and it inherits a
2693 # broken ls alias from the environment. This has actually
2694 # happened. Such a system could not be considered "sane".
2695 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2696 alias in your environment" "$LINENO" 5
2698 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2705 test "$2" = conftest.
file
2711 as_fn_error $?
"newly created file is older than distributed files!
2712 Check your system clock" "$LINENO" 5
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2715 $as_echo "yes" >&6; }
2716 # If we didn't sleep, we still need to ensure time stamps of config.status and
2717 # generated files are strictly newer.
2719 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2726 test "$program_prefix" != NONE
&&
2727 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2728 # Use a double $ so make ignores it.
2729 test "$program_suffix" != NONE
&&
2730 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2731 # Double any \ or $.
2732 # By default was `s,x,x', remove it if useless.
2733 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2734 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2736 # Expand $ac_aux_dir to an absolute path.
2737 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2739 if test x
"${MISSING+set}" != xset
; then
2742 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2744 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2747 # Use eval to expand $SHELL
2748 if eval "$MISSING --is-lightweight"; then
2749 am_missing_run
="$MISSING "
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2753 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2756 if test x
"${install_sh+set}" != xset
; then
2759 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2761 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2765 # Installed binaries are usually stripped using 'strip' when the user
2766 # run "make install-strip". However 'strip' might not be the right
2767 # tool to use in cross-compilation environments, therefore Automake
2768 # will honor the 'STRIP' environment variable to overrule this program.
2769 if test "$cross_compiling" != no
; then
2770 if test -n "$ac_tool_prefix"; then
2771 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2772 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2774 $as_echo_n "checking for $ac_word... " >&6; }
2775 if ${ac_cv_prog_STRIP+:} false
; then :
2776 $as_echo_n "(cached) " >&6
2778 if test -n "$STRIP"; then
2779 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2781 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2785 test -z "$as_dir" && as_dir
=.
2786 for ac_exec_ext
in '' $ac_executable_extensions; do
2787 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2788 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 STRIP
=$ac_cv_prog_STRIP
2799 if test -n "$STRIP"; then
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2801 $as_echo "$STRIP" >&6; }
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804 $as_echo "no" >&6; }
2809 if test -z "$ac_cv_prog_STRIP"; then
2811 # Extract the first word of "strip", so it can be a program name with args.
2812 set dummy strip
; ac_word
=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
2816 $as_echo_n "(cached) " >&6
2818 if test -n "$ac_ct_STRIP"; then
2819 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2821 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2825 test -z "$as_dir" && as_dir
=.
2826 for ac_exec_ext
in '' $ac_executable_extensions; do
2827 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2828 ac_cv_prog_ac_ct_STRIP
="strip"
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2839 if test -n "$ac_ct_STRIP"; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2841 $as_echo "$ac_ct_STRIP" >&6; }
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2847 if test "x$ac_ct_STRIP" = x
; then
2850 case $cross_compiling:$ac_tool_warned in
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2854 ac_tool_warned
=yes ;;
2859 STRIP
="$ac_cv_prog_STRIP"
2863 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2866 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2867 if test -z "$MKDIR_P"; then
2868 if ${ac_cv_path_mkdir+:} false
; then :
2869 $as_echo_n "(cached) " >&6
2871 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2872 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2875 test -z "$as_dir" && as_dir
=.
2876 for ac_prog
in mkdir gmkdir
; do
2877 for ac_exec_ext
in '' $ac_executable_extensions; do
2878 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
2879 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2880 'mkdir (GNU coreutils) '* | \
2881 'mkdir (coreutils) '* | \
2882 'mkdir (fileutils) '4.1*)
2883 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2893 test -d .
/--version && rmdir .
/--version
2894 if test "${ac_cv_path_mkdir+set}" = set; then
2895 MKDIR_P
="$ac_cv_path_mkdir -p"
2897 # As a last resort, use the slow shell script. Don't cache a
2898 # value for MKDIR_P within a source directory, because that will
2899 # break other packages using the cache if that directory is
2900 # removed, or if the value is a relative name.
2901 MKDIR_P
="$ac_install_sh -d"
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2905 $as_echo "$MKDIR_P" >&6; }
2907 for ac_prog
in gawk mawk nawk
awk
2909 # Extract the first word of "$ac_prog", so it can be a program name with args.
2910 set dummy
$ac_prog; ac_word
=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if ${ac_cv_prog_AWK+:} false
; then :
2914 $as_echo_n "(cached) " >&6
2916 if test -n "$AWK"; then
2917 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2919 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2923 test -z "$as_dir" && as_dir
=.
2924 for ac_exec_ext
in '' $ac_executable_extensions; do
2925 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2926 ac_cv_prog_AWK
="$ac_prog"
2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 if test -n "$AWK"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2939 $as_echo "$AWK" >&6; }
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2946 test -n "$AWK" && break
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2950 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2952 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2953 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
2954 $as_echo_n "(cached) " >&6
2956 cat >conftest.
make <<\_ACEOF
2959 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2961 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2962 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2964 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2966 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2970 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2972 $as_echo "yes" >&6; }
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2977 SET_MAKE
="MAKE=${MAKE-make}"
2980 rm -rf .tst
2>/dev
/null
2981 mkdir .tst
2>/dev
/null
2982 if test -d .tst
; then
2987 rmdir .tst
2>/dev
/null
2989 # Check whether --enable-silent-rules was given.
2990 if test "${enable_silent_rules+set}" = set; then :
2991 enableval
=$enable_silent_rules;
2994 case $enable_silent_rules in # (((
2995 yes) AM_DEFAULT_VERBOSITY
=0;;
2996 no
) AM_DEFAULT_VERBOSITY
=1;;
2997 *) AM_DEFAULT_VERBOSITY
=1;;
2999 am_make
=${MAKE-make}
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3001 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3002 if ${am_cv_make_support_nested_variables+:} false
; then :
3003 $as_echo_n "(cached) " >&6
3005 if $as_echo 'TRUE=$(BAR$(V))
3011 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3012 am_cv_make_support_nested_variables
=yes
3014 am_cv_make_support_nested_variables
=no
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3018 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3019 if test $am_cv_make_support_nested_variables = yes; then
3021 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3023 AM_V
=$AM_DEFAULT_VERBOSITY
3024 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3028 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3029 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3030 # is not polluted with repeated "-I."
3031 am__isrc
=' -I$(srcdir)'
3032 # test to see if srcdir already configured
3033 if test -f $srcdir/config.status
; then
3034 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3038 # test whether we have cygpath
3039 if test -z "$CYGPATH_W"; then
3040 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3041 CYGPATH_W
='cygpath -w'
3048 # Define the identity of the package.
3053 cat >>confdefs.h
<<_ACEOF
3054 #define PACKAGE "$PACKAGE"
3058 cat >>confdefs.h
<<_ACEOF
3059 #define VERSION "$VERSION"
3062 # Some tools Automake needs.
3064 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3067 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3070 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3073 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3076 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3078 # For better backward compatibility. To be removed once Automake 1.9.x
3079 # dies out for good. For more background, see:
3080 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3081 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3082 mkdir_p
='$(MKDIR_P)'
3084 # We need awk for the "check" target (and possibly the TAP driver). The
3085 # system "awk" is bad on some platforms.
3086 # Always define AMTAR for backward compatibility. Yes, it's still used
3087 # in the wild :-( We should find a proper way to deprecate it ...
3091 # We'll loop over all known methods to create a tar archive until one works.
3092 _am_tools
='gnutar pax cpio none'
3094 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3101 # POSIX will say in a future version that running "rm -f" with no argument
3102 # is OK; and we want to be able to make that assumption in our Makefile
3103 # recipes. So use an aggressive probe to check that the usage we want is
3104 # actually supported "in the wild" to an acceptable degree.
3105 # See automake bug#10828.
3106 # To make any issue more visible, cause the running configure to be aborted
3107 # by default if the 'rm' program in use doesn't match our expectations; the
3108 # user can still override this though.
3109 if rm -f && rm -fr && rm -rf; then : OK
; else
3113 Your 'rm' program seems unable to run without file operands specified
3114 on the command line, even when the '-f' option is present. This is contrary
3115 to the behaviour of most rm programs out there, and not conforming with
3116 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3118 Please tell bug-automake@gnu.org about your system, including the value
3119 of your $PATH and any error possibly output before this message. This
3120 can help us improve future automake versions.
3123 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3124 echo 'Configuration will proceed anyway, since you have set the' >&2
3125 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3129 Aborting the configuration process, to ensure you take notice of the issue.
3131 You can download and install GNU coreutils to get an 'rm' implementation
3132 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3134 If you want to complete the configuration process using your problematic
3135 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3136 to "yes", and re-run configure.
3139 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3145 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3146 # Check whether --enable-maintainer-mode was given.
3147 if test "${enable_maintainer_mode+set}" = set; then :
3148 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
3150 USE_MAINTAINER_MODE
=no
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3154 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3155 if test $USE_MAINTAINER_MODE = yes; then
3156 MAINTAINER_MODE_TRUE
=
3157 MAINTAINER_MODE_FALSE
='#'
3159 MAINTAINER_MODE_TRUE
='#'
3160 MAINTAINER_MODE_FALSE
=
3163 MAINT
=$MAINTAINER_MODE_TRUE
3167 DEPDIR
="${am__leading_dot}deps"
3169 ac_config_commands
="$ac_config_commands depfiles"
3172 am_make
=${MAKE-make}
3173 cat > confinc
<< 'END'
3175 @
echo this is the am__doit target
3178 # If we don't find an include directive, just comment out the code.
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3180 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3184 # First try GNU make style include.
3185 echo "include confinc" > confmf
3186 # Ignore all kinds of additional output from 'make'.
3187 case `$am_make -s -f confmf 2> /dev/null` in #(
3188 *the\ am__doit\ target
*)
3194 # Now try BSD make style include.
3195 if test "$am__include" = "#"; then
3196 echo '.include "confinc"' > confmf
3197 case `$am_make -s -f confmf 2> /dev/null` in #(
3198 *the\ am__doit\ target
*)
3199 am__include
=.include
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3208 $as_echo "$_am_result" >&6; }
3209 rm -f confinc confmf
3211 # Check whether --enable-dependency-tracking was given.
3212 if test "${enable_dependency_tracking+set}" = set; then :
3213 enableval
=$enable_dependency_tracking;
3216 if test "x$enable_dependency_tracking" != xno
; then
3217 am_depcomp
="$ac_aux_dir/depcomp"
3221 if test "x$enable_dependency_tracking" != xno; then
3231 ac_cpp
='$CPP $CPPFLAGS'
3232 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3233 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3234 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3235 if test -n "$ac_tool_prefix"; then
3236 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3237 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if ${ac_cv_prog_CC+:} false
; then :
3241 $as_echo_n "(cached) " >&6
3243 if test -n "$CC"; then
3244 ac_cv_prog_CC
="$CC" # Let the user override the test.
3246 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3250 test -z "$as_dir" && as_dir
=.
3251 for ac_exec_ext
in '' $ac_executable_extensions; do
3252 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3253 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 if test -n "$CC"; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3266 $as_echo "$CC" >&6; }
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3274 if test -z "$ac_cv_prog_CC"; then
3276 # Extract the first word of "gcc", so it can be a program name with args.
3277 set dummy gcc
; ac_word
=$2
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3279 $as_echo_n "checking for $ac_word... " >&6; }
3280 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3281 $as_echo_n "(cached) " >&6
3283 if test -n "$ac_ct_CC"; then
3284 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3286 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3290 test -z "$as_dir" && as_dir
=.
3291 for ac_exec_ext
in '' $ac_executable_extensions; do
3292 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3293 ac_cv_prog_ac_ct_CC
="gcc"
3294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3304 if test -n "$ac_ct_CC"; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3306 $as_echo "$ac_ct_CC" >&6; }
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 $as_echo "no" >&6; }
3312 if test "x$ac_ct_CC" = x
; then
3315 case $cross_compiling:$ac_tool_warned in
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3319 ac_tool_warned
=yes ;;
3327 if test -z "$CC"; then
3328 if test -n "$ac_tool_prefix"; then
3329 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3330 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332 $as_echo_n "checking for $ac_word... " >&6; }
3333 if ${ac_cv_prog_CC+:} false
; then :
3334 $as_echo_n "(cached) " >&6
3336 if test -n "$CC"; then
3337 ac_cv_prog_CC
="$CC" # Let the user override the test.
3339 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3343 test -z "$as_dir" && as_dir
=.
3344 for ac_exec_ext
in '' $ac_executable_extensions; do
3345 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3346 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3357 if test -n "$CC"; then
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3359 $as_echo "$CC" >&6; }
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3368 if test -z "$CC"; then
3369 # Extract the first word of "cc", so it can be a program name with args.
3370 set dummy cc
; ac_word
=$2
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3372 $as_echo_n "checking for $ac_word... " >&6; }
3373 if ${ac_cv_prog_CC+:} false
; then :
3374 $as_echo_n "(cached) " >&6
3376 if test -n "$CC"; then
3377 ac_cv_prog_CC
="$CC" # Let the user override the test.
3380 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3384 test -z "$as_dir" && as_dir
=.
3385 for ac_exec_ext
in '' $ac_executable_extensions; do
3386 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3387 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3388 ac_prog_rejected
=yes
3392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 if test $ac_prog_rejected = yes; then
3400 # We found a bogon in the path, so make sure we never use it.
3401 set dummy
$ac_cv_prog_CC
3403 if test $# != 0; then
3404 # We chose a different compiler from the bogus one.
3405 # However, it has the same basename, so the bogon will be chosen
3406 # first if we set CC to just the basename; use the full file name.
3408 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3414 if test -n "$CC"; then
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3416 $as_echo "$CC" >&6; }
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419 $as_echo "no" >&6; }
3424 if test -z "$CC"; then
3425 if test -n "$ac_tool_prefix"; then
3426 for ac_prog
in cl.exe
3428 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3429 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3431 $as_echo_n "checking for $ac_word... " >&6; }
3432 if ${ac_cv_prog_CC+:} false
; then :
3433 $as_echo_n "(cached) " >&6
3435 if test -n "$CC"; then
3436 ac_cv_prog_CC
="$CC" # Let the user override the test.
3438 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3442 test -z "$as_dir" && as_dir
=.
3443 for ac_exec_ext
in '' $ac_executable_extensions; do
3444 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3445 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 if test -n "$CC"; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3458 $as_echo "$CC" >&6; }
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461 $as_echo "no" >&6; }
3465 test -n "$CC" && break
3468 if test -z "$CC"; then
3470 for ac_prog
in cl.exe
3472 # Extract the first word of "$ac_prog", so it can be a program name with args.
3473 set dummy
$ac_prog; ac_word
=$2
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3475 $as_echo_n "checking for $ac_word... " >&6; }
3476 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3477 $as_echo_n "(cached) " >&6
3479 if test -n "$ac_ct_CC"; then
3480 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3482 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3486 test -z "$as_dir" && as_dir
=.
3487 for ac_exec_ext
in '' $ac_executable_extensions; do
3488 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3489 ac_cv_prog_ac_ct_CC
="$ac_prog"
3490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3499 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3500 if test -n "$ac_ct_CC"; then
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3502 $as_echo "$ac_ct_CC" >&6; }
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
3509 test -n "$ac_ct_CC" && break
3512 if test "x$ac_ct_CC" = x
; then
3515 case $cross_compiling:$ac_tool_warned in
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3519 ac_tool_warned
=yes ;;
3528 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3530 as_fn_error $?
"no acceptable C compiler found in \$PATH
3531 See \`config.log' for more details" "$LINENO" 5; }
3533 # Provide some information about the compiler.
3534 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3537 for ac_option
in --version -v -V -qversion; do
3538 { { ac_try
="$ac_compiler $ac_option >&5"
3540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3544 $as_echo "$ac_try_echo"; } >&5
3545 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3547 if test -s conftest.err; then
3549 ... rest of stderr output deleted ...
3550 10q' conftest.err >conftest.er1
3551 cat conftest.er1 >&5
3553 rm -f conftest.er1 conftest.err
3554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3555 test $ac_status = 0; }
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h. */
3569 ac_clean_files_save=$ac_clean_files
3570 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3571 # Try to create an executable without -o first, disregard a.out.
3572 # It will help us diagnose broken compilers, and finding out an intuition
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3575 $as_echo_n "checking whether the C compiler works... " >&6; }
3576 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3578 # The possible output files:
3579 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3582 for ac_file in $ac_files
3585 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3586 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3591 if { { ac_try="$ac_link_default"
3593 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3594 *) ac_try_echo
=$ac_try;;
3596 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3597 $as_echo "$ac_try_echo"; } >&5
3598 (eval "$ac_link_default") 2>&5
3600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3601 test $ac_status = 0; }; then :
3602 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3603 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3604 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3605 # so that the user can short-circuit this test for compilers unknown to
3607 for ac_file
in $ac_files ''
3609 test -f "$ac_file" ||
continue
3611 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3614 # We found the default executable, but exeext='' is most
3618 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3620 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3622 # We set ac_cv_exeext here because the later test for it is not
3623 # safe: cross compilers may not add the suffix if given an `-o'
3624 # argument, so we may need to know it at that point already.
3625 # Even if this section looks crufty: it has the advantage of
3632 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3637 if test -z "$ac_file"; then :
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3639 $as_echo "no" >&6; }
3640 $as_echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.
$ac_ext >&5
3643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3645 as_fn_error
77 "C compiler cannot create executables
3646 See \`config.log' for more details" "$LINENO" 5; }
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3649 $as_echo "yes" >&6; }
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3652 $as_echo_n "checking for C compiler default output file name... " >&6; }
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3654 $as_echo "$ac_file" >&6; }
3655 ac_exeext
=$ac_cv_exeext
3657 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3658 ac_clean_files
=$ac_clean_files_save
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3660 $as_echo_n "checking for suffix of executables... " >&6; }
3661 if { { ac_try
="$ac_link"
3663 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3667 $as_echo "$ac_try_echo"; } >&5
3668 (eval "$ac_link") 2>&5
3670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3671 test $ac_status = 0; }; then :
3672 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3673 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3674 # work properly (i.e., refer to `conftest.exe'), while it won't with
3676 for ac_file
in conftest.exe conftest conftest.
*; do
3677 test -f "$ac_file" ||
continue
3679 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3680 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3688 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3689 See \`config.log' for more details" "$LINENO" 5; }
3691 rm -f conftest conftest
$ac_cv_exeext
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3693 $as_echo "$ac_cv_exeext" >&6; }
3695 rm -f conftest.
$ac_ext
3696 EXEEXT
=$ac_cv_exeext
3698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h. */
3704 FILE *f = fopen ("conftest.out", "w");
3705 return ferror (f) || fclose (f) != 0;
3711 ac_clean_files
="$ac_clean_files conftest.out"
3712 # Check that the compiler produces executables we can run. If not, either
3713 # the compiler is broken, or we cross compile.
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3715 $as_echo_n "checking whether we are cross compiling... " >&6; }
3716 if test "$cross_compiling" != yes; then
3717 { { ac_try
="$ac_link"
3719 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3723 $as_echo "$ac_try_echo"; } >&5
3724 (eval "$ac_link") 2>&5
3726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3727 test $ac_status = 0; }
3728 if { ac_try='./conftest$ac_cv_exeext'
3729 { { case "(($ac_try" in
3730 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3731 *) ac_try_echo
=$ac_try;;
3733 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3734 $as_echo "$ac_try_echo"; } >&5
3735 (eval "$ac_try") 2>&5
3737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3738 test $ac_status = 0; }; }; then
3741 if test "$cross_compiling" = maybe
; then
3744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3746 as_fn_error $?
"cannot run C compiled programs.
3747 If you meant to cross compile, use \`--host'.
3748 See \`config.log' for more details" "$LINENO" 5; }
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3753 $as_echo "$cross_compiling" >&6; }
3755 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3756 ac_clean_files
=$ac_clean_files_save
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3758 $as_echo_n "checking for suffix of object files... " >&6; }
3759 if ${ac_cv_objext+:} false
; then :
3760 $as_echo_n "(cached) " >&6
3762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3773 rm -f conftest.o conftest.obj
3774 if { { ac_try
="$ac_compile"
3776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3780 $as_echo "$ac_try_echo"; } >&5
3781 (eval "$ac_compile") 2>&5
3783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3784 test $ac_status = 0; }; then :
3785 for ac_file in conftest.o conftest.obj conftest.*; do
3786 test -f "$ac_file" || continue;
3788 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3789 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3794 $as_echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.$ac_ext >&5
3797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3799 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3800 See \
`config.log' for more details" "$LINENO" 5; }
3802 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3805 $as_echo "$ac_cv_objext" >&6; }
3806 OBJEXT=$ac_cv_objext
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3809 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3810 if ${ac_cv_c_compiler_gnu+:} false; then :
3811 $as_echo_n "(cached) " >&6
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3827 if ac_fn_c_try_compile "$LINENO"; then :
3832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3833 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3837 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3838 if test $ac_compiler_gnu = yes; then
3843 ac_test_CFLAGS=${CFLAGS+set}
3844 ac_save_CFLAGS=$CFLAGS
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3846 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3847 if ${ac_cv_prog_cc_g+:} false; then :
3848 $as_echo_n "(cached) " >&6
3850 ac_save_c_werror_flag=$ac_c_werror_flag
3851 ac_c_werror_flag=yes
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3865 if ac_fn_c_try_compile "$LINENO"; then :
3869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3870 /* end confdefs.h. */
3880 if ac_fn_c_try_compile "$LINENO"; then :
3883 ac_c_werror_flag=$ac_save_c_werror_flag
3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3886 /* end confdefs.h. */
3896 if ac_fn_c_try_compile "$LINENO"; then :
3899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3904 ac_c_werror_flag=$ac_save_c_werror_flag
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3907 $as_echo "$ac_cv_prog_cc_g" >&6; }
3908 if test "$ac_test_CFLAGS" = set; then
3909 CFLAGS=$ac_save_CFLAGS
3910 elif test $ac_cv_prog_cc_g = yes; then
3911 if test "$GCC" = yes; then
3917 if test "$GCC" = yes; then
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3924 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3925 if ${ac_cv_prog_cc_c89+:} false; then :
3926 $as_echo_n "(cached) " >&6
3928 ac_cv_prog_cc_c89=no
3930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931 /* end confdefs.h. */
3935 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3936 struct buf { int x; };
3937 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3938 static char *e (p, i)
3944 static char *f (char * (*g) (char **, int), char **p, ...)
3949 s = g (p, va_arg (v,int));
3954 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3955 function prototypes and stuff, but not '\xHH' hex character constants.
3956 These don't provoke an error unfortunately, instead are silently treated
3957 as 'x'. The following induces an error, until -std is added to get
3958 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3959 array size at least. It's necessary to write '\x00'==0 to get something
3960 that's true only with -std. */
3961 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3963 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3964 inside strings and character constants. */
3966 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3968 int test (int i, double x);
3969 struct s1 {int (*f) (int a);};
3970 struct s2 {int (*f) (double a);};
3971 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3977 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3982 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3983 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3985 CC="$ac_save_CC $ac_arg"
3986 if ac_fn_c_try_compile "$LINENO"; then :
3987 ac_cv_prog_cc_c89=$ac_arg
3989 rm -f core conftest.err conftest.$ac_objext
3990 test "x$ac_cv_prog_cc_c89" != "xno" && break
3992 rm -f conftest.$ac_ext
3997 case "x$ac_cv_prog_cc_c89" in
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4000 $as_echo "none needed" >&6; } ;;
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4003 $as_echo "unsupported" >&6; } ;;
4005 CC="$CC $ac_cv_prog_cc_c89"
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4007 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4009 if test "x$ac_cv_prog_cc_c89" != xno; then :
4014 ac_cpp='$CPP $CPPFLAGS'
4015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4020 ac_cpp='$CPP $CPPFLAGS'
4021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4025 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4026 if ${am_cv_prog_cc_c_o+:} false; then :
4027 $as_echo_n "(cached) " >&6
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h. */
4040 # Make sure it works both with $CC and with simple cc.
4041 # Following AC_PROG_CC_C_O, we do the test twice because some
4042 # compilers refuse to overwrite an existing .o file with -o,
4043 # though they will create one.
4044 am_cv_prog_cc_c_o=yes
4046 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4047 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); } \
4051 && test -f conftest2.$ac_objext; then
4054 am_cv_prog_cc_c_o=no
4058 rm -f core conftest*
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4062 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4063 if test "$am_cv_prog_cc_c_o" != yes; then
4064 # Losing compiler, so override with the script.
4065 # FIXME: It is wrong to rewrite CC.
4066 # But if we don't then we get into trouble of one sort or another.
4067 # A longer-term fix would be to have automake use am__CC in this case,
4068 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4069 CC="$am_aux_dir/compile $CC"
4072 ac_cpp='$CPP $CPPFLAGS'
4073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4078 depcc="$CC" am_compiler_list=
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4081 $as_echo_n "checking dependency style of $depcc... " >&6; }
4082 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4083 $as_echo_n "(cached) " >&6
4085 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4086 # We make a subdir and do the tests there. Otherwise we can end up
4087 # making bogus files that we don't know about and never remove. For
4088 # instance it was reported that on HP-UX the gcc test will end up
4089 # making a dummy file named 'D' -- because '-MD' means "put the output
4093 # Copy depcomp to subdir because otherwise we won't find it if we're
4094 # using a relative directory.
4095 cp "$am_depcomp" conftest.dir
4097 # We will build objects and dependencies in a subdirectory because
4098 # it helps to detect inapplicable dependency modes. For instance
4099 # both Tru64's cc and ICC support -MD to output dependencies as a
4100 # side effect of compilation, but ICC will put the dependencies in
4101 # the current directory while Tru64 will put them in the object
4105 am_cv_CC_dependencies_compiler_type=none
4106 if test "$am_compiler_list" = ""; then
4107 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4110 case " $depcc " in #(
4111 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4114 for depmode in $am_compiler_list; do
4115 # Setup a source with many dependencies, because some compilers
4116 # like to wrap large dependency lists on column 80 (with \), and
4117 # we should not choose a depcomp mode which is confused by this.
4119 # We need to recreate these files for each test, as the compiler may
4120 # overwrite some of them when testing with obscure command lines.
4121 # This happens at least with the AIX C compiler.
4123 for i in 1 2 3 4 5 6; do
4124 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4125 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4126 # Solaris 10 /bin/sh.
4127 echo '/* dummy */' > sub/conftst$i.h
4129 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4131 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4132 # mode. It turns out that the SunPro C++ compiler does not properly
4133 # handle '-M -o', and we need to detect this. Also, some Intel
4134 # versions had trouble with output in subdirs.
4135 am__obj=sub/conftest.${OBJEXT-o}
4136 am__minus_obj="-o $am__obj"
4139 # This depmode causes a compiler race in universal mode.
4140 test "$am__universal" = false || continue
4143 # After this tag, mechanisms are not by side-effect, so they'll
4144 # only be used when explicitly requested.
4145 if test "x$enable_dependency_tracking" = xyes; then
4151 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4152 # This compiler won't grok '-c -o', but also, the minuso test has
4153 # not run yet. These depmodes are late enough in the game, and
4154 # so weak that their functioning should not be impacted.
4155 am__obj=conftest.${OBJEXT-o}
4160 if depmode=$depmode \
4161 source=sub/conftest.c object=$am__obj \
4162 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4163 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4164 >/dev/null 2>conftest.err &&
4165 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4166 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4167 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4168 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4169 # icc doesn't choke on unknown options, it will just issue warnings
4170 # or remarks (even with -Werror). So we grep stderr for any message
4171 # that says an option was ignored or not supported.
4172 # When given -MP, icc 7.0 and 7.1 complain thusly:
4173 # icc: Command line warning: ignoring option '-M'; no argument required
4174 # The diagnosis changed in icc 8.0:
4175 # icc: Command line remark: option '-MP' not supported
4176 if (grep 'ignoring option' conftest.err ||
4177 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4178 am_cv_CC_dependencies_compiler_type=$depmode
4187 am_cv_CC_dependencies_compiler_type=none
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4192 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4193 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4196 test "x$enable_dependency_tracking" != xno \
4197 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4199 am__fastdepCC_FALSE='#'
4201 am__fastdepCC_TRUE='#'
4202 am__fastdepCC_FALSE=
4208 ac_cpp='$CPP $CPPFLAGS'
4209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4213 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4214 # On Suns, sometimes $CPP names a directory.
4215 if test -n "$CPP" && test -d "$CPP"; then
4218 if test -z "$CPP"; then
4219 if ${ac_cv_prog_CPP+:} false; then :
4220 $as_echo_n "(cached) " >&6
4222 # Double quotes because CPP needs to be expanded
4223 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4226 for ac_c_preproc_warn_flag in '' yes
4228 # Use a header file that comes with gcc, so configuring glibc
4229 # with a fresh cross-compiler works.
4230 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4231 # <limits.h> exists even on freestanding compilers.
4232 # On the NeXT, cc -E runs the code through the compiler's parser,
4233 # not just through cpp. "Syntax error" is here to catch this case.
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4237 # include <limits.h>
4239 # include <assert.h>
4243 if ac_fn_c_try_cpp "$LINENO"; then :
4246 # Broken: fails on valid input.
4249 rm -f conftest.err conftest.i conftest.$ac_ext
4251 # OK, works on sane cases. Now check whether nonexistent headers
4252 # can be detected and how.
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4255 #include <ac_nonexistent.h>
4257 if ac_fn_c_try_cpp "$LINENO"; then :
4258 # Broken: success on invalid input.
4261 # Passes both tests.
4265 rm -f conftest.err conftest.i conftest.$ac_ext
4268 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4269 rm -f conftest.i conftest.err conftest.
$ac_ext
4270 if $ac_preproc_ok; then :
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4283 $as_echo "$CPP" >&6; }
4285 for ac_c_preproc_warn_flag
in '' yes
4287 # Use a header file that comes with gcc, so configuring glibc
4288 # with a fresh cross-compiler works.
4289 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4290 # <limits.h> exists even on freestanding compilers.
4291 # On the NeXT, cc -E runs the code through the compiler's parser,
4292 # not just through cpp. "Syntax error" is here to catch this case.
4293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4294 /* end confdefs.h. */
4296 # include <limits.h>
4298 # include <assert.h>
4302 if ac_fn_c_try_cpp
"$LINENO"; then :
4305 # Broken: fails on valid input.
4308 rm -f conftest.err conftest.i conftest.
$ac_ext
4310 # OK, works on sane cases. Now check whether nonexistent headers
4311 # can be detected and how.
4312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h. */
4314 #include <ac_nonexistent.h>
4316 if ac_fn_c_try_cpp
"$LINENO"; then :
4317 # Broken: success on invalid input.
4320 # Passes both tests.
4324 rm -f conftest.err conftest.i conftest.
$ac_ext
4327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4328 rm -f conftest.i conftest.err conftest.
$ac_ext
4329 if $ac_preproc_ok; then :
4332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4334 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4335 See \`config.log' for more details" "$LINENO" 5; }
4339 ac_cpp
='$CPP $CPPFLAGS'
4340 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4346 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4347 if ${ac_cv_path_GREP+:} false
; then :
4348 $as_echo_n "(cached) " >&6
4350 if test -z "$GREP"; then
4351 ac_path_GREP_found
=false
4352 # Loop through the user's path and test for each of PROGNAME-LIST
4353 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4354 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4357 test -z "$as_dir" && as_dir
=.
4358 for ac_prog
in grep ggrep
; do
4359 for ac_exec_ext
in '' $ac_executable_extensions; do
4360 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4361 as_fn_executable_p
"$ac_path_GREP" ||
continue
4362 # Check for GNU ac_path_GREP and select it if it is found.
4363 # Check for GNU $ac_path_GREP
4364 case `"$ac_path_GREP" --version 2>&1` in
4366 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4369 $as_echo_n 0123456789 >"conftest.in"
4372 cat "conftest.in" "conftest.in" >"conftest.tmp"
4373 mv "conftest.tmp" "conftest.in"
4374 cp "conftest.in" "conftest.nl"
4375 $as_echo 'GREP' >> "conftest.nl"
4376 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4377 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4378 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4379 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4380 # Best one so far, save it but keep looking for a better one
4381 ac_cv_path_GREP
="$ac_path_GREP"
4382 ac_path_GREP_max
=$ac_count
4384 # 10*(2^10) chars as input seems more than enough
4385 test $ac_count -gt 10 && break
4387 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4390 $ac_path_GREP_found && break 3
4395 if test -z "$ac_cv_path_GREP"; then
4396 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4399 ac_cv_path_GREP
=$GREP
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4404 $as_echo "$ac_cv_path_GREP" >&6; }
4405 GREP
="$ac_cv_path_GREP"
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4409 $as_echo_n "checking for egrep... " >&6; }
4410 if ${ac_cv_path_EGREP+:} false
; then :
4411 $as_echo_n "(cached) " >&6
4413 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4414 then ac_cv_path_EGREP
="$GREP -E"
4416 if test -z "$EGREP"; then
4417 ac_path_EGREP_found
=false
4418 # Loop through the user's path and test for each of PROGNAME-LIST
4419 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4420 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4423 test -z "$as_dir" && as_dir
=.
4424 for ac_prog
in egrep; do
4425 for ac_exec_ext
in '' $ac_executable_extensions; do
4426 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4427 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4428 # Check for GNU ac_path_EGREP and select it if it is found.
4429 # Check for GNU $ac_path_EGREP
4430 case `"$ac_path_EGREP" --version 2>&1` in
4432 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4435 $as_echo_n 0123456789 >"conftest.in"
4438 cat "conftest.in" "conftest.in" >"conftest.tmp"
4439 mv "conftest.tmp" "conftest.in"
4440 cp "conftest.in" "conftest.nl"
4441 $as_echo 'EGREP' >> "conftest.nl"
4442 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4443 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4444 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4445 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4446 # Best one so far, save it but keep looking for a better one
4447 ac_cv_path_EGREP
="$ac_path_EGREP"
4448 ac_path_EGREP_max
=$ac_count
4450 # 10*(2^10) chars as input seems more than enough
4451 test $ac_count -gt 10 && break
4453 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4456 $ac_path_EGREP_found && break 3
4461 if test -z "$ac_cv_path_EGREP"; then
4462 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4465 ac_cv_path_EGREP
=$EGREP
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4471 $as_echo "$ac_cv_path_EGREP" >&6; }
4472 EGREP
="$ac_cv_path_EGREP"
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4476 $as_echo_n "checking for ANSI C header files... " >&6; }
4477 if ${ac_cv_header_stdc+:} false
; then :
4478 $as_echo_n "(cached) " >&6
4480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4481 /* end confdefs.h. */
4495 if ac_fn_c_try_compile
"$LINENO"; then :
4496 ac_cv_header_stdc
=yes
4498 ac_cv_header_stdc
=no
4500 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4502 if test $ac_cv_header_stdc = yes; then
4503 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4505 /* end confdefs.h. */
4509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4510 $EGREP "memchr" >/dev
/null
2>&1; then :
4513 ac_cv_header_stdc
=no
4519 if test $ac_cv_header_stdc = yes; then
4520 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h. */
4526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4527 $EGREP "free" >/dev
/null
2>&1; then :
4530 ac_cv_header_stdc
=no
4536 if test $ac_cv_header_stdc = yes; then
4537 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4538 if test "$cross_compiling" = yes; then :
4541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4545 #if ((' ' & 0x0FF) == 0x020)
4546 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4547 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4549 # define ISLOWER(c) \
4550 (('a' <= (c) && (c) <= 'i') \
4551 || ('j' <= (c) && (c) <= 'r') \
4552 || ('s' <= (c) && (c) <= 'z'))
4553 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4556 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4561 for (i = 0; i < 256; i++)
4562 if (XOR (islower (i), ISLOWER (i))
4563 || toupper (i) != TOUPPER (i))
4568 if ac_fn_c_try_run
"$LINENO"; then :
4571 ac_cv_header_stdc
=no
4573 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4574 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4580 $as_echo "$ac_cv_header_stdc" >&6; }
4581 if test $ac_cv_header_stdc = yes; then
4583 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4587 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4588 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4589 inttypes.h stdint.h unistd.h
4591 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4592 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4594 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4595 cat >>confdefs.h
<<_ACEOF
4596 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4605 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4606 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4613 if test "$MINIX" = yes; then
4615 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4618 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4621 $as_echo "#define _MINIX 1" >>confdefs.h
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4627 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4628 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4629 $as_echo_n "(cached) " >&6
4631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4634 # define __EXTENSIONS__ 1
4635 $ac_includes_default
4644 if ac_fn_c_try_compile
"$LINENO"; then :
4645 ac_cv_safe_to_define___extensions__
=yes
4647 ac_cv_safe_to_define___extensions__
=no
4649 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4652 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4653 test $ac_cv_safe_to_define___extensions__ = yes &&
4654 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4656 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4658 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4660 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4662 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4666 ac_cpp
='$CPP $CPPFLAGS'
4667 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4668 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4669 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4670 if test -n "$ac_tool_prefix"; then
4671 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4672 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4674 $as_echo_n "checking for $ac_word... " >&6; }
4675 if ${ac_cv_prog_CC+:} false
; then :
4676 $as_echo_n "(cached) " >&6
4678 if test -n "$CC"; then
4679 ac_cv_prog_CC
="$CC" # Let the user override the test.
4681 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4685 test -z "$as_dir" && as_dir
=.
4686 for ac_exec_ext
in '' $ac_executable_extensions; do
4687 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4688 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4699 if test -n "$CC"; then
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4701 $as_echo "$CC" >&6; }
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704 $as_echo "no" >&6; }
4709 if test -z "$ac_cv_prog_CC"; then
4711 # Extract the first word of "gcc", so it can be a program name with args.
4712 set dummy gcc
; ac_word
=$2
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4714 $as_echo_n "checking for $ac_word... " >&6; }
4715 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4716 $as_echo_n "(cached) " >&6
4718 if test -n "$ac_ct_CC"; then
4719 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4721 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4725 test -z "$as_dir" && as_dir
=.
4726 for ac_exec_ext
in '' $ac_executable_extensions; do
4727 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4728 ac_cv_prog_ac_ct_CC
="gcc"
4729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4738 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4739 if test -n "$ac_ct_CC"; then
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4741 $as_echo "$ac_ct_CC" >&6; }
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744 $as_echo "no" >&6; }
4747 if test "x$ac_ct_CC" = x
; then
4750 case $cross_compiling:$ac_tool_warned in
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4754 ac_tool_warned
=yes ;;
4762 if test -z "$CC"; then
4763 if test -n "$ac_tool_prefix"; then
4764 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4765 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 $as_echo_n "checking for $ac_word... " >&6; }
4768 if ${ac_cv_prog_CC+:} false
; then :
4769 $as_echo_n "(cached) " >&6
4771 if test -n "$CC"; then
4772 ac_cv_prog_CC
="$CC" # Let the user override the test.
4774 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4778 test -z "$as_dir" && as_dir
=.
4779 for ac_exec_ext
in '' $ac_executable_extensions; do
4780 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4781 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4792 if test -n "$CC"; then
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4794 $as_echo "$CC" >&6; }
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4803 if test -z "$CC"; then
4804 # Extract the first word of "cc", so it can be a program name with args.
4805 set dummy cc
; ac_word
=$2
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807 $as_echo_n "checking for $ac_word... " >&6; }
4808 if ${ac_cv_prog_CC+:} false
; then :
4809 $as_echo_n "(cached) " >&6
4811 if test -n "$CC"; then
4812 ac_cv_prog_CC
="$CC" # Let the user override the test.
4815 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4819 test -z "$as_dir" && as_dir
=.
4820 for ac_exec_ext
in '' $ac_executable_extensions; do
4821 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4822 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4823 ac_prog_rejected
=yes
4827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 if test $ac_prog_rejected = yes; then
4835 # We found a bogon in the path, so make sure we never use it.
4836 set dummy
$ac_cv_prog_CC
4838 if test $# != 0; then
4839 # We chose a different compiler from the bogus one.
4840 # However, it has the same basename, so the bogon will be chosen
4841 # first if we set CC to just the basename; use the full file name.
4843 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4849 if test -n "$CC"; then
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4851 $as_echo "$CC" >&6; }
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854 $as_echo "no" >&6; }
4859 if test -z "$CC"; then
4860 if test -n "$ac_tool_prefix"; then
4861 for ac_prog
in cl.exe
4863 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4864 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4866 $as_echo_n "checking for $ac_word... " >&6; }
4867 if ${ac_cv_prog_CC+:} false
; then :
4868 $as_echo_n "(cached) " >&6
4870 if test -n "$CC"; then
4871 ac_cv_prog_CC
="$CC" # Let the user override the test.
4873 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4877 test -z "$as_dir" && as_dir
=.
4878 for ac_exec_ext
in '' $ac_executable_extensions; do
4879 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4880 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 if test -n "$CC"; then
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4893 $as_echo "$CC" >&6; }
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 $as_echo "no" >&6; }
4900 test -n "$CC" && break
4903 if test -z "$CC"; then
4905 for ac_prog
in cl.exe
4907 # Extract the first word of "$ac_prog", so it can be a program name with args.
4908 set dummy
$ac_prog; ac_word
=$2
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910 $as_echo_n "checking for $ac_word... " >&6; }
4911 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4912 $as_echo_n "(cached) " >&6
4914 if test -n "$ac_ct_CC"; then
4915 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4917 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4921 test -z "$as_dir" && as_dir
=.
4922 for ac_exec_ext
in '' $ac_executable_extensions; do
4923 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4924 ac_cv_prog_ac_ct_CC
="$ac_prog"
4925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4935 if test -n "$ac_ct_CC"; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4937 $as_echo "$ac_ct_CC" >&6; }
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 $as_echo "no" >&6; }
4944 test -n "$ac_ct_CC" && break
4947 if test "x$ac_ct_CC" = x
; then
4950 case $cross_compiling:$ac_tool_warned in
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4954 ac_tool_warned
=yes ;;
4963 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4965 as_fn_error $?
"no acceptable C compiler found in \$PATH
4966 See \`config.log' for more details" "$LINENO" 5; }
4968 # Provide some information about the compiler.
4969 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4972 for ac_option
in --version -v -V -qversion; do
4973 { { ac_try
="$ac_compiler $ac_option >&5"
4975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4976 *) ac_try_echo=$ac_try;;
4978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4979 $as_echo "$ac_try_echo"; } >&5
4980 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4982 if test -s conftest.err; then
4984 ... rest of stderr output deleted ...
4985 10q' conftest.err >conftest.er1
4986 cat conftest.er1 >&5
4988 rm -f conftest.er1 conftest.err
4989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4990 test $ac_status = 0; }
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4994 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4995 if ${ac_cv_c_compiler_gnu+:} false; then :
4996 $as_echo_n "(cached) " >&6
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5012 if ac_fn_c_try_compile "$LINENO"; then :
5017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5018 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5022 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5023 if test $ac_compiler_gnu = yes; then
5028 ac_test_CFLAGS=${CFLAGS+set}
5029 ac_save_CFLAGS=$CFLAGS
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5031 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5032 if ${ac_cv_prog_cc_g+:} false; then :
5033 $as_echo_n "(cached) " >&6
5035 ac_save_c_werror_flag=$ac_c_werror_flag
5036 ac_c_werror_flag=yes
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5050 if ac_fn_c_try_compile "$LINENO"; then :
5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055 /* end confdefs.h. */
5065 if ac_fn_c_try_compile "$LINENO"; then :
5068 ac_c_werror_flag=$ac_save_c_werror_flag
5070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071 /* end confdefs.h. */
5081 if ac_fn_c_try_compile "$LINENO"; then :
5084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5089 ac_c_werror_flag=$ac_save_c_werror_flag
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5092 $as_echo "$ac_cv_prog_cc_g" >&6; }
5093 if test "$ac_test_CFLAGS" = set; then
5094 CFLAGS=$ac_save_CFLAGS
5095 elif test $ac_cv_prog_cc_g = yes; then
5096 if test "$GCC" = yes; then
5102 if test "$GCC" = yes; then
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5109 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5110 if ${ac_cv_prog_cc_c89+:} false; then :
5111 $as_echo_n "(cached) " >&6
5113 ac_cv_prog_cc_c89=no
5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116 /* end confdefs.h. */
5120 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5121 struct buf { int x; };
5122 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5123 static char *e (p, i)
5129 static char *f (char * (*g) (char **, int), char **p, ...)
5134 s = g (p, va_arg (v,int));
5139 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5140 function prototypes and stuff, but not '\xHH' hex character constants.
5141 These don't provoke an error unfortunately, instead are silently treated
5142 as 'x'. The following induces an error, until -std is added to get
5143 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5144 array size at least. It's necessary to write '\x00'==0 to get something
5145 that's true only with -std. */
5146 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5148 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5149 inside strings and character constants. */
5151 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5153 int test (int i, double x);
5154 struct s1 {int (*f) (int a);};
5155 struct s2 {int (*f) (double a);};
5156 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5162 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5167 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5168 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5170 CC="$ac_save_CC $ac_arg"
5171 if ac_fn_c_try_compile "$LINENO"; then :
5172 ac_cv_prog_cc_c89=$ac_arg
5174 rm -f core conftest.err conftest.$ac_objext
5175 test "x$ac_cv_prog_cc_c89" != "xno" && break
5177 rm -f conftest.$ac_ext
5182 case "x$ac_cv_prog_cc_c89" in
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5185 $as_echo "none needed" >&6; } ;;
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5188 $as_echo "unsupported" >&6; } ;;
5190 CC="$CC $ac_cv_prog_cc_c89"
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5192 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5194 if test "x$ac_cv_prog_cc_c89" != xno; then :
5199 ac_cpp='$CPP $CPPFLAGS'
5200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5205 ac_cpp='$CPP $CPPFLAGS'
5206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5210 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5211 if ${am_cv_prog_cc_c_o+:} false; then :
5212 $as_echo_n "(cached) " >&6
5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5225 # Make sure it works both with $CC and with simple cc.
5226 # Following AC_PROG_CC_C_O, we do the test twice because some
5227 # compilers refuse to overwrite an existing .o file with -o,
5228 # though they will create one.
5229 am_cv_prog_cc_c_o=yes
5231 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5232 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } \
5236 && test -f conftest2.$ac_objext; then
5239 am_cv_prog_cc_c_o=no
5243 rm -f core conftest*
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5247 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5248 if test "$am_cv_prog_cc_c_o" != yes; then
5249 # Losing compiler, so override with the script.
5250 # FIXME: It is wrong to rewrite CC.
5251 # But if we don't then we get into trouble of one sort or another.
5252 # A longer-term fix would be to have automake use am__CC in this case,
5253 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5254 CC="$am_aux_dir/compile $CC"
5257 ac_cpp='$CPP $CPPFLAGS'
5258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5263 depcc="$CC" am_compiler_list=
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5266 $as_echo_n "checking dependency style of $depcc... " >&6; }
5267 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5268 $as_echo_n "(cached) " >&6
5270 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5271 # We make a subdir and do the tests there. Otherwise we can end up
5272 # making bogus files that we don't know about and never remove. For
5273 # instance it was reported that on HP-UX the gcc test will end up
5274 # making a dummy file named 'D' -- because '-MD' means "put the output
5278 # Copy depcomp to subdir because otherwise we won't find it if we're
5279 # using a relative directory.
5280 cp "$am_depcomp" conftest.dir
5282 # We will build objects and dependencies in a subdirectory because
5283 # it helps to detect inapplicable dependency modes. For instance
5284 # both Tru64's cc and ICC support -MD to output dependencies as a
5285 # side effect of compilation, but ICC will put the dependencies in
5286 # the current directory while Tru64 will put them in the object
5290 am_cv_CC_dependencies_compiler_type=none
5291 if test "$am_compiler_list" = ""; then
5292 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
5295 case " $depcc " in #(
5296 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5299 for depmode in $am_compiler_list; do
5300 # Setup a source with many dependencies, because some compilers
5301 # like to wrap large dependency lists on column 80 (with \), and
5302 # we should not choose a depcomp mode which is confused by this.
5304 # We need to recreate these files for each test, as the compiler may
5305 # overwrite some of them when testing with obscure command lines.
5306 # This happens at least with the AIX C compiler.
5308 for i in 1 2 3 4 5 6; do
5309 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5310 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5311 # Solaris 10 /bin/sh.
5312 echo '/* dummy */' > sub/conftst$i.h
5314 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5316 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5317 # mode. It turns out that the SunPro C++ compiler does not properly
5318 # handle '-M -o', and we need to detect this. Also, some Intel
5319 # versions had trouble with output in subdirs.
5320 am__obj=sub/conftest.${OBJEXT-o}
5321 am__minus_obj="-o $am__obj"
5324 # This depmode causes a compiler race in universal mode.
5325 test "$am__universal" = false || continue
5328 # After this tag, mechanisms are not by side-effect, so they'll
5329 # only be used when explicitly requested.
5330 if test "x$enable_dependency_tracking" = xyes; then
5336 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5337 # This compiler won't grok '-c -o', but also, the minuso test has
5338 # not run yet. These depmodes are late enough in the game, and
5339 # so weak that their functioning should not be impacted.
5340 am__obj=conftest.${OBJEXT-o}
5345 if depmode=$depmode \
5346 source=sub/conftest.c object=$am__obj \
5347 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5348 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5349 >/dev/null 2>conftest.err &&
5350 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5351 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5352 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5353 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5354 # icc doesn't choke on unknown options, it will just issue warnings
5355 # or remarks (even with -Werror). So we grep stderr for any message
5356 # that says an option was ignored or not supported.
5357 # When given -MP, icc 7.0 and 7.1 complain thusly:
5358 # icc: Command line warning: ignoring option '-M'; no argument required
5359 # The diagnosis changed in icc 8.0:
5360 # icc: Command line remark: option '-MP' not supported
5361 if (grep 'ignoring option' conftest.err ||
5362 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5363 am_cv_CC_dependencies_compiler_type=$depmode
5372 am_cv_CC_dependencies_compiler_type=none
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5377 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5378 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5381 test "x$enable_dependency_tracking" != xno \
5382 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5384 am__fastdepCC_FALSE='#'
5386 am__fastdepCC_TRUE='#'
5387 am__fastdepCC_FALSE=
5392 ac_cpp='$CXXCPP $CPPFLAGS'
5393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5396 if test -z "$CXX"; then
5397 if test -n "$CCC"; then
5400 if test -n "$ac_tool_prefix"; then
5401 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5406 $as_echo_n "checking for $ac_word... " >&6; }
5407 if ${ac_cv_prog_CXX+:} false; then :
5408 $as_echo_n "(cached) " >&6
5410 if test -n "$CXX"; then
5411 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417 test -z "$as_dir" && as_dir=.
5418 for ac_exec_ext in '' $ac_executable_extensions; do
5419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5420 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5431 if test -n "$CXX"; then
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5433 $as_echo "$CXX" >&6; }
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5436 $as_echo "no" >&6; }
5440 test -n "$CXX" && break
5443 if test -z "$CXX"; then
5445 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5447 # Extract the first word of "$ac_prog", so it can be a program name with args.
5448 set dummy $ac_prog; ac_word=$2
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450 $as_echo_n "checking for $ac_word... " >&6; }
5451 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5452 $as_echo_n "(cached) " >&6
5454 if test -n "$ac_ct_CXX"; then
5455 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5464 ac_cv_prog_ac_ct_CXX="$ac_prog"
5465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5474 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5475 if test -n "$ac_ct_CXX"; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5477 $as_echo "$ac_ct_CXX" >&6; }
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480 $as_echo "no" >&6; }
5484 test -n "$ac_ct_CXX" && break
5487 if test "x$ac_ct_CXX" = x; then
5490 case $cross_compiling:$ac_tool_warned in
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5494 ac_tool_warned=yes ;;
5502 # Provide some information about the compiler.
5503 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5506 for ac_option in --version -v -V -qversion; do
5507 { { ac_try="$ac_compiler $ac_option >&5"
5509 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5510 *) ac_try_echo
=$ac_try;;
5512 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5513 $as_echo "$ac_try_echo"; } >&5
5514 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5516 if test -s conftest.err
; then
5518 ... rest of stderr output deleted ...
5519 10q' conftest.err
>conftest.er1
5520 cat conftest.er1
>&5
5522 rm -f conftest.er1 conftest.err
5523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5524 test $ac_status = 0; }
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5528 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5529 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5530 $as_echo_n "(cached) " >&6
5532 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5546 if ac_fn_cxx_try_compile
"$LINENO"; then :
5551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5552 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5556 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5557 if test $ac_compiler_gnu = yes; then
5562 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5563 ac_save_CXXFLAGS
=$CXXFLAGS
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5565 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5566 if ${ac_cv_prog_cxx_g+:} false
; then :
5567 $as_echo_n "(cached) " >&6
5569 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5570 ac_cxx_werror_flag
=yes
5573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5574 /* end confdefs.h. */
5584 if ac_fn_cxx_try_compile
"$LINENO"; then :
5585 ac_cv_prog_cxx_g
=yes
5588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5599 if ac_fn_cxx_try_compile
"$LINENO"; then :
5602 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5605 /* end confdefs.h. */
5615 if ac_fn_cxx_try_compile
"$LINENO"; then :
5616 ac_cv_prog_cxx_g
=yes
5618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5622 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5623 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5626 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5627 if test "$ac_test_CXXFLAGS" = set; then
5628 CXXFLAGS
=$ac_save_CXXFLAGS
5629 elif test $ac_cv_prog_cxx_g = yes; then
5630 if test "$GXX" = yes; then
5636 if test "$GXX" = yes; then
5643 ac_cpp
='$CPP $CPPFLAGS'
5644 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5645 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5646 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5648 depcc
="$CXX" am_compiler_list
=
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5651 $as_echo_n "checking dependency style of $depcc... " >&6; }
5652 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
5653 $as_echo_n "(cached) " >&6
5655 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5656 # We make a subdir and do the tests there. Otherwise we can end up
5657 # making bogus files that we don't know about and never remove. For
5658 # instance it was reported that on HP-UX the gcc test will end up
5659 # making a dummy file named 'D' -- because '-MD' means "put the output
5663 # Copy depcomp to subdir because otherwise we won't find it if we're
5664 # using a relative directory.
5665 cp "$am_depcomp" conftest.dir
5667 # We will build objects and dependencies in a subdirectory because
5668 # it helps to detect inapplicable dependency modes. For instance
5669 # both Tru64's cc and ICC support -MD to output dependencies as a
5670 # side effect of compilation, but ICC will put the dependencies in
5671 # the current directory while Tru64 will put them in the object
5675 am_cv_CXX_dependencies_compiler_type
=none
5676 if test "$am_compiler_list" = ""; then
5677 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5680 case " $depcc " in #(
5681 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
5684 for depmode
in $am_compiler_list; do
5685 # Setup a source with many dependencies, because some compilers
5686 # like to wrap large dependency lists on column 80 (with \), and
5687 # we should not choose a depcomp mode which is confused by this.
5689 # We need to recreate these files for each test, as the compiler may
5690 # overwrite some of them when testing with obscure command lines.
5691 # This happens at least with the AIX C compiler.
5693 for i
in 1 2 3 4 5 6; do
5694 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5695 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5696 # Solaris 10 /bin/sh.
5697 echo '/* dummy */' > sub
/conftst
$i.h
5699 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5701 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5702 # mode. It turns out that the SunPro C++ compiler does not properly
5703 # handle '-M -o', and we need to detect this. Also, some Intel
5704 # versions had trouble with output in subdirs.
5705 am__obj
=sub
/conftest.
${OBJEXT-o}
5706 am__minus_obj
="-o $am__obj"
5709 # This depmode causes a compiler race in universal mode.
5710 test "$am__universal" = false ||
continue
5713 # After this tag, mechanisms are not by side-effect, so they'll
5714 # only be used when explicitly requested.
5715 if test "x$enable_dependency_tracking" = xyes
; then
5721 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
5722 # This compiler won't grok '-c -o', but also, the minuso test has
5723 # not run yet. These depmodes are late enough in the game, and
5724 # so weak that their functioning should not be impacted.
5725 am__obj
=conftest.
${OBJEXT-o}
5730 if depmode
=$depmode \
5731 source=sub
/conftest.c object
=$am__obj \
5732 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5733 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5734 >/dev
/null
2>conftest.err
&&
5735 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5736 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5737 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5738 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5739 # icc doesn't choke on unknown options, it will just issue warnings
5740 # or remarks (even with -Werror). So we grep stderr for any message
5741 # that says an option was ignored or not supported.
5742 # When given -MP, icc 7.0 and 7.1 complain thusly:
5743 # icc: Command line warning: ignoring option '-M'; no argument required
5744 # The diagnosis changed in icc 8.0:
5745 # icc: Command line remark: option '-MP' not supported
5746 if (grep 'ignoring option' conftest.err ||
5747 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5748 am_cv_CXX_dependencies_compiler_type
=$depmode
5757 am_cv_CXX_dependencies_compiler_type
=none
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5762 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5763 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
5766 test "x$enable_dependency_tracking" != xno \
5767 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
5768 am__fastdepCXX_TRUE
=
5769 am__fastdepCXX_FALSE
='#'
5771 am__fastdepCXX_TRUE
='#'
5772 am__fastdepCXX_FALSE
=
5777 if test -n "$ac_tool_prefix"; then
5778 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5779 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781 $as_echo_n "checking for $ac_word... " >&6; }
5782 if ${ac_cv_prog_RANLIB+:} false
; then :
5783 $as_echo_n "(cached) " >&6
5785 if test -n "$RANLIB"; then
5786 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5788 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5792 test -z "$as_dir" && as_dir
=.
5793 for ac_exec_ext
in '' $ac_executable_extensions; do
5794 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5795 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5805 RANLIB
=$ac_cv_prog_RANLIB
5806 if test -n "$RANLIB"; then
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5808 $as_echo "$RANLIB" >&6; }
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5811 $as_echo "no" >&6; }
5816 if test -z "$ac_cv_prog_RANLIB"; then
5817 ac_ct_RANLIB
=$RANLIB
5818 # Extract the first word of "ranlib", so it can be a program name with args.
5819 set dummy ranlib
; ac_word
=$2
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5821 $as_echo_n "checking for $ac_word... " >&6; }
5822 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5823 $as_echo_n "(cached) " >&6
5825 if test -n "$ac_ct_RANLIB"; then
5826 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5832 test -z "$as_dir" && as_dir
=.
5833 for ac_exec_ext
in '' $ac_executable_extensions; do
5834 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5835 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5845 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5846 if test -n "$ac_ct_RANLIB"; then
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5848 $as_echo "$ac_ct_RANLIB" >&6; }
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851 $as_echo "no" >&6; }
5854 if test "x$ac_ct_RANLIB" = x
; then
5857 case $cross_compiling:$ac_tool_warned in
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5861 ac_tool_warned
=yes ;;
5863 RANLIB
=$ac_ct_RANLIB
5866 RANLIB
="$ac_cv_prog_RANLIB"
5869 if test -n "$ac_tool_prefix"; then
5870 for ac_prog
in ar lib
"link -lib"
5872 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5873 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5875 $as_echo_n "checking for $ac_word... " >&6; }
5876 if ${ac_cv_prog_AR+:} false
; then :
5877 $as_echo_n "(cached) " >&6
5879 if test -n "$AR"; then
5880 ac_cv_prog_AR
="$AR" # Let the user override the test.
5882 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5886 test -z "$as_dir" && as_dir
=.
5887 for ac_exec_ext
in '' $ac_executable_extensions; do
5888 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5889 ac_cv_prog_AR
="$ac_tool_prefix$ac_prog"
5890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5900 if test -n "$AR"; then
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5902 $as_echo "$AR" >&6; }
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5905 $as_echo "no" >&6; }
5909 test -n "$AR" && break
5912 if test -z "$AR"; then
5914 for ac_prog
in ar lib
"link -lib"
5916 # Extract the first word of "$ac_prog", so it can be a program name with args.
5917 set dummy
$ac_prog; ac_word
=$2
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5919 $as_echo_n "checking for $ac_word... " >&6; }
5920 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5921 $as_echo_n "(cached) " >&6
5923 if test -n "$ac_ct_AR"; then
5924 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5926 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5930 test -z "$as_dir" && as_dir
=.
5931 for ac_exec_ext
in '' $ac_executable_extensions; do
5932 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5933 ac_cv_prog_ac_ct_AR
="$ac_prog"
5934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5943 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5944 if test -n "$ac_ct_AR"; then
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5946 $as_echo "$ac_ct_AR" >&6; }
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5949 $as_echo "no" >&6; }
5953 test -n "$ac_ct_AR" && break
5956 if test "x$ac_ct_AR" = x
; then
5959 case $cross_compiling:$ac_tool_warned in
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5963 ac_tool_warned
=yes ;;
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5972 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5973 if ${am_cv_ar_interface+:} false
; then :
5974 $as_echo_n "(cached) " >&6
5977 ac_cpp
='$CPP $CPPFLAGS'
5978 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5979 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5980 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5982 am_cv_ar_interface
=ar
5983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5984 /* end confdefs.h. */
5985 int some_variable = 0;
5987 if ac_fn_c_try_compile
"$LINENO"; then :
5988 am_ar_try
='$AR cru libconftest.a conftest.$ac_objext >&5'
5989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5990 (eval $am_ar_try) 2>&5
5992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5993 test $ac_status = 0; }
5994 if test "$ac_status" -eq 0; then
5995 am_cv_ar_interface
=ar
5997 am_ar_try
='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5999 (eval $am_ar_try) 2>&5
6001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6002 test $ac_status = 0; }
6003 if test "$ac_status" -eq 0; then
6004 am_cv_ar_interface
=lib
6006 am_cv_ar_interface
=unknown
6009 rm -f conftest.lib libconftest.a
6012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6014 ac_cpp
='$CPP $CPPFLAGS'
6015 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6016 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6017 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6021 $as_echo "$am_cv_ar_interface" >&6; }
6023 case $am_cv_ar_interface in
6027 # Microsoft lib, so override with the ar-lib wrapper script.
6028 # FIXME: It is wrong to rewrite AR.
6029 # But if we don't then we get into trouble of one sort or another.
6030 # A longer-term fix would be to have automake use am__AR in this case,
6031 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6033 AR
="$am_aux_dir/ar-lib $AR"
6036 as_fn_error $?
"could not determine $AR interface" "$LINENO" 5
6041 # Check whether --enable-shared was given.
6042 if test "${enable_shared+set}" = set; then :
6043 enableval
=$enable_shared; p
=${PACKAGE-default}
6045 yes) enable_shared
=yes ;;
6046 no
) enable_shared
=no
;;
6049 # Look at the argument we got. We use all the common list separators.
6050 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
6051 for pkg
in $enableval; do
6053 if test "X$pkg" = "X$p"; then
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6075 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6080 macro_version
='2.2.7a'
6081 macro_revision
='1.3134'
6095 ltmain
="$ac_aux_dir/ltmain.sh"
6097 # Backslashify metacharacters that are still active within
6098 # double-quoted strings.
6099 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
6101 # Same as above, but do not quote variable references.
6102 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
6104 # Sed substitution to delay expansion of an escaped shell variable in a
6105 # double_quote_subst'ed string.
6106 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
6108 # Sed substitution to delay expansion of an escaped single quote.
6109 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
6111 # Sed substitution to avoid accidental globbing in evaled expressions
6112 no_glob_subst
='s/\*/\\\*/g'
6114 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6115 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6116 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6119 $as_echo_n "checking how to print strings... " >&6; }
6120 # Test print first, because it will be a builtin if present.
6121 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6122 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6124 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6127 # Use this function as a fallback that always works.
6128 func_fallback_echo ()
6130 eval 'cat <<_LTECHO_EOF
6134 ECHO='func_fallback_echo
'
6137 # func_echo_all arg...
6138 # Invoke $ECHO with all args, space-separated.
6145 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6146 $as_echo "printf" >&6; } ;;
6147 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6148 $as_echo "print -r" >&6; } ;;
6149 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6150 $as_echo "cat" >&6; } ;;
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6167 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6168 if ${ac_cv_path_SED+:} false; then :
6169 $as_echo_n "(cached) " >&6
6171 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6172 for ac_i in 1 2 3 4 5 6 7; do
6173 ac_script="$ac_script$as_nl$ac_script"
6175 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6176 { ac_script=; unset ac_script;}
6177 if test -z "$SED"; then
6178 ac_path_SED_found=false
6179 # Loop through the user's path and
test for each of PROGNAME-LIST
6180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6184 test -z "$as_dir" && as_dir
=.
6185 for ac_prog
in sed gsed
; do
6186 for ac_exec_ext
in '' $ac_executable_extensions; do
6187 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6188 as_fn_executable_p
"$ac_path_SED" ||
continue
6189 # Check for GNU ac_path_SED and select it if it is found.
6190 # Check for GNU $ac_path_SED
6191 case `"$ac_path_SED" --version 2>&1` in
6193 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6196 $as_echo_n 0123456789 >"conftest.in"
6199 cat "conftest.in" "conftest.in" >"conftest.tmp"
6200 mv "conftest.tmp" "conftest.in"
6201 cp "conftest.in" "conftest.nl"
6202 $as_echo '' >> "conftest.nl"
6203 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6204 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6205 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6206 if test $ac_count -gt ${ac_path_SED_max-0}; then
6207 # Best one so far, save it but keep looking for a better one
6208 ac_cv_path_SED
="$ac_path_SED"
6209 ac_path_SED_max
=$ac_count
6211 # 10*(2^10) chars as input seems more than enough
6212 test $ac_count -gt 10 && break
6214 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6217 $ac_path_SED_found && break 3
6222 if test -z "$ac_cv_path_SED"; then
6223 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6231 $as_echo "$ac_cv_path_SED" >&6; }
6232 SED
="$ac_cv_path_SED"
6235 test -z "$SED" && SED
=sed
6236 Xsed
="$SED -e 1s/^X//"
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6249 $as_echo_n "checking for fgrep... " >&6; }
6250 if ${ac_cv_path_FGREP+:} false
; then :
6251 $as_echo_n "(cached) " >&6
6253 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
6254 then ac_cv_path_FGREP
="$GREP -F"
6256 if test -z "$FGREP"; then
6257 ac_path_FGREP_found
=false
6258 # Loop through the user's path and test for each of PROGNAME-LIST
6259 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6260 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6263 test -z "$as_dir" && as_dir
=.
6264 for ac_prog
in fgrep
; do
6265 for ac_exec_ext
in '' $ac_executable_extensions; do
6266 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
6267 as_fn_executable_p
"$ac_path_FGREP" ||
continue
6268 # Check for GNU ac_path_FGREP and select it if it is found.
6269 # Check for GNU $ac_path_FGREP
6270 case `"$ac_path_FGREP" --version 2>&1` in
6272 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
6275 $as_echo_n 0123456789 >"conftest.in"
6278 cat "conftest.in" "conftest.in" >"conftest.tmp"
6279 mv "conftest.tmp" "conftest.in"
6280 cp "conftest.in" "conftest.nl"
6281 $as_echo 'FGREP' >> "conftest.nl"
6282 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6283 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6284 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6285 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6286 # Best one so far, save it but keep looking for a better one
6287 ac_cv_path_FGREP
="$ac_path_FGREP"
6288 ac_path_FGREP_max
=$ac_count
6290 # 10*(2^10) chars as input seems more than enough
6291 test $ac_count -gt 10 && break
6293 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6296 $ac_path_FGREP_found && break 3
6301 if test -z "$ac_cv_path_FGREP"; then
6302 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6305 ac_cv_path_FGREP
=$FGREP
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6311 $as_echo "$ac_cv_path_FGREP" >&6; }
6312 FGREP
="$ac_cv_path_FGREP"
6315 test -z "$GREP" && GREP
=grep
6335 # Check whether --with-gnu-ld was given.
6336 if test "${with_gnu_ld+set}" = set; then :
6337 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
6343 if test "$GCC" = yes; then
6344 # Check if gcc -print-prog-name=ld gives a path.
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6346 $as_echo_n "checking for ld used by $CC... " >&6; }
6349 # gcc leaves a trailing carriage return which upsets mingw
6350 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6352 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6355 # Accept absolute paths.
6357 re_direlt
='/[^/][^/]*/\.\./'
6358 # Canonicalize the pathname of ld
6359 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6360 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
6361 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6363 test -z "$LD" && LD
="$ac_prog"
6366 # If it fails, then pretend we aren't using GCC.
6370 # If it is relative, then search for the first ld in PATH.
6374 elif test "$with_gnu_ld" = yes; then
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6376 $as_echo_n "checking for GNU ld... " >&6; }
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6379 $as_echo_n "checking for non-GNU ld... " >&6; }
6381 if ${lt_cv_path_LD+:} false
; then :
6382 $as_echo_n "(cached) " >&6
6384 if test -z "$LD"; then
6385 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6386 for ac_dir
in $PATH; do
6388 test -z "$ac_dir" && ac_dir
=.
6389 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
6390 lt_cv_path_LD
="$ac_dir/$ac_prog"
6391 # Check to see if the program is GNU ld. I'd rather use --version,
6392 # but apparently some variants of GNU ld only accept -v.
6393 # Break only if it was the GNU/non-GNU ld that we prefer.
6394 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6395 *GNU
* |
*'with BFD'*)
6396 test "$with_gnu_ld" != no
&& break
6399 test "$with_gnu_ld" != yes && break
6406 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
6411 if test -n "$LD"; then
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6413 $as_echo "$LD" >&6; }
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416 $as_echo "no" >&6; }
6418 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6420 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6421 if ${lt_cv_prog_gnu_ld+:} false
; then :
6422 $as_echo_n "(cached) " >&6
6424 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6425 case `$LD -v 2>&1 </dev/null` in
6426 *GNU
* |
*'with BFD'*)
6427 lt_cv_prog_gnu_ld
=yes
6430 lt_cv_prog_gnu_ld
=no
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6435 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6436 with_gnu_ld
=$lt_cv_prog_gnu_ld
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6447 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6448 if ${lt_cv_path_NM+:} false
; then :
6449 $as_echo_n "(cached) " >&6
6451 if test -n "$NM"; then
6452 # Let the user override the nm to test.
6453 lt_nm_to_check
="$NM"
6455 lt_nm_to_check
="${ac_tool_prefix}nm"
6456 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6457 lt_nm_to_check
="$lt_nm_to_check nm"
6460 for lt_tmp_nm
in "$lt_nm_to_check"; do
6461 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6462 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
6464 test -z "$ac_dir" && ac_dir
=.
6465 # Strip out any user-provided options from the nm to test twice,
6466 # the first time to test to see if nm (rather than its options) has
6467 # an explicit path, the second time to yield a file which can be
6469 tmp_nm_path
="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6470 case "$tmp_nm_path" in
6471 */*|
*\\*) tmp_nm
="$lt_tmp_nm";;
6472 *) tmp_nm
="$ac_dir/$lt_tmp_nm";;
6474 tmp_nm_to_nm
="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6475 if test -f "$tmp_nm_to_nm" ||
test -f "$tmp_nm_to_nm$ac_exeext" ; then
6476 # Check to see if the nm accepts a BSD-compat flag.
6477 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6478 # nm: unknown option "B" ignored
6479 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6480 *$tmp_nm*) lt_cv_path_NM
="$tmp_nm -B"
6484 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6486 lt_cv_path_NM
="$tmp_nm -p"
6490 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6491 continue # so that we can try to find one that supports BSD flags
6500 : ${lt_cv_path_NM=no}
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6503 $as_echo "$lt_cv_path_NM" >&6; }
6504 if test "$lt_cv_path_NM" != "no"; then
6507 # Didn't find any BSD compatible name lister, look for dumpbin.
6508 if test -n "$DUMPBIN"; then :
6509 # Let the user override the test.
6511 if test -n "$ac_tool_prefix"; then
6512 for ac_prog
in dumpbin
"link -dump"
6514 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6515 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517 $as_echo_n "checking for $ac_word... " >&6; }
6518 if ${ac_cv_prog_DUMPBIN+:} false
; then :
6519 $as_echo_n "(cached) " >&6
6521 if test -n "$DUMPBIN"; then
6522 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
6524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6528 test -z "$as_dir" && as_dir
=.
6529 for ac_exec_ext
in '' $ac_executable_extensions; do
6530 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6531 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
6532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6541 DUMPBIN
=$ac_cv_prog_DUMPBIN
6542 if test -n "$DUMPBIN"; then
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6544 $as_echo "$DUMPBIN" >&6; }
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547 $as_echo "no" >&6; }
6551 test -n "$DUMPBIN" && break
6554 if test -z "$DUMPBIN"; then
6555 ac_ct_DUMPBIN
=$DUMPBIN
6556 for ac_prog
in dumpbin
"link -dump"
6558 # Extract the first word of "$ac_prog", so it can be a program name with args.
6559 set dummy
$ac_prog; ac_word
=$2
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6561 $as_echo_n "checking for $ac_word... " >&6; }
6562 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
6563 $as_echo_n "(cached) " >&6
6565 if test -n "$ac_ct_DUMPBIN"; then
6566 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
6568 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6572 test -z "$as_dir" && as_dir
=.
6573 for ac_exec_ext
in '' $ac_executable_extensions; do
6574 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6575 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
6576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6585 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
6586 if test -n "$ac_ct_DUMPBIN"; then
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6588 $as_echo "$ac_ct_DUMPBIN" >&6; }
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591 $as_echo "no" >&6; }
6595 test -n "$ac_ct_DUMPBIN" && break
6598 if test "x$ac_ct_DUMPBIN" = x
; then
6601 case $cross_compiling:$ac_tool_warned in
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6605 ac_tool_warned
=yes ;;
6607 DUMPBIN
=$ac_ct_DUMPBIN
6611 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6613 DUMPBIN
="$DUMPBIN -symbols"
6621 if test "$DUMPBIN" != ":"; then
6625 test -z "$NM" && NM
=nm
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6633 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6634 if ${lt_cv_nm_interface+:} false
; then :
6635 $as_echo_n "(cached) " >&6
6637 lt_cv_nm_interface
="BSD nm"
6638 echo "int some_variable = 0;" > conftest.
$ac_ext
6639 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6640 (eval "$ac_compile" 2>conftest.err
)
6641 cat conftest.err
>&5
6642 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6643 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
6644 cat conftest.err
>&5
6645 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6646 cat conftest.out
>&5
6647 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
6648 lt_cv_nm_interface
="MS dumpbin"
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6653 $as_echo "$lt_cv_nm_interface" >&6; }
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6656 $as_echo_n "checking whether ln -s works... " >&6; }
6658 if test "$LN_S" = "ln -s"; then
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6660 $as_echo "yes" >&6; }
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6663 $as_echo "no, using $LN_S" >&6; }
6666 # find the maximum length of command line arguments
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6668 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6669 if ${lt_cv_sys_max_cmd_len+:} false
; then :
6670 $as_echo_n "(cached) " >&6
6677 # On DJGPP, this test can blow up pretty badly due to problems in libc
6678 # (any single argument exceeding 2000 bytes causes a buffer overrun
6679 # during glob expansion). Even if it were fixed, the result of this
6680 # check would be larger than it should be.
6681 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6685 # Under GNU Hurd, this test is not required because there is
6686 # no limit to the length of command line arguments.
6687 # Libtool will interpret -1 as no limit whatsoever
6688 lt_cv_sys_max_cmd_len
=-1;
6691 cygwin
* | mingw
* | cegcc
*)
6692 # On Win9x/ME, this test blows up -- it succeeds, but takes
6693 # about 5 minutes as the teststring grows exponentially.
6694 # Worse, since 9x/ME are not pre-emptively multitasking,
6695 # you end up with a "frozen" computer, even though with patience
6696 # the test eventually succeeds (with a max line length of 256k).
6697 # Instead, let's just punt: use the minimum linelength reported by
6698 # all of the supported platforms: 8192 (on NT/2K/XP).
6699 lt_cv_sys_max_cmd_len
=8192;
6703 # On MiNT this can take a long time and run out of memory.
6704 lt_cv_sys_max_cmd_len
=8192;
6708 # On AmigaOS with pdksh, this test takes hours, literally.
6709 # So we just punt and use a minimum line length of 8192.
6710 lt_cv_sys_max_cmd_len
=8192;
6713 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6714 # This has been around since 386BSD, at least. Likely further.
6715 if test -x /sbin
/sysctl
; then
6716 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6717 elif test -x /usr
/sbin
/sysctl
; then
6718 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6720 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6722 # And add a safety zone
6723 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6724 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6728 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6729 lt_cv_sys_max_cmd_len
=196608
6733 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6734 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6735 # nice to cause kernel panics so lets avoid the loop below.
6736 # First set a reasonable default.
6737 lt_cv_sys_max_cmd_len
=16384
6739 if test -x /sbin
/sysconfig
; then
6740 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6741 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6746 lt_cv_sys_max_cmd_len
=102400
6748 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6749 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6750 if test -n "$kargmax"; then
6751 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6753 lt_cv_sys_max_cmd_len
=32768
6757 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6758 if test -n "$lt_cv_sys_max_cmd_len"; then
6759 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6760 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6762 # Make teststring a little bigger before we do anything with it.
6763 # a 1K string should be a reasonable start.
6764 for i
in 1 2 3 4 5 6 7 8 ; do
6765 teststring
=$teststring$teststring
6767 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6768 # If test is not a shell built-in, we'll probably end up computing a
6769 # maximum length that is only half of the actual maximum length, but
6771 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6772 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
6773 test $i != 17 # 1/2 MB should be enough
6776 teststring
=$teststring$teststring
6778 # Only check the string length outside the loop.
6779 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6781 # Add a significant safety factor because C++ compilers can tack on
6782 # massive amounts of additional arguments before passing them to the
6783 # linker. It appears as though 1/2 is a usable value.
6784 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6791 if test -n $lt_cv_sys_max_cmd_len ; then
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6793 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6796 $as_echo "none" >&6; }
6798 max_cmd_len
=$lt_cv_sys_max_cmd_len
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6810 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6811 # Try some XSI features
6814 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6816 && eval 'test $(( 1 + 1 )) -eq 2 \
6817 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
6820 $as_echo "$xsi_shell" >&6; }
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
6824 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
6826 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
6828 && lt_shell_append=yes
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
6830 $as_echo "$lt_shell_append" >&6; }
6833 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6843 # test EBCDIC or ASCII
6844 case `echo X|tr X '\101'` in
6845 A) # ASCII based system
6846 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6847 lt_SP2NL='tr \040 \012'
6848 lt_NL2SP='tr \015\012 \040\040'
6850 *) # EBCDIC based system
6851 lt_SP2NL='tr \100 \n'
6852 lt_NL2SP='tr \r\n \100\100'
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
6865 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
6866 if ${lt_cv_ld_reload_flag+:} false; then :
6867 $as_echo_n "(cached
) " >&6
6869 lt_cv_ld_reload_flag='-r'
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
6872 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6873 reload_flag=$lt_cv_ld_reload_flag
6874 case $reload_flag in
6876 *) reload_flag=" $reload_flag" ;;
6878 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6881 if test "$GCC" = yes; then
6882 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6884 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6897 if test -n "$ac_tool_prefix"; then
6898 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
6899 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6901 $as_echo_n "checking
for $ac_word...
" >&6; }
6902 if ${ac_cv_prog_OBJDUMP+:} false; then :
6903 $as_echo_n "(cached
) " >&6
6905 if test -n "$OBJDUMP"; then
6906 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912 test -z "$as_dir" && as_dir=.
6913 for ac_exec_ext in '' $ac_executable_extensions; do
6914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6915 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
6916 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6925 OBJDUMP=$ac_cv_prog_OBJDUMP
6926 if test -n "$OBJDUMP"; then
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
6928 $as_echo "$OBJDUMP" >&6; }
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6931 $as_echo "no
" >&6; }
6936 if test -z "$ac_cv_prog_OBJDUMP"; then
6937 ac_ct_OBJDUMP=$OBJDUMP
6938 # Extract the first word of "objdump
", so it can be a program name with args.
6939 set dummy objdump; ac_word=$2
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6941 $as_echo_n "checking
for $ac_word...
" >&6; }
6942 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6943 $as_echo_n "(cached
) " >&6
6945 if test -n "$ac_ct_OBJDUMP"; then
6946 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6955 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
6956 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6965 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6966 if test -n "$ac_ct_OBJDUMP"; then
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
6968 $as_echo "$ac_ct_OBJDUMP" >&6; }
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6971 $as_echo "no
" >&6; }
6974 if test "x
$ac_ct_OBJDUMP" = x; then
6977 case $cross_compiling:$ac_tool_warned in
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6980 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6981 ac_tool_warned=yes ;;
6983 OBJDUMP=$ac_ct_OBJDUMP
6986 OBJDUMP="$ac_cv_prog_OBJDUMP"
6989 test -z "$OBJDUMP" && OBJDUMP=objdump
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
7000 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
7001 if ${lt_cv_deplibs_check_method+:} false; then :
7002 $as_echo_n "(cached
) " >&6
7004 lt_cv_file_magic_cmd='$MAGIC_CMD'
7005 lt_cv_file_magic_test_file=
7006 lt_cv_deplibs_check_method='unknown'
7007 # Need to set the preceding variable on all platforms that support
7008 # interlibrary dependencies.
7009 # 'none' -- dependencies not supported.
7010 # `unknown' -- same as none, but documents that we really don't know.
7011 # 'pass_all' -- all dependencies passed with no checks.
7012 # 'test_compile' -- check by making test program.
7013 # 'file_magic [[regex]]' -- check by looking for files in library path
7014 # which responds to the $file_magic_cmd with a given extended regex.
7015 # If you have `file' or equivalent on your system and you're not sure
7016 # whether `pass_all' will *always* work, you probably want this one.
7020 lt_cv_deplibs_check_method=pass_all
7024 lt_cv_deplibs_check_method=pass_all
7028 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7029 lt_cv_file_magic_cmd='/usr/bin/file -L'
7030 lt_cv_file_magic_test_file=/shlib/libc.so
7034 # func_win32_libid is a shell function defined in ltmain.sh
7035 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7036 lt_cv_file_magic_cmd='func_win32_libid'
7040 # Base MSYS/MinGW do not provide the 'file' command needed by
7041 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7042 # unless we find 'file', for example because we are cross-compiling.
7043 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7044 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
7045 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7046 lt_cv_file_magic_cmd='func_win32_libid'
7048 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7049 lt_cv_file_magic_cmd='$OBJDUMP -f'
7054 # use the weaker test based on 'objdump'. See mingw*.
7055 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7056 lt_cv_file_magic_cmd='$OBJDUMP -f'
7059 darwin* | rhapsody*)
7060 lt_cv_deplibs_check_method=pass_all
7063 freebsd* | dragonfly*)
7064 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7067 # Not sure whether the presence of OpenBSD here was a mistake.
7068 # Let's accept both of them until this is cleared up.
7069 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7070 lt_cv_file_magic_cmd=/usr/bin/file
7071 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7075 lt_cv_deplibs_check_method=pass_all
7080 lt_cv_deplibs_check_method=pass_all
7084 lt_cv_deplibs_check_method=pass_all
7087 hpux10.20* | hpux11*)
7088 lt_cv_file_magic_cmd=/usr/bin/file
7091 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7092 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7095 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]'
7096 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7099 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7100 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7106 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7107 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7110 irix5* | irix6* | nonstopux*)
7112 *-32|*"-32 ") libmagic=32-bit;;
7113 *-n32|*"-n32 ") libmagic=N32;;
7114 *-64|*"-64 ") libmagic=64-bit;;
7115 *) libmagic=never-match;;
7117 lt_cv_deplibs_check_method=pass_all
7120 # This must be Linux ELF.
7121 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7122 lt_cv_deplibs_check_method=pass_all
7126 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7134 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7135 lt_cv_file_magic_cmd=/usr/bin/file
7136 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7140 lt_cv_deplibs_check_method=pass_all
7144 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
7145 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7147 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7151 osf3* | osf4* | osf5*)
7152 lt_cv_deplibs_check_method=pass_all
7156 lt_cv_deplibs_check_method=pass_all
7160 lt_cv_deplibs_check_method=pass_all
7163 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7164 lt_cv_deplibs_check_method=pass_all
7168 case $host_vendor in
7170 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]'
7171 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7174 lt_cv_deplibs_check_method=pass_all
7177 lt_cv_file_magic_cmd='/bin/file'
7178 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7181 lt_cv_file_magic_cmd='/bin/file'
7182 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
7183 lt_cv_file_magic_test_file=/lib/libc.so
7186 lt_cv_deplibs_check_method=pass_all
7189 lt_cv_deplibs_check_method=pass_all
7195 lt_cv_deplibs_check_method=pass_all
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
7201 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7202 file_magic_cmd=$lt_cv_file_magic_cmd
7203 deplibs_check_method=$lt_cv_deplibs_check_method
7204 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7218 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
7219 for plugin in $plugin_names; do
7220 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
7221 if test x$plugin_so = x$plugin; then
7222 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
7224 if test x$plugin_so != x$plugin; then
7225 plugin_option="--plugin $plugin_so"
7230 if test -n "$ac_tool_prefix"; then
7231 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7232 set dummy ${ac_tool_prefix}ar; ac_word=$2
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7234 $as_echo_n "checking
for $ac_word...
" >&6; }
7235 if ${ac_cv_prog_AR+:} false; then :
7236 $as_echo_n "(cached
) " >&6
7238 if test -n "$AR"; then
7239 ac_cv_prog_AR="$AR" # Let the user override the test.
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7248 ac_cv_prog_AR="${ac_tool_prefix}ar"
7249 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7259 if test -n "$AR"; then
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
7261 $as_echo "$AR" >&6; }
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7264 $as_echo "no
" >&6; }
7269 if test -z "$ac_cv_prog_AR"; then
7271 # Extract the first word of "ar", so it can be a program name with args.
7272 set dummy ar; ac_word=$2
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7274 $as_echo_n "checking
for $ac_word...
" >&6; }
7275 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7276 $as_echo_n "(cached
) " >&6
7278 if test -n "$ac_ct_AR"; then
7279 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7288 ac_cv_prog_ac_ct_AR="ar"
7289 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7298 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7299 if test -n "$ac_ct_AR"; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
7301 $as_echo "$ac_ct_AR" >&6; }
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7304 $as_echo "no
" >&6; }
7307 if test "x
$ac_ct_AR" = x; then
7310 case $cross_compiling:$ac_tool_warned in
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7313 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7314 ac_tool_warned=yes ;;
7322 test -z "$AR" && AR=ar
7323 if test -n "$plugin_option"; then
7324 if $AR --help 2>&1 | grep -q "\
--plugin"; then
7326 $AR $plugin_option rc conftest.a conftest.c
7327 if test "$?
" != 0; then
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
7329 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
7331 AR="$AR $plugin_option"
7336 test -z "$AR_FLAGS" && AR_FLAGS=cru
7348 if test -n "$ac_tool_prefix"; then
7349 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
7350 set dummy ${ac_tool_prefix}strip; ac_word=$2
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7352 $as_echo_n "checking
for $ac_word...
" >&6; }
7353 if ${ac_cv_prog_STRIP+:} false; then :
7354 $as_echo_n "(cached
) " >&6
7356 if test -n "$STRIP"; then
7357 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 test -z "$as_dir" && as_dir=.
7364 for ac_exec_ext in '' $ac_executable_extensions; do
7365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7366 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
7367 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7376 STRIP=$ac_cv_prog_STRIP
7377 if test -n "$STRIP"; then
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
7379 $as_echo "$STRIP" >&6; }
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7382 $as_echo "no
" >&6; }
7387 if test -z "$ac_cv_prog_STRIP"; then
7389 # Extract the first word of "strip
", so it can be a program name with args.
7390 set dummy strip; ac_word=$2
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7392 $as_echo_n "checking
for $ac_word...
" >&6; }
7393 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7394 $as_echo_n "(cached
) " >&6
7396 if test -n "$ac_ct_STRIP"; then
7397 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 test -z "$as_dir" && as_dir=.
7404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7406 ac_cv_prog_ac_ct_STRIP="strip
"
7407 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7416 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7417 if test -n "$ac_ct_STRIP"; then
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
7419 $as_echo "$ac_ct_STRIP" >&6; }
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7422 $as_echo "no
" >&6; }
7425 if test "x
$ac_ct_STRIP" = x; then
7428 case $cross_compiling:$ac_tool_warned in
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7431 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7432 ac_tool_warned=yes ;;
7437 STRIP="$ac_cv_prog_STRIP"
7440 test -z "$STRIP" && STRIP=:
7447 if test -n "$ac_tool_prefix"; then
7448 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
7449 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7451 $as_echo_n "checking
for $ac_word...
" >&6; }
7452 if ${ac_cv_prog_RANLIB+:} false; then :
7453 $as_echo_n "(cached
) " >&6
7455 if test -n "$RANLIB"; then
7456 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
7464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7465 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
7466 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7475 RANLIB=$ac_cv_prog_RANLIB
7476 if test -n "$RANLIB"; then
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
7478 $as_echo "$RANLIB" >&6; }
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7481 $as_echo "no
" >&6; }
7486 if test -z "$ac_cv_prog_RANLIB"; then
7487 ac_ct_RANLIB=$RANLIB
7488 # Extract the first word of "ranlib
", so it can be a program name with args.
7489 set dummy ranlib; ac_word=$2
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7491 $as_echo_n "checking
for $ac_word...
" >&6; }
7492 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7493 $as_echo_n "(cached
) " >&6
7495 if test -n "$ac_ct_RANLIB"; then
7496 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 test -z "$as_dir" && as_dir=.
7503 for ac_exec_ext in '' $ac_executable_extensions; do
7504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7505 ac_cv_prog_ac_ct_RANLIB="ranlib
"
7506 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7515 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7516 if test -n "$ac_ct_RANLIB"; then
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
7518 $as_echo "$ac_ct_RANLIB" >&6; }
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7521 $as_echo "no
" >&6; }
7524 if test "x
$ac_ct_RANLIB" = x; then
7527 case $cross_compiling:$ac_tool_warned in
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7530 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7531 ac_tool_warned=yes ;;
7533 RANLIB=$ac_ct_RANLIB
7536 RANLIB="$ac_cv_prog_RANLIB"
7539 test -z "$RANLIB" && RANLIB=:
7540 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7541 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
7542 RANLIB="$RANLIB $plugin_option"
7551 # Determine commands to create old-style static archives.
7552 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7553 old_postinstall_cmds='chmod 644 $oldlib'
7554 old_postuninstall_cmds=
7556 if test -n "$RANLIB"; then
7559 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
7562 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
7565 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
7570 lock_old_archive_extraction=yes ;;
7572 lock_old_archive_extraction=no ;;
7613 # If no C compiler was specified, use CC.
7616 # If no C compiler flags were specified, use CFLAGS.
7617 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7619 # Allow CC to be a program name with arguments.
7623 # Check for command to grab the raw symbol name followed by C symbol from nm.
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
7625 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
7626 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7627 $as_echo_n "(cached
) " >&6
7630 # These are sane defaults that work on at least a few old systems.
7631 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7633 # Character class describing NM global symbol codes.
7634 symcode='[BCDEGRST]'
7636 # Regexp to match symbols that can be accessed directly from C.
7637 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7639 # Define system-specific variables.
7644 cygwin* | mingw* | pw32* | cegcc*)
7645 symcode='[ABCDGISTW]'
7648 if test "$host_cpu" = ia64; then
7649 symcode='[ABCDEGRST]'
7653 symcode='[BCDEGRST]'
7656 symcode='[BCDEGQRST]'
7667 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7675 # If we're using GNU nm, then use its standard symbol codes.
7676 case `$NM -V 2>&1` in
7677 *GNU* | *'with BFD'*)
7678 symcode='[ABCDGIRSTW]' ;;
7681 # Transform an extracted symbol line into a proper C declaration.
7682 # Some systems (esp. on ia64) link data and code symbols differently,
7683 # so use this general approach.
7684 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7686 # Transform an extracted symbol line into symbol name and symbol address
7687 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7688 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'"
7690 # Handle CRLF in mingw tool chain
7694 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7698 # Try without a prefix underscore, then with it.
7699 for ac_symprfx in "" "_
"; do
7701 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7702 symxfrm="\\1 $ac_symprfx\\2 \\2"
7704 # Write the raw and C identifiers.
7705 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
7706 # Fake it for dumpbin and say T for any non-static function
7707 # and D for any global variable.
7708 # Also find C++ and __fastcall symbols from MSVC++,
7709 # which start with @ or ?.
7710 lt_cv_sys_global_symbol_pipe="$AWK '"\
7711 " {last_section=section; section=\$ 3};"\
7712 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7713 " \$ 0!~/External *\|/{next};"\
7714 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7715 " {if(hide[section]) next};"\
7716 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7717 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7718 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7719 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7720 " ' prfx
=^
$ac_symprfx"
7722 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7725 # Check to see that the pipe works correctly.
7729 cat > conftest.$ac_ext <<_LT_EOF
7734 void nm_test_func(void);
7735 void nm_test_func(void){}
7739 int main(){nm_test_var='a';nm_test_func();return(0);}
7742 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7743 (eval $ac_compile) 2>&5
7745 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7746 test $ac_status = 0; }; then
7747 # Now try to grab the symbols.
7749 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
7750 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7752 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7753 test $ac_status = 0; } && test -s "$nlist"; then
7754 # Try sorting and uniquifying the output.
7755 if sort "$nlist" | uniq > "$nlist"T; then
7756 mv -f "$nlist"T "$nlist"
7761 # Make sure that we snagged all the symbols we need.
7762 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7763 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7764 cat <<_LT_EOF > conftest.$ac_ext
7770 # Now generate the symbol file.
7771 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7773 cat <<_LT_EOF >> conftest.$ac_ext
7775 /* The mapping between symbol names and symbols. */
7780 lt__PROGRAM__LTX_preloaded_symbols[] =
7782 { "@PROGRAM@
", (void *) 0 },
7784 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7785 cat <<\_LT_EOF >> conftest.$ac_ext
7789 /* This works around a problem in FreeBSD linker */
7790 #ifdef FREEBSD_WORKAROUND
7791 static const void *lt_preloaded_setup() {
7792 return lt__PROGRAM__LTX_preloaded_symbols;
7800 # Now try linking the two files.
7801 mv conftest.$ac_objext conftstm.$ac_objext
7802 lt_save_LIBS="$LIBS"
7803 lt_save_CFLAGS="$CFLAGS"
7804 LIBS="conftstm.
$ac_objext"
7805 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7806 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7807 (eval $ac_link) 2>&5
7809 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7810 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7813 LIBS="$lt_save_LIBS"
7814 CFLAGS="$lt_save_CFLAGS"
7816 echo "cannot
find nm_test_func
in $nlist" >&5
7819 echo "cannot
find nm_test_var
in $nlist" >&5
7822 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
7825 echo "$progname: failed program was
:" >&5
7826 cat conftest.$ac_ext >&5
7828 rm -rf conftest* conftst*
7830 # Do not use the global_symbol_pipe unless it works.
7831 if test "$pipe_works" = yes; then
7834 lt_cv_sys_global_symbol_pipe=
7840 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7841 lt_cv_sys_global_symbol_to_cdecl=
7843 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
7845 $as_echo "failed
" >&6; }
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
7848 $as_echo "ok
" >&6; }
7872 # Check whether --enable-libtool-lock was given.
7873 if test "${enable_libtool_lock+set}" = set; then :
7874 enableval=$enable_libtool_lock;
7877 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
7879 # Some flags need to be propagated to the compiler or linker for good
7883 # Find out which ABI we are using.
7884 echo 'int i;' > conftest.$ac_ext
7885 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7886 (eval $ac_compile) 2>&5
7888 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7889 test $ac_status = 0; }; then
7890 case `/usr/bin/file conftest.$ac_objext` in
7902 # Find out which ABI we are using.
7903 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
7904 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7905 (eval $ac_compile) 2>&5
7907 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7908 test $ac_status = 0; }; then
7909 if test "$lt_cv_prog_gnu_ld" = yes; then
7910 case `/usr/bin/file conftest.$ac_objext` in
7912 LD="${LD-ld} -melf32bsmip"
7915 LD="${LD-ld} -melf32bmipn32"
7918 LD="${LD-ld} -melf64bmip"
7922 case `/usr/bin/file conftest.$ac_objext` in
7938 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7939 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7940 # Find out which ABI we are using.
7941 echo 'int i;' > conftest.$ac_ext
7942 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7943 (eval $ac_compile) 2>&5
7945 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7946 test $ac_status = 0; }; then
7947 case `/usr/bin/file conftest.o` in
7950 x86_64-*kfreebsd*-gnu)
7951 LD="${LD-ld} -m elf_i386_fbsd
"
7954 case `/usr/bin/file conftest.o` in
7956 LD="${LD-ld} -m elf32_x86_64
"
7959 LD="${LD-ld} -m elf_i386
"
7963 powerpc64le-*linux*)
7964 LD="${LD-ld} -m elf32lppclinux
"
7967 LD="${LD-ld} -m elf32ppclinux
"
7970 LD="${LD-ld} -m elf_s390
"
7973 LD="${LD-ld} -m elf32_sparc
"
7979 x86_64-*kfreebsd*-gnu)
7980 LD="${LD-ld} -m elf_x86_64_fbsd
"
7983 LD="${LD-ld} -m elf_x86_64
"
7986 LD="${LD-ld} -m elf64lppc
"
7989 LD="${LD-ld} -m elf64ppc
"
7991 s390*-*linux*|s390*-*tpf*)
7992 LD="${LD-ld} -m elf64_s390
"
7995 LD="${LD-ld} -m elf64_sparc
"
8005 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8006 SAVE_CFLAGS="$CFLAGS"
8007 CFLAGS="$CFLAGS -belf"
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
8009 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
8010 if ${lt_cv_cc_needs_belf+:} false; then :
8011 $as_echo_n "(cached
) " >&6
8014 ac_cpp='$CPP $CPPFLAGS'
8015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8020 /* end confdefs.h. */
8030 if ac_fn_c_try_link "$LINENO"; then :
8031 lt_cv_cc_needs_belf=yes
8033 lt_cv_cc_needs_belf=no
8035 rm -f core conftest.err conftest.$ac_objext \
8036 conftest$ac_exeext conftest.$ac_ext
8038 ac_cpp='$CPP $CPPFLAGS'
8039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
8045 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8046 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8047 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8048 CFLAGS="$SAVE_CFLAGS"
8052 # Find out which ABI we are using.
8053 echo 'int i;' > conftest.$ac_ext
8054 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8055 (eval $ac_compile) 2>&5
8057 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
8058 test $ac_status = 0; }; then
8059 case `/usr/bin/file conftest.o` in
8061 case $lt_cv_prog_gnu_ld in
8062 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
8064 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8076 need_locks="$enable_libtool_lock"
8080 rhapsody* | darwin*)
8081 if test -n "$ac_tool_prefix"; then
8082 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
8083 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8085 $as_echo_n "checking
for $ac_word...
" >&6; }
8086 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8087 $as_echo_n "(cached
) " >&6
8089 if test -n "$DSYMUTIL"; then
8090 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096 test -z "$as_dir" && as_dir=.
8097 for ac_exec_ext in '' $ac_executable_extensions; do
8098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8099 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
8100 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8109 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8110 if test -n "$DSYMUTIL"; then
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
8112 $as_echo "$DSYMUTIL" >&6; }
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8115 $as_echo "no
" >&6; }
8120 if test -z "$ac_cv_prog_DSYMUTIL"; then
8121 ac_ct_DSYMUTIL=$DSYMUTIL
8122 # Extract the first word of "dsymutil
", so it can be a program name with args.
8123 set dummy dsymutil; ac_word=$2
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8125 $as_echo_n "checking
for $ac_word...
" >&6; }
8126 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8127 $as_echo_n "(cached
) " >&6
8129 if test -n "$ac_ct_DSYMUTIL"; then
8130 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136 test -z "$as_dir" && as_dir=.
8137 for ac_exec_ext in '' $ac_executable_extensions; do
8138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8139 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
8140 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8149 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8150 if test -n "$ac_ct_DSYMUTIL"; then
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
8152 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8155 $as_echo "no
" >&6; }
8158 if test "x
$ac_ct_DSYMUTIL" = x; then
8161 case $cross_compiling:$ac_tool_warned in
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8164 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8165 ac_tool_warned=yes ;;
8167 DSYMUTIL=$ac_ct_DSYMUTIL
8170 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8173 if test -n "$ac_tool_prefix"; then
8174 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
8175 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8177 $as_echo_n "checking
for $ac_word...
" >&6; }
8178 if ${ac_cv_prog_NMEDIT+:} false; then :
8179 $as_echo_n "(cached
) " >&6
8181 if test -n "$NMEDIT"; then
8182 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188 test -z "$as_dir" && as_dir=.
8189 for ac_exec_ext in '' $ac_executable_extensions; do
8190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8191 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
8192 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8201 NMEDIT=$ac_cv_prog_NMEDIT
8202 if test -n "$NMEDIT"; then
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
8204 $as_echo "$NMEDIT" >&6; }
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8207 $as_echo "no
" >&6; }
8212 if test -z "$ac_cv_prog_NMEDIT"; then
8213 ac_ct_NMEDIT=$NMEDIT
8214 # Extract the first word of "nmedit
", so it can be a program name with args.
8215 set dummy nmedit; ac_word=$2
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8217 $as_echo_n "checking
for $ac_word...
" >&6; }
8218 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8219 $as_echo_n "(cached
) " >&6
8221 if test -n "$ac_ct_NMEDIT"; then
8222 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228 test -z "$as_dir" && as_dir=.
8229 for ac_exec_ext in '' $ac_executable_extensions; do
8230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8231 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
8232 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8241 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8242 if test -n "$ac_ct_NMEDIT"; then
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
8244 $as_echo "$ac_ct_NMEDIT" >&6; }
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8247 $as_echo "no
" >&6; }
8250 if test "x
$ac_ct_NMEDIT" = x; then
8253 case $cross_compiling:$ac_tool_warned in
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8256 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8257 ac_tool_warned=yes ;;
8259 NMEDIT=$ac_ct_NMEDIT
8262 NMEDIT="$ac_cv_prog_NMEDIT"
8265 if test -n "$ac_tool_prefix"; then
8266 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
8267 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8269 $as_echo_n "checking
for $ac_word...
" >&6; }
8270 if ${ac_cv_prog_LIPO+:} false; then :
8271 $as_echo_n "(cached
) " >&6
8273 if test -n "$LIPO"; then
8274 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8280 test -z "$as_dir" && as_dir=.
8281 for ac_exec_ext in '' $ac_executable_extensions; do
8282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8283 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
8284 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8293 LIPO=$ac_cv_prog_LIPO
8294 if test -n "$LIPO"; then
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
8296 $as_echo "$LIPO" >&6; }
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8299 $as_echo "no
" >&6; }
8304 if test -z "$ac_cv_prog_LIPO"; then
8306 # Extract the first word of "lipo
", so it can be a program name with args.
8307 set dummy lipo; ac_word=$2
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8309 $as_echo_n "checking
for $ac_word...
" >&6; }
8310 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8311 $as_echo_n "(cached
) " >&6
8313 if test -n "$ac_ct_LIPO"; then
8314 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320 test -z "$as_dir" && as_dir=.
8321 for ac_exec_ext in '' $ac_executable_extensions; do
8322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8323 ac_cv_prog_ac_ct_LIPO="lipo
"
8324 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8333 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8334 if test -n "$ac_ct_LIPO"; then
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
8336 $as_echo "$ac_ct_LIPO" >&6; }
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8339 $as_echo "no
" >&6; }
8342 if test "x
$ac_ct_LIPO" = x; then
8345 case $cross_compiling:$ac_tool_warned in
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8348 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8349 ac_tool_warned=yes ;;
8354 LIPO="$ac_cv_prog_LIPO"
8357 if test -n "$ac_tool_prefix"; then
8358 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
8359 set dummy ${ac_tool_prefix}otool; ac_word=$2
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8361 $as_echo_n "checking
for $ac_word...
" >&6; }
8362 if ${ac_cv_prog_OTOOL+:} false; then :
8363 $as_echo_n "(cached
) " >&6
8365 if test -n "$OTOOL"; then
8366 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372 test -z "$as_dir" && as_dir=.
8373 for ac_exec_ext in '' $ac_executable_extensions; do
8374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8375 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
8376 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8385 OTOOL=$ac_cv_prog_OTOOL
8386 if test -n "$OTOOL"; then
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
8388 $as_echo "$OTOOL" >&6; }
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8391 $as_echo "no
" >&6; }
8396 if test -z "$ac_cv_prog_OTOOL"; then
8398 # Extract the first word of "otool
", so it can be a program name with args.
8399 set dummy otool; ac_word=$2
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8401 $as_echo_n "checking
for $ac_word...
" >&6; }
8402 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8403 $as_echo_n "(cached
) " >&6
8405 if test -n "$ac_ct_OTOOL"; then
8406 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412 test -z "$as_dir" && as_dir=.
8413 for ac_exec_ext in '' $ac_executable_extensions; do
8414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8415 ac_cv_prog_ac_ct_OTOOL="otool
"
8416 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8425 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8426 if test -n "$ac_ct_OTOOL"; then
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
8428 $as_echo "$ac_ct_OTOOL" >&6; }
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8431 $as_echo "no
" >&6; }
8434 if test "x
$ac_ct_OTOOL" = x; then
8437 case $cross_compiling:$ac_tool_warned in
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8440 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8441 ac_tool_warned=yes ;;
8446 OTOOL="$ac_cv_prog_OTOOL"
8449 if test -n "$ac_tool_prefix"; then
8450 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
8451 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8453 $as_echo_n "checking
for $ac_word...
" >&6; }
8454 if ${ac_cv_prog_OTOOL64+:} false; then :
8455 $as_echo_n "(cached
) " >&6
8457 if test -n "$OTOOL64"; then
8458 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8464 test -z "$as_dir" && as_dir=.
8465 for ac_exec_ext in '' $ac_executable_extensions; do
8466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8467 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
8468 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8477 OTOOL64=$ac_cv_prog_OTOOL64
8478 if test -n "$OTOOL64"; then
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
8480 $as_echo "$OTOOL64" >&6; }
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8483 $as_echo "no
" >&6; }
8488 if test -z "$ac_cv_prog_OTOOL64"; then
8489 ac_ct_OTOOL64=$OTOOL64
8490 # Extract the first word of "otool64
", so it can be a program name with args.
8491 set dummy otool64; ac_word=$2
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8493 $as_echo_n "checking
for $ac_word...
" >&6; }
8494 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8495 $as_echo_n "(cached
) " >&6
8497 if test -n "$ac_ct_OTOOL64"; then
8498 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8504 test -z "$as_dir" && as_dir=.
8505 for ac_exec_ext in '' $ac_executable_extensions; do
8506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8507 ac_cv_prog_ac_ct_OTOOL64="otool64
"
8508 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8517 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8518 if test -n "$ac_ct_OTOOL64"; then
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
8520 $as_echo "$ac_ct_OTOOL64" >&6; }
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8523 $as_echo "no
" >&6; }
8526 if test "x
$ac_ct_OTOOL64" = x; then
8529 case $cross_compiling:$ac_tool_warned in
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8532 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8533 ac_tool_warned=yes ;;
8535 OTOOL64=$ac_ct_OTOOL64
8538 OTOOL64="$ac_cv_prog_OTOOL64"
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
8568 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
8569 if ${lt_cv_apple_cc_single_mod+:} false; then :
8570 $as_echo_n "(cached
) " >&6
8572 lt_cv_apple_cc_single_mod=no
8573 if test -z "${LT_MULTI_MODULE}"; then
8574 # By default we will add the -single_module flag. You can override
8575 # by either setting the environment variable LT_MULTI_MODULE
8576 # non-empty at configure time, or by adding -multi_module to the
8578 rm -rf libconftest.dylib*
8579 echo "int foo
(void
){return 1;}" > conftest.c
8580 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8581 -dynamiclib -Wl,-single_module conftest.c
" >&5
8582 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8583 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8585 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8586 lt_cv_apple_cc_single_mod=yes
8588 cat conftest.err >&5
8590 rm -rf libconftest.dylib*
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
8595 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
8597 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
8598 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8599 $as_echo_n "(cached
) " >&6
8601 lt_cv_ld_exported_symbols_list=no
8602 save_LDFLAGS=$LDFLAGS
8603 echo "_main
" > conftest.sym
8604 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
8605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8606 /* end confdefs.h. */
8616 if ac_fn_c_try_link "$LINENO"; then :
8617 lt_cv_ld_exported_symbols_list=yes
8619 lt_cv_ld_exported_symbols_list=no
8621 rm -f core conftest.err conftest.$ac_objext \
8622 conftest$ac_exeext conftest.$ac_ext
8623 LDFLAGS="$save_LDFLAGS"
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
8627 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
8629 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
8630 if ${lt_cv_ld_force_load+:} false; then :
8631 $as_echo_n "(cached
) " >&6
8633 lt_cv_ld_force_load=no
8634 cat > conftest.c << _LT_EOF
8635 int forced_loaded() { return 2;}
8637 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
8638 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8639 echo "$AR cru libconftest.a conftest.o
" >&5
8640 $AR cru libconftest.a conftest.o 2>&5
8641 cat > conftest.c << _LT_EOF
8642 int main() { return 0;}
8644 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
8645 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8647 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8648 lt_cv_ld_force_load=yes
8650 cat conftest.err >&5
8652 rm -f conftest.err libconftest.a conftest conftest.c
8653 rm -rf conftest.dSYM
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
8657 $as_echo "$lt_cv_ld_force_load" >&6; }
8659 rhapsody* | darwin1.[012])
8660 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8662 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8663 darwin*) # darwin 5.x on
8664 # if running on 10.5 or later, the deployment target defaults
8665 # to the OS version, if on x86, and 10.4, the deployment
8666 # target defaults to 10.4. Don't you love it?
8667 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8668 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8669 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8671 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8673 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8677 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8678 _lt_dar_single_mod='$single_module'
8680 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8681 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8683 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8685 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
8686 _lt_dsymutil='~$DSYMUTIL $lib || :'
8693 for ac_header in dlfcn.h
8695 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
" "$ac_includes_default
8697 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
8698 cat >>confdefs.h <<_ACEOF
8699 #define HAVE_DLFCN_H 1
8722 # Check whether --enable-static was given.
8723 if test "${enable_static+set}" = set; then :
8724 enableval=$enable_static; p=${PACKAGE-default}
8726 yes) enable_static=yes ;;
8727 no) enable_static=no ;;
8730 # Look at the argument we got. We use all the common list separators.
8731 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8732 for pkg in $enableval; do
8734 if test "X
$pkg" = "X
$p"; then
8754 # Check whether --with-pic was given.
8755 if test "${with_pic+set}" = set; then :
8756 withval=$with_pic; pic_mode="$withval"
8762 test -z "$pic_mode" && pic_mode=default
8770 # Check whether --enable-fast-install was given.
8771 if test "${enable_fast_install+set}" = set; then :
8772 enableval=$enable_fast_install; p=${PACKAGE-default}
8774 yes) enable_fast_install=yes ;;
8775 no) enable_fast_install=no ;;
8777 enable_fast_install=no
8778 # Look at the argument we got. We use all the common list separators.
8779 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8780 for pkg in $enableval; do
8782 if test "X
$pkg" = "X
$p"; then
8783 enable_fast_install=yes
8790 enable_fast_install=yes
8803 # This can be used to rebuild libtool when needed
8804 LIBTOOL_DEPS="$ltmain"
8806 # Always use our own libtool.
8807 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8834 test -z "$LN_S" && LN_S="ln -s"
8849 if test -n "${ZSH_VERSION+set}" ; then
8850 setopt NO_GLOB_SUBST
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
8854 $as_echo_n "checking
for objdir...
" >&6; }
8855 if ${lt_cv_objdir+:} false; then :
8856 $as_echo_n "(cached
) " >&6
8858 rm -f .libs 2>/dev/null
8859 mkdir .libs 2>/dev/null
8860 if test -d .libs; then
8863 # MS-DOS does not allow filenames that begin with a dot.
8866 rmdir .libs 2>/dev/null
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
8869 $as_echo "$lt_cv_objdir" >&6; }
8870 objdir=$lt_cv_objdir
8876 cat >>confdefs.h <<_ACEOF
8877 #define LT_OBJDIR "$lt_cv_objdir/"
8885 # AIX sometimes has problems with the GCC collect2 program. For some
8886 # reason, if we set the COLLECT_NAMES environment variable, the problems
8887 # vanish in a puff of smoke.
8888 if test "X
${COLLECT_NAMES+set}" != Xset; then
8890 export COLLECT_NAMES
8897 can_build_shared=yes
8899 # All known linkers require a `.a' archive for static linking (except MSVC,
8900 # which needs '.lib').
8903 with_gnu_ld="$lt_cv_prog_gnu_ld"
8906 old_CFLAGS="$CFLAGS"
8908 # Set sane defaults for various variables
8909 test -z "$CC" && CC=cc
8910 test -z "$LTCC" && LTCC=$CC
8911 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8912 test -z "$LD" && LD=ld
8913 test -z "$ac_objext" && ac_objext=o
8915 for cc_temp in $compiler""; do
8917 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8918 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8923 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
8926 # Only perform the check for file, if the check method requires it
8927 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8928 case $deplibs_check_method in
8930 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
8932 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
8933 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8934 $as_echo_n "(cached
) " >&6
8938 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8941 lt_save_MAGIC_CMD="$MAGIC_CMD"
8942 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8943 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
8944 for ac_dir in $ac_dummy; do
8946 test -z "$ac_dir" && ac_dir=.
8947 if test -f $ac_dir/${ac_tool_prefix}file; then
8948 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8949 if test -n "$file_magic_test_file"; then
8950 case $deplibs_check_method in
8952 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
8953 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8954 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8955 $EGREP "$file_magic_regex" > /dev/null; then
8960 *** Warning: the command libtool uses to detect shared libraries,
8961 *** $file_magic_cmd, produces output that libtool cannot recognize.
8962 *** The result is that libtool may fail to recognize shared libraries
8963 *** as such. This will affect the creation of libtool libraries that
8964 *** depend on shared libraries, but programs linked with such libtool
8965 *** libraries will work regardless of this problem. Nevertheless, you
8966 *** may want to report the problem to your system manager and/or to
8967 *** bug-libtool@gnu.org
8977 MAGIC_CMD="$lt_save_MAGIC_CMD"
8982 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8983 if test -n "$MAGIC_CMD"; then
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
8985 $as_echo "$MAGIC_CMD" >&6; }
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8988 $as_echo "no
" >&6; }
8995 if test -z "$lt_cv_path_MAGIC_CMD"; then
8996 if test -n "$ac_tool_prefix"; then
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
8998 $as_echo_n "checking
for file...
" >&6; }
8999 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9000 $as_echo_n "(cached
) " >&6
9004 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9007 lt_save_MAGIC_CMD="$MAGIC_CMD"
9008 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9009 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
9010 for ac_dir in $ac_dummy; do
9012 test -z "$ac_dir" && ac_dir=.
9013 if test -f $ac_dir/file; then
9014 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9015 if test -n "$file_magic_test_file"; then
9016 case $deplibs_check_method in
9018 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
9019 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9020 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9021 $EGREP "$file_magic_regex" > /dev/null; then
9026 *** Warning: the command libtool uses to detect shared libraries,
9027 *** $file_magic_cmd, produces output that libtool cannot recognize.
9028 *** The result is that libtool may fail to recognize shared libraries
9029 *** as such. This will affect the creation of libtool libraries that
9030 *** depend on shared libraries, but programs linked with such libtool
9031 *** libraries will work regardless of this problem. Nevertheless, you
9032 *** may want to report the problem to your system manager and/or to
9033 *** bug-libtool@gnu.org
9043 MAGIC_CMD="$lt_save_MAGIC_CMD"
9048 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9049 if test -n "$MAGIC_CMD"; then
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
9051 $as_echo "$MAGIC_CMD" >&6; }
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
9054 $as_echo "no
" >&6; }
9067 # Use C for the default configuration in the libtool script
9071 ac_cpp='$CPP $CPPFLAGS'
9072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9077 # Source file extension for C test sources.
9080 # Object file extension for compiled C test sources.
9084 # Code to be used in simple compile tests
9085 lt_simple_compile_test_code="int some_variable
= 0;"
9087 # Code to be used in simple link tests
9088 lt_simple_link_test_code='int main(){return(0);}'
9096 # If no C compiler was specified, use CC.
9099 # If no C compiler flags were specified, use CFLAGS.
9100 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9102 # Allow CC to be a program name with arguments.
9105 # Save the default compiler, since it gets overwritten when the other
9106 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9107 compiler_DEFAULT=$CC
9109 # save warnings/boilerplate of simple test code
9110 ac_outfile=conftest.$ac_objext
9111 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9112 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9113 _lt_compiler_boilerplate=`cat conftest.err`
9116 ac_outfile=conftest.$ac_objext
9117 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9118 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9119 _lt_linker_boilerplate=`cat conftest.err`
9124 ## There is no encapsulation within the following macros, do not change
9125 ## the running order or otherwise move them around unless you know exactly
9126 ## what you are doing...
9127 if test -n "$compiler"; then
9129 lt_prog_compiler_no_builtin_flag=
9131 if test "$GCC" = yes; then
9132 case $cc_basename in
9134 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9136 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
9140 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
9141 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9142 $as_echo_n "(cached
) " >&6
9144 lt_cv_prog_compiler_rtti_exceptions=no
9145 ac_outfile=conftest.$ac_objext
9146 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9147 lt_compiler_flag="-fno-rtti -fno-exceptions"
9148 # Insert the option either (1) after the last *FLAGS variable, or
9149 # (2) before a word containing "conftest.
", or (3) at the end.
9150 # Note that $ac_compile itself does not contain backslashes and begins
9151 # with a dollar sign (not a hyphen), so the echo should work correctly.
9152 # The option is referenced via a variable to avoid confusing sed.
9153 lt_compile=`echo "$ac_compile" | $SED \
9154 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9156 -e 's:$: $lt_compiler_flag:'`
9157 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9158 (eval "$lt_compile" 2>conftest.err)
9160 cat conftest.err >&5
9161 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9162 if (exit $ac_status) && test -s "$ac_outfile"; then
9163 # The compiler can only warn and ignore the option if not recognized
9164 # So say no if there are warnings other than the usual output.
9165 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9166 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9167 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9168 lt_cv_prog_compiler_rtti_exceptions=yes
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
9175 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9177 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9178 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9190 lt_prog_compiler_wl=
9191 lt_prog_compiler_pic=
9192 lt_prog_compiler_static=
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
9195 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
9197 if test "$GCC" = yes; then
9198 lt_prog_compiler_wl='-Wl,'
9199 lt_prog_compiler_static='-static'
9203 # All AIX code is PIC.
9204 if test "$host_cpu" = ia64; then
9205 # AIX 5 now supports IA64 processor
9206 lt_prog_compiler_static='-Bstatic'
9208 lt_prog_compiler_pic='-fPIC'
9214 # see comment about AmigaOS4 .so support
9215 lt_prog_compiler_pic='-fPIC'
9218 # FIXME: we need at least 68020 code to build shared libraries, but
9219 # adding the `-m68020' flag to GCC prevents building anything better,
9221 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9226 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9227 # PIC is the default for these OSes.
9230 mingw* | cygwin* | pw32* | os2* | cegcc*)
9231 # This hack is so that the source file can tell whether it is being
9232 # built for inclusion in a dll (and should export symbols for example).
9233 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9234 # (--disable-auto-import) libraries
9235 lt_prog_compiler_pic='-DDLL_EXPORT'
9238 darwin* | rhapsody*)
9239 # PIC is the default on this platform
9240 # Common symbols not allowed in MH_DYLIB files
9241 lt_prog_compiler_pic='-fno-common'
9245 # PIC is the default for Haiku.
9246 # The "-static" flag exists, but is broken.
9247 lt_prog_compiler_static=
9251 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9252 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9253 # sets the default TLS model and affects inlining.
9259 lt_prog_compiler_pic='-fPIC'
9265 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9266 # Instead, we relocate shared libraries at runtime.
9270 # Just because we use GCC doesn't mean we suddenly get shared libraries
9271 # on systems that don't support them.
9272 lt_prog_compiler_can_build_shared=no
9277 # QNX uses GNU C++, but need to define -shared option too, otherwise
9279 lt_prog_compiler_pic='-fPIC -shared'
9283 if test -d /usr/nec; then
9284 lt_prog_compiler_pic=-Kconform_pic
9289 lt_prog_compiler_pic='-fPIC'
9293 case $cc_basename in
9294 nvcc*) # Cuda Compiler Driver 2.2
9295 lt_prog_compiler_wl='-Xlinker '
9296 lt_prog_compiler_pic='-Xcompiler -fPIC'
9300 # PORTME Check for flag to pass linker flags through the system compiler.
9303 lt_prog_compiler_wl='-Wl,'
9304 if test "$host_cpu" = ia64; then
9305 # AIX 5 now supports IA64 processor
9306 lt_prog_compiler_static='-Bstatic'
9308 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9312 mingw* | cygwin* | pw32* | os2* | cegcc*)
9313 # This hack is so that the source file can tell whether it is being
9314 # built for inclusion in a dll (and should export symbols for example).
9315 lt_prog_compiler_pic='-DDLL_EXPORT'
9318 hpux9* | hpux10* | hpux11*)
9319 lt_prog_compiler_wl='-Wl,'
9320 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9327 lt_prog_compiler_pic='+Z'
9330 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9331 lt_prog_compiler_static='${wl}-a ${wl}archive'
9334 irix5* | irix6* | nonstopux*)
9335 lt_prog_compiler_wl='-Wl,'
9336 # PIC (with -KPIC) is the default.
9337 lt_prog_compiler_static='-non_shared'
9340 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9341 case $cc_basename in
9342 # old Intel for x86_64 which still supported -KPIC.
9344 lt_prog_compiler_wl='-Wl,'
9345 lt_prog_compiler_pic='-KPIC'
9346 lt_prog_compiler_static='-static'
9348 # icc used to be incompatible with GCC.
9349 # ICC 10 doesn't accept -KPIC any more.
9351 lt_prog_compiler_wl='-Wl,'
9352 lt_prog_compiler_pic='-fPIC'
9353 lt_prog_compiler_static='-static'
9355 # Lahey Fortran 8.1.
9357 lt_prog_compiler_wl='-Wl,'
9358 lt_prog_compiler_pic='--shared'
9359 lt_prog_compiler_static='--static'
9361 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9362 # Portland Group compilers (*not* the Pentium gcc compiler,
9363 # which looks to be a dead project)
9364 lt_prog_compiler_wl='-Wl,'
9365 lt_prog_compiler_pic='-fpic'
9366 lt_prog_compiler_static='-Bstatic'
9369 lt_prog_compiler_wl='-Wl,'
9370 # All Alpha code is PIC.
9371 lt_prog_compiler_static='-non_shared'
9373 xl* | bgxl* | bgf* | mpixl*)
9374 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9375 lt_prog_compiler_wl='-Wl,'
9376 lt_prog_compiler_pic='-qpic'
9377 lt_prog_compiler_static='-qstaticlink'
9380 case `$CC -V 2>&1 | sed 5q` in
9381 *Sun\ F* | *Sun*Fortran*)
9382 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9383 lt_prog_compiler_pic='-KPIC'
9384 lt_prog_compiler_static='-Bstatic'
9385 lt_prog_compiler_wl=''
9389 lt_prog_compiler_pic='-KPIC'
9390 lt_prog_compiler_static='-Bstatic'
9391 lt_prog_compiler_wl='-Wl,'
9399 lt_prog_compiler_pic='-KPIC'
9400 lt_prog_compiler_static='-Bstatic'
9404 # QNX uses GNU C++, but need to define -shared option too, otherwise
9406 lt_prog_compiler_pic='-fPIC -shared'
9409 osf3* | osf4* | osf5*)
9410 lt_prog_compiler_wl='-Wl,'
9411 # All OSF/1 code is PIC.
9412 lt_prog_compiler_static='-non_shared'
9416 lt_prog_compiler_static='-non_shared'
9420 lt_prog_compiler_pic='-KPIC'
9421 lt_prog_compiler_static='-Bstatic'
9422 case $cc_basename in
9424 lt_prog_compiler_wl='-Qoption ld ';;
9426 lt_prog_compiler_wl='-Wl,';;
9431 lt_prog_compiler_wl='-Qoption ld '
9432 lt_prog_compiler_pic='-PIC'
9433 lt_prog_compiler_static='-Bstatic'
9436 sysv4 | sysv4.2uw2* | sysv4.3*)
9437 lt_prog_compiler_wl='-Wl,'
9438 lt_prog_compiler_pic='-KPIC'
9439 lt_prog_compiler_static='-Bstatic'
9443 if test -d /usr/nec ;then
9444 lt_prog_compiler_pic='-Kconform_pic'
9445 lt_prog_compiler_static='-Bstatic'
9449 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9450 lt_prog_compiler_wl='-Wl,'
9451 lt_prog_compiler_pic='-KPIC'
9452 lt_prog_compiler_static='-Bstatic'
9456 lt_prog_compiler_wl='-Wl,'
9457 lt_prog_compiler_can_build_shared=no
9461 lt_prog_compiler_pic='-pic'
9462 lt_prog_compiler_static='-Bstatic'
9466 lt_prog_compiler_can_build_shared=no
9472 # For platforms which do not support PIC, -DPIC is meaningless:
9474 lt_prog_compiler_pic=
9477 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
9481 $as_echo "$lt_prog_compiler_pic" >&6; }
9489 # Check to make sure the PIC flag actually works.
9491 if test -n "$lt_prog_compiler_pic"; then
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
9493 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
9494 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9495 $as_echo_n "(cached
) " >&6
9497 lt_cv_prog_compiler_pic_works=no
9498 ac_outfile=conftest.$ac_objext
9499 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9500 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9501 # Insert the option either (1) after the last *FLAGS variable, or
9502 # (2) before a word containing "conftest.
", or (3) at the end.
9503 # Note that $ac_compile itself does not contain backslashes and begins
9504 # with a dollar sign (not a hyphen), so the echo should work correctly.
9505 # The option is referenced via a variable to avoid confusing sed.
9506 lt_compile=`echo "$ac_compile" | $SED \
9507 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9508 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9509 -e 's:$: $lt_compiler_flag:'`
9510 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9511 (eval "$lt_compile" 2>conftest.err)
9513 cat conftest.err >&5
9514 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9515 if (exit $ac_status) && test -s "$ac_outfile"; then
9516 # The compiler can only warn and ignore the option if not recognized
9517 # So say no if there are warnings other than the usual output.
9518 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9519 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9520 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9521 lt_cv_prog_compiler_pic_works=yes
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
9528 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9530 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9531 case $lt_prog_compiler_pic in
9533 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9536 lt_prog_compiler_pic=
9537 lt_prog_compiler_can_build_shared=no
9548 # Check to make sure the static flag actually works.
9550 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
9552 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
9553 if ${lt_cv_prog_compiler_static_works+:} false; then :
9554 $as_echo_n "(cached
) " >&6
9556 lt_cv_prog_compiler_static_works=no
9557 save_LDFLAGS="$LDFLAGS"
9558 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9559 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9560 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9561 # The linker can only warn and ignore the option if not recognized
9562 # So say no if there are warnings
9563 if test -s conftest.err; then
9564 # Append any errors to the config.log.
9565 cat conftest.err 1>&5
9566 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9568 if diff conftest.exp conftest.er2 >/dev/null; then
9569 lt_cv_prog_compiler_static_works=yes
9572 lt_cv_prog_compiler_static_works=yes
9576 LDFLAGS="$save_LDFLAGS"
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
9580 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9582 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9585 lt_prog_compiler_static=
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
9595 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
9596 if ${lt_cv_prog_compiler_c_o+:} false; then :
9597 $as_echo_n "(cached
) " >&6
9599 lt_cv_prog_compiler_c_o=no
9600 $RM -r conftest 2>/dev/null
9604 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9606 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
9607 # Insert the option either (1) after the last *FLAGS variable, or
9608 # (2) before a word containing "conftest.
", or (3) at the end.
9609 # Note that $ac_compile itself does not contain backslashes and begins
9610 # with a dollar sign (not a hyphen), so the echo should work correctly.
9611 lt_compile=`echo "$ac_compile" | $SED \
9612 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9613 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9614 -e 's:$: $lt_compiler_flag:'`
9615 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9616 (eval "$lt_compile" 2>out/conftest.err)
9618 cat out/conftest.err >&5
9619 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9620 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9622 # The compiler can only warn and ignore the option if not recognized
9623 # So say no if there are warnings
9624 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9625 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9626 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9627 lt_cv_prog_compiler_c_o=yes
9632 # SGI C++ compiler will create directory out/ii_files/ for
9633 # template instantiation
9634 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9635 $RM out/* && rmdir out
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9642 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
9650 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
9651 if ${lt_cv_prog_compiler_c_o+:} false; then :
9652 $as_echo_n "(cached
) " >&6
9654 lt_cv_prog_compiler_c_o=no
9655 $RM -r conftest 2>/dev/null
9659 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9661 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
9662 # Insert the option either (1) after the last *FLAGS variable, or
9663 # (2) before a word containing "conftest.
", or (3) at the end.
9664 # Note that $ac_compile itself does not contain backslashes and begins
9665 # with a dollar sign (not a hyphen), so the echo should work correctly.
9666 lt_compile=`echo "$ac_compile" | $SED \
9667 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9668 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9669 -e 's:$: $lt_compiler_flag:'`
9670 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
9671 (eval "$lt_compile" 2>out/conftest.err)
9673 cat out/conftest.err >&5
9674 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
9675 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9677 # The compiler can only warn and ignore the option if not recognized
9678 # So say no if there are warnings
9679 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9680 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9681 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9682 lt_cv_prog_compiler_c_o=yes
9687 # SGI C++ compiler will create directory out/ii_files/ for
9688 # template instantiation
9689 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9690 $RM out/* && rmdir out
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
9697 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9702 hard_links="nottested
"
9703 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9704 # do not overwrite the value of need_locks provided by the user
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
9706 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
9709 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9711 ln conftest.a conftest.b 2>&5 || hard_links=no
9712 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
9714 $as_echo "$hard_links" >&6; }
9715 if test "$hard_links" = no; then
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
9717 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
9730 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
9733 allow_undefined_flag=
9734 always_export_symbols=no
9736 archive_expsym_cmds=
9737 compiler_needs_object=no
9738 enable_shared_with_static_runtimes=no
9739 export_dynamic_flag_spec=
9740 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9741 hardcode_automatic=no
9743 hardcode_direct_absolute=no
9744 hardcode_libdir_flag_spec=
9745 hardcode_libdir_flag_spec_ld=
9746 hardcode_libdir_separator=
9748 hardcode_shlibpath_var=unsupported
9750 link_all_deplibs=unknown
9753 old_archive_from_new_cmds=
9754 old_archive_from_expsyms_cmds=
9755 thread_safe_flag_spec=
9756 whole_archive_flag_spec=
9757 # include_expsyms should be a list of space-separated symbols to be *always*
9758 # included in the symbol list
9760 # exclude_expsyms can be an extended regexp of symbols to exclude
9761 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9762 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9763 # as well as any symbol that contains `d'.
9764 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9765 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9766 # platforms (ab)use it in PIC code, but their linkers get confused if
9767 # the symbol is explicitly referenced. Since portable code cannot
9768 # rely on this symbol name, it's probably fine to never include it in
9769 # preloaded symbol tables.
9770 # Exclude shared library initialization/finalization symbols.
9771 extract_expsyms_cmds=
9774 cygwin* | mingw* | pw32* | cegcc*)
9775 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9776 # When not using gcc, we currently assume that we are using
9777 # Microsoft Visual C++.
9778 if test "$GCC" != yes; then
9783 # we just hope/assume this is gcc and not c89 (= MSVC++)
9793 # On some targets, GNU ld is compatible enough with the native linker
9794 # that we're better off using the native interface for both.
9795 lt_use_gnu_ld_interface=no
9796 if test "$with_gnu_ld" = yes; then
9799 # The AIX port of GNU ld has always aspired to compatibility
9800 # with the native linker. However, as the warning in the GNU ld
9801 # block says, versions before 2.19.5* couldn't really create working
9802 # shared libraries, regardless of the interface used.
9803 case `$LD -v 2>&1` in
9804 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9805 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9806 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9808 lt_use_gnu_ld_interface=yes
9813 lt_use_gnu_ld_interface=yes
9818 if test "$lt_use_gnu_ld_interface" = yes; then
9819 # If archive_cmds runs LD, not CC, wlarc should be empty
9822 # Set some defaults for GNU ld with shared library support. These
9823 # are reset later if shared libraries are not supported. Putting them
9824 # here allows them to be overridden if necessary.
9825 runpath_var=LD_RUN_PATH
9826 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9827 export_dynamic_flag_spec='${wl}--export-dynamic'
9828 # ancient GNU ld didn't support --whole-archive et. al.
9829 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9830 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9832 whole_archive_flag_spec=
9834 supports_anon_versioning=no
9835 case `$LD -v 2>&1` in
9836 *GNU\ gold*) supports_anon_versioning=yes ;;
9837 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9838 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9839 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9840 *\ 2.11.*) ;; # other 2.11 versions
9841 *) supports_anon_versioning=yes ;;
9844 # See if GNU ld supports shared libraries.
9847 # On AIX/PPC, the GNU linker is very broken
9848 if test "$host_cpu" != ia64; then
9852 *** Warning: the GNU linker, at least up to release 2.19, is reported
9853 *** to be unable to reliably create shared libraries on AIX.
9854 *** Therefore, libtool is disabling shared libraries support. If you
9855 *** really care for shared libraries, you may want to install binutils
9856 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9857 *** You will then need to restart the configuration process.
9866 # see comment about AmigaOS4 .so support
9867 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9868 archive_expsym_cmds=''
9871 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)'
9872 hardcode_libdir_flag_spec
='-L$libdir'
9873 hardcode_minus_L
=yes
9879 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9880 allow_undefined_flag
=unsupported
9881 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9882 # support --undefined. This deserves some investigation. FIXME
9883 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9889 cygwin
* | mingw
* | pw32
* | cegcc
*)
9890 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9891 # as there is no search path for DLLs.
9892 hardcode_libdir_flag_spec
='-L$libdir'
9893 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9894 allow_undefined_flag
=unsupported
9895 always_export_symbols
=no
9896 enable_shared_with_static_runtimes
=yes
9897 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9899 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9900 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9901 # If the export-symbols file already is a .def file (1st line
9902 # is EXPORTS), use it as is; otherwise, prepend...
9903 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9904 cp $export_symbols $output_objdir/$soname.def;
9906 echo EXPORTS > $output_objdir/$soname.def;
9907 cat $export_symbols >> $output_objdir/$soname.def;
9909 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9916 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9917 link_all_deplibs
=yes
9922 hardcode_shlibpath_var
=no
9923 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9924 export_dynamic_flag_spec
='${wl}-E'
9925 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9926 # Instead, shared libraries are loaded at an image base (0x10000000 by
9927 # default) and relocated if they conflict, which is a slow very memory
9928 # consuming and fragmenting process. To avoid this, we pick a random,
9929 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9930 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9931 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9932 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'
9935 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9937 if test "$host_os" = linux-dietlibc
; then
9938 case $cc_basename in
9939 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9942 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9943 && test "$tmp_diet" = no
9945 tmp_addflag
=' $pic_flag'
9946 tmp_sharedflag
='-shared'
9947 case $cc_basename,$host_cpu in
9948 pgcc
*) # Portland Group C compiler
9949 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'
9950 tmp_addflag
=' $pic_flag'
9952 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9953 # Portland Group f77 and f90 compilers
9954 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'
9955 tmp_addflag
=' $pic_flag -Mnomain' ;;
9956 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9957 tmp_addflag
=' -i_dynamic' ;;
9958 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9959 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9960 ifc
* | ifort
*) # Intel Fortran compiler
9961 tmp_addflag
=' -nofor_main' ;;
9962 lf95
*) # Lahey Fortran 8.1
9963 whole_archive_flag_spec
=
9964 tmp_sharedflag
='--shared' ;;
9965 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9966 tmp_sharedflag
='-qmkshrobj'
9968 nvcc
*) # Cuda Compiler Driver 2.2
9969 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'
9970 compiler_needs_object
=yes
9973 case `$CC -V 2>&1 | sed 5q` in
9974 *Sun\ C
*) # Sun C 5.9
9975 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'
9976 compiler_needs_object
=yes
9977 tmp_sharedflag
='-G' ;;
9978 *Sun\ F
*) # Sun Fortran 8.3
9979 tmp_sharedflag
='-G' ;;
9981 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9983 if test "x$supports_anon_versioning" = xyes
; then
9984 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9985 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9986 echo "local: *; };" >> $output_objdir/$libname.ver~
9987 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9990 case $cc_basename in
9991 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9992 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9993 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9994 hardcode_libdir_flag_spec
=
9995 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9996 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9997 if test "x$supports_anon_versioning" = xyes
; then
9998 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9999 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10000 echo "local: *; };" >> $output_objdir/$libname.ver~
10001 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10011 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10012 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10015 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10016 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10021 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
10025 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10026 *** create shared libraries on Solaris systems. Therefore, libtool
10027 *** is disabling shared libraries support. We urge you to upgrade GNU
10028 *** binutils to release 2.9.1 or newer. Another option is to modify
10029 *** your PATH or compiler configuration so that the native linker is
10030 *** used, and then restart.
10033 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10034 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10035 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10041 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
10042 case `$LD -v 2>&1` in
10043 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
10047 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10048 *** reliably create shared libraries on SCO systems. Therefore, libtool
10049 *** is disabling shared libraries support. We urge you to upgrade GNU
10050 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10051 *** your PATH or compiler configuration so that the native linker is
10052 *** used, and then restart.
10057 # For security reasons, it is highly recommended that you always
10058 # use absolute paths for naming shared libraries, and exclude the
10059 # DT_RUNPATH tag from executables and libraries. But doing so
10060 # requires that you compile everything twice, which is a pain.
10061 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10062 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10063 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10064 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10073 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10075 hardcode_direct
=yes
10076 hardcode_shlibpath_var
=no
10080 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
10081 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10082 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10089 if test "$ld_shlibs" = no
; then
10091 hardcode_libdir_flag_spec
=
10092 export_dynamic_flag_spec
=
10093 whole_archive_flag_spec
=
10096 # PORTME fill in a description of your system's linker (not GNU ld)
10099 allow_undefined_flag
=unsupported
10100 always_export_symbols
=yes
10101 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'
10102 # Note: this linker hardcodes the directories in LIBPATH if there
10103 # are no directories specified by -L.
10104 hardcode_minus_L
=yes
10105 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10106 # Neither direct hardcoding nor static linking is supported with a
10108 hardcode_direct
=unsupported
10113 if test "$host_cpu" = ia64
; then
10114 # On IA64, the linker does run time linking by default, so we don't
10115 # have to do anything special.
10116 aix_use_runtimelinking
=no
10117 exp_sym_flag
='-Bexport'
10120 # If we're using GNU nm, then we don't want the "-C" option.
10121 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10122 # Also, AIX nm treats weak defined symbols like other global
10123 # defined symbols, whereas GNU nm marks them as "W".
10124 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
10125 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'
10127 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'
10129 aix_use_runtimelinking
=no
10131 # Test if we are trying to use run time linking or normal
10132 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10133 # need to do runtime linking.
10134 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
10135 for ld_flag
in $LDFLAGS; do
10136 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
10137 aix_use_runtimelinking
=yes
10144 exp_sym_flag
='-bexport'
10145 no_entry_flag
='-bnoentry'
10148 # When large executables or shared objects are built, AIX ld can
10149 # have problems creating the table of contents. If linking a library
10150 # or program results in "error TOC overflow" add -mminimal-toc to
10151 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10152 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10155 hardcode_direct
=yes
10156 hardcode_direct_absolute
=yes
10157 hardcode_libdir_separator
=':'
10158 link_all_deplibs
=yes
10159 file_list_spec
='${wl}-f,'
10161 if test "$GCC" = yes; then
10162 case $host_os in aix4.
[012]|aix4.
[012].
*)
10163 # We only want to do this on AIX 4.2 and lower, the check
10164 # below for broken collect2 doesn't work under 4.3+
10165 collect2name
=`${CC} -print-prog-name=collect2`
10166 if test -f "$collect2name" &&
10167 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
10169 # We have reworked collect2
10172 # We have old collect2
10173 hardcode_direct
=unsupported
10174 # It fails to find uninstalled libraries when the uninstalled
10175 # path is not listed in the libpath. Setting hardcode_minus_L
10176 # to unsupported forces relinking
10177 hardcode_minus_L
=yes
10178 hardcode_libdir_flag_spec
='-L$libdir'
10179 hardcode_libdir_separator
=
10183 shared_flag
='-shared'
10184 if test "$aix_use_runtimelinking" = yes; then
10185 shared_flag
="$shared_flag "'${wl}-G'
10189 if test "$host_cpu" = ia64
; then
10190 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10191 # chokes on -Wl,-G. The following line is correct:
10194 if test "$aix_use_runtimelinking" = yes; then
10195 shared_flag
='${wl}-G'
10197 shared_flag
='${wl}-bM:SRE'
10202 export_dynamic_flag_spec
='${wl}-bexpall'
10203 # It seems that -bexpall does not export symbols beginning with
10204 # underscore (_), so it is better to generate a list of symbols to export.
10205 always_export_symbols
=yes
10206 if test "$aix_use_runtimelinking" = yes; then
10207 # Warning - without using the other runtime loading flags (-brtl),
10208 # -berok will link without error, but may produce a broken library.
10209 allow_undefined_flag
='-berok'
10210 # Determine the default libpath from the value encoded in an
10211 # empty executable.
10212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10213 /* end confdefs.h. */
10223 if ac_fn_c_try_link
"$LINENO"; then :
10225 lt_aix_libpath_sed
='
10226 /Import File Strings/,/^$/ {
10232 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10233 # Check for a 64-bit object if we didn't find anything.
10234 if test -z "$aix_libpath"; then
10235 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10238 rm -f core conftest.err conftest.
$ac_objext \
10239 conftest
$ac_exeext conftest.
$ac_ext
10240 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10242 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
10243 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"
10245 if test "$host_cpu" = ia64
; then
10246 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
10247 allow_undefined_flag
="-z nodefs"
10248 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"
10250 # Determine the default libpath from the value encoded in an
10251 # empty executable.
10252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10253 /* end confdefs.h. */
10263 if ac_fn_c_try_link
"$LINENO"; then :
10265 lt_aix_libpath_sed
='
10266 /Import File Strings/,/^$/ {
10272 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10273 # Check for a 64-bit object if we didn't find anything.
10274 if test -z "$aix_libpath"; then
10275 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10278 rm -f core conftest.err conftest.
$ac_objext \
10279 conftest
$ac_exeext conftest.
$ac_ext
10280 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10282 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
10283 # Warning - without using the other run time loading flags,
10284 # -berok will link without error, but may produce a broken library.
10285 no_undefined_flag
=' ${wl}-bernotok'
10286 allow_undefined_flag
=' ${wl}-berok'
10287 if test "$with_gnu_ld" = yes; then
10288 # We only use this code for GNU lds that support --whole-archive.
10289 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10291 # Exported symbols can be pulled into shared objects from archives
10292 whole_archive_flag_spec
='$convenience'
10294 archive_cmds_need_lc
=yes
10295 # This is similar to how AIX traditionally builds its shared libraries.
10296 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'
10304 # see comment about AmigaOS4 .so support
10305 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10306 archive_expsym_cmds
=''
10309 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)'
10310 hardcode_libdir_flag_spec
='-L$libdir'
10311 hardcode_minus_L
=yes
10317 export_dynamic_flag_spec
=-rdynamic
10320 cygwin
* | mingw
* | pw32
* | cegcc
*)
10321 # When not using gcc, we currently assume that we are using
10322 # Microsoft Visual C++.
10323 # hardcode_libdir_flag_spec is actually meaningless, as there is
10324 # no search path for DLLs.
10325 hardcode_libdir_flag_spec
=' '
10326 allow_undefined_flag
=unsupported
10327 # Tell ltmain to make .lib files, not .a files.
10329 # Tell ltmain to make .dll files, not .so files.
10331 # FIXME: Setting linknames here is a bad hack.
10332 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10333 # The linker will automatically build a .lib file if we build a DLL.
10334 old_archive_from_new_cmds
='true'
10335 # FIXME: Should let the user specify the lib program.
10336 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
10337 fix_srcfile_path
='`cygpath -w "$srcfile"`'
10338 enable_shared_with_static_runtimes
=yes
10341 darwin
* | rhapsody
*)
10344 archive_cmds_need_lc
=no
10346 hardcode_automatic
=yes
10347 hardcode_shlibpath_var
=unsupported
10348 if test "$lt_cv_ld_force_load" = "yes"; then
10349 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\"`'
10351 whole_archive_flag_spec
=''
10353 link_all_deplibs
=yes
10354 allow_undefined_flag
="$_lt_dar_allow_undefined"
10355 case $cc_basename in
10356 ifort
*) _lt_dar_can_shared
=yes ;;
10357 *) _lt_dar_can_shared
=$GCC ;;
10359 if test "$_lt_dar_can_shared" = "yes"; then
10360 output_verbose_link_cmd
=func_echo_all
10361 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10362 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10363 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}"
10364 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}"
10373 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10374 hardcode_libdir_flag_spec
='-L$libdir'
10375 hardcode_shlibpath_var
=no
10378 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10379 # support. Future versions do this automatically, but an explicit c++rt0.o
10380 # does not break anything, and helps significantly (at the cost of a little
10383 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10384 hardcode_libdir_flag_spec
='-R$libdir'
10385 hardcode_direct
=yes
10386 hardcode_shlibpath_var
=no
10389 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10391 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10392 hardcode_direct
=yes
10393 hardcode_minus_L
=yes
10394 hardcode_shlibpath_var
=no
10397 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10398 freebsd
* | dragonfly
*)
10399 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10400 hardcode_libdir_flag_spec
='-R$libdir'
10401 hardcode_direct
=yes
10402 hardcode_shlibpath_var
=no
10406 if test "$GCC" = yes; then
10407 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'
10409 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'
10411 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10412 hardcode_libdir_separator
=:
10413 hardcode_direct
=yes
10415 # hardcode_minus_L: Not really in the search PATH,
10416 # but as the default location of the library.
10417 hardcode_minus_L
=yes
10418 export_dynamic_flag_spec
='${wl}-E'
10422 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10423 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10425 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10427 if test "$with_gnu_ld" = no
; then
10428 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10429 hardcode_libdir_flag_spec_ld
='+b $libdir'
10430 hardcode_libdir_separator
=:
10431 hardcode_direct
=yes
10432 hardcode_direct_absolute
=yes
10433 export_dynamic_flag_spec
='${wl}-E'
10434 # hardcode_minus_L: Not really in the search PATH,
10435 # but as the default location of the library.
10436 hardcode_minus_L
=yes
10441 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10444 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10447 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10450 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10456 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10459 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10463 # Older versions of the 11.00 compiler do not understand -b yet
10464 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10466 $as_echo_n "checking if $CC understands -b... " >&6; }
10467 if ${lt_cv_prog_compiler__b+:} false
; then :
10468 $as_echo_n "(cached) " >&6
10470 lt_cv_prog_compiler__b
=no
10471 save_LDFLAGS
="$LDFLAGS"
10472 LDFLAGS
="$LDFLAGS -b"
10473 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10474 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10475 # The linker can only warn and ignore the option if not recognized
10476 # So say no if there are warnings
10477 if test -s conftest.err
; then
10478 # Append any errors to the config.log.
10479 cat conftest.err
1>&5
10480 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
10481 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10482 if diff conftest.exp conftest.er2
>/dev
/null
; then
10483 lt_cv_prog_compiler__b
=yes
10486 lt_cv_prog_compiler__b
=yes
10490 LDFLAGS
="$save_LDFLAGS"
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10494 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10496 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
10497 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10499 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10505 if test "$with_gnu_ld" = no
; then
10506 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10507 hardcode_libdir_separator
=:
10512 hardcode_shlibpath_var
=no
10515 hardcode_direct
=yes
10516 hardcode_direct_absolute
=yes
10517 export_dynamic_flag_spec
='${wl}-E'
10519 # hardcode_minus_L: Not really in the search PATH,
10520 # but as the default location of the library.
10521 hardcode_minus_L
=yes
10527 irix5
* | irix6
* | nonstopux
*)
10528 if test "$GCC" = yes; then
10529 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'
10530 # Try to use the -exported_symbol ld option, if it does not
10531 # work, assume that -exports_file does not work either and
10532 # implicitly export all symbols.
10533 save_LDFLAGS
="$LDFLAGS"
10534 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10536 /* end confdefs.h. */
10539 if ac_fn_c_try_link
"$LINENO"; then :
10540 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'
10543 rm -f core conftest.err conftest.
$ac_objext \
10544 conftest
$ac_exeext conftest.
$ac_ext
10545 LDFLAGS
="$save_LDFLAGS"
10547 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'
10548 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'
10550 archive_cmds_need_lc
='no'
10551 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10552 hardcode_libdir_separator
=:
10554 link_all_deplibs
=yes
10558 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10559 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10561 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10563 hardcode_libdir_flag_spec
='-R$libdir'
10564 hardcode_direct
=yes
10565 hardcode_shlibpath_var
=no
10569 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10570 hardcode_direct
=yes
10571 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10572 hardcode_libdir_separator
=:
10573 hardcode_shlibpath_var
=no
10580 if test -f /usr
/libexec
/ld.so
; then
10581 hardcode_direct
=yes
10582 hardcode_shlibpath_var
=no
10583 hardcode_direct_absolute
=yes
10584 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10585 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10586 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10587 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10588 export_dynamic_flag_spec
='${wl}-E'
10591 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
10592 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10593 hardcode_libdir_flag_spec
='-R$libdir'
10596 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10597 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10607 hardcode_libdir_flag_spec
='-L$libdir'
10608 hardcode_minus_L
=yes
10609 allow_undefined_flag
=unsupported
10610 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'
10611 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10615 if test "$GCC" = yes; then
10616 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10617 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'
10619 allow_undefined_flag
=' -expect_unresolved \*'
10620 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'
10622 archive_cmds_need_lc
='no'
10623 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10624 hardcode_libdir_separator
=:
10627 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10628 if test "$GCC" = yes; then
10629 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10630 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'
10631 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10633 allow_undefined_flag
=' -expect_unresolved \*'
10634 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'
10635 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~
10636 $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'
10638 # Both c and cxx compiler support -rpath directly
10639 hardcode_libdir_flag_spec
='-rpath $libdir'
10641 archive_cmds_need_lc
='no'
10642 hardcode_libdir_separator
=:
10646 no_undefined_flag
=' -z defs'
10647 if test "$GCC" = yes; then
10649 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10650 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10651 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10653 case `$CC -V 2>&1` in
10656 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10657 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10658 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10662 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10663 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10664 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10668 hardcode_libdir_flag_spec
='-R$libdir'
10669 hardcode_shlibpath_var
=no
10671 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10673 # The compiler driver will combine and reorder linker options,
10674 # but understands `-z linker_flag'. GCC discards it without `$wl',
10675 # but is careful enough not to reorder.
10676 # Supported since Solaris 2.6 (maybe 2.5.1?)
10677 if test "$GCC" = yes; then
10678 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10680 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10684 link_all_deplibs
=yes
10688 if test "x$host_vendor" = xsequent
; then
10689 # Use $CC to link under sequent, because it throws in some extra .o
10690 # files that make .init and .fini sections work.
10691 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10693 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10695 hardcode_libdir_flag_spec
='-L$libdir'
10696 hardcode_direct
=yes
10697 hardcode_minus_L
=yes
10698 hardcode_shlibpath_var
=no
10702 case $host_vendor in
10704 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10705 hardcode_direct
=yes # is this really true???
10708 ## LD is ld it makes a PLAMLIB
10709 ## CC just makes a GrossModule.
10710 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10711 reload_cmds
='$CC -r -o $output$reload_objs'
10715 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10716 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10719 runpath_var
='LD_RUN_PATH'
10720 hardcode_shlibpath_var
=no
10724 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10725 hardcode_shlibpath_var
=no
10726 export_dynamic_flag_spec
='-Bexport'
10730 if test -d /usr
/nec
; then
10731 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10732 hardcode_shlibpath_var
=no
10733 runpath_var
=LD_RUN_PATH
10734 hardcode_runpath_var
=yes
10739 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10740 no_undefined_flag
='${wl}-z,text'
10741 archive_cmds_need_lc
=no
10742 hardcode_shlibpath_var
=no
10743 runpath_var
='LD_RUN_PATH'
10745 if test "$GCC" = yes; then
10746 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10747 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10749 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10750 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10754 sysv5
* | sco3.2v5
* | sco5v6
*)
10755 # Note: We can NOT use -z defs as we might desire, because we do not
10756 # link with -lc, and that would cause any symbols used from libc to
10757 # always be unresolved, which means just about no library would
10758 # ever link correctly. If we're not using GNU ld we use -z text
10759 # though, which does catch some bad symbols but isn't as heavy-handed
10761 no_undefined_flag
='${wl}-z,text'
10762 allow_undefined_flag
='${wl}-z,nodefs'
10763 archive_cmds_need_lc
=no
10764 hardcode_shlibpath_var
=no
10765 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10766 hardcode_libdir_separator
=':'
10767 link_all_deplibs
=yes
10768 export_dynamic_flag_spec
='${wl}-Bexport'
10769 runpath_var
='LD_RUN_PATH'
10771 if test "$GCC" = yes; then
10772 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10773 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10775 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10776 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10781 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10782 hardcode_libdir_flag_spec
='-L$libdir'
10783 hardcode_shlibpath_var
=no
10791 if test x
$host_vendor = xsni
; then
10793 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10794 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10801 $as_echo "$ld_shlibs" >&6; }
10802 test "$ld_shlibs" = no
&& can_build_shared
=no
10804 with_gnu_ld
=$with_gnu_ld
10821 # Do we need to explicitly link libc?
10823 case "x$archive_cmds_need_lc" in
10825 # Assume -lc should be added
10826 archive_cmds_need_lc
=yes
10828 if test "$enable_shared" = yes && test "$GCC" = yes; then
10829 case $archive_cmds in
10831 # FIXME: we may have to deal with multi-command sequences.
10834 # Test whether the compiler implicitly links with -lc since on some
10835 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10836 # to ld, don't add -lc before -lgcc.
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10838 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10839 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10840 $as_echo_n "(cached) " >&6
10843 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10846 (eval $ac_compile) 2>&5
10848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10849 test $ac_status = 0; } 2>conftest.err
; then
10852 libobjs
=conftest.
$ac_objext
10854 wl
=$lt_prog_compiler_wl
10855 pic_flag
=$lt_prog_compiler_pic
10861 lt_save_allow_undefined_flag
=$allow_undefined_flag
10862 allow_undefined_flag
=
10863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10864 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10867 test $ac_status = 0; }
10869 lt_cv_archive_cmds_need_lc
=no
10871 lt_cv_archive_cmds_need_lc
=yes
10873 allow_undefined_flag
=$lt_save_allow_undefined_flag
10875 cat conftest.err
1>&5
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10881 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10882 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11046 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11048 if test "$GCC" = yes; then
11050 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
11051 *) lt_awk_arg
="/^libraries:/" ;;
11054 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
11055 *) lt_sed_strip_eq
="s,=/,/,g" ;;
11057 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11058 case $lt_search_path_spec in
11060 # if the path contains ";" then we assume it to be the separator
11061 # otherwise default to the standard path separator (i.e. ":") - it is
11062 # assumed that no part of a normal pathname contains ";" but that should
11063 # okay in the real world where ";" in dirpaths is itself problematic.
11064 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11067 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11070 # Ok, now we have the path, separated by spaces, we can step through it
11071 # and add multilib dir if necessary.
11072 lt_tmp_lt_search_path_spec
=
11073 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11074 for lt_sys_path
in $lt_search_path_spec; do
11075 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11076 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11078 test -d "$lt_sys_path" && \
11079 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
11082 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11083 BEGIN {RS=" "; FS="/|\n";} {
11086 for (lt_i = NF; lt_i > 0; lt_i--) {
11087 if ($lt_i != "" && $lt_i != ".") {
11088 if ($lt_i == "..") {
11091 if (lt_count == 0) {
11092 lt_foo="/" $lt_i lt_foo;
11099 if (lt_foo != "") { lt_freq[lt_foo]++; }
11100 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11102 # AWK program above erroneously prepends '/' to C:/dos/paths
11105 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
11106 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11108 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11110 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11112 library_names_spec
=
11113 libname_spec
='lib$name'
11117 postuninstall_cmds
=
11121 shlibpath_overrides_runpath
=unknown
11123 dynamic_linker
="$host_os ld.so"
11124 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
11125 need_lib_prefix
=unknown
11126 hardcode_into_libs
=no
11128 # when you set need_version to no, make sure it does not cause -set_version
11129 # flags to be left without arguments
11130 need_version
=unknown
11135 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
11136 shlibpath_var
=LIBPATH
11138 # AIX 3 has no versioning support, so we append a major version to the name.
11139 soname_spec
='${libname}${release}${shared_ext}$major'
11146 hardcode_into_libs
=yes
11147 if test "$host_cpu" = ia64
; then
11148 # AIX 5 supports IA64
11149 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11150 shlibpath_var
=LD_LIBRARY_PATH
11152 # With GCC up to 2.95.x, collect2 would create an import file
11153 # for dependence libraries. The import file would start with
11154 # the line `#! .'. This would cause the generated library to
11155 # depend on `.', always an invalid library. This was fixed in
11156 # development snapshots of GCC prior to 3.0.
11158 aix4 | aix4.
[01] | aix4.
[01].
*)
11159 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11161 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
11164 can_build_shared
=no
11168 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11169 # soname into executable. Probably we can add versioning support to
11170 # collect2, so additional links can be useful in future.
11171 if test "$aix_use_runtimelinking" = yes; then
11172 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11173 # instead of lib<name>.a to let people know that these are not
11174 # typical AIX shared libraries.
11175 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11177 # We preserve .a as extension for shared libraries through AIX4.2
11178 # and later when we are not doing run time linking.
11179 library_names_spec
='${libname}${release}.a $libname.a'
11180 soname_spec
='${libname}${release}${shared_ext}$major'
11182 shlibpath_var
=LIBPATH
11189 # Since July 2007 AmigaOS4 officially supports .so libraries.
11190 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11191 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11194 library_names_spec
='$libname.ixlibrary $libname.a'
11195 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11196 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'
11202 library_names_spec
='${libname}${shared_ext}'
11203 dynamic_linker
="$host_os ld.so"
11204 shlibpath_var
=LIBRARY_PATH
11210 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11211 soname_spec
='${libname}${release}${shared_ext}$major'
11212 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
11213 shlibpath_var
=LD_LIBRARY_PATH
11214 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11215 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
11216 # the default ld.so.conf also contains /usr/contrib/lib and
11217 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11218 # libtool to hard-code these into programs
11221 cygwin
* | mingw
* | pw32
* | cegcc
*)
11222 version_type
=windows
11227 case $GCC,$host_os in
11228 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
11229 library_names_spec
='$libname.dll.a'
11230 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11231 postinstall_cmds
='base_file=`basename \${file}`~
11232 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11233 dldir=$destdir/`dirname \$dlpath`~
11234 test -d \$dldir || mkdir -p \$dldir~
11235 $install_prog $dir/$dlname \$dldir/$dlname~
11236 chmod a+x \$dldir/$dlname~
11237 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11238 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11240 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11241 dlpath=$dir/\$dldll~
11243 shlibpath_overrides_runpath
=yes
11247 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11248 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11250 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
11253 # MinGW DLLs use traditional 'lib' prefix
11254 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11257 # pw32 DLLs use 'pw' prefix rather than 'lib'
11258 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11264 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11267 dynamic_linker
='Win32 ld.exe'
11268 # FIXME: first we should search . and the directory the executable is in
11272 darwin
* | rhapsody
*)
11273 dynamic_linker
="$host_os dyld"
11274 version_type
=darwin
11277 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11278 soname_spec
='${libname}${release}${major}$shared_ext'
11279 shlibpath_overrides_runpath
=yes
11280 shlibpath_var
=DYLD_LIBRARY_PATH
11281 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
11283 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
11284 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
11291 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11292 soname_spec
='${libname}${release}${shared_ext}$major'
11293 shlibpath_var
=LD_LIBRARY_PATH
11296 freebsd
* | dragonfly
*)
11297 # DragonFly does not have aout. When/if they implement a new
11298 # versioning mechanism, adjust this.
11299 if test -x /usr
/bin
/objformat
; then
11300 objformat
=`/usr/bin/objformat`
11303 freebsd
[23].
*) objformat
=aout
;;
11304 *) objformat
=elf
;;
11307 version_type
=freebsd-
$objformat
11308 case $version_type in
11310 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11315 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11319 shlibpath_var
=LD_LIBRARY_PATH
11322 shlibpath_overrides_runpath
=yes
11324 freebsd3.
[01]* | freebsdelf3.
[01]*)
11325 shlibpath_overrides_runpath
=yes
11326 hardcode_into_libs
=yes
11328 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
11329 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
11330 shlibpath_overrides_runpath
=no
11331 hardcode_into_libs
=yes
11333 *) # from 4.6 on, and DragonFly
11334 shlibpath_overrides_runpath
=yes
11335 hardcode_into_libs
=yes
11344 dynamic_linker
="$host_os runtime_loader"
11345 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11346 soname_spec
='${libname}${release}${shared_ext}$major'
11347 shlibpath_var
=LIBRARY_PATH
11348 shlibpath_overrides_runpath
=yes
11349 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11350 hardcode_into_libs
=yes
11353 hpux9
* | hpux10
* | hpux11
*)
11354 # Give a soname corresponding to the major version so that dld.sl refuses to
11355 # link against other versions.
11362 hardcode_into_libs
=yes
11363 dynamic_linker
="$host_os dld.so"
11364 shlibpath_var
=LD_LIBRARY_PATH
11365 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11366 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11367 soname_spec
='${libname}${release}${shared_ext}$major'
11368 if test "X$HPUX_IA64_MODE" = X32
; then
11369 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11371 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
11373 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11377 hardcode_into_libs
=yes
11378 dynamic_linker
="$host_os dld.sl"
11379 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
11380 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11381 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11382 soname_spec
='${libname}${release}${shared_ext}$major'
11383 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11384 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11388 dynamic_linker
="$host_os dld.sl"
11389 shlibpath_var
=SHLIB_PATH
11390 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
11391 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11392 soname_spec
='${libname}${release}${shared_ext}$major'
11395 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11396 postinstall_cmds
='chmod 555 $lib'
11397 # or fails outright, so override atomically:
11398 install_override_mode
=555
11405 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11406 soname_spec
='${libname}${release}${shared_ext}$major'
11407 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
11408 shlibpath_var
=LD_LIBRARY_PATH
11409 shlibpath_overrides_runpath
=no
11410 hardcode_into_libs
=yes
11413 irix5
* | irix6
* | nonstopux
*)
11415 nonstopux
*) version_type
=nonstopux
;;
11417 if test "$lt_cv_prog_gnu_ld" = yes; then
11425 soname_spec
='${libname}${release}${shared_ext}$major'
11426 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11428 irix5
* | nonstopux
*)
11429 libsuff
= shlibsuff
=
11432 case $LD in # libtool.m4 will add one of these switches to LD
11433 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
11434 libsuff
= shlibsuff
= libmagic
=32-bit;;
11435 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
11436 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11437 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
11438 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11439 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
11443 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11444 shlibpath_overrides_runpath
=no
11445 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11446 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
11447 hardcode_into_libs
=yes
11450 # No shared lib support for Linux oldld, aout, or coff.
11451 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11455 # This must be Linux ELF.
11456 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
11460 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11461 soname_spec
='${libname}${release}${shared_ext}$major'
11462 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11463 shlibpath_var
=LD_LIBRARY_PATH
11464 shlibpath_overrides_runpath
=no
11466 # Some binutils ld are patched to set DT_RUNPATH
11467 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
11468 $as_echo_n "(cached) " >&6
11470 lt_cv_shlibpath_overrides_runpath
=no
11471 save_LDFLAGS
=$LDFLAGS
11472 save_libdir
=$libdir
11473 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11474 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11476 /* end confdefs.h. */
11486 if ac_fn_c_try_link
"$LINENO"; then :
11487 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
11488 lt_cv_shlibpath_overrides_runpath
=yes
11491 rm -f core conftest.err conftest.
$ac_objext \
11492 conftest
$ac_exeext conftest.
$ac_ext
11493 LDFLAGS
=$save_LDFLAGS
11494 libdir
=$save_libdir
11498 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
11500 # This implies no fast_install, which is unacceptable.
11501 # Some rework will be needed to allow for fast_install
11502 # before this can be enabled.
11503 hardcode_into_libs
=yes
11505 # Append ld.so.conf contents to the search path
11506 if test -f /etc
/ld.so.conf
; then
11507 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' ' '`
11508 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
11511 # We used to test for /lib/ld.so.1 and disable shared libraries on
11512 # powerpc, because MkLinux only supported shared libraries with the
11513 # GNU dynamic linker. Since this was broken with cross compilers,
11514 # most powerpc-linux boxes support dynamic linking these days and
11515 # people can always --disable-shared, the test was removed, and we
11516 # assume the GNU/Linux dynamic linker is in use.
11517 dynamic_linker
='GNU/Linux ld.so'
11524 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11525 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11526 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11527 dynamic_linker
='NetBSD (a.out) ld.so'
11529 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11530 soname_spec
='${libname}${release}${shared_ext}$major'
11531 dynamic_linker
='NetBSD ld.elf_so'
11533 shlibpath_var
=LD_LIBRARY_PATH
11534 shlibpath_overrides_runpath
=yes
11535 hardcode_into_libs
=yes
11540 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11541 shlibpath_var
=LD_LIBRARY_PATH
11542 shlibpath_overrides_runpath
=yes
11549 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11550 soname_spec
='${libname}${release}${shared_ext}$major'
11551 shlibpath_var
=LD_LIBRARY_PATH
11552 shlibpath_overrides_runpath
=no
11553 hardcode_into_libs
=yes
11554 dynamic_linker
='ldqnx.so'
11559 sys_lib_dlsearch_path_spec
="/usr/lib"
11561 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11563 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
11564 *) need_version
=no
;;
11566 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11567 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11568 shlibpath_var
=LD_LIBRARY_PATH
11569 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11571 openbsd2.
[89] | openbsd2.
[89].
*)
11572 shlibpath_overrides_runpath
=no
11575 shlibpath_overrides_runpath
=yes
11579 shlibpath_overrides_runpath
=yes
11584 libname_spec
='$name'
11587 library_names_spec
='$libname${shared_ext} $libname.a'
11588 dynamic_linker
='OS/2 ld.exe'
11589 shlibpath_var
=LIBPATH
11592 osf3
* | osf4
* | osf5
*)
11596 soname_spec
='${libname}${release}${shared_ext}$major'
11597 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11598 shlibpath_var
=LD_LIBRARY_PATH
11599 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11600 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
11611 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11612 soname_spec
='${libname}${release}${shared_ext}$major'
11613 shlibpath_var
=LD_LIBRARY_PATH
11614 shlibpath_overrides_runpath
=yes
11615 hardcode_into_libs
=yes
11616 # ldd complains unless libraries are executable
11617 postinstall_cmds
='chmod +x $lib'
11622 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11623 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11624 shlibpath_var
=LD_LIBRARY_PATH
11625 shlibpath_overrides_runpath
=yes
11626 if test "$with_gnu_ld" = yes; then
11634 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11635 soname_spec
='${libname}${release}${shared_ext}$major'
11636 shlibpath_var
=LD_LIBRARY_PATH
11637 case $host_vendor in
11639 shlibpath_overrides_runpath
=no
11641 runpath_var
=LD_RUN_PATH
11649 shlibpath_overrides_runpath
=no
11650 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11656 if test -d /usr
/nec
;then
11658 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11659 soname_spec
='$libname${shared_ext}.$major'
11660 shlibpath_var
=LD_LIBRARY_PATH
11664 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11665 version_type
=freebsd-elf
11668 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11669 soname_spec
='${libname}${release}${shared_ext}$major'
11670 shlibpath_var
=LD_LIBRARY_PATH
11671 shlibpath_overrides_runpath
=yes
11672 hardcode_into_libs
=yes
11673 if test "$with_gnu_ld" = yes; then
11674 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11676 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11679 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11683 sys_lib_dlsearch_path_spec
='/usr/lib'
11687 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11691 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11692 shlibpath_var
=LD_LIBRARY_PATH
11693 shlibpath_overrides_runpath
=no
11694 hardcode_into_libs
=yes
11699 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11700 soname_spec
='${libname}${release}${shared_ext}$major'
11701 shlibpath_var
=LD_LIBRARY_PATH
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11709 $as_echo "$dynamic_linker" >&6; }
11710 test "$dynamic_linker" = no
&& can_build_shared
=no
11712 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11713 if test "$GCC" = yes; then
11714 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11717 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11718 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11720 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11721 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11816 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11818 if test -n "$hardcode_libdir_flag_spec" ||
11819 test -n "$runpath_var" ||
11820 test "X$hardcode_automatic" = "Xyes" ; then
11822 # We can hardcode non-existent directories.
11823 if test "$hardcode_direct" != no
&&
11824 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11825 # have to relink, otherwise we might link with an installed library
11826 # when we should be linking with a yet-to-be-installed one
11827 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11828 test "$hardcode_minus_L" != no
; then
11829 # Linking always hardcodes the temporary library directory.
11830 hardcode_action
=relink
11832 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11833 hardcode_action
=immediate
11836 # We cannot hardcode anything, or else we can only hardcode existing
11838 hardcode_action
=unsupported
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11841 $as_echo "$hardcode_action" >&6; }
11843 if test "$hardcode_action" = relink ||
11844 test "$inherit_rpath" = yes; then
11845 # Fast installation is not supported
11846 enable_fast_install
=no
11847 elif test "$shlibpath_overrides_runpath" = yes ||
11848 test "$enable_shared" = no
; then
11849 # Fast installation is not necessary
11850 enable_fast_install
=needless
11858 if test "x$enable_dlopen" != xyes
; then
11859 enable_dlopen
=unknown
11860 enable_dlopen_self
=unknown
11861 enable_dlopen_self_static
=unknown
11868 lt_cv_dlopen
="load_add_on"
11870 lt_cv_dlopen_self
=yes
11873 mingw
* | pw32
* | cegcc
*)
11874 lt_cv_dlopen
="LoadLibrary"
11879 lt_cv_dlopen
="dlopen"
11884 # if libdl is installed we need to link against it
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11886 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11887 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11888 $as_echo_n "(cached) " >&6
11890 ac_check_lib_save_LIBS
=$LIBS
11892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11893 /* end confdefs.h. */
11895 /* Override any GCC internal prototype to avoid an error.
11896 Use char because int might match the return type of a GCC
11897 builtin and then its argument prototype would still apply. */
11910 if ac_fn_c_try_link
"$LINENO"; then :
11911 ac_cv_lib_dl_dlopen
=yes
11913 ac_cv_lib_dl_dlopen
=no
11915 rm -f core conftest.err conftest.
$ac_objext \
11916 conftest
$ac_exeext conftest.
$ac_ext
11917 LIBS
=$ac_check_lib_save_LIBS
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11920 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11921 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11922 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11925 lt_cv_dlopen
="dyld"
11927 lt_cv_dlopen_self
=yes
11934 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11935 if test "x$ac_cv_func_shl_load" = xyes
; then :
11936 lt_cv_dlopen
="shl_load"
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11939 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11940 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11941 $as_echo_n "(cached) " >&6
11943 ac_check_lib_save_LIBS
=$LIBS
11945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11946 /* end confdefs.h. */
11948 /* Override any GCC internal prototype to avoid an error.
11949 Use char because int might match the return type of a GCC
11950 builtin and then its argument prototype would still apply. */
11958 return shl_load ();
11963 if ac_fn_c_try_link
"$LINENO"; then :
11964 ac_cv_lib_dld_shl_load
=yes
11966 ac_cv_lib_dld_shl_load
=no
11968 rm -f core conftest.err conftest.
$ac_objext \
11969 conftest
$ac_exeext conftest.
$ac_ext
11970 LIBS
=$ac_check_lib_save_LIBS
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11973 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11974 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11975 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11977 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11978 if test "x$ac_cv_func_dlopen" = xyes
; then :
11979 lt_cv_dlopen
="dlopen"
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11982 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11983 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11984 $as_echo_n "(cached) " >&6
11986 ac_check_lib_save_LIBS
=$LIBS
11988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11989 /* end confdefs.h. */
11991 /* Override any GCC internal prototype to avoid an error.
11992 Use char because int might match the return type of a GCC
11993 builtin and then its argument prototype would still apply. */
12006 if ac_fn_c_try_link
"$LINENO"; then :
12007 ac_cv_lib_dl_dlopen
=yes
12009 ac_cv_lib_dl_dlopen
=no
12011 rm -f core conftest.err conftest.
$ac_objext \
12012 conftest
$ac_exeext conftest.
$ac_ext
12013 LIBS
=$ac_check_lib_save_LIBS
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12016 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12017 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
12018 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12021 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12022 if ${ac_cv_lib_svld_dlopen+:} false
; then :
12023 $as_echo_n "(cached) " >&6
12025 ac_check_lib_save_LIBS
=$LIBS
12026 LIBS
="-lsvld $LIBS"
12027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12028 /* end confdefs.h. */
12030 /* Override any GCC internal prototype to avoid an error.
12031 Use char because int might match the return type of a GCC
12032 builtin and then its argument prototype would still apply. */
12045 if ac_fn_c_try_link
"$LINENO"; then :
12046 ac_cv_lib_svld_dlopen
=yes
12048 ac_cv_lib_svld_dlopen
=no
12050 rm -f core conftest.err conftest.
$ac_objext \
12051 conftest
$ac_exeext conftest.
$ac_ext
12052 LIBS
=$ac_check_lib_save_LIBS
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12055 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12056 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
12057 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12060 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12061 if ${ac_cv_lib_dld_dld_link+:} false
; then :
12062 $as_echo_n "(cached) " >&6
12064 ac_check_lib_save_LIBS
=$LIBS
12066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12067 /* end confdefs.h. */
12069 /* Override any GCC internal prototype to avoid an error.
12070 Use char because int might match the return type of a GCC
12071 builtin and then its argument prototype would still apply. */
12079 return dld_link ();
12084 if ac_fn_c_try_link
"$LINENO"; then :
12085 ac_cv_lib_dld_dld_link
=yes
12087 ac_cv_lib_dld_dld_link
=no
12089 rm -f core conftest.err conftest.
$ac_objext \
12090 conftest
$ac_exeext conftest.
$ac_ext
12091 LIBS
=$ac_check_lib_save_LIBS
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12094 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12095 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
12096 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
12117 if test "x$lt_cv_dlopen" != xno
; then
12123 case $lt_cv_dlopen in
12125 save_CPPFLAGS
="$CPPFLAGS"
12126 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
12128 save_LDFLAGS
="$LDFLAGS"
12129 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
12132 LIBS
="$lt_cv_dlopen_libs $LIBS"
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12135 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12136 if ${lt_cv_dlopen_self+:} false
; then :
12137 $as_echo_n "(cached) " >&6
12139 if test "$cross_compiling" = yes; then :
12140 lt_cv_dlopen_self
=cross
12142 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12143 lt_status
=$lt_dlunknown
12144 cat > conftest.
$ac_ext <<_LT_EOF
12145 #line 12145 "configure"
12146 #include "confdefs.h"
12155 # define LT_DLGLOBAL RTLD_GLOBAL
12158 # define LT_DLGLOBAL DL_GLOBAL
12160 # define LT_DLGLOBAL 0
12164 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12165 find out it does not work in some platform. */
12166 #ifndef LT_DLLAZY_OR_NOW
12168 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12171 # define LT_DLLAZY_OR_NOW DL_LAZY
12174 # define LT_DLLAZY_OR_NOW RTLD_NOW
12177 # define LT_DLLAZY_OR_NOW DL_NOW
12179 # define LT_DLLAZY_OR_NOW 0
12186 /* When -fvisbility=hidden is used, assume the code has been annotated
12187 correspondingly for the symbols needed. */
12188 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12189 void fnord () __attribute__((visibility("default")));
12192 void fnord () { int i=42; }
12195 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12196 int status = $lt_dlunknown;
12200 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12203 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12204 else puts (dlerror ());
12206 /* dlclose (self); */
12214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12215 (eval $ac_link) 2>&5
12217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12218 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12219 (.
/conftest
; exit; ) >&5 2>/dev
/null
12221 case x
$lt_status in
12222 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
12223 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
12224 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
12227 # compilation failed
12228 lt_cv_dlopen_self
=no
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12236 $as_echo "$lt_cv_dlopen_self" >&6; }
12238 if test "x$lt_cv_dlopen_self" = xyes
; then
12239 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12241 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12242 if ${lt_cv_dlopen_self_static+:} false
; then :
12243 $as_echo_n "(cached) " >&6
12245 if test "$cross_compiling" = yes; then :
12246 lt_cv_dlopen_self_static
=cross
12248 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12249 lt_status
=$lt_dlunknown
12250 cat > conftest.
$ac_ext <<_LT_EOF
12251 #line 12251 "configure"
12252 #include "confdefs.h"
12261 # define LT_DLGLOBAL RTLD_GLOBAL
12264 # define LT_DLGLOBAL DL_GLOBAL
12266 # define LT_DLGLOBAL 0
12270 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12271 find out it does not work in some platform. */
12272 #ifndef LT_DLLAZY_OR_NOW
12274 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12277 # define LT_DLLAZY_OR_NOW DL_LAZY
12280 # define LT_DLLAZY_OR_NOW RTLD_NOW
12283 # define LT_DLLAZY_OR_NOW DL_NOW
12285 # define LT_DLLAZY_OR_NOW 0
12292 /* When -fvisbility=hidden is used, assume the code has been annotated
12293 correspondingly for the symbols needed. */
12294 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12295 void fnord () __attribute__((visibility("default")));
12298 void fnord () { int i=42; }
12301 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12302 int status = $lt_dlunknown;
12306 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12309 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12310 else puts (dlerror ());
12312 /* dlclose (self); */
12320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12321 (eval $ac_link) 2>&5
12323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12324 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12325 (.
/conftest
; exit; ) >&5 2>/dev
/null
12327 case x
$lt_status in
12328 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
12329 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
12330 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
12333 # compilation failed
12334 lt_cv_dlopen_self_static
=no
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12342 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12345 CPPFLAGS
="$save_CPPFLAGS"
12346 LDFLAGS
="$save_LDFLAGS"
12351 case $lt_cv_dlopen_self in
12352 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
12353 *) enable_dlopen_self
=unknown
;;
12356 case $lt_cv_dlopen_self_static in
12357 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
12358 *) enable_dlopen_self_static
=unknown
;;
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12381 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12382 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
12383 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12384 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12386 $as_echo "yes" >&6; }
12388 # FIXME - insert some real tests, host_os isn't really good enough
12391 if test -n "$STRIP" ; then
12392 striplib
="$STRIP -x"
12393 old_striplib
="$STRIP -S"
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12395 $as_echo "yes" >&6; }
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12398 $as_echo "no" >&6; }
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12403 $as_echo "no" >&6; }
12419 # Report which library types will actually be built
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12421 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12423 $as_echo "$can_build_shared" >&6; }
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12426 $as_echo_n "checking whether to build shared libraries... " >&6; }
12427 test "$can_build_shared" = "no" && enable_shared
=no
12429 # On AIX, shared libraries and static libraries use the same namespace, and
12430 # are all built from PIC.
12433 test "$enable_shared" = yes && enable_static
=no
12434 if test -n "$RANLIB"; then
12435 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12436 postinstall_cmds
='$RANLIB $lib'
12441 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
12442 test "$enable_shared" = yes && enable_static
=no
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12447 $as_echo "$enable_shared" >&6; }
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12450 $as_echo_n "checking whether to build static libraries... " >&6; }
12451 # Make sure either enable_shared or enable_static is yes.
12452 test "$enable_shared" = yes || enable_static
=yes
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12454 $as_echo "$enable_static" >&6; }
12461 ac_cpp
='$CPP $CPPFLAGS'
12462 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12463 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12464 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12468 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12469 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12470 (test "X$CXX" != "Xg++"))) ; then
12472 ac_cpp
='$CXXCPP $CPPFLAGS'
12473 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12474 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12475 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12477 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12478 if test -z "$CXXCPP"; then
12479 if ${ac_cv_prog_CXXCPP+:} false
; then :
12480 $as_echo_n "(cached) " >&6
12482 # Double quotes because CXXCPP needs to be expanded
12483 for CXXCPP
in "$CXX -E" "/lib/cpp"
12485 ac_preproc_ok
=false
12486 for ac_cxx_preproc_warn_flag
in '' yes
12488 # Use a header file that comes with gcc, so configuring glibc
12489 # with a fresh cross-compiler works.
12490 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12491 # <limits.h> exists even on freestanding compilers.
12492 # On the NeXT, cc -E runs the code through the compiler's parser,
12493 # not just through cpp. "Syntax error" is here to catch this case.
12494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12495 /* end confdefs.h. */
12497 # include <limits.h>
12499 # include <assert.h>
12503 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12506 # Broken: fails on valid input.
12509 rm -f conftest.err conftest.i conftest.
$ac_ext
12511 # OK, works on sane cases. Now check whether nonexistent headers
12512 # can be detected and how.
12513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12514 /* end confdefs.h. */
12515 #include <ac_nonexistent.h>
12517 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12518 # Broken: success on invalid input.
12521 # Passes both tests.
12525 rm -f conftest.err conftest.i conftest.
$ac_ext
12528 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12529 rm -f conftest.i conftest.err conftest.
$ac_ext
12530 if $ac_preproc_ok; then :
12535 ac_cv_prog_CXXCPP
=$CXXCPP
12538 CXXCPP
=$ac_cv_prog_CXXCPP
12540 ac_cv_prog_CXXCPP
=$CXXCPP
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12543 $as_echo "$CXXCPP" >&6; }
12544 ac_preproc_ok
=false
12545 for ac_cxx_preproc_warn_flag
in '' yes
12547 # Use a header file that comes with gcc, so configuring glibc
12548 # with a fresh cross-compiler works.
12549 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12550 # <limits.h> exists even on freestanding compilers.
12551 # On the NeXT, cc -E runs the code through the compiler's parser,
12552 # not just through cpp. "Syntax error" is here to catch this case.
12553 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12554 /* end confdefs.h. */
12556 # include <limits.h>
12558 # include <assert.h>
12562 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12565 # Broken: fails on valid input.
12568 rm -f conftest.err conftest.i conftest.
$ac_ext
12570 # OK, works on sane cases. Now check whether nonexistent headers
12571 # can be detected and how.
12572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12573 /* end confdefs.h. */
12574 #include <ac_nonexistent.h>
12576 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12577 # Broken: success on invalid input.
12580 # Passes both tests.
12584 rm -f conftest.err conftest.i conftest.
$ac_ext
12587 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12588 rm -f conftest.i conftest.err conftest.
$ac_ext
12589 if $ac_preproc_ok; then :
12592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12594 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
12595 See \`config.log' for more details" "$LINENO" 5; }
12599 ac_cpp
='$CPP $CPPFLAGS'
12600 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12601 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12602 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12605 _lt_caught_CXX_error
=yes
12609 ac_cpp
='$CXXCPP $CPPFLAGS'
12610 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12611 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12612 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12614 archive_cmds_need_lc_CXX
=no
12615 allow_undefined_flag_CXX
=
12616 always_export_symbols_CXX
=no
12617 archive_expsym_cmds_CXX
=
12618 compiler_needs_object_CXX
=no
12619 export_dynamic_flag_spec_CXX
=
12620 hardcode_direct_CXX
=no
12621 hardcode_direct_absolute_CXX
=no
12622 hardcode_libdir_flag_spec_CXX
=
12623 hardcode_libdir_flag_spec_ld_CXX
=
12624 hardcode_libdir_separator_CXX
=
12625 hardcode_minus_L_CXX
=no
12626 hardcode_shlibpath_var_CXX
=unsupported
12627 hardcode_automatic_CXX
=no
12628 inherit_rpath_CXX
=no
12630 module_expsym_cmds_CXX
=
12631 link_all_deplibs_CXX
=unknown
12632 old_archive_cmds_CXX
=$old_archive_cmds
12633 reload_flag_CXX
=$reload_flag
12634 reload_cmds_CXX
=$reload_cmds
12635 no_undefined_flag_CXX
=
12636 whole_archive_flag_spec_CXX
=
12637 enable_shared_with_static_runtimes_CXX
=no
12639 # Source file extension for C++ test sources.
12642 # Object file extension for compiled C++ test sources.
12646 # No sense in running all these tests if we already determined that
12647 # the CXX compiler isn't working. Some variables (like enable_shared)
12648 # are currently assumed to apply to all compilers on this platform,
12649 # and will be corrupted by setting them based on a non-working compiler.
12650 if test "$_lt_caught_CXX_error" != yes; then
12651 # Code to be used in simple compile tests
12652 lt_simple_compile_test_code
="int some_variable = 0;"
12654 # Code to be used in simple link tests
12655 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
12657 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12664 # If no C compiler was specified, use CC.
12667 # If no C compiler flags were specified, use CFLAGS.
12668 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
12670 # Allow CC to be a program name with arguments.
12674 # save warnings/boilerplate of simple test code
12675 ac_outfile
=conftest.
$ac_objext
12676 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
12677 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12678 _lt_compiler_boilerplate
=`cat conftest.err`
12681 ac_outfile
=conftest.
$ac_objext
12682 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
12683 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12684 _lt_linker_boilerplate
=`cat conftest.err`
12688 # Allow CC to be a program name with arguments.
12693 lt_save_with_gnu_ld
=$with_gnu_ld
12694 lt_save_path_LD
=$lt_cv_path_LD
12695 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12696 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
12698 $as_unset lt_cv_prog_gnu_ld
12700 if test -n "${lt_cv_path_LDCXX+set}"; then
12701 lt_cv_path_LD
=$lt_cv_path_LDCXX
12703 $as_unset lt_cv_path_LD
12705 test -z "${LDCXX+set}" || LD
=$LDCXX
12709 for cc_temp
in $compiler""; do
12711 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12712 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12717 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12720 if test -n "$compiler"; then
12721 # We don't want -fno-exception when compiling C++ code, so set the
12722 # no_builtin_flag separately
12723 if test "$GXX" = yes; then
12724 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
12726 lt_prog_compiler_no_builtin_flag_CXX
=
12729 if test "$GXX" = yes; then
12730 # Set up default GNU C++ configuration
12734 # Check whether --with-gnu-ld was given.
12735 if test "${with_gnu_ld+set}" = set; then :
12736 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12742 if test "$GCC" = yes; then
12743 # Check if gcc -print-prog-name=ld gives a path.
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12745 $as_echo_n "checking for ld used by $CC... " >&6; }
12748 # gcc leaves a trailing carriage return which upsets mingw
12749 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12751 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12754 # Accept absolute paths.
12756 re_direlt
='/[^/][^/]*/\.\./'
12757 # Canonicalize the pathname of ld
12758 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12759 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12760 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12762 test -z "$LD" && LD
="$ac_prog"
12765 # If it fails, then pretend we aren't using GCC.
12769 # If it is relative, then search for the first ld in PATH.
12770 with_gnu_ld
=unknown
12773 elif test "$with_gnu_ld" = yes; then
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12775 $as_echo_n "checking for GNU ld... " >&6; }
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12778 $as_echo_n "checking for non-GNU ld... " >&6; }
12780 if ${lt_cv_path_LD+:} false
; then :
12781 $as_echo_n "(cached) " >&6
12783 if test -z "$LD"; then
12784 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12785 for ac_dir
in $PATH; do
12787 test -z "$ac_dir" && ac_dir
=.
12788 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12789 lt_cv_path_LD
="$ac_dir/$ac_prog"
12790 # Check to see if the program is GNU ld. I'd rather use --version,
12791 # but apparently some variants of GNU ld only accept -v.
12792 # Break only if it was the GNU/non-GNU ld that we prefer.
12793 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12794 *GNU
* |
*'with BFD'*)
12795 test "$with_gnu_ld" != no
&& break
12798 test "$with_gnu_ld" != yes && break
12805 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12809 LD
="$lt_cv_path_LD"
12810 if test -n "$LD"; then
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12812 $as_echo "$LD" >&6; }
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12815 $as_echo "no" >&6; }
12817 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12819 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12820 if ${lt_cv_prog_gnu_ld+:} false
; then :
12821 $as_echo_n "(cached) " >&6
12823 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12824 case `$LD -v 2>&1 </dev/null` in
12825 *GNU
* |
*'with BFD'*)
12826 lt_cv_prog_gnu_ld
=yes
12829 lt_cv_prog_gnu_ld
=no
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12834 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12835 with_gnu_ld
=$lt_cv_prog_gnu_ld
12843 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12844 # archiving commands below assume that GNU ld is being used.
12845 if test "$with_gnu_ld" = yes; then
12846 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12847 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'
12849 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12850 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12852 # If archive_cmds runs LD, not CC, wlarc should be empty
12853 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12854 # investigate it a little bit more. (MM)
12857 # ancient GNU ld didn't support --whole-archive et. al.
12858 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12859 $GREP 'no-whole-archive' > /dev
/null
; then
12860 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12862 whole_archive_flag_spec_CXX
=
12868 # A generic and very simple default shared library creation
12869 # command for GNU C++ for the case where it uses the native
12870 # linker, instead of GNU ld. If possible, this setting should
12871 # overridden to take advantage of the native linker features on
12872 # the platform it is being used on.
12873 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12876 # Commands to make compiler produce verbose output that lists
12877 # what "hidden" libraries, object files and flags are used when
12878 # linking a shared library.
12879 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12887 # PORTME: fill in a description of your system's C++ link characteristics
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12889 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12893 # FIXME: insert proper C++ library support
12897 if test "$host_cpu" = ia64
; then
12898 # On IA64, the linker does run time linking by default, so we don't
12899 # have to do anything special.
12900 aix_use_runtimelinking
=no
12901 exp_sym_flag
='-Bexport'
12904 aix_use_runtimelinking
=no
12906 # Test if we are trying to use run time linking or normal
12907 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12908 # need to do runtime linking.
12909 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
12910 for ld_flag
in $LDFLAGS; do
12913 aix_use_runtimelinking
=yes
12921 exp_sym_flag
='-bexport'
12922 no_entry_flag
='-bnoentry'
12925 # When large executables or shared objects are built, AIX ld can
12926 # have problems creating the table of contents. If linking a library
12927 # or program results in "error TOC overflow" add -mminimal-toc to
12928 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12929 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12931 archive_cmds_CXX
=''
12932 hardcode_direct_CXX
=yes
12933 hardcode_direct_absolute_CXX
=yes
12934 hardcode_libdir_separator_CXX
=':'
12935 link_all_deplibs_CXX
=yes
12936 file_list_spec_CXX
='${wl}-f,'
12938 if test "$GXX" = yes; then
12939 case $host_os in aix4.
[012]|aix4.
[012].
*)
12940 # We only want to do this on AIX 4.2 and lower, the check
12941 # below for broken collect2 doesn't work under 4.3+
12942 collect2name
=`${CC} -print-prog-name=collect2`
12943 if test -f "$collect2name" &&
12944 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
12946 # We have reworked collect2
12949 # We have old collect2
12950 hardcode_direct_CXX
=unsupported
12951 # It fails to find uninstalled libraries when the uninstalled
12952 # path is not listed in the libpath. Setting hardcode_minus_L
12953 # to unsupported forces relinking
12954 hardcode_minus_L_CXX
=yes
12955 hardcode_libdir_flag_spec_CXX
='-L$libdir'
12956 hardcode_libdir_separator_CXX
=
12959 shared_flag
='-shared'
12960 if test "$aix_use_runtimelinking" = yes; then
12961 shared_flag
="$shared_flag "'${wl}-G'
12965 if test "$host_cpu" = ia64
; then
12966 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12967 # chokes on -Wl,-G. The following line is correct:
12970 if test "$aix_use_runtimelinking" = yes; then
12971 shared_flag
='${wl}-G'
12973 shared_flag
='${wl}-bM:SRE'
12978 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
12979 # It seems that -bexpall does not export symbols beginning with
12980 # underscore (_), so it is better to generate a list of symbols to
12982 always_export_symbols_CXX
=yes
12983 if test "$aix_use_runtimelinking" = yes; then
12984 # Warning - without using the other runtime loading flags (-brtl),
12985 # -berok will link without error, but may produce a broken library.
12986 allow_undefined_flag_CXX
='-berok'
12987 # Determine the default libpath from the value encoded in an empty
12989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12990 /* end confdefs.h. */
13000 if ac_fn_cxx_try_link
"$LINENO"; then :
13002 lt_aix_libpath_sed
='
13003 /Import File Strings/,/^$/ {
13009 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13010 # Check for a 64-bit object if we didn't find anything.
13011 if test -z "$aix_libpath"; then
13012 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13015 rm -f core conftest.err conftest.
$ac_objext \
13016 conftest
$ac_exeext conftest.
$ac_ext
13017 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13019 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
13021 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"
13023 if test "$host_cpu" = ia64
; then
13024 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
13025 allow_undefined_flag_CXX
="-z nodefs"
13026 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"
13028 # Determine the default libpath from the value encoded in an
13029 # empty executable.
13030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13031 /* end confdefs.h. */
13041 if ac_fn_cxx_try_link
"$LINENO"; then :
13043 lt_aix_libpath_sed
='
13044 /Import File Strings/,/^$/ {
13050 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13051 # Check for a 64-bit object if we didn't find anything.
13052 if test -z "$aix_libpath"; then
13053 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13056 rm -f core conftest.err conftest.
$ac_objext \
13057 conftest
$ac_exeext conftest.
$ac_ext
13058 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13060 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
13061 # Warning - without using the other run time loading flags,
13062 # -berok will link without error, but may produce a broken library.
13063 no_undefined_flag_CXX
=' ${wl}-bernotok'
13064 allow_undefined_flag_CXX
=' ${wl}-berok'
13065 if test "$with_gnu_ld" = yes; then
13066 # We only use this code for GNU lds that support --whole-archive.
13067 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13069 # Exported symbols can be pulled into shared objects from archives
13070 whole_archive_flag_spec_CXX
='$convenience'
13072 archive_cmds_need_lc_CXX
=yes
13073 # This is similar to how AIX traditionally builds its shared
13075 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'
13081 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
13082 allow_undefined_flag_CXX
=unsupported
13083 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13084 # support --undefined. This deserves some investigation. FIXME
13085 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13092 case $cc_basename in
13094 # FIXME: insert proper C++ library support
13100 cygwin
* | mingw
* | pw32
* | cegcc
*)
13101 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13102 # as there is no search path for DLLs.
13103 hardcode_libdir_flag_spec_CXX
='-L$libdir'
13104 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
13105 allow_undefined_flag_CXX
=unsupported
13106 always_export_symbols_CXX
=no
13107 enable_shared_with_static_runtimes_CXX
=yes
13109 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
13110 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'
13111 # If the export-symbols file already is a .def file (1st line
13112 # is EXPORTS), use it as is; otherwise, prepend...
13113 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13114 cp $export_symbols $output_objdir/$soname.def;
13116 echo EXPORTS > $output_objdir/$soname.def;
13117 cat $export_symbols >> $output_objdir/$soname.def;
13119 $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'
13124 darwin
* | rhapsody
*)
13127 archive_cmds_need_lc_CXX
=no
13128 hardcode_direct_CXX
=no
13129 hardcode_automatic_CXX
=yes
13130 hardcode_shlibpath_var_CXX
=unsupported
13131 if test "$lt_cv_ld_force_load" = "yes"; then
13132 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\"`'
13134 whole_archive_flag_spec_CXX
=''
13136 link_all_deplibs_CXX
=yes
13137 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
13138 case $cc_basename in
13139 ifort
*) _lt_dar_can_shared
=yes ;;
13140 *) _lt_dar_can_shared
=$GCC ;;
13142 if test "$_lt_dar_can_shared" = "yes"; then
13143 output_verbose_link_cmd
=func_echo_all
13144 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}"
13145 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13146 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}"
13147 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}"
13148 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13149 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}"
13150 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}"
13160 case $cc_basename in
13162 # FIXME: insert proper C++ library support
13166 # Green Hills C++ Compiler
13167 # FIXME: insert proper C++ library support
13171 # FIXME: insert proper C++ library support
13178 # C++ shared libraries reported to be fairly broken before
13184 archive_cmds_need_lc_CXX
=no
13187 freebsd
* | dragonfly
*)
13188 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13197 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13198 link_all_deplibs_CXX
=yes
13202 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
13203 hardcode_libdir_separator_CXX
=:
13204 export_dynamic_flag_spec_CXX
='${wl}-E'
13205 hardcode_direct_CXX
=yes
13206 hardcode_minus_L_CXX
=yes # Not in the search PATH,
13207 # but as the default
13208 # location of the library.
13210 case $cc_basename in
13212 # FIXME: insert proper C++ library support
13216 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'
13217 # Commands to make compiler produce verbose output that lists
13218 # what "hidden" libraries, object files and flags are used when
13219 # linking a shared library.
13221 # There doesn't appear to be a way to prevent this compiler from
13222 # explicitly linking system object files so we need to strip them
13223 # from the output so that they don't get included in the library
13225 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"'
13228 if test "$GXX" = yes; then
13229 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'
13231 # FIXME: insert proper C++ library support
13239 if test $with_gnu_ld = no
; then
13240 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
13241 hardcode_libdir_separator_CXX
=:
13247 export_dynamic_flag_spec_CXX
='${wl}-E'
13253 hardcode_direct_CXX
=no
13254 hardcode_shlibpath_var_CXX
=no
13257 hardcode_direct_CXX
=yes
13258 hardcode_direct_absolute_CXX
=yes
13259 hardcode_minus_L_CXX
=yes # Not in the search PATH,
13260 # but as the default
13261 # location of the library.
13265 case $cc_basename in
13267 # FIXME: insert proper C++ library support
13273 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13276 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13279 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13282 # Commands to make compiler produce verbose output that lists
13283 # what "hidden" libraries, object files and flags are used when
13284 # linking a shared library.
13286 # There doesn't appear to be a way to prevent this compiler from
13287 # explicitly linking system object files so we need to strip them
13288 # from the output so that they don't get included in the library
13290 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"'
13293 if test "$GXX" = yes; then
13294 if test $with_gnu_ld = no
; then
13297 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13300 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13303 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'
13308 # FIXME: insert proper C++ library support
13316 hardcode_direct_CXX
=no
13317 hardcode_shlibpath_var_CXX
=no
13318 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13319 export_dynamic_flag_spec_CXX
='${wl}-E'
13320 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13321 # Instead, shared libraries are loaded at an image base (0x10000000 by
13322 # default) and relocated if they conflict, which is a slow very memory
13323 # consuming and fragmenting process. To avoid this, we pick a random,
13324 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13325 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13326 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'
13327 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'
13330 case $cc_basename in
13333 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'
13335 # Archives containing C++ object files must be created using
13336 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13337 # necessary to make sure instantiated templates are included
13339 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
13342 if test "$GXX" = yes; then
13343 if test "$with_gnu_ld" = no
; then
13344 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'
13346 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'
13349 link_all_deplibs_CXX
=yes
13352 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
13353 hardcode_libdir_separator_CXX
=:
13354 inherit_rpath_CXX
=yes
13357 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
13358 case $cc_basename in
13360 # Kuck and Associates, Inc. (KAI) C++ Compiler
13362 # KCC will only create a shared library if the output file
13363 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13364 # to its proper name (with version) after linking.
13365 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'
13366 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'
13367 # Commands to make compiler produce verbose output that lists
13368 # what "hidden" libraries, object files and flags are used when
13369 # linking a shared library.
13371 # There doesn't appear to be a way to prevent this compiler from
13372 # explicitly linking system object files so we need to strip them
13373 # from the output so that they don't get included in the library
13375 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"'
13377 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13378 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
13380 # Archives containing C++ object files must be created using
13381 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13382 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
13387 # version 8.0 and above of icpc choke on multiply defined symbols
13388 # if we add $predep_objects and $postdep_objects, however 7.1 and
13389 # earlier do not add the objects themselves.
13390 case `$CC -V 2>&1` in
13392 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13393 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'
13395 *) # Version 8.0 or newer
13398 ia64
*) tmp_idyn
=' -i_dynamic';;
13400 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13401 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'
13404 archive_cmds_need_lc_CXX
=no
13405 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13406 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
13407 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13410 # Portland Group C++ compiler
13412 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
13413 prelink_cmds_CXX
='tpldir=Template.dir~
13415 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13416 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13417 old_archive_cmds_CXX
='tpldir=Template.dir~
13419 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13420 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13422 archive_cmds_CXX
='tpldir=Template.dir~
13424 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13425 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13426 archive_expsym_cmds_CXX
='tpldir=Template.dir~
13428 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13429 $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'
13431 *) # Version 6 and above use weak symbols
13432 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13433 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'
13437 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
13438 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
13439 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'
13443 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13444 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'
13446 runpath_var
=LD_RUN_PATH
13447 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
13448 hardcode_libdir_separator_CXX
=:
13450 # Commands to make compiler produce verbose output that lists
13451 # what "hidden" libraries, object files and flags are used when
13452 # linking a shared library.
13454 # There doesn't appear to be a way to prevent this compiler from
13455 # explicitly linking system object files so we need to strip them
13456 # from the output so that they don't get included in the library
13458 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'
13460 xl
* | mpixl
* | bgxl
*)
13461 # IBM XL 8.0 on PPC, with GNU ld
13462 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
13463 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
13464 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13465 if test "x$supports_anon_versioning" = xyes
; then
13466 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
13467 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13468 echo "local: *; };" >> $output_objdir/$libname.ver~
13469 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13473 case `$CC -V 2>&1 | sed 5q` in
13476 no_undefined_flag_CXX
=' -zdefs'
13477 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13478 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'
13479 hardcode_libdir_flag_spec_CXX
='-R$libdir'
13480 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'
13481 compiler_needs_object_CXX
=yes
13483 # Not sure whether something based on
13484 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13486 output_verbose_link_cmd
='func_echo_all'
13488 # Archives containing C++ object files must be created using
13489 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13490 # necessary to make sure instantiated templates are included
13492 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
13500 # FIXME: insert proper C++ library support
13505 # FIXME: insert proper C++ library support
13510 case $cc_basename in
13512 # FIXME: insert proper C++ library support
13516 # FIXME: insert proper C++ library support
13523 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13524 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13526 hardcode_libdir_flag_spec_CXX
='-R$libdir'
13527 hardcode_direct_CXX
=yes
13528 hardcode_shlibpath_var_CXX
=no
13530 # Workaround some broken pre-1.5 toolchains
13531 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13539 # C++ shared libraries are fairly broken
13544 if test -f /usr
/libexec
/ld.so
; then
13545 hardcode_direct_CXX
=yes
13546 hardcode_shlibpath_var_CXX
=no
13547 hardcode_direct_absolute_CXX
=yes
13548 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13549 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13550 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13551 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13552 export_dynamic_flag_spec_CXX
='${wl}-E'
13553 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13555 output_verbose_link_cmd
=func_echo_all
13561 osf3
* | osf4
* | osf5
*)
13562 case $cc_basename in
13564 # Kuck and Associates, Inc. (KAI) C++ Compiler
13566 # KCC will only create a shared library if the output file
13567 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13568 # to its proper name (with version) after linking.
13569 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'
13571 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13572 hardcode_libdir_separator_CXX
=:
13574 # Archives containing C++ object files must be created using
13575 # the KAI C++ compiler.
13577 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
13578 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
13582 # Rational C++ 2.4.1
13583 # FIXME: insert proper C++ library support
13589 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
13590 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'
13591 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
13594 allow_undefined_flag_CXX
=' -expect_unresolved \*'
13595 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'
13596 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13597 echo "-hidden">> $lib.exp~
13598 $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~
13600 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
13604 hardcode_libdir_separator_CXX
=:
13606 # Commands to make compiler produce verbose output that lists
13607 # what "hidden" libraries, object files and flags are used when
13608 # linking a shared library.
13610 # There doesn't appear to be a way to prevent this compiler from
13611 # explicitly linking system object files so we need to strip them
13612 # from the output so that they don't get included in the library
13614 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"'
13617 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
13618 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
13621 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'
13624 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'
13628 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
13629 hardcode_libdir_separator_CXX
=:
13631 # Commands to make compiler produce verbose output that lists
13632 # what "hidden" libraries, object files and flags are used when
13633 # linking a shared library.
13634 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13637 # FIXME: insert proper C++ library support
13645 # FIXME: insert proper C++ library support
13650 case $cc_basename in
13653 # FIXME: insert proper C++ library support
13658 # FIXME: insert proper C++ library support
13662 # FIXME: insert proper C++ library support
13669 case $cc_basename in
13671 # Sun C++ 4.2, 5.x and Centerline C++
13672 archive_cmds_need_lc_CXX
=yes
13673 no_undefined_flag_CXX
=' -zdefs'
13674 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13675 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13676 $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'
13678 hardcode_libdir_flag_spec_CXX
='-R$libdir'
13679 hardcode_shlibpath_var_CXX
=no
13681 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13683 # The compiler driver will combine and reorder linker options,
13684 # but understands `-z linker_flag'.
13685 # Supported since Solaris 2.6 (maybe 2.5.1?)
13686 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
13689 link_all_deplibs_CXX
=yes
13691 output_verbose_link_cmd
='func_echo_all'
13693 # Archives containing C++ object files must be created using
13694 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13695 # necessary to make sure instantiated templates are included
13697 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
13700 # Green Hills C++ Compiler
13701 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13703 # The C++ compiler must be used to create the archive.
13704 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13707 # GNU C++ compiler with Solaris linker
13708 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
13709 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
13710 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
13711 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13712 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13713 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13715 # Commands to make compiler produce verbose output that lists
13716 # what "hidden" libraries, object files and flags are used when
13717 # linking a shared library.
13718 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13720 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13722 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13723 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13724 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13726 # Commands to make compiler produce verbose output that lists
13727 # what "hidden" libraries, object files and flags are used when
13728 # linking a shared library.
13729 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13732 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
13734 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13736 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13744 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13745 no_undefined_flag_CXX
='${wl}-z,text'
13746 archive_cmds_need_lc_CXX
=no
13747 hardcode_shlibpath_var_CXX
=no
13748 runpath_var
='LD_RUN_PATH'
13750 case $cc_basename in
13752 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13753 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13756 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13757 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13762 sysv5
* | sco3.2v5
* | sco5v6
*)
13763 # Note: We can NOT use -z defs as we might desire, because we do not
13764 # link with -lc, and that would cause any symbols used from libc to
13765 # always be unresolved, which means just about no library would
13766 # ever link correctly. If we're not using GNU ld we use -z text
13767 # though, which does catch some bad symbols but isn't as heavy-handed
13769 no_undefined_flag_CXX
='${wl}-z,text'
13770 allow_undefined_flag_CXX
='${wl}-z,nodefs'
13771 archive_cmds_need_lc_CXX
=no
13772 hardcode_shlibpath_var_CXX
=no
13773 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
13774 hardcode_libdir_separator_CXX
=':'
13775 link_all_deplibs_CXX
=yes
13776 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
13777 runpath_var
='LD_RUN_PATH'
13779 case $cc_basename in
13781 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13782 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13783 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
13784 '"$old_archive_cmds_CXX"
13785 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
13786 '"$reload_cmds_CXX"
13789 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13790 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13796 case $cc_basename in
13798 # NonStop-UX NCC 3.20
13799 # FIXME: insert proper C++ library support
13803 # FIXME: insert proper C++ library support
13810 # FIXME: insert proper C++ library support
13815 # FIXME: insert proper C++ library support
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13821 $as_echo "$ld_shlibs_CXX" >&6; }
13822 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
13828 ## There is no encapsulation within the following macros, do not change
13829 ## the running order or otherwise move them around unless you know exactly
13830 ## what you are doing...
13831 # Dependencies to place before and after the object being linked:
13832 predep_objects_CXX
=
13833 postdep_objects_CXX
=
13836 compiler_lib_search_path_CXX
=
13838 cat > conftest.
$ac_ext <<_LT_EOF
13842 Foo (void) { a = 0; }
13848 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13849 (eval $ac_compile) 2>&5
13851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13852 test $ac_status = 0; }; then
13853 # Parse the compiler output and extract the necessary
13854 # objects, libraries and library flags.
13856 # Sentinel used to keep track of whether or not we are before
13857 # the conftest object file.
13858 pre_test_object_deps_done
=no
13860 for p
in `eval "$output_verbose_link_cmd"`; do
13864 # Some compilers place space between "-{L,R}" and the path.
13865 # Remove the space.
13866 if test $p = "-L" ||
13867 test $p = "-R"; then
13874 if test "$pre_test_object_deps_done" = no
; then
13877 # Internal compiler library paths should come after those
13878 # provided the user. The postdeps already come after the
13879 # user supplied libs so there is no need to process them.
13880 if test -z "$compiler_lib_search_path_CXX"; then
13881 compiler_lib_search_path_CXX
="${prev}${p}"
13883 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
13886 # The "-l" case would never come before the object being
13887 # linked, so don't bother handling this case.
13890 if test -z "$postdeps_CXX"; then
13891 postdeps_CXX
="${prev}${p}"
13893 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
13899 # This assumes that the test object file only shows up
13900 # once in the compiler output.
13901 if test "$p" = "conftest.$objext"; then
13902 pre_test_object_deps_done
=yes
13906 if test "$pre_test_object_deps_done" = no
; then
13907 if test -z "$predep_objects_CXX"; then
13908 predep_objects_CXX
="$p"
13910 predep_objects_CXX
="$predep_objects_CXX $p"
13913 if test -z "$postdep_objects_CXX"; then
13914 postdep_objects_CXX
="$p"
13916 postdep_objects_CXX
="$postdep_objects_CXX $p"
13921 *) ;; # Ignore the rest.
13929 echo "libtool.m4: error: problem compiling CXX test program"
13932 $RM -f confest.
$objext
13934 # PORTME: override above test on systems where it is broken
13937 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13938 # hack all around it, let's just trust "g++" to DTRT.
13939 predep_objects_CXX
=
13940 postdep_objects_CXX
=
13945 case `$CC -V 2>&1 | sed 5q` in
13949 # The more standards-conforming stlport4 library is
13950 # incompatible with the Cstd library. Avoid specifying
13951 # it if it's in CXXFLAGS. Ignore libCrun as
13952 # -library=stlport4 depends on it.
13953 case " $CXX $CXXFLAGS " in
13954 *" -library=stlport4 "*)
13955 solaris_use_stlport4
=yes
13959 if test "$solaris_use_stlport4" != yes; then
13960 postdeps_CXX
='-library=Cstd -library=Crun'
13967 case $cc_basename in
13969 # The more standards-conforming stlport4 library is
13970 # incompatible with the Cstd library. Avoid specifying
13971 # it if it's in CXXFLAGS. Ignore libCrun as
13972 # -library=stlport4 depends on it.
13973 case " $CXX $CXXFLAGS " in
13974 *" -library=stlport4 "*)
13975 solaris_use_stlport4
=yes
13979 # Adding this requires a known-good setup of shared libraries for
13980 # Sun compiler versions before 5.6, else PIC objects from an old
13981 # archive will be linked into the output, leading to subtle bugs.
13982 if test "$solaris_use_stlport4" != yes; then
13983 postdeps_CXX
='-library=Cstd -library=Crun'
13991 case " $postdeps_CXX " in
13992 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
13994 compiler_lib_search_dirs_CXX
=
13995 if test -n "${compiler_lib_search_path_CXX}"; then
13996 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14029 lt_prog_compiler_wl_CXX
=
14030 lt_prog_compiler_pic_CXX
=
14031 lt_prog_compiler_static_CXX
=
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14034 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14036 # C++ specific cases for pic, static, wl, etc.
14037 if test "$GXX" = yes; then
14038 lt_prog_compiler_wl_CXX
='-Wl,'
14039 lt_prog_compiler_static_CXX
='-static'
14043 # All AIX code is PIC.
14044 if test "$host_cpu" = ia64
; then
14045 # AIX 5 now supports IA64 processor
14046 lt_prog_compiler_static_CXX
='-Bstatic'
14048 lt_prog_compiler_pic_CXX
='-fPIC'
14054 # see comment about AmigaOS4 .so support
14055 lt_prog_compiler_pic_CXX
='-fPIC'
14058 # FIXME: we need at least 68020 code to build shared libraries, but
14059 # adding the `-m68020' flag to GCC prevents building anything better,
14061 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
14066 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
14067 # PIC is the default for these OSes.
14069 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
14070 # This hack is so that the source file can tell whether it is being
14071 # built for inclusion in a dll (and should export symbols for example).
14072 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14073 # (--disable-auto-import) libraries
14074 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
14076 darwin
* | rhapsody
*)
14077 # PIC is the default on this platform
14078 # Common symbols not allowed in MH_DYLIB files
14079 lt_prog_compiler_pic_CXX
='-fno-common'
14082 # DJGPP does not support shared libraries at all
14083 lt_prog_compiler_pic_CXX
=
14086 # PIC is the default for Haiku.
14087 # The "-static" flag exists, but is broken.
14088 lt_prog_compiler_static_CXX
=
14091 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14092 # Instead, we relocate shared libraries at runtime.
14095 if test -d /usr
/nec
; then
14096 lt_prog_compiler_pic_CXX
=-Kconform_pic
14100 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14101 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14102 # sets the default TLS model and affects inlining.
14107 lt_prog_compiler_pic_CXX
='-fPIC'
14112 # QNX uses GNU C++, but need to define -shared option too, otherwise
14113 # it will coredump.
14114 lt_prog_compiler_pic_CXX
='-fPIC -shared'
14117 lt_prog_compiler_pic_CXX
='-fPIC'
14123 # All AIX code is PIC.
14124 if test "$host_cpu" = ia64
; then
14125 # AIX 5 now supports IA64 processor
14126 lt_prog_compiler_static_CXX
='-Bstatic'
14128 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
14132 case $cc_basename in
14134 # Green Hills C++ Compiler
14135 # _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"
14140 case $cc_basename in
14142 lt_prog_compiler_pic_CXX
='-KPIC'
14145 # Green Hills C++ Compiler
14146 lt_prog_compiler_pic_CXX
='-pic'
14152 freebsd
* | dragonfly
*)
14153 # FreeBSD uses GNU C++
14155 hpux9
* | hpux10
* | hpux11
*)
14156 case $cc_basename in
14158 lt_prog_compiler_wl_CXX
='-Wl,'
14159 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
14160 if test "$host_cpu" != ia64
; then
14161 lt_prog_compiler_pic_CXX
='+Z'
14165 lt_prog_compiler_wl_CXX
='-Wl,'
14166 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
14172 lt_prog_compiler_pic_CXX
='+Z'
14181 # This is c89, which is MS Visual C++ (no shared libs)
14182 # Anyone wants to do a port?
14184 irix5
* | irix6
* | nonstopux
*)
14185 case $cc_basename in
14187 lt_prog_compiler_wl_CXX
='-Wl,'
14188 lt_prog_compiler_static_CXX
='-non_shared'
14189 # CC pic flag -KPIC is the default.
14195 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
14196 case $cc_basename in
14199 lt_prog_compiler_wl_CXX
='--backend -Wl,'
14200 lt_prog_compiler_pic_CXX
='-fPIC'
14203 # old Intel C++ for x86_64 which still supported -KPIC.
14204 lt_prog_compiler_wl_CXX
='-Wl,'
14205 lt_prog_compiler_pic_CXX
='-KPIC'
14206 lt_prog_compiler_static_CXX
='-static'
14209 # Intel C++, used to be incompatible with GCC.
14210 # ICC 10 doesn't accept -KPIC any more.
14211 lt_prog_compiler_wl_CXX
='-Wl,'
14212 lt_prog_compiler_pic_CXX
='-fPIC'
14213 lt_prog_compiler_static_CXX
='-static'
14216 # Portland Group C++ compiler
14217 lt_prog_compiler_wl_CXX
='-Wl,'
14218 lt_prog_compiler_pic_CXX
='-fpic'
14219 lt_prog_compiler_static_CXX
='-Bstatic'
14223 # Make sure the PIC flag is empty. It appears that all Alpha
14224 # Linux and Compaq Tru64 Unix objects are PIC.
14225 lt_prog_compiler_pic_CXX
=
14226 lt_prog_compiler_static_CXX
='-non_shared'
14228 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
14229 # IBM XL 8.0, 9.0 on PPC and BlueGene
14230 lt_prog_compiler_wl_CXX
='-Wl,'
14231 lt_prog_compiler_pic_CXX
='-qpic'
14232 lt_prog_compiler_static_CXX
='-qstaticlink'
14235 case `$CC -V 2>&1 | sed 5q` in
14238 lt_prog_compiler_pic_CXX
='-KPIC'
14239 lt_prog_compiler_static_CXX
='-Bstatic'
14240 lt_prog_compiler_wl_CXX
='-Qoption ld '
14251 case $cc_basename in
14253 lt_prog_compiler_pic_CXX
='-W c,exportall'
14262 # QNX uses GNU C++, but need to define -shared option too, otherwise
14263 # it will coredump.
14264 lt_prog_compiler_pic_CXX
='-fPIC -shared'
14266 osf3
* | osf4
* | osf5
*)
14267 case $cc_basename in
14269 lt_prog_compiler_wl_CXX
='--backend -Wl,'
14272 # Rational C++ 2.4.1
14273 lt_prog_compiler_pic_CXX
='-pic'
14276 # Digital/Compaq C++
14277 lt_prog_compiler_wl_CXX
='-Wl,'
14278 # Make sure the PIC flag is empty. It appears that all Alpha
14279 # Linux and Compaq Tru64 Unix objects are PIC.
14280 lt_prog_compiler_pic_CXX
=
14281 lt_prog_compiler_static_CXX
='-non_shared'
14290 case $cc_basename in
14292 # Sun C++ 4.2, 5.x and Centerline C++
14293 lt_prog_compiler_pic_CXX
='-KPIC'
14294 lt_prog_compiler_static_CXX
='-Bstatic'
14295 lt_prog_compiler_wl_CXX
='-Qoption ld '
14298 # Green Hills C++ Compiler
14299 lt_prog_compiler_pic_CXX
='-PIC'
14306 case $cc_basename in
14309 lt_prog_compiler_pic_CXX
='-pic'
14310 lt_prog_compiler_static_CXX
='-Bstatic'
14314 lt_prog_compiler_pic_CXX
='-pic'
14320 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
14321 case $cc_basename in
14323 lt_prog_compiler_wl_CXX
='-Wl,'
14324 lt_prog_compiler_pic_CXX
='-KPIC'
14325 lt_prog_compiler_static_CXX
='-Bstatic'
14330 case $cc_basename in
14332 # NonStop-UX NCC 3.20
14333 lt_prog_compiler_pic_CXX
='-KPIC'
14342 lt_prog_compiler_can_build_shared_CXX
=no
14348 # For platforms which do not support PIC, -DPIC is meaningless:
14350 lt_prog_compiler_pic_CXX
=
14353 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14357 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14362 # Check to make sure the PIC flag actually works.
14364 if test -n "$lt_prog_compiler_pic_CXX"; then
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14366 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14367 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
14368 $as_echo_n "(cached) " >&6
14370 lt_cv_prog_compiler_pic_works_CXX
=no
14371 ac_outfile
=conftest.
$ac_objext
14372 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14373 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
14374 # Insert the option either (1) after the last *FLAGS variable, or
14375 # (2) before a word containing "conftest.", or (3) at the end.
14376 # Note that $ac_compile itself does not contain backslashes and begins
14377 # with a dollar sign (not a hyphen), so the echo should work correctly.
14378 # The option is referenced via a variable to avoid confusing sed.
14379 lt_compile
=`echo "$ac_compile" | $SED \
14380 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14381 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14382 -e 's:$: $lt_compiler_flag:'`
14383 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14384 (eval "$lt_compile" 2>conftest.err
)
14386 cat conftest.err
>&5
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 if (exit $ac_status) && test -s "$ac_outfile"; then
14389 # The compiler can only warn and ignore the option if not recognized
14390 # So say no if there are warnings other than the usual output.
14391 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
14392 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14393 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
14394 lt_cv_prog_compiler_pic_works_CXX
=yes
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14401 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14403 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
14404 case $lt_prog_compiler_pic_CXX in
14406 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
14409 lt_prog_compiler_pic_CXX
=
14410 lt_prog_compiler_can_build_shared_CXX
=no
14418 # Check to make sure the static flag actually works.
14420 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14422 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14423 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
14424 $as_echo_n "(cached) " >&6
14426 lt_cv_prog_compiler_static_works_CXX
=no
14427 save_LDFLAGS
="$LDFLAGS"
14428 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
14429 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
14430 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
14431 # The linker can only warn and ignore the option if not recognized
14432 # So say no if there are warnings
14433 if test -s conftest.err
; then
14434 # Append any errors to the config.log.
14435 cat conftest.err
1>&5
14436 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
14437 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14438 if diff conftest.exp conftest.er2
>/dev
/null
; then
14439 lt_cv_prog_compiler_static_works_CXX
=yes
14442 lt_cv_prog_compiler_static_works_CXX
=yes
14446 LDFLAGS
="$save_LDFLAGS"
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14450 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14452 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
14455 lt_prog_compiler_static_CXX
=
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14462 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14463 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
14464 $as_echo_n "(cached) " >&6
14466 lt_cv_prog_compiler_c_o_CXX
=no
14467 $RM -r conftest
2>/dev
/null
14471 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14473 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14474 # Insert the option either (1) after the last *FLAGS variable, or
14475 # (2) before a word containing "conftest.", or (3) at the end.
14476 # Note that $ac_compile itself does not contain backslashes and begins
14477 # with a dollar sign (not a hyphen), so the echo should work correctly.
14478 lt_compile
=`echo "$ac_compile" | $SED \
14479 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14480 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14481 -e 's:$: $lt_compiler_flag:'`
14482 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14483 (eval "$lt_compile" 2>out
/conftest.err
)
14485 cat out
/conftest.err
>&5
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14489 # The compiler can only warn and ignore the option if not recognized
14490 # So say no if there are warnings
14491 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
14492 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
14493 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14494 lt_cv_prog_compiler_c_o_CXX
=yes
14499 # SGI C++ compiler will create directory out/ii_files/ for
14500 # template instantiation
14501 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
14502 $RM out
/* && rmdir out
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14509 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14514 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14515 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
14516 $as_echo_n "(cached) " >&6
14518 lt_cv_prog_compiler_c_o_CXX
=no
14519 $RM -r conftest
2>/dev
/null
14523 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14525 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14526 # Insert the option either (1) after the last *FLAGS variable, or
14527 # (2) before a word containing "conftest.", or (3) at the end.
14528 # Note that $ac_compile itself does not contain backslashes and begins
14529 # with a dollar sign (not a hyphen), so the echo should work correctly.
14530 lt_compile
=`echo "$ac_compile" | $SED \
14531 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14532 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14533 -e 's:$: $lt_compiler_flag:'`
14534 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14535 (eval "$lt_compile" 2>out
/conftest.err
)
14537 cat out
/conftest.err
>&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14541 # The compiler can only warn and ignore the option if not recognized
14542 # So say no if there are warnings
14543 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
14544 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
14545 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14546 lt_cv_prog_compiler_c_o_CXX
=yes
14551 # SGI C++ compiler will create directory out/ii_files/ for
14552 # template instantiation
14553 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
14554 $RM out
/* && rmdir out
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14561 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14566 hard_links
="nottested"
14567 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
14568 # do not overwrite the value of need_locks provided by the user
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14570 $as_echo_n "checking if we can lock with hard links... " >&6; }
14573 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14575 ln conftest.a conftest.b
2>&5 || hard_links
=no
14576 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14578 $as_echo "$hard_links" >&6; }
14579 if test "$hard_links" = no
; then
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14581 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14591 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14593 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14596 # If we're using GNU nm, then we don't want the "-C" option.
14597 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14598 # Also, AIX nm treats weak defined symbols like other global defined
14599 # symbols, whereas GNU nm marks them as "W".
14600 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
14601 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'
14603 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'
14607 export_symbols_cmds_CXX
="$ltdll_cmds"
14609 cygwin
* | mingw
* | cegcc
*)
14610 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'
14613 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14616 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14619 $as_echo "$ld_shlibs_CXX" >&6; }
14620 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
14622 with_gnu_ld_CXX
=$with_gnu_ld
14630 # Do we need to explicitly link libc?
14632 case "x$archive_cmds_need_lc_CXX" in
14634 # Assume -lc should be added
14635 archive_cmds_need_lc_CXX
=yes
14637 if test "$enable_shared" = yes && test "$GCC" = yes; then
14638 case $archive_cmds_CXX in
14640 # FIXME: we may have to deal with multi-command sequences.
14643 # Test whether the compiler implicitly links with -lc since on some
14644 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14645 # to ld, don't add -lc before -lgcc.
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14647 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14648 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
14649 $as_echo_n "(cached) " >&6
14652 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14655 (eval $ac_compile) 2>&5
14657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14658 test $ac_status = 0; } 2>conftest.err
; then
14661 libobjs
=conftest.
$ac_objext
14663 wl
=$lt_prog_compiler_wl_CXX
14664 pic_flag
=$lt_prog_compiler_pic_CXX
14670 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
14671 allow_undefined_flag_CXX
=
14672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14673 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
14675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14676 test $ac_status = 0; }
14678 lt_cv_archive_cmds_need_lc_CXX
=no
14680 lt_cv_archive_cmds_need_lc_CXX
=yes
14682 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
14684 cat conftest.err
1>&5
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14690 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14691 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14762 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14764 library_names_spec
=
14765 libname_spec
='lib$name'
14769 postuninstall_cmds
=
14773 shlibpath_overrides_runpath
=unknown
14775 dynamic_linker
="$host_os ld.so"
14776 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14777 need_lib_prefix
=unknown
14778 hardcode_into_libs
=no
14780 # when you set need_version to no, make sure it does not cause -set_version
14781 # flags to be left without arguments
14782 need_version
=unknown
14787 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14788 shlibpath_var
=LIBPATH
14790 # AIX 3 has no versioning support, so we append a major version to the name.
14791 soname_spec
='${libname}${release}${shared_ext}$major'
14798 hardcode_into_libs
=yes
14799 if test "$host_cpu" = ia64
; then
14800 # AIX 5 supports IA64
14801 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14802 shlibpath_var
=LD_LIBRARY_PATH
14804 # With GCC up to 2.95.x, collect2 would create an import file
14805 # for dependence libraries. The import file would start with
14806 # the line `#! .'. This would cause the generated library to
14807 # depend on `.', always an invalid library. This was fixed in
14808 # development snapshots of GCC prior to 3.0.
14810 aix4 | aix4.
[01] | aix4.
[01].
*)
14811 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14813 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
14816 can_build_shared
=no
14820 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14821 # soname into executable. Probably we can add versioning support to
14822 # collect2, so additional links can be useful in future.
14823 if test "$aix_use_runtimelinking" = yes; then
14824 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14825 # instead of lib<name>.a to let people know that these are not
14826 # typical AIX shared libraries.
14827 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14829 # We preserve .a as extension for shared libraries through AIX4.2
14830 # and later when we are not doing run time linking.
14831 library_names_spec
='${libname}${release}.a $libname.a'
14832 soname_spec
='${libname}${release}${shared_ext}$major'
14834 shlibpath_var
=LIBPATH
14841 # Since July 2007 AmigaOS4 officially supports .so libraries.
14842 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14843 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14846 library_names_spec
='$libname.ixlibrary $libname.a'
14847 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14848 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'
14854 library_names_spec
='${libname}${shared_ext}'
14855 dynamic_linker
="$host_os ld.so"
14856 shlibpath_var
=LIBRARY_PATH
14862 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14863 soname_spec
='${libname}${release}${shared_ext}$major'
14864 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14865 shlibpath_var
=LD_LIBRARY_PATH
14866 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14867 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14868 # the default ld.so.conf also contains /usr/contrib/lib and
14869 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14870 # libtool to hard-code these into programs
14873 cygwin
* | mingw
* | pw32
* | cegcc
*)
14874 version_type
=windows
14879 case $GCC,$host_os in
14880 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
14881 library_names_spec
='$libname.dll.a'
14882 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14883 postinstall_cmds
='base_file=`basename \${file}`~
14884 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14885 dldir=$destdir/`dirname \$dlpath`~
14886 test -d \$dldir || mkdir -p \$dldir~
14887 $install_prog $dir/$dlname \$dldir/$dlname~
14888 chmod a+x \$dldir/$dlname~
14889 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14890 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14892 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14893 dlpath=$dir/\$dldll~
14895 shlibpath_overrides_runpath
=yes
14899 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14900 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14904 # MinGW DLLs use traditional 'lib' prefix
14905 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14908 # pw32 DLLs use 'pw' prefix rather than 'lib'
14909 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14915 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14918 dynamic_linker
='Win32 ld.exe'
14919 # FIXME: first we should search . and the directory the executable is in
14923 darwin
* | rhapsody
*)
14924 dynamic_linker
="$host_os dyld"
14925 version_type
=darwin
14928 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14929 soname_spec
='${libname}${release}${major}$shared_ext'
14930 shlibpath_overrides_runpath
=yes
14931 shlibpath_var
=DYLD_LIBRARY_PATH
14932 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
14934 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14941 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14942 soname_spec
='${libname}${release}${shared_ext}$major'
14943 shlibpath_var
=LD_LIBRARY_PATH
14946 freebsd
* | dragonfly
*)
14947 # DragonFly does not have aout. When/if they implement a new
14948 # versioning mechanism, adjust this.
14949 if test -x /usr
/bin
/objformat
; then
14950 objformat
=`/usr/bin/objformat`
14953 freebsd
[23].
*) objformat
=aout
;;
14954 *) objformat
=elf
;;
14957 version_type
=freebsd-
$objformat
14958 case $version_type in
14960 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14965 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14969 shlibpath_var
=LD_LIBRARY_PATH
14972 shlibpath_overrides_runpath
=yes
14974 freebsd3.
[01]* | freebsdelf3.
[01]*)
14975 shlibpath_overrides_runpath
=yes
14976 hardcode_into_libs
=yes
14978 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
14979 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
14980 shlibpath_overrides_runpath
=no
14981 hardcode_into_libs
=yes
14983 *) # from 4.6 on, and DragonFly
14984 shlibpath_overrides_runpath
=yes
14985 hardcode_into_libs
=yes
14994 dynamic_linker
="$host_os runtime_loader"
14995 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14996 soname_spec
='${libname}${release}${shared_ext}$major'
14997 shlibpath_var
=LIBRARY_PATH
14998 shlibpath_overrides_runpath
=yes
14999 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15000 hardcode_into_libs
=yes
15003 hpux9
* | hpux10
* | hpux11
*)
15004 # Give a soname corresponding to the major version so that dld.sl refuses to
15005 # link against other versions.
15012 hardcode_into_libs
=yes
15013 dynamic_linker
="$host_os dld.so"
15014 shlibpath_var
=LD_LIBRARY_PATH
15015 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15016 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15017 soname_spec
='${libname}${release}${shared_ext}$major'
15018 if test "X$HPUX_IA64_MODE" = X32
; then
15019 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15021 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
15023 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15027 hardcode_into_libs
=yes
15028 dynamic_linker
="$host_os dld.sl"
15029 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
15030 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15031 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15032 soname_spec
='${libname}${release}${shared_ext}$major'
15033 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15034 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15038 dynamic_linker
="$host_os dld.sl"
15039 shlibpath_var
=SHLIB_PATH
15040 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
15041 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15042 soname_spec
='${libname}${release}${shared_ext}$major'
15045 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15046 postinstall_cmds
='chmod 555 $lib'
15047 # or fails outright, so override atomically:
15048 install_override_mode
=555
15055 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15056 soname_spec
='${libname}${release}${shared_ext}$major'
15057 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
15058 shlibpath_var
=LD_LIBRARY_PATH
15059 shlibpath_overrides_runpath
=no
15060 hardcode_into_libs
=yes
15063 irix5
* | irix6
* | nonstopux
*)
15065 nonstopux
*) version_type
=nonstopux
;;
15067 if test "$lt_cv_prog_gnu_ld" = yes; then
15075 soname_spec
='${libname}${release}${shared_ext}$major'
15076 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15078 irix5
* | nonstopux
*)
15079 libsuff
= shlibsuff
=
15082 case $LD in # libtool.m4 will add one of these switches to LD
15083 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
15084 libsuff
= shlibsuff
= libmagic
=32-bit;;
15085 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
15086 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
15087 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
15088 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
15089 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
15093 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
15094 shlibpath_overrides_runpath
=no
15095 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15096 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
15097 hardcode_into_libs
=yes
15100 # No shared lib support for Linux oldld, aout, or coff.
15101 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
15105 # This must be Linux ELF.
15106 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
15110 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15111 soname_spec
='${libname}${release}${shared_ext}$major'
15112 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15113 shlibpath_var
=LD_LIBRARY_PATH
15114 shlibpath_overrides_runpath
=no
15116 # Some binutils ld are patched to set DT_RUNPATH
15117 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
15118 $as_echo_n "(cached) " >&6
15120 lt_cv_shlibpath_overrides_runpath
=no
15121 save_LDFLAGS
=$LDFLAGS
15122 save_libdir
=$libdir
15123 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15124 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15126 /* end confdefs.h. */
15136 if ac_fn_cxx_try_link
"$LINENO"; then :
15137 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
15138 lt_cv_shlibpath_overrides_runpath
=yes
15141 rm -f core conftest.err conftest.
$ac_objext \
15142 conftest
$ac_exeext conftest.
$ac_ext
15143 LDFLAGS
=$save_LDFLAGS
15144 libdir
=$save_libdir
15148 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
15150 # This implies no fast_install, which is unacceptable.
15151 # Some rework will be needed to allow for fast_install
15152 # before this can be enabled.
15153 hardcode_into_libs
=yes
15155 # Append ld.so.conf contents to the search path
15156 if test -f /etc
/ld.so.conf
; then
15157 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' ' '`
15158 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
15161 # We used to test for /lib/ld.so.1 and disable shared libraries on
15162 # powerpc, because MkLinux only supported shared libraries with the
15163 # GNU dynamic linker. Since this was broken with cross compilers,
15164 # most powerpc-linux boxes support dynamic linking these days and
15165 # people can always --disable-shared, the test was removed, and we
15166 # assume the GNU/Linux dynamic linker is in use.
15167 dynamic_linker
='GNU/Linux ld.so'
15174 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15175 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15176 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15177 dynamic_linker
='NetBSD (a.out) ld.so'
15179 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15180 soname_spec
='${libname}${release}${shared_ext}$major'
15181 dynamic_linker
='NetBSD ld.elf_so'
15183 shlibpath_var
=LD_LIBRARY_PATH
15184 shlibpath_overrides_runpath
=yes
15185 hardcode_into_libs
=yes
15190 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15191 shlibpath_var
=LD_LIBRARY_PATH
15192 shlibpath_overrides_runpath
=yes
15199 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15200 soname_spec
='${libname}${release}${shared_ext}$major'
15201 shlibpath_var
=LD_LIBRARY_PATH
15202 shlibpath_overrides_runpath
=no
15203 hardcode_into_libs
=yes
15204 dynamic_linker
='ldqnx.so'
15209 sys_lib_dlsearch_path_spec
="/usr/lib"
15211 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15213 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
15214 *) need_version
=no
;;
15216 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15217 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15218 shlibpath_var
=LD_LIBRARY_PATH
15219 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15221 openbsd2.
[89] | openbsd2.
[89].
*)
15222 shlibpath_overrides_runpath
=no
15225 shlibpath_overrides_runpath
=yes
15229 shlibpath_overrides_runpath
=yes
15234 libname_spec
='$name'
15237 library_names_spec
='$libname${shared_ext} $libname.a'
15238 dynamic_linker
='OS/2 ld.exe'
15239 shlibpath_var
=LIBPATH
15242 osf3
* | osf4
* | osf5
*)
15246 soname_spec
='${libname}${release}${shared_ext}$major'
15247 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15248 shlibpath_var
=LD_LIBRARY_PATH
15249 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15250 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
15261 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15262 soname_spec
='${libname}${release}${shared_ext}$major'
15263 shlibpath_var
=LD_LIBRARY_PATH
15264 shlibpath_overrides_runpath
=yes
15265 hardcode_into_libs
=yes
15266 # ldd complains unless libraries are executable
15267 postinstall_cmds
='chmod +x $lib'
15272 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15273 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15274 shlibpath_var
=LD_LIBRARY_PATH
15275 shlibpath_overrides_runpath
=yes
15276 if test "$with_gnu_ld" = yes; then
15284 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15285 soname_spec
='${libname}${release}${shared_ext}$major'
15286 shlibpath_var
=LD_LIBRARY_PATH
15287 case $host_vendor in
15289 shlibpath_overrides_runpath
=no
15291 runpath_var
=LD_RUN_PATH
15299 shlibpath_overrides_runpath
=no
15300 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
15306 if test -d /usr
/nec
;then
15308 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15309 soname_spec
='$libname${shared_ext}.$major'
15310 shlibpath_var
=LD_LIBRARY_PATH
15314 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
15315 version_type
=freebsd-elf
15318 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15319 soname_spec
='${libname}${release}${shared_ext}$major'
15320 shlibpath_var
=LD_LIBRARY_PATH
15321 shlibpath_overrides_runpath
=yes
15322 hardcode_into_libs
=yes
15323 if test "$with_gnu_ld" = yes; then
15324 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15326 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
15329 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
15333 sys_lib_dlsearch_path_spec
='/usr/lib'
15337 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15341 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15342 shlibpath_var
=LD_LIBRARY_PATH
15343 shlibpath_overrides_runpath
=no
15344 hardcode_into_libs
=yes
15349 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15350 soname_spec
='${libname}${release}${shared_ext}$major'
15351 shlibpath_var
=LD_LIBRARY_PATH
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15359 $as_echo "$dynamic_linker" >&6; }
15360 test "$dynamic_linker" = no
&& can_build_shared
=no
15362 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
15363 if test "$GCC" = yes; then
15364 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15367 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15368 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
15370 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15371 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15412 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15413 hardcode_action_CXX
=
15414 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15415 test -n "$runpath_var_CXX" ||
15416 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15418 # We can hardcode non-existent directories.
15419 if test "$hardcode_direct_CXX" != no
&&
15420 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15421 # have to relink, otherwise we might link with an installed library
15422 # when we should be linking with a yet-to-be-installed one
15423 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15424 test "$hardcode_minus_L_CXX" != no
; then
15425 # Linking always hardcodes the temporary library directory.
15426 hardcode_action_CXX
=relink
15428 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15429 hardcode_action_CXX
=immediate
15432 # We cannot hardcode anything, or else we can only hardcode existing
15434 hardcode_action_CXX
=unsupported
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15437 $as_echo "$hardcode_action_CXX" >&6; }
15439 if test "$hardcode_action_CXX" = relink ||
15440 test "$inherit_rpath_CXX" = yes; then
15441 # Fast installation is not supported
15442 enable_fast_install
=no
15443 elif test "$shlibpath_overrides_runpath" = yes ||
15444 test "$enable_shared" = no
; then
15445 # Fast installation is not necessary
15446 enable_fast_install
=needless
15455 fi # test -n "$compiler"
15461 with_gnu_ld
=$lt_save_with_gnu_ld
15462 lt_cv_path_LDCXX
=$lt_cv_path_LD
15463 lt_cv_path_LD
=$lt_save_path_LD
15464 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
15465 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
15466 fi # test "$_lt_caught_CXX_error" != yes
15469 ac_cpp
='$CPP $CPPFLAGS'
15470 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15471 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15472 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15486 ac_config_commands
="$ac_config_commands libtool"
15491 # Only expand once:
15495 GPROFNG_LIBADD
="-L../../libiberty -liberty"
15496 if test "$enable_shared" = "yes"; then
15497 GPROFNG_LIBADD
="-L../../libiberty/pic -liberty"
15501 # Figure out what compiler warnings we can enable.
15502 # See config/warnings.m4 for details.
15505 ac_cpp
='$CPP $CPPFLAGS'
15506 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15507 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15508 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15511 # Check whether --enable-werror-always was given.
15512 if test "${enable_werror_always+set}" = set; then :
15513 enableval
=$enable_werror_always;
15515 enable_werror_always
=no
15518 if test $enable_werror_always = yes; then :
15519 WERROR
="$WERROR${WERROR:+ }-Werror"
15523 ac_cpp
='$CPP $CPPFLAGS'
15524 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15525 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15526 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15530 ac_cpp
='$CPP $CPPFLAGS'
15531 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15532 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15533 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15536 save_CFLAGS
="$CFLAGS"
15537 for real_option
in -Wall; do
15538 # Do the check with the no- prefix removed since gcc silently
15539 # accepts any -Wno-* option on purpose
15540 case $real_option in
15541 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
15542 *) option
=$real_option ;;
15544 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
15547 $as_echo_n "checking whether $CC supports $option... " >&6; }
15548 if eval \
${$as_acx_Woption+:} false
; then :
15549 $as_echo_n "(cached) " >&6
15552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15553 /* end confdefs.h. */
15563 if ac_fn_c_try_compile
"$LINENO"; then :
15564 eval "$as_acx_Woption=yes"
15566 eval "$as_acx_Woption=no"
15568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15571 eval ac_res
=\$
$as_acx_Woption
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15573 $as_echo "$ac_res" >&6; }
15574 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
15575 gprofng_cflags
="$gprofng_cflags${gprofng_cflags:+ }$real_option"
15578 CFLAGS
="$save_CFLAGS"
15580 ac_cpp
='$CPP $CPPFLAGS'
15581 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15582 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15583 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15587 ac_cpp
='$CPP $CPPFLAGS'
15588 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15589 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15590 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15592 GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS
=
15593 save_CFLAGS
="$CFLAGS"
15594 for real_option
in -Wno-format-truncation; do
15595 # Do the check with the no- prefix removed since gcc silently
15596 # accepts any -Wno-* option on purpose
15597 case $real_option in
15598 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
15599 *) option
=$real_option ;;
15601 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
15604 $as_echo_n "checking whether $CC supports $option... " >&6; }
15605 if eval \
${$as_acx_Woption+:} false
; then :
15606 $as_echo_n "(cached) " >&6
15609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15610 /* end confdefs.h. */
15620 if ac_fn_c_try_compile
"$LINENO"; then :
15621 eval "$as_acx_Woption=yes"
15623 eval "$as_acx_Woption=no"
15625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15628 eval ac_res
=\$
$as_acx_Woption
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15630 $as_echo "$ac_res" >&6; }
15631 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
15632 GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS
="$GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS${GPROFNG_NO_FORMAT_TRUNCATION_CFLAGS:+ }$real_option"
15635 CFLAGS
="$save_CFLAGS"
15637 ac_cpp
='$CPP $CPPFLAGS'
15638 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15639 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15640 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15644 ac_cpp
='$CPP $CPPFLAGS'
15645 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15646 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15647 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15649 GPROFNG_NO_SWITCH_CFLAGS
=
15650 save_CFLAGS
="$CFLAGS"
15651 for real_option
in -Wno-switch; do
15652 # Do the check with the no- prefix removed since gcc silently
15653 # accepts any -Wno-* option on purpose
15654 case $real_option in
15655 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
15656 *) option
=$real_option ;;
15658 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
15661 $as_echo_n "checking whether $CC supports $option... " >&6; }
15662 if eval \
${$as_acx_Woption+:} false
; then :
15663 $as_echo_n "(cached) " >&6
15666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15667 /* end confdefs.h. */
15677 if ac_fn_c_try_compile
"$LINENO"; then :
15678 eval "$as_acx_Woption=yes"
15680 eval "$as_acx_Woption=no"
15682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15685 eval ac_res
=\$
$as_acx_Woption
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15687 $as_echo "$ac_res" >&6; }
15688 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
15689 GPROFNG_NO_SWITCH_CFLAGS
="$GPROFNG_NO_SWITCH_CFLAGS${GPROFNG_NO_SWITCH_CFLAGS:+ }$real_option"
15692 CFLAGS
="$save_CFLAGS"
15694 ac_cpp
='$CPP $CPPFLAGS'
15695 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15696 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15697 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15700 gprofng_cppflags
="-U_ASM"
15704 # This is annoying: it means we have to pass --enable-shared explicitly to
15705 # get gprofng, while the configure default is supposed to be that shared libs
15706 # are on by default. But as long as libiberty has code like this, so must
15709 case "${target}" in
15712 build_collector
=true
15715 build_collector
=true
15716 build_collector
=true
15720 build_collector
=true
15723 # Check whether --enable-gprofng-tools was given.
15724 if test "${enable_gprofng_tools+set}" = set; then :
15725 enableval
=$enable_gprofng_tools; build_src
=$enableval
15729 if test x
$build_collector = xtrue
; then
15730 BUILD_COLLECTOR_TRUE
=
15731 BUILD_COLLECTOR_FALSE
='#'
15733 BUILD_COLLECTOR_TRUE
='#'
15734 BUILD_COLLECTOR_FALSE
=
15737 if test x
$build_src = xtrue
; then
15739 BUILD_SRC_FALSE
='#'
15747 if test x
$build_collector = xtrue
; then
15750 subdirs
="$subdirs libcollector"
15752 if test x
${host} = x
${target}; then
15756 if test x
$run_tests = xtrue
; then
15758 RUN_TESTS_FALSE
='#'
15769 ac_cpp
='$CPP $CPPFLAGS'
15770 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15771 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15772 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15776 # We used to check for pthread.h first, but this fails if pthread.h
15777 # requires special compiler flags (e.g. on Tru64 or Sequent).
15778 # It gets checked for in the link test anyway.
15780 # First of all, check if the user has set any of the PTHREAD_LIBS,
15781 # etcetera environment variables, and if threads linking works using
15783 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
15784 ax_pthread_save_CC
="$CC"
15785 ax_pthread_save_CFLAGS
="$CFLAGS"
15786 ax_pthread_save_LIBS
="$LIBS"
15787 if test "x$PTHREAD_CC" != "x"; then :
15790 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
15791 LIBS
="$PTHREAD_LIBS $LIBS"
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
15793 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
15794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15795 /* end confdefs.h. */
15797 /* Override any GCC internal prototype to avoid an error.
15798 Use char because int might match the return type of a GCC
15799 builtin and then its argument prototype would still apply. */
15803 char pthread_join ();
15807 return pthread_join ();
15812 if ac_fn_c_try_link
"$LINENO"; then :
15815 rm -f core conftest.err conftest.
$ac_objext \
15816 conftest
$ac_exeext conftest.
$ac_ext
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15818 $as_echo "$ax_pthread_ok" >&6; }
15819 if test "x$ax_pthread_ok" = "xno"; then
15823 CC
="$ax_pthread_save_CC"
15824 CFLAGS
="$ax_pthread_save_CFLAGS"
15825 LIBS
="$ax_pthread_save_LIBS"
15828 # We must check for the threads library under a number of different
15829 # names; the ordering is very important because some systems
15830 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15831 # libraries is broken (non-POSIX).
15833 # Create a list of thread flags to try. Items starting with a "-" are
15834 # C compiler flags, and other items are library names, except for "none"
15835 # which indicates that we try without any flags at all, and "pthread-config"
15836 # which is a program returning the flags for the Pth emulation library.
15838 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15840 # The ordering *is* (sometimes) important. Some notes on the
15841 # individual items follow:
15843 # pthreads: AIX (must check this before -lpthread)
15844 # none: in case threads are in libc; should be tried before -Kthread and
15845 # other compiler flags to prevent continual compiler warnings
15846 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15847 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
15848 # (Note: HP C rejects this with "bad form for `-t' option")
15849 # -pthreads: Solaris/gcc (Note: HP C also rejects)
15850 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15851 # doesn't hurt to check since this sometimes defines pthreads and
15852 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
15853 # is present but should not be used directly; and before -mthreads,
15854 # because the compiler interprets this as "-mt" + "-hreads")
15855 # -mthreads: Mingw32/gcc, Lynx/gcc
15856 # pthread: Linux, etcetera
15857 # --thread-safe: KAI C++
15858 # pthread-config: use pthread-config program (for GNU Pth library)
15864 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15865 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15867 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
15872 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
15873 # multi-threading and also sets -lpthread."
15875 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
15880 # IBM z/OS requires a feature-test macro to be defined in order to
15881 # enable POSIX threads at all, so give the user a hint if this is
15882 # not set. (We don't define these ourselves, as they can affect
15883 # other portions of the system API in unpredictable ways.)
15885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15886 /* end confdefs.h. */
15888 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
15889 AX_PTHREAD_ZOS_MISSING
15893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15894 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
15896 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
15904 # On Solaris (at least, for some versions), libc contains stubbed
15905 # (non-functional) versions of the pthreads routines, so link-based
15906 # tests will erroneously succeed. (N.B.: The stubs are missing
15907 # pthread_cleanup_push, or rather a function called by this macro,
15908 # so we could check for that, but who knows whether they'll stub
15909 # that too in a future libc.) So we'll check first for the
15910 # standard Solaris way of linking pthreads (-mt -lpthread).
15912 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
15916 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
15918 if test "x$GCC" = "xyes"; then :
15919 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
15922 # The presence of a feature test macro requesting re-entrant function
15923 # definitions is, on some systems, a strong hint that pthreads support is
15924 # correctly enabled
15927 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
15928 ax_pthread_check_macro
="_REENTRANT"
15932 ax_pthread_check_macro
="_THREAD_SAFE"
15936 ax_pthread_check_macro
="--"
15939 if test "x$ax_pthread_check_macro" = "x--"; then :
15940 ax_pthread_check_cond
=0
15942 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
15945 # Are we compiling with Clang?
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
15948 $as_echo_n "checking whether $CC is Clang... " >&6; }
15949 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
15950 $as_echo_n "(cached) " >&6
15952 ax_cv_PTHREAD_CLANG
=no
15953 # Note that Autoconf sets GCC=yes for Clang as well as GCC
15954 if test "x$GCC" = "xyes"; then
15955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15956 /* end confdefs.h. */
15957 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
15958 # if defined(__clang__) && defined(__llvm__)
15959 AX_PTHREAD_CC_IS_CLANG
15963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15964 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
15965 ax_cv_PTHREAD_CLANG
=yes
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
15973 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
15974 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
15976 ax_pthread_clang_warning
=no
15978 # Clang needs special handling, because older versions handle the -pthread
15979 # option in a rather... idiosyncratic way
15981 if test "x$ax_pthread_clang" = "xyes"; then
15983 # Clang takes -pthread; it has never supported any other flag
15985 # (Note 1: This will need to be revisited if a system that Clang
15986 # supports has POSIX threads in a separate library. This tends not
15987 # to be the way of modern systems, but it's conceivable.)
15989 # (Note 2: On some systems, notably Darwin, -pthread is not needed
15990 # to get POSIX threads support; the API is always present and
15991 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
15992 # -pthread does define _REENTRANT, and while the Darwin headers
15993 # ignore this macro, third-party headers might not.)
15995 PTHREAD_CFLAGS
="-pthread"
16000 # However, older versions of Clang make a point of warning the user
16001 # that, in an invocation where only linking and no compilation is
16002 # taking place, the -pthread option has no effect ("argument unused
16003 # during compilation"). They expect -pthread to be passed in only
16004 # when source code is being compiled.
16006 # Problem is, this is at odds with the way Automake and most other
16007 # C build frameworks function, which is that the same flags used in
16008 # compilation (CFLAGS) are also used in linking. Many systems
16009 # supported by AX_PTHREAD require exactly this for POSIX threads
16010 # support, and in fact it is often not straightforward to specify a
16011 # flag that is used only in the compilation phase and not in
16012 # linking. Such a scenario is extremely rare in practice.
16014 # Even though use of the -pthread flag in linking would only print
16015 # a warning, this can be a nuisance for well-run software projects
16016 # that build with -Werror. So if the active version of Clang has
16017 # this misfeature, we search for an option to squash it.
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
16020 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
16021 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
16022 $as_echo_n "(cached) " >&6
16024 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
16025 # Create an alternate version of $ac_link that compiles and
16026 # links in two steps (.c -> .o, .o -> exe) instead of one
16027 # (.c -> exe), because the warning occurs only in the second
16029 ax_pthread_save_ac_link
="$ac_link"
16030 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
16031 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
16032 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
16033 ax_pthread_save_CFLAGS
="$CFLAGS"
16034 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
16035 if test "x$ax_pthread_try" = "xunknown"; then :
16038 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
16039 ac_link
="$ax_pthread_save_ac_link"
16040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16041 /* end confdefs.h. */
16042 int main(void){return 0;}
16044 if ac_fn_c_try_link
"$LINENO"; then :
16045 ac_link
="$ax_pthread_2step_ac_link"
16046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16047 /* end confdefs.h. */
16048 int main(void){return 0;}
16050 if ac_fn_c_try_link
"$LINENO"; then :
16053 rm -f core conftest.err conftest.
$ac_objext \
16054 conftest
$ac_exeext conftest.
$ac_ext
16057 rm -f core conftest.err conftest.
$ac_objext \
16058 conftest
$ac_exeext conftest.
$ac_ext
16060 ac_link
="$ax_pthread_save_ac_link"
16061 CFLAGS
="$ax_pthread_save_CFLAGS"
16062 if test "x$ax_pthread_try" = "x"; then :
16065 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
16069 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
16071 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
16073 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
16076 fi # $ax_pthread_clang = yes
16078 if test "x$ax_pthread_ok" = "xno"; then
16079 for ax_pthread_try_flag
in $ax_pthread_flags; do
16081 case $ax_pthread_try_flag in
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16084 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
16089 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
16090 PTHREAD_CFLAGS
="-mt"
16091 PTHREAD_LIBS
="-lpthread"
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
16096 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
16097 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
16101 # Extract the first word of "pthread-config", so it can be a program name with args.
16102 set dummy pthread-config
; ac_word
=$2
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16104 $as_echo_n "checking for $ac_word... " >&6; }
16105 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
16106 $as_echo_n "(cached) " >&6
16108 if test -n "$ax_pthread_config"; then
16109 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
16111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16112 for as_dir
in $PATH
16115 test -z "$as_dir" && as_dir
=.
16116 for ac_exec_ext
in '' $ac_executable_extensions; do
16117 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16118 ac_cv_prog_ax_pthread_config
="yes"
16119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16126 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
16129 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
16130 if test -n "$ax_pthread_config"; then
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16132 $as_echo "$ax_pthread_config" >&6; }
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16135 $as_echo "no" >&6; }
16139 if test "x$ax_pthread_config" = "xno"; then :
16142 PTHREAD_CFLAGS
="`pthread-config --cflags`"
16143 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
16148 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
16149 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
16153 ax_pthread_save_CFLAGS
="$CFLAGS"
16154 ax_pthread_save_LIBS
="$LIBS"
16155 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
16156 LIBS
="$PTHREAD_LIBS $LIBS"
16158 # Check for various functions. We must include pthread.h,
16159 # since some functions may be macros. (On the Sequent, we
16160 # need a special flag -Kthread to make this header compile.)
16161 # We check for pthread_join because it is in -lpthread on IRIX
16162 # while pthread_create is in libc. We check for pthread_attr_init
16163 # due to DEC craziness with -lpthreads. We check for
16164 # pthread_cleanup_push because it is one of the few pthread
16165 # functions on Solaris that doesn't have a non-functional libc stub.
16166 # We try pthread_create on general principles.
16168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16169 /* end confdefs.h. */
16170 #include <pthread.h>
16171 # if $ax_pthread_check_cond
16172 # error "$ax_pthread_check_macro must be defined"
16174 static void routine(void *a) { a = 0; }
16175 static void *start_routine(void *a) { return a; }
16179 pthread_t th; pthread_attr_t attr;
16180 pthread_create(&th, 0, start_routine, 0);
16181 pthread_join(th, 0);
16182 pthread_attr_init(&attr);
16183 pthread_cleanup_push(routine, 0);
16184 pthread_cleanup_pop(0) /* ; */
16189 if ac_fn_c_try_link
"$LINENO"; then :
16192 rm -f core conftest.err conftest.
$ac_objext \
16193 conftest
$ac_exeext conftest.
$ac_ext
16195 CFLAGS
="$ax_pthread_save_CFLAGS"
16196 LIBS
="$ax_pthread_save_LIBS"
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16199 $as_echo "$ax_pthread_ok" >&6; }
16200 if test "x$ax_pthread_ok" = "xyes"; then :
16209 # Various other checks:
16210 if test "x$ax_pthread_ok" = "xyes"; then
16211 ax_pthread_save_CFLAGS
="$CFLAGS"
16212 ax_pthread_save_LIBS
="$LIBS"
16213 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
16214 LIBS
="$PTHREAD_LIBS $LIBS"
16216 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16218 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16219 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
16220 $as_echo_n "(cached) " >&6
16222 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
16223 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
16224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16225 /* end confdefs.h. */
16226 #include <pthread.h>
16230 int attr = $ax_pthread_attr; return attr /* ; */
16235 if ac_fn_c_try_link
"$LINENO"; then :
16236 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
16238 rm -f core conftest.err conftest.
$ac_objext \
16239 conftest
$ac_exeext conftest.
$ac_ext
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
16244 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
16245 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
16246 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
16247 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
16249 cat >>confdefs.h
<<_ACEOF
16250 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
16253 ax_pthread_joinable_attr_defined
=yes
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
16258 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
16259 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
16260 $as_echo_n "(cached) " >&6
16262 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
16265 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
16271 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
16272 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
16273 test "x$ax_pthread_special_flags_added" != "xyes"; then :
16274 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
16275 ax_pthread_special_flags_added
=yes
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16279 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16280 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
16281 $as_echo_n "(cached) " >&6
16283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16284 /* end confdefs.h. */
16285 #include <pthread.h>
16289 int i = PTHREAD_PRIO_INHERIT;
16294 if ac_fn_c_try_link
"$LINENO"; then :
16295 ax_cv_PTHREAD_PRIO_INHERIT
=yes
16297 ax_cv_PTHREAD_PRIO_INHERIT
=no
16299 rm -f core conftest.err conftest.
$ac_objext \
16300 conftest
$ac_exeext conftest.
$ac_ext
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16304 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16305 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
16306 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
16308 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16310 ax_pthread_prio_inherit_defined
=yes
16314 CFLAGS
="$ax_pthread_save_CFLAGS"
16315 LIBS
="$ax_pthread_save_LIBS"
16317 # More AIX lossage: compile with *_r variant
16318 if test "x$GCC" != "xyes"; then
16322 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
16323 #handle absolute path differently from PATH based program lookup
16326 if as_fn_executable_p
${CC}_r
; then :
16327 PTHREAD_CC
="${CC}_r"
16330 for ac_prog
in ${CC}_r
16332 # Extract the first word of "$ac_prog", so it can be a program name with args.
16333 set dummy
$ac_prog; ac_word
=$2
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16335 $as_echo_n "checking for $ac_word... " >&6; }
16336 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
16337 $as_echo_n "(cached) " >&6
16339 if test -n "$PTHREAD_CC"; then
16340 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
16342 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16343 for as_dir
in $PATH
16346 test -z "$as_dir" && as_dir
=.
16347 for ac_exec_ext
in '' $ac_executable_extensions; do
16348 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16349 ac_cv_prog_PTHREAD_CC
="$ac_prog"
16350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16359 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
16360 if test -n "$PTHREAD_CC"; then
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16362 $as_echo "$PTHREAD_CC" >&6; }
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16365 $as_echo "no" >&6; }
16369 test -n "$PTHREAD_CC" && break
16371 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
16382 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
16388 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16389 if test "x$ax_pthread_ok" = "xyes"; then
16391 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16399 ac_cpp
='$CPP $CPPFLAGS'
16400 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16401 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16402 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16406 # Specify a location for JDK
16410 # Check whether --with-jdk was given.
16411 if test "${with_jdk+set}" = set; then :
16416 if test "x$with_jdk" != x
; then
16417 jdk_inc
="-I$with_jdk/include -I$with_jdk/include/linux"
16418 enable_gprofng_jp
=yes
16420 # Extract the first word of "javac", so it can be a program name with args.
16421 set dummy javac
; ac_word
=$2
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16423 $as_echo_n "checking for $ac_word... " >&6; }
16424 if ${ac_cv_path_JAVAC+:} false
; then :
16425 $as_echo_n "(cached) " >&6
16429 ac_cv_path_JAVAC
="$JAVAC" # Let the user override the test with a path.
16432 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16433 for as_dir
in $PATH
16436 test -z "$as_dir" && as_dir
=.
16437 for ac_exec_ext
in '' $ac_executable_extensions; do
16438 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16439 ac_cv_path_JAVAC
="$as_dir/$ac_word$ac_exec_ext"
16440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16447 test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC
="javac"
16451 JAVAC
=$ac_cv_path_JAVAC
16452 if test -n "$JAVAC"; then
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
16454 $as_echo "$JAVAC" >&6; }
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16457 $as_echo "no" >&6; }
16461 if test -f $JAVAC; then
16462 x
=`readlink -f $JAVAC`
16465 if ! test -f $x/include
/jni.h
; then
16468 if test -f $x/include
/jni.h
; then
16469 jdk_inc
="-I$x/include -I$x/include/linux"
16470 enable_gprofng_jp
=yes
16474 if test "x$enable_gprofng_jp" = x
; then
16475 # Extract the first word of "java", so it can be a program name with args.
16476 set dummy java
; ac_word
=$2
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16478 $as_echo_n "checking for $ac_word... " >&6; }
16479 if ${ac_cv_path_JAVA+:} false
; then :
16480 $as_echo_n "(cached) " >&6
16484 ac_cv_path_JAVA
="$JAVA" # Let the user override the test with a path.
16487 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16488 for as_dir
in $PATH
16491 test -z "$as_dir" && as_dir
=.
16492 for ac_exec_ext
in '' $ac_executable_extensions; do
16493 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16494 ac_cv_path_JAVA
="$as_dir/$ac_word$ac_exec_ext"
16495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16502 test -z "$ac_cv_path_JAVA" && ac_cv_path_JAVA
="java"
16506 JAVA
=$ac_cv_path_JAVA
16507 if test -n "$JAVA"; then
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
16509 $as_echo "$JAVA" >&6; }
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16512 $as_echo "no" >&6; }
16516 if test -f $JAVA; then
16517 x
=`readlink -f $JAVA`
16520 if ! test -f $x/include
/jni.h
; then
16523 if test -f $x/include
/jni.h
; then
16524 jdk_inc
="-I$x/include -I$x/include/linux"
16525 enable_gprofng_jp
=yes
16529 if test "x$enable_gprofng_jp" = x
; then
16530 ac_fn_c_check_header_compile
"$LINENO" "jni.h" "ac_cv_header_jni_h" "
16532 if test "x$ac_cv_header_jni_h" = xyes
; then :
16533 enable_gprofng_jp
=yes
16538 GPROFNG_BROKEN_JAVAC
=no
16539 if test "x$enable_gprofng_jp" = x
; then
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find the JDK include directory.
16541 gprofng will be build without support for profiling Java applications.
16542 Use --with-jdk=PATH to specify directory for the installed JDK" >&5
16543 $as_echo "$as_me: WARNING: Cannot find the JDK include directory.
16544 gprofng will be build without support for profiling Java applications.
16545 Use --with-jdk=PATH to specify directory for the installed JDK" >&2;}
16548 $as_echo "#define GPROFNG_JAVA_PROFILING 1" >>confdefs.h
16550 if test "x$JAVAC" != x
; then
16551 cat > configtest.java
<< EOF
16553 public static void main(String args){
16554 System.out.println("Hello Java");
16558 if { ac_try
='$JAVAC conftest.java &5 2>&1'
16559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16560 (eval $ac_try) 2>&5
16562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16563 test $ac_status = 0; }; }; then
16564 GPROFNG_BROKEN_JAVAC
=no
16566 GPROFNG_BROKEN_JAVAC
=yes
16575 # Check whether --enable-gprofng-debug was given.
16576 if test "${enable_gprofng_debug+set}" = set; then :
16577 enableval
=$enable_gprofng_debug;
16578 case "$enableval" in
16580 *) as_fn_error $?
"Argument to enable/disable gprofng-debug must be yes or no" "$LINENO" 5 ;;
16584 enable_gprofng_debug
=no
16588 if test "${enable_gprofng_debug}" = yes; then
16590 $as_echo "#define DEBUG 1" >>confdefs.h
16594 # Check if linker supports --as-needed and --no-as-needed options.
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
16596 $as_echo_n "checking linker --as-needed support... " >&6; }
16597 if ${bfd_cv_ld_as_needed+:} false
; then :
16598 $as_echo_n "(cached) " >&6
16600 bfd_cv_ld_as_needed
=no
16601 if $LD --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
16602 bfd_cv_ld_as_needed
=yes
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
16607 $as_echo "$bfd_cv_ld_as_needed" >&6; }
16610 if test x
"$bfd_cv_ld_as_needed" = xyes
; then
16611 no_as_needed
='-Wl,--no-as-needed'
16614 # Extract the first word of "expect", so it can be a program name with args.
16615 set dummy expect
; ac_word
=$2
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16617 $as_echo_n "checking for $ac_word... " >&6; }
16618 if ${ac_cv_path_EXPECT+:} false
; then :
16619 $as_echo_n "(cached) " >&6
16623 ac_cv_path_EXPECT
="$EXPECT" # Let the user override the test with a path.
16626 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16627 for as_dir
in $PATH
16630 test -z "$as_dir" && as_dir
=.
16631 for ac_exec_ext
in '' $ac_executable_extensions; do
16632 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
16633 ac_cv_path_EXPECT
="$as_dir/$ac_word$ac_exec_ext"
16634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16644 EXPECT
=$ac_cv_path_EXPECT
16645 if test -n "$EXPECT"; then
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
16647 $as_echo "$EXPECT" >&6; }
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16650 $as_echo "no" >&6; }
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl supporting try/catch" >&5
16655 $as_echo_n "checking for Tcl supporting try/catch... " >&6; }
16656 if ${ac_cv_libctf_tcl_try+:} false
; then :
16657 $as_echo_n "(cached) " >&6
16659 ac_cv_libctf_tcl_try
=`if test -z $EXPECT; then echo no; else $EXPECT << EOF
16660 if [llength [info commands try]] then { puts yes } else { puts no }
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_tcl_try" >&5
16666 $as_echo "$ac_cv_libctf_tcl_try" >&6; }
16667 if test "${ac_cv_libctf_tcl_try}" = yes; then
16677 # Generate manpages, if possible.
16678 if test $cross_compiling = no
; then
16680 HELP2MAN
=${HELP2MAN-"${am_missing_run}help2man"}
16686 if test x
$build_man = xtrue
; then
16688 BUILD_MAN_FALSE
='#'
16695 LD_NO_AS_NEEDED
=${no_as_needed}
16697 GPROFNG_CFLAGS
=${gprofng_cflags}
16701 GPROFNG_CPPFLAGS
=${gprofng_cppflags}
16704 ac_fn_c_check_decl
"$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
16705 if test "x$ac_cv_have_decl_basename" = xyes
; then :
16711 cat >>confdefs.h
<<_ACEOF
16712 #define HAVE_DECL_BASENAME $ac_have_decl
16715 for ac_func
in clock_gettime strsignal
16717 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16718 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16719 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16720 cat >>confdefs.h
<<_ACEOF
16721 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16728 clock_gettime_link
=
16729 # At least for glibc, clock_gettime is in librt. But don't
16730 # pull that in if it still doesn't give us the function we want. This
16731 # test is copied from libgomp, and modified to not link in -lrt as
16732 # we're using this for test timing only.
16733 if test "$ac_cv_func_clock_gettime" = no
; then
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
16735 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
16736 if ${ac_cv_lib_rt_clock_gettime+:} false
; then :
16737 $as_echo_n "(cached) " >&6
16739 ac_check_lib_save_LIBS
=$LIBS
16741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16742 /* end confdefs.h. */
16744 /* Override any GCC internal prototype to avoid an error.
16745 Use char because int might match the return type of a GCC
16746 builtin and then its argument prototype would still apply. */
16750 char clock_gettime ();
16754 return clock_gettime ();
16759 if ac_fn_c_try_link
"$LINENO"; then :
16760 ac_cv_lib_rt_clock_gettime
=yes
16762 ac_cv_lib_rt_clock_gettime
=no
16764 rm -f core conftest.err conftest.
$ac_objext \
16765 conftest
$ac_exeext conftest.
$ac_ext
16766 LIBS
=$ac_check_lib_save_LIBS
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
16769 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
16770 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
; then :
16771 CLOCK_GETTIME_LINK
=-lrt
16773 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
16782 ac_config_files
="$ac_config_files Makefile src/Makefile gp-display-html/Makefile doc/Makefile"
16784 ac_config_headers
="$ac_config_headers config.h:common/config.h.in"
16787 cat >confcache
<<\_ACEOF
16788 # This file is a shell script that caches the results of configure
16789 # tests run on this system so they can be shared between configure
16790 # scripts and configure runs, see configure's option --config-cache.
16791 # It is not useful on other systems. If it contains results you don't
16792 # want to keep, you may remove or edit it.
16794 # config.status only pays attention to the cache file if you give it
16795 # the --recheck option to rerun configure.
16797 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16798 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16799 # following values.
16803 # The following way of writing the cache mishandles newlines in values,
16804 # but we know of no workaround that is simple, portable, and efficient.
16805 # So, we kill variables containing newlines.
16806 # Ultrix sh set writes to stderr and can't be redirected directly,
16807 # and sets the high bit in the cache file unless we assign to the vars.
16809 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16810 eval ac_val
=\$
$ac_var
16814 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16815 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16818 _ | IFS | as_nl
) ;; #(
16819 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
16820 *) { eval $ac_var=; unset $ac_var;} ;;
16826 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16827 *${as_nl}ac_space
=\
*)
16828 # `set' does not quote correctly, so add quotes: double-quote
16829 # substitution turns \\\\ into \\, and sed turns \\ into \.
16832 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16835 # `set' quotes correctly as required by POSIX, so do not add quotes.
16836 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16845 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16847 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16849 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
16850 if test -w "$cache_file"; then
16851 if test "x$cache_file" != "x/dev/null"; then
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16853 $as_echo "$as_me: updating cache $cache_file" >&6;}
16854 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
16855 cat confcache
>"$cache_file"
16857 case $cache_file in #(
16859 mv -f confcache
"$cache_file"$$
&&
16860 mv -f "$cache_file"$$
"$cache_file" ;; #(
16862 mv -f confcache
"$cache_file" ;;
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16868 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16873 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16874 # Let make expand exec_prefix.
16875 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16877 DEFS
=-DHAVE_CONFIG_H
16882 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
16883 # 1. Remove the extension, and $U if already installed.
16884 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
16885 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
16886 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16887 # will be set to the directory where LIBOBJS objects are built.
16888 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16889 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
16891 LIBOBJS
=$ac_libobjs
16893 LTLIBOBJS
=$ac_ltlibobjs
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16897 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16898 if test -n "$am_sleep_pid"; then
16899 # Hide warnings about reused PIDs.
16900 wait $am_sleep_pid 2>/dev
/null
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16903 $as_echo "done" >&6; }
16904 if test -n "$EXEEXT"; then
16906 am__EXEEXT_FALSE
='#'
16908 am__EXEEXT_TRUE
='#'
16912 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16913 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
16914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16916 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16917 as_fn_error $?
"conditional \"AMDEP\" was never defined.
16918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16920 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16921 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
16922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16924 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16925 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
16926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16928 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16929 as_fn_error $?
"conditional \"am__fastdepCXX\" was never defined.
16930 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16932 if test -z "${BUILD_COLLECTOR_TRUE}" && test -z "${BUILD_COLLECTOR_FALSE}"; then
16933 as_fn_error $?
"conditional \"BUILD_COLLECTOR\" was never defined.
16934 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16936 if test -z "${BUILD_SRC_TRUE}" && test -z "${BUILD_SRC_FALSE}"; then
16937 as_fn_error $?
"conditional \"BUILD_SRC\" was never defined.
16938 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16940 if test -z "${RUN_TESTS_TRUE}" && test -z "${RUN_TESTS_FALSE}"; then
16941 as_fn_error $?
"conditional \"RUN_TESTS\" was never defined.
16942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16944 if test -z "${TCL_TRY_TRUE}" && test -z "${TCL_TRY_FALSE}"; then
16945 as_fn_error $?
"conditional \"TCL_TRY\" was never defined.
16946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16948 if test -z "${BUILD_MAN_TRUE}" && test -z "${BUILD_MAN_FALSE}"; then
16949 as_fn_error $?
"conditional \"BUILD_MAN\" was never defined.
16950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16953 : "${CONFIG_STATUS=./config.status}"
16955 ac_clean_files_save
=$ac_clean_files
16956 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16958 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16960 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16962 # Generated by $as_me.
16963 # Run this file to recreate the current configuration.
16964 # Compiler output produced by configure, useful for debugging
16965 # configure, is in config.log if it exists.
16968 ac_cs_recheck=false
16971 SHELL=\${CONFIG_SHELL-$SHELL}
16974 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
16975 ## -------------------- ##
16976 ## M4sh Initialization. ##
16977 ## -------------------- ##
16979 # Be more Bourne compatible
16980 DUALCASE
=1; export DUALCASE
# for MKS sh
16981 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
16984 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16985 # is contrary to our usage. Disable this feature.
16986 alias -g '${1+"$@"}'='"$@"'
16987 setopt NO_GLOB_SUBST
16989 case `(set -o) 2>/dev/null` in #(
17001 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17002 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17003 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17004 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17005 # Prefer a ksh shell builtin over an external printf program on Solaris,
17006 # but without wasting forks for bash or zsh.
17007 if test -z "$BASH_VERSION$ZSH_VERSION" \
17008 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17009 as_echo='print
-r --'
17010 as_echo_n='print
-rn --'
17011 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17012 as_echo='printf %s
\n'
17013 as_echo_n='printf %s
'
17015 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17016 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
17017 as_echo_n='/usr
/ucb
/echo -n'
17019 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17020 as_echo_n_body='eval
17024 expr "X$arg" : "X\\(.*\\)$as_nl";
17025 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17027 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
17029 export as_echo_n_body
17030 as_echo_n='sh
-c $as_echo_n_body as_echo
'
17032 export as_echo_body
17033 as_echo='sh
-c $as_echo_body as_echo
'
17036 # The user is always right.
17037 if test "${PATH_SEPARATOR+set}" != set; then
17039 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17040 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17047 # We need space, tab and new line, in precisely that order. Quoting is
17048 # there to prevent editors from complaining about space-tab.
17049 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17050 # splitting by setting IFS to empty value.)
17053 # Find who we are. Look in the path if we contain no directory separator.
17056 *[\\/]* ) as_myself=$0 ;;
17057 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17058 for as_dir in $PATH
17061 test -z "$as_dir" && as_dir=.
17062 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17068 # We did not find ourselves, most probably we were run as `sh COMMAND'
17069 # in which case we are not to be found in the path.
17070 if test "x$as_myself" = x
; then
17073 if test ! -f "$as_myself"; then
17074 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17078 # Unset variables that we do not need and which cause bugs (e.g. in
17079 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17080 # suppresses any "Segmentation fault" message there. '((' could
17081 # trigger a bug in pdksh 5.2.14.
17082 for as_var
in BASH_ENV ENV MAIL MAILPATH
17083 do eval test x\
${$as_var+set} = xset \
17084 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17097 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17100 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17101 # ----------------------------------------
17102 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17103 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17104 # script with STATUS, using 1 if that was 0.
17107 as_status
=$1; test $as_status -eq 0 && as_status
=1
17109 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17110 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17112 $as_echo "$as_me: error: $2" >&2
17113 as_fn_exit
$as_status
17117 # as_fn_set_status STATUS
17118 # -----------------------
17119 # Set $? to STATUS, without forking.
17120 as_fn_set_status
()
17123 } # as_fn_set_status
17125 # as_fn_exit STATUS
17126 # -----------------
17127 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17131 as_fn_set_status
$1
17137 # Portably unset VAR.
17140 { eval $1=; unset $1;}
17142 as_unset
=as_fn_unset
17143 # as_fn_append VAR VALUE
17144 # ----------------------
17145 # Append the text in VALUE to the end of the definition contained in VAR. Take
17146 # advantage of any shell optimizations that allow amortized linear growth over
17147 # repeated appends, instead of the typical quadratic growth present in naive
17149 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
17150 eval 'as_fn_append ()
17161 # as_fn_arith ARG...
17162 # ------------------
17163 # Perform arithmetic evaluation on the ARGs, and store the result in the
17164 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17165 # must be portable across $(()) and expr.
17166 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
17167 eval 'as_fn_arith ()
17174 as_val
=`expr "$@" || test $? -eq 1`
17179 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
17180 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
17186 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17187 as_basename
=basename
17192 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
17198 as_me
=`$as_basename -- "$0" ||
17199 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17200 X"$0" : 'X\(//\)$' \| \
17201 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17203 sed '/^.*\/\([^/][^/]*\)\/*$/{
17217 # Avoid depending upon Character Ranges.
17218 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
17219 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17220 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
17221 as_cr_digits
='0123456789'
17222 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17224 ECHO_C
= ECHO_N
= ECHO_T
=
17225 case `echo -n x` in #(((((
17227 case `echo 'xy\c'` in
17228 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
17230 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
17237 rm -f conf$$ conf$$.exe conf$$.
file
17238 if test -d conf$$.dir
; then
17239 rm -f conf$$.dir
/conf$$.
file
17242 mkdir conf$$.dir
2>/dev
/null
17244 if (echo >conf$$.
file) 2>/dev
/null
; then
17245 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17247 # ... but there are two gotchas:
17248 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17249 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17250 # In both cases, we have to default to `cp -pR'.
17251 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
17253 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17261 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
17262 rmdir conf$$.dir
2>/dev
/null
17267 # Create "$as_dir" as a directory, including parents if necessary.
17272 -*) as_dir
=.
/$as_dir;;
17274 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
17278 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17279 *) as_qdir
=$as_dir;;
17281 as_dirs
="'$as_qdir' $as_dirs"
17282 as_dir
=`$as_dirname -- "$as_dir" ||
17283 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17284 X"$as_dir" : 'X\(//\)[^/]' \| \
17285 X"$as_dir" : 'X\(//\)$' \| \
17286 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17287 $as_echo X"$as_dir" |
17288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17292 /^X\(\/\/\)[^/].*/{
17305 test -d "$as_dir" && break
17307 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
17308 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
17312 if mkdir
-p .
2>/dev
/null
; then
17313 as_mkdir_p
='mkdir -p "$as_dir"'
17315 test -d .
/-p && rmdir .
/-p
17320 # as_fn_executable_p FILE
17321 # -----------------------
17322 # Test if FILE is an executable regular file.
17323 as_fn_executable_p
()
17325 test -f "$1" && test -x "$1"
17326 } # as_fn_executable_p
17327 as_test_x
='test -x'
17328 as_executable_p
=as_fn_executable_p
17330 # Sed expression to map a string onto a valid CPP name.
17331 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17333 # Sed expression to map a string onto a valid variable name.
17334 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17338 ## ----------------------------------- ##
17339 ## Main body of $CONFIG_STATUS script. ##
17340 ## ----------------------------------- ##
17342 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
17344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17345 # Save the log message, to keep $0 and so on meaningful, and to
17346 # report actual input values of CONFIG_FILES etc. instead of their
17347 # values after options handling.
17349 This file was extended by gprofng $as_me 2.38.50, which was
17350 generated by GNU Autoconf 2.69. Invocation command line was
17352 CONFIG_FILES = $CONFIG_FILES
17353 CONFIG_HEADERS = $CONFIG_HEADERS
17354 CONFIG_LINKS = $CONFIG_LINKS
17355 CONFIG_COMMANDS = $CONFIG_COMMANDS
17358 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17363 case $ac_config_files in *"
17364 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
17367 case $ac_config_headers in *"
17368 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
17372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17373 # Files that config.status was made for.
17374 config_files="$ac_config_files"
17375 config_headers="$ac_config_headers"
17376 config_commands="$ac_config_commands"
17380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17382 \`$as_me' instantiates files and other configuration actions
17383 from templates according to the current configuration. Unless the files
17384 and actions are specified as TAGs, all are instantiated by default.
17386 Usage: $0 [OPTION]... [TAG]...
17388 -h, --help print this help, then exit
17389 -V, --version print version number and configuration settings, then exit
17390 --config print configuration, then exit
17391 -q, --quiet, --silent
17392 do not print progress messages
17393 -d, --debug don't remove temporary files
17394 --recheck update $as_me by reconfiguring in the same conditions
17395 --file=FILE[:TEMPLATE]
17396 instantiate the configuration file FILE
17397 --header=FILE[:TEMPLATE]
17398 instantiate the configuration header FILE
17400 Configuration files:
17403 Configuration headers:
17406 Configuration commands:
17409 Report bugs to the package provider."
17412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17413 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17415 gprofng config.status 2.38.50
17416 configured by $0, generated by GNU Autoconf 2.69,
17417 with options \\"\$ac_cs_config\\"
17419 Copyright (C) 2012 Free Software Foundation, Inc.
17420 This config.status script is free software; the Free Software Foundation
17421 gives unlimited permission to copy, distribute and modify it."
17428 test -n "\$AWK" || AWK=awk
17431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17432 # The default lists apply if the user does not specify any file.
17438 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17439 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
17443 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
17455 # Handling of the options.
17456 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
17458 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
17459 $as_echo "$ac_cs_version"; exit ;;
17460 --config |
--confi |
--conf |
--con |
--co |
--c )
17461 $as_echo "$ac_cs_config"; exit ;;
17462 --debug |
--debu |
--deb |
--de |
--d |
-d )
17464 --file |
--fil |
--fi |
--f )
17467 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17468 '') as_fn_error $?
"missing file argument" ;;
17470 as_fn_append CONFIG_FILES
" '$ac_optarg'"
17471 ac_need_defaults
=false
;;
17472 --header |
--heade |
--head |
--hea )
17475 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17477 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
17478 ac_need_defaults
=false
;;
17480 # Conflict between --help and --header
17481 as_fn_error $?
"ambiguous option: \`$1'
17482 Try \`$0 --help' for more information.";;
17483 --help |
--hel |
-h )
17484 $as_echo "$ac_cs_usage"; exit ;;
17485 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
17486 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
17489 # This is an error.
17490 -*) as_fn_error $?
"unrecognized option: \`$1'
17491 Try \`$0 --help' for more information." ;;
17493 *) as_fn_append ac_config_targets
" $1"
17494 ac_need_defaults
=false
;;
17500 ac_configure_extra_args
=
17502 if $ac_cs_silent; then
17504 ac_configure_extra_args
="$ac_configure_extra_args --silent"
17508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17509 if \$ac_cs_recheck; then
17510 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17512 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17513 CONFIG_SHELL='$SHELL'
17514 export CONFIG_SHELL
17519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17523 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17524 ## Running $as_me. ##
17530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17534 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17537 # The HP-UX ksh and POSIX shell print the target directory to stdout
17538 # if CDPATH is set.
17539 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17541 sed_quote_subst='$sed_quote_subst'
17542 double_quote_subst='$double_quote_subst'
17543 delay_variable_subst='$delay_variable_subst'
17544 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17545 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17546 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17547 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17548 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17549 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17550 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17551 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17552 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17553 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17554 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17555 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17556 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17557 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17558 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17559 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17560 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17561 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17562 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17563 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17564 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17565 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17566 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17567 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17568 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17569 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17570 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17571 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17572 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17573 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17574 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17575 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17576 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17577 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17578 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17579 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17580 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17581 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17582 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17583 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17584 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17585 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17586 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17587 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17588 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17589 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17590 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17591 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17592 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"`'
17593 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17594 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17595 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17596 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17597 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17598 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17599 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17600 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17601 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17602 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17603 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17604 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17605 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17606 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17607 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17608 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17609 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17610 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17611 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17612 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17613 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17614 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17615 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17616 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17617 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17618 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17619 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17620 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17621 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17622 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17623 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17624 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17625 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17626 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17627 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17628 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17629 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17630 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17631 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17632 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17633 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17634 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17635 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17636 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17637 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17638 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17639 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17640 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17641 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17642 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17643 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17644 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17645 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17646 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17647 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17648 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17649 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17650 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17651 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17652 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17653 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17654 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17655 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17656 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17657 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17658 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17659 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17660 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17661 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17662 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17663 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17664 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17665 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17666 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17667 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17668 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17669 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17670 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17671 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17672 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17673 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17674 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17675 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17676 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17677 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17678 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17679 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17680 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17681 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17682 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17683 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17684 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17685 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17686 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17687 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17688 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17689 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17690 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17691 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17692 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17693 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17694 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17695 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17696 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17697 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17698 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17699 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17700 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17701 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17702 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17703 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17704 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17705 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17706 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17707 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17708 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17709 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17710 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17711 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17712 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17713 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17714 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17715 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17716 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17717 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17718 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17721 LTCFLAGS='$LTCFLAGS'
17722 compiler='$compiler_DEFAULT'
17724 # A function that is used when there is no print builtin or printf.
17725 func_fallback_echo ()
17727 eval 'cat <<_LTECHO_EOF
17732 # Quote evaled strings.
17746 deplibs_check_method \
17755 lt_cv_sys_global_symbol_pipe \
17756 lt_cv_sys_global_symbol_to_cdecl \
17757 lt_cv_sys_global_symbol_to_c_name_address \
17758 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17759 lt_prog_compiler_no_builtin_flag \
17760 lt_prog_compiler_wl \
17761 lt_prog_compiler_pic \
17762 lt_prog_compiler_static \
17763 lt_cv_prog_compiler_c_o \
17771 export_dynamic_flag_spec \
17772 whole_archive_flag_spec \
17773 compiler_needs_object \
17775 allow_undefined_flag \
17776 no_undefined_flag \
17777 hardcode_libdir_flag_spec \
17778 hardcode_libdir_flag_spec_ld \
17779 hardcode_libdir_separator \
17784 variables_saved_for_relink \
17786 library_names_spec \
17788 install_override_mode \
17792 compiler_lib_search_dirs \
17797 compiler_lib_search_path \
17801 lt_prog_compiler_no_builtin_flag_CXX \
17802 lt_prog_compiler_wl_CXX \
17803 lt_prog_compiler_pic_CXX \
17804 lt_prog_compiler_static_CXX \
17805 lt_cv_prog_compiler_c_o_CXX \
17806 export_dynamic_flag_spec_CXX \
17807 whole_archive_flag_spec_CXX \
17808 compiler_needs_object_CXX \
17810 allow_undefined_flag_CXX \
17811 no_undefined_flag_CXX \
17812 hardcode_libdir_flag_spec_CXX \
17813 hardcode_libdir_flag_spec_ld_CXX \
17814 hardcode_libdir_separator_CXX \
17815 fix_srcfile_path_CXX \
17816 exclude_expsyms_CXX \
17817 include_expsyms_CXX \
17818 file_list_spec_CXX \
17819 compiler_lib_search_dirs_CXX \
17820 predep_objects_CXX \
17821 postdep_objects_CXX \
17824 compiler_lib_search_path_CXX; do
17825 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17826 *[\\\\\\\`\\"\\\$]*)
17827 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17830 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17835 # Double-quote double-evaled strings.
17836 for var in reload_cmds \
17837 old_postinstall_cmds \
17838 old_postuninstall_cmds \
17840 extract_expsyms_cmds \
17841 old_archive_from_new_cmds \
17842 old_archive_from_expsyms_cmds \
17844 archive_expsym_cmds \
17846 module_expsym_cmds \
17847 export_symbols_cmds \
17850 postuninstall_cmds \
17852 sys_lib_search_path_spec \
17853 sys_lib_dlsearch_path_spec \
17855 old_archive_cmds_CXX \
17856 old_archive_from_new_cmds_CXX \
17857 old_archive_from_expsyms_cmds_CXX \
17859 archive_expsym_cmds_CXX \
17861 module_expsym_cmds_CXX \
17862 export_symbols_cmds_CXX \
17863 prelink_cmds_CXX; do
17864 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17865 *[\\\\\\\`\\"\\\$]*)
17866 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17869 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17874 ac_aux_dir='$ac_aux_dir'
17875 xsi_shell='$xsi_shell'
17876 lt_shell_append='$lt_shell_append'
17878 # See if we are running on zsh, and set the options which allow our
17879 # commands through without removal of \ escapes INIT.
17880 if test -n "\${ZSH_VERSION+set}" ; then
17881 setopt NO_GLOB_SUBST
17887 TIMESTAMP='$TIMESTAMP'
17898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
17900 # Handling of arguments.
17901 for ac_config_target
in $ac_config_targets
17903 case $ac_config_target in
17904 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
17905 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
17906 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17907 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
17908 "gp-display-html/Makefile") CONFIG_FILES
="$CONFIG_FILES gp-display-html/Makefile" ;;
17909 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
17910 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:common/config.h.in" ;;
17912 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17917 # If the user did not use the arguments to specify the items to instantiate,
17918 # then the envvar interface is used. Set only those that are not.
17919 # We use the long form for the default assignment because of an extremely
17920 # bizarre bug on SunOS 4.1.3.
17921 if $ac_need_defaults; then
17922 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17923 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17924 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17927 # Have a temporary directory for convenience. Make it in the build tree
17928 # simply because there is no reason against having it here, and in addition,
17929 # creating and moving files from /tmp can sometimes cause problems.
17930 # Hook for its removal unless debugging.
17931 # Note that there is a small window in which the directory will not be cleaned:
17932 # after its creation but before its name has been assigned to `$tmp'.
17936 trap 'exit_status=$?
17937 : "${ac_tmp:=$tmp}"
17938 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17940 trap 'as_fn_exit 1' 1 2 13 15
17942 # Create a (secure) tmp directory for tmp files.
17945 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17949 tmp
=.
/conf$$
-$RANDOM
17950 (umask 077 && mkdir
"$tmp")
17951 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
17954 # Set up the scripts for CONFIG_FILES section.
17955 # No need to generate them if there are no CONFIG_FILES.
17956 # This happens for instance with `./config.status config.h'.
17957 if test -n "$CONFIG_FILES"; then
17960 ac_cr
=`echo X | tr X '\015'`
17961 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17962 # But we know of no other shell where ac_cr would be empty at this
17963 # point, so we can use a bashism as a fallback.
17964 if test "x$ac_cr" = x
; then
17965 eval ac_cr
=\$
\'\\r
\'
17967 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17968 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17971 ac_cs_awk_cr
=$ac_cr
17974 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17979 echo "cat >conf$$subs.awk <<_ACEOF" &&
17980 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17982 } >conf$$subs.sh ||
17983 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17984 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17986 for ac_last_try in false false false false false :; do
17987 . ./conf$$subs.sh ||
17988 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17990 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
17991 if test $ac_delim_n = $ac_delim_num; then
17993 elif $ac_last_try; then
17994 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
17996 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
17999 rm -f conf$$subs.sh
18001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18002 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
18006 s/^/S["/; s
/!.
*/"]=/
18016 s/\(.\{148\}\)..*/\1/
18018 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18023 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18030 s/\(.\{148\}\)..*/\1/
18032 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18036 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18041 ' <conf$$subs.awk | sed '
18046 ' >>$CONFIG_STATUS || ac_write_fail=1
18047 rm -f conf$$subs.awk
18048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18050 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
18051 for (key in S) S_is_set[key] = 1
18057 nfields = split(line, field, "@
")
18059 len = length(field[1])
18060 for (i = 2; i < nfields; i++) {
18062 keylen = length(key)
18063 if (S_is_set[key]) {
18065 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18066 len += length(value) + length(field[++i])
18077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18078 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18079 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18082 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
18083 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
18086 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18087 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
18088 # trailing colons and then remove the whole line if VPATH becomes empty
18089 # (actually we leave an empty line to preserve line numbers).
18090 if test "x
$srcdir" = x.; then
18091 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18110 fi # test -n "$CONFIG_FILES"
18112 # Set up the scripts for CONFIG_HEADERS section.
18113 # No need to generate them if there are no CONFIG_HEADERS.
18114 # This happens for instance with `./config.status Makefile'.
18115 if test -n "$CONFIG_HEADERS"; then
18116 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
18120 # Transform confdefs.h into an awk script `defines.awk', embedded as
18121 # here-document in config.status, that substitutes the proper values into
18122 # config.h.in to produce config.h.
18124 # Create a delimiter string that does not exist in confdefs.h, to ease
18125 # handling of long lines.
18127 for ac_last_try in false false :; do
18128 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
18129 if test -z "$ac_tt"; then
18131 elif $ac_last_try; then
18132 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
18134 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18138 # For the awk script, D is an array of macro values keyed by name,
18139 # likewise P contains macro parameters if any. Preserve backslash
18140 # newline sequences.
18142 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18144 s/.\{148\}/&'"$ac_delim"'/g
18147 s/^[ ]*#[ ]*define[ ][ ]*/ /
18154 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18156 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18160 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18161 D["\
1"]=" \
3\\\\\\n
"\\/p
18163 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18168 s/.\{148\}/&'"$ac_delim"'/g
18173 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18176 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18178 ' <confdefs.h | sed '
18179 s/'"$ac_delim"'/"\\\
18180 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18183 for (key in D) D_is_set[key] = 1
18186 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18188 split(line, arg, " ")
18189 if (arg[1] == "#") {
18193 defundef
= substr
(arg
[1], 2)
18196 split(mac1
, mac2
, "(") #)
18198 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18199 if (D_is_set
[macro
]) {
18200 # Preserve the white space surrounding the "#".
18201 print prefix
"define", macro P
[macro
] D
[macro
]
18204 # Replace #undef with comments. This is necessary, for example,
18205 # in the case of _POSIX_SOURCE, which is predefined and required
18206 # on some systems where configure will not decide to define it.
18207 if (defundef
== "undef") {
18208 print
"/*", prefix defundef
, macro
, "*/"
18216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18217 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
18218 fi # test -n "$CONFIG_HEADERS"
18221 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18226 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18228 case $ac_mode$ac_tag in
18230 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18231 :[FH
]-) ac_tag
=-:-;;
18232 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18249 -) ac_f
="$ac_tmp/stdin";;
18250 *) # Look for the file first in the build tree, then in the source tree
18251 # (if the path is not absolute). The absolute path cannot be DOS-style,
18252 # because $ac_f cannot contain `:'.
18256 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18258 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18260 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18261 as_fn_append ac_file_inputs
" '$ac_f'"
18264 # Let's still pretend it is `configure' which instantiates (i.e., don't
18265 # use $as_me), people would be surprised to read:
18266 # /* config.h. Generated by config.status. */
18267 configure_input
='Generated from '`
18268 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18270 if test x
"$ac_file" != x-
; then
18271 configure_input
="$ac_file. $configure_input"
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18273 $as_echo "$as_me: creating $ac_file" >&6;}
18275 # Neutralize special characters interpreted by sed in replacement strings.
18276 case $configure_input in #(
18277 *\
&* |
*\|
* |
*\\* )
18278 ac_sed_conf_input
=`$as_echo "$configure_input" |
18279 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18280 *) ac_sed_conf_input
=$configure_input;;
18284 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
18285 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
18290 ac_dir
=`$as_dirname -- "$ac_file" ||
18291 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18292 X"$ac_file" : 'X\(//\)[^/]' \| \
18293 X"$ac_file" : 'X\(//\)$' \| \
18294 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18295 $as_echo X"$ac_file" |
18296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18300 /^X\(\/\/\)[^/].*/{
18313 as_dir
="$ac_dir"; as_fn_mkdir_p
18317 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18319 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18320 # A ".." for each directory in $ac_dir_suffix.
18321 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18322 case $ac_top_builddir_sub in
18323 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
18324 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
18327 ac_abs_top_builddir
=$ac_pwd
18328 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
18329 # for backward compatibility:
18330 ac_top_builddir
=$ac_top_build_prefix
18333 .
) # We are building in place.
18335 ac_top_srcdir
=$ac_top_builddir_sub
18336 ac_abs_top_srcdir
=$ac_pwd ;;
18337 [\\/]* | ?
:[\\/]* ) # Absolute name.
18338 ac_srcdir
=$srcdir$ac_dir_suffix;
18339 ac_top_srcdir
=$srcdir
18340 ac_abs_top_srcdir
=$srcdir ;;
18341 *) # Relative name.
18342 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
18343 ac_top_srcdir
=$ac_top_build_prefix$srcdir
18344 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
18346 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
18356 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18357 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
18359 ac_MKDIR_P
=$MKDIR_P
18361 [\\/$
]* | ?
:[\\/]* ) ;;
18362 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
18366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18367 # If the template does not know about datarootdir, expand it.
18368 # FIXME: This hack should be removed a few years after 2.60.
18369 ac_datarootdir_hack
=; ac_datarootdir_seen
=
18380 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18381 *datarootdir
*) ac_datarootdir_seen
=yes;;
18382 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18384 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18387 ac_datarootdir_hack='
18388 s&@datadir@&$datadir&g
18389 s&@docdir@&$docdir&g
18390 s&@infodir@&$infodir&g
18391 s&@localedir@&$localedir&g
18392 s&@mandir@&$mandir&g
18393 s&\\\${datarootdir}&$datarootdir&g' ;;
18397 # Neutralize VPATH when `$srcdir' = `.'.
18398 # Shell code in configure.ac might set extrasub.
18399 # FIXME: do we really want to maintain this feature?
18400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18401 ac_sed_extra="$ac_vpsub
18404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18406 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18407 s|@configure_input@|
$ac_sed_conf_input|
;t t
18408 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18409 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18410 s
&@srcdir@
&$ac_srcdir&;t t
18411 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18412 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18413 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18414 s
&@builddir@
&$ac_builddir&;t t
18415 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18416 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18417 s
&@INSTALL@
&$ac_INSTALL&;t t
18418 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
18419 $ac_datarootdir_hack
18421 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
18422 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
18424 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18425 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
18426 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18427 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18429 which seems to be undefined. Please make sure it is defined" >&5
18430 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18431 which seems to be undefined. Please make sure it is defined" >&2;}
18433 rm -f "$ac_tmp/stdin"
18435 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18436 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18438 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18444 if test x"$ac_file" != x-; then
18446 $as_echo "/* $configure_input */" \
18447 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18448 } >"$ac_tmp/config.h" \
18449 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18450 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18452 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18455 mv "$ac_tmp/config.h" "$ac_file" \
18456 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18459 $as_echo "/* $configure_input */" \
18460 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18461 || as_fn_error $? "could not create -" "$LINENO" 5
18463 # Compute "$ac_file"'s index
in $config_headers.
18466 for _am_header
in $config_headers :; do
18467 case $_am_header in
18468 $_am_arg |
$_am_arg:* )
18471 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
18474 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18475 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18476 X"$_am_arg" : 'X\(//\)[^/]' \| \
18477 X"$_am_arg" : 'X\(//\)$' \| \
18478 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18479 $as_echo X"$_am_arg" |
18480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18484 /^X\(\/\/\)[^/].*/{
18496 s/.*/./; q'`/stamp-h
$_am_stamp_count
18499 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18500 $as_echo "$as_me: executing $ac_file commands" >&6;}
18505 case $ac_file$ac_mode in
18506 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
18507 # Older Autoconf quotes --file arguments for eval, but not when files
18508 # are listed without --file. Let's play safe and only enable the eval
18509 # if we detect the quoting.
18510 case $CONFIG_FILES in
18511 *\'*) eval set x
"$CONFIG_FILES" ;;
18512 *) set x
$CONFIG_FILES ;;
18517 # Strip MF so we end up with the name of the file.
18518 mf
=`echo "$mf" | sed -e 's/:.*$//'`
18519 # Check whether this is an Automake generated Makefile or not.
18520 # We used to match only the files named 'Makefile.in', but
18521 # some people rename them; so instead we look at the file content.
18522 # Grep'ing the first line is not enough: some people post-process
18523 # each Makefile.in and add a new line on top of each file to say so.
18524 # Grep'ing the whole file is not good either: AIX grep has a line
18525 # limit of 2048, but all sed's we know have understand at least 4000.
18526 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
18527 dirpart
=`$as_dirname -- "$mf" ||
18528 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18529 X"$mf" : 'X\(//\)[^/]' \| \
18530 X"$mf" : 'X\(//\)$' \| \
18531 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18537 /^X\(\/\/\)[^/].*/{
18553 # Extract the definition of DEPDIR, am__include, and am__quote
18554 # from the Makefile without running 'make'.
18555 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
18556 test -z "$DEPDIR" && continue
18557 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
18558 test -z "$am__include" && continue
18559 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
18560 # Find all dependency output files, they are included files with
18561 # $(DEPDIR) in their names. We invoke sed twice because it is the
18562 # simplest approach to changing $(DEPDIR) to its actual value in the
18564 for file in `sed -n "
18565 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18566 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18567 # Make sure the directory exists.
18568 test -f "$dirpart/$file" && continue
18569 fdir
=`$as_dirname -- "$file" ||
18570 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18571 X"$file" : 'X\(//\)[^/]' \| \
18572 X"$file" : 'X\(//\)$' \| \
18573 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18574 $as_echo X"$file" |
18575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18579 /^X\(\/\/\)[^/].*/{
18592 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
18593 # echo "creating $dirpart/$file"
18594 echo '# dummy' > "$dirpart/$file"
18601 # See if we are running on zsh, and set the options which allow our
18602 # commands through without removal of \ escapes.
18603 if test -n "${ZSH_VERSION+set}" ; then
18604 setopt NO_GLOB_SUBST
18607 cfgfile
="${ofile}T"
18608 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18611 cat <<_LT_EOF >> "$cfgfile"
18614 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18615 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18616 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18617 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18619 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18620 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18621 # Written by Gordon Matzigkeit, 1996
18623 # This file is part of GNU Libtool.
18625 # GNU Libtool is free software; you can redistribute it and/or
18626 # modify it under the terms of the GNU General Public License as
18627 # published by the Free Software Foundation; either version 2 of
18628 # the License, or (at your option) any later version.
18630 # As a special exception to the GNU General Public License,
18631 # if you distribute this file as part of a program or library that
18632 # is built using GNU Libtool, you may include this file under the
18633 # same distribution terms that you use for the rest of that program.
18635 # GNU Libtool is distributed in the hope that it will be useful,
18636 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18637 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18638 # GNU General Public License for more details.
18640 # You should have received a copy of the GNU General Public License
18641 # along with GNU Libtool; see the file COPYING. If not, a copy
18642 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18643 # obtained by writing to the Free Software Foundation, Inc.,
18644 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18647 # The names of the tagged configurations supported by this script.
18648 available_tags="CXX "
18650 # ### BEGIN LIBTOOL CONFIG
18652 # Whether or not to build shared libraries.
18653 build_libtool_libs=$enable_shared
18655 # Which release of libtool.m4 was used?
18656 macro_version=$macro_version
18657 macro_revision=$macro_revision
18659 # Whether or not to build static libraries.
18660 build_old_libs=$enable_static
18662 # What type of objects to build.
18665 # Whether or not to optimize for fast installation.
18666 fast_install=$enable_fast_install
18668 # Shell to use when invoking shell scripts.
18671 # An echo program that protects backslashes.
18675 host_alias=$host_alias
18679 # The build system.
18680 build_alias=$build_alias
18684 # A sed program that does not truncate output.
18687 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18688 Xsed="\$SED -e 1s/^X//"
18690 # A grep program that handles long lines.
18696 # A literal string matcher.
18699 # A BSD- or MS-compatible name lister.
18702 # Whether we need soft or hard links.
18705 # What is the maximum length of a command?
18706 max_cmd_len=$max_cmd_len
18708 # Object file suffix (normally "o").
18711 # Executable file suffix (normally "").
18714 # whether the shell understands "unset".
18717 # turn spaces into newlines.
18720 # turn newlines into spaces.
18723 # An object symbol dumper.
18724 OBJDUMP=$lt_OBJDUMP
18726 # Method to check whether dependent libraries are shared objects.
18727 deplibs_check_method=$lt_deplibs_check_method
18729 # Command to use when deplibs_check_method == "file_magic".
18730 file_magic_cmd=$lt_file_magic_cmd
18734 AR_FLAGS=$lt_AR_FLAGS
18736 # A symbol stripping program.
18739 # Commands used to install an old-style archive.
18741 old_postinstall_cmds=$lt_old_postinstall_cmds
18742 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18744 # Whether to use a lock for old archive extraction.
18745 lock_old_archive_extraction=$lock_old_archive_extraction
18750 # LTCC compiler flags.
18751 LTCFLAGS=$lt_CFLAGS
18753 # Take the output of nm and produce a listing of raw symbols and C names.
18754 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18756 # Transform the output of nm in a proper C declaration.
18757 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18759 # Transform the output of nm in a C name address pair.
18760 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18762 # Transform the output of nm in a C name address pair when lib prefix is needed.
18763 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18765 # The name of the directory that contains temporary libtool files.
18768 # Used to examine libraries when file_magic_cmd begins with "file".
18769 MAGIC_CMD=$MAGIC_CMD
18771 # Must we lock files when doing compilation?
18772 need_locks=$lt_need_locks
18774 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18775 DSYMUTIL=$lt_DSYMUTIL
18777 # Tool to change global to local symbols on Mac OS X.
18780 # Tool to manipulate fat objects and archives on Mac OS X.
18783 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18786 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18787 OTOOL64=$lt_OTOOL64
18789 # Old archive suffix (normally "a").
18792 # Shared library suffix (normally ".so").
18793 shrext_cmds=$lt_shrext_cmds
18795 # The commands to extract the exported symbol list from a shared archive.
18796 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18798 # Variables whose values should be saved in libtool wrapper scripts and
18799 # restored at link time.
18800 variables_saved_for_relink=$lt_variables_saved_for_relink
18802 # Do we need the "lib" prefix for modules?
18803 need_lib_prefix=$need_lib_prefix
18805 # Do we need a version for libraries?
18806 need_version=$need_version
18808 # Library versioning type.
18809 version_type=$version_type
18811 # Shared library runtime path variable.
18812 runpath_var=$runpath_var
18814 # Shared library path variable.
18815 shlibpath_var=$shlibpath_var
18817 # Is shlibpath searched before the hard-coded library search path?
18818 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18820 # Format of library name prefix.
18821 libname_spec=$lt_libname_spec
18823 # List of archive names. First name is the real one, the rest are links.
18824 # The last name is the one that the linker finds with -lNAME
18825 library_names_spec=$lt_library_names_spec
18827 # The coded name of the library, if different from the real name.
18828 soname_spec=$lt_soname_spec
18830 # Permission mode override for installation of shared libraries.
18831 install_override_mode=$lt_install_override_mode
18833 # Command to use after installation of a shared archive.
18834 postinstall_cmds=$lt_postinstall_cmds
18836 # Command to use after uninstallation of a shared archive.
18837 postuninstall_cmds=$lt_postuninstall_cmds
18839 # Commands used to finish a libtool library installation in a directory.
18840 finish_cmds=$lt_finish_cmds
18842 # As "finish_cmds", except a single script fragment to be evaled but
18844 finish_eval=$lt_finish_eval
18846 # Whether we should hardcode library paths into libraries.
18847 hardcode_into_libs=$hardcode_into_libs
18849 # Compile-time system search path for libraries.
18850 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18852 # Run-time system search path for libraries.
18853 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18855 # Whether dlopen is supported.
18856 dlopen_support=$enable_dlopen
18858 # Whether dlopen of programs is supported.
18859 dlopen_self=$enable_dlopen_self
18861 # Whether dlopen of statically linked programs is supported.
18862 dlopen_self_static=$enable_dlopen_self_static
18864 # Commands to strip libraries.
18865 old_striplib=$lt_old_striplib
18866 striplib=$lt_striplib
18869 # The linker used to build libraries.
18872 # How to create reloadable object files.
18873 reload_flag=$lt_reload_flag
18874 reload_cmds=$lt_reload_cmds
18876 # Commands used to build an old-style archive.
18877 old_archive_cmds=$lt_old_archive_cmds
18879 # A language specific compiler.
18882 # Is the compiler the GNU compiler?
18885 # Compiler flag to turn off builtin functions.
18886 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18888 # How to pass a linker flag through the compiler.
18889 wl=$lt_lt_prog_compiler_wl
18891 # Additional compiler flags for building library objects.
18892 pic_flag=$lt_lt_prog_compiler_pic
18894 # Compiler flag to prevent dynamic linking.
18895 link_static_flag=$lt_lt_prog_compiler_static
18897 # Does compiler simultaneously support -c and -o options?
18898 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18900 # Whether or not to add -lc for building shared libraries.
18901 build_libtool_need_lc=$archive_cmds_need_lc
18903 # Whether or not to disallow shared libs when runtime libs are static.
18904 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18906 # Compiler flag to allow reflexive dlopens.
18907 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18909 # Compiler flag to generate shared objects directly from archives.
18910 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18912 # Whether the compiler copes with passing no objects directly.
18913 compiler_needs_object=$lt_compiler_needs_object
18915 # Create an old-style archive from a shared archive.
18916 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18918 # Create a temporary old-style archive to link instead of a shared archive.
18919 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18921 # Commands used to build a shared archive.
18922 archive_cmds=$lt_archive_cmds
18923 archive_expsym_cmds=$lt_archive_expsym_cmds
18925 # Commands used to build a loadable module if different from building
18926 # a shared archive.
18927 module_cmds=$lt_module_cmds
18928 module_expsym_cmds=$lt_module_expsym_cmds
18930 # Whether we are building with GNU ld or not.
18931 with_gnu_ld=$lt_with_gnu_ld
18933 # Flag that allows shared libraries with undefined symbols to be built.
18934 allow_undefined_flag=$lt_allow_undefined_flag
18936 # Flag that enforces no undefined symbols.
18937 no_undefined_flag=$lt_no_undefined_flag
18939 # Flag to hardcode \$libdir into a binary during linking.
18940 # This must work even if \$libdir does not exist
18941 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18943 # If ld is used when linking, flag to hardcode \$libdir into a binary
18944 # during linking. This must work even if \$libdir does not exist.
18945 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18947 # Whether we need a single "-rpath" flag with a separated argument.
18948 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18950 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18951 # DIR into the resulting binary.
18952 hardcode_direct=$hardcode_direct
18954 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18955 # DIR into the resulting binary and the resulting library dependency is
18956 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18957 # library is relocated.
18958 hardcode_direct_absolute=$hardcode_direct_absolute
18960 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18961 # into the resulting binary.
18962 hardcode_minus_L=$hardcode_minus_L
18964 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18965 # into the resulting binary.
18966 hardcode_shlibpath_var=$hardcode_shlibpath_var
18968 # Set to "yes" if building a shared library automatically hardcodes DIR
18969 # into the library and all subsequent libraries and executables linked
18971 hardcode_automatic=$hardcode_automatic
18973 # Set to yes if linker adds runtime paths of dependent libraries
18974 # to runtime path list.
18975 inherit_rpath=$inherit_rpath
18977 # Whether libtool must link a program against all its dependency libraries.
18978 link_all_deplibs=$link_all_deplibs
18980 # Fix the shell variable \$srcfile for the compiler.
18981 fix_srcfile_path=$lt_fix_srcfile_path
18983 # Set to "yes" if exported symbols are required.
18984 always_export_symbols=$always_export_symbols
18986 # The commands to list exported symbols.
18987 export_symbols_cmds=$lt_export_symbols_cmds
18989 # Symbols that should not be listed in the preloaded symbols.
18990 exclude_expsyms=$lt_exclude_expsyms
18992 # Symbols that must always be exported.
18993 include_expsyms=$lt_include_expsyms
18995 # Commands necessary for linking programs (against libraries) with templates.
18996 prelink_cmds=$lt_prelink_cmds
18998 # Specify filename containing input files.
18999 file_list_spec=$lt_file_list_spec
19001 # How to hardcode a shared library path into an executable.
19002 hardcode_action=$hardcode_action
19004 # The directories searched by this compiler when creating a shared library.
19005 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19007 # Dependencies to place before and after the objects being linked to
19008 # create a shared library.
19009 predep_objects=$lt_predep_objects
19010 postdep_objects=$lt_postdep_objects
19011 predeps=$lt_predeps
19012 postdeps=$lt_postdeps
19014 # The library search path used internally by the compiler when linking
19015 # a shared library.
19016 compiler_lib_search_path=$lt_compiler_lib_search_path
19018 # ### END LIBTOOL CONFIG
19024 cat <<\_LT_EOF
>> "$cfgfile"
19025 # AIX sometimes has problems with the GCC collect2 program. For some
19026 # reason, if we set the COLLECT_NAMES environment variable, the problems
19027 # vanish in a puff of smoke.
19028 if test "X${COLLECT_NAMES+set}" != Xset
; then
19030 export COLLECT_NAMES
19037 ltmain
="$ac_aux_dir/ltmain.sh"
19040 # We use sed instead of cat because bash on DJGPP gets confused if
19041 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19042 # text mode, it properly converts lines to CR/LF. This bash problem
19043 # is reportedly fixed, but why not run on old versions too?
19044 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19045 ||
(rm -f "$cfgfile"; exit 1)
19049 cat << \_LT_EOF
>> "$cfgfile"
19051 # func_dirname file append nondir_replacement
19052 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19053 # otherwise set result to NONDIR_REPLACEMENT.
19057 */*) func_dirname_result
="${1%/*}${2}" ;;
19058 * ) func_dirname_result
="${3}" ;;
19062 # func_basename file
19065 func_basename_result
="${1##*/}"
19068 # func_dirname_and_basename file append nondir_replacement
19069 # perform func_basename and func_dirname in a single function
19071 # dirname: Compute the dirname of FILE. If nonempty,
19072 # add APPEND to the result, otherwise set result
19073 # to NONDIR_REPLACEMENT.
19074 # value returned in "$func_dirname_result"
19075 # basename: Compute filename of FILE.
19076 # value retuned in "$func_basename_result"
19077 # Implementation must be kept synchronized with func_dirname
19078 # and func_basename. For efficiency, we do not delegate to
19079 # those functions but instead duplicate the functionality here.
19080 func_dirname_and_basename
()
19083 */*) func_dirname_result
="${1%/*}${2}" ;;
19084 * ) func_dirname_result
="${3}" ;;
19086 func_basename_result
="${1##*/}"
19089 # func_stripname prefix suffix name
19090 # strip PREFIX and SUFFIX off of NAME.
19091 # PREFIX and SUFFIX must not contain globbing or regex special
19092 # characters, hashes, percent signs, but SUFFIX may contain a leading
19093 # dot (in which case that matches only a dot).
19096 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19097 # positional parameters, so assign one to ordinary parameter first.
19098 func_stripname_result
=${3}
19099 func_stripname_result
=${func_stripname_result#"${1}"}
19100 func_stripname_result
=${func_stripname_result%"${2}"}
19106 func_opt_split_opt
=${1%%=*}
19107 func_opt_split_arg
=${1#*=}
19114 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
19115 *) func_lo2o_result
=${1} ;;
19119 # func_xform libobj-or-source
19122 func_xform_result
=${1%.*}.lo
19125 # func_arith arithmetic-term...
19128 func_arith_result
=$
(( $
* ))
19132 # STRING may not start with a hyphen.
19135 func_len_result
=${#1}
19140 *) # Bourne compatible functions.
19141 cat << \_LT_EOF
>> "$cfgfile"
19143 # func_dirname file append nondir_replacement
19144 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19145 # otherwise set result to NONDIR_REPLACEMENT.
19148 # Extract subdirectory from the argument.
19149 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
19150 if test "X$func_dirname_result" = "X${1}"; then
19151 func_dirname_result
="${3}"
19153 func_dirname_result
="$func_dirname_result${2}"
19157 # func_basename file
19160 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
19164 # func_stripname prefix suffix name
19165 # strip PREFIX and SUFFIX off of NAME.
19166 # PREFIX and SUFFIX must not contain globbing or regex special
19167 # characters, hashes, percent signs, but SUFFIX may contain a leading
19168 # dot (in which case that matches only a dot).
19169 # func_strip_suffix prefix name
19173 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19174 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19179 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
19180 my_sed_long_arg
='1s/^-[^=]*=//'
19185 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19186 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19192 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
19195 # func_xform libobj-or-source
19198 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19201 # func_arith arithmetic-term...
19204 func_arith_result
=`expr "$@"`
19208 # STRING may not start with a hyphen.
19211 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19217 case $lt_shell_append in
19219 cat << \_LT_EOF
>> "$cfgfile"
19221 # func_append var value
19222 # Append VALUE to the end of shell variable VAR.
19230 cat << \_LT_EOF
>> "$cfgfile"
19232 # func_append var value
19233 # Append VALUE to the end of shell variable VAR.
19244 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19245 ||
(rm -f "$cfgfile"; exit 1)
19247 mv -f "$cfgfile" "$ofile" ||
19248 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19252 cat <<_LT_EOF >> "$ofile"
19254 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19256 # The linker used to build libraries.
19259 # How to create reloadable object files.
19260 reload_flag=$lt_reload_flag_CXX
19261 reload_cmds=$lt_reload_cmds_CXX
19263 # Commands used to build an old-style archive.
19264 old_archive_cmds=$lt_old_archive_cmds_CXX
19266 # A language specific compiler.
19267 CC=$lt_compiler_CXX
19269 # Is the compiler the GNU compiler?
19272 # Compiler flag to turn off builtin functions.
19273 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19275 # How to pass a linker flag through the compiler.
19276 wl=$lt_lt_prog_compiler_wl_CXX
19278 # Additional compiler flags for building library objects.
19279 pic_flag=$lt_lt_prog_compiler_pic_CXX
19281 # Compiler flag to prevent dynamic linking.
19282 link_static_flag=$lt_lt_prog_compiler_static_CXX
19284 # Does compiler simultaneously support -c and -o options?
19285 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19287 # Whether or not to add -lc for building shared libraries.
19288 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19290 # Whether or not to disallow shared libs when runtime libs are static.
19291 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19293 # Compiler flag to allow reflexive dlopens.
19294 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19296 # Compiler flag to generate shared objects directly from archives.
19297 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19299 # Whether the compiler copes with passing no objects directly.
19300 compiler_needs_object=$lt_compiler_needs_object_CXX
19302 # Create an old-style archive from a shared archive.
19303 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19305 # Create a temporary old-style archive to link instead of a shared archive.
19306 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19308 # Commands used to build a shared archive.
19309 archive_cmds=$lt_archive_cmds_CXX
19310 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19312 # Commands used to build a loadable module if different from building
19313 # a shared archive.
19314 module_cmds=$lt_module_cmds_CXX
19315 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19317 # Whether we are building with GNU ld or not.
19318 with_gnu_ld=$lt_with_gnu_ld_CXX
19320 # Flag that allows shared libraries with undefined symbols to be built.
19321 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19323 # Flag that enforces no undefined symbols.
19324 no_undefined_flag=$lt_no_undefined_flag_CXX
19326 # Flag to hardcode \$libdir into a binary during linking.
19327 # This must work even if \$libdir does not exist
19328 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19330 # If ld is used when linking, flag to hardcode \$libdir into a binary
19331 # during linking. This must work even if \$libdir does not exist.
19332 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19334 # Whether we need a single "-rpath" flag with a separated argument.
19335 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19337 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19338 # DIR into the resulting binary.
19339 hardcode_direct=$hardcode_direct_CXX
19341 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19342 # DIR into the resulting binary and the resulting library dependency is
19343 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19344 # library is relocated.
19345 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19347 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19348 # into the resulting binary.
19349 hardcode_minus_L=$hardcode_minus_L_CXX
19351 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19352 # into the resulting binary.
19353 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19355 # Set to "yes" if building a shared library automatically hardcodes DIR
19356 # into the library and all subsequent libraries and executables linked
19358 hardcode_automatic=$hardcode_automatic_CXX
19360 # Set to yes if linker adds runtime paths of dependent libraries
19361 # to runtime path list.
19362 inherit_rpath=$inherit_rpath_CXX
19364 # Whether libtool must link a program against all its dependency libraries.
19365 link_all_deplibs=$link_all_deplibs_CXX
19367 # Fix the shell variable \$srcfile for the compiler.
19368 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19370 # Set to "yes" if exported symbols are required.
19371 always_export_symbols=$always_export_symbols_CXX
19373 # The commands to list exported symbols.
19374 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19376 # Symbols that should not be listed in the preloaded symbols.
19377 exclude_expsyms=$lt_exclude_expsyms_CXX
19379 # Symbols that must always be exported.
19380 include_expsyms=$lt_include_expsyms_CXX
19382 # Commands necessary for linking programs (against libraries) with templates.
19383 prelink_cmds=$lt_prelink_cmds_CXX
19385 # Specify filename containing input files.
19386 file_list_spec=$lt_file_list_spec_CXX
19388 # How to hardcode a shared library path into an executable.
19389 hardcode_action=$hardcode_action_CXX
19391 # The directories searched by this compiler when creating a shared library.
19392 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19394 # Dependencies to place before and after the objects being linked to
19395 # create a shared library.
19396 predep_objects=$lt_predep_objects_CXX
19397 postdep_objects=$lt_postdep_objects_CXX
19398 predeps=$lt_predeps_CXX
19399 postdeps=$lt_postdeps_CXX
19401 # The library search path used internally by the compiler when linking
19402 # a shared library.
19403 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19405 # ### END LIBTOOL TAG CONFIG: CXX
19416 ac_clean_files
=$ac_clean_files_save
19418 test $ac_write_fail = 0 ||
19419 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
19422 # configure is writing to config.log, and then calls config.status.
19423 # config.status does its own redirection, appending to config.log.
19424 # Unfortunately, on DOS this fails, as config.log is still kept open
19425 # by configure, so config.status won't be able to write to it; its
19426 # output is simply discarded. So we exec the FD to /dev/null,
19427 # effectively closing config.log, so it can be properly (re)opened and
19428 # appended to by config.status. When coming back to configure, we
19429 # need to make the FD available again.
19430 if test "$no_create" != yes; then
19432 ac_config_status_args
=
19433 test "$silent" = yes &&
19434 ac_config_status_args
="$ac_config_status_args --quiet"
19436 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19438 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19439 # would make configure fail if this is the last instruction.
19440 $ac_cs_success || as_fn_exit
1
19444 # CONFIG_SUBDIRS section.
19446 if test "$no_recursion" != yes; then
19448 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19449 # so they do not pile up.
19450 ac_sub_configure_args
=
19452 eval "set x $ac_configure_args"
19456 if test -n "$ac_prev"; then
19461 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
19462 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
19463 ac_prev
=cache_file
;;
19464 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
19465 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
19468 --config-cache |
-C)
19470 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
19472 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
19474 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
19476 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
19478 --disable-option-checking)
19482 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19484 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
19488 # Always prepend --prefix to ensure using the same prefix
19489 # in subdir configurations.
19490 ac_arg
="--prefix=$prefix"
19492 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19494 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
19497 if test "$silent" = yes; then
19498 ac_sub_configure_args
="--silent $ac_sub_configure_args"
19501 # Always prepend --disable-option-checking to silence warnings, since
19502 # different subdirs can have different --enable and --with options.
19503 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
19506 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
19508 # Do not complain, so a configure script can configure whichever
19509 # parts of a large source tree are present.
19510 test -d "$srcdir/$ac_dir" ||
continue
19512 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19513 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19514 $as_echo "$ac_msg" >&6
19515 as_dir
="$ac_dir"; as_fn_mkdir_p
19519 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19521 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19522 # A ".." for each directory in $ac_dir_suffix.
19523 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19524 case $ac_top_builddir_sub in
19525 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19526 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
19529 ac_abs_top_builddir
=$ac_pwd
19530 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
19531 # for backward compatibility:
19532 ac_top_builddir
=$ac_top_build_prefix
19535 .
) # We are building in place.
19537 ac_top_srcdir
=$ac_top_builddir_sub
19538 ac_abs_top_srcdir
=$ac_pwd ;;
19539 [\\/]* | ?
:[\\/]* ) # Absolute name.
19540 ac_srcdir
=$srcdir$ac_dir_suffix;
19541 ac_top_srcdir
=$srcdir
19542 ac_abs_top_srcdir
=$srcdir ;;
19543 *) # Relative name.
19544 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
19545 ac_top_srcdir
=$ac_top_build_prefix$srcdir
19546 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
19548 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19553 # Check for guested configure; otherwise get Cygnus style configure.
19554 if test -f "$ac_srcdir/configure.gnu"; then
19555 ac_sub_configure
=$ac_srcdir/configure.gnu
19556 elif test -f "$ac_srcdir/configure"; then
19557 ac_sub_configure
=$ac_srcdir/configure
19558 elif test -f "$ac_srcdir/configure.in"; then
19559 # This should be Cygnus configure.
19560 ac_sub_configure
=$ac_aux_dir/configure
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19563 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19567 # The recursion is here.
19568 if test -n "$ac_sub_configure"; then
19569 # Make the cache file name correct relative to the subdirectory.
19570 case $cache_file in
19571 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
19572 *) # Relative name.
19573 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19577 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19578 # The eval makes quoting arguments work.
19579 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19580 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19581 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19587 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19589 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}