2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
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.
595 ac_unique_file
="Makefile.in"
596 # Factoring default headers for most tests.
597 ac_includes_default
="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
632 ac_subst_vars
='LTLIBOBJS
640 sim_multi_igen_configs
643 sim_micromips16_flags
652 MAINTAINER_MODE_FALSE
751 program_transform_name
775 enable_option_checking
784 enable_maintainer_mode
794 enable_build_warnings
795 enable_sim_build_warnings
796 enable_sim_reserved_bits
803 ac_precious_vars
='build_alias
815 # Initialize some variables set by options.
817 ac_init_version
=false
818 ac_unrecognized_opts
=
820 # The variables have the same names as the options, with
821 # dashes changed to underlines.
829 program_transform_name
=s
,x
,x
,
837 # Installation directory options.
838 # These are left unexpanded so users can "make install exec_prefix=/foo"
839 # and all the variables that are supposed to be based on exec_prefix
840 # by default will actually change.
841 # Use braces instead of parens because sh, perl, etc. also accept them.
842 # (The list follows the same order as the GNU Coding Standards.)
843 bindir
='${exec_prefix}/bin'
844 sbindir
='${exec_prefix}/sbin'
845 libexecdir
='${exec_prefix}/libexec'
846 datarootdir
='${prefix}/share'
847 datadir
='${datarootdir}'
848 sysconfdir
='${prefix}/etc'
849 sharedstatedir
='${prefix}/com'
850 localstatedir
='${prefix}/var'
851 includedir
='${prefix}/include'
852 oldincludedir
='/usr/include'
853 docdir
='${datarootdir}/doc/${PACKAGE}'
854 infodir
='${datarootdir}/info'
859 libdir
='${exec_prefix}/lib'
860 localedir
='${datarootdir}/locale'
861 mandir
='${datarootdir}/man'
867 # If the previous option needs an argument, assign it.
868 if test -n "$ac_prev"; then
869 eval $ac_prev=\
$ac_option
875 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 # Accept the important Cygnus configure options, so we can diagnose typos.
882 case $ac_dashdash$ac_option in
886 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
888 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
891 -build |
--build |
--buil |
--bui |
--bu)
892 ac_prev
=build_alias
;;
893 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
894 build_alias
=$ac_optarg ;;
896 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
897 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
898 ac_prev
=cache_file
;;
899 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
900 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
901 cache_file
=$ac_optarg ;;
904 cache_file
=config.cache
;;
906 -datadir |
--datadir |
--datadi |
--datad)
908 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
909 datadir
=$ac_optarg ;;
911 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
912 |
--dataroo |
--dataro |
--datar)
913 ac_prev
=datarootdir
;;
914 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
915 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
916 datarootdir
=$ac_optarg ;;
918 -disable-* |
--disable-*)
919 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
922 as_fn_error $?
"invalid feature name: $ac_useropt"
923 ac_useropt_orig
=$ac_useropt
924 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
929 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
930 ac_unrecognized_sep
=', ';;
932 eval enable_
$ac_useropt=no
;;
934 -docdir |
--docdir |
--docdi |
--doc |
--do)
936 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
939 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
941 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
944 -enable-* |
--enable-*)
945 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
948 as_fn_error $?
"invalid feature name: $ac_useropt"
949 ac_useropt_orig
=$ac_useropt
950 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
955 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
956 ac_unrecognized_sep
=', ';;
958 eval enable_
$ac_useropt=\
$ac_optarg ;;
960 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
961 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
962 |
--exec |
--exe |
--ex)
963 ac_prev
=exec_prefix
;;
964 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
965 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
966 |
--exec=* |
--exe=* |
--ex=*)
967 exec_prefix
=$ac_optarg ;;
969 -gas |
--gas |
--ga |
--g)
970 # Obsolete; use --with-gas.
973 -help |
--help |
--hel |
--he |
-h)
975 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
976 ac_init_help
=recursive
;;
977 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
978 ac_init_help
=short
;;
980 -host |
--host |
--hos |
--ho)
981 ac_prev
=host_alias
;;
982 -host=* |
--host=* |
--hos=* |
--ho=*)
983 host_alias
=$ac_optarg ;;
985 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
987 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
989 htmldir
=$ac_optarg ;;
991 -includedir |
--includedir |
--includedi |
--included |
--include \
992 |
--includ |
--inclu |
--incl |
--inc)
993 ac_prev
=includedir
;;
994 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
995 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
996 includedir
=$ac_optarg ;;
998 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1000 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1001 infodir
=$ac_optarg ;;
1003 -libdir |
--libdir |
--libdi |
--libd)
1005 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1006 libdir
=$ac_optarg ;;
1008 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1009 |
--libexe |
--libex |
--libe)
1010 ac_prev
=libexecdir
;;
1011 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1012 |
--libexe=* |
--libex=* |
--libe=*)
1013 libexecdir
=$ac_optarg ;;
1015 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1016 ac_prev
=localedir
;;
1017 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1018 localedir
=$ac_optarg ;;
1020 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1021 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1022 ac_prev
=localstatedir
;;
1023 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1024 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1025 localstatedir
=$ac_optarg ;;
1027 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1029 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1030 mandir
=$ac_optarg ;;
1032 -nfp |
--nfp |
--nf)
1033 # Obsolete; use --without-fp.
1036 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1037 |
--no-cr |
--no-c |
-n)
1040 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1041 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1044 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1045 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1046 |
--oldin |
--oldi |
--old |
--ol |
--o)
1047 ac_prev
=oldincludedir
;;
1048 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1049 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1050 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1051 oldincludedir
=$ac_optarg ;;
1053 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1055 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1056 prefix
=$ac_optarg ;;
1058 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1059 |
--program-pre |
--program-pr |
--program-p)
1060 ac_prev
=program_prefix
;;
1061 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1062 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1063 program_prefix
=$ac_optarg ;;
1065 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1066 |
--program-suf |
--program-su |
--program-s)
1067 ac_prev
=program_suffix
;;
1068 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1069 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1070 program_suffix
=$ac_optarg ;;
1072 -program-transform-name |
--program-transform-name \
1073 |
--program-transform-nam |
--program-transform-na \
1074 |
--program-transform-n |
--program-transform- \
1075 |
--program-transform |
--program-transfor \
1076 |
--program-transfo |
--program-transf \
1077 |
--program-trans |
--program-tran \
1078 |
--progr-tra |
--program-tr |
--program-t)
1079 ac_prev
=program_transform_name
;;
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 program_transform_name
=$ac_optarg ;;
1089 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1091 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1092 pdfdir
=$ac_optarg ;;
1094 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1096 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1099 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1100 |
-silent |
--silent |
--silen |
--sile |
--sil)
1103 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1105 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1107 sbindir
=$ac_optarg ;;
1109 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1110 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1111 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1113 ac_prev
=sharedstatedir
;;
1114 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1115 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1116 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1118 sharedstatedir
=$ac_optarg ;;
1120 -site |
--site |
--sit)
1122 -site=* |
--site=* |
--sit=*)
1125 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1127 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1128 srcdir
=$ac_optarg ;;
1130 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1131 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1132 ac_prev
=sysconfdir
;;
1133 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1134 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1135 sysconfdir
=$ac_optarg ;;
1137 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1138 ac_prev
=target_alias
;;
1139 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1140 target_alias
=$ac_optarg ;;
1142 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1145 -version |
--version |
--versio |
--versi |
--vers |
-V)
1146 ac_init_version
=: ;;
1149 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1152 as_fn_error $?
"invalid package name: $ac_useropt"
1153 ac_useropt_orig
=$ac_useropt
1154 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1159 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1160 ac_unrecognized_sep
=', ';;
1162 eval with_
$ac_useropt=\
$ac_optarg ;;
1164 -without-* |
--without-*)
1165 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1168 as_fn_error $?
"invalid package name: $ac_useropt"
1169 ac_useropt_orig
=$ac_useropt
1170 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1175 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1176 ac_unrecognized_sep
=', ';;
1178 eval with_
$ac_useropt=no
;;
1181 # Obsolete; use --with-x.
1184 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1185 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1186 ac_prev
=x_includes
;;
1187 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1188 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1189 x_includes
=$ac_optarg ;;
1191 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1192 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1193 ac_prev
=x_libraries
;;
1194 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1195 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1196 x_libraries
=$ac_optarg ;;
1198 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1199 Try \`$0 --help' for more information"
1203 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1204 # Reject names that are not valid shell variable names.
1205 case $ac_envvar in #(
1206 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1207 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1209 eval $ac_envvar=\
$ac_optarg
1210 export $ac_envvar ;;
1213 # FIXME: should be removed in autoconf 3.0.
1214 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1215 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1216 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1217 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1223 if test -n "$ac_prev"; then
1224 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1225 as_fn_error $?
"missing argument to $ac_option"
1228 if test -n "$ac_unrecognized_opts"; then
1229 case $enable_option_checking in
1231 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1232 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1236 # Check all directory arguments for consistency.
1237 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1238 datadir sysconfdir sharedstatedir localstatedir includedir \
1239 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1240 libdir localedir mandir
1242 eval ac_val
=\$
$ac_var
1243 # Remove trailing slashes.
1246 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1247 eval $ac_var=\
$ac_val;;
1249 # Be sure to have absolute directory names.
1251 [\\/$
]* | ?
:[\\/]* ) continue;;
1252 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1254 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1257 # There might be people who depend on the old broken behavior: `$host'
1258 # used to hold the argument of --host etc.
1259 # FIXME: To remove some day.
1262 target
=$target_alias
1264 # FIXME: To remove some day.
1265 if test "x$host_alias" != x
; then
1266 if test "x$build_alias" = x
; then
1267 cross_compiling
=maybe
1268 elif test "x$build_alias" != "x$host_alias"; then
1274 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1276 test "$silent" = yes && exec 6>/dev
/null
1279 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1280 ac_ls_di
=`ls -di .` &&
1281 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1282 as_fn_error $?
"working directory cannot be determined"
1283 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1284 as_fn_error $?
"pwd does not report name of working directory"
1287 # Find the source files, if location was not specified.
1288 if test -z "$srcdir"; then
1289 ac_srcdir_defaulted
=yes
1290 # Try the directory containing this script, then the parent directory.
1291 ac_confdir
=`$as_dirname -- "$as_myself" ||
1292 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293 X"$as_myself" : 'X\(//\)[^/]' \| \
1294 X"$as_myself" : 'X\(//\)$' \| \
1295 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1296 $as_echo X"$as_myself" |
1297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1319 ac_srcdir_defaulted
=no
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1323 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1325 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1327 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1329 # When building in place, set srcdir=.
1330 if test "$ac_abs_confdir" = "$ac_pwd"; then
1333 # Remove unnecessary trailing slashes from srcdir.
1334 # Double slashes in file names in object file debugging info
1335 # mess up M-x gdb in Emacs.
1337 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339 for ac_var
in $ac_precious_vars; do
1340 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1341 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1342 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1343 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1347 # Report the --help message.
1349 if test "$ac_init_help" = "long"; then
1350 # Omit some internal or obsolete options to make the list less imposing.
1351 # This message is too long to be a string in the A/UX 3.1 sh.
1353 \`configure' configures this package to adapt to many kinds of systems.
1355 Usage: $0 [OPTION]... [VAR=VALUE]...
1357 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1358 VAR=VALUE. See below for descriptions of some of the useful variables.
1360 Defaults for the options are specified in brackets.
1363 -h, --help display this help and exit
1364 --help=short display options specific to this package
1365 --help=recursive display the short help of all the included packages
1366 -V, --version display version information and exit
1367 -q, --quiet, --silent do not print \`checking ...' messages
1368 --cache-file=FILE cache test results in FILE [disabled]
1369 -C, --config-cache alias for \`--cache-file=config.cache'
1370 -n, --no-create do not create output files
1371 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1373 Installation directories:
1374 --prefix=PREFIX install architecture-independent files in PREFIX
1375 [$ac_default_prefix]
1376 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1379 By default, \`make install' will install all the files in
1380 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1381 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1382 for instance \`--prefix=\$HOME'.
1384 For better control, use the options below.
1386 Fine tuning of the installation directories:
1387 --bindir=DIR user executables [EPREFIX/bin]
1388 --sbindir=DIR system admin executables [EPREFIX/sbin]
1389 --libexecdir=DIR program executables [EPREFIX/libexec]
1390 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1391 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1392 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1393 --libdir=DIR object code libraries [EPREFIX/lib]
1394 --includedir=DIR C header files [PREFIX/include]
1395 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1396 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1397 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1398 --infodir=DIR info documentation [DATAROOTDIR/info]
1399 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1400 --mandir=DIR man documentation [DATAROOTDIR/man]
1401 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1402 --htmldir=DIR html documentation [DOCDIR]
1403 --dvidir=DIR dvi documentation [DOCDIR]
1404 --pdfdir=DIR pdf documentation [DOCDIR]
1405 --psdir=DIR ps documentation [DOCDIR]
1411 --program-prefix=PREFIX prepend PREFIX to installed program names
1412 --program-suffix=SUFFIX append SUFFIX to installed program names
1413 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1416 --x-includes=DIR X include files are
in DIR
1417 --x-libraries=DIR X library files are
in DIR
1420 --build=BUILD configure
for building on BUILD
[guessed
]
1421 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1422 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1426 if test -n "$ac_init_help"; then
1431 --disable-option-checking ignore unrecognized
--enable/--with options
1432 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1433 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1434 --enable-plugins Enable support
for plugins
1435 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1436 --enable-static[=PKGS
] build static libraries
[default
=yes]
1437 --enable-fast-install[=PKGS
]
1438 optimize
for fast installation
[default
=yes]
1439 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1440 --enable-maintainer-mode
1441 enable make rules and dependencies not useful
(and
1442 sometimes confusing
) to the casual installer
1443 --enable-sim-debug=opts Enable debugging flags
(for developers of the sim
1445 --enable-sim-stdio Specify whether to use stdio
for console
1447 --enable-sim-trace=opts Enable tracing of simulated programs
1448 --enable-sim-profile=opts
1449 Enable profiling flags
1450 --enable-sim-inline=inlines
1451 Specify
which functions should be inlined
1452 --enable-sim-alignment=align
1453 Specify strict
, nonstrict or forced alignment of
1455 --enable-werror treat compile warnings as errors
1456 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1457 --enable-sim-build-warnings
1458 enable SIM specific build-time compiler warnings
if
1460 --enable-sim-reserved-bits
1461 Specify whether to check reserved bits
in
1463 --enable-sim-endian=endian
1464 Specify target byte endian orientation
1465 --enable-sim-bitsize=N Specify target bitsize
(32 or
64)
1466 --enable-sim-float Specify that the target processor has floating point
1468 --enable-sim-hardware=LIST
1469 Specify the hardware to be included
in the build.
1472 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1473 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1474 --with-system-zlib use installed libz
1475 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1477 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1478 --with-pkgversion=PKG Use PKG
in the version string
in place of
"SIM"
1479 --with-bugurl=URL Direct users to URL to report a bug
1480 --with-x use the X Window System
1482 Some influential environment variables
:
1483 CC C compiler
command
1484 CFLAGS C compiler flags
1485 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1486 nonstandard directory
<lib dir
>
1487 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1488 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1489 you have headers
in a nonstandard directory
<include dir
>
1491 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1493 Use these variables to override the choices made by
`configure' or to help
1494 it to find libraries and programs with nonstandard names/locations.
1496 Report bugs to the package provider.
1501 if test "$ac_init_help" = "recursive"; then
1502 # If there are subdirs, report their specific --help.
1503 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1504 test -d "$ac_dir" ||
1505 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1510 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1513 # A ".." for each directory in $ac_dir_suffix.
1514 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1515 case $ac_top_builddir_sub in
1516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1520 ac_abs_top_builddir=$ac_pwd
1521 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522 # for backward compatibility:
1523 ac_top_builddir=$ac_top_build_prefix
1526 .) # We are building in place.
1528 ac_top_srcdir=$ac_top_builddir_sub
1529 ac_abs_top_srcdir=$ac_pwd ;;
1530 [\\/]* | ?:[\\/]* ) # Absolute name.
1531 ac_srcdir=$srcdir$ac_dir_suffix;
1532 ac_top_srcdir=$srcdir
1533 ac_abs_top_srcdir=$srcdir ;;
1535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536 ac_top_srcdir=$ac_top_build_prefix$srcdir
1537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541 cd "$ac_dir" || { ac_status=$?; continue; }
1542 # Check for guested configure.
1543 if test -f "$ac_srcdir/configure.gnu"; then
1545 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546 elif test -f "$ac_srcdir/configure"; then
1548 $SHELL "$ac_srcdir/configure" --help=recursive
1550 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552 cd "$ac_pwd" || { ac_status=$?; break; }
1556 test -n "$ac_init_help" && exit $ac_status
1557 if $ac_init_version; then
1560 generated by GNU Autoconf 2.69
1562 Copyright (C) 2012 Free Software Foundation, Inc.
1563 This configure script is free software; the Free Software Foundation
1564 gives unlimited permission to copy, distribute and modify it.
1569 ## ------------------------ ##
1570 ## Autoconf initialization. ##
1571 ## ------------------------ ##
1573 # ac_fn_c_try_compile LINENO
1574 # --------------------------
1575 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1576 ac_fn_c_try_compile ()
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 rm -f conftest.$ac_objext
1580 if { { ac_try="$ac_compile"
1582 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1583 *) ac_try_echo
=$ac_try;;
1585 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_compile") 2>conftest.err
1589 if test -s conftest.err
; then
1590 grep -v '^ *+' conftest.err
>conftest.er1
1591 cat conftest.er1
>&5
1592 mv -f conftest.er1 conftest.err
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; } && {
1596 test -z "$ac_c_werror_flag" ||
1597 test ! -s conftest.err
1598 } && test -s conftest.
$ac_objext; then :
1601 $as_echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.
$ac_ext >&5
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607 as_fn_set_status
$ac_retval
1609 } # ac_fn_c_try_compile
1611 # ac_fn_c_try_cpp LINENO
1612 # ----------------------
1613 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1616 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1617 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 $as_echo "$ac_try_echo"; } >&5
1624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1626 if test -s conftest.err; then
1627 grep -v '^ *+' conftest.err >conftest.er1
1628 cat conftest.er1 >&5
1629 mv -f conftest.er1 conftest.err
1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632 test $ac_status = 0; } > conftest.i && {
1633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1634 test ! -s conftest.err
1638 $as_echo "$as_me: failed program was:" >&5
1639 sed 's/^/| /' conftest.$ac_ext >&5
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644 as_fn_set_status $ac_retval
1648 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1649 # -------------------------------------------------------
1650 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1651 # the include files in INCLUDES and setting the cache variable VAR
1653 ac_fn_c_check_header_mongrel ()
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656 if eval \${$3+:} false; then :
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1658 $as_echo_n "checking for $2... " >&6; }
1659 if eval \${$3+:} false; then :
1660 $as_echo_n "(cached) " >&6
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1664 $as_echo "$ac_res" >&6; }
1666 # Is the header compilable?
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1668 $as_echo_n "checking $2 usability... " >&6; }
1669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670 /* end confdefs.h. */
1674 if ac_fn_c_try_compile "$LINENO"; then :
1675 ac_header_compiler=yes
1677 ac_header_compiler=no
1679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1681 $as_echo "$ac_header_compiler" >&6; }
1683 # Is the header present?
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1685 $as_echo_n "checking $2 presence... " >&6; }
1686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687 /* end confdefs.h. */
1690 if ac_fn_c_try_cpp "$LINENO"; then :
1691 ac_header_preproc=yes
1693 ac_header_preproc=no
1695 rm -f conftest.err conftest.i conftest.$ac_ext
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1697 $as_echo "$ac_header_preproc" >&6; }
1699 # So? What about this header?
1700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1703 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1705 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1709 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1711 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1713 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1715 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1717 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721 $as_echo_n "checking for $2... " >&6; }
1722 if eval \${$3+:} false; then :
1723 $as_echo_n "(cached) " >&6
1725 eval "$3=\$ac_header_compiler"
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729 $as_echo "$ac_res" >&6; }
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 } # ac_fn_c_check_header_mongrel
1735 # ac_fn_c_try_run LINENO
1736 # ----------------------
1737 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1738 # that executables *can* be run.
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 if { { ac_try="$ac_link"
1744 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1745 *) ac_try_echo
=$ac_try;;
1747 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_link") 2>&5
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1753 { { case "(($ac_try" in
1754 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_try") 2>&5
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; }; }; then :
1765 $as_echo "$as_me: program exited with status $ac_status" >&5
1766 $as_echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1769 ac_retval=$ac_status
1771 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
1777 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1778 # -------------------------------------------------------
1779 # Tests whether HEADER exists and can be compiled using the include files in
1780 # INCLUDES, setting the cache variable VAR accordingly.
1781 ac_fn_c_check_header_compile ()
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785 $as_echo_n "checking for $2... " >&6; }
1786 if eval \${$3+:} false; then :
1787 $as_echo_n "(cached) " >&6
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h. */
1794 if ac_fn_c_try_compile "$LINENO"; then :
1799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 $as_echo "$ac_res" >&6; }
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806 } # ac_fn_c_check_header_compile
1808 # ac_fn_c_try_link LINENO
1809 # -----------------------
1810 # Try to link conftest.$ac_ext, and return whether this succeeded.
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 rm -f conftest.$ac_objext conftest$ac_exeext
1815 if { { ac_try="$ac_link"
1817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1818 *) ac_try_echo
=$ac_try;;
1820 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_link") 2>conftest.err
1824 if test -s conftest.err
; then
1825 grep -v '^ *+' conftest.err
>conftest.er1
1826 cat conftest.er1
>&5
1827 mv -f conftest.er1 conftest.err
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && {
1831 test -z "$ac_c_werror_flag" ||
1832 test ! -s conftest.err
1833 } && test -s conftest
$ac_exeext && {
1834 test "$cross_compiling" = yes ||
1835 test -x conftest
$ac_exeext
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.
$ac_ext >&5
1844 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1845 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1846 # interfere with the next link command; also delete a directory that is
1847 # left behind by Apple's compiler. We do this before executing the actions.
1848 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850 as_fn_set_status
$ac_retval
1852 } # ac_fn_c_try_link
1854 # ac_fn_c_check_func LINENO FUNC VAR
1855 # ----------------------------------
1856 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1857 ac_fn_c_check_func
()
1859 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 $as_echo_n "checking for $2... " >&6; }
1862 if eval \
${$3+:} false
; then :
1863 $as_echo_n "(cached) " >&6
1865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1867 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1869 #define $2 innocuous_$2
1871 /* System header to define __stub macros and hopefully few prototypes,
1872 which can conflict with char $2 (); below.
1873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1874 <limits.h> exists even on freestanding compilers. */
1877 # include <limits.h>
1879 # include <assert.h>
1884 /* Override any GCC internal prototype to avoid an error.
1885 Use char because int might match the return type of a GCC
1886 builtin and then its argument prototype would still apply. */
1891 /* The GNU C library defines this for functions which it implements
1892 to always fail with ENOSYS. Some functions are actually named
1893 something starting with __ and the normal name is an alias. */
1894 #if defined __stub_$2 || defined __stub___$2
1906 if ac_fn_c_try_link
"$LINENO"; then :
1911 rm -f core conftest.err conftest.
$ac_objext \
1912 conftest
$ac_exeext conftest.
$ac_ext
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916 $as_echo "$ac_res" >&6; }
1917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919 } # ac_fn_c_check_func
1920 cat >config.log
<<_ACEOF
1921 This file contains any messages produced by compilers while
1922 running configure, to aid debugging if configure makes a mistake.
1924 It was created by $as_me, which was
1925 generated by GNU Autoconf 2.69. Invocation command line was
1937 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1938 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1939 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1940 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1941 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1943 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1944 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1946 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1947 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1948 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1949 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1950 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1951 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1952 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1956 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1960 test -z "$as_dir" && as_dir
=.
1961 $as_echo "PATH: $as_dir"
1977 # Keep a trace of the command line.
1978 # Strip out --no-create and --no-recursion so they do not pile up.
1979 # Strip out --silent because we don't want to record it for future runs.
1980 # Also quote any args containing shell meta-characters.
1981 # Make two passes to allow for proper duplicate-argument suppression.
1985 ac_must_keep_next
=false
1991 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1992 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1993 |
-silent |
--silent |
--silen |
--sile |
--sil)
1996 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1999 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2001 as_fn_append ac_configure_args1
" '$ac_arg'"
2002 if test $ac_must_keep_next = true
; then
2003 ac_must_keep_next
=false
# Got value, back to normal.
2006 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2007 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2008 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2009 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2010 case "$ac_configure_args0 " in
2011 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2014 -* ) ac_must_keep_next
=true
;;
2017 as_fn_append ac_configure_args
" '$ac_arg'"
2022 { ac_configure_args0
=; unset ac_configure_args0
;}
2023 { ac_configure_args1
=; unset ac_configure_args1
;}
2025 # When interrupted or exit'd, cleanup temporary files, and complete
2026 # config.log. We remove comments because anyway the quotes in there
2027 # would cause problems or look ugly.
2028 # WARNING: Use '\'' to represent an apostrophe within the trap.
2029 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2030 trap 'exit_status=$?
2031 # Save into config.log some information that might help in debugging.
2035 $as_echo "## ---------------- ##
2036 ## Cache variables. ##
2037 ## ---------------- ##"
2039 # The following way of writing the cache mishandles newlines in values,
2041 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2042 eval ac_val=\$$ac_var
2046 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2047 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2050 _ | IFS | as_nl) ;; #(
2051 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2052 *) { eval $ac_var=; unset $ac_var;} ;;
2057 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2058 *${as_nl}ac_space=\ *)
2060 "s/'\''/'\''\\\\'\'''\''/g;
2061 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2064 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2071 $as_echo "## ----------------- ##
2072 ## Output variables. ##
2073 ## ----------------- ##"
2075 for ac_var in $ac_subst_vars
2077 eval ac_val=\$$ac_var
2079 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2081 $as_echo "$ac_var='\''$ac_val'\''"
2085 if test -n "$ac_subst_files"; then
2086 $as_echo "## ------------------- ##
2087 ## File substitutions. ##
2088 ## ------------------- ##"
2090 for ac_var
in $ac_subst_files
2092 eval ac_val
=\$
$ac_var
2094 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2096 $as_echo "$ac_var='\''$ac_val'\''"
2101 if test -s confdefs.h; then
2102 $as_echo "## ----------- ##
2109 test "$ac_signal" != 0 &&
2110 $as_echo "$as_me: caught signal $ac_signal"
2111 $as_echo "$as_me: exit $exit_status"
2113 rm -f core *.core core.conftest.* &&
2114 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2117 for ac_signal
in 1 2 13 15; do
2118 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2122 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2123 rm -f -r conftest
* confdefs.h
2125 $as_echo "/* confdefs.h */" > confdefs.h
2127 # Predefined preprocessor variables.
2129 cat >>confdefs.h
<<_ACEOF
2130 #define PACKAGE_NAME "$PACKAGE_NAME"
2133 cat >>confdefs.h
<<_ACEOF
2134 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2137 cat >>confdefs.h
<<_ACEOF
2138 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2141 cat >>confdefs.h
<<_ACEOF
2142 #define PACKAGE_STRING "$PACKAGE_STRING"
2145 cat >>confdefs.h
<<_ACEOF
2146 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2149 cat >>confdefs.h
<<_ACEOF
2150 #define PACKAGE_URL "$PACKAGE_URL"
2154 # Let the site file select an alternate cache file if it wants to.
2155 # Prefer an explicitly selected file to automatically selected ones.
2158 if test -n "$CONFIG_SITE"; then
2159 # We do not want a PATH search for config.site.
2160 case $CONFIG_SITE in #((
2161 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2162 */*) ac_site_file1
=$CONFIG_SITE;;
2163 *) ac_site_file1
=.
/$CONFIG_SITE;;
2165 elif test "x$prefix" != xNONE
; then
2166 ac_site_file1
=$prefix/share
/config.site
2167 ac_site_file2
=$prefix/etc
/config.site
2169 ac_site_file1
=$ac_default_prefix/share
/config.site
2170 ac_site_file2
=$ac_default_prefix/etc
/config.site
2172 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2174 test "x$ac_site_file" = xNONE
&& continue
2175 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2177 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2178 sed 's/^/| /' "$ac_site_file" >&5
2180 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2182 as_fn_error $?
"failed to load site script $ac_site_file
2183 See \`config.log' for more details" "$LINENO" 5; }
2187 if test -r "$cache_file"; then
2188 # Some versions of bash will fail to source /dev/null (special files
2189 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2190 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2192 $as_echo "$as_me: loading cache $cache_file" >&6;}
2194 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2195 *) .
"./$cache_file";;
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2200 $as_echo "$as_me: creating cache $cache_file" >&6;}
2204 # Check that the precious variables saved in the cache have kept the same
2206 ac_cache_corrupted
=false
2207 for ac_var
in $ac_precious_vars; do
2208 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2209 eval ac_new_set
=\
$ac_env_${ac_var}_set
2210 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2211 eval ac_new_val
=\
$ac_env_${ac_var}_value
2212 case $ac_old_set,$ac_new_set in
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2215 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2216 ac_cache_corrupted
=: ;;
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2219 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2220 ac_cache_corrupted
=: ;;
2223 if test "x$ac_old_val" != "x$ac_new_val"; then
2224 # differences in whitespace do not lead to failure.
2225 ac_old_val_w
=`echo x $ac_old_val`
2226 ac_new_val_w
=`echo x $ac_new_val`
2227 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2229 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2230 ac_cache_corrupted
=:
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2233 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2234 eval $ac_var=\
$ac_old_val
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2237 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2239 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2242 # Pass precious variables to config.status.
2243 if test "$ac_new_set" = set; then
2245 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2246 *) ac_arg
=$ac_var=$ac_new_val ;;
2248 case " $ac_configure_args " in
2249 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2250 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2254 if $ac_cache_corrupted; then
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2258 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2259 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2261 ## -------------------- ##
2262 ## Main body of script. ##
2263 ## -------------------- ##
2266 ac_cpp
='$CPP $CPPFLAGS'
2267 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2268 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2269 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2278 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2279 if test -f "$ac_dir/install-sh"; then
2281 ac_install_sh
="$ac_aux_dir/install-sh -c"
2283 elif test -f "$ac_dir/install.sh"; then
2285 ac_install_sh
="$ac_aux_dir/install.sh -c"
2287 elif test -f "$ac_dir/shtool"; then
2289 ac_install_sh
="$ac_aux_dir/shtool install -c"
2293 if test -z "$ac_aux_dir"; then
2294 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2297 # These three variables are undocumented and unsupported,
2298 # and are intended to be withdrawn in a future Autoconf release.
2299 # They can cause serious problems if a builder's source tree is in a directory
2300 # whose full name contains unusual characters.
2301 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2302 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2303 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2306 # Make sure we can run config.sub.
2307 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2308 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2311 $as_echo_n "checking build system type... " >&6; }
2312 if ${ac_cv_build+:} false
; then :
2313 $as_echo_n "(cached) " >&6
2315 ac_build_alias
=$build_alias
2316 test "x$ac_build_alias" = x
&&
2317 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2318 test "x$ac_build_alias" = x
&&
2319 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2320 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2321 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2325 $as_echo "$ac_cv_build" >&6; }
2326 case $ac_cv_build in
2328 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2331 ac_save_IFS
=$IFS; IFS
='-'
2337 # Remember, the first character of IFS is used to create $*,
2338 # except with old shells:
2341 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2345 $as_echo_n "checking host system type... " >&6; }
2346 if ${ac_cv_host+:} false
; then :
2347 $as_echo_n "(cached) " >&6
2349 if test "x$host_alias" = x
; then
2350 ac_cv_host
=$ac_cv_build
2352 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2353 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2358 $as_echo "$ac_cv_host" >&6; }
2361 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2364 ac_save_IFS
=$IFS; IFS
='-'
2370 # Remember, the first character of IFS is used to create $*,
2371 # except with old shells:
2374 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2378 $as_echo_n "checking target system type... " >&6; }
2379 if ${ac_cv_target+:} false
; then :
2380 $as_echo_n "(cached) " >&6
2382 if test "x$target_alias" = x
; then
2383 ac_cv_target
=$ac_cv_host
2385 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2386 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2391 $as_echo "$ac_cv_target" >&6; }
2392 case $ac_cv_target in
2394 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2396 target
=$ac_cv_target
2397 ac_save_IFS
=$IFS; IFS
='-'
2403 # Remember, the first character of IFS is used to create $*,
2404 # except with old shells:
2407 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2410 # The aliases save the names the user supplied, while $host etc.
2411 # will get canonicalized.
2412 test -n "$target_alias" &&
2413 test "$program_prefix$program_suffix$program_transform_name" = \
2415 program_prefix
=${target_alias}-
2417 ac_cpp
='$CPP $CPPFLAGS'
2418 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2419 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2420 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2421 if test -n "$ac_tool_prefix"; then
2422 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2423 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2425 $as_echo_n "checking for $ac_word... " >&6; }
2426 if ${ac_cv_prog_CC+:} false
; then :
2427 $as_echo_n "(cached) " >&6
2429 if test -n "$CC"; then
2430 ac_cv_prog_CC
="$CC" # Let the user override the test.
2432 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2436 test -z "$as_dir" && as_dir
=.
2437 for ac_exec_ext
in '' $ac_executable_extensions; do
2438 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2439 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2450 if test -n "$CC"; then
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2452 $as_echo "$CC" >&6; }
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2455 $as_echo "no" >&6; }
2460 if test -z "$ac_cv_prog_CC"; then
2462 # Extract the first word of "gcc", so it can be a program name with args.
2463 set dummy gcc
; ac_word
=$2
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2465 $as_echo_n "checking for $ac_word... " >&6; }
2466 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2467 $as_echo_n "(cached) " >&6
2469 if test -n "$ac_ct_CC"; then
2470 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2472 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2476 test -z "$as_dir" && as_dir
=.
2477 for ac_exec_ext
in '' $ac_executable_extensions; do
2478 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2479 ac_cv_prog_ac_ct_CC
="gcc"
2480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2490 if test -n "$ac_ct_CC"; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2492 $as_echo "$ac_ct_CC" >&6; }
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2495 $as_echo "no" >&6; }
2498 if test "x$ac_ct_CC" = x
; then
2501 case $cross_compiling:$ac_tool_warned in
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2505 ac_tool_warned
=yes ;;
2513 if test -z "$CC"; then
2514 if test -n "$ac_tool_prefix"; then
2515 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2516 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2518 $as_echo_n "checking for $ac_word... " >&6; }
2519 if ${ac_cv_prog_CC+:} false
; then :
2520 $as_echo_n "(cached) " >&6
2522 if test -n "$CC"; then
2523 ac_cv_prog_CC
="$CC" # Let the user override the test.
2525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2529 test -z "$as_dir" && as_dir
=.
2530 for ac_exec_ext
in '' $ac_executable_extensions; do
2531 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2532 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2543 if test -n "$CC"; then
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2545 $as_echo "$CC" >&6; }
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2548 $as_echo "no" >&6; }
2554 if test -z "$CC"; then
2555 # Extract the first word of "cc", so it can be a program name with args.
2556 set dummy cc
; ac_word
=$2
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2558 $as_echo_n "checking for $ac_word... " >&6; }
2559 if ${ac_cv_prog_CC+:} false
; then :
2560 $as_echo_n "(cached) " >&6
2562 if test -n "$CC"; then
2563 ac_cv_prog_CC
="$CC" # Let the user override the test.
2566 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2570 test -z "$as_dir" && as_dir
=.
2571 for ac_exec_ext
in '' $ac_executable_extensions; do
2572 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2573 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2574 ac_prog_rejected
=yes
2578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2585 if test $ac_prog_rejected = yes; then
2586 # We found a bogon in the path, so make sure we never use it.
2587 set dummy
$ac_cv_prog_CC
2589 if test $# != 0; then
2590 # We chose a different compiler from the bogus one.
2591 # However, it has the same basename, so the bogon will be chosen
2592 # first if we set CC to just the basename; use the full file name.
2594 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2600 if test -n "$CC"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2602 $as_echo "$CC" >&6; }
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605 $as_echo "no" >&6; }
2610 if test -z "$CC"; then
2611 if test -n "$ac_tool_prefix"; then
2612 for ac_prog
in cl.exe
2614 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2615 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2617 $as_echo_n "checking for $ac_word... " >&6; }
2618 if ${ac_cv_prog_CC+:} false
; then :
2619 $as_echo_n "(cached) " >&6
2621 if test -n "$CC"; then
2622 ac_cv_prog_CC
="$CC" # Let the user override the test.
2624 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2628 test -z "$as_dir" && as_dir
=.
2629 for ac_exec_ext
in '' $ac_executable_extensions; do
2630 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2631 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2642 if test -n "$CC"; then
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2644 $as_echo "$CC" >&6; }
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2647 $as_echo "no" >&6; }
2651 test -n "$CC" && break
2654 if test -z "$CC"; then
2656 for ac_prog
in cl.exe
2658 # Extract the first word of "$ac_prog", so it can be a program name with args.
2659 set dummy
$ac_prog; ac_word
=$2
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2661 $as_echo_n "checking for $ac_word... " >&6; }
2662 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2663 $as_echo_n "(cached) " >&6
2665 if test -n "$ac_ct_CC"; then
2666 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2668 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2672 test -z "$as_dir" && as_dir
=.
2673 for ac_exec_ext
in '' $ac_executable_extensions; do
2674 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2675 ac_cv_prog_ac_ct_CC
="$ac_prog"
2676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2685 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2686 if test -n "$ac_ct_CC"; then
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2688 $as_echo "$ac_ct_CC" >&6; }
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691 $as_echo "no" >&6; }
2695 test -n "$ac_ct_CC" && break
2698 if test "x$ac_ct_CC" = x
; then
2701 case $cross_compiling:$ac_tool_warned in
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2705 ac_tool_warned
=yes ;;
2714 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2716 as_fn_error $?
"no acceptable C compiler found in \$PATH
2717 See \`config.log' for more details" "$LINENO" 5; }
2719 # Provide some information about the compiler.
2720 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2723 for ac_option
in --version -v -V -qversion; do
2724 { { ac_try
="$ac_compiler $ac_option >&5"
2726 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2730 $as_echo "$ac_try_echo"; } >&5
2731 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2733 if test -s conftest.err; then
2735 ... rest of stderr output deleted ...
2736 10q' conftest.err >conftest.er1
2737 cat conftest.er1 >&5
2739 rm -f conftest.er1 conftest.err
2740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2741 test $ac_status = 0; }
2744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2745 /* end confdefs.h. */
2755 ac_clean_files_save=$ac_clean_files
2756 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2757 # Try to create an executable without -o first, disregard a.out.
2758 # It will help us diagnose broken compilers, and finding out an intuition
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2761 $as_echo_n "checking whether the C compiler works... " >&6; }
2762 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2764 # The possible output files:
2765 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2768 for ac_file in $ac_files
2771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2772 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2777 if { { ac_try="$ac_link_default"
2779 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2780 *) ac_try_echo
=$ac_try;;
2782 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2783 $as_echo "$ac_try_echo"; } >&5
2784 (eval "$ac_link_default") 2>&5
2786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2787 test $ac_status = 0; }; then :
2788 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2789 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2790 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2791 # so that the user can short-circuit this test for compilers unknown to
2793 for ac_file
in $ac_files ''
2795 test -f "$ac_file" ||
continue
2797 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2800 # We found the default executable, but exeext='' is most
2804 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2806 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2808 # We set ac_cv_exeext here because the later test for it is not
2809 # safe: cross compilers may not add the suffix if given an `-o'
2810 # argument, so we may need to know it at that point already.
2811 # Even if this section looks crufty: it has the advantage of
2818 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2823 if test -z "$ac_file"; then :
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825 $as_echo "no" >&6; }
2826 $as_echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.
$ac_ext >&5
2829 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2831 as_fn_error
77 "C compiler cannot create executables
2832 See \`config.log' for more details" "$LINENO" 5; }
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2835 $as_echo "yes" >&6; }
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2838 $as_echo_n "checking for C compiler default output file name... " >&6; }
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2840 $as_echo "$ac_file" >&6; }
2841 ac_exeext
=$ac_cv_exeext
2843 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
2844 ac_clean_files
=$ac_clean_files_save
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2846 $as_echo_n "checking for suffix of executables... " >&6; }
2847 if { { ac_try
="$ac_link"
2849 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2850 *) ac_try_echo=$ac_try;;
2852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2853 $as_echo "$ac_try_echo"; } >&5
2854 (eval "$ac_link") 2>&5
2856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2857 test $ac_status = 0; }; then :
2858 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
2859 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
2860 # work properly (i.e., refer to `conftest.exe'), while it won't with
2862 for ac_file
in conftest.exe conftest conftest.
*; do
2863 test -f "$ac_file" ||
continue
2865 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2866 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2874 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2875 See \`config.log' for more details" "$LINENO" 5; }
2877 rm -f conftest conftest
$ac_cv_exeext
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2879 $as_echo "$ac_cv_exeext" >&6; }
2881 rm -f conftest.
$ac_ext
2882 EXEEXT
=$ac_cv_exeext
2884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2885 /* end confdefs.h. */
2890 FILE *f = fopen ("conftest.out", "w");
2891 return ferror (f) || fclose (f) != 0;
2897 ac_clean_files
="$ac_clean_files conftest.out"
2898 # Check that the compiler produces executables we can run. If not, either
2899 # the compiler is broken, or we cross compile.
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2901 $as_echo_n "checking whether we are cross compiling... " >&6; }
2902 if test "$cross_compiling" != yes; then
2903 { { ac_try
="$ac_link"
2905 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2909 $as_echo "$ac_try_echo"; } >&5
2910 (eval "$ac_link") 2>&5
2912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2913 test $ac_status = 0; }
2914 if { ac_try='./conftest$ac_cv_exeext'
2915 { { case "(($ac_try" in
2916 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2917 *) ac_try_echo
=$ac_try;;
2919 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2920 $as_echo "$ac_try_echo"; } >&5
2921 (eval "$ac_try") 2>&5
2923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2924 test $ac_status = 0; }; }; then
2927 if test "$cross_compiling" = maybe
; then
2930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2932 as_fn_error $?
"cannot run C compiled programs.
2933 If you meant to cross compile, use \`--host'.
2934 See \`config.log' for more details" "$LINENO" 5; }
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2939 $as_echo "$cross_compiling" >&6; }
2941 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2942 ac_clean_files
=$ac_clean_files_save
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2944 $as_echo_n "checking for suffix of object files... " >&6; }
2945 if ${ac_cv_objext+:} false
; then :
2946 $as_echo_n "(cached) " >&6
2948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2949 /* end confdefs.h. */
2959 rm -f conftest.o conftest.obj
2960 if { { ac_try
="$ac_compile"
2962 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2966 $as_echo "$ac_try_echo"; } >&5
2967 (eval "$ac_compile") 2>&5
2969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2970 test $ac_status = 0; }; then :
2971 for ac_file in conftest.o conftest.obj conftest.*; do
2972 test -f "$ac_file" || continue;
2974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2975 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2980 $as_echo "$as_me: failed program was:" >&5
2981 sed 's/^/| /' conftest.$ac_ext >&5
2983 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2985 as_fn_error $? "cannot compute suffix of object files
: cannot compile
2986 See \
`config.log' for more details" "$LINENO" 5; }
2988 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2991 $as_echo "$ac_cv_objext" >&6; }
2992 OBJEXT=$ac_cv_objext
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2995 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2996 if ${ac_cv_c_compiler_gnu+:} false; then :
2997 $as_echo_n "(cached) " >&6
2999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3000 /* end confdefs.h. */
3013 if ac_fn_c_try_compile "$LINENO"; then :
3018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3019 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3023 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3024 if test $ac_compiler_gnu = yes; then
3029 ac_test_CFLAGS=${CFLAGS+set}
3030 ac_save_CFLAGS=$CFLAGS
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3032 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3033 if ${ac_cv_prog_cc_g+:} false; then :
3034 $as_echo_n "(cached) " >&6
3036 ac_save_c_werror_flag=$ac_c_werror_flag
3037 ac_c_werror_flag=yes
3040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3041 /* end confdefs.h. */
3051 if ac_fn_c_try_compile "$LINENO"; then :
3055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3056 /* end confdefs.h. */
3066 if ac_fn_c_try_compile "$LINENO"; then :
3069 ac_c_werror_flag=$ac_save_c_werror_flag
3071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3072 /* end confdefs.h. */
3082 if ac_fn_c_try_compile "$LINENO"; then :
3085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3090 ac_c_werror_flag=$ac_save_c_werror_flag
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3093 $as_echo "$ac_cv_prog_cc_g" >&6; }
3094 if test "$ac_test_CFLAGS" = set; then
3095 CFLAGS=$ac_save_CFLAGS
3096 elif test $ac_cv_prog_cc_g = yes; then
3097 if test "$GCC" = yes; then
3103 if test "$GCC" = yes; then
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3110 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3111 if ${ac_cv_prog_cc_c89+:} false; then :
3112 $as_echo_n "(cached) " >&6
3114 ac_cv_prog_cc_c89=no
3116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3117 /* end confdefs.h. */
3121 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3122 struct buf { int x; };
3123 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3124 static char *e (p, i)
3130 static char *f (char * (*g) (char **, int), char **p, ...)
3135 s = g (p, va_arg (v,int));
3140 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3141 function prototypes and stuff, but not '\xHH' hex character constants.
3142 These don't provoke an error unfortunately, instead are silently treated
3143 as 'x'. The following induces an error, until -std is added to get
3144 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3145 array size at least. It's necessary to write '\x00'==0 to get something
3146 that's true only with -std. */
3147 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3149 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3150 inside strings and character constants. */
3152 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3154 int test (int i, double x);
3155 struct s1 {int (*f) (int a);};
3156 struct s2 {int (*f) (double a);};
3157 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3163 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3168 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3169 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3171 CC="$ac_save_CC $ac_arg"
3172 if ac_fn_c_try_compile "$LINENO"; then :
3173 ac_cv_prog_cc_c89=$ac_arg
3175 rm -f core conftest.err conftest.$ac_objext
3176 test "x$ac_cv_prog_cc_c89" != "xno" && break
3178 rm -f conftest.$ac_ext
3183 case "x$ac_cv_prog_cc_c89" in
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3186 $as_echo "none needed" >&6; } ;;
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3189 $as_echo "unsupported" >&6; } ;;
3191 CC="$CC $ac_cv_prog_cc_c89"
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3193 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3195 if test "x$ac_cv_prog_cc_c89" != xno; then :
3200 ac_cpp='$CPP $CPPFLAGS'
3201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3207 ac_cpp='$CPP $CPPFLAGS'
3208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3212 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3213 # On Suns, sometimes $CPP names a directory.
3214 if test -n "$CPP" && test -d "$CPP"; then
3217 if test -z "$CPP"; then
3218 if ${ac_cv_prog_CPP+:} false; then :
3219 $as_echo_n "(cached) " >&6
3221 # Double quotes because CPP needs to be expanded
3222 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3225 for ac_c_preproc_warn_flag in '' yes
3227 # Use a header file that comes with gcc, so configuring glibc
3228 # with a fresh cross-compiler works.
3229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3230 # <limits.h> exists even on freestanding compilers.
3231 # On the NeXT, cc -E runs the code through the compiler's parser,
3232 # not just through cpp. "Syntax error" is here to catch this case.
3233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234 /* end confdefs.h. */
3236 # include <limits.h>
3238 # include <assert.h>
3242 if ac_fn_c_try_cpp "$LINENO"; then :
3245 # Broken: fails on valid input.
3248 rm -f conftest.err conftest.i conftest.$ac_ext
3250 # OK, works on sane cases. Now check whether nonexistent headers
3251 # can be detected and how.
3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h. */
3254 #include <ac_nonexistent.h>
3256 if ac_fn_c_try_cpp "$LINENO"; then :
3257 # Broken: success on invalid input.
3260 # Passes both tests.
3264 rm -f conftest.err conftest.i conftest.$ac_ext
3267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3268 rm -f conftest.i conftest.err conftest.
$ac_ext
3269 if $ac_preproc_ok; then :
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3282 $as_echo "$CPP" >&6; }
3284 for ac_c_preproc_warn_flag
in '' yes
3286 # Use a header file that comes with gcc, so configuring glibc
3287 # with a fresh cross-compiler works.
3288 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3289 # <limits.h> exists even on freestanding compilers.
3290 # On the NeXT, cc -E runs the code through the compiler's parser,
3291 # not just through cpp. "Syntax error" is here to catch this case.
3292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h. */
3295 # include <limits.h>
3297 # include <assert.h>
3301 if ac_fn_c_try_cpp
"$LINENO"; then :
3304 # Broken: fails on valid input.
3307 rm -f conftest.err conftest.i conftest.
$ac_ext
3309 # OK, works on sane cases. Now check whether nonexistent headers
3310 # can be detected and how.
3311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3312 /* end confdefs.h. */
3313 #include <ac_nonexistent.h>
3315 if ac_fn_c_try_cpp
"$LINENO"; then :
3316 # Broken: success on invalid input.
3319 # Passes both tests.
3323 rm -f conftest.err conftest.i conftest.
$ac_ext
3326 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3327 rm -f conftest.i conftest.err conftest.
$ac_ext
3328 if $ac_preproc_ok; then :
3331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3333 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3334 See \`config.log' for more details" "$LINENO" 5; }
3338 ac_cpp
='$CPP $CPPFLAGS'
3339 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3345 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3346 if ${ac_cv_path_GREP+:} false
; then :
3347 $as_echo_n "(cached) " >&6
3349 if test -z "$GREP"; then
3350 ac_path_GREP_found
=false
3351 # Loop through the user's path and test for each of PROGNAME-LIST
3352 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3353 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3356 test -z "$as_dir" && as_dir
=.
3357 for ac_prog
in grep ggrep
; do
3358 for ac_exec_ext
in '' $ac_executable_extensions; do
3359 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3360 as_fn_executable_p
"$ac_path_GREP" ||
continue
3361 # Check for GNU ac_path_GREP and select it if it is found.
3362 # Check for GNU $ac_path_GREP
3363 case `"$ac_path_GREP" --version 2>&1` in
3365 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3368 $as_echo_n 0123456789 >"conftest.in"
3371 cat "conftest.in" "conftest.in" >"conftest.tmp"
3372 mv "conftest.tmp" "conftest.in"
3373 cp "conftest.in" "conftest.nl"
3374 $as_echo 'GREP' >> "conftest.nl"
3375 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3376 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3377 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3378 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3379 # Best one so far, save it but keep looking for a better one
3380 ac_cv_path_GREP
="$ac_path_GREP"
3381 ac_path_GREP_max
=$ac_count
3383 # 10*(2^10) chars as input seems more than enough
3384 test $ac_count -gt 10 && break
3386 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3389 $ac_path_GREP_found && break 3
3394 if test -z "$ac_cv_path_GREP"; then
3395 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3398 ac_cv_path_GREP
=$GREP
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3403 $as_echo "$ac_cv_path_GREP" >&6; }
3404 GREP
="$ac_cv_path_GREP"
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3408 $as_echo_n "checking for egrep... " >&6; }
3409 if ${ac_cv_path_EGREP+:} false
; then :
3410 $as_echo_n "(cached) " >&6
3412 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3413 then ac_cv_path_EGREP
="$GREP -E"
3415 if test -z "$EGREP"; then
3416 ac_path_EGREP_found
=false
3417 # Loop through the user's path and test for each of PROGNAME-LIST
3418 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3419 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3422 test -z "$as_dir" && as_dir
=.
3423 for ac_prog
in egrep; do
3424 for ac_exec_ext
in '' $ac_executable_extensions; do
3425 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3426 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3427 # Check for GNU ac_path_EGREP and select it if it is found.
3428 # Check for GNU $ac_path_EGREP
3429 case `"$ac_path_EGREP" --version 2>&1` in
3431 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3434 $as_echo_n 0123456789 >"conftest.in"
3437 cat "conftest.in" "conftest.in" >"conftest.tmp"
3438 mv "conftest.tmp" "conftest.in"
3439 cp "conftest.in" "conftest.nl"
3440 $as_echo 'EGREP' >> "conftest.nl"
3441 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3442 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3443 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3444 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3445 # Best one so far, save it but keep looking for a better one
3446 ac_cv_path_EGREP
="$ac_path_EGREP"
3447 ac_path_EGREP_max
=$ac_count
3449 # 10*(2^10) chars as input seems more than enough
3450 test $ac_count -gt 10 && break
3452 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3455 $ac_path_EGREP_found && break 3
3460 if test -z "$ac_cv_path_EGREP"; then
3461 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3464 ac_cv_path_EGREP
=$EGREP
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3470 $as_echo "$ac_cv_path_EGREP" >&6; }
3471 EGREP
="$ac_cv_path_EGREP"
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3475 $as_echo_n "checking for ANSI C header files... " >&6; }
3476 if ${ac_cv_header_stdc+:} false
; then :
3477 $as_echo_n "(cached) " >&6
3479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3494 if ac_fn_c_try_compile
"$LINENO"; then :
3495 ac_cv_header_stdc
=yes
3497 ac_cv_header_stdc
=no
3499 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3501 if test $ac_cv_header_stdc = yes; then
3502 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3509 $EGREP "memchr" >/dev
/null
2>&1; then :
3512 ac_cv_header_stdc
=no
3518 if test $ac_cv_header_stdc = yes; then
3519 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3521 /* end confdefs.h. */
3525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3526 $EGREP "free" >/dev
/null
2>&1; then :
3529 ac_cv_header_stdc
=no
3535 if test $ac_cv_header_stdc = yes; then
3536 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3537 if test "$cross_compiling" = yes; then :
3540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h. */
3544 #if ((' ' & 0x0FF) == 0x020)
3545 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3546 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3548 # define ISLOWER(c) \
3549 (('a' <= (c) && (c) <= 'i') \
3550 || ('j' <= (c) && (c) <= 'r') \
3551 || ('s' <= (c) && (c) <= 'z'))
3552 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3555 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3560 for (i = 0; i < 256; i++)
3561 if (XOR (islower (i), ISLOWER (i))
3562 || toupper (i) != TOUPPER (i))
3567 if ac_fn_c_try_run
"$LINENO"; then :
3570 ac_cv_header_stdc
=no
3572 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3573 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3579 $as_echo "$ac_cv_header_stdc" >&6; }
3580 if test $ac_cv_header_stdc = yes; then
3582 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3586 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3587 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3588 inttypes.h stdint.h unistd.h
3590 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3591 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3593 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
3594 cat >>confdefs.h
<<_ACEOF
3595 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3604 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3605 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
3612 if test "$MINIX" = yes; then
3614 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3617 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3620 $as_echo "#define _MINIX 1" >>confdefs.h
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3626 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3627 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
3628 $as_echo_n "(cached) " >&6
3630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3631 /* end confdefs.h. */
3633 # define __EXTENSIONS__ 1
3634 $ac_includes_default
3643 if ac_fn_c_try_compile
"$LINENO"; then :
3644 ac_cv_safe_to_define___extensions__
=yes
3646 ac_cv_safe_to_define___extensions__
=no
3648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3651 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3652 test $ac_cv_safe_to_define___extensions__ = yes &&
3653 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3655 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3657 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3659 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3661 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3664 test "$program_prefix" != NONE
&&
3665 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3666 # Use a double $ so make ignores it.
3667 test "$program_suffix" != NONE
&&
3668 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3669 # Double any \ or $.
3670 # By default was `s,x,x', remove it if useless.
3671 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3672 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3674 # Find a good install program. We prefer a C program (faster),
3675 # so one script is as good as another. But avoid the broken or
3676 # incompatible versions:
3677 # SysV /etc/install, /usr/sbin/install
3678 # SunOS /usr/etc/install
3679 # IRIX /sbin/install
3681 # AmigaOS /C/install, which installs bootblocks on floppy discs
3682 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3683 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3684 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3685 # OS/2's system install, which has a completely different semantic
3686 # ./install, which can be erroneously created by make from ./install.sh.
3687 # Reject install programs that cannot install multiple files.
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3689 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3690 if test -z "$INSTALL"; then
3691 if ${ac_cv_path_install+:} false
; then :
3692 $as_echo_n "(cached) " >&6
3694 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3698 test -z "$as_dir" && as_dir
=.
3699 # Account for people who put trailing slashes in PATH elements.
3700 case $as_dir/ in #((
3701 .
/ | .
// |
/[cC
]/* | \
3702 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3703 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3706 # OSF1 and SCO ODT 3.0 have their own names for install.
3707 # Don't use installbsd from OSF since it installs stuff as root
3709 for ac_prog
in ginstall scoinst
install; do
3710 for ac_exec_ext
in '' $ac_executable_extensions; do
3711 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
3712 if test $ac_prog = install &&
3713 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3714 # AIX install. It has an incompatible calling convention.
3716 elif test $ac_prog = install &&
3717 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3718 # program-specific install script used by HP pwplus--don't use.
3721 rm -rf conftest.one conftest.two conftest.dir
3722 echo one
> conftest.one
3723 echo two
> conftest.two
3725 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3726 test -s conftest.one
&& test -s conftest.two
&&
3727 test -s conftest.dir
/conftest.one
&&
3728 test -s conftest.dir
/conftest.two
3730 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3743 rm -rf conftest.one conftest.two conftest.dir
3746 if test "${ac_cv_path_install+set}" = set; then
3747 INSTALL
=$ac_cv_path_install
3749 # As a last resort, use the slow shell script. Don't cache a
3750 # value for INSTALL within a source directory, because that will
3751 # break other packages using the cache if that directory is
3752 # removed, or if the value is a relative name.
3753 INSTALL
=$ac_install_sh
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3757 $as_echo "$INSTALL" >&6; }
3759 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3760 # It thinks the first close brace ends the variable substitution.
3761 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3763 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3765 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3767 rm -rf .tst
2>/dev
/null
3768 mkdir .tst
2>/dev
/null
3769 if test -d .tst
; then
3774 rmdir .tst
2>/dev
/null
3776 DEPDIR
="${am__leading_dot}deps"
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3781 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3786 macro_version
='2.2.7a'
3787 macro_revision
='1.3134'
3801 ltmain
="$ac_aux_dir/ltmain.sh"
3803 # Backslashify metacharacters that are still active within
3804 # double-quoted strings.
3805 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
3807 # Same as above, but do not quote variable references.
3808 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
3810 # Sed substitution to delay expansion of an escaped shell variable in a
3811 # double_quote_subst'ed string.
3812 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
3814 # Sed substitution to delay expansion of an escaped single quote.
3815 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
3817 # Sed substitution to avoid accidental globbing in evaled expressions
3818 no_glob_subst
='s/\*/\\\*/g'
3820 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3821 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3822 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3825 $as_echo_n "checking how to print strings... " >&6; }
3826 # Test print first, because it will be a builtin if present.
3827 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3828 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3830 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3833 # Use this function as a fallback that always works.
3834 func_fallback_echo ()
3836 eval 'cat <<_LTECHO_EOF
3840 ECHO='func_fallback_echo
'
3843 # func_echo_all arg...
3844 # Invoke $ECHO with all args, space-separated.
3851 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3852 $as_echo "printf" >&6; } ;;
3853 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3854 $as_echo "print -r" >&6; } ;;
3855 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3856 $as_echo "cat" >&6; } ;;
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3873 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3874 if ${ac_cv_path_SED+:} false; then :
3875 $as_echo_n "(cached) " >&6
3877 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3878 for ac_i in 1 2 3 4 5 6 7; do
3879 ac_script="$ac_script$as_nl$ac_script"
3881 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3882 { ac_script=; unset ac_script;}
3883 if test -z "$SED"; then
3884 ac_path_SED_found=false
3885 # Loop through the user's path and
test for each of PROGNAME-LIST
3886 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3890 test -z "$as_dir" && as_dir
=.
3891 for ac_prog
in sed gsed
; do
3892 for ac_exec_ext
in '' $ac_executable_extensions; do
3893 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
3894 as_fn_executable_p
"$ac_path_SED" ||
continue
3895 # Check for GNU ac_path_SED and select it if it is found.
3896 # Check for GNU $ac_path_SED
3897 case `"$ac_path_SED" --version 2>&1` in
3899 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
3902 $as_echo_n 0123456789 >"conftest.in"
3905 cat "conftest.in" "conftest.in" >"conftest.tmp"
3906 mv "conftest.tmp" "conftest.in"
3907 cp "conftest.in" "conftest.nl"
3908 $as_echo '' >> "conftest.nl"
3909 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3910 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3911 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3912 if test $ac_count -gt ${ac_path_SED_max-0}; then
3913 # Best one so far, save it but keep looking for a better one
3914 ac_cv_path_SED
="$ac_path_SED"
3915 ac_path_SED_max
=$ac_count
3917 # 10*(2^10) chars as input seems more than enough
3918 test $ac_count -gt 10 && break
3920 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3923 $ac_path_SED_found && break 3
3928 if test -z "$ac_cv_path_SED"; then
3929 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3937 $as_echo "$ac_cv_path_SED" >&6; }
3938 SED
="$ac_cv_path_SED"
3941 test -z "$SED" && SED
=sed
3942 Xsed
="$SED -e 1s/^X//"
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3955 $as_echo_n "checking for fgrep... " >&6; }
3956 if ${ac_cv_path_FGREP+:} false
; then :
3957 $as_echo_n "(cached) " >&6
3959 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
3960 then ac_cv_path_FGREP
="$GREP -F"
3962 if test -z "$FGREP"; then
3963 ac_path_FGREP_found
=false
3964 # Loop through the user's path and test for each of PROGNAME-LIST
3965 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3966 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3969 test -z "$as_dir" && as_dir
=.
3970 for ac_prog
in fgrep
; do
3971 for ac_exec_ext
in '' $ac_executable_extensions; do
3972 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
3973 as_fn_executable_p
"$ac_path_FGREP" ||
continue
3974 # Check for GNU ac_path_FGREP and select it if it is found.
3975 # Check for GNU $ac_path_FGREP
3976 case `"$ac_path_FGREP" --version 2>&1` in
3978 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
3981 $as_echo_n 0123456789 >"conftest.in"
3984 cat "conftest.in" "conftest.in" >"conftest.tmp"
3985 mv "conftest.tmp" "conftest.in"
3986 cp "conftest.in" "conftest.nl"
3987 $as_echo 'FGREP' >> "conftest.nl"
3988 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3989 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3990 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3991 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3992 # Best one so far, save it but keep looking for a better one
3993 ac_cv_path_FGREP
="$ac_path_FGREP"
3994 ac_path_FGREP_max
=$ac_count
3996 # 10*(2^10) chars as input seems more than enough
3997 test $ac_count -gt 10 && break
3999 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4002 $ac_path_FGREP_found && break 3
4007 if test -z "$ac_cv_path_FGREP"; then
4008 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4011 ac_cv_path_FGREP
=$FGREP
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4017 $as_echo "$ac_cv_path_FGREP" >&6; }
4018 FGREP
="$ac_cv_path_FGREP"
4021 test -z "$GREP" && GREP
=grep
4041 # Check whether --with-gnu-ld was given.
4042 if test "${with_gnu_ld+set}" = set; then :
4043 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
4049 if test "$GCC" = yes; then
4050 # Check if gcc -print-prog-name=ld gives a path.
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4052 $as_echo_n "checking for ld used by $CC... " >&6; }
4055 # gcc leaves a trailing carriage return which upsets mingw
4056 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4058 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4061 # Accept absolute paths.
4063 re_direlt
='/[^/][^/]*/\.\./'
4064 # Canonicalize the pathname of ld
4065 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4066 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
4067 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4069 test -z "$LD" && LD
="$ac_prog"
4072 # If it fails, then pretend we aren't using GCC.
4076 # If it is relative, then search for the first ld in PATH.
4080 elif test "$with_gnu_ld" = yes; then
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4082 $as_echo_n "checking for GNU ld... " >&6; }
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4085 $as_echo_n "checking for non-GNU ld... " >&6; }
4087 if ${lt_cv_path_LD+:} false
; then :
4088 $as_echo_n "(cached) " >&6
4090 if test -z "$LD"; then
4091 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4092 for ac_dir
in $PATH; do
4094 test -z "$ac_dir" && ac_dir
=.
4095 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4096 lt_cv_path_LD
="$ac_dir/$ac_prog"
4097 # Check to see if the program is GNU ld. I'd rather use --version,
4098 # but apparently some variants of GNU ld only accept -v.
4099 # Break only if it was the GNU/non-GNU ld that we prefer.
4100 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4101 *GNU
* |
*'with BFD'*)
4102 test "$with_gnu_ld" != no
&& break
4105 test "$with_gnu_ld" != yes && break
4112 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4117 if test -n "$LD"; then
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4119 $as_echo "$LD" >&6; }
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 $as_echo "no" >&6; }
4124 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4126 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4127 if ${lt_cv_prog_gnu_ld+:} false
; then :
4128 $as_echo_n "(cached) " >&6
4130 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4131 case `$LD -v 2>&1 </dev/null` in
4132 *GNU
* |
*'with BFD'*)
4133 lt_cv_prog_gnu_ld
=yes
4136 lt_cv_prog_gnu_ld
=no
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4141 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4142 with_gnu_ld
=$lt_cv_prog_gnu_ld
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4153 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4154 if ${lt_cv_path_NM+:} false
; then :
4155 $as_echo_n "(cached) " >&6
4157 if test -n "$NM"; then
4158 # Let the user override the test.
4161 lt_nm_to_check
="${ac_tool_prefix}nm"
4162 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4163 lt_nm_to_check
="$lt_nm_to_check nm"
4165 for lt_tmp_nm
in $lt_nm_to_check; do
4166 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4167 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
4169 test -z "$ac_dir" && ac_dir
=.
4170 tmp_nm
="$ac_dir/$lt_tmp_nm"
4171 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
4172 # Check to see if the nm accepts a BSD-compat flag.
4173 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4174 # nm: unknown option "B" ignored
4175 # Tru64's nm complains that /dev/null is an invalid object file
4176 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4177 */dev
/null
* |
*'Invalid file or object type'*)
4178 lt_cv_path_NM
="$tmp_nm -B"
4182 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4184 lt_cv_path_NM
="$tmp_nm -p"
4188 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4189 continue # so that we can try to find one that supports BSD flags
4198 : ${lt_cv_path_NM=no}
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4202 $as_echo "$lt_cv_path_NM" >&6; }
4203 if test "$lt_cv_path_NM" != "no"; then
4206 # Didn't find any BSD compatible name lister, look for dumpbin.
4207 if test -n "$DUMPBIN"; then :
4208 # Let the user override the test.
4210 if test -n "$ac_tool_prefix"; then
4211 for ac_prog
in dumpbin
"link -dump"
4213 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4214 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4216 $as_echo_n "checking for $ac_word... " >&6; }
4217 if ${ac_cv_prog_DUMPBIN+:} false
; then :
4218 $as_echo_n "(cached) " >&6
4220 if test -n "$DUMPBIN"; then
4221 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
4223 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4227 test -z "$as_dir" && as_dir
=.
4228 for ac_exec_ext
in '' $ac_executable_extensions; do
4229 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4230 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
4231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4240 DUMPBIN
=$ac_cv_prog_DUMPBIN
4241 if test -n "$DUMPBIN"; then
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4243 $as_echo "$DUMPBIN" >&6; }
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4246 $as_echo "no" >&6; }
4250 test -n "$DUMPBIN" && break
4253 if test -z "$DUMPBIN"; then
4254 ac_ct_DUMPBIN
=$DUMPBIN
4255 for ac_prog
in dumpbin
"link -dump"
4257 # Extract the first word of "$ac_prog", so it can be a program name with args.
4258 set dummy
$ac_prog; ac_word
=$2
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4260 $as_echo_n "checking for $ac_word... " >&6; }
4261 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
4262 $as_echo_n "(cached) " >&6
4264 if test -n "$ac_ct_DUMPBIN"; then
4265 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
4267 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4271 test -z "$as_dir" && as_dir
=.
4272 for ac_exec_ext
in '' $ac_executable_extensions; do
4273 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4274 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
4275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4284 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
4285 if test -n "$ac_ct_DUMPBIN"; then
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4287 $as_echo "$ac_ct_DUMPBIN" >&6; }
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4290 $as_echo "no" >&6; }
4294 test -n "$ac_ct_DUMPBIN" && break
4297 if test "x$ac_ct_DUMPBIN" = x
; then
4300 case $cross_compiling:$ac_tool_warned in
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4304 ac_tool_warned
=yes ;;
4306 DUMPBIN
=$ac_ct_DUMPBIN
4310 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4312 DUMPBIN
="$DUMPBIN -symbols"
4320 if test "$DUMPBIN" != ":"; then
4324 test -z "$NM" && NM
=nm
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4332 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4333 if ${lt_cv_nm_interface+:} false
; then :
4334 $as_echo_n "(cached) " >&6
4336 lt_cv_nm_interface
="BSD nm"
4337 echo "int some_variable = 0;" > conftest.
$ac_ext
4338 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4339 (eval "$ac_compile" 2>conftest.err
)
4340 cat conftest.err
>&5
4341 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4342 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
4343 cat conftest.err
>&5
4344 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4345 cat conftest.out
>&5
4346 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
4347 lt_cv_nm_interface
="MS dumpbin"
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4352 $as_echo "$lt_cv_nm_interface" >&6; }
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4355 $as_echo_n "checking whether ln -s works... " >&6; }
4357 if test "$LN_S" = "ln -s"; then
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4359 $as_echo "yes" >&6; }
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4362 $as_echo "no, using $LN_S" >&6; }
4365 # find the maximum length of command line arguments
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4367 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4368 if ${lt_cv_sys_max_cmd_len+:} false
; then :
4369 $as_echo_n "(cached) " >&6
4376 # On DJGPP, this test can blow up pretty badly due to problems in libc
4377 # (any single argument exceeding 2000 bytes causes a buffer overrun
4378 # during glob expansion). Even if it were fixed, the result of this
4379 # check would be larger than it should be.
4380 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
4384 # Under GNU Hurd, this test is not required because there is
4385 # no limit to the length of command line arguments.
4386 # Libtool will interpret -1 as no limit whatsoever
4387 lt_cv_sys_max_cmd_len
=-1;
4390 cygwin
* | mingw
* | cegcc
*)
4391 # On Win9x/ME, this test blows up -- it succeeds, but takes
4392 # about 5 minutes as the teststring grows exponentially.
4393 # Worse, since 9x/ME are not pre-emptively multitasking,
4394 # you end up with a "frozen" computer, even though with patience
4395 # the test eventually succeeds (with a max line length of 256k).
4396 # Instead, let's just punt: use the minimum linelength reported by
4397 # all of the supported platforms: 8192 (on NT/2K/XP).
4398 lt_cv_sys_max_cmd_len
=8192;
4402 # On MiNT this can take a long time and run out of memory.
4403 lt_cv_sys_max_cmd_len
=8192;
4407 # On AmigaOS with pdksh, this test takes hours, literally.
4408 # So we just punt and use a minimum line length of 8192.
4409 lt_cv_sys_max_cmd_len
=8192;
4412 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
4413 # This has been around since 386BSD, at least. Likely further.
4414 if test -x /sbin
/sysctl
; then
4415 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
4416 elif test -x /usr
/sbin
/sysctl
; then
4417 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
4419 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
4421 # And add a safety zone
4422 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4423 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4427 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4428 lt_cv_sys_max_cmd_len
=196608
4432 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4433 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4434 # nice to cause kernel panics so lets avoid the loop below.
4435 # First set a reasonable default.
4436 lt_cv_sys_max_cmd_len
=16384
4438 if test -x /sbin
/sysconfig
; then
4439 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4440 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
4445 lt_cv_sys_max_cmd_len
=102400
4447 sysv5
* | sco5v6
* | sysv4.2uw2
*)
4448 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4449 if test -n "$kargmax"; then
4450 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
4452 lt_cv_sys_max_cmd_len
=32768
4456 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
4457 if test -n "$lt_cv_sys_max_cmd_len"; then
4458 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4459 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4461 # Make teststring a little bigger before we do anything with it.
4462 # a 1K string should be a reasonable start.
4463 for i
in 1 2 3 4 5 6 7 8 ; do
4464 teststring
=$teststring$teststring
4466 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
4467 # If test is not a shell built-in, we'll probably end up computing a
4468 # maximum length that is only half of the actual maximum length, but
4470 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4471 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
4472 test $i != 17 # 1/2 MB should be enough
4475 teststring
=$teststring$teststring
4477 # Only check the string length outside the loop.
4478 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
4480 # Add a significant safety factor because C++ compilers can tack on
4481 # massive amounts of additional arguments before passing them to the
4482 # linker. It appears as though 1/2 is a usable value.
4483 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
4490 if test -n $lt_cv_sys_max_cmd_len ; then
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4492 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4495 $as_echo "none" >&6; }
4497 max_cmd_len
=$lt_cv_sys_max_cmd_len
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4509 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4510 # Try some XSI features
4513 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4515 && eval 'test $(( 1 + 1 )) -eq 2 \
4516 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
4519 $as_echo "$xsi_shell" >&6; }
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
4523 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
4525 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
4527 && lt_shell_append=yes
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
4529 $as_echo "$lt_shell_append" >&6; }
4532 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4542 # test EBCDIC or ASCII
4543 case `echo X|tr X '\101'` in
4544 A) # ASCII based system
4545 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4546 lt_SP2NL='tr \040 \012'
4547 lt_NL2SP='tr \015\012 \040\040'
4549 *) # EBCDIC based system
4550 lt_SP2NL='tr \100 \n'
4551 lt_NL2SP='tr \r\n \100\100'
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
4564 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
4565 if ${lt_cv_ld_reload_flag+:} false; then :
4566 $as_echo_n "(cached
) " >&6
4568 lt_cv_ld_reload_flag='-r'
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
4571 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4572 reload_flag=$lt_cv_ld_reload_flag
4573 case $reload_flag in
4575 *) reload_flag=" $reload_flag" ;;
4577 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4580 if test "$GCC" = yes; then
4581 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4583 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4596 if test -n "$ac_tool_prefix"; then
4597 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
4598 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
4600 $as_echo_n "checking
for $ac_word...
" >&6; }
4601 if ${ac_cv_prog_OBJDUMP+:} false; then :
4602 $as_echo_n "(cached
) " >&6
4604 if test -n "$OBJDUMP"; then
4605 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4614 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
4615 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
4624 OBJDUMP=$ac_cv_prog_OBJDUMP
4625 if test -n "$OBJDUMP"; then
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
4627 $as_echo "$OBJDUMP" >&6; }
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4630 $as_echo "no
" >&6; }
4635 if test -z "$ac_cv_prog_OBJDUMP"; then
4636 ac_ct_OBJDUMP=$OBJDUMP
4637 # Extract the first word of "objdump
", so it can be a program name with args.
4638 set dummy objdump; ac_word=$2
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
4640 $as_echo_n "checking
for $ac_word...
" >&6; }
4641 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4642 $as_echo_n "(cached
) " >&6
4644 if test -n "$ac_ct_OBJDUMP"; then
4645 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
4655 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
4664 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4665 if test -n "$ac_ct_OBJDUMP"; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
4667 $as_echo "$ac_ct_OBJDUMP" >&6; }
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4670 $as_echo "no
" >&6; }
4673 if test "x
$ac_ct_OBJDUMP" = x; then
4676 case $cross_compiling:$ac_tool_warned in
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
4679 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
4680 ac_tool_warned=yes ;;
4682 OBJDUMP=$ac_ct_OBJDUMP
4685 OBJDUMP="$ac_cv_prog_OBJDUMP"
4688 test -z "$OBJDUMP" && OBJDUMP=objdump
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
4699 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
4700 if ${lt_cv_deplibs_check_method+:} false; then :
4701 $as_echo_n "(cached
) " >&6
4703 lt_cv_file_magic_cmd='$MAGIC_CMD'
4704 lt_cv_file_magic_test_file=
4705 lt_cv_deplibs_check_method='unknown'
4706 # Need to set the preceding variable on all platforms that support
4707 # interlibrary dependencies.
4708 # 'none' -- dependencies not supported.
4709 # `unknown' -- same as none, but documents that we really don't know.
4710 # 'pass_all' -- all dependencies passed with no checks.
4711 # 'test_compile' -- check by making test program.
4712 # 'file_magic [[regex]]' -- check by looking for files in library path
4713 # which responds to the $file_magic_cmd with a given extended regex.
4714 # If you have `file' or equivalent on your system and you're not sure
4715 # whether `pass_all' will *always* work, you probably want this one.
4719 lt_cv_deplibs_check_method=pass_all
4723 lt_cv_deplibs_check_method=pass_all
4727 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4728 lt_cv_file_magic_cmd='/usr/bin/file -L'
4729 lt_cv_file_magic_test_file=/shlib/libc.so
4733 # func_win32_libid is a shell function defined in ltmain.sh
4734 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4735 lt_cv_file_magic_cmd='func_win32_libid'
4739 # Base MSYS/MinGW do not provide the 'file' command needed by
4740 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4741 # unless we find 'file', for example because we are cross-compiling.
4742 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4743 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
4744 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4745 lt_cv_file_magic_cmd='func_win32_libid'
4747 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4748 lt_cv_file_magic_cmd='$OBJDUMP -f'
4753 # use the weaker test based on 'objdump'. See mingw*.
4754 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4755 lt_cv_file_magic_cmd='$OBJDUMP -f'
4758 darwin* | rhapsody*)
4759 lt_cv_deplibs_check_method=pass_all
4762 freebsd* | dragonfly*)
4763 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4766 # Not sure whether the presence of OpenBSD here was a mistake.
4767 # Let's accept both of them until this is cleared up.
4768 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4769 lt_cv_file_magic_cmd=/usr/bin/file
4770 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4774 lt_cv_deplibs_check_method=pass_all
4779 lt_cv_deplibs_check_method=pass_all
4783 lt_cv_deplibs_check_method=pass_all
4786 hpux10.20* | hpux11*)
4787 lt_cv_file_magic_cmd=/usr/bin/file
4790 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4791 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4794 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]'
4795 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4798 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4799 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4805 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4806 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4809 irix5* | irix6* | nonstopux*)
4811 *-32|*"-32 ") libmagic=32-bit;;
4812 *-n32|*"-n32 ") libmagic=N32;;
4813 *-64|*"-64 ") libmagic=64-bit;;
4814 *) libmagic=never-match;;
4816 lt_cv_deplibs_check_method=pass_all
4819 # This must be Linux ELF.
4820 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4821 lt_cv_deplibs_check_method=pass_all
4825 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4826 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4828 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4833 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4834 lt_cv_file_magic_cmd=/usr/bin/file
4835 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4839 lt_cv_deplibs_check_method=pass_all
4843 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
4844 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4846 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4850 osf3* | osf4* | osf5*)
4851 lt_cv_deplibs_check_method=pass_all
4855 lt_cv_deplibs_check_method=pass_all
4859 lt_cv_deplibs_check_method=pass_all
4862 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4863 lt_cv_deplibs_check_method=pass_all
4867 case $host_vendor in
4869 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]'
4870 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4873 lt_cv_deplibs_check_method=pass_all
4876 lt_cv_file_magic_cmd='/bin/file'
4877 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4880 lt_cv_file_magic_cmd='/bin/file'
4881 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
4882 lt_cv_file_magic_test_file=/lib/libc.so
4885 lt_cv_deplibs_check_method=pass_all
4888 lt_cv_deplibs_check_method=pass_all
4894 lt_cv_deplibs_check_method=pass_all
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
4900 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4901 file_magic_cmd=$lt_cv_file_magic_cmd
4902 deplibs_check_method=$lt_cv_deplibs_check_method
4903 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4917 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
4918 for plugin in $plugin_names; do
4919 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
4920 if test x$plugin_so = x$plugin; then
4921 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
4923 if test x$plugin_so != x$plugin; then
4924 plugin_option="--plugin $plugin_so"
4929 if test -n "$ac_tool_prefix"; then
4930 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4931 set dummy ${ac_tool_prefix}ar; ac_word=$2
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
4933 $as_echo_n "checking
for $ac_word...
" >&6; }
4934 if ${ac_cv_prog_AR+:} false; then :
4935 $as_echo_n "(cached
) " >&6
4937 if test -n "$AR"; then
4938 ac_cv_prog_AR="$AR" # Let the user override the test.
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 test -z "$as_dir" && as_dir=.
4945 for ac_exec_ext in '' $ac_executable_extensions; do
4946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4947 ac_cv_prog_AR="${ac_tool_prefix}ar"
4948 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
4958 if test -n "$AR"; then
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
4960 $as_echo "$AR" >&6; }
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4963 $as_echo "no
" >&6; }
4968 if test -z "$ac_cv_prog_AR"; then
4970 # Extract the first word of "ar", so it can be a program name with args.
4971 set dummy ar; ac_word=$2
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
4973 $as_echo_n "checking
for $ac_word...
" >&6; }
4974 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4975 $as_echo_n "(cached
) " >&6
4977 if test -n "$ac_ct_AR"; then
4978 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984 test -z "$as_dir" && as_dir=.
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4987 ac_cv_prog_ac_ct_AR="ar"
4988 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
4997 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4998 if test -n "$ac_ct_AR"; then
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
5000 $as_echo "$ac_ct_AR" >&6; }
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5003 $as_echo "no
" >&6; }
5006 if test "x
$ac_ct_AR" = x; then
5009 case $cross_compiling:$ac_tool_warned in
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5012 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5013 ac_tool_warned=yes ;;
5021 test -z "$AR" && AR=ar
5022 if test -n "$plugin_option"; then
5023 if $AR --help 2>&1 | grep -q "\
--plugin"; then
5025 $AR $plugin_option rc conftest.a conftest.c
5026 if test "$?
" != 0; then
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
5028 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
5030 AR="$AR $plugin_option"
5035 test -z "$AR_FLAGS" && AR_FLAGS=cru
5047 if test -n "$ac_tool_prefix"; then
5048 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
5049 set dummy ${ac_tool_prefix}strip; ac_word=$2
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5051 $as_echo_n "checking
for $ac_word...
" >&6; }
5052 if ${ac_cv_prog_STRIP+:} false; then :
5053 $as_echo_n "(cached
) " >&6
5055 if test -n "$STRIP"; then
5056 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 test -z "$as_dir" && as_dir=.
5063 for ac_exec_ext in '' $ac_executable_extensions; do
5064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5065 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
5066 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5075 STRIP=$ac_cv_prog_STRIP
5076 if test -n "$STRIP"; then
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
5078 $as_echo "$STRIP" >&6; }
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5081 $as_echo "no
" >&6; }
5086 if test -z "$ac_cv_prog_STRIP"; then
5088 # Extract the first word of "strip
", so it can be a program name with args.
5089 set dummy strip; ac_word=$2
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5091 $as_echo_n "checking
for $ac_word...
" >&6; }
5092 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5093 $as_echo_n "(cached
) " >&6
5095 if test -n "$ac_ct_STRIP"; then
5096 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 test -z "$as_dir" && as_dir=.
5103 for ac_exec_ext in '' $ac_executable_extensions; do
5104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5105 ac_cv_prog_ac_ct_STRIP="strip
"
5106 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5115 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5116 if test -n "$ac_ct_STRIP"; then
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
5118 $as_echo "$ac_ct_STRIP" >&6; }
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5121 $as_echo "no
" >&6; }
5124 if test "x
$ac_ct_STRIP" = x; then
5127 case $cross_compiling:$ac_tool_warned in
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5130 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5131 ac_tool_warned=yes ;;
5136 STRIP="$ac_cv_prog_STRIP"
5139 test -z "$STRIP" && STRIP=:
5146 if test -n "$ac_tool_prefix"; then
5147 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
5148 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5150 $as_echo_n "checking
for $ac_word...
" >&6; }
5151 if ${ac_cv_prog_RANLIB+:} false; then :
5152 $as_echo_n "(cached
) " >&6
5154 if test -n "$RANLIB"; then
5155 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 test -z "$as_dir" && as_dir=.
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5164 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
5165 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5174 RANLIB=$ac_cv_prog_RANLIB
5175 if test -n "$RANLIB"; then
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
5177 $as_echo "$RANLIB" >&6; }
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5180 $as_echo "no
" >&6; }
5185 if test -z "$ac_cv_prog_RANLIB"; then
5186 ac_ct_RANLIB=$RANLIB
5187 # Extract the first word of "ranlib
", so it can be a program name with args.
5188 set dummy ranlib; ac_word=$2
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5190 $as_echo_n "checking
for $ac_word...
" >&6; }
5191 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5192 $as_echo_n "(cached
) " >&6
5194 if test -n "$ac_ct_RANLIB"; then
5195 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204 ac_cv_prog_ac_ct_RANLIB="ranlib
"
5205 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5214 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5215 if test -n "$ac_ct_RANLIB"; then
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
5217 $as_echo "$ac_ct_RANLIB" >&6; }
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5220 $as_echo "no
" >&6; }
5223 if test "x
$ac_ct_RANLIB" = x; then
5226 case $cross_compiling:$ac_tool_warned in
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5229 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5230 ac_tool_warned=yes ;;
5232 RANLIB=$ac_ct_RANLIB
5235 RANLIB="$ac_cv_prog_RANLIB"
5238 test -z "$RANLIB" && RANLIB=:
5239 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
5240 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
5241 RANLIB="$RANLIB $plugin_option"
5250 # Determine commands to create old-style static archives.
5251 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5252 old_postinstall_cmds='chmod 644 $oldlib'
5253 old_postuninstall_cmds=
5255 if test -n "$RANLIB"; then
5258 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
5261 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
5264 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
5269 lock_old_archive_extraction=yes ;;
5271 lock_old_archive_extraction=no ;;
5294 for ac_prog in gawk mawk nawk awk
5296 # Extract the first word of "$ac_prog", so it can be a program name with args.
5297 set dummy $ac_prog; ac_word=$2
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5299 $as_echo_n "checking
for $ac_word...
" >&6; }
5300 if ${ac_cv_prog_AWK+:} false; then :
5301 $as_echo_n "(cached
) " >&6
5303 if test -n "$AWK"; then
5304 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 test -z "$as_dir" && as_dir=.
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5313 ac_cv_prog_AWK="$ac_prog"
5314 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5324 if test -n "$AWK"; then
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AWK" >&5
5326 $as_echo "$AWK" >&6; }
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5329 $as_echo "no
" >&6; }
5333 test -n "$AWK" && break
5354 # If no C compiler was specified, use CC.
5357 # If no C compiler flags were specified, use CFLAGS.
5358 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5360 # Allow CC to be a program name with arguments.
5364 # Check for command to grab the raw symbol name followed by C symbol from nm.
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
5366 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
5367 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5368 $as_echo_n "(cached
) " >&6
5371 # These are sane defaults that work on at least a few old systems.
5372 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5374 # Character class describing NM global symbol codes.
5375 symcode='[BCDEGRST]'
5377 # Regexp to match symbols that can be accessed directly from C.
5378 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5380 # Define system-specific variables.
5385 cygwin* | mingw* | pw32* | cegcc*)
5386 symcode='[ABCDGISTW]'
5389 if test "$host_cpu" = ia64; then
5390 symcode='[ABCDEGRST]'
5394 symcode='[BCDEGRST]'
5397 symcode='[BCDEGQRST]'
5408 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5416 # If we're using GNU nm, then use its standard symbol codes.
5417 case `$NM -V 2>&1` in
5418 *GNU* | *'with BFD'*)
5419 symcode='[ABCDGIRSTW]' ;;
5422 # Transform an extracted symbol line into a proper C declaration.
5423 # Some systems (esp. on ia64) link data and code symbols differently,
5424 # so use this general approach.
5425 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5427 # Transform an extracted symbol line into symbol name and symbol address
5428 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5429 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'"
5431 # Handle CRLF in mingw tool chain
5435 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5439 # Try without a prefix underscore, then with it.
5440 for ac_symprfx in "" "_
"; do
5442 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5443 symxfrm="\\1 $ac_symprfx\\2 \\2"
5445 # Write the raw and C identifiers.
5446 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
5447 # Fake it for dumpbin and say T for any non-static function
5448 # and D for any global variable.
5449 # Also find C++ and __fastcall symbols from MSVC++,
5450 # which start with @ or ?.
5451 lt_cv_sys_global_symbol_pipe="$AWK '"\
5452 " {last_section=section; section=\$ 3};"\
5453 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5454 " \$ 0!~/External *\|/{next};"\
5455 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5456 " {if(hide[section]) next};"\
5457 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5458 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5459 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5460 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5461 " ' prfx
=^
$ac_symprfx"
5463 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5466 # Check to see that the pipe works correctly.
5470 cat > conftest.$ac_ext <<_LT_EOF
5475 void nm_test_func(void);
5476 void nm_test_func(void){}
5480 int main(){nm_test_var='a';nm_test_func();return(0);}
5483 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5484 (eval $ac_compile) 2>&5
5486 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5487 test $ac_status = 0; }; then
5488 # Now try to grab the symbols.
5490 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
5491 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5493 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5494 test $ac_status = 0; } && test -s "$nlist"; then
5495 # Try sorting and uniquifying the output.
5496 if sort "$nlist" | uniq > "$nlist"T; then
5497 mv -f "$nlist"T "$nlist"
5502 # Make sure that we snagged all the symbols we need.
5503 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5504 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5505 cat <<_LT_EOF > conftest.$ac_ext
5511 # Now generate the symbol file.
5512 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5514 cat <<_LT_EOF >> conftest.$ac_ext
5516 /* The mapping between symbol names and symbols. */
5521 lt__PROGRAM__LTX_preloaded_symbols[] =
5523 { "@PROGRAM@
", (void *) 0 },
5525 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5526 cat <<\_LT_EOF >> conftest.$ac_ext
5530 /* This works around a problem in FreeBSD linker */
5531 #ifdef FREEBSD_WORKAROUND
5532 static const void *lt_preloaded_setup() {
5533 return lt__PROGRAM__LTX_preloaded_symbols;
5541 # Now try linking the two files.
5542 mv conftest.$ac_objext conftstm.$ac_objext
5543 lt_save_LIBS="$LIBS"
5544 lt_save_CFLAGS="$CFLAGS"
5545 LIBS="conftstm.
$ac_objext"
5546 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5547 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5548 (eval $ac_link) 2>&5
5550 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5551 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5554 LIBS="$lt_save_LIBS"
5555 CFLAGS="$lt_save_CFLAGS"
5557 echo "cannot
find nm_test_func
in $nlist" >&5
5560 echo "cannot
find nm_test_var
in $nlist" >&5
5563 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
5566 echo "$progname: failed program was
:" >&5
5567 cat conftest.$ac_ext >&5
5569 rm -rf conftest* conftst*
5571 # Do not use the global_symbol_pipe unless it works.
5572 if test "$pipe_works" = yes; then
5575 lt_cv_sys_global_symbol_pipe=
5581 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5582 lt_cv_sys_global_symbol_to_cdecl=
5584 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
5586 $as_echo "failed
" >&6; }
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
5589 $as_echo "ok
" >&6; }
5613 # Check whether --enable-libtool-lock was given.
5614 if test "${enable_libtool_lock+set}" = set; then :
5615 enableval=$enable_libtool_lock;
5618 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
5620 # Some flags need to be propagated to the compiler or linker for good
5624 # Find out which ABI we are using.
5625 echo 'int i;' > conftest.$ac_ext
5626 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5627 (eval $ac_compile) 2>&5
5629 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5630 test $ac_status = 0; }; then
5631 case `/usr/bin/file conftest.$ac_objext` in
5643 # Find out which ABI we are using.
5644 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
5645 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5646 (eval $ac_compile) 2>&5
5648 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5649 test $ac_status = 0; }; then
5650 if test "$lt_cv_prog_gnu_ld" = yes; then
5651 case `/usr/bin/file conftest.$ac_objext` in
5653 LD="${LD-ld} -melf32bsmip"
5656 LD="${LD-ld} -melf32bmipn32"
5659 LD="${LD-ld} -melf64bmip"
5663 case `/usr/bin/file conftest.$ac_objext` in
5679 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
5680 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5681 # Find out which ABI we are using.
5682 echo 'int i;' > conftest.$ac_ext
5683 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5684 (eval $ac_compile) 2>&5
5686 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5687 test $ac_status = 0; }; then
5688 case `/usr/bin/file conftest.o` in
5691 x86_64-*kfreebsd*-gnu)
5692 LD="${LD-ld} -m elf_i386_fbsd
"
5695 case `/usr/bin/file conftest.o` in
5697 LD="${LD-ld} -m elf32_x86_64
"
5700 LD="${LD-ld} -m elf_i386
"
5704 powerpc64le-*linux*)
5705 LD="${LD-ld} -m elf32lppclinux
"
5708 LD="${LD-ld} -m elf32ppclinux
"
5711 LD="${LD-ld} -m elf_s390
"
5714 LD="${LD-ld} -m elf32_sparc
"
5720 x86_64-*kfreebsd*-gnu)
5721 LD="${LD-ld} -m elf_x86_64_fbsd
"
5724 LD="${LD-ld} -m elf_x86_64
"
5727 LD="${LD-ld} -m elf64lppc
"
5730 LD="${LD-ld} -m elf64ppc
"
5732 s390*-*linux*|s390*-*tpf*)
5733 LD="${LD-ld} -m elf64_s390
"
5736 LD="${LD-ld} -m elf64_sparc
"
5746 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5747 SAVE_CFLAGS="$CFLAGS"
5748 CFLAGS="$CFLAGS -belf"
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
5750 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
5751 if ${lt_cv_cc_needs_belf+:} false; then :
5752 $as_echo_n "(cached
) " >&6
5755 ac_cpp='$CPP $CPPFLAGS'
5756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5771 if ac_fn_c_try_link "$LINENO"; then :
5772 lt_cv_cc_needs_belf=yes
5774 lt_cv_cc_needs_belf=no
5776 rm -f core conftest.err conftest.$ac_objext \
5777 conftest$ac_exeext conftest.$ac_ext
5779 ac_cpp='$CPP $CPPFLAGS'
5780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
5786 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5787 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5788 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5789 CFLAGS="$SAVE_CFLAGS"
5793 # Find out which ABI we are using.
5794 echo 'int i;' > conftest.$ac_ext
5795 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5796 (eval $ac_compile) 2>&5
5798 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5799 test $ac_status = 0; }; then
5800 case `/usr/bin/file conftest.o` in
5802 case $lt_cv_prog_gnu_ld in
5803 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
5805 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5817 need_locks="$enable_libtool_lock"
5821 rhapsody* | darwin*)
5822 if test -n "$ac_tool_prefix"; then
5823 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
5824 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5826 $as_echo_n "checking
for $ac_word...
" >&6; }
5827 if ${ac_cv_prog_DSYMUTIL+:} false; then :
5828 $as_echo_n "(cached
) " >&6
5830 if test -n "$DSYMUTIL"; then
5831 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 test -z "$as_dir" && as_dir=.
5838 for ac_exec_ext in '' $ac_executable_extensions; do
5839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5840 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
5841 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5850 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5851 if test -n "$DSYMUTIL"; then
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
5853 $as_echo "$DSYMUTIL" >&6; }
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5856 $as_echo "no
" >&6; }
5861 if test -z "$ac_cv_prog_DSYMUTIL"; then
5862 ac_ct_DSYMUTIL=$DSYMUTIL
5863 # Extract the first word of "dsymutil
", so it can be a program name with args.
5864 set dummy dsymutil; ac_word=$2
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5866 $as_echo_n "checking
for $ac_word...
" >&6; }
5867 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5868 $as_echo_n "(cached
) " >&6
5870 if test -n "$ac_ct_DSYMUTIL"; then
5871 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 test -z "$as_dir" && as_dir=.
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5880 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
5881 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5890 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5891 if test -n "$ac_ct_DSYMUTIL"; then
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
5893 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5896 $as_echo "no
" >&6; }
5899 if test "x
$ac_ct_DSYMUTIL" = x; then
5902 case $cross_compiling:$ac_tool_warned in
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5905 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5906 ac_tool_warned=yes ;;
5908 DSYMUTIL=$ac_ct_DSYMUTIL
5911 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5914 if test -n "$ac_tool_prefix"; then
5915 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
5916 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5918 $as_echo_n "checking
for $ac_word...
" >&6; }
5919 if ${ac_cv_prog_NMEDIT+:} false; then :
5920 $as_echo_n "(cached
) " >&6
5922 if test -n "$NMEDIT"; then
5923 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5932 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
5933 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5942 NMEDIT=$ac_cv_prog_NMEDIT
5943 if test -n "$NMEDIT"; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
5945 $as_echo "$NMEDIT" >&6; }
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5948 $as_echo "no
" >&6; }
5953 if test -z "$ac_cv_prog_NMEDIT"; then
5954 ac_ct_NMEDIT=$NMEDIT
5955 # Extract the first word of "nmedit
", so it can be a program name with args.
5956 set dummy nmedit; ac_word=$2
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5958 $as_echo_n "checking
for $ac_word...
" >&6; }
5959 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5960 $as_echo_n "(cached
) " >&6
5962 if test -n "$ac_ct_NMEDIT"; then
5963 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 test -z "$as_dir" && as_dir=.
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5972 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
5973 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5982 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5983 if test -n "$ac_ct_NMEDIT"; then
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
5985 $as_echo "$ac_ct_NMEDIT" >&6; }
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5988 $as_echo "no
" >&6; }
5991 if test "x
$ac_ct_NMEDIT" = x; then
5994 case $cross_compiling:$ac_tool_warned in
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5997 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5998 ac_tool_warned=yes ;;
6000 NMEDIT=$ac_ct_NMEDIT
6003 NMEDIT="$ac_cv_prog_NMEDIT"
6006 if test -n "$ac_tool_prefix"; then
6007 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
6008 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6010 $as_echo_n "checking
for $ac_word...
" >&6; }
6011 if ${ac_cv_prog_LIPO+:} false; then :
6012 $as_echo_n "(cached
) " >&6
6014 if test -n "$LIPO"; then
6015 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021 test -z "$as_dir" && as_dir=.
6022 for ac_exec_ext in '' $ac_executable_extensions; do
6023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6024 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
6025 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6034 LIPO=$ac_cv_prog_LIPO
6035 if test -n "$LIPO"; then
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
6037 $as_echo "$LIPO" >&6; }
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6040 $as_echo "no
" >&6; }
6045 if test -z "$ac_cv_prog_LIPO"; then
6047 # Extract the first word of "lipo
", so it can be a program name with args.
6048 set dummy lipo; ac_word=$2
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6050 $as_echo_n "checking
for $ac_word...
" >&6; }
6051 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6052 $as_echo_n "(cached
) " >&6
6054 if test -n "$ac_ct_LIPO"; then
6055 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 test -z "$as_dir" && as_dir=.
6062 for ac_exec_ext in '' $ac_executable_extensions; do
6063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6064 ac_cv_prog_ac_ct_LIPO="lipo
"
6065 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6074 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6075 if test -n "$ac_ct_LIPO"; then
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
6077 $as_echo "$ac_ct_LIPO" >&6; }
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6080 $as_echo "no
" >&6; }
6083 if test "x
$ac_ct_LIPO" = x; then
6086 case $cross_compiling:$ac_tool_warned in
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6089 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6090 ac_tool_warned=yes ;;
6095 LIPO="$ac_cv_prog_LIPO"
6098 if test -n "$ac_tool_prefix"; then
6099 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
6100 set dummy ${ac_tool_prefix}otool; ac_word=$2
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6102 $as_echo_n "checking
for $ac_word...
" >&6; }
6103 if ${ac_cv_prog_OTOOL+:} false; then :
6104 $as_echo_n "(cached
) " >&6
6106 if test -n "$OTOOL"; then
6107 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 test -z "$as_dir" && as_dir=.
6114 for ac_exec_ext in '' $ac_executable_extensions; do
6115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6116 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
6117 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6126 OTOOL=$ac_cv_prog_OTOOL
6127 if test -n "$OTOOL"; then
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
6129 $as_echo "$OTOOL" >&6; }
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6132 $as_echo "no
" >&6; }
6137 if test -z "$ac_cv_prog_OTOOL"; then
6139 # Extract the first word of "otool
", so it can be a program name with args.
6140 set dummy otool; ac_word=$2
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6142 $as_echo_n "checking
for $ac_word...
" >&6; }
6143 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6144 $as_echo_n "(cached
) " >&6
6146 if test -n "$ac_ct_OTOOL"; then
6147 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 test -z "$as_dir" && as_dir=.
6154 for ac_exec_ext in '' $ac_executable_extensions; do
6155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6156 ac_cv_prog_ac_ct_OTOOL="otool
"
6157 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6166 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6167 if test -n "$ac_ct_OTOOL"; then
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
6169 $as_echo "$ac_ct_OTOOL" >&6; }
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6172 $as_echo "no
" >&6; }
6175 if test "x
$ac_ct_OTOOL" = x; then
6178 case $cross_compiling:$ac_tool_warned in
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6181 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6182 ac_tool_warned=yes ;;
6187 OTOOL="$ac_cv_prog_OTOOL"
6190 if test -n "$ac_tool_prefix"; then
6191 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
6192 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6194 $as_echo_n "checking
for $ac_word...
" >&6; }
6195 if ${ac_cv_prog_OTOOL64+:} false; then :
6196 $as_echo_n "(cached
) " >&6
6198 if test -n "$OTOOL64"; then
6199 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 test -z "$as_dir" && as_dir=.
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6208 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
6209 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6218 OTOOL64=$ac_cv_prog_OTOOL64
6219 if test -n "$OTOOL64"; then
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
6221 $as_echo "$OTOOL64" >&6; }
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6224 $as_echo "no
" >&6; }
6229 if test -z "$ac_cv_prog_OTOOL64"; then
6230 ac_ct_OTOOL64=$OTOOL64
6231 # Extract the first word of "otool64
", so it can be a program name with args.
6232 set dummy otool64; ac_word=$2
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6234 $as_echo_n "checking
for $ac_word...
" >&6; }
6235 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6236 $as_echo_n "(cached
) " >&6
6238 if test -n "$ac_ct_OTOOL64"; then
6239 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 test -z "$as_dir" && as_dir=.
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6248 ac_cv_prog_ac_ct_OTOOL64="otool64
"
6249 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6258 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6259 if test -n "$ac_ct_OTOOL64"; then
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
6261 $as_echo "$ac_ct_OTOOL64" >&6; }
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6264 $as_echo "no
" >&6; }
6267 if test "x
$ac_ct_OTOOL64" = x; then
6270 case $cross_compiling:$ac_tool_warned in
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6273 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6274 ac_tool_warned=yes ;;
6276 OTOOL64=$ac_ct_OTOOL64
6279 OTOOL64="$ac_cv_prog_OTOOL64"
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
6309 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
6310 if ${lt_cv_apple_cc_single_mod+:} false; then :
6311 $as_echo_n "(cached
) " >&6
6313 lt_cv_apple_cc_single_mod=no
6314 if test -z "${LT_MULTI_MODULE}"; then
6315 # By default we will add the -single_module flag. You can override
6316 # by either setting the environment variable LT_MULTI_MODULE
6317 # non-empty at configure time, or by adding -multi_module to the
6319 rm -rf libconftest.dylib*
6320 echo "int foo
(void
){return 1;}" > conftest.c
6321 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6322 -dynamiclib -Wl,-single_module conftest.c
" >&5
6323 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6324 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6326 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6327 lt_cv_apple_cc_single_mod=yes
6329 cat conftest.err >&5
6331 rm -rf libconftest.dylib*
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
6336 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
6338 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
6339 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6340 $as_echo_n "(cached
) " >&6
6342 lt_cv_ld_exported_symbols_list=no
6343 save_LDFLAGS=$LDFLAGS
6344 echo "_main
" > conftest.sym
6345 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
6346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h. */
6357 if ac_fn_c_try_link "$LINENO"; then :
6358 lt_cv_ld_exported_symbols_list=yes
6360 lt_cv_ld_exported_symbols_list=no
6362 rm -f core conftest.err conftest.$ac_objext \
6363 conftest$ac_exeext conftest.$ac_ext
6364 LDFLAGS="$save_LDFLAGS"
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
6368 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
6370 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
6371 if ${lt_cv_ld_force_load+:} false; then :
6372 $as_echo_n "(cached
) " >&6
6374 lt_cv_ld_force_load=no
6375 cat > conftest.c << _LT_EOF
6376 int forced_loaded() { return 2;}
6378 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
6379 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6380 echo "$AR cru libconftest.a conftest.o
" >&5
6381 $AR cru libconftest.a conftest.o 2>&5
6382 cat > conftest.c << _LT_EOF
6383 int main() { return 0;}
6385 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
6386 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6388 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6389 lt_cv_ld_force_load=yes
6391 cat conftest.err >&5
6393 rm -f conftest.err libconftest.a conftest conftest.c
6394 rm -rf conftest.dSYM
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
6398 $as_echo "$lt_cv_ld_force_load" >&6; }
6400 rhapsody* | darwin1.[012])
6401 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6403 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6404 darwin*) # darwin 5.x on
6405 # if running on 10.5 or later, the deployment target defaults
6406 # to the OS version, if on x86, and 10.4, the deployment
6407 # target defaults to 10.4. Don't you love it?
6408 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6409 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6410 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6412 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6414 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6418 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6419 _lt_dar_single_mod='$single_module'
6421 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6422 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6424 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6426 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
6427 _lt_dsymutil='~$DSYMUTIL $lib || :'
6434 for ac_header in dlfcn.h
6436 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
" "$ac_includes_default
6438 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
6439 cat >>confdefs.h <<_ACEOF
6440 #define HAVE_DLFCN_H 1
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian
" >&5
6452 $as_echo_n "checking whether byte ordering is bigendian...
" >&6; }
6453 if ${ac_cv_c_bigendian+:} false; then :
6454 $as_echo_n "(cached
) " >&6
6456 ac_cv_c_bigendian=unknown
6457 # See if we're dealing with a universal compiler.
6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6460 #ifndef __APPLE_CC__
6461 not a universal capable compiler
6466 if ac_fn_c_try_compile "$LINENO"; then :
6468 # Check for potential -arch flags. It is not universal unless
6469 # there are at least two -arch flags with different values.
6472 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6473 if test -n "$ac_prev"; then
6475 i?86 | x86_64 | ppc | ppc64)
6476 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6479 ac_cv_c_bigendian=universal
6485 elif test "x
$ac_word" = "x-arch
"; then
6490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6491 if test $ac_cv_c_bigendian = unknown; then
6492 # See if sys/param.h defines the BYTE_ORDER macro.
6493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6494 /* end confdefs.h. */
6495 #include <sys/types.h>
6496 #include <sys/param.h>
6501 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6502 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6511 if ac_fn_c_try_compile "$LINENO"; then :
6512 # It does; now see whether it defined to BIG_ENDIAN or not.
6513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514 /* end confdefs.h. */
6515 #include <sys/types.h>
6516 #include <sys/param.h>
6521 #if BYTE_ORDER != BIG_ENDIAN
6529 if ac_fn_c_try_compile "$LINENO"; then :
6530 ac_cv_c_bigendian=yes
6532 ac_cv_c_bigendian=no
6534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6538 if test $ac_cv_c_bigendian = unknown; then
6539 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6541 /* end confdefs.h. */
6547 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6555 if ac_fn_c_try_compile "$LINENO"; then :
6556 # It does; now see whether it defined to _BIG_ENDIAN or not.
6557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558 /* end confdefs.h. */
6572 if ac_fn_c_try_compile "$LINENO"; then :
6573 ac_cv_c_bigendian=yes
6575 ac_cv_c_bigendian=no
6577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6581 if test $ac_cv_c_bigendian = unknown; then
6582 # Compile a test program.
6583 if test "$cross_compiling" = yes; then :
6584 # Try to guess by grepping values from an object file.
6585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586 /* end confdefs.h. */
6587 short int ascii_mm[] =
6588 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6589 short int ascii_ii[] =
6590 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6591 int use_ascii (int i) {
6592 return ascii_mm[i] + ascii_ii[i];
6594 short int ebcdic_ii[] =
6595 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6596 short int ebcdic_mm[] =
6597 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6598 int use_ebcdic (int i) {
6599 return ebcdic_mm[i] + ebcdic_ii[i];
6606 return use_ascii (foo) == use_ebcdic (foo);
6611 if ac_fn_c_try_compile "$LINENO"; then :
6612 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6613 ac_cv_c_bigendian=yes
6615 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6616 if test "$ac_cv_c_bigendian" = unknown; then
6617 ac_cv_c_bigendian=no
6619 # finding both strings is unlikely to happen, but who knows?
6620 ac_cv_c_bigendian=unknown
6624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6627 /* end confdefs.h. */
6628 $ac_includes_default
6633 /* Are we little or big endian? From Harbison&Steele. */
6637 char c[sizeof (long int)];
6640 return u.c[sizeof (long int) - 1] == 1;
6646 if ac_fn_c_try_run "$LINENO"; then :
6647 ac_cv_c_bigendian=no
6649 ac_cv_c_bigendian=yes
6651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6652 conftest.$ac_objext conftest.beam conftest.$ac_ext
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_bigendian" >&5
6658 $as_echo "$ac_cv_c_bigendian" >&6; }
6659 case $ac_cv_c_bigendian in #(
6661 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6667 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6671 as_fn_error $?
"unknown endianness
6672 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6678 if test "x$cross_compiling" = "xno"; then
6679 : "${AR_FOR_BUILD:=\$(AR)}"
6680 : "${CC_FOR_BUILD:=\$(CC)}"
6681 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
6682 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
6683 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
6685 : "${AR_FOR_BUILD:=ar}"
6686 : "${CC_FOR_BUILD:=gcc}"
6687 : "${RANLIB_FOR_BUILD:=ranlib}"
6688 : "${CFLAGS_FOR_BUILD:=-g -O}"
6689 : "${LDLFAGS_FOR_BUILD:=}"
6698 if test -n "$ac_tool_prefix"; then
6699 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6700 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6702 $as_echo_n "checking for $ac_word... " >&6; }
6703 if ${ac_cv_prog_AR+:} false
; then :
6704 $as_echo_n "(cached) " >&6
6706 if test -n "$AR"; then
6707 ac_cv_prog_AR
="$AR" # Let the user override the test.
6709 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6713 test -z "$as_dir" && as_dir
=.
6714 for ac_exec_ext
in '' $ac_executable_extensions; do
6715 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6716 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 if test -n "$AR"; then
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6729 $as_echo "$AR" >&6; }
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732 $as_echo "no" >&6; }
6737 if test -z "$ac_cv_prog_AR"; then
6739 # Extract the first word of "ar", so it can be a program name with args.
6740 set dummy
ar; ac_word
=$2
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742 $as_echo_n "checking for $ac_word... " >&6; }
6743 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
6744 $as_echo_n "(cached) " >&6
6746 if test -n "$ac_ct_AR"; then
6747 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6753 test -z "$as_dir" && as_dir
=.
6754 for ac_exec_ext
in '' $ac_executable_extensions; do
6755 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6756 ac_cv_prog_ac_ct_AR
="ar"
6757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6766 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6767 if test -n "$ac_ct_AR"; then
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6769 $as_echo "$ac_ct_AR" >&6; }
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772 $as_echo "no" >&6; }
6775 if test "x$ac_ct_AR" = x
; then
6778 case $cross_compiling:$ac_tool_warned in
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6782 ac_tool_warned
=yes ;;
6790 if test -n "$ac_tool_prefix"; then
6791 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6792 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794 $as_echo_n "checking for $ac_word... " >&6; }
6795 if ${ac_cv_prog_RANLIB+:} false
; then :
6796 $as_echo_n "(cached) " >&6
6798 if test -n "$RANLIB"; then
6799 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6801 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6805 test -z "$as_dir" && as_dir
=.
6806 for ac_exec_ext
in '' $ac_executable_extensions; do
6807 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6808 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6818 RANLIB
=$ac_cv_prog_RANLIB
6819 if test -n "$RANLIB"; then
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6821 $as_echo "$RANLIB" >&6; }
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824 $as_echo "no" >&6; }
6829 if test -z "$ac_cv_prog_RANLIB"; then
6830 ac_ct_RANLIB
=$RANLIB
6831 # Extract the first word of "ranlib", so it can be a program name with args.
6832 set dummy ranlib
; ac_word
=$2
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834 $as_echo_n "checking for $ac_word... " >&6; }
6835 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6836 $as_echo_n "(cached) " >&6
6838 if test -n "$ac_ct_RANLIB"; then
6839 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6841 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6845 test -z "$as_dir" && as_dir
=.
6846 for ac_exec_ext
in '' $ac_executable_extensions; do
6847 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6848 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6858 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6859 if test -n "$ac_ct_RANLIB"; then
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6861 $as_echo "$ac_ct_RANLIB" >&6; }
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864 $as_echo "no" >&6; }
6867 if test "x$ac_ct_RANLIB" = x
; then
6870 case $cross_compiling:$ac_tool_warned in
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6874 ac_tool_warned
=yes ;;
6876 RANLIB
=$ac_ct_RANLIB
6879 RANLIB
="$ac_cv_prog_RANLIB"
6883 # Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
6884 # AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
6885 # is C99. So handle it ourselves.
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
6889 $as_echo_n "checking whether C11 is supported by default... " >&6; }
6890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6891 /* end confdefs.h. */
6893 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
6894 # error "C11 support not found"
6898 if ac_fn_c_try_compile
"$LINENO"; then :
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6900 $as_echo "yes" >&6; }
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 $as_echo "no" >&6; }
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
6906 $as_echo_n "checking for -std=c11 support... " >&6; }
6909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6910 /* end confdefs.h. */
6912 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
6913 # error "C11 support not found"
6917 if ac_fn_c_try_compile
"$LINENO"; then :
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6920 $as_echo "yes" >&6; }
6922 C_DIALECT
="-std=c11"
6925 as_fn_error $?
"C11 is required" "$LINENO" 5
6927 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6929 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6932 ac_config_headers
="$ac_config_headers config.h:config.in"
6935 # Some of the common include files depend on bfd.h, and bfd.h checks
6936 # that config.h is included first by testing that the PACKAGE macro
6940 cat >>confdefs.h
<<_ACEOF
6941 #define PACKAGE "$PACKAGE"
6946 # Dependency checking.
6947 ac_config_commands
="$ac_config_commands depdir"
6950 depcc
="$CC" am_compiler_list
=
6952 am_depcomp
=$ac_aux_dir/depcomp
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6954 $as_echo_n "checking dependency style of $depcc... " >&6; }
6955 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
6956 $as_echo_n "(cached) " >&6
6958 if test -f "$am_depcomp"; then
6959 # We make a subdir and do the tests there. Otherwise we can end up
6960 # making bogus files that we don't know about and never remove. For
6961 # instance it was reported that on HP-UX the gcc test will end up
6962 # making a dummy file named `D' -- because `-MD' means `put the output
6965 # Copy depcomp to subdir because otherwise we won't find it if we're
6966 # using a relative directory.
6967 cp "$am_depcomp" conftest.dir
6969 # We will build objects and dependencies in a subdirectory because
6970 # it helps to detect inapplicable dependency modes. For instance
6971 # both Tru64's cc and ICC support -MD to output dependencies as a
6972 # side effect of compilation, but ICC will put the dependencies in
6973 # the current directory while Tru64 will put them in the object
6977 am_cv_CC_dependencies_compiler_type
=none
6978 if test "$am_compiler_list" = ""; then
6979 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6981 for depmode
in $am_compiler_list; do
6982 if test $depmode = none
; then break; fi
6984 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6985 # Setup a source with many dependencies, because some compilers
6986 # like to wrap large dependency lists on column 80 (with \), and
6987 # we should not choose a depcomp mode which is confused by this.
6989 # We need to recreate these files for each test, as the compiler may
6990 # overwrite some of them when testing with obscure command lines.
6991 # This happens at least with the AIX C compiler.
6993 for i
in 1 2 3 4 5 6; do
6994 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6995 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6996 # Solaris 8's {/usr,}/bin/sh.
6997 touch sub
/conftst
$i.h
6999 echo "include sub/conftest.Po" > confmf
7001 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7002 # mode. It turns out that the SunPro C++ compiler does not properly
7003 # handle `-M -o', and we need to detect this.
7004 depcmd
="depmode=$depmode \
7005 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7006 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7007 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
7008 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
7009 if env
$depcmd > conftest.err
2>&1 &&
7010 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
7011 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
7012 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
7013 # icc doesn't choke on unknown options, it will just issue warnings
7014 # or remarks (even with -Werror). So we grep stderr for any message
7015 # that says an option was ignored or not supported.
7016 # When given -MP, icc 7.0 and 7.1 complain thusly:
7017 # icc: Command line warning: ignoring option '-M'; no argument required
7018 # The diagnosis changed in icc 8.0:
7019 # icc: Command line remark: option '-MP' not supported
7020 if (grep 'ignoring option' conftest.err ||
7021 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
7022 am_cv_CC_dependencies_compiler_type
=$depmode
7023 $as_echo "$as_me:$LINENO: success" >&5
7027 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
7028 sed -e 's/^/| /' < conftest.err
>&5
7034 am_cv_CC_dependencies_compiler_type
=none
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7039 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7040 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
7041 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
7042 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
7048 # If we haven't got the data from the intl directory,
7049 # assume NLS is disabled.
7058 if test -f ..
/..
/intl
/config.intl
; then
7059 . ..
/..
/intl
/config.intl
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7062 $as_echo_n "checking whether NLS is requested... " >&6; }
7063 if test x
"$USE_NLS" != xyes
; then
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065 $as_echo "no" >&6; }
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7068 $as_echo "yes" >&6; }
7070 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
7074 $as_echo_n "checking for catalogs to be installed... " >&6; }
7075 # Look for .po and .gmo files in the source directory.
7078 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
7079 # If there aren't any .gmo files the shell will give us the
7080 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7082 case "$cat" in *\
**)
7085 # The quadruple backslash is collapsed to a double backslash
7086 # by the backticks, then collapsed again by the double quotes,
7087 # leaving us with one backslash in the sed expression (right
7088 # before the dot that mustn't act as a wildcard).
7089 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
7090 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
7091 # The user is allowed to set LINGUAS to a list of languages to
7092 # install catalogs for. If it's empty that means "all of them."
7093 if test "x$LINGUAS" = x
; then
7094 CATALOGS
="$CATALOGS $cat"
7095 XLINGUAS
="$XLINGUAS $lang"
7097 case "$LINGUAS" in *$lang*)
7098 CATALOGS
="$CATALOGS $cat"
7099 XLINGUAS
="$XLINGUAS $lang"
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
7106 $as_echo "$LINGUAS" >&6; }
7119 # Check for socket libraries
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
7121 $as_echo_n "checking for bind in -lsocket... " >&6; }
7122 if ${ac_cv_lib_socket_bind+:} false
; then :
7123 $as_echo_n "(cached) " >&6
7125 ac_check_lib_save_LIBS
=$LIBS
7126 LIBS
="-lsocket $LIBS"
7127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7128 /* end confdefs.h. */
7130 /* Override any GCC internal prototype to avoid an error.
7131 Use char because int might match the return type of a GCC
7132 builtin and then its argument prototype would still apply. */
7145 if ac_fn_c_try_link
"$LINENO"; then :
7146 ac_cv_lib_socket_bind
=yes
7148 ac_cv_lib_socket_bind
=no
7150 rm -f core conftest.err conftest.
$ac_objext \
7151 conftest
$ac_exeext conftest.
$ac_ext
7152 LIBS
=$ac_check_lib_save_LIBS
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
7155 $as_echo "$ac_cv_lib_socket_bind" >&6; }
7156 if test "x$ac_cv_lib_socket_bind" = xyes
; then :
7157 cat >>confdefs.h
<<_ACEOF
7158 #define HAVE_LIBSOCKET 1
7161 LIBS
="-lsocket $LIBS"
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7166 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7167 if ${ac_cv_lib_nsl_gethostbyname+:} false
; then :
7168 $as_echo_n "(cached) " >&6
7170 ac_check_lib_save_LIBS
=$LIBS
7172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7173 /* end confdefs.h. */
7175 /* Override any GCC internal prototype to avoid an error.
7176 Use char because int might match the return type of a GCC
7177 builtin and then its argument prototype would still apply. */
7181 char gethostbyname ();
7185 return gethostbyname ();
7190 if ac_fn_c_try_link
"$LINENO"; then :
7191 ac_cv_lib_nsl_gethostbyname
=yes
7193 ac_cv_lib_nsl_gethostbyname
=no
7195 rm -f core conftest.err conftest.
$ac_objext \
7196 conftest
$ac_exeext conftest.
$ac_ext
7197 LIBS
=$ac_check_lib_save_LIBS
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7200 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7201 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
; then :
7202 cat >>confdefs.h
<<_ACEOF
7203 #define HAVE_LIBNSL 1
7211 # BFD conditionally uses zlib, so we must link it in if libbfd does, by
7212 # using the same condition.
7214 # Use the system's zlib library.
7215 zlibdir
="-L\$(top_builddir)/../zlib"
7216 zlibinc
="-I\$(top_srcdir)/../zlib"
7218 # Check whether --with-system-zlib was given.
7219 if test "${with_system_zlib+set}" = set; then :
7220 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
7231 # BFD uses libdl when when plugins enabled.
7234 for ac_header
in dlfcn.h
7236 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7238 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
7239 cat >>confdefs.h
<<_ACEOF
7240 #define HAVE_DLFCN_H 1
7247 for ac_header
in windows.h
7249 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
7251 if test "x$ac_cv_header_windows_h" = xyes
; then :
7252 cat >>confdefs.h
<<_ACEOF
7253 #define HAVE_WINDOWS_H 1
7261 # Check whether --enable-plugins was given.
7262 if test "${enable_plugins+set}" = set; then :
7263 enableval
=$enable_plugins; case "${enableval}" in
7266 if test "$maybe_plugins" != "yes" ; then
7267 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
7271 plugins
=$maybe_plugins
7275 if test "$plugins" = "yes"; then
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
7277 $as_echo_n "checking for library containing dlsym... " >&6; }
7278 if ${ac_cv_search_dlsym+:} false
; then :
7279 $as_echo_n "(cached) " >&6
7281 ac_func_search_save_LIBS
=$LIBS
7282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7283 /* end confdefs.h. */
7285 /* Override any GCC internal prototype to avoid an error.
7286 Use char because int might match the return type of a GCC
7287 builtin and then its argument prototype would still apply. */
7300 for ac_lib
in '' dl
; do
7301 if test -z "$ac_lib"; then
7302 ac_res
="none required"
7305 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7307 if ac_fn_c_try_link
"$LINENO"; then :
7308 ac_cv_search_dlsym
=$ac_res
7310 rm -f core conftest.err conftest.
$ac_objext \
7312 if ${ac_cv_search_dlsym+:} false
; then :
7316 if ${ac_cv_search_dlsym+:} false
; then :
7319 ac_cv_search_dlsym
=no
7322 LIBS
=$ac_func_search_save_LIBS
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
7325 $as_echo "$ac_cv_search_dlsym" >&6; }
7326 ac_res
=$ac_cv_search_dlsym
7327 if test "$ac_res" != no
; then :
7328 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7334 if test "$plugins" = yes; then
7355 # Check whether --enable-shared was given.
7356 if test "${enable_shared+set}" = set; then :
7357 enableval
=$enable_shared; p
=${PACKAGE-default}
7359 yes) enable_shared
=yes ;;
7360 no
) enable_shared
=no
;;
7363 # Look at the argument we got. We use all the common list separators.
7364 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7365 for pkg
in $enableval; do
7367 if test "X$pkg" = "X$p"; then
7386 # Check whether --enable-static was given.
7387 if test "${enable_static+set}" = set; then :
7388 enableval
=$enable_static; p
=${PACKAGE-default}
7390 yes) enable_static
=yes ;;
7391 no
) enable_static
=no
;;
7394 # Look at the argument we got. We use all the common list separators.
7395 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7396 for pkg
in $enableval; do
7398 if test "X$pkg" = "X$p"; then
7418 # Check whether --with-pic was given.
7419 if test "${with_pic+set}" = set; then :
7420 withval
=$with_pic; pic_mode
="$withval"
7426 test -z "$pic_mode" && pic_mode
=default
7434 # Check whether --enable-fast-install was given.
7435 if test "${enable_fast_install+set}" = set; then :
7436 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7438 yes) enable_fast_install
=yes ;;
7439 no
) enable_fast_install
=no
;;
7441 enable_fast_install
=no
7442 # Look at the argument we got. We use all the common list separators.
7443 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7444 for pkg
in $enableval; do
7446 if test "X$pkg" = "X$p"; then
7447 enable_fast_install
=yes
7454 enable_fast_install
=yes
7467 # This can be used to rebuild libtool when needed
7468 LIBTOOL_DEPS
="$ltmain"
7470 # Always use our own libtool.
7471 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
7498 test -z "$LN_S" && LN_S
="ln -s"
7513 if test -n "${ZSH_VERSION+set}" ; then
7514 setopt NO_GLOB_SUBST
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7518 $as_echo_n "checking for objdir... " >&6; }
7519 if ${lt_cv_objdir+:} false
; then :
7520 $as_echo_n "(cached) " >&6
7522 rm -f .libs
2>/dev
/null
7523 mkdir .libs
2>/dev
/null
7524 if test -d .libs
; then
7527 # MS-DOS does not allow filenames that begin with a dot.
7530 rmdir .libs
2>/dev
/null
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7533 $as_echo "$lt_cv_objdir" >&6; }
7534 objdir
=$lt_cv_objdir
7540 cat >>confdefs.h
<<_ACEOF
7541 #define LT_OBJDIR "$lt_cv_objdir/"
7549 # AIX sometimes has problems with the GCC collect2 program. For some
7550 # reason, if we set the COLLECT_NAMES environment variable, the problems
7551 # vanish in a puff of smoke.
7552 if test "X${COLLECT_NAMES+set}" != Xset
; then
7554 export COLLECT_NAMES
7561 can_build_shared
=yes
7563 # All known linkers require a `.a' archive for static linking (except MSVC,
7564 # which needs '.lib').
7567 with_gnu_ld
="$lt_cv_prog_gnu_ld"
7570 old_CFLAGS
="$CFLAGS"
7572 # Set sane defaults for various variables
7573 test -z "$CC" && CC
=cc
7574 test -z "$LTCC" && LTCC
=$CC
7575 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7576 test -z "$LD" && LD
=ld
7577 test -z "$ac_objext" && ac_objext
=o
7579 for cc_temp
in $compiler""; do
7581 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7582 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7587 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7590 # Only perform the check for file, if the check method requires it
7591 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7592 case $deplibs_check_method in
7594 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7596 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7597 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
7598 $as_echo_n "(cached) " >&6
7602 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7605 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7606 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7607 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7608 for ac_dir
in $ac_dummy; do
7610 test -z "$ac_dir" && ac_dir
=.
7611 if test -f $ac_dir/${ac_tool_prefix}file; then
7612 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7613 if test -n "$file_magic_test_file"; then
7614 case $deplibs_check_method in
7616 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7617 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7618 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7619 $EGREP "$file_magic_regex" > /dev
/null
; then
7624 *** Warning: the command libtool uses to detect shared libraries,
7625 *** $file_magic_cmd, produces output that libtool cannot recognize.
7626 *** The result is that libtool may fail to recognize shared libraries
7627 *** as such. This will affect the creation of libtool libraries that
7628 *** depend on shared libraries, but programs linked with such libtool
7629 *** libraries will work regardless of this problem. Nevertheless, you
7630 *** may want to report the problem to your system manager and/or to
7631 *** bug-libtool@gnu.org
7641 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7646 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7647 if test -n "$MAGIC_CMD"; then
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7649 $as_echo "$MAGIC_CMD" >&6; }
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7652 $as_echo "no" >&6; }
7659 if test -z "$lt_cv_path_MAGIC_CMD"; then
7660 if test -n "$ac_tool_prefix"; then
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7662 $as_echo_n "checking for file... " >&6; }
7663 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
7664 $as_echo_n "(cached) " >&6
7668 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7671 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7672 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7673 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7674 for ac_dir
in $ac_dummy; do
7676 test -z "$ac_dir" && ac_dir
=.
7677 if test -f $ac_dir/file; then
7678 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7679 if test -n "$file_magic_test_file"; then
7680 case $deplibs_check_method in
7682 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7683 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7684 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7685 $EGREP "$file_magic_regex" > /dev
/null
; then
7690 *** Warning: the command libtool uses to detect shared libraries,
7691 *** $file_magic_cmd, produces output that libtool cannot recognize.
7692 *** The result is that libtool may fail to recognize shared libraries
7693 *** as such. This will affect the creation of libtool libraries that
7694 *** depend on shared libraries, but programs linked with such libtool
7695 *** libraries will work regardless of this problem. Nevertheless, you
7696 *** may want to report the problem to your system manager and/or to
7697 *** bug-libtool@gnu.org
7707 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7712 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7713 if test -n "$MAGIC_CMD"; then
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7715 $as_echo "$MAGIC_CMD" >&6; }
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7718 $as_echo "no" >&6; }
7731 # Use C for the default configuration in the libtool script
7735 ac_cpp
='$CPP $CPPFLAGS'
7736 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7737 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7738 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7741 # Source file extension for C test sources.
7744 # Object file extension for compiled C test sources.
7748 # Code to be used in simple compile tests
7749 lt_simple_compile_test_code
="int some_variable = 0;"
7751 # Code to be used in simple link tests
7752 lt_simple_link_test_code
='int main(){return(0);}'
7760 # If no C compiler was specified, use CC.
7763 # If no C compiler flags were specified, use CFLAGS.
7764 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7766 # Allow CC to be a program name with arguments.
7769 # Save the default compiler, since it gets overwritten when the other
7770 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7771 compiler_DEFAULT
=$CC
7773 # save warnings/boilerplate of simple test code
7774 ac_outfile
=conftest.
$ac_objext
7775 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
7776 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7777 _lt_compiler_boilerplate
=`cat conftest.err`
7780 ac_outfile
=conftest.
$ac_objext
7781 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
7782 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7783 _lt_linker_boilerplate
=`cat conftest.err`
7788 ## There is no encapsulation within the following macros, do not change
7789 ## the running order or otherwise move them around unless you know exactly
7790 ## what you are doing...
7791 if test -n "$compiler"; then
7793 lt_prog_compiler_no_builtin_flag
=
7795 if test "$GCC" = yes; then
7796 case $cc_basename in
7798 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
7800 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7804 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7805 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
7806 $as_echo_n "(cached) " >&6
7808 lt_cv_prog_compiler_rtti_exceptions
=no
7809 ac_outfile
=conftest.
$ac_objext
7810 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7811 lt_compiler_flag
="-fno-rtti -fno-exceptions"
7812 # Insert the option either (1) after the last *FLAGS variable, or
7813 # (2) before a word containing "conftest.", or (3) at the end.
7814 # Note that $ac_compile itself does not contain backslashes and begins
7815 # with a dollar sign (not a hyphen), so the echo should work correctly.
7816 # The option is referenced via a variable to avoid confusing sed.
7817 lt_compile
=`echo "$ac_compile" | $SED \
7818 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7819 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7820 -e 's:$: $lt_compiler_flag:'`
7821 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7822 (eval "$lt_compile" 2>conftest.err
)
7824 cat conftest.err
>&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 if (exit $ac_status) && test -s "$ac_outfile"; then
7827 # The compiler can only warn and ignore the option if not recognized
7828 # So say no if there are warnings other than the usual output.
7829 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
7830 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7831 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7832 lt_cv_prog_compiler_rtti_exceptions
=yes
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7839 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7841 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
7842 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7854 lt_prog_compiler_wl
=
7855 lt_prog_compiler_pic
=
7856 lt_prog_compiler_static
=
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7859 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7861 if test "$GCC" = yes; then
7862 lt_prog_compiler_wl
='-Wl,'
7863 lt_prog_compiler_static
='-static'
7867 # All AIX code is PIC.
7868 if test "$host_cpu" = ia64
; then
7869 # AIX 5 now supports IA64 processor
7870 lt_prog_compiler_static
='-Bstatic'
7872 lt_prog_compiler_pic
='-fPIC'
7878 # see comment about AmigaOS4 .so support
7879 lt_prog_compiler_pic
='-fPIC'
7882 # FIXME: we need at least 68020 code to build shared libraries, but
7883 # adding the `-m68020' flag to GCC prevents building anything better,
7885 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
7890 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
7891 # PIC is the default for these OSes.
7894 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
7895 # This hack is so that the source file can tell whether it is being
7896 # built for inclusion in a dll (and should export symbols for example).
7897 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7898 # (--disable-auto-import) libraries
7899 lt_prog_compiler_pic
='-DDLL_EXPORT'
7902 darwin
* | rhapsody
*)
7903 # PIC is the default on this platform
7904 # Common symbols not allowed in MH_DYLIB files
7905 lt_prog_compiler_pic
='-fno-common'
7909 # PIC is the default for Haiku.
7910 # The "-static" flag exists, but is broken.
7911 lt_prog_compiler_static
=
7915 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7916 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7917 # sets the default TLS model and affects inlining.
7923 lt_prog_compiler_pic
='-fPIC'
7929 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7930 # Instead, we relocate shared libraries at runtime.
7934 # Just because we use GCC doesn't mean we suddenly get shared libraries
7935 # on systems that don't support them.
7936 lt_prog_compiler_can_build_shared
=no
7941 # QNX uses GNU C++, but need to define -shared option too, otherwise
7943 lt_prog_compiler_pic
='-fPIC -shared'
7947 if test -d /usr
/nec
; then
7948 lt_prog_compiler_pic
=-Kconform_pic
7953 lt_prog_compiler_pic
='-fPIC'
7957 case $cc_basename in
7958 nvcc
*) # Cuda Compiler Driver 2.2
7959 lt_prog_compiler_wl
='-Xlinker '
7960 lt_prog_compiler_pic
='-Xcompiler -fPIC'
7964 # PORTME Check for flag to pass linker flags through the system compiler.
7967 lt_prog_compiler_wl
='-Wl,'
7968 if test "$host_cpu" = ia64
; then
7969 # AIX 5 now supports IA64 processor
7970 lt_prog_compiler_static
='-Bstatic'
7972 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
7976 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
7977 # This hack is so that the source file can tell whether it is being
7978 # built for inclusion in a dll (and should export symbols for example).
7979 lt_prog_compiler_pic
='-DDLL_EXPORT'
7982 hpux9
* | hpux10
* | hpux11
*)
7983 lt_prog_compiler_wl
='-Wl,'
7984 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7991 lt_prog_compiler_pic
='+Z'
7994 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7995 lt_prog_compiler_static
='${wl}-a ${wl}archive'
7998 irix5
* | irix6
* | nonstopux
*)
7999 lt_prog_compiler_wl
='-Wl,'
8000 # PIC (with -KPIC) is the default.
8001 lt_prog_compiler_static
='-non_shared'
8004 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8005 case $cc_basename in
8006 # old Intel for x86_64 which still supported -KPIC.
8008 lt_prog_compiler_wl
='-Wl,'
8009 lt_prog_compiler_pic
='-KPIC'
8010 lt_prog_compiler_static
='-static'
8012 # icc used to be incompatible with GCC.
8013 # ICC 10 doesn't accept -KPIC any more.
8015 lt_prog_compiler_wl
='-Wl,'
8016 lt_prog_compiler_pic
='-fPIC'
8017 lt_prog_compiler_static
='-static'
8019 # Lahey Fortran 8.1.
8021 lt_prog_compiler_wl
='-Wl,'
8022 lt_prog_compiler_pic
='--shared'
8023 lt_prog_compiler_static
='--static'
8025 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8026 # Portland Group compilers (*not* the Pentium gcc compiler,
8027 # which looks to be a dead project)
8028 lt_prog_compiler_wl
='-Wl,'
8029 lt_prog_compiler_pic
='-fpic'
8030 lt_prog_compiler_static
='-Bstatic'
8033 lt_prog_compiler_wl
='-Wl,'
8034 # All Alpha code is PIC.
8035 lt_prog_compiler_static
='-non_shared'
8037 xl
* | bgxl
* | bgf
* | mpixl
*)
8038 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8039 lt_prog_compiler_wl
='-Wl,'
8040 lt_prog_compiler_pic
='-qpic'
8041 lt_prog_compiler_static
='-qstaticlink'
8044 case `$CC -V 2>&1 | sed 5q` in
8045 *Sun\ F
* |
*Sun
*Fortran
*)
8046 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8047 lt_prog_compiler_pic
='-KPIC'
8048 lt_prog_compiler_static
='-Bstatic'
8049 lt_prog_compiler_wl
=''
8053 lt_prog_compiler_pic
='-KPIC'
8054 lt_prog_compiler_static
='-Bstatic'
8055 lt_prog_compiler_wl
='-Wl,'
8063 lt_prog_compiler_pic
='-KPIC'
8064 lt_prog_compiler_static
='-Bstatic'
8068 # QNX uses GNU C++, but need to define -shared option too, otherwise
8070 lt_prog_compiler_pic
='-fPIC -shared'
8073 osf3
* | osf4
* | osf5
*)
8074 lt_prog_compiler_wl
='-Wl,'
8075 # All OSF/1 code is PIC.
8076 lt_prog_compiler_static
='-non_shared'
8080 lt_prog_compiler_static
='-non_shared'
8084 lt_prog_compiler_pic
='-KPIC'
8085 lt_prog_compiler_static
='-Bstatic'
8086 case $cc_basename in
8088 lt_prog_compiler_wl
='-Qoption ld ';;
8090 lt_prog_compiler_wl
='-Wl,';;
8095 lt_prog_compiler_wl
='-Qoption ld '
8096 lt_prog_compiler_pic
='-PIC'
8097 lt_prog_compiler_static
='-Bstatic'
8100 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8101 lt_prog_compiler_wl
='-Wl,'
8102 lt_prog_compiler_pic
='-KPIC'
8103 lt_prog_compiler_static
='-Bstatic'
8107 if test -d /usr
/nec
;then
8108 lt_prog_compiler_pic
='-Kconform_pic'
8109 lt_prog_compiler_static
='-Bstatic'
8113 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8114 lt_prog_compiler_wl
='-Wl,'
8115 lt_prog_compiler_pic
='-KPIC'
8116 lt_prog_compiler_static
='-Bstatic'
8120 lt_prog_compiler_wl
='-Wl,'
8121 lt_prog_compiler_can_build_shared
=no
8125 lt_prog_compiler_pic
='-pic'
8126 lt_prog_compiler_static
='-Bstatic'
8130 lt_prog_compiler_can_build_shared
=no
8136 # For platforms which do not support PIC, -DPIC is meaningless:
8138 lt_prog_compiler_pic
=
8141 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8145 $as_echo "$lt_prog_compiler_pic" >&6; }
8153 # Check to make sure the PIC flag actually works.
8155 if test -n "$lt_prog_compiler_pic"; then
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8157 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8158 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8159 $as_echo_n "(cached) " >&6
8161 lt_cv_prog_compiler_pic_works
=no
8162 ac_outfile
=conftest.
$ac_objext
8163 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8164 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8165 # Insert the option either (1) after the last *FLAGS variable, or
8166 # (2) before a word containing "conftest.", or (3) at the end.
8167 # Note that $ac_compile itself does not contain backslashes and begins
8168 # with a dollar sign (not a hyphen), so the echo should work correctly.
8169 # The option is referenced via a variable to avoid confusing sed.
8170 lt_compile
=`echo "$ac_compile" | $SED \
8171 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8172 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8173 -e 's:$: $lt_compiler_flag:'`
8174 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8175 (eval "$lt_compile" 2>conftest.err
)
8177 cat conftest.err
>&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 if (exit $ac_status) && test -s "$ac_outfile"; then
8180 # The compiler can only warn and ignore the option if not recognized
8181 # So say no if there are warnings other than the usual output.
8182 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8183 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8184 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8185 lt_cv_prog_compiler_pic_works
=yes
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8192 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8194 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8195 case $lt_prog_compiler_pic in
8197 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8200 lt_prog_compiler_pic
=
8201 lt_prog_compiler_can_build_shared
=no
8212 # Check to make sure the static flag actually works.
8214 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8216 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8217 if ${lt_cv_prog_compiler_static_works+:} false
; then :
8218 $as_echo_n "(cached) " >&6
8220 lt_cv_prog_compiler_static_works
=no
8221 save_LDFLAGS
="$LDFLAGS"
8222 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8223 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8224 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8225 # The linker can only warn and ignore the option if not recognized
8226 # So say no if there are warnings
8227 if test -s conftest.err
; then
8228 # Append any errors to the config.log.
8229 cat conftest.err
1>&5
8230 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8231 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8232 if diff conftest.exp conftest.er2
>/dev
/null
; then
8233 lt_cv_prog_compiler_static_works
=yes
8236 lt_cv_prog_compiler_static_works
=yes
8240 LDFLAGS
="$save_LDFLAGS"
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8244 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8246 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8249 lt_prog_compiler_static
=
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8259 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8260 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8261 $as_echo_n "(cached) " >&6
8263 lt_cv_prog_compiler_c_o
=no
8264 $RM -r conftest
2>/dev
/null
8268 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8270 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8271 # Insert the option either (1) after the last *FLAGS variable, or
8272 # (2) before a word containing "conftest.", or (3) at the end.
8273 # Note that $ac_compile itself does not contain backslashes and begins
8274 # with a dollar sign (not a hyphen), so the echo should work correctly.
8275 lt_compile
=`echo "$ac_compile" | $SED \
8276 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8278 -e 's:$: $lt_compiler_flag:'`
8279 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8280 (eval "$lt_compile" 2>out
/conftest.err
)
8282 cat out
/conftest.err
>&5
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8286 # The compiler can only warn and ignore the option if not recognized
8287 # So say no if there are warnings
8288 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8289 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8290 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8291 lt_cv_prog_compiler_c_o
=yes
8296 # SGI C++ compiler will create directory out/ii_files/ for
8297 # template instantiation
8298 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8299 $RM out
/* && rmdir out
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8306 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8314 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8315 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8316 $as_echo_n "(cached) " >&6
8318 lt_cv_prog_compiler_c_o
=no
8319 $RM -r conftest
2>/dev
/null
8323 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8325 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8326 # Insert the option either (1) after the last *FLAGS variable, or
8327 # (2) before a word containing "conftest.", or (3) at the end.
8328 # Note that $ac_compile itself does not contain backslashes and begins
8329 # with a dollar sign (not a hyphen), so the echo should work correctly.
8330 lt_compile
=`echo "$ac_compile" | $SED \
8331 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8332 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8333 -e 's:$: $lt_compiler_flag:'`
8334 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8335 (eval "$lt_compile" 2>out
/conftest.err
)
8337 cat out
/conftest.err
>&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8341 # The compiler can only warn and ignore the option if not recognized
8342 # So say no if there are warnings
8343 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8344 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8345 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8346 lt_cv_prog_compiler_c_o
=yes
8351 # SGI C++ compiler will create directory out/ii_files/ for
8352 # template instantiation
8353 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8354 $RM out
/* && rmdir out
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8361 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8366 hard_links
="nottested"
8367 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8368 # do not overwrite the value of need_locks provided by the user
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8370 $as_echo_n "checking if we can lock with hard links... " >&6; }
8373 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8375 ln conftest.a conftest.b
2>&5 || hard_links
=no
8376 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8378 $as_echo "$hard_links" >&6; }
8379 if test "$hard_links" = no
; then
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8381 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8394 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8397 allow_undefined_flag
=
8398 always_export_symbols
=no
8400 archive_expsym_cmds
=
8401 compiler_needs_object
=no
8402 enable_shared_with_static_runtimes
=no
8403 export_dynamic_flag_spec
=
8404 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8405 hardcode_automatic
=no
8407 hardcode_direct_absolute
=no
8408 hardcode_libdir_flag_spec
=
8409 hardcode_libdir_flag_spec_ld
=
8410 hardcode_libdir_separator
=
8412 hardcode_shlibpath_var
=unsupported
8414 link_all_deplibs
=unknown
8417 old_archive_from_new_cmds
=
8418 old_archive_from_expsyms_cmds
=
8419 thread_safe_flag_spec
=
8420 whole_archive_flag_spec
=
8421 # include_expsyms should be a list of space-separated symbols to be *always*
8422 # included in the symbol list
8424 # exclude_expsyms can be an extended regexp of symbols to exclude
8425 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8426 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8427 # as well as any symbol that contains `d'.
8428 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8429 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8430 # platforms (ab)use it in PIC code, but their linkers get confused if
8431 # the symbol is explicitly referenced. Since portable code cannot
8432 # rely on this symbol name, it's probably fine to never include it in
8433 # preloaded symbol tables.
8434 # Exclude shared library initialization/finalization symbols.
8435 extract_expsyms_cmds
=
8438 cygwin
* | mingw
* | pw32
* | cegcc
*)
8439 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8440 # When not using gcc, we currently assume that we are using
8441 # Microsoft Visual C++.
8442 if test "$GCC" != yes; then
8447 # we just hope/assume this is gcc and not c89 (= MSVC++)
8457 # On some targets, GNU ld is compatible enough with the native linker
8458 # that we're better off using the native interface for both.
8459 lt_use_gnu_ld_interface
=no
8460 if test "$with_gnu_ld" = yes; then
8463 # The AIX port of GNU ld has always aspired to compatibility
8464 # with the native linker. However, as the warning in the GNU ld
8465 # block says, versions before 2.19.5* couldn't really create working
8466 # shared libraries, regardless of the interface used.
8467 case `$LD -v 2>&1` in
8468 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
8469 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
8470 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
8472 lt_use_gnu_ld_interface
=yes
8477 lt_use_gnu_ld_interface
=yes
8482 if test "$lt_use_gnu_ld_interface" = yes; then
8483 # If archive_cmds runs LD, not CC, wlarc should be empty
8486 # Set some defaults for GNU ld with shared library support. These
8487 # are reset later if shared libraries are not supported. Putting them
8488 # here allows them to be overridden if necessary.
8489 runpath_var
=LD_RUN_PATH
8490 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8491 export_dynamic_flag_spec
='${wl}--export-dynamic'
8492 # ancient GNU ld didn't support --whole-archive et. al.
8493 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
8494 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8496 whole_archive_flag_spec
=
8498 supports_anon_versioning
=no
8499 case `$LD -v 2>&1` in
8500 *GNU\ gold
*) supports_anon_versioning
=yes ;;
8501 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8502 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8503 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8504 *\
2.11.
*) ;; # other 2.11 versions
8505 *) supports_anon_versioning
=yes ;;
8508 # See if GNU ld supports shared libraries.
8511 # On AIX/PPC, the GNU linker is very broken
8512 if test "$host_cpu" != ia64
; then
8516 *** Warning: the GNU linker, at least up to release 2.19, is reported
8517 *** to be unable to reliably create shared libraries on AIX.
8518 *** Therefore, libtool is disabling shared libraries support. If you
8519 *** really care for shared libraries, you may want to install binutils
8520 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8521 *** You will then need to restart the configuration process.
8530 # see comment about AmigaOS4 .so support
8531 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8532 archive_expsym_cmds
=''
8535 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)'
8536 hardcode_libdir_flag_spec
='-L$libdir'
8537 hardcode_minus_L
=yes
8543 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8544 allow_undefined_flag
=unsupported
8545 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8546 # support --undefined. This deserves some investigation. FIXME
8547 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8553 cygwin
* | mingw
* | pw32
* | cegcc
*)
8554 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8555 # as there is no search path for DLLs.
8556 hardcode_libdir_flag_spec
='-L$libdir'
8557 export_dynamic_flag_spec
='${wl}--export-all-symbols'
8558 allow_undefined_flag
=unsupported
8559 always_export_symbols
=no
8560 enable_shared_with_static_runtimes
=yes
8561 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8563 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8564 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8565 # If the export-symbols file already is a .def file (1st line
8566 # is EXPORTS), use it as is; otherwise, prepend...
8567 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8568 cp $export_symbols $output_objdir/$soname.def;
8570 echo EXPORTS > $output_objdir/$soname.def;
8571 cat $export_symbols >> $output_objdir/$soname.def;
8573 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8580 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8581 link_all_deplibs
=yes
8586 hardcode_shlibpath_var
=no
8587 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8588 export_dynamic_flag_spec
='${wl}-E'
8589 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8590 # Instead, shared libraries are loaded at an image base (0x10000000 by
8591 # default) and relocated if they conflict, which is a slow very memory
8592 # consuming and fragmenting process. To avoid this, we pick a random,
8593 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8594 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8595 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8596 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'
8599 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8601 if test "$host_os" = linux-dietlibc
; then
8602 case $cc_basename in
8603 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8606 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8607 && test "$tmp_diet" = no
8609 tmp_addflag
=' $pic_flag'
8610 tmp_sharedflag
='-shared'
8611 case $cc_basename,$host_cpu in
8612 pgcc
*) # Portland Group C compiler
8613 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'
8614 tmp_addflag
=' $pic_flag'
8616 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8617 # Portland Group f77 and f90 compilers
8618 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'
8619 tmp_addflag
=' $pic_flag -Mnomain' ;;
8620 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8621 tmp_addflag
=' -i_dynamic' ;;
8622 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8623 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8624 ifc
* | ifort
*) # Intel Fortran compiler
8625 tmp_addflag
=' -nofor_main' ;;
8626 lf95
*) # Lahey Fortran 8.1
8627 whole_archive_flag_spec
=
8628 tmp_sharedflag
='--shared' ;;
8629 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8630 tmp_sharedflag
='-qmkshrobj'
8632 nvcc
*) # Cuda Compiler Driver 2.2
8633 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'
8634 compiler_needs_object
=yes
8637 case `$CC -V 2>&1 | sed 5q` in
8638 *Sun\ C
*) # Sun C 5.9
8639 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'
8640 compiler_needs_object
=yes
8641 tmp_sharedflag
='-G' ;;
8642 *Sun\ F
*) # Sun Fortran 8.3
8643 tmp_sharedflag
='-G' ;;
8645 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8647 if test "x$supports_anon_versioning" = xyes
; then
8648 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8649 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8650 echo "local: *; };" >> $output_objdir/$libname.ver~
8651 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8654 case $cc_basename in
8655 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
8656 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8657 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8658 hardcode_libdir_flag_spec
=
8659 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8660 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8661 if test "x$supports_anon_versioning" = xyes
; then
8662 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8663 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8664 echo "local: *; };" >> $output_objdir/$libname.ver~
8665 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8675 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8676 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8679 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8680 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8685 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
8689 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8690 *** create shared libraries on Solaris systems. Therefore, libtool
8691 *** is disabling shared libraries support. We urge you to upgrade GNU
8692 *** binutils to release 2.9.1 or newer. Another option is to modify
8693 *** your PATH or compiler configuration so that the native linker is
8694 *** used, and then restart.
8697 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8698 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8699 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8705 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8706 case `$LD -v 2>&1` in
8707 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8711 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8712 *** reliably create shared libraries on SCO systems. Therefore, libtool
8713 *** is disabling shared libraries support. We urge you to upgrade GNU
8714 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8715 *** your PATH or compiler configuration so that the native linker is
8716 *** used, and then restart.
8721 # For security reasons, it is highly recommended that you always
8722 # use absolute paths for naming shared libraries, and exclude the
8723 # DT_RUNPATH tag from executables and libraries. But doing so
8724 # requires that you compile everything twice, which is a pain.
8725 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8726 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8727 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8728 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8737 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8740 hardcode_shlibpath_var
=no
8744 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8745 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8746 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8753 if test "$ld_shlibs" = no
; then
8755 hardcode_libdir_flag_spec
=
8756 export_dynamic_flag_spec
=
8757 whole_archive_flag_spec
=
8760 # PORTME fill in a description of your system's linker (not GNU ld)
8763 allow_undefined_flag
=unsupported
8764 always_export_symbols
=yes
8765 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'
8766 # Note: this linker hardcodes the directories in LIBPATH if there
8767 # are no directories specified by -L.
8768 hardcode_minus_L
=yes
8769 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8770 # Neither direct hardcoding nor static linking is supported with a
8772 hardcode_direct
=unsupported
8777 if test "$host_cpu" = ia64
; then
8778 # On IA64, the linker does run time linking by default, so we don't
8779 # have to do anything special.
8780 aix_use_runtimelinking
=no
8781 exp_sym_flag
='-Bexport'
8784 # If we're using GNU nm, then we don't want the "-C" option.
8785 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8786 # Also, AIX nm treats weak defined symbols like other global
8787 # defined symbols, whereas GNU nm marks them as "W".
8788 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
8789 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'
8791 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'
8793 aix_use_runtimelinking
=no
8795 # Test if we are trying to use run time linking or normal
8796 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8797 # need to do runtime linking.
8798 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
8799 for ld_flag
in $LDFLAGS; do
8800 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
8801 aix_use_runtimelinking
=yes
8808 exp_sym_flag
='-bexport'
8809 no_entry_flag
='-bnoentry'
8812 # When large executables or shared objects are built, AIX ld can
8813 # have problems creating the table of contents. If linking a library
8814 # or program results in "error TOC overflow" add -mminimal-toc to
8815 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8816 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8820 hardcode_direct_absolute
=yes
8821 hardcode_libdir_separator
=':'
8822 link_all_deplibs
=yes
8823 file_list_spec
='${wl}-f,'
8825 if test "$GCC" = yes; then
8826 case $host_os in aix4.
[012]|aix4.
[012].
*)
8827 # We only want to do this on AIX 4.2 and lower, the check
8828 # below for broken collect2 doesn't work under 4.3+
8829 collect2name
=`${CC} -print-prog-name=collect2`
8830 if test -f "$collect2name" &&
8831 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
8833 # We have reworked collect2
8836 # We have old collect2
8837 hardcode_direct
=unsupported
8838 # It fails to find uninstalled libraries when the uninstalled
8839 # path is not listed in the libpath. Setting hardcode_minus_L
8840 # to unsupported forces relinking
8841 hardcode_minus_L
=yes
8842 hardcode_libdir_flag_spec
='-L$libdir'
8843 hardcode_libdir_separator
=
8847 shared_flag
='-shared'
8848 if test "$aix_use_runtimelinking" = yes; then
8849 shared_flag
="$shared_flag "'${wl}-G'
8853 if test "$host_cpu" = ia64
; then
8854 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8855 # chokes on -Wl,-G. The following line is correct:
8858 if test "$aix_use_runtimelinking" = yes; then
8859 shared_flag
='${wl}-G'
8861 shared_flag
='${wl}-bM:SRE'
8866 export_dynamic_flag_spec
='${wl}-bexpall'
8867 # It seems that -bexpall does not export symbols beginning with
8868 # underscore (_), so it is better to generate a list of symbols to export.
8869 always_export_symbols
=yes
8870 if test "$aix_use_runtimelinking" = yes; then
8871 # Warning - without using the other runtime loading flags (-brtl),
8872 # -berok will link without error, but may produce a broken library.
8873 allow_undefined_flag
='-berok'
8874 # Determine the default libpath from the value encoded in an
8876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8877 /* end confdefs.h. */
8887 if ac_fn_c_try_link
"$LINENO"; then :
8889 lt_aix_libpath_sed
='
8890 /Import File Strings/,/^$/ {
8896 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8897 # Check for a 64-bit object if we didn't find anything.
8898 if test -z "$aix_libpath"; then
8899 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8902 rm -f core conftest.err conftest.
$ac_objext \
8903 conftest
$ac_exeext conftest.
$ac_ext
8904 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
8906 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
8907 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"
8909 if test "$host_cpu" = ia64
; then
8910 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
8911 allow_undefined_flag
="-z nodefs"
8912 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"
8914 # Determine the default libpath from the value encoded in an
8916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8917 /* end confdefs.h. */
8927 if ac_fn_c_try_link
"$LINENO"; then :
8929 lt_aix_libpath_sed
='
8930 /Import File Strings/,/^$/ {
8936 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8937 # Check for a 64-bit object if we didn't find anything.
8938 if test -z "$aix_libpath"; then
8939 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8942 rm -f core conftest.err conftest.
$ac_objext \
8943 conftest
$ac_exeext conftest.
$ac_ext
8944 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
8946 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
8947 # Warning - without using the other run time loading flags,
8948 # -berok will link without error, but may produce a broken library.
8949 no_undefined_flag
=' ${wl}-bernotok'
8950 allow_undefined_flag
=' ${wl}-berok'
8951 if test "$with_gnu_ld" = yes; then
8952 # We only use this code for GNU lds that support --whole-archive.
8953 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8955 # Exported symbols can be pulled into shared objects from archives
8956 whole_archive_flag_spec
='$convenience'
8958 archive_cmds_need_lc
=yes
8959 # This is similar to how AIX traditionally builds its shared libraries.
8960 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'
8968 # see comment about AmigaOS4 .so support
8969 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8970 archive_expsym_cmds
=''
8973 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)'
8974 hardcode_libdir_flag_spec
='-L$libdir'
8975 hardcode_minus_L
=yes
8981 export_dynamic_flag_spec
=-rdynamic
8984 cygwin
* | mingw
* | pw32
* | cegcc
*)
8985 # When not using gcc, we currently assume that we are using
8986 # Microsoft Visual C++.
8987 # hardcode_libdir_flag_spec is actually meaningless, as there is
8988 # no search path for DLLs.
8989 hardcode_libdir_flag_spec
=' '
8990 allow_undefined_flag
=unsupported
8991 # Tell ltmain to make .lib files, not .a files.
8993 # Tell ltmain to make .dll files, not .so files.
8995 # FIXME: Setting linknames here is a bad hack.
8996 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8997 # The linker will automatically build a .lib file if we build a DLL.
8998 old_archive_from_new_cmds
='true'
8999 # FIXME: Should let the user specify the lib program.
9000 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9001 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9002 enable_shared_with_static_runtimes
=yes
9005 darwin
* | rhapsody
*)
9008 archive_cmds_need_lc
=no
9010 hardcode_automatic
=yes
9011 hardcode_shlibpath_var
=unsupported
9012 if test "$lt_cv_ld_force_load" = "yes"; then
9013 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\"`'
9015 whole_archive_flag_spec
=''
9017 link_all_deplibs
=yes
9018 allow_undefined_flag
="$_lt_dar_allow_undefined"
9019 case $cc_basename in
9020 ifort
*) _lt_dar_can_shared
=yes ;;
9021 *) _lt_dar_can_shared
=$GCC ;;
9023 if test "$_lt_dar_can_shared" = "yes"; then
9024 output_verbose_link_cmd
=func_echo_all
9025 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9026 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9027 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}"
9028 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}"
9037 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9038 hardcode_libdir_flag_spec
='-L$libdir'
9039 hardcode_shlibpath_var
=no
9042 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9043 # support. Future versions do this automatically, but an explicit c++rt0.o
9044 # does not break anything, and helps significantly (at the cost of a little
9047 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9048 hardcode_libdir_flag_spec
='-R$libdir'
9050 hardcode_shlibpath_var
=no
9053 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9055 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9057 hardcode_minus_L
=yes
9058 hardcode_shlibpath_var
=no
9061 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9062 freebsd
* | dragonfly
*)
9063 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9064 hardcode_libdir_flag_spec
='-R$libdir'
9066 hardcode_shlibpath_var
=no
9070 if test "$GCC" = yes; then
9071 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'
9073 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'
9075 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9076 hardcode_libdir_separator
=:
9079 # hardcode_minus_L: Not really in the search PATH,
9080 # but as the default location of the library.
9081 hardcode_minus_L
=yes
9082 export_dynamic_flag_spec
='${wl}-E'
9086 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9087 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9089 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9091 if test "$with_gnu_ld" = no
; then
9092 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9093 hardcode_libdir_flag_spec_ld
='+b $libdir'
9094 hardcode_libdir_separator
=:
9096 hardcode_direct_absolute
=yes
9097 export_dynamic_flag_spec
='${wl}-E'
9098 # hardcode_minus_L: Not really in the search PATH,
9099 # but as the default location of the library.
9100 hardcode_minus_L
=yes
9105 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9108 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9111 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9114 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9120 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9123 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9127 # Older versions of the 11.00 compiler do not understand -b yet
9128 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9130 $as_echo_n "checking if $CC understands -b... " >&6; }
9131 if ${lt_cv_prog_compiler__b+:} false
; then :
9132 $as_echo_n "(cached) " >&6
9134 lt_cv_prog_compiler__b
=no
9135 save_LDFLAGS
="$LDFLAGS"
9136 LDFLAGS
="$LDFLAGS -b"
9137 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9138 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9139 # The linker can only warn and ignore the option if not recognized
9140 # So say no if there are warnings
9141 if test -s conftest.err
; then
9142 # Append any errors to the config.log.
9143 cat conftest.err
1>&5
9144 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9145 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9146 if diff conftest.exp conftest.er2
>/dev
/null
; then
9147 lt_cv_prog_compiler__b
=yes
9150 lt_cv_prog_compiler__b
=yes
9154 LDFLAGS
="$save_LDFLAGS"
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9158 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9160 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9161 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9163 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9169 if test "$with_gnu_ld" = no
; then
9170 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9171 hardcode_libdir_separator
=:
9176 hardcode_shlibpath_var
=no
9180 hardcode_direct_absolute
=yes
9181 export_dynamic_flag_spec
='${wl}-E'
9183 # hardcode_minus_L: Not really in the search PATH,
9184 # but as the default location of the library.
9185 hardcode_minus_L
=yes
9191 irix5
* | irix6
* | nonstopux
*)
9192 if test "$GCC" = yes; then
9193 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'
9194 # Try to use the -exported_symbol ld option, if it does not
9195 # work, assume that -exports_file does not work either and
9196 # implicitly export all symbols.
9197 save_LDFLAGS
="$LDFLAGS"
9198 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9200 /* end confdefs.h. */
9203 if ac_fn_c_try_link
"$LINENO"; then :
9204 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'
9207 rm -f core conftest.err conftest.
$ac_objext \
9208 conftest
$ac_exeext conftest.
$ac_ext
9209 LDFLAGS
="$save_LDFLAGS"
9211 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'
9212 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'
9214 archive_cmds_need_lc
='no'
9215 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9216 hardcode_libdir_separator
=:
9218 link_all_deplibs
=yes
9222 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9223 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9225 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9227 hardcode_libdir_flag_spec
='-R$libdir'
9229 hardcode_shlibpath_var
=no
9233 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9235 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9236 hardcode_libdir_separator
=:
9237 hardcode_shlibpath_var
=no
9244 if test -f /usr
/libexec
/ld.so
; then
9246 hardcode_shlibpath_var
=no
9247 hardcode_direct_absolute
=yes
9248 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9249 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9250 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9251 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9252 export_dynamic_flag_spec
='${wl}-E'
9255 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9256 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9257 hardcode_libdir_flag_spec
='-R$libdir'
9260 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9261 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9271 hardcode_libdir_flag_spec
='-L$libdir'
9272 hardcode_minus_L
=yes
9273 allow_undefined_flag
=unsupported
9274 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'
9275 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9279 if test "$GCC" = yes; then
9280 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9281 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'
9283 allow_undefined_flag
=' -expect_unresolved \*'
9284 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'
9286 archive_cmds_need_lc
='no'
9287 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9288 hardcode_libdir_separator
=:
9291 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9292 if test "$GCC" = yes; then
9293 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9294 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'
9295 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9297 allow_undefined_flag
=' -expect_unresolved \*'
9298 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'
9299 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~
9300 $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'
9302 # Both c and cxx compiler support -rpath directly
9303 hardcode_libdir_flag_spec
='-rpath $libdir'
9305 archive_cmds_need_lc
='no'
9306 hardcode_libdir_separator
=:
9310 no_undefined_flag
=' -z defs'
9311 if test "$GCC" = yes; then
9313 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9314 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9315 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9317 case `$CC -V 2>&1` in
9320 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9321 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9322 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9326 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9327 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9328 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9332 hardcode_libdir_flag_spec
='-R$libdir'
9333 hardcode_shlibpath_var
=no
9335 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9337 # The compiler driver will combine and reorder linker options,
9338 # but understands `-z linker_flag'. GCC discards it without `$wl',
9339 # but is careful enough not to reorder.
9340 # Supported since Solaris 2.6 (maybe 2.5.1?)
9341 if test "$GCC" = yes; then
9342 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9344 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9348 link_all_deplibs
=yes
9352 if test "x$host_vendor" = xsequent
; then
9353 # Use $CC to link under sequent, because it throws in some extra .o
9354 # files that make .init and .fini sections work.
9355 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9357 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9359 hardcode_libdir_flag_spec
='-L$libdir'
9361 hardcode_minus_L
=yes
9362 hardcode_shlibpath_var
=no
9366 case $host_vendor in
9368 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9369 hardcode_direct
=yes # is this really true???
9372 ## LD is ld it makes a PLAMLIB
9373 ## CC just makes a GrossModule.
9374 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9375 reload_cmds
='$CC -r -o $output$reload_objs'
9379 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9380 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9383 runpath_var
='LD_RUN_PATH'
9384 hardcode_shlibpath_var
=no
9388 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9389 hardcode_shlibpath_var
=no
9390 export_dynamic_flag_spec
='-Bexport'
9394 if test -d /usr
/nec
; then
9395 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9396 hardcode_shlibpath_var
=no
9397 runpath_var
=LD_RUN_PATH
9398 hardcode_runpath_var
=yes
9403 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9404 no_undefined_flag
='${wl}-z,text'
9405 archive_cmds_need_lc
=no
9406 hardcode_shlibpath_var
=no
9407 runpath_var
='LD_RUN_PATH'
9409 if test "$GCC" = yes; then
9410 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9411 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9413 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9414 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9418 sysv5
* | sco3.2v5
* | sco5v6
*)
9419 # Note: We can NOT use -z defs as we might desire, because we do not
9420 # link with -lc, and that would cause any symbols used from libc to
9421 # always be unresolved, which means just about no library would
9422 # ever link correctly. If we're not using GNU ld we use -z text
9423 # though, which does catch some bad symbols but isn't as heavy-handed
9425 no_undefined_flag
='${wl}-z,text'
9426 allow_undefined_flag
='${wl}-z,nodefs'
9427 archive_cmds_need_lc
=no
9428 hardcode_shlibpath_var
=no
9429 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9430 hardcode_libdir_separator
=':'
9431 link_all_deplibs
=yes
9432 export_dynamic_flag_spec
='${wl}-Bexport'
9433 runpath_var
='LD_RUN_PATH'
9435 if test "$GCC" = yes; then
9436 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9437 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9439 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9440 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9445 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9446 hardcode_libdir_flag_spec
='-L$libdir'
9447 hardcode_shlibpath_var
=no
9455 if test x
$host_vendor = xsni
; then
9457 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9458 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9465 $as_echo "$ld_shlibs" >&6; }
9466 test "$ld_shlibs" = no
&& can_build_shared
=no
9468 with_gnu_ld
=$with_gnu_ld
9485 # Do we need to explicitly link libc?
9487 case "x$archive_cmds_need_lc" in
9489 # Assume -lc should be added
9490 archive_cmds_need_lc
=yes
9492 if test "$enable_shared" = yes && test "$GCC" = yes; then
9493 case $archive_cmds in
9495 # FIXME: we may have to deal with multi-command sequences.
9498 # Test whether the compiler implicitly links with -lc since on some
9499 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9500 # to ld, don't add -lc before -lgcc.
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9502 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9503 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
9504 $as_echo_n "(cached) " >&6
9507 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9510 (eval $ac_compile) 2>&5
9512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9513 test $ac_status = 0; } 2>conftest.err
; then
9516 libobjs
=conftest.
$ac_objext
9518 wl
=$lt_prog_compiler_wl
9519 pic_flag
=$lt_prog_compiler_pic
9525 lt_save_allow_undefined_flag
=$allow_undefined_flag
9526 allow_undefined_flag
=
9527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9528 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9531 test $ac_status = 0; }
9533 lt_cv_archive_cmds_need_lc
=no
9535 lt_cv_archive_cmds_need_lc
=yes
9537 allow_undefined_flag
=$lt_save_allow_undefined_flag
9539 cat conftest.err
1>&5
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9545 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9546 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9710 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9712 if test "$GCC" = yes; then
9714 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
9715 *) lt_awk_arg
="/^libraries:/" ;;
9718 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
9719 *) lt_sed_strip_eq
="s,=/,/,g" ;;
9721 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9722 case $lt_search_path_spec in
9724 # if the path contains ";" then we assume it to be the separator
9725 # otherwise default to the standard path separator (i.e. ":") - it is
9726 # assumed that no part of a normal pathname contains ";" but that should
9727 # okay in the real world where ";" in dirpaths is itself problematic.
9728 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9731 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9734 # Ok, now we have the path, separated by spaces, we can step through it
9735 # and add multilib dir if necessary.
9736 lt_tmp_lt_search_path_spec
=
9737 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9738 for lt_sys_path
in $lt_search_path_spec; do
9739 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9740 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9742 test -d "$lt_sys_path" && \
9743 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
9746 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9747 BEGIN {RS=" "; FS="/|\n";} {
9750 for (lt_i = NF; lt_i > 0; lt_i--) {
9751 if ($lt_i != "" && $lt_i != ".") {
9752 if ($lt_i == "..") {
9755 if (lt_count == 0) {
9756 lt_foo="/" $lt_i lt_foo;
9763 if (lt_foo != "") { lt_freq[lt_foo]++; }
9764 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9766 # AWK program above erroneously prepends '/' to C:/dos/paths
9769 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
9770 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9772 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9774 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
9777 libname_spec
='lib$name'
9785 shlibpath_overrides_runpath
=unknown
9787 dynamic_linker
="$host_os ld.so"
9788 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
9789 need_lib_prefix
=unknown
9790 hardcode_into_libs
=no
9792 # when you set need_version to no, make sure it does not cause -set_version
9793 # flags to be left without arguments
9794 need_version
=unknown
9799 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
9800 shlibpath_var
=LIBPATH
9802 # AIX 3 has no versioning support, so we append a major version to the name.
9803 soname_spec
='${libname}${release}${shared_ext}$major'
9810 hardcode_into_libs
=yes
9811 if test "$host_cpu" = ia64
; then
9812 # AIX 5 supports IA64
9813 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9814 shlibpath_var
=LD_LIBRARY_PATH
9816 # With GCC up to 2.95.x, collect2 would create an import file
9817 # for dependence libraries. The import file would start with
9818 # the line `#! .'. This would cause the generated library to
9819 # depend on `.', always an invalid library. This was fixed in
9820 # development snapshots of GCC prior to 3.0.
9822 aix4 | aix4.
[01] | aix4.
[01].
*)
9823 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9825 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
9832 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9833 # soname into executable. Probably we can add versioning support to
9834 # collect2, so additional links can be useful in future.
9835 if test "$aix_use_runtimelinking" = yes; then
9836 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9837 # instead of lib<name>.a to let people know that these are not
9838 # typical AIX shared libraries.
9839 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9841 # We preserve .a as extension for shared libraries through AIX4.2
9842 # and later when we are not doing run time linking.
9843 library_names_spec
='${libname}${release}.a $libname.a'
9844 soname_spec
='${libname}${release}${shared_ext}$major'
9846 shlibpath_var
=LIBPATH
9853 # Since July 2007 AmigaOS4 officially supports .so libraries.
9854 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9855 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9858 library_names_spec
='$libname.ixlibrary $libname.a'
9859 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9860 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'
9866 library_names_spec
='${libname}${shared_ext}'
9867 dynamic_linker
="$host_os ld.so"
9868 shlibpath_var
=LIBRARY_PATH
9874 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9875 soname_spec
='${libname}${release}${shared_ext}$major'
9876 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9877 shlibpath_var
=LD_LIBRARY_PATH
9878 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9879 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9880 # the default ld.so.conf also contains /usr/contrib/lib and
9881 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9882 # libtool to hard-code these into programs
9885 cygwin
* | mingw
* | pw32
* | cegcc
*)
9886 version_type
=windows
9891 case $GCC,$host_os in
9892 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
9893 library_names_spec
='$libname.dll.a'
9894 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9895 postinstall_cmds
='base_file=`basename \${file}`~
9896 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9897 dldir=$destdir/`dirname \$dlpath`~
9898 test -d \$dldir || mkdir -p \$dldir~
9899 $install_prog $dir/$dlname \$dldir/$dlname~
9900 chmod a+x \$dldir/$dlname~
9901 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9902 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9904 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9905 dlpath=$dir/\$dldll~
9907 shlibpath_overrides_runpath
=yes
9911 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9912 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9914 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
9917 # MinGW DLLs use traditional 'lib' prefix
9918 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9921 # pw32 DLLs use 'pw' prefix rather than 'lib'
9922 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9928 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9931 dynamic_linker
='Win32 ld.exe'
9932 # FIXME: first we should search . and the directory the executable is in
9936 darwin
* | rhapsody
*)
9937 dynamic_linker
="$host_os dyld"
9941 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9942 soname_spec
='${libname}${release}${major}$shared_ext'
9943 shlibpath_overrides_runpath
=yes
9944 shlibpath_var
=DYLD_LIBRARY_PATH
9945 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
9947 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
9948 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
9955 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9956 soname_spec
='${libname}${release}${shared_ext}$major'
9957 shlibpath_var
=LD_LIBRARY_PATH
9960 freebsd
* | dragonfly
*)
9961 # DragonFly does not have aout. When/if they implement a new
9962 # versioning mechanism, adjust this.
9963 if test -x /usr
/bin
/objformat
; then
9964 objformat
=`/usr/bin/objformat`
9967 freebsd
[23].
*) objformat
=aout
;;
9971 version_type
=freebsd-
$objformat
9972 case $version_type in
9974 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9979 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9983 shlibpath_var
=LD_LIBRARY_PATH
9986 shlibpath_overrides_runpath
=yes
9988 freebsd3.
[01]* | freebsdelf3.
[01]*)
9989 shlibpath_overrides_runpath
=yes
9990 hardcode_into_libs
=yes
9992 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
9993 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
9994 shlibpath_overrides_runpath
=no
9995 hardcode_into_libs
=yes
9997 *) # from 4.6 on, and DragonFly
9998 shlibpath_overrides_runpath
=yes
9999 hardcode_into_libs
=yes
10008 dynamic_linker
="$host_os runtime_loader"
10009 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10010 soname_spec
='${libname}${release}${shared_ext}$major'
10011 shlibpath_var
=LIBRARY_PATH
10012 shlibpath_overrides_runpath
=yes
10013 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10014 hardcode_into_libs
=yes
10017 hpux9
* | hpux10
* | hpux11
*)
10018 # Give a soname corresponding to the major version so that dld.sl refuses to
10019 # link against other versions.
10026 hardcode_into_libs
=yes
10027 dynamic_linker
="$host_os dld.so"
10028 shlibpath_var
=LD_LIBRARY_PATH
10029 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10030 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10031 soname_spec
='${libname}${release}${shared_ext}$major'
10032 if test "X$HPUX_IA64_MODE" = X32
; then
10033 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10035 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10037 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10041 hardcode_into_libs
=yes
10042 dynamic_linker
="$host_os dld.sl"
10043 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10044 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10045 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10046 soname_spec
='${libname}${release}${shared_ext}$major'
10047 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10048 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10052 dynamic_linker
="$host_os dld.sl"
10053 shlibpath_var
=SHLIB_PATH
10054 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10055 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10056 soname_spec
='${libname}${release}${shared_ext}$major'
10059 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10060 postinstall_cmds
='chmod 555 $lib'
10061 # or fails outright, so override atomically:
10062 install_override_mode
=555
10069 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10070 soname_spec
='${libname}${release}${shared_ext}$major'
10071 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10072 shlibpath_var
=LD_LIBRARY_PATH
10073 shlibpath_overrides_runpath
=no
10074 hardcode_into_libs
=yes
10077 irix5
* | irix6
* | nonstopux
*)
10079 nonstopux
*) version_type
=nonstopux
;;
10081 if test "$lt_cv_prog_gnu_ld" = yes; then
10089 soname_spec
='${libname}${release}${shared_ext}$major'
10090 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10092 irix5
* | nonstopux
*)
10093 libsuff
= shlibsuff
=
10096 case $LD in # libtool.m4 will add one of these switches to LD
10097 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10098 libsuff
= shlibsuff
= libmagic
=32-bit;;
10099 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10100 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10101 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10102 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10103 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10107 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10108 shlibpath_overrides_runpath
=no
10109 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10110 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10111 hardcode_into_libs
=yes
10114 # No shared lib support for Linux oldld, aout, or coff.
10115 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10119 # This must be Linux ELF.
10120 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
10124 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10125 soname_spec
='${libname}${release}${shared_ext}$major'
10126 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10127 shlibpath_var
=LD_LIBRARY_PATH
10128 shlibpath_overrides_runpath
=no
10130 # Some binutils ld are patched to set DT_RUNPATH
10131 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10132 $as_echo_n "(cached) " >&6
10134 lt_cv_shlibpath_overrides_runpath
=no
10135 save_LDFLAGS
=$LDFLAGS
10136 save_libdir
=$libdir
10137 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10138 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10140 /* end confdefs.h. */
10150 if ac_fn_c_try_link
"$LINENO"; then :
10151 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10152 lt_cv_shlibpath_overrides_runpath
=yes
10155 rm -f core conftest.err conftest.
$ac_objext \
10156 conftest
$ac_exeext conftest.
$ac_ext
10157 LDFLAGS
=$save_LDFLAGS
10158 libdir
=$save_libdir
10162 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10164 # This implies no fast_install, which is unacceptable.
10165 # Some rework will be needed to allow for fast_install
10166 # before this can be enabled.
10167 hardcode_into_libs
=yes
10169 # Append ld.so.conf contents to the search path
10170 if test -f /etc
/ld.so.conf
; then
10171 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' ' '`
10172 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10175 # We used to test for /lib/ld.so.1 and disable shared libraries on
10176 # powerpc, because MkLinux only supported shared libraries with the
10177 # GNU dynamic linker. Since this was broken with cross compilers,
10178 # most powerpc-linux boxes support dynamic linking these days and
10179 # people can always --disable-shared, the test was removed, and we
10180 # assume the GNU/Linux dynamic linker is in use.
10181 dynamic_linker
='GNU/Linux ld.so'
10188 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10189 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10190 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10191 dynamic_linker
='NetBSD (a.out) ld.so'
10193 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10194 soname_spec
='${libname}${release}${shared_ext}$major'
10195 dynamic_linker
='NetBSD ld.elf_so'
10197 shlibpath_var
=LD_LIBRARY_PATH
10198 shlibpath_overrides_runpath
=yes
10199 hardcode_into_libs
=yes
10204 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10205 shlibpath_var
=LD_LIBRARY_PATH
10206 shlibpath_overrides_runpath
=yes
10213 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10214 soname_spec
='${libname}${release}${shared_ext}$major'
10215 shlibpath_var
=LD_LIBRARY_PATH
10216 shlibpath_overrides_runpath
=no
10217 hardcode_into_libs
=yes
10218 dynamic_linker
='ldqnx.so'
10223 sys_lib_dlsearch_path_spec
="/usr/lib"
10225 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10227 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10228 *) need_version
=no
;;
10230 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10231 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10232 shlibpath_var
=LD_LIBRARY_PATH
10233 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10235 openbsd2.
[89] | openbsd2.
[89].
*)
10236 shlibpath_overrides_runpath
=no
10239 shlibpath_overrides_runpath
=yes
10243 shlibpath_overrides_runpath
=yes
10248 libname_spec
='$name'
10251 library_names_spec
='$libname${shared_ext} $libname.a'
10252 dynamic_linker
='OS/2 ld.exe'
10253 shlibpath_var
=LIBPATH
10256 osf3
* | osf4
* | osf5
*)
10260 soname_spec
='${libname}${release}${shared_ext}$major'
10261 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10262 shlibpath_var
=LD_LIBRARY_PATH
10263 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10264 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10275 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10276 soname_spec
='${libname}${release}${shared_ext}$major'
10277 shlibpath_var
=LD_LIBRARY_PATH
10278 shlibpath_overrides_runpath
=yes
10279 hardcode_into_libs
=yes
10280 # ldd complains unless libraries are executable
10281 postinstall_cmds
='chmod +x $lib'
10286 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10287 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10288 shlibpath_var
=LD_LIBRARY_PATH
10289 shlibpath_overrides_runpath
=yes
10290 if test "$with_gnu_ld" = yes; then
10298 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10299 soname_spec
='${libname}${release}${shared_ext}$major'
10300 shlibpath_var
=LD_LIBRARY_PATH
10301 case $host_vendor in
10303 shlibpath_overrides_runpath
=no
10305 runpath_var
=LD_RUN_PATH
10313 shlibpath_overrides_runpath
=no
10314 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10320 if test -d /usr
/nec
;then
10322 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10323 soname_spec
='$libname${shared_ext}.$major'
10324 shlibpath_var
=LD_LIBRARY_PATH
10328 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10329 version_type
=freebsd-elf
10332 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10333 soname_spec
='${libname}${release}${shared_ext}$major'
10334 shlibpath_var
=LD_LIBRARY_PATH
10335 shlibpath_overrides_runpath
=yes
10336 hardcode_into_libs
=yes
10337 if test "$with_gnu_ld" = yes; then
10338 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10340 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10343 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10347 sys_lib_dlsearch_path_spec
='/usr/lib'
10351 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10355 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10356 shlibpath_var
=LD_LIBRARY_PATH
10357 shlibpath_overrides_runpath
=no
10358 hardcode_into_libs
=yes
10363 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10364 soname_spec
='${libname}${release}${shared_ext}$major'
10365 shlibpath_var
=LD_LIBRARY_PATH
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10373 $as_echo "$dynamic_linker" >&6; }
10374 test "$dynamic_linker" = no
&& can_build_shared
=no
10376 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10377 if test "$GCC" = yes; then
10378 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10381 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10382 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
10384 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10385 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10480 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10482 if test -n "$hardcode_libdir_flag_spec" ||
10483 test -n "$runpath_var" ||
10484 test "X$hardcode_automatic" = "Xyes" ; then
10486 # We can hardcode non-existent directories.
10487 if test "$hardcode_direct" != no
&&
10488 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10489 # have to relink, otherwise we might link with an installed library
10490 # when we should be linking with a yet-to-be-installed one
10491 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10492 test "$hardcode_minus_L" != no
; then
10493 # Linking always hardcodes the temporary library directory.
10494 hardcode_action
=relink
10496 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10497 hardcode_action
=immediate
10500 # We cannot hardcode anything, or else we can only hardcode existing
10502 hardcode_action
=unsupported
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10505 $as_echo "$hardcode_action" >&6; }
10507 if test "$hardcode_action" = relink ||
10508 test "$inherit_rpath" = yes; then
10509 # Fast installation is not supported
10510 enable_fast_install
=no
10511 elif test "$shlibpath_overrides_runpath" = yes ||
10512 test "$enable_shared" = no
; then
10513 # Fast installation is not necessary
10514 enable_fast_install
=needless
10522 if test "x$enable_dlopen" != xyes
; then
10523 enable_dlopen
=unknown
10524 enable_dlopen_self
=unknown
10525 enable_dlopen_self_static
=unknown
10532 lt_cv_dlopen
="load_add_on"
10534 lt_cv_dlopen_self
=yes
10537 mingw
* | pw32
* | cegcc
*)
10538 lt_cv_dlopen
="LoadLibrary"
10543 lt_cv_dlopen
="dlopen"
10548 # if libdl is installed we need to link against it
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10550 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10551 if ${ac_cv_lib_dl_dlopen+:} false
; then :
10552 $as_echo_n "(cached) " >&6
10554 ac_check_lib_save_LIBS
=$LIBS
10556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10557 /* end confdefs.h. */
10559 /* Override any GCC internal prototype to avoid an error.
10560 Use char because int might match the return type of a GCC
10561 builtin and then its argument prototype would still apply. */
10574 if ac_fn_c_try_link
"$LINENO"; then :
10575 ac_cv_lib_dl_dlopen
=yes
10577 ac_cv_lib_dl_dlopen
=no
10579 rm -f core conftest.err conftest.
$ac_objext \
10580 conftest
$ac_exeext conftest.
$ac_ext
10581 LIBS
=$ac_check_lib_save_LIBS
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10584 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10585 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
10586 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10589 lt_cv_dlopen
="dyld"
10591 lt_cv_dlopen_self
=yes
10598 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
10599 if test "x$ac_cv_func_shl_load" = xyes
; then :
10600 lt_cv_dlopen
="shl_load"
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10603 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10604 if ${ac_cv_lib_dld_shl_load+:} false
; then :
10605 $as_echo_n "(cached) " >&6
10607 ac_check_lib_save_LIBS
=$LIBS
10609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10610 /* end confdefs.h. */
10612 /* Override any GCC internal prototype to avoid an error.
10613 Use char because int might match the return type of a GCC
10614 builtin and then its argument prototype would still apply. */
10622 return shl_load ();
10627 if ac_fn_c_try_link
"$LINENO"; then :
10628 ac_cv_lib_dld_shl_load
=yes
10630 ac_cv_lib_dld_shl_load
=no
10632 rm -f core conftest.err conftest.
$ac_objext \
10633 conftest
$ac_exeext conftest.
$ac_ext
10634 LIBS
=$ac_check_lib_save_LIBS
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10637 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10638 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
10639 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
10641 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
10642 if test "x$ac_cv_func_dlopen" = xyes
; then :
10643 lt_cv_dlopen
="dlopen"
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10646 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10647 if ${ac_cv_lib_dl_dlopen+:} false
; then :
10648 $as_echo_n "(cached) " >&6
10650 ac_check_lib_save_LIBS
=$LIBS
10652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10653 /* end confdefs.h. */
10655 /* Override any GCC internal prototype to avoid an error.
10656 Use char because int might match the return type of a GCC
10657 builtin and then its argument prototype would still apply. */
10670 if ac_fn_c_try_link
"$LINENO"; then :
10671 ac_cv_lib_dl_dlopen
=yes
10673 ac_cv_lib_dl_dlopen
=no
10675 rm -f core conftest.err conftest.
$ac_objext \
10676 conftest
$ac_exeext conftest.
$ac_ext
10677 LIBS
=$ac_check_lib_save_LIBS
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10680 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10681 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
10682 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10685 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10686 if ${ac_cv_lib_svld_dlopen+:} false
; then :
10687 $as_echo_n "(cached) " >&6
10689 ac_check_lib_save_LIBS
=$LIBS
10690 LIBS
="-lsvld $LIBS"
10691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10692 /* end confdefs.h. */
10694 /* Override any GCC internal prototype to avoid an error.
10695 Use char because int might match the return type of a GCC
10696 builtin and then its argument prototype would still apply. */
10709 if ac_fn_c_try_link
"$LINENO"; then :
10710 ac_cv_lib_svld_dlopen
=yes
10712 ac_cv_lib_svld_dlopen
=no
10714 rm -f core conftest.err conftest.
$ac_objext \
10715 conftest
$ac_exeext conftest.
$ac_ext
10716 LIBS
=$ac_check_lib_save_LIBS
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10719 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10720 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
10721 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10724 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10725 if ${ac_cv_lib_dld_dld_link+:} false
; then :
10726 $as_echo_n "(cached) " >&6
10728 ac_check_lib_save_LIBS
=$LIBS
10730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10731 /* end confdefs.h. */
10733 /* Override any GCC internal prototype to avoid an error.
10734 Use char because int might match the return type of a GCC
10735 builtin and then its argument prototype would still apply. */
10743 return dld_link ();
10748 if ac_fn_c_try_link
"$LINENO"; then :
10749 ac_cv_lib_dld_dld_link
=yes
10751 ac_cv_lib_dld_dld_link
=no
10753 rm -f core conftest.err conftest.
$ac_objext \
10754 conftest
$ac_exeext conftest.
$ac_ext
10755 LIBS
=$ac_check_lib_save_LIBS
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10758 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10759 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
10760 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
10781 if test "x$lt_cv_dlopen" != xno
; then
10787 case $lt_cv_dlopen in
10789 save_CPPFLAGS
="$CPPFLAGS"
10790 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
10792 save_LDFLAGS
="$LDFLAGS"
10793 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
10796 LIBS
="$lt_cv_dlopen_libs $LIBS"
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10799 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10800 if ${lt_cv_dlopen_self+:} false
; then :
10801 $as_echo_n "(cached) " >&6
10803 if test "$cross_compiling" = yes; then :
10804 lt_cv_dlopen_self
=cross
10806 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
10807 lt_status
=$lt_dlunknown
10808 cat > conftest.
$ac_ext <<_LT_EOF
10809 #line 10809 "configure"
10810 #include "confdefs.h"
10819 # define LT_DLGLOBAL RTLD_GLOBAL
10822 # define LT_DLGLOBAL DL_GLOBAL
10824 # define LT_DLGLOBAL 0
10828 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10829 find out it does not work in some platform. */
10830 #ifndef LT_DLLAZY_OR_NOW
10832 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10835 # define LT_DLLAZY_OR_NOW DL_LAZY
10838 # define LT_DLLAZY_OR_NOW RTLD_NOW
10841 # define LT_DLLAZY_OR_NOW DL_NOW
10843 # define LT_DLLAZY_OR_NOW 0
10850 /* When -fvisbility=hidden is used, assume the code has been annotated
10851 correspondingly for the symbols needed. */
10852 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10853 void fnord () __attribute__((visibility("default")));
10856 void fnord () { int i=42; }
10859 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10860 int status = $lt_dlunknown;
10864 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10867 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10868 else puts (dlerror ());
10870 /* dlclose (self); */
10878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10879 (eval $ac_link) 2>&5
10881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10882 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
10883 (.
/conftest
; exit; ) >&5 2>/dev
/null
10885 case x
$lt_status in
10886 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
10887 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
10888 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
10891 # compilation failed
10892 lt_cv_dlopen_self
=no
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10900 $as_echo "$lt_cv_dlopen_self" >&6; }
10902 if test "x$lt_cv_dlopen_self" = xyes
; then
10903 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10905 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10906 if ${lt_cv_dlopen_self_static+:} false
; then :
10907 $as_echo_n "(cached) " >&6
10909 if test "$cross_compiling" = yes; then :
10910 lt_cv_dlopen_self_static
=cross
10912 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
10913 lt_status
=$lt_dlunknown
10914 cat > conftest.
$ac_ext <<_LT_EOF
10915 #line 10915 "configure"
10916 #include "confdefs.h"
10925 # define LT_DLGLOBAL RTLD_GLOBAL
10928 # define LT_DLGLOBAL DL_GLOBAL
10930 # define LT_DLGLOBAL 0
10934 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10935 find out it does not work in some platform. */
10936 #ifndef LT_DLLAZY_OR_NOW
10938 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10941 # define LT_DLLAZY_OR_NOW DL_LAZY
10944 # define LT_DLLAZY_OR_NOW RTLD_NOW
10947 # define LT_DLLAZY_OR_NOW DL_NOW
10949 # define LT_DLLAZY_OR_NOW 0
10956 /* When -fvisbility=hidden is used, assume the code has been annotated
10957 correspondingly for the symbols needed. */
10958 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10959 void fnord () __attribute__((visibility("default")));
10962 void fnord () { int i=42; }
10965 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10966 int status = $lt_dlunknown;
10970 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10973 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10974 else puts (dlerror ());
10976 /* dlclose (self); */
10984 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10985 (eval $ac_link) 2>&5
10987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10988 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
10989 (.
/conftest
; exit; ) >&5 2>/dev
/null
10991 case x
$lt_status in
10992 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
10993 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
10994 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
10997 # compilation failed
10998 lt_cv_dlopen_self_static
=no
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11006 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11009 CPPFLAGS
="$save_CPPFLAGS"
11010 LDFLAGS
="$save_LDFLAGS"
11015 case $lt_cv_dlopen_self in
11016 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11017 *) enable_dlopen_self
=unknown
;;
11020 case $lt_cv_dlopen_self_static in
11021 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11022 *) enable_dlopen_self_static
=unknown
;;
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11045 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11046 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11047 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11048 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11050 $as_echo "yes" >&6; }
11052 # FIXME - insert some real tests, host_os isn't really good enough
11055 if test -n "$STRIP" ; then
11056 striplib
="$STRIP -x"
11057 old_striplib
="$STRIP -S"
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11059 $as_echo "yes" >&6; }
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11062 $as_echo "no" >&6; }
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11067 $as_echo "no" >&6; }
11083 # Report which library types will actually be built
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11085 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11087 $as_echo "$can_build_shared" >&6; }
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11090 $as_echo_n "checking whether to build shared libraries... " >&6; }
11091 test "$can_build_shared" = "no" && enable_shared
=no
11093 # On AIX, shared libraries and static libraries use the same namespace, and
11094 # are all built from PIC.
11097 test "$enable_shared" = yes && enable_static
=no
11098 if test -n "$RANLIB"; then
11099 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11100 postinstall_cmds
='$RANLIB $lib'
11105 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11106 test "$enable_shared" = yes && enable_static
=no
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11111 $as_echo "$enable_shared" >&6; }
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11114 $as_echo_n "checking whether to build static libraries... " >&6; }
11115 # Make sure either enable_shared or enable_static is yes.
11116 test "$enable_shared" = yes || enable_static
=yes
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11118 $as_echo "$enable_static" >&6; }
11125 ac_cpp
='$CPP $CPPFLAGS'
11126 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11127 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11128 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11144 ac_config_commands
="$ac_config_commands libtool"
11149 # Only expand once:
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11158 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11159 # Check whether --enable-maintainer-mode was given.
11160 if test "${enable_maintainer_mode+set}" = set; then :
11161 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
11163 USE_MAINTAINER_MODE
=no
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11167 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11168 if test $USE_MAINTAINER_MODE = yes; then
11169 MAINTAINER_MODE_TRUE
=
11170 MAINTAINER_MODE_FALSE
='#'
11172 MAINTAINER_MODE_TRUE
='#'
11173 MAINTAINER_MODE_FALSE
=
11176 MAINT
=$MAINTAINER_MODE_TRUE
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
11182 $as_echo_n "checking for sim debug setting... " >&6; }
11184 # Check whether --enable-sim-debug was given.
11185 if test "${enable_sim_debug+set}" = set; then :
11186 enableval
=$enable_sim_debug; case "${enableval}" in
11187 yes) sim_debug
="7";;
11188 no
) sim_debug
="0";;
11189 *) sim_debug
="($enableval)";;
11192 if test "$sim_debug" != "0"; then
11194 cat >>confdefs.h
<<_ACEOF
11195 #define DEBUG $sim_debug
11200 cat >>confdefs.h
<<_ACEOF
11201 #define WITH_DEBUG $sim_debug
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
11205 $as_echo "$sim_debug" >&6; }
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
11209 $as_echo_n "checking for sim stdio debug behavior... " >&6; }
11211 # Check whether --enable-sim-stdio was given.
11212 if test "${enable_sim_stdio+set}" = set; then :
11213 enableval
=$enable_sim_stdio; case "${enableval}" in
11214 yes) sim_stdio
="DO_USE_STDIO";;
11215 no
) sim_stdio
="DONT_USE_STDIO";;
11216 *) as_fn_error $?
"Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
11220 cat >>confdefs.h
<<_ACEOF
11221 #define WITH_STDIO $sim_stdio
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
11225 $as_echo "$sim_stdio" >&6; }
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
11229 $as_echo_n "checking for sim trace settings... " >&6; }
11230 sim_trace
="~TRACE_debug"
11231 # Check whether --enable-sim-trace was given.
11232 if test "${enable_sim_trace+set}" = set; then :
11233 enableval
=$enable_sim_trace; case "${enableval}" in
11234 yes) sim_trace
="-1";;
11235 no
) sim_trace
="0";;
11237 sim_trace
="'(${enableval})'";;
11240 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
11241 if test x
"$sim_trace" = x
; then
11242 sim_trace
="(TRACE_$x"
11244 sim_trace
="${sim_trace}|TRACE_$x"
11247 sim_trace
="$sim_trace)" ;;
11251 cat >>confdefs.h
<<_ACEOF
11252 #define WITH_TRACE $sim_trace
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
11256 $as_echo "$sim_trace" >&6; }
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
11260 $as_echo_n "checking for sim profile settings... " >&6; }
11263 # Check whether --enable-sim-profile was given.
11264 if test "${enable_sim_profile+set}" = set; then :
11265 enableval
=$enable_sim_profile; case "${enableval}" in
11266 yes) profile
="1" sim_profile
="-1";;
11267 no
) profile
="0" sim_profile
="0";;
11269 profile
="(${enableval})" sim_profile
="(${enableval})";;
11273 for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
11274 if test x
"$sim_profile" = x
; then
11275 sim_profile
="(PROFILE_$x"
11277 sim_profile
="${sim_profile}|PROFILE_$x"
11280 sim_profile
="$sim_profile)" ;;
11284 cat >>confdefs.h
<<_ACEOF
11285 #define PROFILE $profile
11289 cat >>confdefs.h
<<_ACEOF
11290 #define WITH_PROFILE $sim_profile
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
11294 $as_echo "$sim_profile" >&6; }
11298 sim_inline
="-DDEFAULT_INLINE=0"
11299 # Check whether --enable-sim-inline was given.
11300 if test "${enable_sim_inline+set}" = set; then :
11301 enableval
=$enable_sim_inline; sim_inline
=""
11302 case "$enableval" in
11303 no
) sim_inline
="-DDEFAULT_INLINE=0";;
11304 0) sim_inline
="-DDEFAULT_INLINE=0";;
11305 yes |
2) sim_inline
="-DDEFAULT_INLINE=ALL_C_INLINE";;
11306 1) sim_inline
="-DDEFAULT_INLINE=INLINE_LOCALS";;
11307 *) for x
in `echo "$enableval" | sed -e "s/,/ /g"`; do
11310 *_INLINE
=*) new_flag
="-D$x";;
11311 *=*) new_flag
=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
11312 *_INLINE
) new_flag
="-D$x=ALL_C_INLINE";;
11313 *) new_flag
="-D$x""_INLINE=ALL_C_INLINE";;
11315 if test x
"$sim_inline" = x
""; then
11316 sim_inline
="$new_flag"
11318 sim_inline
="$sim_inline $new_flag"
11322 if test x
"$silent" != x
"yes" && test x
"$sim_inline" != x
""; then
11323 echo "Setting inline flags = $sim_inline" 6>&1
11330 # Check whether --with-pkgversion was given.
11331 if test "${with_pkgversion+set}" = set; then :
11332 withval
=$with_pkgversion; case "$withval" in
11333 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
11335 *) PKGVERSION
="($withval) " ;;
11338 PKGVERSION
="(SIM) "
11346 # Check whether --with-bugurl was given.
11347 if test "${with_bugurl+set}" = set; then :
11348 withval
=$with_bugurl; case "$withval" in
11349 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
11352 *) BUGURL
="$withval"
11356 BUGURL
="https://www.gnu.org/software/gdb/bugs/"
11366 REPORT_BUGS_TO
="<$BUGURL>"
11367 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
11374 cat >>confdefs.h
<<_ACEOF
11375 #define PKGVERSION "$PKGVERSION"
11379 cat >>confdefs.h
<<_ACEOF
11380 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
11387 wire_alignment
="NONSTRICT_ALIGNMENT"
11388 default_alignment
=""
11390 # Check whether --enable-sim-alignment was given.
11391 if test "${enable_sim_alignment+set}" = set; then :
11392 enableval
=$enable_sim_alignment; case "${enableval}" in
11393 strict | STRICT
) sim_alignment
="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
11394 nonstrict | NONSTRICT
) sim_alignment
="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
11395 forced | FORCED
) sim_alignment
="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
11396 yes) if test x
"$wire_alignment" != x
; then
11397 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
11399 if test x
"$default_alignment" != x
; then
11400 sim_alignment
="-DWITH_ALIGNMENT=${default_alignment}"
11402 echo "No hard-wired alignment for target $target" 1>&6
11403 sim_alignment
="-DWITH_ALIGNMENT=0"
11406 no
) if test x
"$default_alignment" != x
; then
11407 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
11409 if test x
"$wire_alignment" != x
; then
11410 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
11412 echo "No default alignment for target $target" 1>&6
11413 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=0"
11416 *) as_fn_error $?
"\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment
="";;
11418 if test x
"$silent" != x
"yes" && test x
"$sim_alignment" != x
""; then
11419 echo "Setting alignment flags = $sim_alignment" 6>&1
11422 if test x
"$default_alignment" != x
; then
11423 sim_alignment
="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
11425 if test x
"$wire_alignment" != x
; then
11426 sim_alignment
="-DWITH_ALIGNMENT=${wire_alignment}"
11434 # Check whether --enable-werror was given.
11435 if test "${enable_werror+set}" = set; then :
11436 enableval
=$enable_werror; case "${enableval}" in
11437 yes | y
) ERROR_ON_WARNING
="yes" ;;
11438 no | n
) ERROR_ON_WARNING
="no" ;;
11439 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11444 # Enable -Werror by default when using gcc
11445 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11446 ERROR_ON_WARNING
=yes
11451 build_warnings
="-Wall -Wdeclaration-after-statement -Wpointer-arith \
11453 -Wno-unused -Wunused-value -Wunused-function \
11454 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes
11455 -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
11456 -Wold-style-declaration -Wold-style-definition"
11458 # Enable -Wno-format by default when using gcc on mingw since many
11459 # GCC versions complain about %I64.
11461 *-*-mingw32*) build_warnings
="$build_warnings -Wno-format" ;;
11462 *) build_warnings
="$build_warnings -Wformat-nonliteral" ;;
11465 # Check whether --enable-build-warnings was given.
11466 if test "${enable_build_warnings+set}" = set; then :
11467 enableval
=$enable_build_warnings; case "${enableval}" in
11469 no
) build_warnings
="-w";;
11470 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
11471 build_warnings
="${build_warnings} ${t}";;
11472 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
11473 build_warnings
="${t} ${build_warnings}";;
11474 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11476 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
11477 echo "Setting compiler warning flags = $build_warnings" 6>&1
11480 # Check whether --enable-sim-build-warnings was given.
11481 if test "${enable_sim_build_warnings+set}" = set; then :
11482 enableval
=$enable_sim_build_warnings; case "${enableval}" in
11484 no
) build_warnings
="-w";;
11485 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
11486 build_warnings
="${build_warnings} ${t}";;
11487 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
11488 build_warnings
="${t} ${build_warnings}";;
11489 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11491 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
11492 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
11496 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
11499 $as_echo_n "checking compiler warning flags... " >&6; }
11500 # Separate out the -Werror flag as some files just cannot be
11501 # compiled with it enabled.
11502 for w
in ${build_warnings}; do
11504 -Werr*) WERROR_CFLAGS
=-Werror ;;
11505 *) # Check that GCC accepts it
11506 saved_CFLAGS
="$CFLAGS"
11507 CFLAGS
="$CFLAGS -Werror $w"
11508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11509 /* end confdefs.h. */
11519 if ac_fn_c_try_compile
"$LINENO"; then :
11520 WARN_CFLAGS
="${WARN_CFLAGS} $w"
11522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11523 CFLAGS
="$saved_CFLAGS"
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
11527 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
11531 default_sim_reserved_bits="1"
11532 # Check whether --enable-sim-reserved-bits was given.
11533 if test "${enable_sim_reserved_bits+set}" = set; then :
11534 enableval=$enable_sim_reserved_bits; case "${enableval}" in
11535 yes) sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
11536 no) sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
11537 *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value
\"" "$LINENO" 5; sim_reserved_bits="";;
11539 if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
11540 echo "Setting reserved flags
= $sim_reserved_bits" 6>&1
11543 sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
11549 # Instead of defining a `subtarget' macro, code should be checking
11550 # the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
11553 case "${target}" in
11554 mips64vr*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1" ;;
11555 mips*tx39*) SIM_SUBTARGET="-DSUBTARGET_R3900=1";;
11556 mips*-sde-elf*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
11557 mips*-mti-elf*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
11558 mipsisa32*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
11559 mipsisa64*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
11560 *) SIM_SUBTARGET="";;
11567 # Select the byte order of the target
11571 case "${target}" in
11572 mips64el*-*-*) mips_endian=LITTLE ;;
11573 mips64vr*el-*-*) default_endian=LITTLE ;;
11574 mips64*-*-*) default_endian=BIG ;;
11575 mips16*-*-*) default_endian=BIG ;;
11576 mipsisa32*-*-*) default_endian=BIG ;;
11577 mipsisa64*-*-*) default_endian=BIG ;;
11578 mips*-*-*) default_endian=BIG ;;
11579 *) default_endian=BIG ;;
11582 wire_endian="$mips_endian"
11583 default_endian="$default_endian"
11584 # Check whether --enable-sim-endian was given.
11585 if test "${enable_sim_endian+set}" = set; then :
11586 enableval=$enable_sim_endian; case "${enableval}" in
11587 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_BIG
";;
11588 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_LITTLE
";;
11589 yes) if test x"$wire_endian" != x; then
11590 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_
${wire_endian}"
11592 if test x"$default_endian" != x; then
11593 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_
${default_endian}"
11595 echo "No hard-wired endian
for target
$target" 1>&6
11596 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_UNKNOWN
"
11599 no) if test x"$default_endian" != x; then
11600 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_
${default_endian}"
11602 if test x"$wire_endian" != x; then
11603 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_
${wire_endian}"
11605 echo "No default endian
for target
$target" 1>&6
11606 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_UNKNOWN
"
11609 *) as_fn_error $? "\"Unknown value
$enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
11611 if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
11612 echo "Setting endian flags
= $sim_endian" 6>&1
11615 if test x"$default_endian" != x; then
11616 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_
${default_endian}"
11618 if test x"$wire_endian" != x; then
11619 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_
${wire_endian}"
11630 # Select the bitsize of the target
11633 case "${target}" in
11634 mips*-sde-elf*) mips_bitsize=64 ; mips_msb=63 ;;
11635 mips*-mti-elf*) mips_bitsize=64 ; mips_msb=63 ;;
11636 mips64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
11637 mips16*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
11638 mipsisa32*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
11639 mipsisa64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
11640 mips*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
11641 *) mips_bitsize=64 ; mips_msb=63 ;;
11643 wire_word_bitsize="$mips_bitsize"
11644 wire_word_msb="$mips_msb"
11645 wire_address_bitsize="$mips_addr_bitsize"
11646 wire_cell_bitsize=""
11647 # Check whether --enable-sim-bitsize was given.
11648 if test "${enable_sim_bitsize+set}" = set; then :
11649 enableval=$enable_sim_bitsize; sim_bitsize=
11650 case "${enableval}" in
11651 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
11652 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
11653 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
11654 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
11655 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
11656 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
11658 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
11660 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
11661 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
11663 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
11665 *) as_fn_error $? "\"--enable-sim-bitsize was given
$enableval. Expected
32 or
64\"" "$LINENO" 5 ;;
11668 tmp=`echo "${enableval}" | sed -e "s
/^
[0-9]*,*[0-9]*,*//"`
11671 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
11672 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
11673 * ) as_fn_error $? "\"--enable-sim-bitsize was given address size
$enableval. Expected
32 or
64\"" "$LINENO" 5 ;;
11676 tmp=`echo "${enableval}" | sed -e "s
/^
[0-9]*,*[0-9*]*,*[0-9]*,*//"`
11679 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
11680 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
11681 * ) as_fn_error $? "\"--enable-sim-bitsize was given cell size
$enableval. Expected
32 or
64\"" "$LINENO" 5 ;;
11683 if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
11684 echo "Setting bitsize flags
= $sim_bitsize" 6>&1
11688 if test x"$wire_word_bitsize" != x; then
11689 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
11691 if test x"$wire_word_msb" != x; then
11692 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
11694 if test x"$wire_address_bitsize" != x; then
11695 sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
11697 if test x"$wire_cell_bitsize" != x; then
11698 sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
11706 # Select the floating hardware support of the target
11708 mips_fpu=HARDWARE_FLOATING_POINT
11710 case "${target}" in
11711 mips*tx39*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
11712 mips*-sde-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
11713 mips*-mti-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
11714 mips64*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
11715 mips16*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
11716 mipsisa32*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
11717 mipsisa64*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
11718 mips*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
11719 *) mips_fpu=HARD_FLOATING_POINT ;;
11722 default_sim_float="$mips_fpu"
11723 default_sim_float_bitsize="$mips_fpu_bitsize"
11724 # Check whether --enable-sim-float was given.
11725 if test "${enable_sim_float+set}" = set; then :
11726 enableval=$enable_sim_float; case "${enableval}" in
11727 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT
";;
11728 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT
";;
11729 32) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT
-DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
11730 64) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT
-DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
11731 *) as_fn_error $? "\"Unknown value
$enableval passed to
--enable-sim-float\"" "$LINENO" 5; sim_float="";;
11733 if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
11734 echo "Setting float flags
= $sim_float" 6>&1
11739 if test x"${default_sim_float}" != x""; then
11740 sim_float="-DWITH_FLOATING_POINT=${default_sim_float}"
11742 if test x"${default_sim_float_bitsize}" != x""; then
11743 sim_float="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
11752 # Select the IGEN architecture
11755 sim_igen_machine="-M mipsIV
"
11756 sim_m16_machine="-M mips16
,mipsIII
"
11757 sim_igen_filter="32,64,f
"
11758 sim_m16_filter="16"
11759 sim_mach_default="mips8000
"
11761 case "${target}" in
11762 mips*tx39*) sim_gen=IGEN
11763 sim_igen_filter="32,f
"
11764 sim_igen_machine="-M r3900
"
11766 mips64vr43*-*-*) sim_gen=IGEN
11767 sim_igen_machine="-M mipsIV
"
11768 sim_mach_default="mips8000
"
11770 mips64vr5*-*-*) sim_gen=IGEN
11771 sim_igen_machine="-M vr5000
"
11772 sim_mach_default="mips5000
"
11774 mips64vr41*) sim_gen=M16
11775 sim_igen_machine="-M vr4100
"
11776 sim_m16_machine="-M vr4100
"
11777 sim_igen_filter="32,64,f
"
11778 sim_m16_filter="16"
11779 sim_mach_default="mips4100
"
11781 mips64vr-*-* | mips64vrel-*-*)
11783 sim_multi_configs="\
11784 vr4100
:mipsIII
,mips16
,vr4100
:32,64:mips4100
,mips4111\
11785 vr4120
:mipsIII
,mips16
,vr4120
:32,64:mips4120\
11786 vr5000
:mipsIV
:32,64,f
:mips4300
,mips5000\
11787 vr5400
:mipsIV
,vr5400
:32,64,f
:mips5400\
11788 vr5500
:mipsIV
,vr5500
:32,64,f
:mips5500
"
11789 sim_multi_default=mips5000
11791 mips*-sde-elf* | mips*-mti-elf*)
11793 sim_multi_configs="\
11794 micromips
:micromips64
,micromipsdsp
:32,64,f
:mips_micromips\
11795 mips64r2
:mips64r2
,mips3d
,mips16
,mips16e
,mdmx
,dsp
,dsp2
,smartmips
:32,64,f
:mipsisa64r2
"
11796 sim_multi_default=mipsisa64r2
11798 mips64*-*-*) sim_igen_filter="32,64,f
"
11801 mips16*-*-*) sim_gen=M16
11802 sim_igen_filter="32,64,f
"
11803 sim_m16_filter="16"
11805 mipsisa32r2*-*-*) sim_gen=MULTI
11806 sim_multi_configs="\
11807 micromips
:micromips32
,micromipsdsp
:32,f
:mips_micromips\
11808 mips32r2
:mips32r2
,mips3d
,mips16
,mips16e
,mdmx
,dsp
,dsp2
,smartmips
:32,f
:mipsisa32r2
"
11809 sim_multi_default=mipsisa32r2
11811 mipsisa32*-*-*) sim_gen=M16
11812 sim_igen_machine="-M mips32
,mips16
,mips16e
,smartmips
"
11813 sim_m16_machine="-M mips16
,mips16e
,mips32
"
11814 sim_igen_filter="32,f
"
11815 sim_mach_default="mipsisa32
"
11817 mipsisa64r2*-*-*) sim_gen=M16
11818 sim_igen_machine="-M mips64r2
,mips3d
,mips16
,mips16e
,mdmx
,dsp
,dsp2
"
11819 sim_m16_machine="-M mips16
,mips16e
,mips64r2
"
11820 sim_igen_filter="32,64,f
"
11821 sim_mach_default="mipsisa64r2
"
11823 mipsisa64sb1*-*-*) sim_gen=IGEN
11824 sim_igen_machine="-M mips64
,mips3d
,sb1
"
11825 sim_igen_filter="32,64,f
"
11826 sim_mach_default="mips_sb1
"
11828 mipsisa64*-*-*) sim_gen=M16
11829 sim_igen_machine="-M mips64
,mips3d
,mips16
,mips16e
,mdmx
"
11830 sim_m16_machine="-M mips16
,mips16e
,mips64
"
11831 sim_igen_filter="32,64,f
"
11832 sim_mach_default="mipsisa64
"
11834 mips*lsi*) sim_gen=M16
11835 sim_igen_machine="-M mipsIII
,mips16
"
11836 sim_m16_machine="-M mips16
,mipsIII
"
11837 sim_igen_filter="32,f
"
11838 sim_m16_filter="16"
11839 sim_mach_default="mips4000
"
11841 mips*-*-*) sim_gen=IGEN
11842 sim_igen_filter="32,f
"
11846 # The MULTI generator can combine several simulation engines into one.
11847 # executable. A configuration which uses the MULTI should set two
11848 # variables: ${sim_multi_configs} and ${sim_multi_default}.
11850 # ${sim_multi_configs} is the list of engines to build. Each
11851 # space-separated entry has the form NAME:MACHINE:FILTER:BFDMACHS,
11854 # - NAME is a C-compatible prefix for the engine,
11855 # - MACHINE is a -M argument,
11856 # - FILTER is a -F argument, and
11857 # - BFDMACHS is a comma-separated list of bfd machines that the
11858 # simulator can run.
11860 # Each entry will have a separate simulation engine whose prefix is
11861 # m32<NAME>. If the machine list includes "mips16
", there will also
11862 # be a mips16 engine, prefix m16<NAME>. The mips16 engine will be
11863 # generated using the same machine list as the 32-bit version,
11864 # but the filter will be "16" instead of FILTER.
11866 # The simulator compares the bfd mach against BFDMACHS to decide
11867 # which engine to use. Entries in BFDMACHS should be bfd_mach
11868 # values with "bfd_mach_
" removed. ${sim_multi_default} says
11869 # which entry should be the default.
11870 if test ${sim_gen} = MULTI; then
11872 # Simple sanity check.
11873 if test -z "${sim_multi_configs}" || test -z "${sim_multi_default}"; then
11874 as_fn_error $? "Error
in configure.ac
: MULTI simulator not
set up correctly
" "$LINENO" 5
11877 # Start in a known state.
11878 rm -f multi-include.h multi-run.c
11882 sim_multi_igen_configs=
11883 sim_seen_default=no
11885 cat << __EOF__ > multi-run.c
11886 /* Main entry point for MULTI simulators.
11887 Copyright (C) 2003-2021 Free Software Foundation, Inc.
11889 This program is free software; you can redistribute it and/or modify
11890 it under the terms of the GNU General Public License as published by
11891 the Free Software Foundation; either version 3 of the License, or
11892 (at your option) any later version.
11894 This program is distributed in the hope that it will be useful,
11895 but WITHOUT ANY WARRANTY; without even the implied warranty of
11896 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11897 GNU General Public License for more details.
11899 You should have received a copy of the GNU General Public License
11900 along with this program. If not, see <http://www.gnu.org/licenses/>.
11904 This file was generated by sim/mips/configure. */
11906 #include "sim-main.h
"
11907 #include "multi-include.h
"
11908 #include "elf-bfd.h
"
11909 #include "elf
/mips.h
"
11915 sim_engine_run (SIM_DESC sd,
11918 int signal) /* ignore */
11922 if (STATE_ARCHITECTURE (sd) == NULL)
11923 mach = bfd_mach_${sim_multi_default};
11924 else if (elf_elfheader (STATE_PROG_BFD (sd))->e_flags
11925 & EF_MIPS_ARCH_ASE_MICROMIPS)
11926 mach = bfd_mach_mips_micromips;
11928 mach = STATE_ARCHITECTURE (SD)->mach;
11934 for fc in ${sim_multi_configs}; do
11936 # Split up the entry. ${c} contains the first three elements.
11937 # Note: outer sqaure brackets are m4 quotes.
11938 c=`echo ${fc} | sed 's/:[^:]*$//'`
11939 bfdmachs=`echo ${fc} | sed 's/.*://'`
11940 name=`echo ${c} | sed 's/:.*//'`
11941 machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
11942 filter=`echo ${c} | sed 's/.*://'`
11944 # Build the following lists:
11946 # sim_multi_flags: all -M and -F flags used by the simulator
11947 # sim_multi_src: all makefile-generated source files
11948 # sim_multi_obj: the objects for ${sim_multi_src}
11949 # sim_multi_igen_configs: igen configuration strings.
11951 # Each entry in ${sim_multi_igen_configs} is a prefix (m32
11952 # or m16) followed by the NAME, MACHINE and FILTER part of
11953 # the ${sim_multi_configs} entry.
11954 sim_multi_flags="${sim_multi_flags} -F ${filter} -M ${machine}"
11956 # Check whether special handling is needed.
11959 # Run igen twice, once for normal mode and once for mips16.
11962 # The top-level function for the mips16 simulator is
11963 # in a file m16${name}_run.c, generated by the
11964 # tmp-run-multi Makefile rule.
11965 sim_multi_src="${sim_multi_src} m16
${name}_run.c
"
11966 sim_multi_obj="${sim_multi_obj} m16
${name}_run.o
"
11967 sim_multi_flags="${sim_multi_flags} -F 16"
11970 # Run igen thrice, once for micromips32, once for micromips16,
11971 # and once for m32.
11972 ws="micromips_m32 micromips16 micromips32
"
11974 # The top-level function for the micromips simulator is
11975 # in a file micromips${name}_run.c, generated by the
11976 # tmp-run-multi Makefile rule.
11977 sim_multi_src="${sim_multi_src} micromips
${name}_run.c
"
11978 sim_multi_obj="${sim_multi_obj} micromips
${name}_run.o
"
11979 sim_multi_flags="${sim_multi_flags} -F 16,32"
11982 # Run igen thrice, once for micromips64, once for micromips16,
11983 # and once for m64.
11984 ws="micromips_m64 micromips16 micromips64
"
11986 # The top-level function for the micromips simulator is
11987 # in a file micromips${name}_run.c, generated by the
11988 # tmp-run-multi Makefile rule.
11989 sim_multi_src="${sim_multi_src} micromips
${name}_run.c
"
11990 sim_multi_obj="${sim_multi_obj} micromips
${name}_run.o
"
11991 sim_multi_flags="${sim_multi_flags} -F 16,32,64"
11998 # Now add the list of igen-generated files to ${sim_multi_src}
11999 # and ${sim_multi_obj}.
12001 for base in engine icache idecode model semantics support; do
12002 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.c
"
12003 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.h
"
12004 sim_multi_obj="${sim_multi_obj} ${w}${name}_${base}.o
"
12006 sim_multi_igen_configs="${sim_multi_igen_configs} ${w}${c}"
12009 # Add an include for the engine.h file. This file declares the
12010 # top-level foo_engine_run() function.
12011 echo "#include \"${w}${name}_engine.h\"" >> multi-include.h
12013 # Add case statements for this engine to sim_engine_run().
12014 for mach
in `echo ${bfdmachs} | sed 's/,/ /g'`; do
12015 echo " case bfd_mach_${mach}:" >> multi-run.c
12016 if test ${mach} = ${sim_multi_default}; then
12017 echo " default:" >> multi-run.c
12018 sim_seen_default
=yes
12021 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
12023 echo " break;" >> multi-run.c
12026 # Check whether we added a 'default:' label.
12027 if test ${sim_seen_default} = no
; then
12028 as_fn_error $?
"Error in configure.ac: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" "$LINENO" 5
12031 cat << __EOF__ >> multi-run.c
12036 mips_mach_multi (SIM_DESC sd)
12038 if (STATE_ARCHITECTURE (sd) == NULL)
12039 return bfd_mach_${sim_multi_default};
12041 switch (STATE_ARCHITECTURE (SD)->mach)
12045 # Add case statements for this engine to mips_mach_multi().
12046 for fc in ${sim_multi_configs}; do
12048 # Split up the entry. ${c} contains the first three elements.
12049 # Note: outer sqaure brackets are m4 quotes.
12050 c
=`echo ${fc} | sed 's/:[^:]*$//'`
12051 bfdmachs
=`echo ${fc} | sed 's/.*://'`
12053 for mach
in `echo ${bfdmachs} | sed 's/,/ /g'`; do
12054 echo " case bfd_mach_${mach}:" >> multi-run.c
12058 cat << __EOF__ >> multi-run.c
12059 return (STATE_ARCHITECTURE (SD)->mach);
12061 return bfd_mach_${sim_multi_default};
12066 SIM_SUBTARGET
="$SIM_SUBTARGET -DMIPS_MACH_MULTI"
12069 sim_multi_src
=doesnt-exist.c
12071 if test x
"${sim_mach_default}" = x
""; then
12072 as_fn_error $?
"Error in configure.ac: \${sim_mach_default} not defined" "$LINENO" 5
12074 SIM_SUBTARGET
="$SIM_SUBTARGET -DMIPS_MACH_DEFAULT=bfd_mach_${sim_mach_default}"
12076 sim_igen_flags
="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
12077 sim_m16_flags
=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
12078 sim_micromips16_flags
=" -F ${sim_micromips16_filter} ${sim_micromips16_machine} ${sim_igen_smp}"
12079 sim_micromips_flags
=" -F ${sim_micromips_filter} ${sim_micromips_machine} ${sim_igen_smp}"
12090 # Add simulated hardware devices
12093 hardware
="cfi core pal glue tx3904cpu tx3904irc tx3904tmr tx3904sio"
12094 sim_hw_cflags
="-DWITH_HW=1"
12096 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
12098 # Check whether --enable-sim-hardware was given.
12099 if test "${enable_sim_hardware+set}" = set; then :
12100 enableval
=$enable_sim_hardware;
12102 enable_sim_hardware
="yes"
12105 case ${enable_sim_hardware} in
12107 ,*) hardware
="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
12108 *,) hardware
="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
12109 *) hardware
="`echo ${enableval} | sed -e 's/,/ /'`"'';;
12112 if test "$enable_sim_hardware" = no
; then
12114 sim_hw_cflags
="-DWITH_HW=0"
12117 sim_hw_cflags
="-DWITH_HW=1"
12118 # remove duplicates
12120 sim_hw_objs
="\$(SIM_COMMON_HW_OBJS)"
12121 for i
in $hardware ; do
12122 case " $sim_hw " in
12124 *) sim_hw
="$sim_hw $i" ; sim_hw_objs
="$sim_hw_objs dv-$i.o";;
12127 # mingw does not support sockser
12130 *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
12131 # that you instatiate. Instead, other code will call into it directly.
12132 # At some point, we should convert it over.
12133 sim_hw_objs
="$sim_hw_objs dv-sockser.o"
12135 cat >>confdefs.h
<<_ACEOF
12136 #define HAVE_DV_SOCKSER 1
12141 if test x
"$silent" != x
"yes"; then
12142 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
12144 case " $hardware " in
12145 *" cfi "*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
12146 $as_echo_n "checking for log2 in -lm... " >&6; }
12147 if ${ac_cv_lib_m_log2+:} false
; then :
12148 $as_echo_n "(cached) " >&6
12150 ac_check_lib_save_LIBS
=$LIBS
12152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12153 /* end confdefs.h. */
12155 /* Override any GCC internal prototype to avoid an error.
12156 Use char because int might match the return type of a GCC
12157 builtin and then its argument prototype would still apply. */
12170 if ac_fn_c_try_link
"$LINENO"; then :
12171 ac_cv_lib_m_log2
=yes
12173 ac_cv_lib_m_log2
=no
12175 rm -f core conftest.err conftest.
$ac_objext \
12176 conftest
$ac_exeext conftest.
$ac_ext
12177 LIBS
=$ac_check_lib_save_LIBS
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
12180 $as_echo "$ac_cv_lib_m_log2" >&6; }
12181 if test "x$ac_cv_lib_m_log2" = xyes
; then :
12182 cat >>confdefs.h
<<_ACEOF
12183 #define HAVE_LIBM 1
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
12196 $as_echo_n "checking for X... " >&6; }
12199 # Check whether --with-x was given.
12200 if test "${with_x+set}" = set; then :
12204 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12205 if test "x$with_x" = xno
; then
12206 # The user explicitly disabled X.
12209 case $x_includes,$x_libraries in #(
12210 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
12211 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
12212 $as_echo_n "(cached) " >&6
12214 # One or both of the vars are not set, and there is no cached value.
12215 ac_x_includes
=no ac_x_libraries
=no
12216 rm -f -r conftest.dir
12217 if mkdir conftest.dir
; then
12219 cat >Imakefile
<<'_ACEOF'
12221 @echo incroot='${INCROOT}'
12223 @echo usrlibdir='${USRLIBDIR}'
12225 @echo libdir='${LIBDIR}'
12227 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
12228 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12229 for ac_var
in incroot usrlibdir libdir
; do
12230 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
12232 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
12233 for ac_extension
in a so sl dylib la dll
; do
12234 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
12235 test -f "$ac_im_libdir/libX11.$ac_extension"; then
12236 ac_im_usrlibdir
=$ac_im_libdir; break
12239 # Screen out bogus values from the imake configuration. They are
12240 # bogus both because they are the default anyway, and because
12241 # using them would break gcc on systems where it needs fixed includes.
12242 case $ac_im_incroot in
12243 /usr
/include
) ac_x_includes
= ;;
12244 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
12246 case $ac_im_usrlibdir in
12247 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
12248 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
12252 rm -f -r conftest.dir
12255 # Standard set of common directories for X headers.
12256 # Check X11 before X11Rn because it is often a symlink to the current release.
12270 /usr/local/X11/include
12271 /usr/local/X11R7/include
12272 /usr/local/X11R6/include
12273 /usr/local/X11R5/include
12274 /usr/local/X11R4/include
12276 /usr/local/include/X11
12277 /usr/local/include/X11R7
12278 /usr/local/include/X11R6
12279 /usr/local/include/X11R5
12280 /usr/local/include/X11R4
12284 /usr/XFree86/include/X11
12288 /usr/unsupported/include
12289 /usr/athena/include
12290 /usr/local/x11r5/include
12291 /usr/lpp/Xamples/include
12293 /usr/openwin/include
12294 /usr/openwin/share/include'
12296 if test "$ac_x_includes" = no
; then
12297 # Guess where to find include files, by looking for Xlib.h.
12298 # First, try using that file with no special directory specified.
12299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12300 /* end confdefs.h. */
12301 #include <X11/Xlib.h>
12303 if ac_fn_c_try_cpp
"$LINENO"; then :
12304 # We can compile using X headers with no special include directory.
12307 for ac_dir
in $ac_x_header_dirs; do
12308 if test -r "$ac_dir/X11/Xlib.h"; then
12309 ac_x_includes
=$ac_dir
12314 rm -f conftest.err conftest.i conftest.
$ac_ext
12315 fi # $ac_x_includes = no
12317 if test "$ac_x_libraries" = no
; then
12318 # Check for the libraries.
12319 # See if we find them without any special options.
12320 # Don't add to $LIBS permanently.
12323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12324 /* end confdefs.h. */
12325 #include <X11/Xlib.h>
12334 if ac_fn_c_try_link
"$LINENO"; then :
12336 # We can link X programs with no special library path.
12340 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
12342 # Don't even attempt the hair of trying to link an X program!
12343 for ac_extension
in a so sl dylib la dll
; do
12344 if test -r "$ac_dir/libX11.$ac_extension"; then
12345 ac_x_libraries
=$ac_dir
12351 rm -f core conftest.err conftest.
$ac_objext \
12352 conftest
$ac_exeext conftest.
$ac_ext
12353 fi # $ac_x_libraries = no
12355 case $ac_x_includes,$ac_x_libraries in #(
12356 no
,* |
*,no |
*\'*)
12357 # Didn't find X, or a directory has "'" in its name.
12358 ac_cv_have_x
="have_x=no";; #(
12360 # Record where we found X for the cache.
12361 ac_cv_have_x
="have_x=yes\
12362 ac_x_includes='$ac_x_includes'\
12363 ac_x_libraries='$ac_x_libraries'"
12369 eval "$ac_cv_have_x"
12372 if test "$have_x" != yes; then
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
12374 $as_echo "$have_x" >&6; }
12377 # If each of the values was on the command line, it overrides each guess.
12378 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
12379 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
12380 # Update the cache value to reflect the command line values.
12381 ac_cv_have_x
="have_x=yes\
12382 ac_x_includes='$x_includes'\
12383 ac_x_libraries='$x_libraries'"
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
12385 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
12390 $as_echo_n "checking for fabs in -lm... " >&6; }
12391 if ${ac_cv_lib_m_fabs+:} false
; then :
12392 $as_echo_n "(cached) " >&6
12394 ac_check_lib_save_LIBS
=$LIBS
12396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12397 /* end confdefs.h. */
12399 /* Override any GCC internal prototype to avoid an error.
12400 Use char because int might match the return type of a GCC
12401 builtin and then its argument prototype would still apply. */
12414 if ac_fn_c_try_link
"$LINENO"; then :
12415 ac_cv_lib_m_fabs
=yes
12417 ac_cv_lib_m_fabs
=no
12419 rm -f core conftest.err conftest.
$ac_objext \
12420 conftest
$ac_exeext conftest.
$ac_ext
12421 LIBS
=$ac_check_lib_save_LIBS
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
12424 $as_echo "$ac_cv_lib_m_fabs" >&6; }
12425 if test "x$ac_cv_lib_m_fabs" = xyes
; then :
12426 cat >>confdefs.h
<<_ACEOF
12427 #define HAVE_LIBM 1
12437 if grep CGEN_MAINT
$srcdir/Makefile.
in >/dev
/null
; then
12438 cgen_breaks
="break cgen_rtx_error";
12441 ac_config_files
="$ac_config_files Makefile.sim:Makefile.in"
12443 ac_config_files
="$ac_config_files Make-common.sim:../common/Make-common.in"
12445 ac_config_files
="$ac_config_files .gdbinit:../common/gdbinit.in"
12447 ac_config_commands
="$ac_config_commands Makefile"
12449 ac_config_commands
="$ac_config_commands stamp-h"
12463 cat >confcache
<<\_ACEOF
12464 # This file is a shell script that caches the results of configure
12465 # tests run on this system so they can be shared between configure
12466 # scripts and configure runs, see configure's option --config-cache.
12467 # It is not useful on other systems. If it contains results you don't
12468 # want to keep, you may remove or edit it.
12470 # config.status only pays attention to the cache file if you give it
12471 # the --recheck option to rerun configure.
12473 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12474 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12475 # following values.
12479 # The following way of writing the cache mishandles newlines in values,
12480 # but we know of no workaround that is simple, portable, and efficient.
12481 # So, we kill variables containing newlines.
12482 # Ultrix sh set writes to stderr and can't be redirected directly,
12483 # and sets the high bit in the cache file unless we assign to the vars.
12485 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12486 eval ac_val
=\$
$ac_var
12490 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12491 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12494 _ | IFS | as_nl
) ;; #(
12495 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
12496 *) { eval $ac_var=; unset $ac_var;} ;;
12502 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12503 *${as_nl}ac_space
=\
*)
12504 # `set' does not quote correctly, so add quotes: double-quote
12505 # substitution turns \\\\ into \\, and sed turns \\ into \.
12508 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12511 # `set' quotes correctly as required by POSIX, so do not add quotes.
12512 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12521 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12523 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12525 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
12526 if test -w "$cache_file"; then
12527 if test "x$cache_file" != "x/dev/null"; then
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12529 $as_echo "$as_me: updating cache $cache_file" >&6;}
12530 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
12531 cat confcache
>"$cache_file"
12533 case $cache_file in #(
12535 mv -f confcache
"$cache_file"$$
&&
12536 mv -f "$cache_file"$$
"$cache_file" ;; #(
12538 mv -f confcache
"$cache_file" ;;
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12544 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12549 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12550 # Let make expand exec_prefix.
12551 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12553 DEFS
=-DHAVE_CONFIG_H
12558 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
12559 # 1. Remove the extension, and $U if already installed.
12560 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
12561 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
12562 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12563 # will be set to the directory where LIBOBJS objects are built.
12564 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12565 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
12567 LIBOBJS
=$ac_libobjs
12569 LTLIBOBJS
=$ac_ltlibobjs
12573 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
12574 as_fn_error $?
"conditional \"PLUGINS\" was never defined.
12575 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12577 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12578 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
12579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12582 : "${CONFIG_STATUS=./config.status}"
12584 ac_clean_files_save
=$ac_clean_files
12585 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12587 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12589 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12591 # Generated by $as_me.
12592 # Run this file to recreate the current configuration.
12593 # Compiler output produced by configure, useful for debugging
12594 # configure, is in config.log if it exists.
12597 ac_cs_recheck=false
12600 SHELL=\${CONFIG_SHELL-$SHELL}
12603 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
12604 ## -------------------- ##
12605 ## M4sh Initialization. ##
12606 ## -------------------- ##
12608 # Be more Bourne compatible
12609 DUALCASE
=1; export DUALCASE
# for MKS sh
12610 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
12613 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12614 # is contrary to our usage. Disable this feature.
12615 alias -g '${1+"$@"}'='"$@"'
12616 setopt NO_GLOB_SUBST
12618 case `(set -o) 2>/dev/null` in #(
12630 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12631 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12632 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12633 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12634 # Prefer a ksh shell builtin over an external printf program on Solaris,
12635 # but without wasting forks for bash or zsh.
12636 if test -z "$BASH_VERSION$ZSH_VERSION" \
12637 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12638 as_echo='print
-r --'
12639 as_echo_n='print
-rn --'
12640 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12641 as_echo='printf %s
\n'
12642 as_echo_n='printf %s
'
12644 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12645 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
12646 as_echo_n='/usr
/ucb
/echo -n'
12648 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12649 as_echo_n_body='eval
12653 expr "X$arg" : "X\\(.*\\)$as_nl";
12654 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12656 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
12658 export as_echo_n_body
12659 as_echo_n='sh
-c $as_echo_n_body as_echo
'
12661 export as_echo_body
12662 as_echo='sh
-c $as_echo_body as_echo
'
12665 # The user is always right.
12666 if test "${PATH_SEPARATOR+set}" != set; then
12668 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12669 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12676 # We need space, tab and new line, in precisely that order. Quoting is
12677 # there to prevent editors from complaining about space-tab.
12678 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12679 # splitting by setting IFS to empty value.)
12682 # Find who we are. Look in the path if we contain no directory separator.
12685 *[\\/]* ) as_myself=$0 ;;
12686 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12687 for as_dir in $PATH
12690 test -z "$as_dir" && as_dir=.
12691 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12697 # We did not find ourselves, most probably we were run as `sh COMMAND'
12698 # in which case we are not to be found in the path.
12699 if test "x$as_myself" = x
; then
12702 if test ! -f "$as_myself"; then
12703 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12707 # Unset variables that we do not need and which cause bugs (e.g. in
12708 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12709 # suppresses any "Segmentation fault" message there. '((' could
12710 # trigger a bug in pdksh 5.2.14.
12711 for as_var
in BASH_ENV ENV MAIL MAILPATH
12712 do eval test x\
${$as_var+set} = xset \
12713 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
12726 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
12729 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12730 # ----------------------------------------
12731 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12732 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12733 # script with STATUS, using 1 if that was 0.
12736 as_status
=$1; test $as_status -eq 0 && as_status
=1
12738 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
12739 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12741 $as_echo "$as_me: error: $2" >&2
12742 as_fn_exit
$as_status
12746 # as_fn_set_status STATUS
12747 # -----------------------
12748 # Set $? to STATUS, without forking.
12749 as_fn_set_status
()
12752 } # as_fn_set_status
12754 # as_fn_exit STATUS
12755 # -----------------
12756 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12760 as_fn_set_status
$1
12766 # Portably unset VAR.
12769 { eval $1=; unset $1;}
12771 as_unset
=as_fn_unset
12772 # as_fn_append VAR VALUE
12773 # ----------------------
12774 # Append the text in VALUE to the end of the definition contained in VAR. Take
12775 # advantage of any shell optimizations that allow amortized linear growth over
12776 # repeated appends, instead of the typical quadratic growth present in naive
12778 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
12779 eval 'as_fn_append ()
12790 # as_fn_arith ARG...
12791 # ------------------
12792 # Perform arithmetic evaluation on the ARGs, and store the result in the
12793 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12794 # must be portable across $(()) and expr.
12795 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
12796 eval 'as_fn_arith ()
12803 as_val
=`expr "$@" || test $? -eq 1`
12808 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
12809 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
12815 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12816 as_basename
=basename
12821 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
12827 as_me
=`$as_basename -- "$0" ||
12828 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12829 X"$0" : 'X\(//\)$' \| \
12830 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12832 sed '/^.*\/\([^/][^/]*\)\/*$/{
12846 # Avoid depending upon Character Ranges.
12847 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
12848 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12849 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
12850 as_cr_digits
='0123456789'
12851 as_cr_alnum
=$as_cr_Letters$as_cr_digits
12853 ECHO_C
= ECHO_N
= ECHO_T
=
12854 case `echo -n x` in #(((((
12856 case `echo 'xy\c'` in
12857 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
12859 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
12866 rm -f conf$$ conf$$.exe conf$$.
file
12867 if test -d conf$$.dir
; then
12868 rm -f conf$$.dir
/conf$$.
file
12871 mkdir conf$$.dir
2>/dev
/null
12873 if (echo >conf$$.
file) 2>/dev
/null
; then
12874 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
12876 # ... but there are two gotchas:
12877 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12878 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12879 # In both cases, we have to default to `cp -pR'.
12880 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
12882 elif ln conf$$.
file conf$$
2>/dev
/null
; then
12890 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
12891 rmdir conf$$.dir
2>/dev
/null
12896 # Create "$as_dir" as a directory, including parents if necessary.
12901 -*) as_dir
=.
/$as_dir;;
12903 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
12907 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12908 *) as_qdir
=$as_dir;;
12910 as_dirs
="'$as_qdir' $as_dirs"
12911 as_dir
=`$as_dirname -- "$as_dir" ||
12912 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12913 X"$as_dir" : 'X\(//\)[^/]' \| \
12914 X"$as_dir" : 'X\(//\)$' \| \
12915 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12916 $as_echo X"$as_dir" |
12917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12921 /^X\(\/\/\)[^/].*/{
12934 test -d "$as_dir" && break
12936 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
12937 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
12941 if mkdir
-p .
2>/dev
/null
; then
12942 as_mkdir_p
='mkdir -p "$as_dir"'
12944 test -d .
/-p && rmdir .
/-p
12949 # as_fn_executable_p FILE
12950 # -----------------------
12951 # Test if FILE is an executable regular file.
12952 as_fn_executable_p
()
12954 test -f "$1" && test -x "$1"
12955 } # as_fn_executable_p
12956 as_test_x
='test -x'
12957 as_executable_p
=as_fn_executable_p
12959 # Sed expression to map a string onto a valid CPP name.
12960 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12962 # Sed expression to map a string onto a valid variable name.
12963 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12967 ## ----------------------------------- ##
12968 ## Main body of $CONFIG_STATUS script. ##
12969 ## ----------------------------------- ##
12971 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
12973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12974 # Save the log message, to keep $0 and so on meaningful, and to
12975 # report actual input values of CONFIG_FILES etc. instead of their
12976 # values after options handling.
12978 This file was extended by $as_me, which was
12979 generated by GNU Autoconf 2.69. Invocation command line was
12981 CONFIG_FILES = $CONFIG_FILES
12982 CONFIG_HEADERS = $CONFIG_HEADERS
12983 CONFIG_LINKS = $CONFIG_LINKS
12984 CONFIG_COMMANDS = $CONFIG_COMMANDS
12987 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12992 case $ac_config_files in *"
12993 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
12996 case $ac_config_headers in *"
12997 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
13001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13002 # Files that config.status was made for.
13003 config_files="$ac_config_files"
13004 config_headers="$ac_config_headers"
13005 config_commands="$ac_config_commands"
13009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13011 \`$as_me' instantiates files and other configuration actions
13012 from templates according to the current configuration. Unless the files
13013 and actions are specified as TAGs, all are instantiated by default.
13015 Usage: $0 [OPTION]... [TAG]...
13017 -h, --help print this help, then exit
13018 -V, --version print version number and configuration settings, then exit
13019 --config print configuration, then exit
13020 -q, --quiet, --silent
13021 do not print progress messages
13022 -d, --debug don't remove temporary files
13023 --recheck update $as_me by reconfiguring in the same conditions
13024 --file=FILE[:TEMPLATE]
13025 instantiate the configuration file FILE
13026 --header=FILE[:TEMPLATE]
13027 instantiate the configuration header FILE
13029 Configuration files:
13032 Configuration headers:
13035 Configuration commands:
13038 Report bugs to the package provider."
13041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13042 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13045 configured by $0, generated by GNU Autoconf 2.69,
13046 with options \\"\$ac_cs_config\\"
13048 Copyright (C) 2012 Free Software Foundation, Inc.
13049 This config.status script is free software; the Free Software Foundation
13050 gives unlimited permission to copy, distribute and modify it."
13056 test -n "\$AWK" || AWK=awk
13059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13060 # The default lists apply if the user does not specify any file.
13066 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
13067 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
13071 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
13083 # Handling of the options.
13084 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
13086 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
13087 $as_echo "$ac_cs_version"; exit ;;
13088 --config |
--confi |
--conf |
--con |
--co |
--c )
13089 $as_echo "$ac_cs_config"; exit ;;
13090 --debug |
--debu |
--deb |
--de |
--d |
-d )
13092 --file |
--fil |
--fi |
--f )
13095 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13096 '') as_fn_error $?
"missing file argument" ;;
13098 as_fn_append CONFIG_FILES
" '$ac_optarg'"
13099 ac_need_defaults
=false
;;
13100 --header |
--heade |
--head |
--hea )
13103 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13105 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
13106 ac_need_defaults
=false
;;
13108 # Conflict between --help and --header
13109 as_fn_error $?
"ambiguous option: \`$1'
13110 Try \`$0 --help' for more information.";;
13111 --help |
--hel |
-h )
13112 $as_echo "$ac_cs_usage"; exit ;;
13113 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
13114 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
13117 # This is an error.
13118 -*) as_fn_error $?
"unrecognized option: \`$1'
13119 Try \`$0 --help' for more information." ;;
13121 *) as_fn_append ac_config_targets
" $1"
13122 ac_need_defaults
=false
;;
13128 ac_configure_extra_args
=
13130 if $ac_cs_silent; then
13132 ac_configure_extra_args
="$ac_configure_extra_args --silent"
13136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13137 if \$ac_cs_recheck; then
13138 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13140 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13141 CONFIG_SHELL='$SHELL'
13142 export CONFIG_SHELL
13147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13151 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13152 ## Running $as_me. ##
13158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13162 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
13165 # The HP-UX ksh and POSIX shell print the target directory to stdout
13166 # if CDPATH is set.
13167 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13169 sed_quote_subst='$sed_quote_subst'
13170 double_quote_subst='$double_quote_subst'
13171 delay_variable_subst='$delay_variable_subst'
13172 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13173 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13174 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13175 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13176 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13177 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13178 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13179 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13180 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13181 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13182 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13183 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13184 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13185 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13186 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13187 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13188 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13189 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13190 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13191 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13192 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13193 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13194 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13195 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13196 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13197 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13198 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13199 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13200 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13201 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13202 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13203 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13204 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13205 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13206 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13207 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13208 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13209 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13210 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13211 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13212 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13213 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13214 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13215 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13216 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13217 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13218 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13219 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13220 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"`'
13221 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13222 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13223 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13224 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13225 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13226 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13227 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13228 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13229 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13230 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13231 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13232 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13233 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13234 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13235 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13236 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13237 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13238 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13239 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13240 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13241 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13242 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13243 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13244 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13245 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13246 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13247 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13248 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13249 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13250 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13251 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13252 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13253 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13254 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13255 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13256 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13257 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13258 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13259 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13260 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13261 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13262 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13263 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13264 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13265 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13266 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13267 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13268 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13269 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13270 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13271 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13272 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13273 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13274 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13275 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13276 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13277 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13278 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13279 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13280 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13281 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13282 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13283 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13284 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13285 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13286 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13287 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13288 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13289 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13290 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13291 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13294 LTCFLAGS='$LTCFLAGS'
13295 compiler='$compiler_DEFAULT'
13297 # A function that is used when there is no print builtin or printf.
13298 func_fallback_echo ()
13300 eval 'cat <<_LTECHO_EOF
13305 # Quote evaled strings.
13319 deplibs_check_method \
13328 lt_cv_sys_global_symbol_pipe \
13329 lt_cv_sys_global_symbol_to_cdecl \
13330 lt_cv_sys_global_symbol_to_c_name_address \
13331 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13332 lt_prog_compiler_no_builtin_flag \
13333 lt_prog_compiler_wl \
13334 lt_prog_compiler_pic \
13335 lt_prog_compiler_static \
13336 lt_cv_prog_compiler_c_o \
13344 export_dynamic_flag_spec \
13345 whole_archive_flag_spec \
13346 compiler_needs_object \
13348 allow_undefined_flag \
13349 no_undefined_flag \
13350 hardcode_libdir_flag_spec \
13351 hardcode_libdir_flag_spec_ld \
13352 hardcode_libdir_separator \
13357 variables_saved_for_relink \
13359 library_names_spec \
13361 install_override_mode \
13365 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13366 *[\\\\\\\`\\"\\\$]*)
13367 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13370 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13375 # Double-quote double-evaled strings.
13376 for var in reload_cmds \
13377 old_postinstall_cmds \
13378 old_postuninstall_cmds \
13380 extract_expsyms_cmds \
13381 old_archive_from_new_cmds \
13382 old_archive_from_expsyms_cmds \
13384 archive_expsym_cmds \
13386 module_expsym_cmds \
13387 export_symbols_cmds \
13390 postuninstall_cmds \
13392 sys_lib_search_path_spec \
13393 sys_lib_dlsearch_path_spec; do
13394 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13395 *[\\\\\\\`\\"\\\$]*)
13396 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13399 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13404 ac_aux_dir='$ac_aux_dir'
13405 xsi_shell='$xsi_shell'
13406 lt_shell_append='$lt_shell_append'
13408 # See if we are running on zsh, and set the options which allow our
13409 # commands through without removal of \ escapes INIT.
13410 if test -n "\${ZSH_VERSION+set}" ; then
13411 setopt NO_GLOB_SUBST
13417 TIMESTAMP='$TIMESTAMP'
13426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13428 # Handling of arguments.
13429 for ac_config_target
in $ac_config_targets
13431 case $ac_config_target in
13432 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
13433 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
13434 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
13435 "Makefile.sim") CONFIG_FILES
="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
13436 "Make-common.sim") CONFIG_FILES
="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
13437 ".gdbinit") CONFIG_FILES
="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
13438 "Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
13439 "stamp-h") CONFIG_COMMANDS
="$CONFIG_COMMANDS stamp-h" ;;
13441 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13446 # If the user did not use the arguments to specify the items to instantiate,
13447 # then the envvar interface is used. Set only those that are not.
13448 # We use the long form for the default assignment because of an extremely
13449 # bizarre bug on SunOS 4.1.3.
13450 if $ac_need_defaults; then
13451 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
13452 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
13453 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
13456 # Have a temporary directory for convenience. Make it in the build tree
13457 # simply because there is no reason against having it here, and in addition,
13458 # creating and moving files from /tmp can sometimes cause problems.
13459 # Hook for its removal unless debugging.
13460 # Note that there is a small window in which the directory will not be cleaned:
13461 # after its creation but before its name has been assigned to `$tmp'.
13465 trap 'exit_status=$?
13466 : "${ac_tmp:=$tmp}"
13467 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13469 trap 'as_fn_exit 1' 1 2 13 15
13471 # Create a (secure) tmp directory for tmp files.
13474 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13478 tmp
=.
/conf$$
-$RANDOM
13479 (umask 077 && mkdir
"$tmp")
13480 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
13483 # Set up the scripts for CONFIG_FILES section.
13484 # No need to generate them if there are no CONFIG_FILES.
13485 # This happens for instance with `./config.status config.h'.
13486 if test -n "$CONFIG_FILES"; then
13489 ac_cr
=`echo X | tr X '\015'`
13490 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13491 # But we know of no other shell where ac_cr would be empty at this
13492 # point, so we can use a bashism as a fallback.
13493 if test "x$ac_cr" = x
; then
13494 eval ac_cr
=\$
\'\\r
\'
13496 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13497 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13500 ac_cs_awk_cr
=$ac_cr
13503 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13508 echo "cat >conf$$subs.awk <<_ACEOF" &&
13509 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13511 } >conf$$subs.sh ||
13512 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
13513 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13515 for ac_last_try in false false false false false :; do
13516 . ./conf$$subs.sh ||
13517 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
13519 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
13520 if test $ac_delim_n = $ac_delim_num; then
13522 elif $ac_last_try; then
13523 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
13525 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
13528 rm -f conf$$subs.sh
13530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13531 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
13535 s/^/S["/; s
/!.
*/"]=/
13545 s/\(.\{148\}\)..*/\1/
13547 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
13552 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
13559 s/\(.\{148\}\)..*/\1/
13561 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
13565 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
13570 ' <conf$$subs.awk | sed '
13575 ' >>$CONFIG_STATUS || ac_write_fail=1
13576 rm -f conf$$subs.awk
13577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13579 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
13580 for (key in S) S_is_set[key] = 1
13586 nfields = split(line, field, "@
")
13588 len = length(field[1])
13589 for (i = 2; i < nfields; i++) {
13591 keylen = length(key)
13592 if (S_is_set[key]) {
13594 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13595 len += length(value) + length(field[++i])
13606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13607 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13608 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
13611 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
13612 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
13615 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13616 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
13617 # trailing colons and then remove the whole line if VPATH becomes empty
13618 # (actually we leave an empty line to preserve line numbers).
13619 if test "x
$srcdir" = x.; then
13620 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13639 fi # test -n "$CONFIG_FILES"
13641 # Set up the scripts for CONFIG_HEADERS section.
13642 # No need to generate them if there are no CONFIG_HEADERS.
13643 # This happens for instance with `./config.status Makefile'.
13644 if test -n "$CONFIG_HEADERS"; then
13645 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
13649 # Transform confdefs.h into an awk script `defines.awk', embedded as
13650 # here-document in config.status, that substitutes the proper values into
13651 # config.h.in to produce config.h.
13653 # Create a delimiter string that does not exist in confdefs.h, to ease
13654 # handling of long lines.
13656 for ac_last_try in false false :; do
13657 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
13658 if test -z "$ac_tt"; then
13660 elif $ac_last_try; then
13661 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
13663 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
13667 # For the awk script, D is an array of macro values keyed by name,
13668 # likewise P contains macro parameters if any. Preserve backslash
13669 # newline sequences.
13671 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13673 s/.\{148\}/&'"$ac_delim"'/g
13676 s/^[ ]*#[ ]*define[ ][ ]*/ /
13683 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
13685 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
13689 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
13690 D["\
1"]=" \
3\\\\\\n
"\\/p
13692 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
13697 s/.\{148\}/&'"$ac_delim"'/g
13702 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
13705 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
13707 ' <confdefs.h | sed '
13708 s/'"$ac_delim"'/"\\\
13709 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13712 for (key in D) D_is_set[key] = 1
13715 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13717 split(line, arg, " ")
13718 if (arg[1] == "#") {
13722 defundef
= substr
(arg
[1], 2)
13725 split(mac1
, mac2
, "(") #)
13727 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
13728 if (D_is_set
[macro
]) {
13729 # Preserve the white space surrounding the "#".
13730 print prefix
"define", macro P
[macro
] D
[macro
]
13733 # Replace #undef with comments. This is necessary, for example,
13734 # in the case of _POSIX_SOURCE, which is predefined and required
13735 # on some systems where configure will not decide to define it.
13736 if (defundef
== "undef") {
13737 print
"/*", prefix defundef
, macro
, "*/"
13745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13746 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
13747 fi # test -n "$CONFIG_HEADERS"
13750 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13755 :[FHLC
]) ac_mode
=$ac_tag; continue;;
13757 case $ac_mode$ac_tag in
13759 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
13760 :[FH
]-) ac_tag
=-:-;;
13761 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
13778 -) ac_f
="$ac_tmp/stdin";;
13779 *) # Look for the file first in the build tree, then in the source tree
13780 # (if the path is not absolute). The absolute path cannot be DOS-style,
13781 # because $ac_f cannot contain `:'.
13785 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
13787 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13789 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13790 as_fn_append ac_file_inputs
" '$ac_f'"
13793 # Let's still pretend it is `configure' which instantiates (i.e., don't
13794 # use $as_me), people would be surprised to read:
13795 # /* config.h. Generated by config.status. */
13796 configure_input
='Generated from '`
13797 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13799 if test x
"$ac_file" != x-
; then
13800 configure_input
="$ac_file. $configure_input"
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13802 $as_echo "$as_me: creating $ac_file" >&6;}
13804 # Neutralize special characters interpreted by sed in replacement strings.
13805 case $configure_input in #(
13806 *\
&* |
*\|
* |
*\\* )
13807 ac_sed_conf_input
=`$as_echo "$configure_input" |
13808 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13809 *) ac_sed_conf_input
=$configure_input;;
13813 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
13814 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
13819 ac_dir
=`$as_dirname -- "$ac_file" ||
13820 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13821 X"$ac_file" : 'X\(//\)[^/]' \| \
13822 X"$ac_file" : 'X\(//\)$' \| \
13823 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13824 $as_echo X"$ac_file" |
13825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13829 /^X\(\/\/\)[^/].*/{
13842 as_dir
="$ac_dir"; as_fn_mkdir_p
13846 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13848 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13849 # A ".." for each directory in $ac_dir_suffix.
13850 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13851 case $ac_top_builddir_sub in
13852 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13853 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
13856 ac_abs_top_builddir
=$ac_pwd
13857 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
13858 # for backward compatibility:
13859 ac_top_builddir
=$ac_top_build_prefix
13862 .
) # We are building in place.
13864 ac_top_srcdir
=$ac_top_builddir_sub
13865 ac_abs_top_srcdir
=$ac_pwd ;;
13866 [\\/]* | ?
:[\\/]* ) # Absolute name.
13867 ac_srcdir
=$srcdir$ac_dir_suffix;
13868 ac_top_srcdir
=$srcdir
13869 ac_abs_top_srcdir
=$srcdir ;;
13870 *) # Relative name.
13871 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
13872 ac_top_srcdir
=$ac_top_build_prefix$srcdir
13873 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
13875 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
13885 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
13886 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
13890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13891 # If the template does not know about datarootdir, expand it.
13892 # FIXME: This hack should be removed a few years after 2.60.
13893 ac_datarootdir_hack
=; ac_datarootdir_seen
=
13904 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13905 *datarootdir
*) ac_datarootdir_seen
=yes;;
13906 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13908 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13911 ac_datarootdir_hack='
13912 s&@datadir@&$datadir&g
13913 s&@docdir@&$docdir&g
13914 s&@infodir@&$infodir&g
13915 s&@localedir@&$localedir&g
13916 s&@mandir@&$mandir&g
13917 s&\\\${datarootdir}&$datarootdir&g' ;;
13921 # Neutralize VPATH when `$srcdir' = `.'.
13922 # Shell code in configure.ac might set extrasub.
13923 # FIXME: do we really want to maintain this feature?
13924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13925 ac_sed_extra="$ac_vpsub
13928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13930 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13931 s|@configure_input@|
$ac_sed_conf_input|
;t t
13932 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
13933 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
13934 s
&@srcdir@
&$ac_srcdir&;t t
13935 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
13936 s
&@top_srcdir@
&$ac_top_srcdir&;t t
13937 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
13938 s
&@builddir@
&$ac_builddir&;t t
13939 s
&@abs_builddir@
&$ac_abs_builddir&;t t
13940 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
13941 s
&@INSTALL@
&$ac_INSTALL&;t t
13942 $ac_datarootdir_hack
13944 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
13945 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
13947 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13948 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
13949 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13950 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
13952 which seems to be undefined. Please make sure it is defined" >&5
13953 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
13954 which seems to be undefined. Please make sure it is defined" >&2;}
13956 rm -f "$ac_tmp/stdin"
13958 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13959 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13961 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13967 if test x"$ac_file" != x-; then
13969 $as_echo "/* $configure_input */" \
13970 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13971 } >"$ac_tmp/config.h" \
13972 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13973 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13975 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13978 mv "$ac_tmp/config.h" "$ac_file" \
13979 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13982 $as_echo "/* $configure_input */" \
13983 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13984 || as_fn_error $? "could not create -" "$LINENO" 5
13988 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13989 $as_echo "$as_me: executing $ac_file commands" >&6;}
13994 case $ac_file$ac_mode in
13995 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
13998 # See if we are running on zsh, and set the options which allow our
13999 # commands through without removal of \ escapes.
14000 if test -n "${ZSH_VERSION+set}" ; then
14001 setopt NO_GLOB_SUBST
14004 cfgfile="${ofile}T"
14005 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14008 cat <<_LT_EOF >> "$cfgfile"
14011 # `$ECHO "$ofile" | sed 's
%^.
*/%%'` - Provide generalized library-building support services.
14012 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14013 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14014 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14016 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14017 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14018 # Written by Gordon Matzigkeit, 1996
14020 # This file is part of GNU Libtool.
14022 # GNU Libtool is free software; you can redistribute it and/or
14023 # modify it under the terms of the GNU General Public License as
14024 # published by the Free Software Foundation; either version 2 of
14025 # the License, or (at your option) any later version.
14027 # As a special exception to the GNU General Public License,
14028 # if you distribute this file as part of a program or library that
14029 # is built using GNU Libtool, you may include this file under the
14030 # same distribution terms that you use for the rest of that program.
14032 # GNU Libtool is distributed in the hope that it will be useful,
14033 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14034 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14035 # GNU General Public License for more details.
14037 # You should have received a copy of the GNU General Public License
14038 # along with GNU Libtool; see the file COPYING. If not, a copy
14039 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14040 # obtained by writing to the Free Software Foundation, Inc.,
14041 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14044 # The names of the tagged configurations supported by this script.
14047 # ### BEGIN LIBTOOL CONFIG
14049 # Which release of libtool.m4 was used?
14050 macro_version=$macro_version
14051 macro_revision=$macro_revision
14053 # Whether or not to build shared libraries.
14054 build_libtool_libs=$enable_shared
14056 # Whether or not to build static libraries.
14057 build_old_libs=$enable_static
14059 # What type of objects to build.
14062 # Whether or not to optimize for fast installation.
14063 fast_install=$enable_fast_install
14065 # Shell to use when invoking shell scripts.
14068 # An echo program that protects backslashes.
14072 host_alias=$host_alias
14076 # The build system.
14077 build_alias=$build_alias
14081 # A sed program that does not truncate output.
14084 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14085 Xsed="\$SED -e 1s/^X//"
14087 # A grep program that handles long lines.
14093 # A literal string matcher.
14096 # A BSD- or MS-compatible name lister.
14099 # Whether we need soft or hard links.
14102 # What is the maximum length of a command?
14103 max_cmd_len=$max_cmd_len
14105 # Object file suffix (normally "o").
14108 # Executable file suffix (normally "").
14111 # whether the shell understands "unset".
14114 # turn spaces into newlines.
14117 # turn newlines into spaces.
14120 # An object symbol dumper.
14121 OBJDUMP=$lt_OBJDUMP
14123 # Method to check whether dependent libraries are shared objects.
14124 deplibs_check_method=$lt_deplibs_check_method
14126 # Command to use when deplibs_check_method == "file_magic".
14127 file_magic_cmd=$lt_file_magic_cmd
14131 AR_FLAGS=$lt_AR_FLAGS
14133 # A symbol stripping program.
14136 # Commands used to install an old-style archive.
14138 old_postinstall_cmds=$lt_old_postinstall_cmds
14139 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14141 # Whether to use a lock for old archive extraction.
14142 lock_old_archive_extraction=$lock_old_archive_extraction
14147 # LTCC compiler flags.
14148 LTCFLAGS=$lt_CFLAGS
14150 # Take the output of nm and produce a listing of raw symbols and C names.
14151 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14153 # Transform the output of nm in a proper C declaration.
14154 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14156 # Transform the output of nm in a C name address pair.
14157 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14159 # Transform the output of nm in a C name address pair when lib prefix is needed.
14160 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14162 # The name of the directory that contains temporary libtool files.
14165 # Used to examine libraries when file_magic_cmd begins with "file".
14166 MAGIC_CMD=$MAGIC_CMD
14168 # Must we lock files when doing compilation?
14169 need_locks=$lt_need_locks
14171 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14172 DSYMUTIL=$lt_DSYMUTIL
14174 # Tool to change global to local symbols on Mac OS X.
14177 # Tool to manipulate fat objects and archives on Mac OS X.
14180 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14183 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14184 OTOOL64=$lt_OTOOL64
14186 # Old archive suffix (normally "a").
14189 # Shared library suffix (normally ".so").
14190 shrext_cmds=$lt_shrext_cmds
14192 # The commands to extract the exported symbol list from a shared archive.
14193 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14195 # Variables whose values should be saved in libtool wrapper scripts and
14196 # restored at link time.
14197 variables_saved_for_relink=$lt_variables_saved_for_relink
14199 # Do we need the "lib" prefix for modules?
14200 need_lib_prefix=$need_lib_prefix
14202 # Do we need a version for libraries?
14203 need_version=$need_version
14205 # Library versioning type.
14206 version_type=$version_type
14208 # Shared library runtime path variable.
14209 runpath_var=$runpath_var
14211 # Shared library path variable.
14212 shlibpath_var=$shlibpath_var
14214 # Is shlibpath searched before the hard-coded library search path?
14215 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14217 # Format of library name prefix.
14218 libname_spec=$lt_libname_spec
14220 # List of archive names. First name is the real one, the rest are links.
14221 # The last name is the one that the linker finds with -lNAME
14222 library_names_spec=$lt_library_names_spec
14224 # The coded name of the library, if different from the real name.
14225 soname_spec=$lt_soname_spec
14227 # Permission mode override for installation of shared libraries.
14228 install_override_mode=$lt_install_override_mode
14230 # Command to use after installation of a shared archive.
14231 postinstall_cmds=$lt_postinstall_cmds
14233 # Command to use after uninstallation of a shared archive.
14234 postuninstall_cmds=$lt_postuninstall_cmds
14236 # Commands used to finish a libtool library installation in a directory.
14237 finish_cmds=$lt_finish_cmds
14239 # As "finish_cmds", except a single script fragment to be evaled but
14241 finish_eval=$lt_finish_eval
14243 # Whether we should hardcode library paths into libraries.
14244 hardcode_into_libs=$hardcode_into_libs
14246 # Compile-time system search path for libraries.
14247 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14249 # Run-time system search path for libraries.
14250 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14252 # Whether dlopen is supported.
14253 dlopen_support=$enable_dlopen
14255 # Whether dlopen of programs is supported.
14256 dlopen_self=$enable_dlopen_self
14258 # Whether dlopen of statically linked programs is supported.
14259 dlopen_self_static=$enable_dlopen_self_static
14261 # Commands to strip libraries.
14262 old_striplib=$lt_old_striplib
14263 striplib=$lt_striplib
14266 # The linker used to build libraries.
14269 # How to create reloadable object files.
14270 reload_flag=$lt_reload_flag
14271 reload_cmds=$lt_reload_cmds
14273 # Commands used to build an old-style archive.
14274 old_archive_cmds=$lt_old_archive_cmds
14276 # A language specific compiler.
14279 # Is the compiler the GNU compiler?
14282 # Compiler flag to turn off builtin functions.
14283 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14285 # How to pass a linker flag through the compiler.
14286 wl=$lt_lt_prog_compiler_wl
14288 # Additional compiler flags for building library objects.
14289 pic_flag=$lt_lt_prog_compiler_pic
14291 # Compiler flag to prevent dynamic linking.
14292 link_static_flag=$lt_lt_prog_compiler_static
14294 # Does compiler simultaneously support -c and -o options?
14295 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14297 # Whether or not to add -lc for building shared libraries.
14298 build_libtool_need_lc=$archive_cmds_need_lc
14300 # Whether or not to disallow shared libs when runtime libs are static.
14301 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14303 # Compiler flag to allow reflexive dlopens.
14304 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14306 # Compiler flag to generate shared objects directly from archives.
14307 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14309 # Whether the compiler copes with passing no objects directly.
14310 compiler_needs_object=$lt_compiler_needs_object
14312 # Create an old-style archive from a shared archive.
14313 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14315 # Create a temporary old-style archive to link instead of a shared archive.
14316 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14318 # Commands used to build a shared archive.
14319 archive_cmds=$lt_archive_cmds
14320 archive_expsym_cmds=$lt_archive_expsym_cmds
14322 # Commands used to build a loadable module if different from building
14323 # a shared archive.
14324 module_cmds=$lt_module_cmds
14325 module_expsym_cmds=$lt_module_expsym_cmds
14327 # Whether we are building with GNU ld or not.
14328 with_gnu_ld=$lt_with_gnu_ld
14330 # Flag that allows shared libraries with undefined symbols to be built.
14331 allow_undefined_flag=$lt_allow_undefined_flag
14333 # Flag that enforces no undefined symbols.
14334 no_undefined_flag=$lt_no_undefined_flag
14336 # Flag to hardcode \$libdir into a binary during linking.
14337 # This must work even if \$libdir does not exist
14338 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14340 # If ld is used when linking, flag to hardcode \$libdir into a binary
14341 # during linking. This must work even if \$libdir does not exist.
14342 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14344 # Whether we need a single "-rpath" flag with a separated argument.
14345 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14347 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14348 # DIR into the resulting binary.
14349 hardcode_direct=$hardcode_direct
14351 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14352 # DIR into the resulting binary and the resulting library dependency is
14353 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14354 # library is relocated.
14355 hardcode_direct_absolute=$hardcode_direct_absolute
14357 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14358 # into the resulting binary.
14359 hardcode_minus_L=$hardcode_minus_L
14361 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14362 # into the resulting binary.
14363 hardcode_shlibpath_var=$hardcode_shlibpath_var
14365 # Set to "yes" if building a shared library automatically hardcodes DIR
14366 # into the library and all subsequent libraries and executables linked
14368 hardcode_automatic=$hardcode_automatic
14370 # Set to yes if linker adds runtime paths of dependent libraries
14371 # to runtime path list.
14372 inherit_rpath=$inherit_rpath
14374 # Whether libtool must link a program against all its dependency libraries.
14375 link_all_deplibs=$link_all_deplibs
14377 # Fix the shell variable \$srcfile for the compiler.
14378 fix_srcfile_path=$lt_fix_srcfile_path
14380 # Set to "yes" if exported symbols are required.
14381 always_export_symbols=$always_export_symbols
14383 # The commands to list exported symbols.
14384 export_symbols_cmds=$lt_export_symbols_cmds
14386 # Symbols that should not be listed in the preloaded symbols.
14387 exclude_expsyms=$lt_exclude_expsyms
14389 # Symbols that must always be exported.
14390 include_expsyms=$lt_include_expsyms
14392 # Commands necessary for linking programs (against libraries) with templates.
14393 prelink_cmds=$lt_prelink_cmds
14395 # Specify filename containing input files.
14396 file_list_spec=$lt_file_list_spec
14398 # How to hardcode a shared library path into an executable.
14399 hardcode_action=$hardcode_action
14401 # ### END LIBTOOL CONFIG
14407 cat <<\_LT_EOF >> "$cfgfile"
14408 # AIX sometimes has problems with the GCC collect2 program. For some
14409 # reason, if we set the COLLECT_NAMES environment variable, the problems
14410 # vanish in a puff of smoke.
14411 if test "X${COLLECT_NAMES+set}" != Xset; then
14413 export COLLECT_NAMES
14420 ltmain="$ac_aux_dir/ltmain.sh"
14423 # We use sed instead of cat because bash on DJGPP gets confused if
14424 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14425 # text mode, it properly converts lines to CR/LF. This bash problem
14426 # is reportedly fixed, but why not run on old versions too?
14427 sed '/^
# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14428 ||
(rm -f "$cfgfile"; exit 1)
14432 cat << \_LT_EOF
>> "$cfgfile"
14434 # func_dirname file append nondir_replacement
14435 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14436 # otherwise set result to NONDIR_REPLACEMENT.
14440 */*) func_dirname_result
="${1%/*}${2}" ;;
14441 * ) func_dirname_result
="${3}" ;;
14445 # func_basename file
14448 func_basename_result
="${1##*/}"
14451 # func_dirname_and_basename file append nondir_replacement
14452 # perform func_basename and func_dirname in a single function
14454 # dirname: Compute the dirname of FILE. If nonempty,
14455 # add APPEND to the result, otherwise set result
14456 # to NONDIR_REPLACEMENT.
14457 # value returned in "$func_dirname_result"
14458 # basename: Compute filename of FILE.
14459 # value retuned in "$func_basename_result"
14460 # Implementation must be kept synchronized with func_dirname
14461 # and func_basename. For efficiency, we do not delegate to
14462 # those functions but instead duplicate the functionality here.
14463 func_dirname_and_basename
()
14466 */*) func_dirname_result
="${1%/*}${2}" ;;
14467 * ) func_dirname_result
="${3}" ;;
14469 func_basename_result
="${1##*/}"
14472 # func_stripname prefix suffix name
14473 # strip PREFIX and SUFFIX off of NAME.
14474 # PREFIX and SUFFIX must not contain globbing or regex special
14475 # characters, hashes, percent signs, but SUFFIX may contain a leading
14476 # dot (in which case that matches only a dot).
14479 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14480 # positional parameters, so assign one to ordinary parameter first.
14481 func_stripname_result
=${3}
14482 func_stripname_result
=${func_stripname_result#"${1}"}
14483 func_stripname_result
=${func_stripname_result%"${2}"}
14489 func_opt_split_opt
=${1%%=*}
14490 func_opt_split_arg
=${1#*=}
14497 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
14498 *) func_lo2o_result
=${1} ;;
14502 # func_xform libobj-or-source
14505 func_xform_result
=${1%.*}.lo
14508 # func_arith arithmetic-term...
14511 func_arith_result
=$
(( $
* ))
14515 # STRING may not start with a hyphen.
14518 func_len_result
=${#1}
14523 *) # Bourne compatible functions.
14524 cat << \_LT_EOF
>> "$cfgfile"
14526 # func_dirname file append nondir_replacement
14527 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14528 # otherwise set result to NONDIR_REPLACEMENT.
14531 # Extract subdirectory from the argument.
14532 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
14533 if test "X$func_dirname_result" = "X${1}"; then
14534 func_dirname_result
="${3}"
14536 func_dirname_result
="$func_dirname_result${2}"
14540 # func_basename file
14543 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
14547 # func_stripname prefix suffix name
14548 # strip PREFIX and SUFFIX off of NAME.
14549 # PREFIX and SUFFIX must not contain globbing or regex special
14550 # characters, hashes, percent signs, but SUFFIX may contain a leading
14551 # dot (in which case that matches only a dot).
14552 # func_strip_suffix prefix name
14556 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14557 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14562 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
14563 my_sed_long_arg
='1s/^-[^=]*=//'
14568 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14569 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14575 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
14578 # func_xform libobj-or-source
14581 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14584 # func_arith arithmetic-term...
14587 func_arith_result
=`expr "$@"`
14591 # STRING may not start with a hyphen.
14594 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14600 case $lt_shell_append in
14602 cat << \_LT_EOF
>> "$cfgfile"
14604 # func_append var value
14605 # Append VALUE to the end of shell variable VAR.
14613 cat << \_LT_EOF
>> "$cfgfile"
14615 # func_append var value
14616 # Append VALUE to the end of shell variable VAR.
14627 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14628 ||
(rm -f "$cfgfile"; exit 1)
14630 mv -f "$cfgfile" "$ofile" ||
14631 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14635 "Makefile":C
) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
14636 rm -f Makesim1.tmp Makesim2.tmp Makefile
14637 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim
>Makesim1.tmp
14638 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim
>Makesim2.tmp
14639 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
14640 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
14641 <Makefile.sim
>Makefile
14642 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
14644 "stamp-h":C
) echo > stamp-h
;;
14652 ac_clean_files
=$ac_clean_files_save
14654 test $ac_write_fail = 0 ||
14655 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
14658 # configure is writing to config.log, and then calls config.status.
14659 # config.status does its own redirection, appending to config.log.
14660 # Unfortunately, on DOS this fails, as config.log is still kept open
14661 # by configure, so config.status won't be able to write to it; its
14662 # output is simply discarded. So we exec the FD to /dev/null,
14663 # effectively closing config.log, so it can be properly (re)opened and
14664 # appended to by config.status. When coming back to configure, we
14665 # need to make the FD available again.
14666 if test "$no_create" != yes; then
14668 ac_config_status_args
=
14669 test "$silent" = yes &&
14670 ac_config_status_args
="$ac_config_status_args --quiet"
14672 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
14674 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14675 # would make configure fail if this is the last instruction.
14676 $ac_cs_success || as_fn_exit
1
14678 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14680 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}