Add assember CFI directives to millicode division and remainder routines.
[official-gcc.git] / libbacktrace / configure
blob6af2c04c81a8a3827dda1201e38d951be533a2c6
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for package-unused version-unused.
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 :
18 emulate sh
19 NULLCMD=:
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+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
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
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
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'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
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.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
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
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
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 || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
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.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
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
156 as_fn_exit 255
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 :
162 emulate sh
163 NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
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; }
183 exitcode=0
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 :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || 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 :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
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 :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
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
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
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.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
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
265 exit 255
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."
274 else
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."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
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 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
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
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
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 :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
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.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
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
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
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. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
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).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
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
530 as_ln_s='ln -s'
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 ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
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"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
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
568 exec 6>&1
570 # Name of the host.
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`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='package-unused'
589 PACKAGE_TARNAME='libbacktrace'
590 PACKAGE_VERSION='version-unused'
591 PACKAGE_STRING='package-unused version-unused'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 ac_unique_file="backtrace.h"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 NATIVE_FALSE
637 NATIVE_TRUE
638 HAVE_LIBLZMA_FALSE
639 HAVE_LIBLZMA_TRUE
640 HAVE_MINIDEBUG_FALSE
641 HAVE_MINIDEBUG_TRUE
642 HAVE_COMM_FALSE
643 HAVE_COMM_TRUE
644 COMM
645 HAVE_XZ_FALSE
646 HAVE_XZ_TRUE
648 USE_DSYMUTIL_FALSE
649 USE_DSYMUTIL_TRUE
650 HAVE_OBJCOPY_DEBUGLINK_FALSE
651 HAVE_OBJCOPY_DEBUGLINK_TRUE
652 READELF
653 OBJCOPY
654 HAVE_COMPRESSED_DEBUG_ZSTD_FALSE
655 HAVE_COMPRESSED_DEBUG_ZSTD_TRUE
656 HAVE_ZSTD_FALSE
657 HAVE_ZSTD_TRUE
658 HAVE_COMPRESSED_DEBUG_FALSE
659 HAVE_COMPRESSED_DEBUG_TRUE
660 HAVE_BUILDID_FALSE
661 HAVE_BUILDID_TRUE
662 HAVE_ZLIB_FALSE
663 HAVE_ZLIB_TRUE
664 HAVE_DWARF5_FALSE
665 HAVE_DWARF5_TRUE
666 HAVE_PTHREAD_FALSE
667 HAVE_PTHREAD_TRUE
668 PTHREAD_CFLAGS
669 CLOCK_GETTIME_LINK
670 BACKTRACE_USES_MALLOC
671 ALLOC_FILE
672 VIEW_FILE
673 BACKTRACE_SUPPORTS_DATA
674 BACKTRACE_SUPPORTED
675 HAVE_ELF_FALSE
676 HAVE_ELF_TRUE
677 FORMAT_FILE
678 BACKTRACE_SUPPORTS_THREADS
679 CET_HOST_FLAGS
680 PIC_FLAG
681 WARN_FLAGS
682 EXTRA_FLAGS
683 BACKTRACE_FILE
684 OTOOL64
685 OTOOL
686 LIPO
687 NMEDIT
688 DSYMUTIL
690 OBJDUMP
691 LN_S
693 ac_ct_DUMPBIN
694 DUMPBIN
696 FGREP
698 LIBTOOL
699 HAVE_DWZ_FALSE
700 HAVE_DWZ_TRUE
702 RANLIB
703 MAINT
704 MAINTAINER_MODE_FALSE
705 MAINTAINER_MODE_TRUE
706 AM_BACKSLASH
707 AM_DEFAULT_VERBOSITY
708 AM_DEFAULT_V
709 AM_V
710 am__untar
711 am__tar
712 AMTAR
713 am__leading_dot
714 SET_MAKE
716 mkdir_p
717 MKDIR_P
718 INSTALL_STRIP_PROGRAM
719 STRIP
720 install_sh
721 MAKEINFO
722 AUTOHEADER
723 AUTOMAKE
724 AUTOCONF
725 ACLOCAL
726 VERSION
727 PACKAGE
728 CYGPATH_W
729 am__isrc
730 INSTALL_DATA
731 INSTALL_SCRIPT
732 INSTALL_PROGRAM
733 libtool_VERSION
734 EGREP
735 GREP
737 OBJEXT
738 EXEEXT
739 ac_ct_CC
740 CPPFLAGS
741 LDFLAGS
742 CFLAGS
744 target_os
745 target_vendor
746 target_cpu
747 target
748 host_os
749 host_vendor
750 host_cpu
751 host
752 build_os
753 build_vendor
754 build_cpu
755 build
756 multi_basedir
757 target_alias
758 host_alias
759 build_alias
760 LIBS
761 ECHO_T
762 ECHO_N
763 ECHO_C
764 DEFS
765 mandir
766 localedir
767 libdir
768 psdir
769 pdfdir
770 dvidir
771 htmldir
772 infodir
773 docdir
774 oldincludedir
775 includedir
776 localstatedir
777 sharedstatedir
778 sysconfdir
779 datadir
780 datarootdir
781 libexecdir
782 sbindir
783 bindir
784 program_transform_name
785 prefix
786 exec_prefix
787 PACKAGE_URL
788 PACKAGE_BUGREPORT
789 PACKAGE_STRING
790 PACKAGE_VERSION
791 PACKAGE_TARNAME
792 PACKAGE_NAME
793 PATH_SEPARATOR
794 SHELL'
795 ac_subst_files=''
796 ac_user_opts='
797 enable_option_checking
798 enable_multilib
799 enable_silent_rules
800 enable_maintainer_mode
801 with_target_subdir
802 enable_shared
803 enable_static
804 with_pic
805 enable_fast_install
806 with_gnu_ld
807 enable_libtool_lock
808 enable_largefile
809 enable_cet
810 enable_werror
811 with_system_libunwind
812 enable_host_shared
814 ac_precious_vars='build_alias
815 host_alias
816 target_alias
818 CFLAGS
819 LDFLAGS
820 LIBS
821 CPPFLAGS
823 OBJCOPY
824 DSYMUTIL
828 # Initialize some variables set by options.
829 ac_init_help=
830 ac_init_version=false
831 ac_unrecognized_opts=
832 ac_unrecognized_sep=
833 # The variables have the same names as the options, with
834 # dashes changed to underlines.
835 cache_file=/dev/null
836 exec_prefix=NONE
837 no_create=
838 no_recursion=
839 prefix=NONE
840 program_prefix=NONE
841 program_suffix=NONE
842 program_transform_name=s,x,x,
843 silent=
844 site=
845 srcdir=
846 verbose=
847 x_includes=NONE
848 x_libraries=NONE
850 # Installation directory options.
851 # These are left unexpanded so users can "make install exec_prefix=/foo"
852 # and all the variables that are supposed to be based on exec_prefix
853 # by default will actually change.
854 # Use braces instead of parens because sh, perl, etc. also accept them.
855 # (The list follows the same order as the GNU Coding Standards.)
856 bindir='${exec_prefix}/bin'
857 sbindir='${exec_prefix}/sbin'
858 libexecdir='${exec_prefix}/libexec'
859 datarootdir='${prefix}/share'
860 datadir='${datarootdir}'
861 sysconfdir='${prefix}/etc'
862 sharedstatedir='${prefix}/com'
863 localstatedir='${prefix}/var'
864 includedir='${prefix}/include'
865 oldincludedir='/usr/include'
866 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
867 infodir='${datarootdir}/info'
868 htmldir='${docdir}'
869 dvidir='${docdir}'
870 pdfdir='${docdir}'
871 psdir='${docdir}'
872 libdir='${exec_prefix}/lib'
873 localedir='${datarootdir}/locale'
874 mandir='${datarootdir}/man'
876 ac_prev=
877 ac_dashdash=
878 for ac_option
880 # If the previous option needs an argument, assign it.
881 if test -n "$ac_prev"; then
882 eval $ac_prev=\$ac_option
883 ac_prev=
884 continue
887 case $ac_option in
888 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889 *=) ac_optarg= ;;
890 *) ac_optarg=yes ;;
891 esac
893 # Accept the important Cygnus configure options, so we can diagnose typos.
895 case $ac_dashdash$ac_option in
897 ac_dashdash=yes ;;
899 -bindir | --bindir | --bindi | --bind | --bin | --bi)
900 ac_prev=bindir ;;
901 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
902 bindir=$ac_optarg ;;
904 -build | --build | --buil | --bui | --bu)
905 ac_prev=build_alias ;;
906 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907 build_alias=$ac_optarg ;;
909 -cache-file | --cache-file | --cache-fil | --cache-fi \
910 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911 ac_prev=cache_file ;;
912 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914 cache_file=$ac_optarg ;;
916 --config-cache | -C)
917 cache_file=config.cache ;;
919 -datadir | --datadir | --datadi | --datad)
920 ac_prev=datadir ;;
921 -datadir=* | --datadir=* | --datadi=* | --datad=*)
922 datadir=$ac_optarg ;;
924 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925 | --dataroo | --dataro | --datar)
926 ac_prev=datarootdir ;;
927 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929 datarootdir=$ac_optarg ;;
931 -disable-* | --disable-*)
932 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935 as_fn_error $? "invalid feature name: $ac_useropt"
936 ac_useropt_orig=$ac_useropt
937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938 case $ac_user_opts in
940 "enable_$ac_useropt"
941 "*) ;;
942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
943 ac_unrecognized_sep=', ';;
944 esac
945 eval enable_$ac_useropt=no ;;
947 -docdir | --docdir | --docdi | --doc | --do)
948 ac_prev=docdir ;;
949 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
950 docdir=$ac_optarg ;;
952 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
953 ac_prev=dvidir ;;
954 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
955 dvidir=$ac_optarg ;;
957 -enable-* | --enable-*)
958 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961 as_fn_error $? "invalid feature name: $ac_useropt"
962 ac_useropt_orig=$ac_useropt
963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
966 "enable_$ac_useropt"
967 "*) ;;
968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
969 ac_unrecognized_sep=', ';;
970 esac
971 eval enable_$ac_useropt=\$ac_optarg ;;
973 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
974 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
975 | --exec | --exe | --ex)
976 ac_prev=exec_prefix ;;
977 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
978 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
979 | --exec=* | --exe=* | --ex=*)
980 exec_prefix=$ac_optarg ;;
982 -gas | --gas | --ga | --g)
983 # Obsolete; use --with-gas.
984 with_gas=yes ;;
986 -help | --help | --hel | --he | -h)
987 ac_init_help=long ;;
988 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
989 ac_init_help=recursive ;;
990 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
991 ac_init_help=short ;;
993 -host | --host | --hos | --ho)
994 ac_prev=host_alias ;;
995 -host=* | --host=* | --hos=* | --ho=*)
996 host_alias=$ac_optarg ;;
998 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
999 ac_prev=htmldir ;;
1000 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1001 | --ht=*)
1002 htmldir=$ac_optarg ;;
1004 -includedir | --includedir | --includedi | --included | --include \
1005 | --includ | --inclu | --incl | --inc)
1006 ac_prev=includedir ;;
1007 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1008 | --includ=* | --inclu=* | --incl=* | --inc=*)
1009 includedir=$ac_optarg ;;
1011 -infodir | --infodir | --infodi | --infod | --info | --inf)
1012 ac_prev=infodir ;;
1013 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1014 infodir=$ac_optarg ;;
1016 -libdir | --libdir | --libdi | --libd)
1017 ac_prev=libdir ;;
1018 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1019 libdir=$ac_optarg ;;
1021 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1022 | --libexe | --libex | --libe)
1023 ac_prev=libexecdir ;;
1024 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1025 | --libexe=* | --libex=* | --libe=*)
1026 libexecdir=$ac_optarg ;;
1028 -localedir | --localedir | --localedi | --localed | --locale)
1029 ac_prev=localedir ;;
1030 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1031 localedir=$ac_optarg ;;
1033 -localstatedir | --localstatedir | --localstatedi | --localstated \
1034 | --localstate | --localstat | --localsta | --localst | --locals)
1035 ac_prev=localstatedir ;;
1036 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1037 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1038 localstatedir=$ac_optarg ;;
1040 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1041 ac_prev=mandir ;;
1042 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1043 mandir=$ac_optarg ;;
1045 -nfp | --nfp | --nf)
1046 # Obsolete; use --without-fp.
1047 with_fp=no ;;
1049 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1050 | --no-cr | --no-c | -n)
1051 no_create=yes ;;
1053 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1054 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1055 no_recursion=yes ;;
1057 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1058 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1059 | --oldin | --oldi | --old | --ol | --o)
1060 ac_prev=oldincludedir ;;
1061 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1062 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1063 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1064 oldincludedir=$ac_optarg ;;
1066 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1067 ac_prev=prefix ;;
1068 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1069 prefix=$ac_optarg ;;
1071 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1072 | --program-pre | --program-pr | --program-p)
1073 ac_prev=program_prefix ;;
1074 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1075 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1076 program_prefix=$ac_optarg ;;
1078 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1079 | --program-suf | --program-su | --program-s)
1080 ac_prev=program_suffix ;;
1081 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1082 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1083 program_suffix=$ac_optarg ;;
1085 -program-transform-name | --program-transform-name \
1086 | --program-transform-nam | --program-transform-na \
1087 | --program-transform-n | --program-transform- \
1088 | --program-transform | --program-transfor \
1089 | --program-transfo | --program-transf \
1090 | --program-trans | --program-tran \
1091 | --progr-tra | --program-tr | --program-t)
1092 ac_prev=program_transform_name ;;
1093 -program-transform-name=* | --program-transform-name=* \
1094 | --program-transform-nam=* | --program-transform-na=* \
1095 | --program-transform-n=* | --program-transform-=* \
1096 | --program-transform=* | --program-transfor=* \
1097 | --program-transfo=* | --program-transf=* \
1098 | --program-trans=* | --program-tran=* \
1099 | --progr-tra=* | --program-tr=* | --program-t=*)
1100 program_transform_name=$ac_optarg ;;
1102 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1103 ac_prev=pdfdir ;;
1104 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1105 pdfdir=$ac_optarg ;;
1107 -psdir | --psdir | --psdi | --psd | --ps)
1108 ac_prev=psdir ;;
1109 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1110 psdir=$ac_optarg ;;
1112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1113 | -silent | --silent | --silen | --sile | --sil)
1114 silent=yes ;;
1116 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1117 ac_prev=sbindir ;;
1118 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1119 | --sbi=* | --sb=*)
1120 sbindir=$ac_optarg ;;
1122 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1123 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1124 | --sharedst | --shareds | --shared | --share | --shar \
1125 | --sha | --sh)
1126 ac_prev=sharedstatedir ;;
1127 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1128 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1129 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1130 | --sha=* | --sh=*)
1131 sharedstatedir=$ac_optarg ;;
1133 -site | --site | --sit)
1134 ac_prev=site ;;
1135 -site=* | --site=* | --sit=*)
1136 site=$ac_optarg ;;
1138 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1139 ac_prev=srcdir ;;
1140 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1141 srcdir=$ac_optarg ;;
1143 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1144 | --syscon | --sysco | --sysc | --sys | --sy)
1145 ac_prev=sysconfdir ;;
1146 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1147 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1148 sysconfdir=$ac_optarg ;;
1150 -target | --target | --targe | --targ | --tar | --ta | --t)
1151 ac_prev=target_alias ;;
1152 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1153 target_alias=$ac_optarg ;;
1155 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1156 verbose=yes ;;
1158 -version | --version | --versio | --versi | --vers | -V)
1159 ac_init_version=: ;;
1161 -with-* | --with-*)
1162 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 as_fn_error $? "invalid package name: $ac_useropt"
1166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1170 "with_$ac_useropt"
1171 "*) ;;
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
1174 esac
1175 eval with_$ac_useropt=\$ac_optarg ;;
1177 -without-* | --without-*)
1178 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 as_fn_error $? "invalid package name: $ac_useropt"
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1186 "with_$ac_useropt"
1187 "*) ;;
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1190 esac
1191 eval with_$ac_useropt=no ;;
1193 --x)
1194 # Obsolete; use --with-x.
1195 with_x=yes ;;
1197 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1198 | --x-incl | --x-inc | --x-in | --x-i)
1199 ac_prev=x_includes ;;
1200 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1201 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1202 x_includes=$ac_optarg ;;
1204 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1205 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1206 ac_prev=x_libraries ;;
1207 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1208 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1209 x_libraries=$ac_optarg ;;
1211 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1212 Try \`$0 --help' for more information"
1215 *=*)
1216 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1217 # Reject names that are not valid shell variable names.
1218 case $ac_envvar in #(
1219 '' | [0-9]* | *[!_$as_cr_alnum]* )
1220 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1221 esac
1222 eval $ac_envvar=\$ac_optarg
1223 export $ac_envvar ;;
1226 # FIXME: should be removed in autoconf 3.0.
1227 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1228 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1230 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1233 esac
1234 done
1236 if test -n "$ac_prev"; then
1237 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1238 as_fn_error $? "missing argument to $ac_option"
1241 if test -n "$ac_unrecognized_opts"; then
1242 case $enable_option_checking in
1243 no) ;;
1244 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1245 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1246 esac
1249 # Check all directory arguments for consistency.
1250 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1251 datadir sysconfdir sharedstatedir localstatedir includedir \
1252 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1253 libdir localedir mandir
1255 eval ac_val=\$$ac_var
1256 # Remove trailing slashes.
1257 case $ac_val in
1258 */ )
1259 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1260 eval $ac_var=\$ac_val;;
1261 esac
1262 # Be sure to have absolute directory names.
1263 case $ac_val in
1264 [\\/$]* | ?:[\\/]* ) continue;;
1265 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1266 esac
1267 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1268 done
1270 # There might be people who depend on the old broken behavior: `$host'
1271 # used to hold the argument of --host etc.
1272 # FIXME: To remove some day.
1273 build=$build_alias
1274 host=$host_alias
1275 target=$target_alias
1277 # FIXME: To remove some day.
1278 if test "x$host_alias" != x; then
1279 if test "x$build_alias" = x; then
1280 cross_compiling=maybe
1281 elif test "x$build_alias" != "x$host_alias"; then
1282 cross_compiling=yes
1286 ac_tool_prefix=
1287 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1289 test "$silent" = yes && exec 6>/dev/null
1292 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1293 ac_ls_di=`ls -di .` &&
1294 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1295 as_fn_error $? "working directory cannot be determined"
1296 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1297 as_fn_error $? "pwd does not report name of working directory"
1300 # Find the source files, if location was not specified.
1301 if test -z "$srcdir"; then
1302 ac_srcdir_defaulted=yes
1303 # Try the directory containing this script, then the parent directory.
1304 ac_confdir=`$as_dirname -- "$as_myself" ||
1305 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1306 X"$as_myself" : 'X\(//\)[^/]' \| \
1307 X"$as_myself" : 'X\(//\)$' \| \
1308 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1309 $as_echo X"$as_myself" |
1310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1311 s//\1/
1314 /^X\(\/\/\)[^/].*/{
1315 s//\1/
1318 /^X\(\/\/\)$/{
1319 s//\1/
1322 /^X\(\/\).*/{
1323 s//\1/
1326 s/.*/./; q'`
1327 srcdir=$ac_confdir
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 srcdir=..
1331 else
1332 ac_srcdir_defaulted=no
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1336 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1338 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1339 ac_abs_confdir=`(
1340 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1341 pwd)`
1342 # When building in place, set srcdir=.
1343 if test "$ac_abs_confdir" = "$ac_pwd"; then
1344 srcdir=.
1346 # Remove unnecessary trailing slashes from srcdir.
1347 # Double slashes in file names in object file debugging info
1348 # mess up M-x gdb in Emacs.
1349 case $srcdir in
1350 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1351 esac
1352 for ac_var in $ac_precious_vars; do
1353 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1354 eval ac_env_${ac_var}_value=\$${ac_var}
1355 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1356 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1357 done
1360 # Report the --help message.
1362 if test "$ac_init_help" = "long"; then
1363 # Omit some internal or obsolete options to make the list less imposing.
1364 # This message is too long to be a string in the A/UX 3.1 sh.
1365 cat <<_ACEOF
1366 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1368 Usage: $0 [OPTION]... [VAR=VALUE]...
1370 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1371 VAR=VALUE. See below for descriptions of some of the useful variables.
1373 Defaults for the options are specified in brackets.
1375 Configuration:
1376 -h, --help display this help and exit
1377 --help=short display options specific to this package
1378 --help=recursive display the short help of all the included packages
1379 -V, --version display version information and exit
1380 -q, --quiet, --silent do not print \`checking ...' messages
1381 --cache-file=FILE cache test results in FILE [disabled]
1382 -C, --config-cache alias for \`--cache-file=config.cache'
1383 -n, --no-create do not create output files
1384 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1386 Installation directories:
1387 --prefix=PREFIX install architecture-independent files in PREFIX
1388 [$ac_default_prefix]
1389 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1390 [PREFIX]
1392 By default, \`make install' will install all the files in
1393 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1394 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1395 for instance \`--prefix=\$HOME'.
1397 For better control, use the options below.
1399 Fine tuning of the installation directories:
1400 --bindir=DIR user executables [EPREFIX/bin]
1401 --sbindir=DIR system admin executables [EPREFIX/sbin]
1402 --libexecdir=DIR program executables [EPREFIX/libexec]
1403 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1404 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1405 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1406 --libdir=DIR object code libraries [EPREFIX/lib]
1407 --includedir=DIR C header files [PREFIX/include]
1408 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1409 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1410 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1411 --infodir=DIR info documentation [DATAROOTDIR/info]
1412 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1413 --mandir=DIR man documentation [DATAROOTDIR/man]
1414 --docdir=DIR documentation root [DATAROOTDIR/doc/libbacktrace]
1415 --htmldir=DIR html documentation [DOCDIR]
1416 --dvidir=DIR dvi documentation [DOCDIR]
1417 --pdfdir=DIR pdf documentation [DOCDIR]
1418 --psdir=DIR ps documentation [DOCDIR]
1419 _ACEOF
1421 cat <<\_ACEOF
1423 Program names:
1424 --program-prefix=PREFIX prepend PREFIX to installed program names
1425 --program-suffix=SUFFIX append SUFFIX to installed program names
1426 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1428 System types:
1429 --build=BUILD configure for building on BUILD [guessed]
1430 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1431 --target=TARGET configure for building compilers for TARGET [HOST]
1432 _ACEOF
1435 if test -n "$ac_init_help"; then
1436 case $ac_init_help in
1437 short | recursive ) echo "Configuration of package-unused version-unused:";;
1438 esac
1439 cat <<\_ACEOF
1441 Optional Features:
1442 --disable-option-checking ignore unrecognized --enable/--with options
1443 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1444 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1445 --enable-multilib build many library versions (default)
1446 --enable-silent-rules less verbose build output (undo: "make V=1")
1447 --disable-silent-rules verbose build output (undo: "make V=0")
1448 --enable-maintainer-mode
1449 enable make rules and dependencies not useful (and
1450 sometimes confusing) to the casual installer
1451 --enable-shared[=PKGS] build shared libraries [default=yes]
1452 --enable-static[=PKGS] build static libraries [default=yes]
1453 --enable-fast-install[=PKGS]
1454 optimize for fast installation [default=yes]
1455 --disable-libtool-lock avoid locking (might break parallel builds)
1456 --disable-largefile omit support for large files
1457 --enable-cet enable Intel CET in target libraries [default=auto]
1458 --disable-werror disable building with -Werror
1459 --enable-host-shared build host code as shared libraries
1460 --enable-cet enable Intel CET in host libraries [default=auto]
1462 Optional Packages:
1463 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1464 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1465 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1466 --with-pic try to use only PIC/non-PIC objects [default=use
1467 both]
1468 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1469 --with-system-libunwind use installed libunwind
1471 Some influential environment variables:
1472 CC C compiler command
1473 CFLAGS C compiler flags
1474 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1475 nonstandard directory <lib dir>
1476 LIBS libraries to pass to the linker, e.g. -l<library>
1477 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1478 you have headers in a nonstandard directory <include dir>
1479 CPP C preprocessor
1480 OBJCOPY location of objcopy
1481 DSYMUTIL location of dsymutil
1482 NM location of nm
1484 Use these variables to override the choices made by `configure' or to help
1485 it to find libraries and programs with nonstandard names/locations.
1487 Report bugs to the package provider.
1488 _ACEOF
1489 ac_status=$?
1492 if test "$ac_init_help" = "recursive"; then
1493 # If there are subdirs, report their specific --help.
1494 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1495 test -d "$ac_dir" ||
1496 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1497 continue
1498 ac_builddir=.
1500 case "$ac_dir" in
1501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1504 # A ".." for each directory in $ac_dir_suffix.
1505 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1506 case $ac_top_builddir_sub in
1507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1509 esac ;;
1510 esac
1511 ac_abs_top_builddir=$ac_pwd
1512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1513 # for backward compatibility:
1514 ac_top_builddir=$ac_top_build_prefix
1516 case $srcdir in
1517 .) # We are building in place.
1518 ac_srcdir=.
1519 ac_top_srcdir=$ac_top_builddir_sub
1520 ac_abs_top_srcdir=$ac_pwd ;;
1521 [\\/]* | ?:[\\/]* ) # Absolute name.
1522 ac_srcdir=$srcdir$ac_dir_suffix;
1523 ac_top_srcdir=$srcdir
1524 ac_abs_top_srcdir=$srcdir ;;
1525 *) # Relative name.
1526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1527 ac_top_srcdir=$ac_top_build_prefix$srcdir
1528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1529 esac
1530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1532 cd "$ac_dir" || { ac_status=$?; continue; }
1533 # Check for guested configure.
1534 if test -f "$ac_srcdir/configure.gnu"; then
1535 echo &&
1536 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1537 elif test -f "$ac_srcdir/configure"; then
1538 echo &&
1539 $SHELL "$ac_srcdir/configure" --help=recursive
1540 else
1541 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1542 fi || ac_status=$?
1543 cd "$ac_pwd" || { ac_status=$?; break; }
1544 done
1547 test -n "$ac_init_help" && exit $ac_status
1548 if $ac_init_version; then
1549 cat <<\_ACEOF
1550 package-unused configure version-unused
1551 generated by GNU Autoconf 2.69
1553 Copyright (C) 2012 Free Software Foundation, Inc.
1554 This configure script is free software; the Free Software Foundation
1555 gives unlimited permission to copy, distribute and modify it.
1556 _ACEOF
1557 exit
1560 ## ------------------------ ##
1561 ## Autoconf initialization. ##
1562 ## ------------------------ ##
1564 # ac_fn_c_try_compile LINENO
1565 # --------------------------
1566 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1567 ac_fn_c_try_compile ()
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 rm -f conftest.$ac_objext
1571 if { { ac_try="$ac_compile"
1572 case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575 esac
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_compile") 2>conftest.err
1579 ac_status=$?
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } && {
1587 test -z "$ac_c_werror_flag" ||
1588 test ! -s conftest.err
1589 } && test -s conftest.$ac_objext; then :
1590 ac_retval=0
1591 else
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1595 ac_retval=1
1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598 as_fn_set_status $ac_retval
1600 } # ac_fn_c_try_compile
1602 # ac_fn_c_try_cpp LINENO
1603 # ----------------------
1604 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1605 ac_fn_c_try_cpp ()
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 if { { ac_try="$ac_cpp conftest.$ac_ext"
1609 case "(($ac_try" in
1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1612 esac
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1616 ac_status=$?
1617 if test -s conftest.err; then
1618 grep -v '^ *+' conftest.err >conftest.er1
1619 cat conftest.er1 >&5
1620 mv -f conftest.er1 conftest.err
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } > conftest.i && {
1624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1625 test ! -s conftest.err
1626 }; then :
1627 ac_retval=0
1628 else
1629 $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1632 ac_retval=1
1634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635 as_fn_set_status $ac_retval
1637 } # ac_fn_c_try_cpp
1639 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1640 # -------------------------------------------------------
1641 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1642 # the include files in INCLUDES and setting the cache variable VAR
1643 # accordingly.
1644 ac_fn_c_check_header_mongrel ()
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 if eval \${$3+:} false; then :
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1649 $as_echo_n "checking for $2... " >&6; }
1650 if eval \${$3+:} false; then :
1651 $as_echo_n "(cached) " >&6
1653 eval ac_res=\$$3
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1655 $as_echo "$ac_res" >&6; }
1656 else
1657 # Is the header compilable?
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1659 $as_echo_n "checking $2 usability... " >&6; }
1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h. */
1663 #include <$2>
1664 _ACEOF
1665 if ac_fn_c_try_compile "$LINENO"; then :
1666 ac_header_compiler=yes
1667 else
1668 ac_header_compiler=no
1670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1672 $as_echo "$ac_header_compiler" >&6; }
1674 # Is the header present?
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1676 $as_echo_n "checking $2 presence... " >&6; }
1677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678 /* end confdefs.h. */
1679 #include <$2>
1680 _ACEOF
1681 if ac_fn_c_try_cpp "$LINENO"; then :
1682 ac_header_preproc=yes
1683 else
1684 ac_header_preproc=no
1686 rm -f conftest.err conftest.i conftest.$ac_ext
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1688 $as_echo "$ac_header_preproc" >&6; }
1690 # So? What about this header?
1691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1692 yes:no: )
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1694 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1696 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1698 no:yes:* )
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1700 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1702 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1704 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1706 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1708 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1710 esac
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712 $as_echo_n "checking for $2... " >&6; }
1713 if eval \${$3+:} false; then :
1714 $as_echo_n "(cached) " >&6
1715 else
1716 eval "$3=\$ac_header_compiler"
1718 eval ac_res=\$$3
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1720 $as_echo "$ac_res" >&6; }
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 } # ac_fn_c_check_header_mongrel
1726 # ac_fn_c_try_run LINENO
1727 # ----------------------
1728 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1729 # that executables *can* be run.
1730 ac_fn_c_try_run ()
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { { ac_try="$ac_link"
1734 case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_link") 2>&5
1741 ac_status=$?
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1744 { { case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_try") 2>&5
1751 ac_status=$?
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; }; }; then :
1754 ac_retval=0
1755 else
1756 $as_echo "$as_me: program exited with status $ac_status" >&5
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1760 ac_retval=$ac_status
1762 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764 as_fn_set_status $ac_retval
1766 } # ac_fn_c_try_run
1768 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1769 # -------------------------------------------------------
1770 # Tests whether HEADER exists and can be compiled using the include files in
1771 # INCLUDES, setting the cache variable VAR accordingly.
1772 ac_fn_c_check_header_compile ()
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if eval \${$3+:} false; then :
1778 $as_echo_n "(cached) " >&6
1779 else
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1783 #include <$2>
1784 _ACEOF
1785 if ac_fn_c_try_compile "$LINENO"; then :
1786 eval "$3=yes"
1787 else
1788 eval "$3=no"
1790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792 eval ac_res=\$$3
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794 $as_echo "$ac_res" >&6; }
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797 } # ac_fn_c_check_header_compile
1799 # ac_fn_c_try_link LINENO
1800 # -----------------------
1801 # Try to link conftest.$ac_ext, and return whether this succeeded.
1802 ac_fn_c_try_link ()
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 rm -f conftest.$ac_objext conftest$ac_exeext
1806 if { { ac_try="$ac_link"
1807 case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810 esac
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_link") 2>conftest.err
1814 ac_status=$?
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } && {
1822 test -z "$ac_c_werror_flag" ||
1823 test ! -s conftest.err
1824 } && test -s conftest$ac_exeext && {
1825 test "$cross_compiling" = yes ||
1826 test -x conftest$ac_exeext
1827 }; then :
1828 ac_retval=0
1829 else
1830 $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1833 ac_retval=1
1835 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1836 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1837 # interfere with the next link command; also delete a directory that is
1838 # left behind by Apple's compiler. We do this before executing the actions.
1839 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 as_fn_set_status $ac_retval
1843 } # ac_fn_c_try_link
1845 # ac_fn_c_check_func LINENO FUNC VAR
1846 # ----------------------------------
1847 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1848 ac_fn_c_check_func ()
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if eval \${$3+:} false; then :
1854 $as_echo_n "(cached) " >&6
1855 else
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h. */
1858 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1860 #define $2 innocuous_$2
1862 /* System header to define __stub macros and hopefully few prototypes,
1863 which can conflict with char $2 (); below.
1864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1865 <limits.h> exists even on freestanding compilers. */
1867 #ifdef __STDC__
1868 # include <limits.h>
1869 #else
1870 # include <assert.h>
1871 #endif
1873 #undef $2
1875 /* Override any GCC internal prototype to avoid an error.
1876 Use char because int might match the return type of a GCC
1877 builtin and then its argument prototype would still apply. */
1878 #ifdef __cplusplus
1879 extern "C"
1880 #endif
1881 char $2 ();
1882 /* The GNU C library defines this for functions which it implements
1883 to always fail with ENOSYS. Some functions are actually named
1884 something starting with __ and the normal name is an alias. */
1885 #if defined __stub_$2 || defined __stub___$2
1886 choke me
1887 #endif
1890 main ()
1892 return $2 ();
1894 return 0;
1896 _ACEOF
1897 if ac_fn_c_try_link "$LINENO"; then :
1898 eval "$3=yes"
1899 else
1900 eval "$3=no"
1902 rm -f core conftest.err conftest.$ac_objext \
1903 conftest$ac_exeext conftest.$ac_ext
1905 eval ac_res=\$$3
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907 $as_echo "$ac_res" >&6; }
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910 } # ac_fn_c_check_func
1912 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1913 # -------------------------------------------
1914 # Tests whether TYPE exists after having included INCLUDES, setting cache
1915 # variable VAR accordingly.
1916 ac_fn_c_check_type ()
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1920 $as_echo_n "checking for $2... " >&6; }
1921 if eval \${$3+:} false; then :
1922 $as_echo_n "(cached) " >&6
1923 else
1924 eval "$3=no"
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1929 main ()
1931 if (sizeof ($2))
1932 return 0;
1934 return 0;
1936 _ACEOF
1937 if ac_fn_c_try_compile "$LINENO"; then :
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1942 main ()
1944 if (sizeof (($2)))
1945 return 0;
1947 return 0;
1949 _ACEOF
1950 if ac_fn_c_try_compile "$LINENO"; then :
1952 else
1953 eval "$3=yes"
1955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1959 eval ac_res=\$$3
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961 $as_echo "$ac_res" >&6; }
1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1964 } # ac_fn_c_check_type
1966 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1967 # --------------------------------------------
1968 # Tries to find the compile-time value of EXPR in a program that includes
1969 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1970 # computed
1971 ac_fn_c_compute_int ()
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 if test "$cross_compiling" = yes; then
1975 # Depending upon the size, compute the lo and hi bounds.
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1980 main ()
1982 static int test_array [1 - 2 * !(($2) >= 0)];
1983 test_array [0] = 0;
1984 return test_array [0];
1987 return 0;
1989 _ACEOF
1990 if ac_fn_c_try_compile "$LINENO"; then :
1991 ac_lo=0 ac_mid=0
1992 while :; do
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1997 main ()
1999 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2000 test_array [0] = 0;
2001 return test_array [0];
2004 return 0;
2006 _ACEOF
2007 if ac_fn_c_try_compile "$LINENO"; then :
2008 ac_hi=$ac_mid; break
2009 else
2010 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2011 if test $ac_lo -le $ac_mid; then
2012 ac_lo= ac_hi=
2013 break
2015 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018 done
2019 else
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2024 main ()
2026 static int test_array [1 - 2 * !(($2) < 0)];
2027 test_array [0] = 0;
2028 return test_array [0];
2031 return 0;
2033 _ACEOF
2034 if ac_fn_c_try_compile "$LINENO"; then :
2035 ac_hi=-1 ac_mid=-1
2036 while :; do
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2041 main ()
2043 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2044 test_array [0] = 0;
2045 return test_array [0];
2048 return 0;
2050 _ACEOF
2051 if ac_fn_c_try_compile "$LINENO"; then :
2052 ac_lo=$ac_mid; break
2053 else
2054 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2055 if test $ac_mid -le $ac_hi; then
2056 ac_lo= ac_hi=
2057 break
2059 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062 done
2063 else
2064 ac_lo= ac_hi=
2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069 # Binary search between lo and hi bounds.
2070 while test "x$ac_lo" != "x$ac_hi"; do
2071 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2076 main ()
2078 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2079 test_array [0] = 0;
2080 return test_array [0];
2083 return 0;
2085 _ACEOF
2086 if ac_fn_c_try_compile "$LINENO"; then :
2087 ac_hi=$ac_mid
2088 else
2089 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092 done
2093 case $ac_lo in #((
2094 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2095 '') ac_retval=1 ;;
2096 esac
2097 else
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2101 static long int longval () { return $2; }
2102 static unsigned long int ulongval () { return $2; }
2103 #include <stdio.h>
2104 #include <stdlib.h>
2106 main ()
2109 FILE *f = fopen ("conftest.val", "w");
2110 if (! f)
2111 return 1;
2112 if (($2) < 0)
2114 long int i = longval ();
2115 if (i != ($2))
2116 return 1;
2117 fprintf (f, "%ld", i);
2119 else
2121 unsigned long int i = ulongval ();
2122 if (i != ($2))
2123 return 1;
2124 fprintf (f, "%lu", i);
2126 /* Do not output a trailing newline, as this causes \r\n confusion
2127 on some platforms. */
2128 return ferror (f) || fclose (f) != 0;
2131 return 0;
2133 _ACEOF
2134 if ac_fn_c_try_run "$LINENO"; then :
2135 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2136 else
2137 ac_retval=1
2139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2140 conftest.$ac_objext conftest.beam conftest.$ac_ext
2141 rm -f conftest.val
2144 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2145 as_fn_set_status $ac_retval
2147 } # ac_fn_c_compute_int
2149 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2150 # ---------------------------------------------
2151 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2152 # accordingly.
2153 ac_fn_c_check_decl ()
2155 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156 as_decl_name=`echo $2|sed 's/ *(.*//'`
2157 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2159 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2160 if eval \${$3+:} false; then :
2161 $as_echo_n "(cached) " >&6
2162 else
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h. */
2167 main ()
2169 #ifndef $as_decl_name
2170 #ifdef __cplusplus
2171 (void) $as_decl_use;
2172 #else
2173 (void) $as_decl_name;
2174 #endif
2175 #endif
2178 return 0;
2180 _ACEOF
2181 if ac_fn_c_try_compile "$LINENO"; then :
2182 eval "$3=yes"
2183 else
2184 eval "$3=no"
2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188 eval ac_res=\$$3
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2190 $as_echo "$ac_res" >&6; }
2191 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2193 } # ac_fn_c_check_decl
2194 cat >config.log <<_ACEOF
2195 This file contains any messages produced by compilers while
2196 running configure, to aid debugging if configure makes a mistake.
2198 It was created by package-unused $as_me version-unused, which was
2199 generated by GNU Autoconf 2.69. Invocation command line was
2201 $ $0 $@
2203 _ACEOF
2204 exec 5>>config.log
2206 cat <<_ASUNAME
2207 ## --------- ##
2208 ## Platform. ##
2209 ## --------- ##
2211 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2212 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2213 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2214 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2215 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2217 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2218 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2220 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2221 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2222 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2223 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2224 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2225 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2226 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2228 _ASUNAME
2230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231 for as_dir in $PATH
2233 IFS=$as_save_IFS
2234 test -z "$as_dir" && as_dir=.
2235 $as_echo "PATH: $as_dir"
2236 done
2237 IFS=$as_save_IFS
2239 } >&5
2241 cat >&5 <<_ACEOF
2244 ## ----------- ##
2245 ## Core tests. ##
2246 ## ----------- ##
2248 _ACEOF
2251 # Keep a trace of the command line.
2252 # Strip out --no-create and --no-recursion so they do not pile up.
2253 # Strip out --silent because we don't want to record it for future runs.
2254 # Also quote any args containing shell meta-characters.
2255 # Make two passes to allow for proper duplicate-argument suppression.
2256 ac_configure_args=
2257 ac_configure_args0=
2258 ac_configure_args1=
2259 ac_must_keep_next=false
2260 for ac_pass in 1 2
2262 for ac_arg
2264 case $ac_arg in
2265 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2266 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2267 | -silent | --silent | --silen | --sile | --sil)
2268 continue ;;
2269 *\'*)
2270 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2271 esac
2272 case $ac_pass in
2273 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2275 as_fn_append ac_configure_args1 " '$ac_arg'"
2276 if test $ac_must_keep_next = true; then
2277 ac_must_keep_next=false # Got value, back to normal.
2278 else
2279 case $ac_arg in
2280 *=* | --config-cache | -C | -disable-* | --disable-* \
2281 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2282 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2283 | -with-* | --with-* | -without-* | --without-* | --x)
2284 case "$ac_configure_args0 " in
2285 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2286 esac
2288 -* ) ac_must_keep_next=true ;;
2289 esac
2291 as_fn_append ac_configure_args " '$ac_arg'"
2293 esac
2294 done
2295 done
2296 { ac_configure_args0=; unset ac_configure_args0;}
2297 { ac_configure_args1=; unset ac_configure_args1;}
2299 # When interrupted or exit'd, cleanup temporary files, and complete
2300 # config.log. We remove comments because anyway the quotes in there
2301 # would cause problems or look ugly.
2302 # WARNING: Use '\'' to represent an apostrophe within the trap.
2303 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2304 trap 'exit_status=$?
2305 # Save into config.log some information that might help in debugging.
2307 echo
2309 $as_echo "## ---------------- ##
2310 ## Cache variables. ##
2311 ## ---------------- ##"
2312 echo
2313 # The following way of writing the cache mishandles newlines in values,
2315 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2316 eval ac_val=\$$ac_var
2317 case $ac_val in #(
2318 *${as_nl}*)
2319 case $ac_var in #(
2320 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2321 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2322 esac
2323 case $ac_var in #(
2324 _ | IFS | as_nl) ;; #(
2325 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2326 *) { eval $ac_var=; unset $ac_var;} ;;
2327 esac ;;
2328 esac
2329 done
2330 (set) 2>&1 |
2331 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2332 *${as_nl}ac_space=\ *)
2333 sed -n \
2334 "s/'\''/'\''\\\\'\'''\''/g;
2335 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2336 ;; #(
2338 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2340 esac |
2341 sort
2343 echo
2345 $as_echo "## ----------------- ##
2346 ## Output variables. ##
2347 ## ----------------- ##"
2348 echo
2349 for ac_var in $ac_subst_vars
2351 eval ac_val=\$$ac_var
2352 case $ac_val in
2353 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2354 esac
2355 $as_echo "$ac_var='\''$ac_val'\''"
2356 done | sort
2357 echo
2359 if test -n "$ac_subst_files"; then
2360 $as_echo "## ------------------- ##
2361 ## File substitutions. ##
2362 ## ------------------- ##"
2363 echo
2364 for ac_var in $ac_subst_files
2366 eval ac_val=\$$ac_var
2367 case $ac_val in
2368 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2369 esac
2370 $as_echo "$ac_var='\''$ac_val'\''"
2371 done | sort
2372 echo
2375 if test -s confdefs.h; then
2376 $as_echo "## ----------- ##
2377 ## confdefs.h. ##
2378 ## ----------- ##"
2379 echo
2380 cat confdefs.h
2381 echo
2383 test "$ac_signal" != 0 &&
2384 $as_echo "$as_me: caught signal $ac_signal"
2385 $as_echo "$as_me: exit $exit_status"
2386 } >&5
2387 rm -f core *.core core.conftest.* &&
2388 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2389 exit $exit_status
2391 for ac_signal in 1 2 13 15; do
2392 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2393 done
2394 ac_signal=0
2396 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2397 rm -f -r conftest* confdefs.h
2399 $as_echo "/* confdefs.h */" > confdefs.h
2401 # Predefined preprocessor variables.
2403 cat >>confdefs.h <<_ACEOF
2404 #define PACKAGE_NAME "$PACKAGE_NAME"
2405 _ACEOF
2407 cat >>confdefs.h <<_ACEOF
2408 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2409 _ACEOF
2411 cat >>confdefs.h <<_ACEOF
2412 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2413 _ACEOF
2415 cat >>confdefs.h <<_ACEOF
2416 #define PACKAGE_STRING "$PACKAGE_STRING"
2417 _ACEOF
2419 cat >>confdefs.h <<_ACEOF
2420 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2421 _ACEOF
2423 cat >>confdefs.h <<_ACEOF
2424 #define PACKAGE_URL "$PACKAGE_URL"
2425 _ACEOF
2428 # Let the site file select an alternate cache file if it wants to.
2429 # Prefer an explicitly selected file to automatically selected ones.
2430 ac_site_file1=NONE
2431 ac_site_file2=NONE
2432 if test -n "$CONFIG_SITE"; then
2433 # We do not want a PATH search for config.site.
2434 case $CONFIG_SITE in #((
2435 -*) ac_site_file1=./$CONFIG_SITE;;
2436 */*) ac_site_file1=$CONFIG_SITE;;
2437 *) ac_site_file1=./$CONFIG_SITE;;
2438 esac
2439 elif test "x$prefix" != xNONE; then
2440 ac_site_file1=$prefix/share/config.site
2441 ac_site_file2=$prefix/etc/config.site
2442 else
2443 ac_site_file1=$ac_default_prefix/share/config.site
2444 ac_site_file2=$ac_default_prefix/etc/config.site
2446 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2448 test "x$ac_site_file" = xNONE && continue
2449 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2451 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2452 sed 's/^/| /' "$ac_site_file" >&5
2453 . "$ac_site_file" \
2454 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2456 as_fn_error $? "failed to load site script $ac_site_file
2457 See \`config.log' for more details" "$LINENO" 5; }
2459 done
2461 if test -r "$cache_file"; then
2462 # Some versions of bash will fail to source /dev/null (special files
2463 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2464 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2466 $as_echo "$as_me: loading cache $cache_file" >&6;}
2467 case $cache_file in
2468 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2469 *) . "./$cache_file";;
2470 esac
2472 else
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2474 $as_echo "$as_me: creating cache $cache_file" >&6;}
2475 >$cache_file
2478 # Check that the precious variables saved in the cache have kept the same
2479 # value.
2480 ac_cache_corrupted=false
2481 for ac_var in $ac_precious_vars; do
2482 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2483 eval ac_new_set=\$ac_env_${ac_var}_set
2484 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2485 eval ac_new_val=\$ac_env_${ac_var}_value
2486 case $ac_old_set,$ac_new_set in
2487 set,)
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2489 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2490 ac_cache_corrupted=: ;;
2491 ,set)
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2493 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2494 ac_cache_corrupted=: ;;
2495 ,);;
2497 if test "x$ac_old_val" != "x$ac_new_val"; then
2498 # differences in whitespace do not lead to failure.
2499 ac_old_val_w=`echo x $ac_old_val`
2500 ac_new_val_w=`echo x $ac_new_val`
2501 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2503 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2504 ac_cache_corrupted=:
2505 else
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2507 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2508 eval $ac_var=\$ac_old_val
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2511 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2513 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2514 fi;;
2515 esac
2516 # Pass precious variables to config.status.
2517 if test "$ac_new_set" = set; then
2518 case $ac_new_val in
2519 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2520 *) ac_arg=$ac_var=$ac_new_val ;;
2521 esac
2522 case " $ac_configure_args " in
2523 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2524 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2525 esac
2527 done
2528 if $ac_cache_corrupted; then
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2532 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2533 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2535 ## -------------------- ##
2536 ## Main body of script. ##
2537 ## -------------------- ##
2539 ac_ext=c
2540 ac_cpp='$CPP $CPPFLAGS'
2541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2550 ac_config_headers="$ac_config_headers config.h"
2553 if test -n "${with_target_subdir}"; then
2554 # Default to --enable-multilib
2555 # Check whether --enable-multilib was given.
2556 if test "${enable_multilib+set}" = set; then :
2557 enableval=$enable_multilib; case "$enableval" in
2558 yes) multilib=yes ;;
2559 no) multilib=no ;;
2560 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2561 esac
2562 else
2563 multilib=yes
2567 # We may get other options which we leave undocumented:
2568 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2569 # See config-ml.in if you want the gory details.
2571 if test "$srcdir" = "."; then
2572 if test "$with_target_subdir" != "."; then
2573 multi_basedir="$srcdir/$with_multisrctop../.."
2574 else
2575 multi_basedir="$srcdir/$with_multisrctop.."
2577 else
2578 multi_basedir="$srcdir/.."
2582 # Even if the default multilib is not a cross compilation,
2583 # it may be that some of the other multilibs are.
2584 if test $cross_compiling = no && test $multilib = yes \
2585 && test "x${with_multisubdir}" != x ; then
2586 cross_compiling=maybe
2589 ac_config_commands="$ac_config_commands default-1"
2593 ac_aux_dir=
2594 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2595 if test -f "$ac_dir/install-sh"; then
2596 ac_aux_dir=$ac_dir
2597 ac_install_sh="$ac_aux_dir/install-sh -c"
2598 break
2599 elif test -f "$ac_dir/install.sh"; then
2600 ac_aux_dir=$ac_dir
2601 ac_install_sh="$ac_aux_dir/install.sh -c"
2602 break
2603 elif test -f "$ac_dir/shtool"; then
2604 ac_aux_dir=$ac_dir
2605 ac_install_sh="$ac_aux_dir/shtool install -c"
2606 break
2608 done
2609 if test -z "$ac_aux_dir"; then
2610 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2613 # These three variables are undocumented and unsupported,
2614 # and are intended to be withdrawn in a future Autoconf release.
2615 # They can cause serious problems if a builder's source tree is in a directory
2616 # whose full name contains unusual characters.
2617 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2618 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2619 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2622 # Make sure we can run config.sub.
2623 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2624 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2627 $as_echo_n "checking build system type... " >&6; }
2628 if ${ac_cv_build+:} false; then :
2629 $as_echo_n "(cached) " >&6
2630 else
2631 ac_build_alias=$build_alias
2632 test "x$ac_build_alias" = x &&
2633 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2634 test "x$ac_build_alias" = x &&
2635 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2636 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2637 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2641 $as_echo "$ac_cv_build" >&6; }
2642 case $ac_cv_build in
2643 *-*-*) ;;
2644 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2645 esac
2646 build=$ac_cv_build
2647 ac_save_IFS=$IFS; IFS='-'
2648 set x $ac_cv_build
2649 shift
2650 build_cpu=$1
2651 build_vendor=$2
2652 shift; shift
2653 # Remember, the first character of IFS is used to create $*,
2654 # except with old shells:
2655 build_os=$*
2656 IFS=$ac_save_IFS
2657 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2661 $as_echo_n "checking host system type... " >&6; }
2662 if ${ac_cv_host+:} false; then :
2663 $as_echo_n "(cached) " >&6
2664 else
2665 if test "x$host_alias" = x; then
2666 ac_cv_host=$ac_cv_build
2667 else
2668 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2669 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2674 $as_echo "$ac_cv_host" >&6; }
2675 case $ac_cv_host in
2676 *-*-*) ;;
2677 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2678 esac
2679 host=$ac_cv_host
2680 ac_save_IFS=$IFS; IFS='-'
2681 set x $ac_cv_host
2682 shift
2683 host_cpu=$1
2684 host_vendor=$2
2685 shift; shift
2686 # Remember, the first character of IFS is used to create $*,
2687 # except with old shells:
2688 host_os=$*
2689 IFS=$ac_save_IFS
2690 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2694 $as_echo_n "checking target system type... " >&6; }
2695 if ${ac_cv_target+:} false; then :
2696 $as_echo_n "(cached) " >&6
2697 else
2698 if test "x$target_alias" = x; then
2699 ac_cv_target=$ac_cv_host
2700 else
2701 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2702 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2707 $as_echo "$ac_cv_target" >&6; }
2708 case $ac_cv_target in
2709 *-*-*) ;;
2710 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2711 esac
2712 target=$ac_cv_target
2713 ac_save_IFS=$IFS; IFS='-'
2714 set x $ac_cv_target
2715 shift
2716 target_cpu=$1
2717 target_vendor=$2
2718 shift; shift
2719 # Remember, the first character of IFS is used to create $*,
2720 # except with old shells:
2721 target_os=$*
2722 IFS=$ac_save_IFS
2723 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2726 # The aliases save the names the user supplied, while $host etc.
2727 # will get canonicalized.
2728 test -n "$target_alias" &&
2729 test "$program_prefix$program_suffix$program_transform_name" = \
2730 NONENONEs,x,x, &&
2731 program_prefix=${target_alias}-
2733 target_alias=${target_alias-$host_alias}
2735 # Expand $ac_aux_dir to an absolute path.
2736 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2738 ac_ext=c
2739 ac_cpp='$CPP $CPPFLAGS'
2740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2743 if test -n "$ac_tool_prefix"; then
2744 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2745 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2747 $as_echo_n "checking for $ac_word... " >&6; }
2748 if ${ac_cv_prog_CC+:} false; then :
2749 $as_echo_n "(cached) " >&6
2750 else
2751 if test -n "$CC"; then
2752 ac_cv_prog_CC="$CC" # Let the user override the test.
2753 else
2754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755 for as_dir in $PATH
2757 IFS=$as_save_IFS
2758 test -z "$as_dir" && as_dir=.
2759 for ac_exec_ext in '' $ac_executable_extensions; do
2760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2761 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2763 break 2
2765 done
2766 done
2767 IFS=$as_save_IFS
2771 CC=$ac_cv_prog_CC
2772 if test -n "$CC"; then
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2774 $as_echo "$CC" >&6; }
2775 else
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2777 $as_echo "no" >&6; }
2782 if test -z "$ac_cv_prog_CC"; then
2783 ac_ct_CC=$CC
2784 # Extract the first word of "gcc", so it can be a program name with args.
2785 set dummy gcc; ac_word=$2
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2787 $as_echo_n "checking for $ac_word... " >&6; }
2788 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2789 $as_echo_n "(cached) " >&6
2790 else
2791 if test -n "$ac_ct_CC"; then
2792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2793 else
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 for as_dir in $PATH
2797 IFS=$as_save_IFS
2798 test -z "$as_dir" && as_dir=.
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2801 ac_cv_prog_ac_ct_CC="gcc"
2802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 break 2
2805 done
2806 done
2807 IFS=$as_save_IFS
2811 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2812 if test -n "$ac_ct_CC"; then
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2814 $as_echo "$ac_ct_CC" >&6; }
2815 else
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2817 $as_echo "no" >&6; }
2820 if test "x$ac_ct_CC" = x; then
2821 CC=""
2822 else
2823 case $cross_compiling:$ac_tool_warned in
2824 yes:)
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2827 ac_tool_warned=yes ;;
2828 esac
2829 CC=$ac_ct_CC
2831 else
2832 CC="$ac_cv_prog_CC"
2835 if test -z "$CC"; then
2836 if test -n "$ac_tool_prefix"; then
2837 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2838 set dummy ${ac_tool_prefix}cc; ac_word=$2
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2840 $as_echo_n "checking for $ac_word... " >&6; }
2841 if ${ac_cv_prog_CC+:} false; then :
2842 $as_echo_n "(cached) " >&6
2843 else
2844 if test -n "$CC"; then
2845 ac_cv_prog_CC="$CC" # Let the user override the test.
2846 else
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854 ac_cv_prog_CC="${ac_tool_prefix}cc"
2855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 break 2
2858 done
2859 done
2860 IFS=$as_save_IFS
2864 CC=$ac_cv_prog_CC
2865 if test -n "$CC"; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2867 $as_echo "$CC" >&6; }
2868 else
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870 $as_echo "no" >&6; }
2876 if test -z "$CC"; then
2877 # Extract the first word of "cc", so it can be a program name with args.
2878 set dummy cc; ac_word=$2
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880 $as_echo_n "checking for $ac_word... " >&6; }
2881 if ${ac_cv_prog_CC+:} false; then :
2882 $as_echo_n "(cached) " >&6
2883 else
2884 if test -n "$CC"; then
2885 ac_cv_prog_CC="$CC" # Let the user override the test.
2886 else
2887 ac_prog_rejected=no
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2891 IFS=$as_save_IFS
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2895 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2896 ac_prog_rejected=yes
2897 continue
2899 ac_cv_prog_CC="cc"
2900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 break 2
2903 done
2904 done
2905 IFS=$as_save_IFS
2907 if test $ac_prog_rejected = yes; then
2908 # We found a bogon in the path, so make sure we never use it.
2909 set dummy $ac_cv_prog_CC
2910 shift
2911 if test $# != 0; then
2912 # We chose a different compiler from the bogus one.
2913 # However, it has the same basename, so the bogon will be chosen
2914 # first if we set CC to just the basename; use the full file name.
2915 shift
2916 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2921 CC=$ac_cv_prog_CC
2922 if test -n "$CC"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2924 $as_echo "$CC" >&6; }
2925 else
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927 $as_echo "no" >&6; }
2932 if test -z "$CC"; then
2933 if test -n "$ac_tool_prefix"; then
2934 for ac_prog in cl.exe
2936 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2937 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2939 $as_echo_n "checking for $ac_word... " >&6; }
2940 if ${ac_cv_prog_CC+:} false; then :
2941 $as_echo_n "(cached) " >&6
2942 else
2943 if test -n "$CC"; then
2944 ac_cv_prog_CC="$CC" # Let the user override the test.
2945 else
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH
2949 IFS=$as_save_IFS
2950 test -z "$as_dir" && as_dir=.
2951 for ac_exec_ext in '' $ac_executable_extensions; do
2952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2953 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2955 break 2
2957 done
2958 done
2959 IFS=$as_save_IFS
2963 CC=$ac_cv_prog_CC
2964 if test -n "$CC"; then
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2966 $as_echo "$CC" >&6; }
2967 else
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969 $as_echo "no" >&6; }
2973 test -n "$CC" && break
2974 done
2976 if test -z "$CC"; then
2977 ac_ct_CC=$CC
2978 for ac_prog in cl.exe
2980 # Extract the first word of "$ac_prog", so it can be a program name with args.
2981 set dummy $ac_prog; ac_word=$2
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983 $as_echo_n "checking for $ac_word... " >&6; }
2984 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2985 $as_echo_n "(cached) " >&6
2986 else
2987 if test -n "$ac_ct_CC"; then
2988 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2989 else
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH
2993 IFS=$as_save_IFS
2994 test -z "$as_dir" && as_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2997 ac_cv_prog_ac_ct_CC="$ac_prog"
2998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 break 2
3001 done
3002 done
3003 IFS=$as_save_IFS
3007 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3008 if test -n "$ac_ct_CC"; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3010 $as_echo "$ac_ct_CC" >&6; }
3011 else
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013 $as_echo "no" >&6; }
3017 test -n "$ac_ct_CC" && break
3018 done
3020 if test "x$ac_ct_CC" = x; then
3021 CC=""
3022 else
3023 case $cross_compiling:$ac_tool_warned in
3024 yes:)
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3027 ac_tool_warned=yes ;;
3028 esac
3029 CC=$ac_ct_CC
3036 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3038 as_fn_error $? "no acceptable C compiler found in \$PATH
3039 See \`config.log' for more details" "$LINENO" 5; }
3041 # Provide some information about the compiler.
3042 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3043 set X $ac_compile
3044 ac_compiler=$2
3045 for ac_option in --version -v -V -qversion; do
3046 { { ac_try="$ac_compiler $ac_option >&5"
3047 case "(($ac_try" in
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3050 esac
3051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3052 $as_echo "$ac_try_echo"; } >&5
3053 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3054 ac_status=$?
3055 if test -s conftest.err; then
3056 sed '10a\
3057 ... rest of stderr output deleted ...
3058 10q' conftest.err >conftest.er1
3059 cat conftest.er1 >&5
3061 rm -f conftest.er1 conftest.err
3062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3063 test $ac_status = 0; }
3064 done
3066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3067 /* end confdefs.h. */
3070 main ()
3074 return 0;
3076 _ACEOF
3077 ac_clean_files_save=$ac_clean_files
3078 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3079 # Try to create an executable without -o first, disregard a.out.
3080 # It will help us diagnose broken compilers, and finding out an intuition
3081 # of exeext.
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3083 $as_echo_n "checking whether the C compiler works... " >&6; }
3084 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3086 # The possible output files:
3087 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3089 ac_rmfiles=
3090 for ac_file in $ac_files
3092 case $ac_file in
3093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3094 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3095 esac
3096 done
3097 rm -f $ac_rmfiles
3099 if { { ac_try="$ac_link_default"
3100 case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3103 esac
3104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3105 $as_echo "$ac_try_echo"; } >&5
3106 (eval "$ac_link_default") 2>&5
3107 ac_status=$?
3108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3109 test $ac_status = 0; }; then :
3110 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3111 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3112 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3113 # so that the user can short-circuit this test for compilers unknown to
3114 # Autoconf.
3115 for ac_file in $ac_files ''
3117 test -f "$ac_file" || continue
3118 case $ac_file in
3119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3121 [ab].out )
3122 # We found the default executable, but exeext='' is most
3123 # certainly right.
3124 break;;
3125 *.* )
3126 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3127 then :; else
3128 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3130 # We set ac_cv_exeext here because the later test for it is not
3131 # safe: cross compilers may not add the suffix if given an `-o'
3132 # argument, so we may need to know it at that point already.
3133 # Even if this section looks crufty: it has the advantage of
3134 # actually working.
3135 break;;
3137 break;;
3138 esac
3139 done
3140 test "$ac_cv_exeext" = no && ac_cv_exeext=
3142 else
3143 ac_file=''
3145 if test -z "$ac_file"; then :
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3148 $as_echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3153 as_fn_error 77 "C compiler cannot create executables
3154 See \`config.log' for more details" "$LINENO" 5; }
3155 else
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3157 $as_echo "yes" >&6; }
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3160 $as_echo_n "checking for C compiler default output file name... " >&6; }
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3162 $as_echo "$ac_file" >&6; }
3163 ac_exeext=$ac_cv_exeext
3165 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3166 ac_clean_files=$ac_clean_files_save
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3168 $as_echo_n "checking for suffix of executables... " >&6; }
3169 if { { ac_try="$ac_link"
3170 case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173 esac
3174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3175 $as_echo "$ac_try_echo"; } >&5
3176 (eval "$ac_link") 2>&5
3177 ac_status=$?
3178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3179 test $ac_status = 0; }; then :
3180 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3181 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3182 # work properly (i.e., refer to `conftest.exe'), while it won't with
3183 # `rm'.
3184 for ac_file in conftest.exe conftest conftest.*; do
3185 test -f "$ac_file" || continue
3186 case $ac_file in
3187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3188 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3189 break;;
3190 * ) break;;
3191 esac
3192 done
3193 else
3194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3196 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3197 See \`config.log' for more details" "$LINENO" 5; }
3199 rm -f conftest conftest$ac_cv_exeext
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3201 $as_echo "$ac_cv_exeext" >&6; }
3203 rm -f conftest.$ac_ext
3204 EXEEXT=$ac_cv_exeext
3205 ac_exeext=$EXEEXT
3206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207 /* end confdefs.h. */
3208 #include <stdio.h>
3210 main ()
3212 FILE *f = fopen ("conftest.out", "w");
3213 return ferror (f) || fclose (f) != 0;
3216 return 0;
3218 _ACEOF
3219 ac_clean_files="$ac_clean_files conftest.out"
3220 # Check that the compiler produces executables we can run. If not, either
3221 # the compiler is broken, or we cross compile.
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3223 $as_echo_n "checking whether we are cross compiling... " >&6; }
3224 if test "$cross_compiling" != yes; then
3225 { { ac_try="$ac_link"
3226 case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3229 esac
3230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3231 $as_echo "$ac_try_echo"; } >&5
3232 (eval "$ac_link") 2>&5
3233 ac_status=$?
3234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3235 test $ac_status = 0; }
3236 if { ac_try='./conftest$ac_cv_exeext'
3237 { { case "(($ac_try" in
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3240 esac
3241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3242 $as_echo "$ac_try_echo"; } >&5
3243 (eval "$ac_try") 2>&5
3244 ac_status=$?
3245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3246 test $ac_status = 0; }; }; then
3247 cross_compiling=no
3248 else
3249 if test "$cross_compiling" = maybe; then
3250 cross_compiling=yes
3251 else
3252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254 as_fn_error $? "cannot run C compiled programs.
3255 If you meant to cross compile, use \`--host'.
3256 See \`config.log' for more details" "$LINENO" 5; }
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3261 $as_echo "$cross_compiling" >&6; }
3263 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3264 ac_clean_files=$ac_clean_files_save
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3266 $as_echo_n "checking for suffix of object files... " >&6; }
3267 if ${ac_cv_objext+:} false; then :
3268 $as_echo_n "(cached) " >&6
3269 else
3270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271 /* end confdefs.h. */
3274 main ()
3278 return 0;
3280 _ACEOF
3281 rm -f conftest.o conftest.obj
3282 if { { ac_try="$ac_compile"
3283 case "(($ac_try" in
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3286 esac
3287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288 $as_echo "$ac_try_echo"; } >&5
3289 (eval "$ac_compile") 2>&5
3290 ac_status=$?
3291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292 test $ac_status = 0; }; then :
3293 for ac_file in conftest.o conftest.obj conftest.*; do
3294 test -f "$ac_file" || continue;
3295 case $ac_file in
3296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3297 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3298 break;;
3299 esac
3300 done
3301 else
3302 $as_echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3307 as_fn_error $? "cannot compute suffix of object files: cannot compile
3308 See \`config.log' for more details" "$LINENO" 5; }
3310 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3313 $as_echo "$ac_cv_objext" >&6; }
3314 OBJEXT=$ac_cv_objext
3315 ac_objext=$OBJEXT
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3317 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3318 if ${ac_cv_c_compiler_gnu+:} false; then :
3319 $as_echo_n "(cached) " >&6
3320 else
3321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322 /* end confdefs.h. */
3325 main ()
3327 #ifndef __GNUC__
3328 choke me
3329 #endif
3332 return 0;
3334 _ACEOF
3335 if ac_fn_c_try_compile "$LINENO"; then :
3336 ac_compiler_gnu=yes
3337 else
3338 ac_compiler_gnu=no
3340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3345 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3346 if test $ac_compiler_gnu = yes; then
3347 GCC=yes
3348 else
3349 GCC=
3351 ac_test_CFLAGS=${CFLAGS+set}
3352 ac_save_CFLAGS=$CFLAGS
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3354 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3355 if ${ac_cv_prog_cc_g+:} false; then :
3356 $as_echo_n "(cached) " >&6
3357 else
3358 ac_save_c_werror_flag=$ac_c_werror_flag
3359 ac_c_werror_flag=yes
3360 ac_cv_prog_cc_g=no
3361 CFLAGS="-g"
3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363 /* end confdefs.h. */
3366 main ()
3370 return 0;
3372 _ACEOF
3373 if ac_fn_c_try_compile "$LINENO"; then :
3374 ac_cv_prog_cc_g=yes
3375 else
3376 CFLAGS=""
3377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378 /* end confdefs.h. */
3381 main ()
3385 return 0;
3387 _ACEOF
3388 if ac_fn_c_try_compile "$LINENO"; then :
3390 else
3391 ac_c_werror_flag=$ac_save_c_werror_flag
3392 CFLAGS="-g"
3393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394 /* end confdefs.h. */
3397 main ()
3401 return 0;
3403 _ACEOF
3404 if ac_fn_c_try_compile "$LINENO"; then :
3405 ac_cv_prog_cc_g=yes
3407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3412 ac_c_werror_flag=$ac_save_c_werror_flag
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3415 $as_echo "$ac_cv_prog_cc_g" >&6; }
3416 if test "$ac_test_CFLAGS" = set; then
3417 CFLAGS=$ac_save_CFLAGS
3418 elif test $ac_cv_prog_cc_g = yes; then
3419 if test "$GCC" = yes; then
3420 CFLAGS="-g -O2"
3421 else
3422 CFLAGS="-g"
3424 else
3425 if test "$GCC" = yes; then
3426 CFLAGS="-O2"
3427 else
3428 CFLAGS=
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3432 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3433 if ${ac_cv_prog_cc_c89+:} false; then :
3434 $as_echo_n "(cached) " >&6
3435 else
3436 ac_cv_prog_cc_c89=no
3437 ac_save_CC=$CC
3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439 /* end confdefs.h. */
3440 #include <stdarg.h>
3441 #include <stdio.h>
3442 struct stat;
3443 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3444 struct buf { int x; };
3445 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3446 static char *e (p, i)
3447 char **p;
3448 int i;
3450 return p[i];
3452 static char *f (char * (*g) (char **, int), char **p, ...)
3454 char *s;
3455 va_list v;
3456 va_start (v,p);
3457 s = g (p, va_arg (v,int));
3458 va_end (v);
3459 return s;
3462 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3463 function prototypes and stuff, but not '\xHH' hex character constants.
3464 These don't provoke an error unfortunately, instead are silently treated
3465 as 'x'. The following induces an error, until -std is added to get
3466 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3467 array size at least. It's necessary to write '\x00'==0 to get something
3468 that's true only with -std. */
3469 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3471 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3472 inside strings and character constants. */
3473 #define FOO(x) 'x'
3474 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3476 int test (int i, double x);
3477 struct s1 {int (*f) (int a);};
3478 struct s2 {int (*f) (double a);};
3479 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3480 int argc;
3481 char **argv;
3483 main ()
3485 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3487 return 0;
3489 _ACEOF
3490 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3491 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3493 CC="$ac_save_CC $ac_arg"
3494 if ac_fn_c_try_compile "$LINENO"; then :
3495 ac_cv_prog_cc_c89=$ac_arg
3497 rm -f core conftest.err conftest.$ac_objext
3498 test "x$ac_cv_prog_cc_c89" != "xno" && break
3499 done
3500 rm -f conftest.$ac_ext
3501 CC=$ac_save_CC
3504 # AC_CACHE_VAL
3505 case "x$ac_cv_prog_cc_c89" in
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3508 $as_echo "none needed" >&6; } ;;
3509 xno)
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3511 $as_echo "unsupported" >&6; } ;;
3513 CC="$CC $ac_cv_prog_cc_c89"
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3515 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3516 esac
3517 if test "x$ac_cv_prog_cc_c89" != xno; then :
3521 ac_ext=c
3522 ac_cpp='$CPP $CPPFLAGS'
3523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3527 ac_ext=c
3528 ac_cpp='$CPP $CPPFLAGS'
3529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3533 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3534 if ${am_cv_prog_cc_c_o+:} false; then :
3535 $as_echo_n "(cached) " >&6
3536 else
3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538 /* end confdefs.h. */
3541 main ()
3545 return 0;
3547 _ACEOF
3548 # Make sure it works both with $CC and with simple cc.
3549 # Following AC_PROG_CC_C_O, we do the test twice because some
3550 # compilers refuse to overwrite an existing .o file with -o,
3551 # though they will create one.
3552 am_cv_prog_cc_c_o=yes
3553 for am_i in 1 2; do
3554 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3555 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3556 ac_status=$?
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } \
3559 && test -f conftest2.$ac_objext; then
3560 : OK
3561 else
3562 am_cv_prog_cc_c_o=no
3563 break
3565 done
3566 rm -f core conftest*
3567 unset am_i
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3570 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3571 if test "$am_cv_prog_cc_c_o" != yes; then
3572 # Losing compiler, so override with the script.
3573 # FIXME: It is wrong to rewrite CC.
3574 # But if we don't then we get into trouble of one sort or another.
3575 # A longer-term fix would be to have automake use am__CC in this case,
3576 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3577 CC="$am_aux_dir/compile $CC"
3579 ac_ext=c
3580 ac_cpp='$CPP $CPPFLAGS'
3581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3587 ac_ext=c
3588 ac_cpp='$CPP $CPPFLAGS'
3589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3593 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3594 # On Suns, sometimes $CPP names a directory.
3595 if test -n "$CPP" && test -d "$CPP"; then
3596 CPP=
3598 if test -z "$CPP"; then
3599 if ${ac_cv_prog_CPP+:} false; then :
3600 $as_echo_n "(cached) " >&6
3601 else
3602 # Double quotes because CPP needs to be expanded
3603 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3605 ac_preproc_ok=false
3606 for ac_c_preproc_warn_flag in '' yes
3608 # Use a header file that comes with gcc, so configuring glibc
3609 # with a fresh cross-compiler works.
3610 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3611 # <limits.h> exists even on freestanding compilers.
3612 # On the NeXT, cc -E runs the code through the compiler's parser,
3613 # not just through cpp. "Syntax error" is here to catch this case.
3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h. */
3616 #ifdef __STDC__
3617 # include <limits.h>
3618 #else
3619 # include <assert.h>
3620 #endif
3621 Syntax error
3622 _ACEOF
3623 if ac_fn_c_try_cpp "$LINENO"; then :
3625 else
3626 # Broken: fails on valid input.
3627 continue
3629 rm -f conftest.err conftest.i conftest.$ac_ext
3631 # OK, works on sane cases. Now check whether nonexistent headers
3632 # can be detected and how.
3633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h. */
3635 #include <ac_nonexistent.h>
3636 _ACEOF
3637 if ac_fn_c_try_cpp "$LINENO"; then :
3638 # Broken: success on invalid input.
3639 continue
3640 else
3641 # Passes both tests.
3642 ac_preproc_ok=:
3643 break
3645 rm -f conftest.err conftest.i conftest.$ac_ext
3647 done
3648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3649 rm -f conftest.i conftest.err conftest.$ac_ext
3650 if $ac_preproc_ok; then :
3651 break
3654 done
3655 ac_cv_prog_CPP=$CPP
3658 CPP=$ac_cv_prog_CPP
3659 else
3660 ac_cv_prog_CPP=$CPP
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3663 $as_echo "$CPP" >&6; }
3664 ac_preproc_ok=false
3665 for ac_c_preproc_warn_flag in '' yes
3667 # Use a header file that comes with gcc, so configuring glibc
3668 # with a fresh cross-compiler works.
3669 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3670 # <limits.h> exists even on freestanding compilers.
3671 # On the NeXT, cc -E runs the code through the compiler's parser,
3672 # not just through cpp. "Syntax error" is here to catch this case.
3673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674 /* end confdefs.h. */
3675 #ifdef __STDC__
3676 # include <limits.h>
3677 #else
3678 # include <assert.h>
3679 #endif
3680 Syntax error
3681 _ACEOF
3682 if ac_fn_c_try_cpp "$LINENO"; then :
3684 else
3685 # Broken: fails on valid input.
3686 continue
3688 rm -f conftest.err conftest.i conftest.$ac_ext
3690 # OK, works on sane cases. Now check whether nonexistent headers
3691 # can be detected and how.
3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693 /* end confdefs.h. */
3694 #include <ac_nonexistent.h>
3695 _ACEOF
3696 if ac_fn_c_try_cpp "$LINENO"; then :
3697 # Broken: success on invalid input.
3698 continue
3699 else
3700 # Passes both tests.
3701 ac_preproc_ok=:
3702 break
3704 rm -f conftest.err conftest.i conftest.$ac_ext
3706 done
3707 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3708 rm -f conftest.i conftest.err conftest.$ac_ext
3709 if $ac_preproc_ok; then :
3711 else
3712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3714 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3715 See \`config.log' for more details" "$LINENO" 5; }
3718 ac_ext=c
3719 ac_cpp='$CPP $CPPFLAGS'
3720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3726 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3727 if ${ac_cv_path_GREP+:} false; then :
3728 $as_echo_n "(cached) " >&6
3729 else
3730 if test -z "$GREP"; then
3731 ac_path_GREP_found=false
3732 # Loop through the user's path and test for each of PROGNAME-LIST
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3736 IFS=$as_save_IFS
3737 test -z "$as_dir" && as_dir=.
3738 for ac_prog in grep ggrep; do
3739 for ac_exec_ext in '' $ac_executable_extensions; do
3740 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3741 as_fn_executable_p "$ac_path_GREP" || continue
3742 # Check for GNU ac_path_GREP and select it if it is found.
3743 # Check for GNU $ac_path_GREP
3744 case `"$ac_path_GREP" --version 2>&1` in
3745 *GNU*)
3746 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3748 ac_count=0
3749 $as_echo_n 0123456789 >"conftest.in"
3750 while :
3752 cat "conftest.in" "conftest.in" >"conftest.tmp"
3753 mv "conftest.tmp" "conftest.in"
3754 cp "conftest.in" "conftest.nl"
3755 $as_echo 'GREP' >> "conftest.nl"
3756 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3757 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3758 as_fn_arith $ac_count + 1 && ac_count=$as_val
3759 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3760 # Best one so far, save it but keep looking for a better one
3761 ac_cv_path_GREP="$ac_path_GREP"
3762 ac_path_GREP_max=$ac_count
3764 # 10*(2^10) chars as input seems more than enough
3765 test $ac_count -gt 10 && break
3766 done
3767 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3768 esac
3770 $ac_path_GREP_found && break 3
3771 done
3772 done
3773 done
3774 IFS=$as_save_IFS
3775 if test -z "$ac_cv_path_GREP"; then
3776 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3778 else
3779 ac_cv_path_GREP=$GREP
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3784 $as_echo "$ac_cv_path_GREP" >&6; }
3785 GREP="$ac_cv_path_GREP"
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3789 $as_echo_n "checking for egrep... " >&6; }
3790 if ${ac_cv_path_EGREP+:} false; then :
3791 $as_echo_n "(cached) " >&6
3792 else
3793 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3794 then ac_cv_path_EGREP="$GREP -E"
3795 else
3796 if test -z "$EGREP"; then
3797 ac_path_EGREP_found=false
3798 # Loop through the user's path and test for each of PROGNAME-LIST
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3802 IFS=$as_save_IFS
3803 test -z "$as_dir" && as_dir=.
3804 for ac_prog in egrep; do
3805 for ac_exec_ext in '' $ac_executable_extensions; do
3806 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3807 as_fn_executable_p "$ac_path_EGREP" || continue
3808 # Check for GNU ac_path_EGREP and select it if it is found.
3809 # Check for GNU $ac_path_EGREP
3810 case `"$ac_path_EGREP" --version 2>&1` in
3811 *GNU*)
3812 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3814 ac_count=0
3815 $as_echo_n 0123456789 >"conftest.in"
3816 while :
3818 cat "conftest.in" "conftest.in" >"conftest.tmp"
3819 mv "conftest.tmp" "conftest.in"
3820 cp "conftest.in" "conftest.nl"
3821 $as_echo 'EGREP' >> "conftest.nl"
3822 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3823 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3824 as_fn_arith $ac_count + 1 && ac_count=$as_val
3825 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3826 # Best one so far, save it but keep looking for a better one
3827 ac_cv_path_EGREP="$ac_path_EGREP"
3828 ac_path_EGREP_max=$ac_count
3830 # 10*(2^10) chars as input seems more than enough
3831 test $ac_count -gt 10 && break
3832 done
3833 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3834 esac
3836 $ac_path_EGREP_found && break 3
3837 done
3838 done
3839 done
3840 IFS=$as_save_IFS
3841 if test -z "$ac_cv_path_EGREP"; then
3842 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3844 else
3845 ac_cv_path_EGREP=$EGREP
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3851 $as_echo "$ac_cv_path_EGREP" >&6; }
3852 EGREP="$ac_cv_path_EGREP"
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3856 $as_echo_n "checking for ANSI C header files... " >&6; }
3857 if ${ac_cv_header_stdc+:} false; then :
3858 $as_echo_n "(cached) " >&6
3859 else
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h. */
3862 #include <stdlib.h>
3863 #include <stdarg.h>
3864 #include <string.h>
3865 #include <float.h>
3868 main ()
3872 return 0;
3874 _ACEOF
3875 if ac_fn_c_try_compile "$LINENO"; then :
3876 ac_cv_header_stdc=yes
3877 else
3878 ac_cv_header_stdc=no
3880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882 if test $ac_cv_header_stdc = yes; then
3883 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3886 #include <string.h>
3888 _ACEOF
3889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3890 $EGREP "memchr" >/dev/null 2>&1; then :
3892 else
3893 ac_cv_header_stdc=no
3895 rm -f conftest*
3899 if test $ac_cv_header_stdc = yes; then
3900 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h. */
3903 #include <stdlib.h>
3905 _ACEOF
3906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3907 $EGREP "free" >/dev/null 2>&1; then :
3909 else
3910 ac_cv_header_stdc=no
3912 rm -f conftest*
3916 if test $ac_cv_header_stdc = yes; then
3917 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3918 if test "$cross_compiling" = yes; then :
3920 else
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3923 #include <ctype.h>
3924 #include <stdlib.h>
3925 #if ((' ' & 0x0FF) == 0x020)
3926 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3927 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3928 #else
3929 # define ISLOWER(c) \
3930 (('a' <= (c) && (c) <= 'i') \
3931 || ('j' <= (c) && (c) <= 'r') \
3932 || ('s' <= (c) && (c) <= 'z'))
3933 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3934 #endif
3936 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3938 main ()
3940 int i;
3941 for (i = 0; i < 256; i++)
3942 if (XOR (islower (i), ISLOWER (i))
3943 || toupper (i) != TOUPPER (i))
3944 return 2;
3945 return 0;
3947 _ACEOF
3948 if ac_fn_c_try_run "$LINENO"; then :
3950 else
3951 ac_cv_header_stdc=no
3953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3954 conftest.$ac_objext conftest.beam conftest.$ac_ext
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3960 $as_echo "$ac_cv_header_stdc" >&6; }
3961 if test $ac_cv_header_stdc = yes; then
3963 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3967 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3968 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3969 inttypes.h stdint.h unistd.h
3970 do :
3971 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3972 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3974 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3975 cat >>confdefs.h <<_ACEOF
3976 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3977 _ACEOF
3981 done
3985 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3986 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3987 MINIX=yes
3988 else
3989 MINIX=
3993 if test "$MINIX" = yes; then
3995 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3998 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4001 $as_echo "#define _MINIX 1" >>confdefs.h
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4007 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4008 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4009 $as_echo_n "(cached) " >&6
4010 else
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4014 # define __EXTENSIONS__ 1
4015 $ac_includes_default
4017 main ()
4021 return 0;
4023 _ACEOF
4024 if ac_fn_c_try_compile "$LINENO"; then :
4025 ac_cv_safe_to_define___extensions__=yes
4026 else
4027 ac_cv_safe_to_define___extensions__=no
4029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4032 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4033 test $ac_cv_safe_to_define___extensions__ = yes &&
4034 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4036 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4038 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4040 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4042 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4046 libtool_VERSION=1:0:0
4049 # 1.11.1: Require that version of automake.
4050 # foreign: Don't require README, INSTALL, NEWS, etc.
4051 # no-define: Don't define PACKAGE and VERSION.
4052 # no-dependencies: Don't generate automatic dependencies.
4053 # (because it breaks when using bootstrap-lean, since some of the
4054 # headers are gone at "make install" time).
4055 # -Wall: Issue all automake warnings.
4056 # -Wno-portability: Don't warn about constructs supported by GNU make.
4057 # (because GCC requires GNU make anyhow).
4058 am__api_version='1.15'
4060 # Find a good install program. We prefer a C program (faster),
4061 # so one script is as good as another. But avoid the broken or
4062 # incompatible versions:
4063 # SysV /etc/install, /usr/sbin/install
4064 # SunOS /usr/etc/install
4065 # IRIX /sbin/install
4066 # AIX /bin/install
4067 # AmigaOS /C/install, which installs bootblocks on floppy discs
4068 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4069 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4070 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4071 # OS/2's system install, which has a completely different semantic
4072 # ./install, which can be erroneously created by make from ./install.sh.
4073 # Reject install programs that cannot install multiple files.
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4075 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4076 if test -z "$INSTALL"; then
4077 if ${ac_cv_path_install+:} false; then :
4078 $as_echo_n "(cached) " >&6
4079 else
4080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081 for as_dir in $PATH
4083 IFS=$as_save_IFS
4084 test -z "$as_dir" && as_dir=.
4085 # Account for people who put trailing slashes in PATH elements.
4086 case $as_dir/ in #((
4087 ./ | .// | /[cC]/* | \
4088 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4089 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4090 /usr/ucb/* ) ;;
4092 # OSF1 and SCO ODT 3.0 have their own names for install.
4093 # Don't use installbsd from OSF since it installs stuff as root
4094 # by default.
4095 for ac_prog in ginstall scoinst install; do
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4098 if test $ac_prog = install &&
4099 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4100 # AIX install. It has an incompatible calling convention.
4102 elif test $ac_prog = install &&
4103 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4104 # program-specific install script used by HP pwplus--don't use.
4106 else
4107 rm -rf conftest.one conftest.two conftest.dir
4108 echo one > conftest.one
4109 echo two > conftest.two
4110 mkdir conftest.dir
4111 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4112 test -s conftest.one && test -s conftest.two &&
4113 test -s conftest.dir/conftest.one &&
4114 test -s conftest.dir/conftest.two
4115 then
4116 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4117 break 3
4121 done
4122 done
4124 esac
4126 done
4127 IFS=$as_save_IFS
4129 rm -rf conftest.one conftest.two conftest.dir
4132 if test "${ac_cv_path_install+set}" = set; then
4133 INSTALL=$ac_cv_path_install
4134 else
4135 # As a last resort, use the slow shell script. Don't cache a
4136 # value for INSTALL within a source directory, because that will
4137 # break other packages using the cache if that directory is
4138 # removed, or if the value is a relative name.
4139 INSTALL=$ac_install_sh
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4143 $as_echo "$INSTALL" >&6; }
4145 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4146 # It thinks the first close brace ends the variable substitution.
4147 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4149 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4151 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4154 $as_echo_n "checking whether build environment is sane... " >&6; }
4155 # Reject unsafe characters in $srcdir or the absolute working directory
4156 # name. Accept space and tab only in the latter.
4157 am_lf='
4159 case `pwd` in
4160 *[\\\"\#\$\&\'\`$am_lf]*)
4161 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4162 esac
4163 case $srcdir in
4164 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4165 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4166 esac
4168 # Do 'set' in a subshell so we don't clobber the current shell's
4169 # arguments. Must try -L first in case configure is actually a
4170 # symlink; some systems play weird games with the mod time of symlinks
4171 # (eg FreeBSD returns the mod time of the symlink's containing
4172 # directory).
4173 if (
4174 am_has_slept=no
4175 for am_try in 1 2; do
4176 echo "timestamp, slept: $am_has_slept" > conftest.file
4177 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4178 if test "$*" = "X"; then
4179 # -L didn't work.
4180 set X `ls -t "$srcdir/configure" conftest.file`
4182 if test "$*" != "X $srcdir/configure conftest.file" \
4183 && test "$*" != "X conftest.file $srcdir/configure"; then
4185 # If neither matched, then we have a broken ls. This can happen
4186 # if, for instance, CONFIG_SHELL is bash and it inherits a
4187 # broken ls alias from the environment. This has actually
4188 # happened. Such a system could not be considered "sane".
4189 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4190 alias in your environment" "$LINENO" 5
4192 if test "$2" = conftest.file || test $am_try -eq 2; then
4193 break
4195 # Just in case.
4196 sleep 1
4197 am_has_slept=yes
4198 done
4199 test "$2" = conftest.file
4201 then
4202 # Ok.
4204 else
4205 as_fn_error $? "newly created file is older than distributed files!
4206 Check your system clock" "$LINENO" 5
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4209 $as_echo "yes" >&6; }
4210 # If we didn't sleep, we still need to ensure time stamps of config.status and
4211 # generated files are strictly newer.
4212 am_sleep_pid=
4213 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4214 ( sleep 1 ) &
4215 am_sleep_pid=$!
4218 rm -f conftest.file
4220 test "$program_prefix" != NONE &&
4221 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4222 # Use a double $ so make ignores it.
4223 test "$program_suffix" != NONE &&
4224 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4225 # Double any \ or $.
4226 # By default was `s,x,x', remove it if useless.
4227 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4228 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4230 if test x"${MISSING+set}" != xset; then
4231 case $am_aux_dir in
4232 *\ * | *\ *)
4233 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4235 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4236 esac
4238 # Use eval to expand $SHELL
4239 if eval "$MISSING --is-lightweight"; then
4240 am_missing_run="$MISSING "
4241 else
4242 am_missing_run=
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4244 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4247 if test x"${install_sh+set}" != xset; then
4248 case $am_aux_dir in
4249 *\ * | *\ *)
4250 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4252 install_sh="\${SHELL} $am_aux_dir/install-sh"
4253 esac
4256 # Installed binaries are usually stripped using 'strip' when the user
4257 # run "make install-strip". However 'strip' might not be the right
4258 # tool to use in cross-compilation environments, therefore Automake
4259 # will honor the 'STRIP' environment variable to overrule this program.
4260 if test "$cross_compiling" != no; then
4261 if test -n "$ac_tool_prefix"; then
4262 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4263 set dummy ${ac_tool_prefix}strip; ac_word=$2
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265 $as_echo_n "checking for $ac_word... " >&6; }
4266 if ${ac_cv_prog_STRIP+:} false; then :
4267 $as_echo_n "(cached) " >&6
4268 else
4269 if test -n "$STRIP"; then
4270 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4271 else
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4281 break 2
4283 done
4284 done
4285 IFS=$as_save_IFS
4289 STRIP=$ac_cv_prog_STRIP
4290 if test -n "$STRIP"; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4292 $as_echo "$STRIP" >&6; }
4293 else
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4300 if test -z "$ac_cv_prog_STRIP"; then
4301 ac_ct_STRIP=$STRIP
4302 # Extract the first word of "strip", so it can be a program name with args.
4303 set dummy strip; ac_word=$2
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4305 $as_echo_n "checking for $ac_word... " >&6; }
4306 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4307 $as_echo_n "(cached) " >&6
4308 else
4309 if test -n "$ac_ct_STRIP"; then
4310 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4311 else
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH
4315 IFS=$as_save_IFS
4316 test -z "$as_dir" && as_dir=.
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4319 ac_cv_prog_ac_ct_STRIP="strip"
4320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4321 break 2
4323 done
4324 done
4325 IFS=$as_save_IFS
4329 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4330 if test -n "$ac_ct_STRIP"; then
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4332 $as_echo "$ac_ct_STRIP" >&6; }
4333 else
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4335 $as_echo "no" >&6; }
4338 if test "x$ac_ct_STRIP" = x; then
4339 STRIP=":"
4340 else
4341 case $cross_compiling:$ac_tool_warned in
4342 yes:)
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4345 ac_tool_warned=yes ;;
4346 esac
4347 STRIP=$ac_ct_STRIP
4349 else
4350 STRIP="$ac_cv_prog_STRIP"
4354 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4357 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4358 if test -z "$MKDIR_P"; then
4359 if ${ac_cv_path_mkdir+:} false; then :
4360 $as_echo_n "(cached) " >&6
4361 else
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4365 IFS=$as_save_IFS
4366 test -z "$as_dir" && as_dir=.
4367 for ac_prog in mkdir gmkdir; do
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4370 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4371 'mkdir (GNU coreutils) '* | \
4372 'mkdir (coreutils) '* | \
4373 'mkdir (fileutils) '4.1*)
4374 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4375 break 3;;
4376 esac
4377 done
4378 done
4379 done
4380 IFS=$as_save_IFS
4384 test -d ./--version && rmdir ./--version
4385 if test "${ac_cv_path_mkdir+set}" = set; then
4386 MKDIR_P="$ac_cv_path_mkdir -p"
4387 else
4388 # As a last resort, use the slow shell script. Don't cache a
4389 # value for MKDIR_P within a source directory, because that will
4390 # break other packages using the cache if that directory is
4391 # removed, or if the value is a relative name.
4392 MKDIR_P="$ac_install_sh -d"
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4396 $as_echo "$MKDIR_P" >&6; }
4398 for ac_prog in gawk mawk nawk awk
4400 # Extract the first word of "$ac_prog", so it can be a program name with args.
4401 set dummy $ac_prog; ac_word=$2
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4403 $as_echo_n "checking for $ac_word... " >&6; }
4404 if ${ac_cv_prog_AWK+:} false; then :
4405 $as_echo_n "(cached) " >&6
4406 else
4407 if test -n "$AWK"; then
4408 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4409 else
4410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411 for as_dir in $PATH
4413 IFS=$as_save_IFS
4414 test -z "$as_dir" && as_dir=.
4415 for ac_exec_ext in '' $ac_executable_extensions; do
4416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4417 ac_cv_prog_AWK="$ac_prog"
4418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4419 break 2
4421 done
4422 done
4423 IFS=$as_save_IFS
4427 AWK=$ac_cv_prog_AWK
4428 if test -n "$AWK"; then
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4430 $as_echo "$AWK" >&6; }
4431 else
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4433 $as_echo "no" >&6; }
4437 test -n "$AWK" && break
4438 done
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4441 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4442 set x ${MAKE-make}
4443 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4444 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4445 $as_echo_n "(cached) " >&6
4446 else
4447 cat >conftest.make <<\_ACEOF
4448 SHELL = /bin/sh
4449 all:
4450 @echo '@@@%%%=$(MAKE)=@@@%%%'
4451 _ACEOF
4452 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4453 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4454 *@@@%%%=?*=@@@%%%*)
4455 eval ac_cv_prog_make_${ac_make}_set=yes;;
4457 eval ac_cv_prog_make_${ac_make}_set=no;;
4458 esac
4459 rm -f conftest.make
4461 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4463 $as_echo "yes" >&6; }
4464 SET_MAKE=
4465 else
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4467 $as_echo "no" >&6; }
4468 SET_MAKE="MAKE=${MAKE-make}"
4471 rm -rf .tst 2>/dev/null
4472 mkdir .tst 2>/dev/null
4473 if test -d .tst; then
4474 am__leading_dot=.
4475 else
4476 am__leading_dot=_
4478 rmdir .tst 2>/dev/null
4480 # Check whether --enable-silent-rules was given.
4481 if test "${enable_silent_rules+set}" = set; then :
4482 enableval=$enable_silent_rules;
4485 case $enable_silent_rules in # (((
4486 yes) AM_DEFAULT_VERBOSITY=0;;
4487 no) AM_DEFAULT_VERBOSITY=1;;
4488 *) AM_DEFAULT_VERBOSITY=1;;
4489 esac
4490 am_make=${MAKE-make}
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4492 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4493 if ${am_cv_make_support_nested_variables+:} false; then :
4494 $as_echo_n "(cached) " >&6
4495 else
4496 if $as_echo 'TRUE=$(BAR$(V))
4497 BAR0=false
4498 BAR1=true
4500 am__doit:
4501 @$(TRUE)
4502 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4503 am_cv_make_support_nested_variables=yes
4504 else
4505 am_cv_make_support_nested_variables=no
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4509 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4510 if test $am_cv_make_support_nested_variables = yes; then
4511 AM_V='$(V)'
4512 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4513 else
4514 AM_V=$AM_DEFAULT_VERBOSITY
4515 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4517 AM_BACKSLASH='\'
4519 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4520 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4521 # is not polluted with repeated "-I."
4522 am__isrc=' -I$(srcdir)'
4523 # test to see if srcdir already configured
4524 if test -f $srcdir/config.status; then
4525 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4529 # test whether we have cygpath
4530 if test -z "$CYGPATH_W"; then
4531 if (cygpath --version) >/dev/null 2>/dev/null; then
4532 CYGPATH_W='cygpath -w'
4533 else
4534 CYGPATH_W=echo
4539 # Define the identity of the package.
4540 PACKAGE='libbacktrace'
4541 VERSION='version-unused'
4544 # Some tools Automake needs.
4546 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4549 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4552 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4555 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4558 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4560 # For better backward compatibility. To be removed once Automake 1.9.x
4561 # dies out for good. For more background, see:
4562 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4563 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4564 mkdir_p='$(MKDIR_P)'
4566 # We need awk for the "check" target (and possibly the TAP driver). The
4567 # system "awk" is bad on some platforms.
4568 # Always define AMTAR for backward compatibility. Yes, it's still used
4569 # in the wild :-( We should find a proper way to deprecate it ...
4570 AMTAR='$${TAR-tar}'
4573 # We'll loop over all known methods to create a tar archive until one works.
4574 _am_tools='gnutar pax cpio none'
4576 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4583 # POSIX will say in a future version that running "rm -f" with no argument
4584 # is OK; and we want to be able to make that assumption in our Makefile
4585 # recipes. So use an aggressive probe to check that the usage we want is
4586 # actually supported "in the wild" to an acceptable degree.
4587 # See automake bug#10828.
4588 # To make any issue more visible, cause the running configure to be aborted
4589 # by default if the 'rm' program in use doesn't match our expectations; the
4590 # user can still override this though.
4591 if rm -f && rm -fr && rm -rf; then : OK; else
4592 cat >&2 <<'END'
4593 Oops!
4595 Your 'rm' program seems unable to run without file operands specified
4596 on the command line, even when the '-f' option is present. This is contrary
4597 to the behaviour of most rm programs out there, and not conforming with
4598 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4600 Please tell bug-automake@gnu.org about your system, including the value
4601 of your $PATH and any error possibly output before this message. This
4602 can help us improve future automake versions.
4605 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4606 echo 'Configuration will proceed anyway, since you have set the' >&2
4607 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4608 echo >&2
4609 else
4610 cat >&2 <<'END'
4611 Aborting the configuration process, to ensure you take notice of the issue.
4613 You can download and install GNU coreutils to get an 'rm' implementation
4614 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4616 If you want to complete the configuration process using your problematic
4617 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4618 to "yes", and re-run configure.
4621 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4628 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4629 # Check whether --enable-maintainer-mode was given.
4630 if test "${enable_maintainer_mode+set}" = set; then :
4631 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4632 else
4633 USE_MAINTAINER_MODE=no
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4637 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4638 if test $USE_MAINTAINER_MODE = yes; then
4639 MAINTAINER_MODE_TRUE=
4640 MAINTAINER_MODE_FALSE='#'
4641 else
4642 MAINTAINER_MODE_TRUE='#'
4643 MAINTAINER_MODE_FALSE=
4646 MAINT=$MAINTAINER_MODE_TRUE
4651 # Check whether --with-target-subdir was given.
4652 if test "${with_target_subdir+set}" = set; then :
4653 withval=$with_target_subdir;
4657 # We must force CC to /not/ be precious variables; otherwise
4658 # the wrong, non-multilib-adjusted value will be used in multilibs.
4659 # As a side effect, we have to subst CFLAGS ourselves.
4662 ac_ext=c
4663 ac_cpp='$CPP $CPPFLAGS'
4664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4667 if test -n "$ac_tool_prefix"; then
4668 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4669 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4671 $as_echo_n "checking for $ac_word... " >&6; }
4672 if ${ac_cv_prog_CC+:} false; then :
4673 $as_echo_n "(cached) " >&6
4674 else
4675 if test -n "$CC"; then
4676 ac_cv_prog_CC="$CC" # Let the user override the test.
4677 else
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
4683 for ac_exec_ext in '' $ac_executable_extensions; do
4684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4685 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 break 2
4689 done
4690 done
4691 IFS=$as_save_IFS
4695 CC=$ac_cv_prog_CC
4696 if test -n "$CC"; then
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4698 $as_echo "$CC" >&6; }
4699 else
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701 $as_echo "no" >&6; }
4706 if test -z "$ac_cv_prog_CC"; then
4707 ac_ct_CC=$CC
4708 # Extract the first word of "gcc", so it can be a program name with args.
4709 set dummy gcc; ac_word=$2
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4711 $as_echo_n "checking for $ac_word... " >&6; }
4712 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4713 $as_echo_n "(cached) " >&6
4714 else
4715 if test -n "$ac_ct_CC"; then
4716 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4717 else
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 for as_dir in $PATH
4721 IFS=$as_save_IFS
4722 test -z "$as_dir" && as_dir=.
4723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4725 ac_cv_prog_ac_ct_CC="gcc"
4726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4727 break 2
4729 done
4730 done
4731 IFS=$as_save_IFS
4735 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4736 if test -n "$ac_ct_CC"; then
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4738 $as_echo "$ac_ct_CC" >&6; }
4739 else
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4741 $as_echo "no" >&6; }
4744 if test "x$ac_ct_CC" = x; then
4745 CC=""
4746 else
4747 case $cross_compiling:$ac_tool_warned in
4748 yes:)
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4751 ac_tool_warned=yes ;;
4752 esac
4753 CC=$ac_ct_CC
4755 else
4756 CC="$ac_cv_prog_CC"
4759 if test -z "$CC"; then
4760 if test -n "$ac_tool_prefix"; then
4761 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4762 set dummy ${ac_tool_prefix}cc; ac_word=$2
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4764 $as_echo_n "checking for $ac_word... " >&6; }
4765 if ${ac_cv_prog_CC+:} false; then :
4766 $as_echo_n "(cached) " >&6
4767 else
4768 if test -n "$CC"; then
4769 ac_cv_prog_CC="$CC" # Let the user override the test.
4770 else
4771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 for as_dir in $PATH
4774 IFS=$as_save_IFS
4775 test -z "$as_dir" && as_dir=.
4776 for ac_exec_ext in '' $ac_executable_extensions; do
4777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4778 ac_cv_prog_CC="${ac_tool_prefix}cc"
4779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 break 2
4782 done
4783 done
4784 IFS=$as_save_IFS
4788 CC=$ac_cv_prog_CC
4789 if test -n "$CC"; then
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4791 $as_echo "$CC" >&6; }
4792 else
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4794 $as_echo "no" >&6; }
4800 if test -z "$CC"; then
4801 # Extract the first word of "cc", so it can be a program name with args.
4802 set dummy cc; ac_word=$2
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4804 $as_echo_n "checking for $ac_word... " >&6; }
4805 if ${ac_cv_prog_CC+:} false; then :
4806 $as_echo_n "(cached) " >&6
4807 else
4808 if test -n "$CC"; then
4809 ac_cv_prog_CC="$CC" # Let the user override the test.
4810 else
4811 ac_prog_rejected=no
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH
4815 IFS=$as_save_IFS
4816 test -z "$as_dir" && as_dir=.
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4819 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4820 ac_prog_rejected=yes
4821 continue
4823 ac_cv_prog_CC="cc"
4824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4825 break 2
4827 done
4828 done
4829 IFS=$as_save_IFS
4831 if test $ac_prog_rejected = yes; then
4832 # We found a bogon in the path, so make sure we never use it.
4833 set dummy $ac_cv_prog_CC
4834 shift
4835 if test $# != 0; then
4836 # We chose a different compiler from the bogus one.
4837 # However, it has the same basename, so the bogon will be chosen
4838 # first if we set CC to just the basename; use the full file name.
4839 shift
4840 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4845 CC=$ac_cv_prog_CC
4846 if test -n "$CC"; then
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4848 $as_echo "$CC" >&6; }
4849 else
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851 $as_echo "no" >&6; }
4856 if test -z "$CC"; then
4857 if test -n "$ac_tool_prefix"; then
4858 for ac_prog in cl.exe
4860 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4861 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4863 $as_echo_n "checking for $ac_word... " >&6; }
4864 if ${ac_cv_prog_CC+:} false; then :
4865 $as_echo_n "(cached) " >&6
4866 else
4867 if test -n "$CC"; then
4868 ac_cv_prog_CC="$CC" # Let the user override the test.
4869 else
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4877 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 break 2
4881 done
4882 done
4883 IFS=$as_save_IFS
4887 CC=$ac_cv_prog_CC
4888 if test -n "$CC"; then
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4890 $as_echo "$CC" >&6; }
4891 else
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893 $as_echo "no" >&6; }
4897 test -n "$CC" && break
4898 done
4900 if test -z "$CC"; then
4901 ac_ct_CC=$CC
4902 for ac_prog in cl.exe
4904 # Extract the first word of "$ac_prog", so it can be a program name with args.
4905 set dummy $ac_prog; ac_word=$2
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4907 $as_echo_n "checking for $ac_word... " >&6; }
4908 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4909 $as_echo_n "(cached) " >&6
4910 else
4911 if test -n "$ac_ct_CC"; then
4912 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4913 else
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH
4917 IFS=$as_save_IFS
4918 test -z "$as_dir" && as_dir=.
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4921 ac_cv_prog_ac_ct_CC="$ac_prog"
4922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4923 break 2
4925 done
4926 done
4927 IFS=$as_save_IFS
4931 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4932 if test -n "$ac_ct_CC"; then
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4934 $as_echo "$ac_ct_CC" >&6; }
4935 else
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4937 $as_echo "no" >&6; }
4941 test -n "$ac_ct_CC" && break
4942 done
4944 if test "x$ac_ct_CC" = x; then
4945 CC=""
4946 else
4947 case $cross_compiling:$ac_tool_warned in
4948 yes:)
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4951 ac_tool_warned=yes ;;
4952 esac
4953 CC=$ac_ct_CC
4960 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4962 as_fn_error $? "no acceptable C compiler found in \$PATH
4963 See \`config.log' for more details" "$LINENO" 5; }
4965 # Provide some information about the compiler.
4966 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4967 set X $ac_compile
4968 ac_compiler=$2
4969 for ac_option in --version -v -V -qversion; do
4970 { { ac_try="$ac_compiler $ac_option >&5"
4971 case "(($ac_try" in
4972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4973 *) ac_try_echo=$ac_try;;
4974 esac
4975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4976 $as_echo "$ac_try_echo"; } >&5
4977 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4978 ac_status=$?
4979 if test -s conftest.err; then
4980 sed '10a\
4981 ... rest of stderr output deleted ...
4982 10q' conftest.err >conftest.er1
4983 cat conftest.er1 >&5
4985 rm -f conftest.er1 conftest.err
4986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4987 test $ac_status = 0; }
4988 done
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4991 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4992 if ${ac_cv_c_compiler_gnu+:} false; then :
4993 $as_echo_n "(cached) " >&6
4994 else
4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h. */
4999 main ()
5001 #ifndef __GNUC__
5002 choke me
5003 #endif
5006 return 0;
5008 _ACEOF
5009 if ac_fn_c_try_compile "$LINENO"; then :
5010 ac_compiler_gnu=yes
5011 else
5012 ac_compiler_gnu=no
5014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5015 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5019 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5020 if test $ac_compiler_gnu = yes; then
5021 GCC=yes
5022 else
5023 GCC=
5025 ac_test_CFLAGS=${CFLAGS+set}
5026 ac_save_CFLAGS=$CFLAGS
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5028 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5029 if ${ac_cv_prog_cc_g+:} false; then :
5030 $as_echo_n "(cached) " >&6
5031 else
5032 ac_save_c_werror_flag=$ac_c_werror_flag
5033 ac_c_werror_flag=yes
5034 ac_cv_prog_cc_g=no
5035 CFLAGS="-g"
5036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037 /* end confdefs.h. */
5040 main ()
5044 return 0;
5046 _ACEOF
5047 if ac_fn_c_try_compile "$LINENO"; then :
5048 ac_cv_prog_cc_g=yes
5049 else
5050 CFLAGS=""
5051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5052 /* end confdefs.h. */
5055 main ()
5059 return 0;
5061 _ACEOF
5062 if ac_fn_c_try_compile "$LINENO"; then :
5064 else
5065 ac_c_werror_flag=$ac_save_c_werror_flag
5066 CFLAGS="-g"
5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h. */
5071 main ()
5075 return 0;
5077 _ACEOF
5078 if ac_fn_c_try_compile "$LINENO"; then :
5079 ac_cv_prog_cc_g=yes
5081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5086 ac_c_werror_flag=$ac_save_c_werror_flag
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5089 $as_echo "$ac_cv_prog_cc_g" >&6; }
5090 if test "$ac_test_CFLAGS" = set; then
5091 CFLAGS=$ac_save_CFLAGS
5092 elif test $ac_cv_prog_cc_g = yes; then
5093 if test "$GCC" = yes; then
5094 CFLAGS="-g -O2"
5095 else
5096 CFLAGS="-g"
5098 else
5099 if test "$GCC" = yes; then
5100 CFLAGS="-O2"
5101 else
5102 CFLAGS=
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5106 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5107 if ${ac_cv_prog_cc_c89+:} false; then :
5108 $as_echo_n "(cached) " >&6
5109 else
5110 ac_cv_prog_cc_c89=no
5111 ac_save_CC=$CC
5112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113 /* end confdefs.h. */
5114 #include <stdarg.h>
5115 #include <stdio.h>
5116 struct stat;
5117 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5118 struct buf { int x; };
5119 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5120 static char *e (p, i)
5121 char **p;
5122 int i;
5124 return p[i];
5126 static char *f (char * (*g) (char **, int), char **p, ...)
5128 char *s;
5129 va_list v;
5130 va_start (v,p);
5131 s = g (p, va_arg (v,int));
5132 va_end (v);
5133 return s;
5136 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5137 function prototypes and stuff, but not '\xHH' hex character constants.
5138 These don't provoke an error unfortunately, instead are silently treated
5139 as 'x'. The following induces an error, until -std is added to get
5140 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5141 array size at least. It's necessary to write '\x00'==0 to get something
5142 that's true only with -std. */
5143 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5145 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5146 inside strings and character constants. */
5147 #define FOO(x) 'x'
5148 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5150 int test (int i, double x);
5151 struct s1 {int (*f) (int a);};
5152 struct s2 {int (*f) (double a);};
5153 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5154 int argc;
5155 char **argv;
5157 main ()
5159 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5161 return 0;
5163 _ACEOF
5164 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5165 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5167 CC="$ac_save_CC $ac_arg"
5168 if ac_fn_c_try_compile "$LINENO"; then :
5169 ac_cv_prog_cc_c89=$ac_arg
5171 rm -f core conftest.err conftest.$ac_objext
5172 test "x$ac_cv_prog_cc_c89" != "xno" && break
5173 done
5174 rm -f conftest.$ac_ext
5175 CC=$ac_save_CC
5178 # AC_CACHE_VAL
5179 case "x$ac_cv_prog_cc_c89" in
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5182 $as_echo "none needed" >&6; } ;;
5183 xno)
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5185 $as_echo "unsupported" >&6; } ;;
5187 CC="$CC $ac_cv_prog_cc_c89"
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5189 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5190 esac
5191 if test "x$ac_cv_prog_cc_c89" != xno; then :
5195 ac_ext=c
5196 ac_cpp='$CPP $CPPFLAGS'
5197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5201 ac_ext=c
5202 ac_cpp='$CPP $CPPFLAGS'
5203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5207 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5208 if ${am_cv_prog_cc_c_o+:} false; then :
5209 $as_echo_n "(cached) " >&6
5210 else
5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h. */
5215 main ()
5219 return 0;
5221 _ACEOF
5222 # Make sure it works both with $CC and with simple cc.
5223 # Following AC_PROG_CC_C_O, we do the test twice because some
5224 # compilers refuse to overwrite an existing .o file with -o,
5225 # though they will create one.
5226 am_cv_prog_cc_c_o=yes
5227 for am_i in 1 2; do
5228 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5229 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5230 ac_status=$?
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); } \
5233 && test -f conftest2.$ac_objext; then
5234 : OK
5235 else
5236 am_cv_prog_cc_c_o=no
5237 break
5239 done
5240 rm -f core conftest*
5241 unset am_i
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5244 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5245 if test "$am_cv_prog_cc_c_o" != yes; then
5246 # Losing compiler, so override with the script.
5247 # FIXME: It is wrong to rewrite CC.
5248 # But if we don't then we get into trouble of one sort or another.
5249 # A longer-term fix would be to have automake use am__CC in this case,
5250 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5251 CC="$am_aux_dir/compile $CC"
5253 ac_ext=c
5254 ac_cpp='$CPP $CPPFLAGS'
5255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5264 if test -n "$ac_tool_prefix"; then
5265 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5266 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268 $as_echo_n "checking for $ac_word... " >&6; }
5269 if ${ac_cv_prog_RANLIB+:} false; then :
5270 $as_echo_n "(cached) " >&6
5271 else
5272 if test -n "$RANLIB"; then
5273 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5274 else
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5282 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 break 2
5286 done
5287 done
5288 IFS=$as_save_IFS
5292 RANLIB=$ac_cv_prog_RANLIB
5293 if test -n "$RANLIB"; then
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5295 $as_echo "$RANLIB" >&6; }
5296 else
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5298 $as_echo "no" >&6; }
5303 if test -z "$ac_cv_prog_RANLIB"; then
5304 ac_ct_RANLIB=$RANLIB
5305 # Extract the first word of "ranlib", so it can be a program name with args.
5306 set dummy ranlib; ac_word=$2
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5308 $as_echo_n "checking for $ac_word... " >&6; }
5309 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5310 $as_echo_n "(cached) " >&6
5311 else
5312 if test -n "$ac_ct_RANLIB"; then
5313 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5314 else
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 for as_dir in $PATH
5318 IFS=$as_save_IFS
5319 test -z "$as_dir" && as_dir=.
5320 for ac_exec_ext in '' $ac_executable_extensions; do
5321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5322 ac_cv_prog_ac_ct_RANLIB="ranlib"
5323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5324 break 2
5326 done
5327 done
5328 IFS=$as_save_IFS
5332 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5333 if test -n "$ac_ct_RANLIB"; then
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5335 $as_echo "$ac_ct_RANLIB" >&6; }
5336 else
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 $as_echo "no" >&6; }
5341 if test "x$ac_ct_RANLIB" = x; then
5342 RANLIB=":"
5343 else
5344 case $cross_compiling:$ac_tool_warned in
5345 yes:)
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5348 ac_tool_warned=yes ;;
5349 esac
5350 RANLIB=$ac_ct_RANLIB
5352 else
5353 RANLIB="$ac_cv_prog_RANLIB"
5357 for ac_prog in gawk mawk nawk awk
5359 # Extract the first word of "$ac_prog", so it can be a program name with args.
5360 set dummy $ac_prog; ac_word=$2
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5362 $as_echo_n "checking for $ac_word... " >&6; }
5363 if ${ac_cv_prog_AWK+:} false; then :
5364 $as_echo_n "(cached) " >&6
5365 else
5366 if test -n "$AWK"; then
5367 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5368 else
5369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 for as_dir in $PATH
5372 IFS=$as_save_IFS
5373 test -z "$as_dir" && as_dir=.
5374 for ac_exec_ext in '' $ac_executable_extensions; do
5375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5376 ac_cv_prog_AWK="$ac_prog"
5377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5378 break 2
5380 done
5381 done
5382 IFS=$as_save_IFS
5386 AWK=$ac_cv_prog_AWK
5387 if test -n "$AWK"; then
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5389 $as_echo "$AWK" >&6; }
5390 else
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5392 $as_echo "no" >&6; }
5396 test -n "$AWK" && break
5397 done
5399 case "$AWK" in
5400 "") as_fn_error $? "can't build without awk" "$LINENO" 5 ;;
5401 esac
5403 # Extract the first word of "dwz", so it can be a program name with args.
5404 set dummy dwz; ac_word=$2
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5406 $as_echo_n "checking for $ac_word... " >&6; }
5407 if ${ac_cv_prog_DWZ+:} false; then :
5408 $as_echo_n "(cached) " >&6
5409 else
5410 if test -n "$DWZ"; then
5411 ac_cv_prog_DWZ="$DWZ" # Let the user override the test.
5412 else
5413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 for as_dir in $PATH
5416 IFS=$as_save_IFS
5417 test -z "$as_dir" && as_dir=.
5418 for ac_exec_ext in '' $ac_executable_extensions; do
5419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5420 ac_cv_prog_DWZ="dwz"
5421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5422 break 2
5424 done
5425 done
5426 IFS=$as_save_IFS
5430 DWZ=$ac_cv_prog_DWZ
5431 if test -n "$DWZ"; then
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DWZ" >&5
5433 $as_echo "$DWZ" >&6; }
5434 else
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5436 $as_echo "no" >&6; }
5440 if test "$DWZ" != ""; then
5441 HAVE_DWZ_TRUE=
5442 HAVE_DWZ_FALSE='#'
5443 else
5444 HAVE_DWZ_TRUE='#'
5445 HAVE_DWZ_FALSE=
5449 case `pwd` in
5450 *\ * | *\ *)
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5452 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5453 esac
5457 macro_version='2.2.7a'
5458 macro_revision='1.3134'
5472 ltmain="$ac_aux_dir/ltmain.sh"
5474 # Backslashify metacharacters that are still active within
5475 # double-quoted strings.
5476 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5478 # Same as above, but do not quote variable references.
5479 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5481 # Sed substitution to delay expansion of an escaped shell variable in a
5482 # double_quote_subst'ed string.
5483 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5485 # Sed substitution to delay expansion of an escaped single quote.
5486 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5488 # Sed substitution to avoid accidental globbing in evaled expressions
5489 no_glob_subst='s/\*/\\\*/g'
5491 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5492 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5493 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5496 $as_echo_n "checking how to print strings... " >&6; }
5497 # Test print first, because it will be a builtin if present.
5498 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5499 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5500 ECHO='print -r --'
5501 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5502 ECHO='printf %s\n'
5503 else
5504 # Use this function as a fallback that always works.
5505 func_fallback_echo ()
5507 eval 'cat <<_LTECHO_EOF
5509 _LTECHO_EOF'
5511 ECHO='func_fallback_echo'
5514 # func_echo_all arg...
5515 # Invoke $ECHO with all args, space-separated.
5516 func_echo_all ()
5518 $ECHO ""
5521 case "$ECHO" in
5522 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5523 $as_echo "printf" >&6; } ;;
5524 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5525 $as_echo "print -r" >&6; } ;;
5526 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5527 $as_echo "cat" >&6; } ;;
5528 esac
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5544 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5545 if ${ac_cv_path_SED+:} false; then :
5546 $as_echo_n "(cached) " >&6
5547 else
5548 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5549 for ac_i in 1 2 3 4 5 6 7; do
5550 ac_script="$ac_script$as_nl$ac_script"
5551 done
5552 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5553 { ac_script=; unset ac_script;}
5554 if test -z "$SED"; then
5555 ac_path_SED_found=false
5556 # Loop through the user's path and test for each of PROGNAME-LIST
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 for as_dir in $PATH
5560 IFS=$as_save_IFS
5561 test -z "$as_dir" && as_dir=.
5562 for ac_prog in sed gsed; do
5563 for ac_exec_ext in '' $ac_executable_extensions; do
5564 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5565 as_fn_executable_p "$ac_path_SED" || continue
5566 # Check for GNU ac_path_SED and select it if it is found.
5567 # Check for GNU $ac_path_SED
5568 case `"$ac_path_SED" --version 2>&1` in
5569 *GNU*)
5570 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5572 ac_count=0
5573 $as_echo_n 0123456789 >"conftest.in"
5574 while :
5576 cat "conftest.in" "conftest.in" >"conftest.tmp"
5577 mv "conftest.tmp" "conftest.in"
5578 cp "conftest.in" "conftest.nl"
5579 $as_echo '' >> "conftest.nl"
5580 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5581 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5582 as_fn_arith $ac_count + 1 && ac_count=$as_val
5583 if test $ac_count -gt ${ac_path_SED_max-0}; then
5584 # Best one so far, save it but keep looking for a better one
5585 ac_cv_path_SED="$ac_path_SED"
5586 ac_path_SED_max=$ac_count
5588 # 10*(2^10) chars as input seems more than enough
5589 test $ac_count -gt 10 && break
5590 done
5591 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5592 esac
5594 $ac_path_SED_found && break 3
5595 done
5596 done
5597 done
5598 IFS=$as_save_IFS
5599 if test -z "$ac_cv_path_SED"; then
5600 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5602 else
5603 ac_cv_path_SED=$SED
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5608 $as_echo "$ac_cv_path_SED" >&6; }
5609 SED="$ac_cv_path_SED"
5610 rm -f conftest.sed
5612 test -z "$SED" && SED=sed
5613 Xsed="$SED -e 1s/^X//"
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5626 $as_echo_n "checking for fgrep... " >&6; }
5627 if ${ac_cv_path_FGREP+:} false; then :
5628 $as_echo_n "(cached) " >&6
5629 else
5630 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5631 then ac_cv_path_FGREP="$GREP -F"
5632 else
5633 if test -z "$FGREP"; then
5634 ac_path_FGREP_found=false
5635 # Loop through the user's path and test for each of PROGNAME-LIST
5636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5639 IFS=$as_save_IFS
5640 test -z "$as_dir" && as_dir=.
5641 for ac_prog in fgrep; do
5642 for ac_exec_ext in '' $ac_executable_extensions; do
5643 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5644 as_fn_executable_p "$ac_path_FGREP" || continue
5645 # Check for GNU ac_path_FGREP and select it if it is found.
5646 # Check for GNU $ac_path_FGREP
5647 case `"$ac_path_FGREP" --version 2>&1` in
5648 *GNU*)
5649 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5651 ac_count=0
5652 $as_echo_n 0123456789 >"conftest.in"
5653 while :
5655 cat "conftest.in" "conftest.in" >"conftest.tmp"
5656 mv "conftest.tmp" "conftest.in"
5657 cp "conftest.in" "conftest.nl"
5658 $as_echo 'FGREP' >> "conftest.nl"
5659 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5660 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5661 as_fn_arith $ac_count + 1 && ac_count=$as_val
5662 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5663 # Best one so far, save it but keep looking for a better one
5664 ac_cv_path_FGREP="$ac_path_FGREP"
5665 ac_path_FGREP_max=$ac_count
5667 # 10*(2^10) chars as input seems more than enough
5668 test $ac_count -gt 10 && break
5669 done
5670 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5671 esac
5673 $ac_path_FGREP_found && break 3
5674 done
5675 done
5676 done
5677 IFS=$as_save_IFS
5678 if test -z "$ac_cv_path_FGREP"; then
5679 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5681 else
5682 ac_cv_path_FGREP=$FGREP
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5688 $as_echo "$ac_cv_path_FGREP" >&6; }
5689 FGREP="$ac_cv_path_FGREP"
5692 test -z "$GREP" && GREP=grep
5712 # Check whether --with-gnu-ld was given.
5713 if test "${with_gnu_ld+set}" = set; then :
5714 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5715 else
5716 with_gnu_ld=no
5719 ac_prog=ld
5720 if test "$GCC" = yes; then
5721 # Check if gcc -print-prog-name=ld gives a path.
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5723 $as_echo_n "checking for ld used by $CC... " >&6; }
5724 case $host in
5725 *-*-mingw*)
5726 # gcc leaves a trailing carriage return which upsets mingw
5727 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5729 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5730 esac
5731 case $ac_prog in
5732 # Accept absolute paths.
5733 [\\/]* | ?:[\\/]*)
5734 re_direlt='/[^/][^/]*/\.\./'
5735 # Canonicalize the pathname of ld
5736 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5737 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5738 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5739 done
5740 test -z "$LD" && LD="$ac_prog"
5743 # If it fails, then pretend we aren't using GCC.
5744 ac_prog=ld
5747 # If it is relative, then search for the first ld in PATH.
5748 with_gnu_ld=unknown
5750 esac
5751 elif test "$with_gnu_ld" = yes; then
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5753 $as_echo_n "checking for GNU ld... " >&6; }
5754 else
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5756 $as_echo_n "checking for non-GNU ld... " >&6; }
5758 if ${lt_cv_path_LD+:} false; then :
5759 $as_echo_n "(cached) " >&6
5760 else
5761 if test -z "$LD"; then
5762 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5763 for ac_dir in $PATH; do
5764 IFS="$lt_save_ifs"
5765 test -z "$ac_dir" && ac_dir=.
5766 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5767 lt_cv_path_LD="$ac_dir/$ac_prog"
5768 # Check to see if the program is GNU ld. I'd rather use --version,
5769 # but apparently some variants of GNU ld only accept -v.
5770 # Break only if it was the GNU/non-GNU ld that we prefer.
5771 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5772 *GNU* | *'with BFD'*)
5773 test "$with_gnu_ld" != no && break
5776 test "$with_gnu_ld" != yes && break
5778 esac
5780 done
5781 IFS="$lt_save_ifs"
5782 else
5783 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5787 LD="$lt_cv_path_LD"
5788 if test -n "$LD"; then
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5790 $as_echo "$LD" >&6; }
5791 else
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793 $as_echo "no" >&6; }
5795 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5797 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5798 if ${lt_cv_prog_gnu_ld+:} false; then :
5799 $as_echo_n "(cached) " >&6
5800 else
5801 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5802 case `$LD -v 2>&1 </dev/null` in
5803 *GNU* | *'with BFD'*)
5804 lt_cv_prog_gnu_ld=yes
5807 lt_cv_prog_gnu_ld=no
5809 esac
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5812 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5813 with_gnu_ld=$lt_cv_prog_gnu_ld
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5824 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5825 if ${lt_cv_path_NM+:} false; then :
5826 $as_echo_n "(cached) " >&6
5827 else
5828 if test -n "$NM"; then
5829 # Let the user override the test.
5830 lt_cv_path_NM="$NM"
5831 else
5832 lt_nm_to_check="${ac_tool_prefix}nm"
5833 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5834 lt_nm_to_check="$lt_nm_to_check nm"
5836 for lt_tmp_nm in $lt_nm_to_check; do
5837 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5838 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5839 IFS="$lt_save_ifs"
5840 test -z "$ac_dir" && ac_dir=.
5841 tmp_nm="$ac_dir/$lt_tmp_nm"
5842 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5843 # Check to see if the nm accepts a BSD-compat flag.
5844 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5845 # nm: unknown option "B" ignored
5846 # Tru64's nm complains that /dev/null is an invalid object file
5847 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5848 */dev/null* | *'Invalid file or object type'*)
5849 lt_cv_path_NM="$tmp_nm -B"
5850 break
5853 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5854 */dev/null*)
5855 lt_cv_path_NM="$tmp_nm -p"
5856 break
5859 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5860 continue # so that we can try to find one that supports BSD flags
5862 esac
5864 esac
5866 done
5867 IFS="$lt_save_ifs"
5868 done
5869 : ${lt_cv_path_NM=no}
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5873 $as_echo "$lt_cv_path_NM" >&6; }
5874 if test "$lt_cv_path_NM" != "no"; then
5875 NM="$lt_cv_path_NM"
5876 else
5877 # Didn't find any BSD compatible name lister, look for dumpbin.
5878 if test -n "$DUMPBIN"; then :
5879 # Let the user override the test.
5880 else
5881 if test -n "$ac_tool_prefix"; then
5882 for ac_prog in dumpbin "link -dump"
5884 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5885 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5887 $as_echo_n "checking for $ac_word... " >&6; }
5888 if ${ac_cv_prog_DUMPBIN+:} false; then :
5889 $as_echo_n "(cached) " >&6
5890 else
5891 if test -n "$DUMPBIN"; then
5892 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5893 else
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 for as_dir in $PATH
5897 IFS=$as_save_IFS
5898 test -z "$as_dir" && as_dir=.
5899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5901 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5903 break 2
5905 done
5906 done
5907 IFS=$as_save_IFS
5911 DUMPBIN=$ac_cv_prog_DUMPBIN
5912 if test -n "$DUMPBIN"; then
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5914 $as_echo "$DUMPBIN" >&6; }
5915 else
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917 $as_echo "no" >&6; }
5921 test -n "$DUMPBIN" && break
5922 done
5924 if test -z "$DUMPBIN"; then
5925 ac_ct_DUMPBIN=$DUMPBIN
5926 for ac_prog in dumpbin "link -dump"
5928 # Extract the first word of "$ac_prog", so it can be a program name with args.
5929 set dummy $ac_prog; ac_word=$2
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5931 $as_echo_n "checking for $ac_word... " >&6; }
5932 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5933 $as_echo_n "(cached) " >&6
5934 else
5935 if test -n "$ac_ct_DUMPBIN"; then
5936 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5937 else
5938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 for as_dir in $PATH
5941 IFS=$as_save_IFS
5942 test -z "$as_dir" && as_dir=.
5943 for ac_exec_ext in '' $ac_executable_extensions; do
5944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5945 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5947 break 2
5949 done
5950 done
5951 IFS=$as_save_IFS
5955 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5956 if test -n "$ac_ct_DUMPBIN"; then
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5958 $as_echo "$ac_ct_DUMPBIN" >&6; }
5959 else
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5961 $as_echo "no" >&6; }
5965 test -n "$ac_ct_DUMPBIN" && break
5966 done
5968 if test "x$ac_ct_DUMPBIN" = x; then
5969 DUMPBIN=":"
5970 else
5971 case $cross_compiling:$ac_tool_warned in
5972 yes:)
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5975 ac_tool_warned=yes ;;
5976 esac
5977 DUMPBIN=$ac_ct_DUMPBIN
5981 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5982 *COFF*)
5983 DUMPBIN="$DUMPBIN -symbols"
5986 DUMPBIN=:
5988 esac
5991 if test "$DUMPBIN" != ":"; then
5992 NM="$DUMPBIN"
5995 test -z "$NM" && NM=nm
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6003 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6004 if ${lt_cv_nm_interface+:} false; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6007 lt_cv_nm_interface="BSD nm"
6008 echo "int some_variable = 0;" > conftest.$ac_ext
6009 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6010 (eval "$ac_compile" 2>conftest.err)
6011 cat conftest.err >&5
6012 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6013 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6014 cat conftest.err >&5
6015 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6016 cat conftest.out >&5
6017 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6018 lt_cv_nm_interface="MS dumpbin"
6020 rm -f conftest*
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6023 $as_echo "$lt_cv_nm_interface" >&6; }
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6026 $as_echo_n "checking whether ln -s works... " >&6; }
6027 LN_S=$as_ln_s
6028 if test "$LN_S" = "ln -s"; then
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6030 $as_echo "yes" >&6; }
6031 else
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6033 $as_echo "no, using $LN_S" >&6; }
6036 # find the maximum length of command line arguments
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6038 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6039 if ${lt_cv_sys_max_cmd_len+:} false; then :
6040 $as_echo_n "(cached) " >&6
6041 else
6043 teststring="ABCD"
6045 case $build_os in
6046 msdosdjgpp*)
6047 # On DJGPP, this test can blow up pretty badly due to problems in libc
6048 # (any single argument exceeding 2000 bytes causes a buffer overrun
6049 # during glob expansion). Even if it were fixed, the result of this
6050 # check would be larger than it should be.
6051 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6054 gnu*)
6055 # Under GNU Hurd, this test is not required because there is
6056 # no limit to the length of command line arguments.
6057 # Libtool will interpret -1 as no limit whatsoever
6058 lt_cv_sys_max_cmd_len=-1;
6061 cygwin* | mingw* | cegcc*)
6062 # On Win9x/ME, this test blows up -- it succeeds, but takes
6063 # about 5 minutes as the teststring grows exponentially.
6064 # Worse, since 9x/ME are not pre-emptively multitasking,
6065 # you end up with a "frozen" computer, even though with patience
6066 # the test eventually succeeds (with a max line length of 256k).
6067 # Instead, let's just punt: use the minimum linelength reported by
6068 # all of the supported platforms: 8192 (on NT/2K/XP).
6069 lt_cv_sys_max_cmd_len=8192;
6072 mint*)
6073 # On MiNT this can take a long time and run out of memory.
6074 lt_cv_sys_max_cmd_len=8192;
6077 amigaos*)
6078 # On AmigaOS with pdksh, this test takes hours, literally.
6079 # So we just punt and use a minimum line length of 8192.
6080 lt_cv_sys_max_cmd_len=8192;
6083 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6084 # This has been around since 386BSD, at least. Likely further.
6085 if test -x /sbin/sysctl; then
6086 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6087 elif test -x /usr/sbin/sysctl; then
6088 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6089 else
6090 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6092 # And add a safety zone
6093 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6094 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6097 interix*)
6098 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6099 lt_cv_sys_max_cmd_len=196608
6102 osf*)
6103 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6104 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6105 # nice to cause kernel panics so lets avoid the loop below.
6106 # First set a reasonable default.
6107 lt_cv_sys_max_cmd_len=16384
6109 if test -x /sbin/sysconfig; then
6110 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6111 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6112 esac
6115 sco3.2v5*)
6116 lt_cv_sys_max_cmd_len=102400
6118 sysv5* | sco5v6* | sysv4.2uw2*)
6119 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6120 if test -n "$kargmax"; then
6121 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6122 else
6123 lt_cv_sys_max_cmd_len=32768
6127 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6128 if test -n "$lt_cv_sys_max_cmd_len"; then
6129 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6130 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6131 else
6132 # Make teststring a little bigger before we do anything with it.
6133 # a 1K string should be a reasonable start.
6134 for i in 1 2 3 4 5 6 7 8 ; do
6135 teststring=$teststring$teststring
6136 done
6137 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6138 # If test is not a shell built-in, we'll probably end up computing a
6139 # maximum length that is only half of the actual maximum length, but
6140 # we can't tell.
6141 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6142 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6143 test $i != 17 # 1/2 MB should be enough
6145 i=`expr $i + 1`
6146 teststring=$teststring$teststring
6147 done
6148 # Only check the string length outside the loop.
6149 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6150 teststring=
6151 # Add a significant safety factor because C++ compilers can tack on
6152 # massive amounts of additional arguments before passing them to the
6153 # linker. It appears as though 1/2 is a usable value.
6154 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6157 esac
6161 if test -n $lt_cv_sys_max_cmd_len ; then
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6163 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6164 else
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6166 $as_echo "none" >&6; }
6168 max_cmd_len=$lt_cv_sys_max_cmd_len
6175 : ${CP="cp -f"}
6176 : ${MV="mv -f"}
6177 : ${RM="rm -f"}
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6180 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6181 # Try some XSI features
6182 xsi_shell=no
6183 ( _lt_dummy="a/b/c"
6184 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6185 = c,a/b,, \
6186 && eval 'test $(( 1 + 1 )) -eq 2 \
6187 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6188 && xsi_shell=yes
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6190 $as_echo "$xsi_shell" >&6; }
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6194 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6195 lt_shell_append=no
6196 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6197 >/dev/null 2>&1 \
6198 && lt_shell_append=yes
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6200 $as_echo "$lt_shell_append" >&6; }
6203 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6204 lt_unset=unset
6205 else
6206 lt_unset=false
6213 # test EBCDIC or ASCII
6214 case `echo X|tr X '\101'` in
6215 A) # ASCII based system
6216 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6217 lt_SP2NL='tr \040 \012'
6218 lt_NL2SP='tr \015\012 \040\040'
6220 *) # EBCDIC based system
6221 lt_SP2NL='tr \100 \n'
6222 lt_NL2SP='tr \r\n \100\100'
6224 esac
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6235 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6236 if ${lt_cv_ld_reload_flag+:} false; then :
6237 $as_echo_n "(cached) " >&6
6238 else
6239 lt_cv_ld_reload_flag='-r'
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6242 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6243 reload_flag=$lt_cv_ld_reload_flag
6244 case $reload_flag in
6245 "" | " "*) ;;
6246 *) reload_flag=" $reload_flag" ;;
6247 esac
6248 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6249 case $host_os in
6250 darwin*)
6251 if test "$GCC" = yes; then
6252 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6253 else
6254 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6257 esac
6267 if test -n "$ac_tool_prefix"; then
6268 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6269 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6271 $as_echo_n "checking for $ac_word... " >&6; }
6272 if ${ac_cv_prog_OBJDUMP+:} false; then :
6273 $as_echo_n "(cached) " >&6
6274 else
6275 if test -n "$OBJDUMP"; then
6276 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6277 else
6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279 for as_dir in $PATH
6281 IFS=$as_save_IFS
6282 test -z "$as_dir" && as_dir=.
6283 for ac_exec_ext in '' $ac_executable_extensions; do
6284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6285 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6287 break 2
6289 done
6290 done
6291 IFS=$as_save_IFS
6295 OBJDUMP=$ac_cv_prog_OBJDUMP
6296 if test -n "$OBJDUMP"; then
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6298 $as_echo "$OBJDUMP" >&6; }
6299 else
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6301 $as_echo "no" >&6; }
6306 if test -z "$ac_cv_prog_OBJDUMP"; then
6307 ac_ct_OBJDUMP=$OBJDUMP
6308 # Extract the first word of "objdump", so it can be a program name with args.
6309 set dummy objdump; ac_word=$2
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6311 $as_echo_n "checking for $ac_word... " >&6; }
6312 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6313 $as_echo_n "(cached) " >&6
6314 else
6315 if test -n "$ac_ct_OBJDUMP"; then
6316 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6317 else
6318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319 for as_dir in $PATH
6321 IFS=$as_save_IFS
6322 test -z "$as_dir" && as_dir=.
6323 for ac_exec_ext in '' $ac_executable_extensions; do
6324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6325 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6327 break 2
6329 done
6330 done
6331 IFS=$as_save_IFS
6335 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6336 if test -n "$ac_ct_OBJDUMP"; then
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6338 $as_echo "$ac_ct_OBJDUMP" >&6; }
6339 else
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6341 $as_echo "no" >&6; }
6344 if test "x$ac_ct_OBJDUMP" = x; then
6345 OBJDUMP="false"
6346 else
6347 case $cross_compiling:$ac_tool_warned in
6348 yes:)
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6351 ac_tool_warned=yes ;;
6352 esac
6353 OBJDUMP=$ac_ct_OBJDUMP
6355 else
6356 OBJDUMP="$ac_cv_prog_OBJDUMP"
6359 test -z "$OBJDUMP" && OBJDUMP=objdump
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6370 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6371 if ${lt_cv_deplibs_check_method+:} false; then :
6372 $as_echo_n "(cached) " >&6
6373 else
6374 lt_cv_file_magic_cmd='$MAGIC_CMD'
6375 lt_cv_file_magic_test_file=
6376 lt_cv_deplibs_check_method='unknown'
6377 # Need to set the preceding variable on all platforms that support
6378 # interlibrary dependencies.
6379 # 'none' -- dependencies not supported.
6380 # `unknown' -- same as none, but documents that we really don't know.
6381 # 'pass_all' -- all dependencies passed with no checks.
6382 # 'test_compile' -- check by making test program.
6383 # 'file_magic [[regex]]' -- check by looking for files in library path
6384 # which responds to the $file_magic_cmd with a given extended regex.
6385 # If you have `file' or equivalent on your system and you're not sure
6386 # whether `pass_all' will *always* work, you probably want this one.
6388 case $host_os in
6389 aix[4-9]*)
6390 lt_cv_deplibs_check_method=pass_all
6393 beos*)
6394 lt_cv_deplibs_check_method=pass_all
6397 bsdi[45]*)
6398 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6399 lt_cv_file_magic_cmd='/usr/bin/file -L'
6400 lt_cv_file_magic_test_file=/shlib/libc.so
6403 cygwin*)
6404 # func_win32_libid is a shell function defined in ltmain.sh
6405 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6406 lt_cv_file_magic_cmd='func_win32_libid'
6409 mingw* | pw32*)
6410 # Base MSYS/MinGW do not provide the 'file' command needed by
6411 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6412 # unless we find 'file', for example because we are cross-compiling.
6413 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6414 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6415 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6416 lt_cv_file_magic_cmd='func_win32_libid'
6417 else
6418 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6419 lt_cv_file_magic_cmd='$OBJDUMP -f'
6423 cegcc*)
6424 # use the weaker test based on 'objdump'. See mingw*.
6425 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6426 lt_cv_file_magic_cmd='$OBJDUMP -f'
6429 darwin* | rhapsody*)
6430 lt_cv_deplibs_check_method=pass_all
6433 freebsd* | dragonfly*)
6434 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6435 case $host_cpu in
6436 i*86 )
6437 # Not sure whether the presence of OpenBSD here was a mistake.
6438 # Let's accept both of them until this is cleared up.
6439 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6440 lt_cv_file_magic_cmd=/usr/bin/file
6441 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6443 esac
6444 else
6445 lt_cv_deplibs_check_method=pass_all
6449 gnu*)
6450 lt_cv_deplibs_check_method=pass_all
6453 haiku*)
6454 lt_cv_deplibs_check_method=pass_all
6457 hpux10.20* | hpux11*)
6458 lt_cv_file_magic_cmd=/usr/bin/file
6459 case $host_cpu in
6460 ia64*)
6461 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6462 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6464 hppa*64*)
6465 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]'
6466 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6469 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6470 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6472 esac
6475 interix[3-9]*)
6476 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6477 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6480 irix5* | irix6* | nonstopux*)
6481 case $LD in
6482 *-32|*"-32 ") libmagic=32-bit;;
6483 *-n32|*"-n32 ") libmagic=N32;;
6484 *-64|*"-64 ") libmagic=64-bit;;
6485 *) libmagic=never-match;;
6486 esac
6487 lt_cv_deplibs_check_method=pass_all
6490 # This must be Linux ELF.
6491 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6492 lt_cv_deplibs_check_method=pass_all
6495 netbsd*)
6496 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6497 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6498 else
6499 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6503 newos6*)
6504 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6505 lt_cv_file_magic_cmd=/usr/bin/file
6506 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6509 *nto* | *qnx*)
6510 lt_cv_deplibs_check_method=pass_all
6513 openbsd*)
6514 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6515 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6516 else
6517 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6521 osf3* | osf4* | osf5*)
6522 lt_cv_deplibs_check_method=pass_all
6525 rdos*)
6526 lt_cv_deplibs_check_method=pass_all
6529 solaris*)
6530 lt_cv_deplibs_check_method=pass_all
6533 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6534 lt_cv_deplibs_check_method=pass_all
6537 sysv4 | sysv4.3*)
6538 case $host_vendor in
6539 motorola)
6540 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]'
6541 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6543 ncr)
6544 lt_cv_deplibs_check_method=pass_all
6546 sequent)
6547 lt_cv_file_magic_cmd='/bin/file'
6548 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6550 sni)
6551 lt_cv_file_magic_cmd='/bin/file'
6552 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6553 lt_cv_file_magic_test_file=/lib/libc.so
6555 siemens)
6556 lt_cv_deplibs_check_method=pass_all
6559 lt_cv_deplibs_check_method=pass_all
6561 esac
6564 tpf*)
6565 lt_cv_deplibs_check_method=pass_all
6567 vxworks*)
6568 # Assume VxWorks cross toolchains are built on Linux, possibly
6569 # as canadian for Windows hosts.
6570 lt_cv_deplibs_check_method=pass_all
6572 esac
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6576 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6577 file_magic_cmd=$lt_cv_file_magic_cmd
6578 deplibs_check_method=$lt_cv_deplibs_check_method
6579 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6592 if test -n "$ac_tool_prefix"; then
6593 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6594 set dummy ${ac_tool_prefix}ar; ac_word=$2
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6596 $as_echo_n "checking for $ac_word... " >&6; }
6597 if ${ac_cv_prog_AR+:} false; then :
6598 $as_echo_n "(cached) " >&6
6599 else
6600 if test -n "$AR"; then
6601 ac_cv_prog_AR="$AR" # Let the user override the test.
6602 else
6603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604 for as_dir in $PATH
6606 IFS=$as_save_IFS
6607 test -z "$as_dir" && as_dir=.
6608 for ac_exec_ext in '' $ac_executable_extensions; do
6609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6610 ac_cv_prog_AR="${ac_tool_prefix}ar"
6611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6612 break 2
6614 done
6615 done
6616 IFS=$as_save_IFS
6620 AR=$ac_cv_prog_AR
6621 if test -n "$AR"; then
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6623 $as_echo "$AR" >&6; }
6624 else
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6626 $as_echo "no" >&6; }
6631 if test -z "$ac_cv_prog_AR"; then
6632 ac_ct_AR=$AR
6633 # Extract the first word of "ar", so it can be a program name with args.
6634 set dummy ar; ac_word=$2
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636 $as_echo_n "checking for $ac_word... " >&6; }
6637 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6638 $as_echo_n "(cached) " >&6
6639 else
6640 if test -n "$ac_ct_AR"; then
6641 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6642 else
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 for as_dir in $PATH
6646 IFS=$as_save_IFS
6647 test -z "$as_dir" && as_dir=.
6648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6650 ac_cv_prog_ac_ct_AR="ar"
6651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 break 2
6654 done
6655 done
6656 IFS=$as_save_IFS
6660 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6661 if test -n "$ac_ct_AR"; then
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6663 $as_echo "$ac_ct_AR" >&6; }
6664 else
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 $as_echo "no" >&6; }
6669 if test "x$ac_ct_AR" = x; then
6670 AR="false"
6671 else
6672 case $cross_compiling:$ac_tool_warned in
6673 yes:)
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6676 ac_tool_warned=yes ;;
6677 esac
6678 AR=$ac_ct_AR
6680 else
6681 AR="$ac_cv_prog_AR"
6684 test -z "$AR" && AR=ar
6685 test -z "$AR_FLAGS" && AR_FLAGS=cru
6697 if test -n "$ac_tool_prefix"; then
6698 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6699 set dummy ${ac_tool_prefix}strip; ac_word=$2
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6701 $as_echo_n "checking for $ac_word... " >&6; }
6702 if ${ac_cv_prog_STRIP+:} false; then :
6703 $as_echo_n "(cached) " >&6
6704 else
6705 if test -n "$STRIP"; then
6706 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6707 else
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 for as_dir in $PATH
6711 IFS=$as_save_IFS
6712 test -z "$as_dir" && as_dir=.
6713 for ac_exec_ext in '' $ac_executable_extensions; do
6714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6715 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6717 break 2
6719 done
6720 done
6721 IFS=$as_save_IFS
6725 STRIP=$ac_cv_prog_STRIP
6726 if test -n "$STRIP"; then
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6728 $as_echo "$STRIP" >&6; }
6729 else
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6731 $as_echo "no" >&6; }
6736 if test -z "$ac_cv_prog_STRIP"; then
6737 ac_ct_STRIP=$STRIP
6738 # Extract the first word of "strip", so it can be a program name with args.
6739 set dummy strip; ac_word=$2
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6741 $as_echo_n "checking for $ac_word... " >&6; }
6742 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6743 $as_echo_n "(cached) " >&6
6744 else
6745 if test -n "$ac_ct_STRIP"; then
6746 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6747 else
6748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749 for as_dir in $PATH
6751 IFS=$as_save_IFS
6752 test -z "$as_dir" && as_dir=.
6753 for ac_exec_ext in '' $ac_executable_extensions; do
6754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6755 ac_cv_prog_ac_ct_STRIP="strip"
6756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6757 break 2
6759 done
6760 done
6761 IFS=$as_save_IFS
6765 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6766 if test -n "$ac_ct_STRIP"; then
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6768 $as_echo "$ac_ct_STRIP" >&6; }
6769 else
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6771 $as_echo "no" >&6; }
6774 if test "x$ac_ct_STRIP" = x; then
6775 STRIP=":"
6776 else
6777 case $cross_compiling:$ac_tool_warned in
6778 yes:)
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6781 ac_tool_warned=yes ;;
6782 esac
6783 STRIP=$ac_ct_STRIP
6785 else
6786 STRIP="$ac_cv_prog_STRIP"
6789 test -z "$STRIP" && STRIP=:
6796 if test -n "$ac_tool_prefix"; then
6797 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6798 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6800 $as_echo_n "checking for $ac_word... " >&6; }
6801 if ${ac_cv_prog_RANLIB+:} false; then :
6802 $as_echo_n "(cached) " >&6
6803 else
6804 if test -n "$RANLIB"; then
6805 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6806 else
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808 for as_dir in $PATH
6810 IFS=$as_save_IFS
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6814 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 break 2
6818 done
6819 done
6820 IFS=$as_save_IFS
6824 RANLIB=$ac_cv_prog_RANLIB
6825 if test -n "$RANLIB"; then
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6827 $as_echo "$RANLIB" >&6; }
6828 else
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830 $as_echo "no" >&6; }
6835 if test -z "$ac_cv_prog_RANLIB"; then
6836 ac_ct_RANLIB=$RANLIB
6837 # Extract the first word of "ranlib", so it can be a program name with args.
6838 set dummy ranlib; ac_word=$2
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840 $as_echo_n "checking for $ac_word... " >&6; }
6841 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6842 $as_echo_n "(cached) " >&6
6843 else
6844 if test -n "$ac_ct_RANLIB"; then
6845 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6846 else
6847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848 for as_dir in $PATH
6850 IFS=$as_save_IFS
6851 test -z "$as_dir" && as_dir=.
6852 for ac_exec_ext in '' $ac_executable_extensions; do
6853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6854 ac_cv_prog_ac_ct_RANLIB="ranlib"
6855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6856 break 2
6858 done
6859 done
6860 IFS=$as_save_IFS
6864 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6865 if test -n "$ac_ct_RANLIB"; then
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6867 $as_echo "$ac_ct_RANLIB" >&6; }
6868 else
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870 $as_echo "no" >&6; }
6873 if test "x$ac_ct_RANLIB" = x; then
6874 RANLIB=":"
6875 else
6876 case $cross_compiling:$ac_tool_warned in
6877 yes:)
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6880 ac_tool_warned=yes ;;
6881 esac
6882 RANLIB=$ac_ct_RANLIB
6884 else
6885 RANLIB="$ac_cv_prog_RANLIB"
6888 test -z "$RANLIB" && RANLIB=:
6895 # Determine commands to create old-style static archives.
6896 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6897 old_postinstall_cmds='chmod 644 $oldlib'
6898 old_postuninstall_cmds=
6900 if test -n "$RANLIB"; then
6901 case $host_os in
6902 openbsd*)
6903 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6906 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6908 esac
6909 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6912 case $host_os in
6913 darwin*)
6914 lock_old_archive_extraction=yes ;;
6916 lock_old_archive_extraction=no ;;
6917 esac
6957 # If no C compiler was specified, use CC.
6958 LTCC=${LTCC-"$CC"}
6960 # If no C compiler flags were specified, use CFLAGS.
6961 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6963 # Allow CC to be a program name with arguments.
6964 compiler=$CC
6967 # Check for command to grab the raw symbol name followed by C symbol from nm.
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6969 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6970 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6971 $as_echo_n "(cached) " >&6
6972 else
6974 # These are sane defaults that work on at least a few old systems.
6975 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6977 # Character class describing NM global symbol codes.
6978 symcode='[BCDEGRST]'
6980 # Regexp to match symbols that can be accessed directly from C.
6981 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6983 # Define system-specific variables.
6984 case $host_os in
6985 aix*)
6986 symcode='[BCDT]'
6988 cygwin* | mingw* | pw32* | cegcc*)
6989 symcode='[ABCDGISTW]'
6991 hpux*)
6992 if test "$host_cpu" = ia64; then
6993 symcode='[ABCDEGRST]'
6996 irix* | nonstopux*)
6997 symcode='[BCDEGRST]'
6999 osf*)
7000 symcode='[BCDEGQRST]'
7002 solaris*)
7003 symcode='[BDRT]'
7005 sco3.2v5*)
7006 symcode='[DT]'
7008 sysv4.2uw2*)
7009 symcode='[DT]'
7011 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7012 symcode='[ABDT]'
7014 sysv4)
7015 symcode='[DFNSTU]'
7017 esac
7019 # If we're using GNU nm, then use its standard symbol codes.
7020 case `$NM -V 2>&1` in
7021 *GNU* | *'with BFD'*)
7022 symcode='[ABCDGIRSTW]' ;;
7023 esac
7025 # Transform an extracted symbol line into a proper C declaration.
7026 # Some systems (esp. on ia64) link data and code symbols differently,
7027 # so use this general approach.
7028 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7030 # Transform an extracted symbol line into symbol name and symbol address
7031 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7032 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'"
7034 # Handle CRLF in mingw tool chain
7035 opt_cr=
7036 case $build_os in
7037 mingw*)
7038 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7040 esac
7042 # Try without a prefix underscore, then with it.
7043 for ac_symprfx in "" "_"; do
7045 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7046 symxfrm="\\1 $ac_symprfx\\2 \\2"
7048 # Write the raw and C identifiers.
7049 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7050 # Fake it for dumpbin and say T for any non-static function
7051 # and D for any global variable.
7052 # Also find C++ and __fastcall symbols from MSVC++,
7053 # which start with @ or ?.
7054 lt_cv_sys_global_symbol_pipe="$AWK '"\
7055 " {last_section=section; section=\$ 3};"\
7056 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7057 " \$ 0!~/External *\|/{next};"\
7058 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7059 " {if(hide[section]) next};"\
7060 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7061 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7062 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7063 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7064 " ' prfx=^$ac_symprfx"
7065 else
7066 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7069 # Check to see that the pipe works correctly.
7070 pipe_works=no
7072 rm -f conftest*
7073 cat > conftest.$ac_ext <<_LT_EOF
7074 #ifdef __cplusplus
7075 extern "C" {
7076 #endif
7077 char nm_test_var;
7078 void nm_test_func(void);
7079 void nm_test_func(void){}
7080 #ifdef __cplusplus
7082 #endif
7083 int main(){nm_test_var='a';nm_test_func();return(0);}
7084 _LT_EOF
7086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7087 (eval $ac_compile) 2>&5
7088 ac_status=$?
7089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7090 test $ac_status = 0; }; then
7091 # Now try to grab the symbols.
7092 nlist=conftest.nm
7093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7094 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7095 ac_status=$?
7096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7097 test $ac_status = 0; } && test -s "$nlist"; then
7098 # Try sorting and uniquifying the output.
7099 if sort "$nlist" | uniq > "$nlist"T; then
7100 mv -f "$nlist"T "$nlist"
7101 else
7102 rm -f "$nlist"T
7105 # Make sure that we snagged all the symbols we need.
7106 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7107 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7108 cat <<_LT_EOF > conftest.$ac_ext
7109 #ifdef __cplusplus
7110 extern "C" {
7111 #endif
7113 _LT_EOF
7114 # Now generate the symbol file.
7115 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7117 cat <<_LT_EOF >> conftest.$ac_ext
7119 /* The mapping between symbol names and symbols. */
7120 const struct {
7121 const char *name;
7122 void *address;
7124 lt__PROGRAM__LTX_preloaded_symbols[] =
7126 { "@PROGRAM@", (void *) 0 },
7127 _LT_EOF
7128 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7129 cat <<\_LT_EOF >> conftest.$ac_ext
7130 {0, (void *) 0}
7133 /* This works around a problem in FreeBSD linker */
7134 #ifdef FREEBSD_WORKAROUND
7135 static const void *lt_preloaded_setup() {
7136 return lt__PROGRAM__LTX_preloaded_symbols;
7138 #endif
7140 #ifdef __cplusplus
7142 #endif
7143 _LT_EOF
7144 # Now try linking the two files.
7145 mv conftest.$ac_objext conftstm.$ac_objext
7146 lt_save_LIBS="$LIBS"
7147 lt_save_CFLAGS="$CFLAGS"
7148 LIBS="conftstm.$ac_objext"
7149 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7151 (eval $ac_link) 2>&5
7152 ac_status=$?
7153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7154 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7155 pipe_works=yes
7157 LIBS="$lt_save_LIBS"
7158 CFLAGS="$lt_save_CFLAGS"
7159 else
7160 echo "cannot find nm_test_func in $nlist" >&5
7162 else
7163 echo "cannot find nm_test_var in $nlist" >&5
7165 else
7166 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7168 else
7169 echo "$progname: failed program was:" >&5
7170 cat conftest.$ac_ext >&5
7172 rm -rf conftest* conftst*
7174 # Do not use the global_symbol_pipe unless it works.
7175 if test "$pipe_works" = yes; then
7176 break
7177 else
7178 lt_cv_sys_global_symbol_pipe=
7180 done
7184 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7185 lt_cv_sys_global_symbol_to_cdecl=
7187 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7189 $as_echo "failed" >&6; }
7190 else
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7192 $as_echo "ok" >&6; }
7216 # Check whether --enable-libtool-lock was given.
7217 if test "${enable_libtool_lock+set}" = set; then :
7218 enableval=$enable_libtool_lock;
7221 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7223 # Some flags need to be propagated to the compiler or linker for good
7224 # libtool support.
7225 case $host in
7226 ia64-*-hpux*)
7227 # Find out which ABI we are using.
7228 echo 'int i;' > conftest.$ac_ext
7229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7230 (eval $ac_compile) 2>&5
7231 ac_status=$?
7232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7233 test $ac_status = 0; }; then
7234 case `/usr/bin/file conftest.$ac_objext` in
7235 *ELF-32*)
7236 HPUX_IA64_MODE="32"
7238 *ELF-64*)
7239 HPUX_IA64_MODE="64"
7241 esac
7243 rm -rf conftest*
7245 *-*-irix6*)
7246 # Find out which ABI we are using.
7247 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7248 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7249 (eval $ac_compile) 2>&5
7250 ac_status=$?
7251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7252 test $ac_status = 0; }; then
7253 if test "$lt_cv_prog_gnu_ld" = yes; then
7254 case `/usr/bin/file conftest.$ac_objext` in
7255 *32-bit*)
7256 LD="${LD-ld} -melf32bsmip"
7258 *N32*)
7259 LD="${LD-ld} -melf32bmipn32"
7261 *64-bit*)
7262 LD="${LD-ld} -melf64bmip"
7264 esac
7265 else
7266 case `/usr/bin/file conftest.$ac_objext` in
7267 *32-bit*)
7268 LD="${LD-ld} -32"
7270 *N32*)
7271 LD="${LD-ld} -n32"
7273 *64-bit*)
7274 LD="${LD-ld} -64"
7276 esac
7279 rm -rf conftest*
7282 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7283 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7284 # Find out which ABI we are using.
7285 echo 'int i;' > conftest.$ac_ext
7286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7287 (eval $ac_compile) 2>&5
7288 ac_status=$?
7289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7290 test $ac_status = 0; }; then
7291 case `/usr/bin/file conftest.o` in
7292 *32-bit*)
7293 case $host in
7294 x86_64-*kfreebsd*-gnu)
7295 LD="${LD-ld} -m elf_i386_fbsd"
7297 x86_64-*linux*)
7298 case `/usr/bin/file conftest.o` in
7299 *x86-64*)
7300 LD="${LD-ld} -m elf32_x86_64"
7303 LD="${LD-ld} -m elf_i386"
7305 esac
7307 powerpc64le-*linux*)
7308 LD="${LD-ld} -m elf32lppclinux"
7310 powerpc64-*linux*)
7311 LD="${LD-ld} -m elf32ppclinux"
7313 s390x-*linux*)
7314 LD="${LD-ld} -m elf_s390"
7316 sparc64-*linux*)
7317 LD="${LD-ld} -m elf32_sparc"
7319 esac
7321 *64-bit*)
7322 case $host in
7323 x86_64-*kfreebsd*-gnu)
7324 LD="${LD-ld} -m elf_x86_64_fbsd"
7326 x86_64-*linux*)
7327 LD="${LD-ld} -m elf_x86_64"
7329 powerpcle-*linux*)
7330 LD="${LD-ld} -m elf64lppc"
7332 powerpc-*linux*)
7333 LD="${LD-ld} -m elf64ppc"
7335 s390*-*linux*|s390*-*tpf*)
7336 LD="${LD-ld} -m elf64_s390"
7338 sparc*-*linux*)
7339 LD="${LD-ld} -m elf64_sparc"
7341 esac
7343 esac
7345 rm -rf conftest*
7348 *-*-sco3.2v5*)
7349 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7350 SAVE_CFLAGS="$CFLAGS"
7351 CFLAGS="$CFLAGS -belf"
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7353 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7354 if ${lt_cv_cc_needs_belf+:} false; then :
7355 $as_echo_n "(cached) " >&6
7356 else
7357 ac_ext=c
7358 ac_cpp='$CPP $CPPFLAGS'
7359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364 /* end confdefs.h. */
7367 main ()
7371 return 0;
7373 _ACEOF
7374 if ac_fn_c_try_link "$LINENO"; then :
7375 lt_cv_cc_needs_belf=yes
7376 else
7377 lt_cv_cc_needs_belf=no
7379 rm -f core conftest.err conftest.$ac_objext \
7380 conftest$ac_exeext conftest.$ac_ext
7381 ac_ext=c
7382 ac_cpp='$CPP $CPPFLAGS'
7383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7389 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7390 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7391 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7392 CFLAGS="$SAVE_CFLAGS"
7395 sparc*-*solaris*)
7396 # Find out which ABI we are using.
7397 echo 'int i;' > conftest.$ac_ext
7398 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7399 (eval $ac_compile) 2>&5
7400 ac_status=$?
7401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7402 test $ac_status = 0; }; then
7403 case `/usr/bin/file conftest.o` in
7404 *64-bit*)
7405 case $lt_cv_prog_gnu_ld in
7406 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7408 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7409 LD="${LD-ld} -64"
7412 esac
7414 esac
7416 rm -rf conftest*
7418 esac
7420 need_locks="$enable_libtool_lock"
7423 case $host_os in
7424 rhapsody* | darwin*)
7425 if test -n "$ac_tool_prefix"; then
7426 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7427 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7429 $as_echo_n "checking for $ac_word... " >&6; }
7430 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7431 $as_echo_n "(cached) " >&6
7432 else
7433 if test -n "$DSYMUTIL"; then
7434 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7435 else
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH
7439 IFS=$as_save_IFS
7440 test -z "$as_dir" && as_dir=.
7441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7443 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 break 2
7447 done
7448 done
7449 IFS=$as_save_IFS
7453 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7454 if test -n "$DSYMUTIL"; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7456 $as_echo "$DSYMUTIL" >&6; }
7457 else
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7464 if test -z "$ac_cv_prog_DSYMUTIL"; then
7465 ac_ct_DSYMUTIL=$DSYMUTIL
7466 # Extract the first word of "dsymutil", so it can be a program name with args.
7467 set dummy dsymutil; ac_word=$2
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7469 $as_echo_n "checking for $ac_word... " >&6; }
7470 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7471 $as_echo_n "(cached) " >&6
7472 else
7473 if test -n "$ac_ct_DSYMUTIL"; then
7474 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7475 else
7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477 for as_dir in $PATH
7479 IFS=$as_save_IFS
7480 test -z "$as_dir" && as_dir=.
7481 for ac_exec_ext in '' $ac_executable_extensions; do
7482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7483 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 break 2
7487 done
7488 done
7489 IFS=$as_save_IFS
7493 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7494 if test -n "$ac_ct_DSYMUTIL"; then
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7496 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7497 else
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7499 $as_echo "no" >&6; }
7502 if test "x$ac_ct_DSYMUTIL" = x; then
7503 DSYMUTIL=":"
7504 else
7505 case $cross_compiling:$ac_tool_warned in
7506 yes:)
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7509 ac_tool_warned=yes ;;
7510 esac
7511 DSYMUTIL=$ac_ct_DSYMUTIL
7513 else
7514 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7517 if test -n "$ac_tool_prefix"; then
7518 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7519 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7521 $as_echo_n "checking for $ac_word... " >&6; }
7522 if ${ac_cv_prog_NMEDIT+:} false; then :
7523 $as_echo_n "(cached) " >&6
7524 else
7525 if test -n "$NMEDIT"; then
7526 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7527 else
7528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529 for as_dir in $PATH
7531 IFS=$as_save_IFS
7532 test -z "$as_dir" && as_dir=.
7533 for ac_exec_ext in '' $ac_executable_extensions; do
7534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7535 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7537 break 2
7539 done
7540 done
7541 IFS=$as_save_IFS
7545 NMEDIT=$ac_cv_prog_NMEDIT
7546 if test -n "$NMEDIT"; then
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7548 $as_echo "$NMEDIT" >&6; }
7549 else
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7551 $as_echo "no" >&6; }
7556 if test -z "$ac_cv_prog_NMEDIT"; then
7557 ac_ct_NMEDIT=$NMEDIT
7558 # Extract the first word of "nmedit", so it can be a program name with args.
7559 set dummy nmedit; ac_word=$2
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7561 $as_echo_n "checking for $ac_word... " >&6; }
7562 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7563 $as_echo_n "(cached) " >&6
7564 else
7565 if test -n "$ac_ct_NMEDIT"; then
7566 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7567 else
7568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7569 for as_dir in $PATH
7571 IFS=$as_save_IFS
7572 test -z "$as_dir" && as_dir=.
7573 for ac_exec_ext in '' $ac_executable_extensions; do
7574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7575 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7577 break 2
7579 done
7580 done
7581 IFS=$as_save_IFS
7585 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7586 if test -n "$ac_ct_NMEDIT"; then
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7588 $as_echo "$ac_ct_NMEDIT" >&6; }
7589 else
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591 $as_echo "no" >&6; }
7594 if test "x$ac_ct_NMEDIT" = x; then
7595 NMEDIT=":"
7596 else
7597 case $cross_compiling:$ac_tool_warned in
7598 yes:)
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7601 ac_tool_warned=yes ;;
7602 esac
7603 NMEDIT=$ac_ct_NMEDIT
7605 else
7606 NMEDIT="$ac_cv_prog_NMEDIT"
7609 if test -n "$ac_tool_prefix"; then
7610 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7611 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7613 $as_echo_n "checking for $ac_word... " >&6; }
7614 if ${ac_cv_prog_LIPO+:} false; then :
7615 $as_echo_n "(cached) " >&6
7616 else
7617 if test -n "$LIPO"; then
7618 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7619 else
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 for as_dir in $PATH
7623 IFS=$as_save_IFS
7624 test -z "$as_dir" && as_dir=.
7625 for ac_exec_ext in '' $ac_executable_extensions; do
7626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7627 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7629 break 2
7631 done
7632 done
7633 IFS=$as_save_IFS
7637 LIPO=$ac_cv_prog_LIPO
7638 if test -n "$LIPO"; then
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7640 $as_echo "$LIPO" >&6; }
7641 else
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643 $as_echo "no" >&6; }
7648 if test -z "$ac_cv_prog_LIPO"; then
7649 ac_ct_LIPO=$LIPO
7650 # Extract the first word of "lipo", so it can be a program name with args.
7651 set dummy lipo; ac_word=$2
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7653 $as_echo_n "checking for $ac_word... " >&6; }
7654 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7655 $as_echo_n "(cached) " >&6
7656 else
7657 if test -n "$ac_ct_LIPO"; then
7658 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7659 else
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661 for as_dir in $PATH
7663 IFS=$as_save_IFS
7664 test -z "$as_dir" && as_dir=.
7665 for ac_exec_ext in '' $ac_executable_extensions; do
7666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7667 ac_cv_prog_ac_ct_LIPO="lipo"
7668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7669 break 2
7671 done
7672 done
7673 IFS=$as_save_IFS
7677 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7678 if test -n "$ac_ct_LIPO"; then
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7680 $as_echo "$ac_ct_LIPO" >&6; }
7681 else
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7683 $as_echo "no" >&6; }
7686 if test "x$ac_ct_LIPO" = x; then
7687 LIPO=":"
7688 else
7689 case $cross_compiling:$ac_tool_warned in
7690 yes:)
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7693 ac_tool_warned=yes ;;
7694 esac
7695 LIPO=$ac_ct_LIPO
7697 else
7698 LIPO="$ac_cv_prog_LIPO"
7701 if test -n "$ac_tool_prefix"; then
7702 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7703 set dummy ${ac_tool_prefix}otool; ac_word=$2
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7705 $as_echo_n "checking for $ac_word... " >&6; }
7706 if ${ac_cv_prog_OTOOL+:} false; then :
7707 $as_echo_n "(cached) " >&6
7708 else
7709 if test -n "$OTOOL"; then
7710 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7711 else
7712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713 for as_dir in $PATH
7715 IFS=$as_save_IFS
7716 test -z "$as_dir" && as_dir=.
7717 for ac_exec_ext in '' $ac_executable_extensions; do
7718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7719 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7721 break 2
7723 done
7724 done
7725 IFS=$as_save_IFS
7729 OTOOL=$ac_cv_prog_OTOOL
7730 if test -n "$OTOOL"; then
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7732 $as_echo "$OTOOL" >&6; }
7733 else
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7735 $as_echo "no" >&6; }
7740 if test -z "$ac_cv_prog_OTOOL"; then
7741 ac_ct_OTOOL=$OTOOL
7742 # Extract the first word of "otool", so it can be a program name with args.
7743 set dummy otool; ac_word=$2
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7745 $as_echo_n "checking for $ac_word... " >&6; }
7746 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7747 $as_echo_n "(cached) " >&6
7748 else
7749 if test -n "$ac_ct_OTOOL"; then
7750 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7751 else
7752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7753 for as_dir in $PATH
7755 IFS=$as_save_IFS
7756 test -z "$as_dir" && as_dir=.
7757 for ac_exec_ext in '' $ac_executable_extensions; do
7758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7759 ac_cv_prog_ac_ct_OTOOL="otool"
7760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7761 break 2
7763 done
7764 done
7765 IFS=$as_save_IFS
7769 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7770 if test -n "$ac_ct_OTOOL"; then
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7772 $as_echo "$ac_ct_OTOOL" >&6; }
7773 else
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775 $as_echo "no" >&6; }
7778 if test "x$ac_ct_OTOOL" = x; then
7779 OTOOL=":"
7780 else
7781 case $cross_compiling:$ac_tool_warned in
7782 yes:)
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7785 ac_tool_warned=yes ;;
7786 esac
7787 OTOOL=$ac_ct_OTOOL
7789 else
7790 OTOOL="$ac_cv_prog_OTOOL"
7793 if test -n "$ac_tool_prefix"; then
7794 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7795 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797 $as_echo_n "checking for $ac_word... " >&6; }
7798 if ${ac_cv_prog_OTOOL64+:} false; then :
7799 $as_echo_n "(cached) " >&6
7800 else
7801 if test -n "$OTOOL64"; then
7802 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7803 else
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805 for as_dir in $PATH
7807 IFS=$as_save_IFS
7808 test -z "$as_dir" && as_dir=.
7809 for ac_exec_ext in '' $ac_executable_extensions; do
7810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7811 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7813 break 2
7815 done
7816 done
7817 IFS=$as_save_IFS
7821 OTOOL64=$ac_cv_prog_OTOOL64
7822 if test -n "$OTOOL64"; then
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7824 $as_echo "$OTOOL64" >&6; }
7825 else
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 $as_echo "no" >&6; }
7832 if test -z "$ac_cv_prog_OTOOL64"; then
7833 ac_ct_OTOOL64=$OTOOL64
7834 # Extract the first word of "otool64", so it can be a program name with args.
7835 set dummy otool64; ac_word=$2
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7837 $as_echo_n "checking for $ac_word... " >&6; }
7838 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7839 $as_echo_n "(cached) " >&6
7840 else
7841 if test -n "$ac_ct_OTOOL64"; then
7842 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7843 else
7844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845 for as_dir in $PATH
7847 IFS=$as_save_IFS
7848 test -z "$as_dir" && as_dir=.
7849 for ac_exec_ext in '' $ac_executable_extensions; do
7850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7851 ac_cv_prog_ac_ct_OTOOL64="otool64"
7852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7853 break 2
7855 done
7856 done
7857 IFS=$as_save_IFS
7861 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7862 if test -n "$ac_ct_OTOOL64"; then
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7864 $as_echo "$ac_ct_OTOOL64" >&6; }
7865 else
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7867 $as_echo "no" >&6; }
7870 if test "x$ac_ct_OTOOL64" = x; then
7871 OTOOL64=":"
7872 else
7873 case $cross_compiling:$ac_tool_warned in
7874 yes:)
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7877 ac_tool_warned=yes ;;
7878 esac
7879 OTOOL64=$ac_ct_OTOOL64
7881 else
7882 OTOOL64="$ac_cv_prog_OTOOL64"
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7912 $as_echo_n "checking for -single_module linker flag... " >&6; }
7913 if ${lt_cv_apple_cc_single_mod+:} false; then :
7914 $as_echo_n "(cached) " >&6
7915 else
7916 lt_cv_apple_cc_single_mod=no
7917 if test -z "${LT_MULTI_MODULE}"; then
7918 # By default we will add the -single_module flag. You can override
7919 # by either setting the environment variable LT_MULTI_MODULE
7920 # non-empty at configure time, or by adding -multi_module to the
7921 # link flags.
7922 rm -rf libconftest.dylib*
7923 echo "int foo(void){return 1;}" > conftest.c
7924 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7925 -dynamiclib -Wl,-single_module conftest.c" >&5
7926 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7927 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7928 _lt_result=$?
7929 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7930 lt_cv_apple_cc_single_mod=yes
7931 else
7932 cat conftest.err >&5
7934 rm -rf libconftest.dylib*
7935 rm -f conftest.*
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7939 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7941 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7942 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7943 $as_echo_n "(cached) " >&6
7944 else
7945 lt_cv_ld_exported_symbols_list=no
7946 save_LDFLAGS=$LDFLAGS
7947 echo "_main" > conftest.sym
7948 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7950 /* end confdefs.h. */
7953 main ()
7957 return 0;
7959 _ACEOF
7960 if ac_fn_c_try_link "$LINENO"; then :
7961 lt_cv_ld_exported_symbols_list=yes
7962 else
7963 lt_cv_ld_exported_symbols_list=no
7965 rm -f core conftest.err conftest.$ac_objext \
7966 conftest$ac_exeext conftest.$ac_ext
7967 LDFLAGS="$save_LDFLAGS"
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7971 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7973 $as_echo_n "checking for -force_load linker flag... " >&6; }
7974 if ${lt_cv_ld_force_load+:} false; then :
7975 $as_echo_n "(cached) " >&6
7976 else
7977 lt_cv_ld_force_load=no
7978 cat > conftest.c << _LT_EOF
7979 int forced_loaded() { return 2;}
7980 _LT_EOF
7981 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7982 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7983 echo "$AR cru libconftest.a conftest.o" >&5
7984 $AR cru libconftest.a conftest.o 2>&5
7985 cat > conftest.c << _LT_EOF
7986 int main() { return 0;}
7987 _LT_EOF
7988 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7989 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7990 _lt_result=$?
7991 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7992 lt_cv_ld_force_load=yes
7993 else
7994 cat conftest.err >&5
7996 rm -f conftest.err libconftest.a conftest conftest.c
7997 rm -rf conftest.dSYM
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8001 $as_echo "$lt_cv_ld_force_load" >&6; }
8002 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8003 # build without first building modern cctools / linker.
8004 case $host_cpu-$host_os in
8005 *-rhapsody* | *-darwin1.[012])
8006 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8007 *-darwin1.*)
8008 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8009 *-darwin*)
8010 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8011 # deployment target is forced to an earlier version.
8012 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8013 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8015 10.[012][,.]*)
8016 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8020 esac
8022 esac
8023 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8024 _lt_dar_single_mod='$single_module'
8026 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8027 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8028 else
8029 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8031 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8032 _lt_dsymutil='~$DSYMUTIL $lib || :'
8033 else
8034 _lt_dsymutil=
8037 esac
8039 for ac_header in dlfcn.h
8040 do :
8041 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8043 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8044 cat >>confdefs.h <<_ACEOF
8045 #define HAVE_DLFCN_H 1
8046 _ACEOF
8050 done
8056 # Set options
8060 enable_dlopen=no
8063 enable_win32_dll=no
8066 # Check whether --enable-shared was given.
8067 if test "${enable_shared+set}" = set; then :
8068 enableval=$enable_shared; p=${PACKAGE-default}
8069 case $enableval in
8070 yes) enable_shared=yes ;;
8071 no) enable_shared=no ;;
8073 enable_shared=no
8074 # Look at the argument we got. We use all the common list separators.
8075 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8076 for pkg in $enableval; do
8077 IFS="$lt_save_ifs"
8078 if test "X$pkg" = "X$p"; then
8079 enable_shared=yes
8081 done
8082 IFS="$lt_save_ifs"
8084 esac
8085 else
8086 enable_shared=yes
8097 # Check whether --enable-static was given.
8098 if test "${enable_static+set}" = set; then :
8099 enableval=$enable_static; p=${PACKAGE-default}
8100 case $enableval in
8101 yes) enable_static=yes ;;
8102 no) enable_static=no ;;
8104 enable_static=no
8105 # Look at the argument we got. We use all the common list separators.
8106 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8107 for pkg in $enableval; do
8108 IFS="$lt_save_ifs"
8109 if test "X$pkg" = "X$p"; then
8110 enable_static=yes
8112 done
8113 IFS="$lt_save_ifs"
8115 esac
8116 else
8117 enable_static=yes
8129 # Check whether --with-pic was given.
8130 if test "${with_pic+set}" = set; then :
8131 withval=$with_pic; pic_mode="$withval"
8132 else
8133 pic_mode=default
8137 test -z "$pic_mode" && pic_mode=default
8145 # Check whether --enable-fast-install was given.
8146 if test "${enable_fast_install+set}" = set; then :
8147 enableval=$enable_fast_install; p=${PACKAGE-default}
8148 case $enableval in
8149 yes) enable_fast_install=yes ;;
8150 no) enable_fast_install=no ;;
8152 enable_fast_install=no
8153 # Look at the argument we got. We use all the common list separators.
8154 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8155 for pkg in $enableval; do
8156 IFS="$lt_save_ifs"
8157 if test "X$pkg" = "X$p"; then
8158 enable_fast_install=yes
8160 done
8161 IFS="$lt_save_ifs"
8163 esac
8164 else
8165 enable_fast_install=yes
8178 # This can be used to rebuild libtool when needed
8179 LIBTOOL_DEPS="$ltmain"
8181 # Always use our own libtool.
8182 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8209 test -z "$LN_S" && LN_S="ln -s"
8224 if test -n "${ZSH_VERSION+set}" ; then
8225 setopt NO_GLOB_SUBST
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8229 $as_echo_n "checking for objdir... " >&6; }
8230 if ${lt_cv_objdir+:} false; then :
8231 $as_echo_n "(cached) " >&6
8232 else
8233 rm -f .libs 2>/dev/null
8234 mkdir .libs 2>/dev/null
8235 if test -d .libs; then
8236 lt_cv_objdir=.libs
8237 else
8238 # MS-DOS does not allow filenames that begin with a dot.
8239 lt_cv_objdir=_libs
8241 rmdir .libs 2>/dev/null
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8244 $as_echo "$lt_cv_objdir" >&6; }
8245 objdir=$lt_cv_objdir
8251 cat >>confdefs.h <<_ACEOF
8252 #define LT_OBJDIR "$lt_cv_objdir/"
8253 _ACEOF
8258 case $host_os in
8259 aix3*)
8260 # AIX sometimes has problems with the GCC collect2 program. For some
8261 # reason, if we set the COLLECT_NAMES environment variable, the problems
8262 # vanish in a puff of smoke.
8263 if test "X${COLLECT_NAMES+set}" != Xset; then
8264 COLLECT_NAMES=
8265 export COLLECT_NAMES
8268 esac
8270 # Global variables:
8271 ofile=libtool
8272 can_build_shared=yes
8274 # All known linkers require a `.a' archive for static linking (except MSVC,
8275 # which needs '.lib').
8276 libext=a
8278 with_gnu_ld="$lt_cv_prog_gnu_ld"
8280 old_CC="$CC"
8281 old_CFLAGS="$CFLAGS"
8283 # Set sane defaults for various variables
8284 test -z "$CC" && CC=cc
8285 test -z "$LTCC" && LTCC=$CC
8286 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8287 test -z "$LD" && LD=ld
8288 test -z "$ac_objext" && ac_objext=o
8290 for cc_temp in $compiler""; do
8291 case $cc_temp in
8292 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8293 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8294 \-*) ;;
8295 *) break;;
8296 esac
8297 done
8298 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8301 # Only perform the check for file, if the check method requires it
8302 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8303 case $deplibs_check_method in
8304 file_magic*)
8305 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8307 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8308 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8309 $as_echo_n "(cached) " >&6
8310 else
8311 case $MAGIC_CMD in
8312 [\\/*] | ?:[\\/]*)
8313 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8316 lt_save_MAGIC_CMD="$MAGIC_CMD"
8317 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8318 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8319 for ac_dir in $ac_dummy; do
8320 IFS="$lt_save_ifs"
8321 test -z "$ac_dir" && ac_dir=.
8322 if test -f $ac_dir/${ac_tool_prefix}file; then
8323 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8324 if test -n "$file_magic_test_file"; then
8325 case $deplibs_check_method in
8326 "file_magic "*)
8327 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8328 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8329 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8330 $EGREP "$file_magic_regex" > /dev/null; then
8332 else
8333 cat <<_LT_EOF 1>&2
8335 *** Warning: the command libtool uses to detect shared libraries,
8336 *** $file_magic_cmd, produces output that libtool cannot recognize.
8337 *** The result is that libtool may fail to recognize shared libraries
8338 *** as such. This will affect the creation of libtool libraries that
8339 *** depend on shared libraries, but programs linked with such libtool
8340 *** libraries will work regardless of this problem. Nevertheless, you
8341 *** may want to report the problem to your system manager and/or to
8342 *** bug-libtool@gnu.org
8344 _LT_EOF
8345 fi ;;
8346 esac
8348 break
8350 done
8351 IFS="$lt_save_ifs"
8352 MAGIC_CMD="$lt_save_MAGIC_CMD"
8354 esac
8357 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8358 if test -n "$MAGIC_CMD"; then
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8360 $as_echo "$MAGIC_CMD" >&6; }
8361 else
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8363 $as_echo "no" >&6; }
8370 if test -z "$lt_cv_path_MAGIC_CMD"; then
8371 if test -n "$ac_tool_prefix"; then
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8373 $as_echo_n "checking for file... " >&6; }
8374 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8375 $as_echo_n "(cached) " >&6
8376 else
8377 case $MAGIC_CMD in
8378 [\\/*] | ?:[\\/]*)
8379 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8382 lt_save_MAGIC_CMD="$MAGIC_CMD"
8383 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8384 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8385 for ac_dir in $ac_dummy; do
8386 IFS="$lt_save_ifs"
8387 test -z "$ac_dir" && ac_dir=.
8388 if test -f $ac_dir/file; then
8389 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8390 if test -n "$file_magic_test_file"; then
8391 case $deplibs_check_method in
8392 "file_magic "*)
8393 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8394 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8395 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8396 $EGREP "$file_magic_regex" > /dev/null; then
8398 else
8399 cat <<_LT_EOF 1>&2
8401 *** Warning: the command libtool uses to detect shared libraries,
8402 *** $file_magic_cmd, produces output that libtool cannot recognize.
8403 *** The result is that libtool may fail to recognize shared libraries
8404 *** as such. This will affect the creation of libtool libraries that
8405 *** depend on shared libraries, but programs linked with such libtool
8406 *** libraries will work regardless of this problem. Nevertheless, you
8407 *** may want to report the problem to your system manager and/or to
8408 *** bug-libtool@gnu.org
8410 _LT_EOF
8411 fi ;;
8412 esac
8414 break
8416 done
8417 IFS="$lt_save_ifs"
8418 MAGIC_CMD="$lt_save_MAGIC_CMD"
8420 esac
8423 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8424 if test -n "$MAGIC_CMD"; then
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8426 $as_echo "$MAGIC_CMD" >&6; }
8427 else
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8429 $as_echo "no" >&6; }
8433 else
8434 MAGIC_CMD=:
8440 esac
8442 # Use C for the default configuration in the libtool script
8444 lt_save_CC="$CC"
8445 ac_ext=c
8446 ac_cpp='$CPP $CPPFLAGS'
8447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8452 # Source file extension for C test sources.
8453 ac_ext=c
8455 # Object file extension for compiled C test sources.
8456 objext=o
8457 objext=$objext
8459 # Code to be used in simple compile tests
8460 lt_simple_compile_test_code="int some_variable = 0;"
8462 # Code to be used in simple link tests
8463 lt_simple_link_test_code='int main(){return(0);}'
8471 # If no C compiler was specified, use CC.
8472 LTCC=${LTCC-"$CC"}
8474 # If no C compiler flags were specified, use CFLAGS.
8475 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8477 # Allow CC to be a program name with arguments.
8478 compiler=$CC
8480 # Save the default compiler, since it gets overwritten when the other
8481 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8482 compiler_DEFAULT=$CC
8484 # save warnings/boilerplate of simple test code
8485 ac_outfile=conftest.$ac_objext
8486 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8487 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8488 _lt_compiler_boilerplate=`cat conftest.err`
8489 $RM conftest*
8491 ac_outfile=conftest.$ac_objext
8492 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8493 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8494 _lt_linker_boilerplate=`cat conftest.err`
8495 $RM -r conftest*
8498 ## CAVEAT EMPTOR:
8499 ## There is no encapsulation within the following macros, do not change
8500 ## the running order or otherwise move them around unless you know exactly
8501 ## what you are doing...
8502 if test -n "$compiler"; then
8504 lt_prog_compiler_no_builtin_flag=
8506 if test "$GCC" = yes; then
8507 case $cc_basename in
8508 nvcc*)
8509 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8511 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8512 esac
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8515 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8516 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8517 $as_echo_n "(cached) " >&6
8518 else
8519 lt_cv_prog_compiler_rtti_exceptions=no
8520 ac_outfile=conftest.$ac_objext
8521 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8522 lt_compiler_flag="-fno-rtti -fno-exceptions"
8523 # Insert the option either (1) after the last *FLAGS variable, or
8524 # (2) before a word containing "conftest.", or (3) at the end.
8525 # Note that $ac_compile itself does not contain backslashes and begins
8526 # with a dollar sign (not a hyphen), so the echo should work correctly.
8527 # The option is referenced via a variable to avoid confusing sed.
8528 lt_compile=`echo "$ac_compile" | $SED \
8529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8531 -e 's:$: $lt_compiler_flag:'`
8532 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8533 (eval "$lt_compile" 2>conftest.err)
8534 ac_status=$?
8535 cat conftest.err >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 if (exit $ac_status) && test -s "$ac_outfile"; then
8538 # The compiler can only warn and ignore the option if not recognized
8539 # So say no if there are warnings other than the usual output.
8540 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8541 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8542 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8543 lt_cv_prog_compiler_rtti_exceptions=yes
8546 $RM conftest*
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8550 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8552 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8553 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8554 else
8565 lt_prog_compiler_wl=
8566 lt_prog_compiler_pic=
8567 lt_prog_compiler_static=
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8570 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8572 if test "$GCC" = yes; then
8573 lt_prog_compiler_wl='-Wl,'
8574 lt_prog_compiler_static='-static'
8576 case $host_os in
8577 aix*)
8578 # All AIX code is PIC.
8579 if test "$host_cpu" = ia64; then
8580 # AIX 5 now supports IA64 processor
8581 lt_prog_compiler_static='-Bstatic'
8583 lt_prog_compiler_pic='-fPIC'
8586 amigaos*)
8587 case $host_cpu in
8588 powerpc)
8589 # see comment about AmigaOS4 .so support
8590 lt_prog_compiler_pic='-fPIC'
8592 m68k)
8593 # FIXME: we need at least 68020 code to build shared libraries, but
8594 # adding the `-m68020' flag to GCC prevents building anything better,
8595 # like `-m68040'.
8596 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8598 esac
8601 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8602 # PIC is the default for these OSes.
8605 mingw* | cygwin* | pw32* | os2* | cegcc*)
8606 # This hack is so that the source file can tell whether it is being
8607 # built for inclusion in a dll (and should export symbols for example).
8608 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8609 # (--disable-auto-import) libraries
8610 lt_prog_compiler_pic='-DDLL_EXPORT'
8613 darwin* | rhapsody*)
8614 # PIC is the default on this platform
8615 # Common symbols not allowed in MH_DYLIB files
8616 lt_prog_compiler_pic='-fno-common'
8619 haiku*)
8620 # PIC is the default for Haiku.
8621 # The "-static" flag exists, but is broken.
8622 lt_prog_compiler_static=
8625 hpux*)
8626 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8627 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8628 # sets the default TLS model and affects inlining.
8629 case $host_cpu in
8630 hppa*64*)
8631 # +Z the default
8634 lt_prog_compiler_pic='-fPIC'
8636 esac
8639 interix[3-9]*)
8640 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8641 # Instead, we relocate shared libraries at runtime.
8644 msdosdjgpp*)
8645 # Just because we use GCC doesn't mean we suddenly get shared libraries
8646 # on systems that don't support them.
8647 lt_prog_compiler_can_build_shared=no
8648 enable_shared=no
8651 *nto* | *qnx*)
8652 # QNX uses GNU C++, but need to define -shared option too, otherwise
8653 # it will coredump.
8654 lt_prog_compiler_pic='-fPIC -shared'
8657 sysv4*MP*)
8658 if test -d /usr/nec; then
8659 lt_prog_compiler_pic=-Kconform_pic
8664 lt_prog_compiler_pic='-fPIC'
8666 esac
8668 case $cc_basename in
8669 nvcc*) # Cuda Compiler Driver 2.2
8670 lt_prog_compiler_wl='-Xlinker '
8671 lt_prog_compiler_pic='-Xcompiler -fPIC'
8673 esac
8674 else
8675 # PORTME Check for flag to pass linker flags through the system compiler.
8676 case $host_os in
8677 aix*)
8678 lt_prog_compiler_wl='-Wl,'
8679 if test "$host_cpu" = ia64; then
8680 # AIX 5 now supports IA64 processor
8681 lt_prog_compiler_static='-Bstatic'
8682 else
8683 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8687 mingw* | cygwin* | pw32* | os2* | cegcc*)
8688 # This hack is so that the source file can tell whether it is being
8689 # built for inclusion in a dll (and should export symbols for example).
8690 lt_prog_compiler_pic='-DDLL_EXPORT'
8693 hpux9* | hpux10* | hpux11*)
8694 lt_prog_compiler_wl='-Wl,'
8695 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8696 # not for PA HP-UX.
8697 case $host_cpu in
8698 hppa*64*|ia64*)
8699 # +Z the default
8702 lt_prog_compiler_pic='+Z'
8704 esac
8705 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8706 lt_prog_compiler_static='${wl}-a ${wl}archive'
8709 irix5* | irix6* | nonstopux*)
8710 lt_prog_compiler_wl='-Wl,'
8711 # PIC (with -KPIC) is the default.
8712 lt_prog_compiler_static='-non_shared'
8715 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8716 case $cc_basename in
8717 # old Intel for x86_64 which still supported -KPIC.
8718 ecc*)
8719 lt_prog_compiler_wl='-Wl,'
8720 lt_prog_compiler_pic='-KPIC'
8721 lt_prog_compiler_static='-static'
8723 # icc used to be incompatible with GCC.
8724 # ICC 10 doesn't accept -KPIC any more.
8725 icc* | ifort*)
8726 lt_prog_compiler_wl='-Wl,'
8727 lt_prog_compiler_pic='-fPIC'
8728 lt_prog_compiler_static='-static'
8730 # Lahey Fortran 8.1.
8731 lf95*)
8732 lt_prog_compiler_wl='-Wl,'
8733 lt_prog_compiler_pic='--shared'
8734 lt_prog_compiler_static='--static'
8736 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8737 # Portland Group compilers (*not* the Pentium gcc compiler,
8738 # which looks to be a dead project)
8739 lt_prog_compiler_wl='-Wl,'
8740 lt_prog_compiler_pic='-fpic'
8741 lt_prog_compiler_static='-Bstatic'
8743 ccc*)
8744 lt_prog_compiler_wl='-Wl,'
8745 # All Alpha code is PIC.
8746 lt_prog_compiler_static='-non_shared'
8748 xl* | bgxl* | bgf* | mpixl*)
8749 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8750 lt_prog_compiler_wl='-Wl,'
8751 lt_prog_compiler_pic='-qpic'
8752 lt_prog_compiler_static='-qstaticlink'
8755 case `$CC -V 2>&1 | sed 5q` in
8756 *Sun\ F* | *Sun*Fortran*)
8757 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8758 lt_prog_compiler_pic='-KPIC'
8759 lt_prog_compiler_static='-Bstatic'
8760 lt_prog_compiler_wl=''
8762 *Sun\ C*)
8763 # Sun C 5.9
8764 lt_prog_compiler_pic='-KPIC'
8765 lt_prog_compiler_static='-Bstatic'
8766 lt_prog_compiler_wl='-Wl,'
8768 esac
8770 esac
8773 newsos6)
8774 lt_prog_compiler_pic='-KPIC'
8775 lt_prog_compiler_static='-Bstatic'
8778 *nto* | *qnx*)
8779 # QNX uses GNU C++, but need to define -shared option too, otherwise
8780 # it will coredump.
8781 lt_prog_compiler_pic='-fPIC -shared'
8784 osf3* | osf4* | osf5*)
8785 lt_prog_compiler_wl='-Wl,'
8786 # All OSF/1 code is PIC.
8787 lt_prog_compiler_static='-non_shared'
8790 rdos*)
8791 lt_prog_compiler_static='-non_shared'
8794 solaris*)
8795 lt_prog_compiler_pic='-KPIC'
8796 lt_prog_compiler_static='-Bstatic'
8797 case $cc_basename in
8798 f77* | f90* | f95*)
8799 lt_prog_compiler_wl='-Qoption ld ';;
8801 lt_prog_compiler_wl='-Wl,';;
8802 esac
8805 sunos4*)
8806 lt_prog_compiler_wl='-Qoption ld '
8807 lt_prog_compiler_pic='-PIC'
8808 lt_prog_compiler_static='-Bstatic'
8811 sysv4 | sysv4.2uw2* | sysv4.3*)
8812 lt_prog_compiler_wl='-Wl,'
8813 lt_prog_compiler_pic='-KPIC'
8814 lt_prog_compiler_static='-Bstatic'
8817 sysv4*MP*)
8818 if test -d /usr/nec ;then
8819 lt_prog_compiler_pic='-Kconform_pic'
8820 lt_prog_compiler_static='-Bstatic'
8824 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8825 lt_prog_compiler_wl='-Wl,'
8826 lt_prog_compiler_pic='-KPIC'
8827 lt_prog_compiler_static='-Bstatic'
8830 unicos*)
8831 lt_prog_compiler_wl='-Wl,'
8832 lt_prog_compiler_can_build_shared=no
8835 uts4*)
8836 lt_prog_compiler_pic='-pic'
8837 lt_prog_compiler_static='-Bstatic'
8841 lt_prog_compiler_can_build_shared=no
8843 esac
8846 case $host_os in
8847 # For platforms which do not support PIC, -DPIC is meaningless:
8848 *djgpp*)
8849 lt_prog_compiler_pic=
8852 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8854 esac
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8856 $as_echo "$lt_prog_compiler_pic" >&6; }
8864 # Check to make sure the PIC flag actually works.
8866 if test -n "$lt_prog_compiler_pic"; then
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8868 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8869 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8870 $as_echo_n "(cached) " >&6
8871 else
8872 lt_cv_prog_compiler_pic_works=no
8873 ac_outfile=conftest.$ac_objext
8874 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8875 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8876 # Insert the option either (1) after the last *FLAGS variable, or
8877 # (2) before a word containing "conftest.", or (3) at the end.
8878 # Note that $ac_compile itself does not contain backslashes and begins
8879 # with a dollar sign (not a hyphen), so the echo should work correctly.
8880 # The option is referenced via a variable to avoid confusing sed.
8881 lt_compile=`echo "$ac_compile" | $SED \
8882 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8883 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8884 -e 's:$: $lt_compiler_flag:'`
8885 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8886 (eval "$lt_compile" 2>conftest.err)
8887 ac_status=$?
8888 cat conftest.err >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 if (exit $ac_status) && test -s "$ac_outfile"; then
8891 # The compiler can only warn and ignore the option if not recognized
8892 # So say no if there are warnings other than the usual output.
8893 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8894 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8895 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8896 lt_cv_prog_compiler_pic_works=yes
8899 $RM conftest*
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8903 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8905 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8906 case $lt_prog_compiler_pic in
8907 "" | " "*) ;;
8908 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8909 esac
8910 else
8911 lt_prog_compiler_pic=
8912 lt_prog_compiler_can_build_shared=no
8923 # Check to make sure the static flag actually works.
8925 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8927 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8928 if ${lt_cv_prog_compiler_static_works+:} false; then :
8929 $as_echo_n "(cached) " >&6
8930 else
8931 lt_cv_prog_compiler_static_works=no
8932 save_LDFLAGS="$LDFLAGS"
8933 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8934 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8935 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8936 # The linker can only warn and ignore the option if not recognized
8937 # So say no if there are warnings
8938 if test -s conftest.err; then
8939 # Append any errors to the config.log.
8940 cat conftest.err 1>&5
8941 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8942 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8943 if diff conftest.exp conftest.er2 >/dev/null; then
8944 lt_cv_prog_compiler_static_works=yes
8946 else
8947 lt_cv_prog_compiler_static_works=yes
8950 $RM -r conftest*
8951 LDFLAGS="$save_LDFLAGS"
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8955 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8957 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8959 else
8960 lt_prog_compiler_static=
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8970 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8971 if ${lt_cv_prog_compiler_c_o+:} false; then :
8972 $as_echo_n "(cached) " >&6
8973 else
8974 lt_cv_prog_compiler_c_o=no
8975 $RM -r conftest 2>/dev/null
8976 mkdir conftest
8977 cd conftest
8978 mkdir out
8979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8981 lt_compiler_flag="-o out/conftest2.$ac_objext"
8982 # Insert the option either (1) after the last *FLAGS variable, or
8983 # (2) before a word containing "conftest.", or (3) at the end.
8984 # Note that $ac_compile itself does not contain backslashes and begins
8985 # with a dollar sign (not a hyphen), so the echo should work correctly.
8986 lt_compile=`echo "$ac_compile" | $SED \
8987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8989 -e 's:$: $lt_compiler_flag:'`
8990 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8991 (eval "$lt_compile" 2>out/conftest.err)
8992 ac_status=$?
8993 cat out/conftest.err >&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8996 then
8997 # The compiler can only warn and ignore the option if not recognized
8998 # So say no if there are warnings
8999 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9000 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9001 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9002 lt_cv_prog_compiler_c_o=yes
9005 chmod u+w . 2>&5
9006 $RM conftest*
9007 # SGI C++ compiler will create directory out/ii_files/ for
9008 # template instantiation
9009 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9010 $RM out/* && rmdir out
9011 cd ..
9012 $RM -r conftest
9013 $RM conftest*
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9017 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9025 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9026 if ${lt_cv_prog_compiler_c_o+:} false; then :
9027 $as_echo_n "(cached) " >&6
9028 else
9029 lt_cv_prog_compiler_c_o=no
9030 $RM -r conftest 2>/dev/null
9031 mkdir conftest
9032 cd conftest
9033 mkdir out
9034 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9036 lt_compiler_flag="-o out/conftest2.$ac_objext"
9037 # Insert the option either (1) after the last *FLAGS variable, or
9038 # (2) before a word containing "conftest.", or (3) at the end.
9039 # Note that $ac_compile itself does not contain backslashes and begins
9040 # with a dollar sign (not a hyphen), so the echo should work correctly.
9041 lt_compile=`echo "$ac_compile" | $SED \
9042 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9043 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9044 -e 's:$: $lt_compiler_flag:'`
9045 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9046 (eval "$lt_compile" 2>out/conftest.err)
9047 ac_status=$?
9048 cat out/conftest.err >&5
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9051 then
9052 # The compiler can only warn and ignore the option if not recognized
9053 # So say no if there are warnings
9054 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9055 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9056 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9057 lt_cv_prog_compiler_c_o=yes
9060 chmod u+w . 2>&5
9061 $RM conftest*
9062 # SGI C++ compiler will create directory out/ii_files/ for
9063 # template instantiation
9064 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9065 $RM out/* && rmdir out
9066 cd ..
9067 $RM -r conftest
9068 $RM conftest*
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9072 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9077 hard_links="nottested"
9078 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9079 # do not overwrite the value of need_locks provided by the user
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9081 $as_echo_n "checking if we can lock with hard links... " >&6; }
9082 hard_links=yes
9083 $RM conftest*
9084 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9085 touch conftest.a
9086 ln conftest.a conftest.b 2>&5 || hard_links=no
9087 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9089 $as_echo "$hard_links" >&6; }
9090 if test "$hard_links" = no; then
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9092 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9093 need_locks=warn
9095 else
9096 need_locks=no
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9105 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9107 runpath_var=
9108 allow_undefined_flag=
9109 always_export_symbols=no
9110 archive_cmds=
9111 archive_expsym_cmds=
9112 compiler_needs_object=no
9113 enable_shared_with_static_runtimes=no
9114 export_dynamic_flag_spec=
9115 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9116 hardcode_automatic=no
9117 hardcode_direct=no
9118 hardcode_direct_absolute=no
9119 hardcode_libdir_flag_spec=
9120 hardcode_libdir_flag_spec_ld=
9121 hardcode_libdir_separator=
9122 hardcode_minus_L=no
9123 hardcode_shlibpath_var=unsupported
9124 inherit_rpath=no
9125 link_all_deplibs=unknown
9126 module_cmds=
9127 module_expsym_cmds=
9128 old_archive_from_new_cmds=
9129 old_archive_from_expsyms_cmds=
9130 thread_safe_flag_spec=
9131 whole_archive_flag_spec=
9132 # include_expsyms should be a list of space-separated symbols to be *always*
9133 # included in the symbol list
9134 include_expsyms=
9135 # exclude_expsyms can be an extended regexp of symbols to exclude
9136 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9137 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9138 # as well as any symbol that contains `d'.
9139 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9140 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9141 # platforms (ab)use it in PIC code, but their linkers get confused if
9142 # the symbol is explicitly referenced. Since portable code cannot
9143 # rely on this symbol name, it's probably fine to never include it in
9144 # preloaded symbol tables.
9145 # Exclude shared library initialization/finalization symbols.
9146 extract_expsyms_cmds=
9148 case $host_os in
9149 cygwin* | mingw* | pw32* | cegcc*)
9150 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9151 # When not using gcc, we currently assume that we are using
9152 # Microsoft Visual C++.
9153 if test "$GCC" != yes; then
9154 with_gnu_ld=no
9157 interix*)
9158 # we just hope/assume this is gcc and not c89 (= MSVC++)
9159 with_gnu_ld=yes
9161 openbsd*)
9162 with_gnu_ld=no
9164 esac
9166 ld_shlibs=yes
9168 # On some targets, GNU ld is compatible enough with the native linker
9169 # that we're better off using the native interface for both.
9170 lt_use_gnu_ld_interface=no
9171 if test "$with_gnu_ld" = yes; then
9172 case $host_os in
9173 aix*)
9174 # The AIX port of GNU ld has always aspired to compatibility
9175 # with the native linker. However, as the warning in the GNU ld
9176 # block says, versions before 2.19.5* couldn't really create working
9177 # shared libraries, regardless of the interface used.
9178 case `$LD -v 2>&1` in
9179 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9180 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9181 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9183 lt_use_gnu_ld_interface=yes
9185 esac
9188 lt_use_gnu_ld_interface=yes
9190 esac
9193 if test "$lt_use_gnu_ld_interface" = yes; then
9194 # If archive_cmds runs LD, not CC, wlarc should be empty
9195 wlarc='${wl}'
9197 # Set some defaults for GNU ld with shared library support. These
9198 # are reset later if shared libraries are not supported. Putting them
9199 # here allows them to be overridden if necessary.
9200 runpath_var=LD_RUN_PATH
9201 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9202 export_dynamic_flag_spec='${wl}--export-dynamic'
9203 # ancient GNU ld didn't support --whole-archive et. al.
9204 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9205 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9206 else
9207 whole_archive_flag_spec=
9209 supports_anon_versioning=no
9210 case `$LD -v 2>&1` in
9211 *GNU\ gold*) supports_anon_versioning=yes ;;
9212 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9213 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9214 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9215 *\ 2.11.*) ;; # other 2.11 versions
9216 *) supports_anon_versioning=yes ;;
9217 esac
9219 # See if GNU ld supports shared libraries.
9220 case $host_os in
9221 aix[3-9]*)
9222 # On AIX/PPC, the GNU linker is very broken
9223 if test "$host_cpu" != ia64; then
9224 ld_shlibs=no
9225 cat <<_LT_EOF 1>&2
9227 *** Warning: the GNU linker, at least up to release 2.19, is reported
9228 *** to be unable to reliably create shared libraries on AIX.
9229 *** Therefore, libtool is disabling shared libraries support. If you
9230 *** really care for shared libraries, you may want to install binutils
9231 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9232 *** You will then need to restart the configuration process.
9234 _LT_EOF
9238 amigaos*)
9239 case $host_cpu in
9240 powerpc)
9241 # see comment about AmigaOS4 .so support
9242 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9243 archive_expsym_cmds=''
9245 m68k)
9246 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)'
9247 hardcode_libdir_flag_spec='-L$libdir'
9248 hardcode_minus_L=yes
9250 esac
9253 beos*)
9254 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9255 allow_undefined_flag=unsupported
9256 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9257 # support --undefined. This deserves some investigation. FIXME
9258 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9259 else
9260 ld_shlibs=no
9264 cygwin* | mingw* | pw32* | cegcc*)
9265 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9266 # as there is no search path for DLLs.
9267 hardcode_libdir_flag_spec='-L$libdir'
9268 export_dynamic_flag_spec='${wl}--export-all-symbols'
9269 allow_undefined_flag=unsupported
9270 always_export_symbols=no
9271 enable_shared_with_static_runtimes=yes
9272 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9274 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9275 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9276 # If the export-symbols file already is a .def file (1st line
9277 # is EXPORTS), use it as is; otherwise, prepend...
9278 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9279 cp $export_symbols $output_objdir/$soname.def;
9280 else
9281 echo EXPORTS > $output_objdir/$soname.def;
9282 cat $export_symbols >> $output_objdir/$soname.def;
9284 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9285 else
9286 ld_shlibs=no
9290 haiku*)
9291 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9292 link_all_deplibs=yes
9295 interix[3-9]*)
9296 hardcode_direct=no
9297 hardcode_shlibpath_var=no
9298 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9299 export_dynamic_flag_spec='${wl}-E'
9300 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9301 # Instead, shared libraries are loaded at an image base (0x10000000 by
9302 # default) and relocated if they conflict, which is a slow very memory
9303 # consuming and fragmenting process. To avoid this, we pick a random,
9304 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9305 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9306 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9307 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'
9310 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9311 tmp_diet=no
9312 if test "$host_os" = linux-dietlibc; then
9313 case $cc_basename in
9314 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9315 esac
9317 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9318 && test "$tmp_diet" = no
9319 then
9320 tmp_addflag=' $pic_flag'
9321 tmp_sharedflag='-shared'
9322 case $cc_basename,$host_cpu in
9323 pgcc*) # Portland Group C compiler
9324 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'
9325 tmp_addflag=' $pic_flag'
9327 pgf77* | pgf90* | pgf95* | pgfortran*)
9328 # Portland Group f77 and f90 compilers
9329 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'
9330 tmp_addflag=' $pic_flag -Mnomain' ;;
9331 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9332 tmp_addflag=' -i_dynamic' ;;
9333 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9334 tmp_addflag=' -i_dynamic -nofor_main' ;;
9335 ifc* | ifort*) # Intel Fortran compiler
9336 tmp_addflag=' -nofor_main' ;;
9337 lf95*) # Lahey Fortran 8.1
9338 whole_archive_flag_spec=
9339 tmp_sharedflag='--shared' ;;
9340 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9341 tmp_sharedflag='-qmkshrobj'
9342 tmp_addflag= ;;
9343 nvcc*) # Cuda Compiler Driver 2.2
9344 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'
9345 compiler_needs_object=yes
9347 esac
9348 case `$CC -V 2>&1 | sed 5q` in
9349 *Sun\ C*) # Sun C 5.9
9350 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'
9351 compiler_needs_object=yes
9352 tmp_sharedflag='-G' ;;
9353 *Sun\ F*) # Sun Fortran 8.3
9354 tmp_sharedflag='-G' ;;
9355 esac
9356 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9358 if test "x$supports_anon_versioning" = xyes; then
9359 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9360 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9361 echo "local: *; };" >> $output_objdir/$libname.ver~
9362 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9365 case $cc_basename in
9366 xlf* | bgf* | bgxlf* | mpixlf*)
9367 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9368 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9369 hardcode_libdir_flag_spec=
9370 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9371 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9372 if test "x$supports_anon_versioning" = xyes; then
9373 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9374 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9375 echo "local: *; };" >> $output_objdir/$libname.ver~
9376 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9379 esac
9380 else
9381 ld_shlibs=no
9385 netbsd*)
9386 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9387 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9388 wlarc=
9389 else
9390 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9391 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9395 solaris*)
9396 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9397 ld_shlibs=no
9398 cat <<_LT_EOF 1>&2
9400 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9401 *** create shared libraries on Solaris systems. Therefore, libtool
9402 *** is disabling shared libraries support. We urge you to upgrade GNU
9403 *** binutils to release 2.9.1 or newer. Another option is to modify
9404 *** your PATH or compiler configuration so that the native linker is
9405 *** used, and then restart.
9407 _LT_EOF
9408 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9410 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9411 else
9412 ld_shlibs=no
9416 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9417 case `$LD -v 2>&1` in
9418 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9419 ld_shlibs=no
9420 cat <<_LT_EOF 1>&2
9422 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9423 *** reliably create shared libraries on SCO systems. Therefore, libtool
9424 *** is disabling shared libraries support. We urge you to upgrade GNU
9425 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9426 *** your PATH or compiler configuration so that the native linker is
9427 *** used, and then restart.
9429 _LT_EOF
9432 # For security reasons, it is highly recommended that you always
9433 # use absolute paths for naming shared libraries, and exclude the
9434 # DT_RUNPATH tag from executables and libraries. But doing so
9435 # requires that you compile everything twice, which is a pain.
9436 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9437 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9438 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9439 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9440 else
9441 ld_shlibs=no
9444 esac
9447 sunos4*)
9448 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9449 wlarc=
9450 hardcode_direct=yes
9451 hardcode_shlibpath_var=no
9455 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9456 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9457 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9458 else
9459 ld_shlibs=no
9462 esac
9464 if test "$ld_shlibs" = no; then
9465 runpath_var=
9466 hardcode_libdir_flag_spec=
9467 export_dynamic_flag_spec=
9468 whole_archive_flag_spec=
9470 else
9471 # PORTME fill in a description of your system's linker (not GNU ld)
9472 case $host_os in
9473 aix3*)
9474 allow_undefined_flag=unsupported
9475 always_export_symbols=yes
9476 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'
9477 # Note: this linker hardcodes the directories in LIBPATH if there
9478 # are no directories specified by -L.
9479 hardcode_minus_L=yes
9480 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9481 # Neither direct hardcoding nor static linking is supported with a
9482 # broken collect2.
9483 hardcode_direct=unsupported
9487 aix[4-9]*)
9488 if test "$host_cpu" = ia64; then
9489 # On IA64, the linker does run time linking by default, so we don't
9490 # have to do anything special.
9491 aix_use_runtimelinking=no
9492 exp_sym_flag='-Bexport'
9493 no_entry_flag=""
9494 else
9495 # If we're using GNU nm, then we don't want the "-C" option.
9496 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9497 # Also, AIX nm treats weak defined symbols like other global
9498 # defined symbols, whereas GNU nm marks them as "W".
9499 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9500 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'
9501 else
9502 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'
9504 aix_use_runtimelinking=no
9506 # Test if we are trying to use run time linking or normal
9507 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9508 # need to do runtime linking.
9509 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9510 for ld_flag in $LDFLAGS; do
9511 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9512 aix_use_runtimelinking=yes
9513 break
9515 done
9517 esac
9519 exp_sym_flag='-bexport'
9520 no_entry_flag='-bnoentry'
9523 # When large executables or shared objects are built, AIX ld can
9524 # have problems creating the table of contents. If linking a library
9525 # or program results in "error TOC overflow" add -mminimal-toc to
9526 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9527 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9529 archive_cmds=''
9530 hardcode_direct=yes
9531 hardcode_direct_absolute=yes
9532 hardcode_libdir_separator=':'
9533 link_all_deplibs=yes
9534 file_list_spec='${wl}-f,'
9536 if test "$GCC" = yes; then
9537 case $host_os in aix4.[012]|aix4.[012].*)
9538 # We only want to do this on AIX 4.2 and lower, the check
9539 # below for broken collect2 doesn't work under 4.3+
9540 collect2name=`${CC} -print-prog-name=collect2`
9541 if test -f "$collect2name" &&
9542 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9543 then
9544 # We have reworked collect2
9546 else
9547 # We have old collect2
9548 hardcode_direct=unsupported
9549 # It fails to find uninstalled libraries when the uninstalled
9550 # path is not listed in the libpath. Setting hardcode_minus_L
9551 # to unsupported forces relinking
9552 hardcode_minus_L=yes
9553 hardcode_libdir_flag_spec='-L$libdir'
9554 hardcode_libdir_separator=
9557 esac
9558 shared_flag='-shared'
9559 if test "$aix_use_runtimelinking" = yes; then
9560 shared_flag="$shared_flag "'${wl}-G'
9562 else
9563 # not using gcc
9564 if test "$host_cpu" = ia64; then
9565 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9566 # chokes on -Wl,-G. The following line is correct:
9567 shared_flag='-G'
9568 else
9569 if test "$aix_use_runtimelinking" = yes; then
9570 shared_flag='${wl}-G'
9571 else
9572 shared_flag='${wl}-bM:SRE'
9577 export_dynamic_flag_spec='${wl}-bexpall'
9578 # It seems that -bexpall does not export symbols beginning with
9579 # underscore (_), so it is better to generate a list of symbols to export.
9580 always_export_symbols=yes
9581 if test "$aix_use_runtimelinking" = yes; then
9582 # Warning - without using the other runtime loading flags (-brtl),
9583 # -berok will link without error, but may produce a broken library.
9584 allow_undefined_flag='-berok'
9585 # Determine the default libpath from the value encoded in an
9586 # empty executable.
9587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588 /* end confdefs.h. */
9591 main ()
9595 return 0;
9597 _ACEOF
9598 if ac_fn_c_try_link "$LINENO"; then :
9600 lt_aix_libpath_sed='
9601 /Import File Strings/,/^$/ {
9602 /^0/ {
9603 s/^0 *\(.*\)$/\1/
9607 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9608 # Check for a 64-bit object if we didn't find anything.
9609 if test -z "$aix_libpath"; then
9610 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9613 rm -f core conftest.err conftest.$ac_objext \
9614 conftest$ac_exeext conftest.$ac_ext
9615 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9617 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9618 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"
9619 else
9620 if test "$host_cpu" = ia64; then
9621 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9622 allow_undefined_flag="-z nodefs"
9623 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"
9624 else
9625 # Determine the default libpath from the value encoded in an
9626 # empty executable.
9627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9628 /* end confdefs.h. */
9631 main ()
9635 return 0;
9637 _ACEOF
9638 if ac_fn_c_try_link "$LINENO"; then :
9640 lt_aix_libpath_sed='
9641 /Import File Strings/,/^$/ {
9642 /^0/ {
9643 s/^0 *\(.*\)$/\1/
9647 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9648 # Check for a 64-bit object if we didn't find anything.
9649 if test -z "$aix_libpath"; then
9650 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9653 rm -f core conftest.err conftest.$ac_objext \
9654 conftest$ac_exeext conftest.$ac_ext
9655 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9657 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9658 # Warning - without using the other run time loading flags,
9659 # -berok will link without error, but may produce a broken library.
9660 no_undefined_flag=' ${wl}-bernotok'
9661 allow_undefined_flag=' ${wl}-berok'
9662 if test "$with_gnu_ld" = yes; then
9663 # We only use this code for GNU lds that support --whole-archive.
9664 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9665 else
9666 # Exported symbols can be pulled into shared objects from archives
9667 whole_archive_flag_spec='$convenience'
9669 archive_cmds_need_lc=yes
9670 # This is similar to how AIX traditionally builds its shared libraries.
9671 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'
9676 amigaos*)
9677 case $host_cpu in
9678 powerpc)
9679 # see comment about AmigaOS4 .so support
9680 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9681 archive_expsym_cmds=''
9683 m68k)
9684 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)'
9685 hardcode_libdir_flag_spec='-L$libdir'
9686 hardcode_minus_L=yes
9688 esac
9691 bsdi[45]*)
9692 export_dynamic_flag_spec=-rdynamic
9695 cygwin* | mingw* | pw32* | cegcc*)
9696 # When not using gcc, we currently assume that we are using
9697 # Microsoft Visual C++.
9698 # hardcode_libdir_flag_spec is actually meaningless, as there is
9699 # no search path for DLLs.
9700 hardcode_libdir_flag_spec=' '
9701 allow_undefined_flag=unsupported
9702 # Tell ltmain to make .lib files, not .a files.
9703 libext=lib
9704 # Tell ltmain to make .dll files, not .so files.
9705 shrext_cmds=".dll"
9706 # FIXME: Setting linknames here is a bad hack.
9707 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9708 # The linker will automatically build a .lib file if we build a DLL.
9709 old_archive_from_new_cmds='true'
9710 # FIXME: Should let the user specify the lib program.
9711 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9712 fix_srcfile_path='`cygpath -w "$srcfile"`'
9713 enable_shared_with_static_runtimes=yes
9716 darwin* | rhapsody*)
9719 archive_cmds_need_lc=no
9720 hardcode_direct=no
9721 hardcode_automatic=yes
9722 hardcode_shlibpath_var=unsupported
9723 if test "$lt_cv_ld_force_load" = "yes"; then
9724 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\"`'
9725 else
9726 whole_archive_flag_spec=''
9728 link_all_deplibs=yes
9729 allow_undefined_flag="$_lt_dar_allow_undefined"
9730 case $cc_basename in
9731 ifort*) _lt_dar_can_shared=yes ;;
9732 *) _lt_dar_can_shared=$GCC ;;
9733 esac
9734 if test "$_lt_dar_can_shared" = "yes"; then
9735 output_verbose_link_cmd=func_echo_all
9736 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9737 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9738 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}"
9739 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}"
9741 else
9742 ld_shlibs=no
9747 dgux*)
9748 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9749 hardcode_libdir_flag_spec='-L$libdir'
9750 hardcode_shlibpath_var=no
9753 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9754 # support. Future versions do this automatically, but an explicit c++rt0.o
9755 # does not break anything, and helps significantly (at the cost of a little
9756 # extra space).
9757 freebsd2.2*)
9758 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9759 hardcode_libdir_flag_spec='-R$libdir'
9760 hardcode_direct=yes
9761 hardcode_shlibpath_var=no
9764 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9765 freebsd2.*)
9766 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9767 hardcode_direct=yes
9768 hardcode_minus_L=yes
9769 hardcode_shlibpath_var=no
9772 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9773 freebsd* | dragonfly*)
9774 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9775 hardcode_libdir_flag_spec='-R$libdir'
9776 hardcode_direct=yes
9777 hardcode_shlibpath_var=no
9780 hpux9*)
9781 if test "$GCC" = yes; then
9782 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'
9783 else
9784 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'
9786 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9787 hardcode_libdir_separator=:
9788 hardcode_direct=yes
9790 # hardcode_minus_L: Not really in the search PATH,
9791 # but as the default location of the library.
9792 hardcode_minus_L=yes
9793 export_dynamic_flag_spec='${wl}-E'
9796 hpux10*)
9797 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9798 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9799 else
9800 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9802 if test "$with_gnu_ld" = no; then
9803 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9804 hardcode_libdir_flag_spec_ld='+b $libdir'
9805 hardcode_libdir_separator=:
9806 hardcode_direct=yes
9807 hardcode_direct_absolute=yes
9808 export_dynamic_flag_spec='${wl}-E'
9809 # hardcode_minus_L: Not really in the search PATH,
9810 # but as the default location of the library.
9811 hardcode_minus_L=yes
9815 hpux11*)
9816 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9817 case $host_cpu in
9818 hppa*64*)
9819 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9821 ia64*)
9822 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9825 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9827 esac
9828 else
9829 case $host_cpu in
9830 hppa*64*)
9831 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9833 ia64*)
9834 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9838 # Older versions of the 11.00 compiler do not understand -b yet
9839 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9841 $as_echo_n "checking if $CC understands -b... " >&6; }
9842 if ${lt_cv_prog_compiler__b+:} false; then :
9843 $as_echo_n "(cached) " >&6
9844 else
9845 lt_cv_prog_compiler__b=no
9846 save_LDFLAGS="$LDFLAGS"
9847 LDFLAGS="$LDFLAGS -b"
9848 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9849 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9850 # The linker can only warn and ignore the option if not recognized
9851 # So say no if there are warnings
9852 if test -s conftest.err; then
9853 # Append any errors to the config.log.
9854 cat conftest.err 1>&5
9855 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9856 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9857 if diff conftest.exp conftest.er2 >/dev/null; then
9858 lt_cv_prog_compiler__b=yes
9860 else
9861 lt_cv_prog_compiler__b=yes
9864 $RM -r conftest*
9865 LDFLAGS="$save_LDFLAGS"
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9869 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9871 if test x"$lt_cv_prog_compiler__b" = xyes; then
9872 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9873 else
9874 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9878 esac
9880 if test "$with_gnu_ld" = no; then
9881 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9882 hardcode_libdir_separator=:
9884 case $host_cpu in
9885 hppa*64*|ia64*)
9886 hardcode_direct=no
9887 hardcode_shlibpath_var=no
9890 hardcode_direct=yes
9891 hardcode_direct_absolute=yes
9892 export_dynamic_flag_spec='${wl}-E'
9894 # hardcode_minus_L: Not really in the search PATH,
9895 # but as the default location of the library.
9896 hardcode_minus_L=yes
9898 esac
9902 irix5* | irix6* | nonstopux*)
9903 if test "$GCC" = yes; then
9904 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'
9905 # Try to use the -exported_symbol ld option, if it does not
9906 # work, assume that -exports_file does not work either and
9907 # implicitly export all symbols.
9908 save_LDFLAGS="$LDFLAGS"
9909 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9911 /* end confdefs.h. */
9912 int foo(void) {}
9913 _ACEOF
9914 if ac_fn_c_try_link "$LINENO"; then :
9915 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'
9918 rm -f core conftest.err conftest.$ac_objext \
9919 conftest$ac_exeext conftest.$ac_ext
9920 LDFLAGS="$save_LDFLAGS"
9921 else
9922 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'
9923 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'
9925 archive_cmds_need_lc='no'
9926 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9927 hardcode_libdir_separator=:
9928 inherit_rpath=yes
9929 link_all_deplibs=yes
9932 netbsd*)
9933 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9934 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9935 else
9936 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9938 hardcode_libdir_flag_spec='-R$libdir'
9939 hardcode_direct=yes
9940 hardcode_shlibpath_var=no
9943 newsos6)
9944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9945 hardcode_direct=yes
9946 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9947 hardcode_libdir_separator=:
9948 hardcode_shlibpath_var=no
9951 *nto* | *qnx*)
9954 openbsd*)
9955 if test -f /usr/libexec/ld.so; then
9956 hardcode_direct=yes
9957 hardcode_shlibpath_var=no
9958 hardcode_direct_absolute=yes
9959 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9960 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9961 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9962 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9963 export_dynamic_flag_spec='${wl}-E'
9964 else
9965 case $host_os in
9966 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9967 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9968 hardcode_libdir_flag_spec='-R$libdir'
9971 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9972 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9974 esac
9976 else
9977 ld_shlibs=no
9981 os2*)
9982 hardcode_libdir_flag_spec='-L$libdir'
9983 hardcode_minus_L=yes
9984 allow_undefined_flag=unsupported
9985 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'
9986 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9989 osf3*)
9990 if test "$GCC" = yes; then
9991 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9992 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'
9993 else
9994 allow_undefined_flag=' -expect_unresolved \*'
9995 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'
9997 archive_cmds_need_lc='no'
9998 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9999 hardcode_libdir_separator=:
10002 osf4* | osf5*) # as osf3* with the addition of -msym flag
10003 if test "$GCC" = yes; then
10004 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10005 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'
10006 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10007 else
10008 allow_undefined_flag=' -expect_unresolved \*'
10009 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'
10010 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~
10011 $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'
10013 # Both c and cxx compiler support -rpath directly
10014 hardcode_libdir_flag_spec='-rpath $libdir'
10016 archive_cmds_need_lc='no'
10017 hardcode_libdir_separator=:
10020 solaris*)
10021 no_undefined_flag=' -z defs'
10022 if test "$GCC" = yes; then
10023 wlarc='${wl}'
10024 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10025 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10026 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10027 else
10028 case `$CC -V 2>&1` in
10029 *"Compilers 5.0"*)
10030 wlarc=''
10031 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10032 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10033 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10036 wlarc='${wl}'
10037 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10038 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10039 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10041 esac
10043 hardcode_libdir_flag_spec='-R$libdir'
10044 hardcode_shlibpath_var=no
10045 case $host_os in
10046 solaris2.[0-5] | solaris2.[0-5].*) ;;
10048 # The compiler driver will combine and reorder linker options,
10049 # but understands `-z linker_flag'. GCC discards it without `$wl',
10050 # but is careful enough not to reorder.
10051 # Supported since Solaris 2.6 (maybe 2.5.1?)
10052 if test "$GCC" = yes; then
10053 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10054 else
10055 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10058 esac
10059 link_all_deplibs=yes
10062 sunos4*)
10063 if test "x$host_vendor" = xsequent; then
10064 # Use $CC to link under sequent, because it throws in some extra .o
10065 # files that make .init and .fini sections work.
10066 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10067 else
10068 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10070 hardcode_libdir_flag_spec='-L$libdir'
10071 hardcode_direct=yes
10072 hardcode_minus_L=yes
10073 hardcode_shlibpath_var=no
10076 sysv4)
10077 case $host_vendor in
10078 sni)
10079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10080 hardcode_direct=yes # is this really true???
10082 siemens)
10083 ## LD is ld it makes a PLAMLIB
10084 ## CC just makes a GrossModule.
10085 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10086 reload_cmds='$CC -r -o $output$reload_objs'
10087 hardcode_direct=no
10089 motorola)
10090 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10091 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10093 esac
10094 runpath_var='LD_RUN_PATH'
10095 hardcode_shlibpath_var=no
10098 sysv4.3*)
10099 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10100 hardcode_shlibpath_var=no
10101 export_dynamic_flag_spec='-Bexport'
10104 sysv4*MP*)
10105 if test -d /usr/nec; then
10106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10107 hardcode_shlibpath_var=no
10108 runpath_var=LD_RUN_PATH
10109 hardcode_runpath_var=yes
10110 ld_shlibs=yes
10114 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10115 no_undefined_flag='${wl}-z,text'
10116 archive_cmds_need_lc=no
10117 hardcode_shlibpath_var=no
10118 runpath_var='LD_RUN_PATH'
10120 if test "$GCC" = yes; then
10121 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10122 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10123 else
10124 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10125 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10129 sysv5* | sco3.2v5* | sco5v6*)
10130 # Note: We can NOT use -z defs as we might desire, because we do not
10131 # link with -lc, and that would cause any symbols used from libc to
10132 # always be unresolved, which means just about no library would
10133 # ever link correctly. If we're not using GNU ld we use -z text
10134 # though, which does catch some bad symbols but isn't as heavy-handed
10135 # as -z defs.
10136 no_undefined_flag='${wl}-z,text'
10137 allow_undefined_flag='${wl}-z,nodefs'
10138 archive_cmds_need_lc=no
10139 hardcode_shlibpath_var=no
10140 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10141 hardcode_libdir_separator=':'
10142 link_all_deplibs=yes
10143 export_dynamic_flag_spec='${wl}-Bexport'
10144 runpath_var='LD_RUN_PATH'
10146 if test "$GCC" = yes; then
10147 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10148 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10149 else
10150 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10151 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10155 uts4*)
10156 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10157 hardcode_libdir_flag_spec='-L$libdir'
10158 hardcode_shlibpath_var=no
10162 ld_shlibs=no
10164 esac
10166 if test x$host_vendor = xsni; then
10167 case $host in
10168 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10169 export_dynamic_flag_spec='${wl}-Blargedynsym'
10171 esac
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10176 $as_echo "$ld_shlibs" >&6; }
10177 test "$ld_shlibs" = no && can_build_shared=no
10179 with_gnu_ld=$with_gnu_ld
10196 # Do we need to explicitly link libc?
10198 case "x$archive_cmds_need_lc" in
10199 x|xyes)
10200 # Assume -lc should be added
10201 archive_cmds_need_lc=yes
10203 if test "$enable_shared" = yes && test "$GCC" = yes; then
10204 case $archive_cmds in
10205 *'~'*)
10206 # FIXME: we may have to deal with multi-command sequences.
10208 '$CC '*)
10209 # Test whether the compiler implicitly links with -lc since on some
10210 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10211 # to ld, don't add -lc before -lgcc.
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10213 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10214 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10215 $as_echo_n "(cached) " >&6
10216 else
10217 $RM conftest*
10218 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10220 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10221 (eval $ac_compile) 2>&5
10222 ac_status=$?
10223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10224 test $ac_status = 0; } 2>conftest.err; then
10225 soname=conftest
10226 lib=conftest
10227 libobjs=conftest.$ac_objext
10228 deplibs=
10229 wl=$lt_prog_compiler_wl
10230 pic_flag=$lt_prog_compiler_pic
10231 compiler_flags=-v
10232 linker_flags=-v
10233 verstring=
10234 output_objdir=.
10235 libname=conftest
10236 lt_save_allow_undefined_flag=$allow_undefined_flag
10237 allow_undefined_flag=
10238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10239 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10240 ac_status=$?
10241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10242 test $ac_status = 0; }
10243 then
10244 lt_cv_archive_cmds_need_lc=no
10245 else
10246 lt_cv_archive_cmds_need_lc=yes
10248 allow_undefined_flag=$lt_save_allow_undefined_flag
10249 else
10250 cat conftest.err 1>&5
10252 $RM conftest*
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10256 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10257 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10259 esac
10262 esac
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10421 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10423 if test "$GCC" = yes; then
10424 case $host_os in
10425 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10426 *) lt_awk_arg="/^libraries:/" ;;
10427 esac
10428 case $host_os in
10429 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10430 *) lt_sed_strip_eq="s,=/,/,g" ;;
10431 esac
10432 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10433 case $lt_search_path_spec in
10434 *\;*)
10435 # if the path contains ";" then we assume it to be the separator
10436 # otherwise default to the standard path separator (i.e. ":") - it is
10437 # assumed that no part of a normal pathname contains ";" but that should
10438 # okay in the real world where ";" in dirpaths is itself problematic.
10439 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10442 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10444 esac
10445 # Ok, now we have the path, separated by spaces, we can step through it
10446 # and add multilib dir if necessary.
10447 lt_tmp_lt_search_path_spec=
10448 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10449 for lt_sys_path in $lt_search_path_spec; do
10450 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10451 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10452 else
10453 test -d "$lt_sys_path" && \
10454 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10456 done
10457 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10458 BEGIN {RS=" "; FS="/|\n";} {
10459 lt_foo="";
10460 lt_count=0;
10461 for (lt_i = NF; lt_i > 0; lt_i--) {
10462 if ($lt_i != "" && $lt_i != ".") {
10463 if ($lt_i == "..") {
10464 lt_count++;
10465 } else {
10466 if (lt_count == 0) {
10467 lt_foo="/" $lt_i lt_foo;
10468 } else {
10469 lt_count--;
10474 if (lt_foo != "") { lt_freq[lt_foo]++; }
10475 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10477 # AWK program above erroneously prepends '/' to C:/dos/paths
10478 # for these hosts.
10479 case $host_os in
10480 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10481 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10482 esac
10483 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10484 else
10485 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10487 library_names_spec=
10488 libname_spec='lib$name'
10489 soname_spec=
10490 shrext_cmds=".so"
10491 postinstall_cmds=
10492 postuninstall_cmds=
10493 finish_cmds=
10494 finish_eval=
10495 shlibpath_var=
10496 shlibpath_overrides_runpath=unknown
10497 version_type=none
10498 dynamic_linker="$host_os ld.so"
10499 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10500 need_lib_prefix=unknown
10501 hardcode_into_libs=no
10503 # when you set need_version to no, make sure it does not cause -set_version
10504 # flags to be left without arguments
10505 need_version=unknown
10507 case $host_os in
10508 aix3*)
10509 version_type=linux
10510 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10511 shlibpath_var=LIBPATH
10513 # AIX 3 has no versioning support, so we append a major version to the name.
10514 soname_spec='${libname}${release}${shared_ext}$major'
10517 aix[4-9]*)
10518 version_type=linux
10519 need_lib_prefix=no
10520 need_version=no
10521 hardcode_into_libs=yes
10522 if test "$host_cpu" = ia64; then
10523 # AIX 5 supports IA64
10524 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10525 shlibpath_var=LD_LIBRARY_PATH
10526 else
10527 # With GCC up to 2.95.x, collect2 would create an import file
10528 # for dependence libraries. The import file would start with
10529 # the line `#! .'. This would cause the generated library to
10530 # depend on `.', always an invalid library. This was fixed in
10531 # development snapshots of GCC prior to 3.0.
10532 case $host_os in
10533 aix4 | aix4.[01] | aix4.[01].*)
10534 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10535 echo ' yes '
10536 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10538 else
10539 can_build_shared=no
10542 esac
10543 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10544 # soname into executable. Probably we can add versioning support to
10545 # collect2, so additional links can be useful in future.
10546 if test "$aix_use_runtimelinking" = yes; then
10547 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10548 # instead of lib<name>.a to let people know that these are not
10549 # typical AIX shared libraries.
10550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10551 else
10552 # We preserve .a as extension for shared libraries through AIX4.2
10553 # and later when we are not doing run time linking.
10554 library_names_spec='${libname}${release}.a $libname.a'
10555 soname_spec='${libname}${release}${shared_ext}$major'
10557 shlibpath_var=LIBPATH
10561 amigaos*)
10562 case $host_cpu in
10563 powerpc)
10564 # Since July 2007 AmigaOS4 officially supports .so libraries.
10565 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10568 m68k)
10569 library_names_spec='$libname.ixlibrary $libname.a'
10570 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10571 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'
10573 esac
10576 beos*)
10577 library_names_spec='${libname}${shared_ext}'
10578 dynamic_linker="$host_os ld.so"
10579 shlibpath_var=LIBRARY_PATH
10582 bsdi[45]*)
10583 version_type=linux
10584 need_version=no
10585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10586 soname_spec='${libname}${release}${shared_ext}$major'
10587 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10588 shlibpath_var=LD_LIBRARY_PATH
10589 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10590 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10591 # the default ld.so.conf also contains /usr/contrib/lib and
10592 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10593 # libtool to hard-code these into programs
10596 cygwin* | mingw* | pw32* | cegcc*)
10597 version_type=windows
10598 shrext_cmds=".dll"
10599 need_version=no
10600 need_lib_prefix=no
10602 case $GCC,$host_os in
10603 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10604 library_names_spec='$libname.dll.a'
10605 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10606 postinstall_cmds='base_file=`basename \${file}`~
10607 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10608 dldir=$destdir/`dirname \$dlpath`~
10609 test -d \$dldir || mkdir -p \$dldir~
10610 $install_prog $dir/$dlname \$dldir/$dlname~
10611 chmod a+x \$dldir/$dlname~
10612 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10613 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10615 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10616 dlpath=$dir/\$dldll~
10617 $RM \$dlpath'
10618 shlibpath_overrides_runpath=yes
10620 case $host_os in
10621 cygwin*)
10622 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10623 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10625 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10627 mingw* | cegcc*)
10628 # MinGW DLLs use traditional 'lib' prefix
10629 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10631 pw32*)
10632 # pw32 DLLs use 'pw' prefix rather than 'lib'
10633 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10635 esac
10639 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10641 esac
10642 dynamic_linker='Win32 ld.exe'
10643 # FIXME: first we should search . and the directory the executable is in
10644 shlibpath_var=PATH
10647 darwin* | rhapsody*)
10648 dynamic_linker="$host_os dyld"
10649 version_type=darwin
10650 need_lib_prefix=no
10651 need_version=no
10652 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10653 soname_spec='${libname}${release}${major}$shared_ext'
10654 shlibpath_overrides_runpath=yes
10655 shlibpath_var=DYLD_LIBRARY_PATH
10656 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10658 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10659 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10662 dgux*)
10663 version_type=linux
10664 need_lib_prefix=no
10665 need_version=no
10666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10667 soname_spec='${libname}${release}${shared_ext}$major'
10668 shlibpath_var=LD_LIBRARY_PATH
10671 freebsd* | dragonfly*)
10672 # DragonFly does not have aout. When/if they implement a new
10673 # versioning mechanism, adjust this.
10674 if test -x /usr/bin/objformat; then
10675 objformat=`/usr/bin/objformat`
10676 else
10677 case $host_os in
10678 freebsd[23].*) objformat=aout ;;
10679 *) objformat=elf ;;
10680 esac
10682 version_type=freebsd-$objformat
10683 case $version_type in
10684 freebsd-elf*)
10685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10686 need_version=no
10687 need_lib_prefix=no
10689 freebsd-*)
10690 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10691 need_version=yes
10693 esac
10694 shlibpath_var=LD_LIBRARY_PATH
10695 case $host_os in
10696 freebsd2.*)
10697 shlibpath_overrides_runpath=yes
10699 freebsd3.[01]* | freebsdelf3.[01]*)
10700 shlibpath_overrides_runpath=yes
10701 hardcode_into_libs=yes
10703 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10704 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10705 shlibpath_overrides_runpath=no
10706 hardcode_into_libs=yes
10708 *) # from 4.6 on, and DragonFly
10709 shlibpath_overrides_runpath=yes
10710 hardcode_into_libs=yes
10712 esac
10715 haiku*)
10716 version_type=linux
10717 need_lib_prefix=no
10718 need_version=no
10719 dynamic_linker="$host_os runtime_loader"
10720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10721 soname_spec='${libname}${release}${shared_ext}$major'
10722 shlibpath_var=LIBRARY_PATH
10723 shlibpath_overrides_runpath=yes
10724 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10725 hardcode_into_libs=yes
10728 hpux9* | hpux10* | hpux11*)
10729 # Give a soname corresponding to the major version so that dld.sl refuses to
10730 # link against other versions.
10731 version_type=sunos
10732 need_lib_prefix=no
10733 need_version=no
10734 case $host_cpu in
10735 ia64*)
10736 shrext_cmds='.so'
10737 hardcode_into_libs=yes
10738 dynamic_linker="$host_os dld.so"
10739 shlibpath_var=LD_LIBRARY_PATH
10740 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10742 soname_spec='${libname}${release}${shared_ext}$major'
10743 if test "X$HPUX_IA64_MODE" = X32; then
10744 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10745 else
10746 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10748 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10750 hppa*64*)
10751 shrext_cmds='.sl'
10752 hardcode_into_libs=yes
10753 dynamic_linker="$host_os dld.sl"
10754 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10755 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10757 soname_spec='${libname}${release}${shared_ext}$major'
10758 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10759 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10762 shrext_cmds='.sl'
10763 dynamic_linker="$host_os dld.sl"
10764 shlibpath_var=SHLIB_PATH
10765 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10767 soname_spec='${libname}${release}${shared_ext}$major'
10769 esac
10770 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10771 postinstall_cmds='chmod 555 $lib'
10772 # or fails outright, so override atomically:
10773 install_override_mode=555
10776 interix[3-9]*)
10777 version_type=linux
10778 need_lib_prefix=no
10779 need_version=no
10780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10781 soname_spec='${libname}${release}${shared_ext}$major'
10782 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10783 shlibpath_var=LD_LIBRARY_PATH
10784 shlibpath_overrides_runpath=no
10785 hardcode_into_libs=yes
10788 irix5* | irix6* | nonstopux*)
10789 case $host_os in
10790 nonstopux*) version_type=nonstopux ;;
10792 if test "$lt_cv_prog_gnu_ld" = yes; then
10793 version_type=linux
10794 else
10795 version_type=irix
10796 fi ;;
10797 esac
10798 need_lib_prefix=no
10799 need_version=no
10800 soname_spec='${libname}${release}${shared_ext}$major'
10801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10802 case $host_os in
10803 irix5* | nonstopux*)
10804 libsuff= shlibsuff=
10807 case $LD in # libtool.m4 will add one of these switches to LD
10808 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10809 libsuff= shlibsuff= libmagic=32-bit;;
10810 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10811 libsuff=32 shlibsuff=N32 libmagic=N32;;
10812 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10813 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10814 *) libsuff= shlibsuff= libmagic=never-match;;
10815 esac
10817 esac
10818 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10819 shlibpath_overrides_runpath=no
10820 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10821 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10822 hardcode_into_libs=yes
10825 # No shared lib support for Linux oldld, aout, or coff.
10826 linux*oldld* | linux*aout* | linux*coff*)
10827 dynamic_linker=no
10830 # This must be Linux ELF.
10832 # uclinux* changes (here and below) have been submitted to the libtool
10833 # project, but have not yet been accepted: they are GCC-local changes
10834 # for the time being. (See
10835 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10836 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10837 version_type=linux
10838 need_lib_prefix=no
10839 need_version=no
10840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10841 soname_spec='${libname}${release}${shared_ext}$major'
10842 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10843 shlibpath_var=LD_LIBRARY_PATH
10844 shlibpath_overrides_runpath=no
10846 # Some binutils ld are patched to set DT_RUNPATH
10847 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10848 $as_echo_n "(cached) " >&6
10849 else
10850 lt_cv_shlibpath_overrides_runpath=no
10851 save_LDFLAGS=$LDFLAGS
10852 save_libdir=$libdir
10853 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10854 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10856 /* end confdefs.h. */
10859 main ()
10863 return 0;
10865 _ACEOF
10866 if ac_fn_c_try_link "$LINENO"; then :
10867 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10868 lt_cv_shlibpath_overrides_runpath=yes
10871 rm -f core conftest.err conftest.$ac_objext \
10872 conftest$ac_exeext conftest.$ac_ext
10873 LDFLAGS=$save_LDFLAGS
10874 libdir=$save_libdir
10878 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10880 # This implies no fast_install, which is unacceptable.
10881 # Some rework will be needed to allow for fast_install
10882 # before this can be enabled.
10883 hardcode_into_libs=yes
10885 # Append ld.so.conf contents to the search path
10886 if test -f /etc/ld.so.conf; then
10887 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' ' '`
10888 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10891 # We used to test for /lib/ld.so.1 and disable shared libraries on
10892 # powerpc, because MkLinux only supported shared libraries with the
10893 # GNU dynamic linker. Since this was broken with cross compilers,
10894 # most powerpc-linux boxes support dynamic linking these days and
10895 # people can always --disable-shared, the test was removed, and we
10896 # assume the GNU/Linux dynamic linker is in use.
10897 dynamic_linker='GNU/Linux ld.so'
10900 netbsd*)
10901 version_type=sunos
10902 need_lib_prefix=no
10903 need_version=no
10904 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10906 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10907 dynamic_linker='NetBSD (a.out) ld.so'
10908 else
10909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10910 soname_spec='${libname}${release}${shared_ext}$major'
10911 dynamic_linker='NetBSD ld.elf_so'
10913 shlibpath_var=LD_LIBRARY_PATH
10914 shlibpath_overrides_runpath=yes
10915 hardcode_into_libs=yes
10918 newsos6)
10919 version_type=linux
10920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10921 shlibpath_var=LD_LIBRARY_PATH
10922 shlibpath_overrides_runpath=yes
10925 *nto* | *qnx*)
10926 version_type=qnx
10927 need_lib_prefix=no
10928 need_version=no
10929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10930 soname_spec='${libname}${release}${shared_ext}$major'
10931 shlibpath_var=LD_LIBRARY_PATH
10932 shlibpath_overrides_runpath=no
10933 hardcode_into_libs=yes
10934 dynamic_linker='ldqnx.so'
10937 openbsd*)
10938 version_type=sunos
10939 sys_lib_dlsearch_path_spec="/usr/lib"
10940 need_lib_prefix=no
10941 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10942 case $host_os in
10943 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10944 *) need_version=no ;;
10945 esac
10946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10947 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10948 shlibpath_var=LD_LIBRARY_PATH
10949 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10950 case $host_os in
10951 openbsd2.[89] | openbsd2.[89].*)
10952 shlibpath_overrides_runpath=no
10955 shlibpath_overrides_runpath=yes
10957 esac
10958 else
10959 shlibpath_overrides_runpath=yes
10963 os2*)
10964 libname_spec='$name'
10965 shrext_cmds=".dll"
10966 need_lib_prefix=no
10967 library_names_spec='$libname${shared_ext} $libname.a'
10968 dynamic_linker='OS/2 ld.exe'
10969 shlibpath_var=LIBPATH
10972 osf3* | osf4* | osf5*)
10973 version_type=osf
10974 need_lib_prefix=no
10975 need_version=no
10976 soname_spec='${libname}${release}${shared_ext}$major'
10977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10978 shlibpath_var=LD_LIBRARY_PATH
10979 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10980 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10983 rdos*)
10984 dynamic_linker=no
10987 solaris*)
10988 version_type=linux
10989 need_lib_prefix=no
10990 need_version=no
10991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10992 soname_spec='${libname}${release}${shared_ext}$major'
10993 shlibpath_var=LD_LIBRARY_PATH
10994 shlibpath_overrides_runpath=yes
10995 hardcode_into_libs=yes
10996 # ldd complains unless libraries are executable
10997 postinstall_cmds='chmod +x $lib'
11000 sunos4*)
11001 version_type=sunos
11002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11003 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11004 shlibpath_var=LD_LIBRARY_PATH
11005 shlibpath_overrides_runpath=yes
11006 if test "$with_gnu_ld" = yes; then
11007 need_lib_prefix=no
11009 need_version=yes
11012 sysv4 | sysv4.3*)
11013 version_type=linux
11014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11015 soname_spec='${libname}${release}${shared_ext}$major'
11016 shlibpath_var=LD_LIBRARY_PATH
11017 case $host_vendor in
11018 sni)
11019 shlibpath_overrides_runpath=no
11020 need_lib_prefix=no
11021 runpath_var=LD_RUN_PATH
11023 siemens)
11024 need_lib_prefix=no
11026 motorola)
11027 need_lib_prefix=no
11028 need_version=no
11029 shlibpath_overrides_runpath=no
11030 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11032 esac
11035 sysv4*MP*)
11036 if test -d /usr/nec ;then
11037 version_type=linux
11038 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11039 soname_spec='$libname${shared_ext}.$major'
11040 shlibpath_var=LD_LIBRARY_PATH
11044 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11045 version_type=freebsd-elf
11046 need_lib_prefix=no
11047 need_version=no
11048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11049 soname_spec='${libname}${release}${shared_ext}$major'
11050 shlibpath_var=LD_LIBRARY_PATH
11051 shlibpath_overrides_runpath=yes
11052 hardcode_into_libs=yes
11053 if test "$with_gnu_ld" = yes; then
11054 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11055 else
11056 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11057 case $host_os in
11058 sco3.2v5*)
11059 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11061 esac
11063 sys_lib_dlsearch_path_spec='/usr/lib'
11066 tpf*)
11067 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11068 version_type=linux
11069 need_lib_prefix=no
11070 need_version=no
11071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11072 shlibpath_var=LD_LIBRARY_PATH
11073 shlibpath_overrides_runpath=no
11074 hardcode_into_libs=yes
11077 uts4*)
11078 version_type=linux
11079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11080 soname_spec='${libname}${release}${shared_ext}$major'
11081 shlibpath_var=LD_LIBRARY_PATH
11084 # Shared libraries for VwWorks, >= 7 only at this stage
11085 # and (fpic) still incompatible with "large" code models
11086 # in a few configurations. Only for RTP mode in any case,
11087 # and upon explicit request at configure time.
11088 vxworks7*)
11089 dynamic_linker=no
11090 case ${with_multisubdir}-${enable_shared} in
11091 *large*)
11093 *mrtp*-yes)
11094 version_type=linux
11095 need_lib_prefix=no
11096 need_version=no
11097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11098 soname_spec='${libname}${release}${shared_ext}$major'
11099 dynamic_linker="$host_os module_loader"
11101 esac
11104 dynamic_linker=no
11106 esac
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11108 $as_echo "$dynamic_linker" >&6; }
11109 test "$dynamic_linker" = no && can_build_shared=no
11111 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11112 if test "$GCC" = yes; then
11113 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11116 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11117 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11119 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11120 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11215 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11216 hardcode_action=
11217 if test -n "$hardcode_libdir_flag_spec" ||
11218 test -n "$runpath_var" ||
11219 test "X$hardcode_automatic" = "Xyes" ; then
11221 # We can hardcode non-existent directories.
11222 if test "$hardcode_direct" != no &&
11223 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11224 # have to relink, otherwise we might link with an installed library
11225 # when we should be linking with a yet-to-be-installed one
11226 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11227 test "$hardcode_minus_L" != no; then
11228 # Linking always hardcodes the temporary library directory.
11229 hardcode_action=relink
11230 else
11231 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11232 hardcode_action=immediate
11234 else
11235 # We cannot hardcode anything, or else we can only hardcode existing
11236 # directories.
11237 hardcode_action=unsupported
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11240 $as_echo "$hardcode_action" >&6; }
11242 if test "$hardcode_action" = relink ||
11243 test "$inherit_rpath" = yes; then
11244 # Fast installation is not supported
11245 enable_fast_install=no
11246 elif test "$shlibpath_overrides_runpath" = yes ||
11247 test "$enable_shared" = no; then
11248 # Fast installation is not necessary
11249 enable_fast_install=needless
11257 if test "x$enable_dlopen" != xyes; then
11258 enable_dlopen=unknown
11259 enable_dlopen_self=unknown
11260 enable_dlopen_self_static=unknown
11261 else
11262 lt_cv_dlopen=no
11263 lt_cv_dlopen_libs=
11265 case $host_os in
11266 beos*)
11267 lt_cv_dlopen="load_add_on"
11268 lt_cv_dlopen_libs=
11269 lt_cv_dlopen_self=yes
11272 mingw* | pw32* | cegcc*)
11273 lt_cv_dlopen="LoadLibrary"
11274 lt_cv_dlopen_libs=
11277 cygwin*)
11278 lt_cv_dlopen="dlopen"
11279 lt_cv_dlopen_libs=
11282 darwin*)
11283 # if libdl is installed we need to link against it
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11285 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11286 if ${ac_cv_lib_dl_dlopen+:} false; then :
11287 $as_echo_n "(cached) " >&6
11288 else
11289 ac_check_lib_save_LIBS=$LIBS
11290 LIBS="-ldl $LIBS"
11291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11292 /* end confdefs.h. */
11294 /* Override any GCC internal prototype to avoid an error.
11295 Use char because int might match the return type of a GCC
11296 builtin and then its argument prototype would still apply. */
11297 #ifdef __cplusplus
11298 extern "C"
11299 #endif
11300 char dlopen ();
11302 main ()
11304 return dlopen ();
11306 return 0;
11308 _ACEOF
11309 if ac_fn_c_try_link "$LINENO"; then :
11310 ac_cv_lib_dl_dlopen=yes
11311 else
11312 ac_cv_lib_dl_dlopen=no
11314 rm -f core conftest.err conftest.$ac_objext \
11315 conftest$ac_exeext conftest.$ac_ext
11316 LIBS=$ac_check_lib_save_LIBS
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11319 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11320 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11321 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11322 else
11324 lt_cv_dlopen="dyld"
11325 lt_cv_dlopen_libs=
11326 lt_cv_dlopen_self=yes
11333 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11334 if test "x$ac_cv_func_shl_load" = xyes; then :
11335 lt_cv_dlopen="shl_load"
11336 else
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11338 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11339 if ${ac_cv_lib_dld_shl_load+:} false; then :
11340 $as_echo_n "(cached) " >&6
11341 else
11342 ac_check_lib_save_LIBS=$LIBS
11343 LIBS="-ldld $LIBS"
11344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11345 /* end confdefs.h. */
11347 /* Override any GCC internal prototype to avoid an error.
11348 Use char because int might match the return type of a GCC
11349 builtin and then its argument prototype would still apply. */
11350 #ifdef __cplusplus
11351 extern "C"
11352 #endif
11353 char shl_load ();
11355 main ()
11357 return shl_load ();
11359 return 0;
11361 _ACEOF
11362 if ac_fn_c_try_link "$LINENO"; then :
11363 ac_cv_lib_dld_shl_load=yes
11364 else
11365 ac_cv_lib_dld_shl_load=no
11367 rm -f core conftest.err conftest.$ac_objext \
11368 conftest$ac_exeext conftest.$ac_ext
11369 LIBS=$ac_check_lib_save_LIBS
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11372 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11373 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11374 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11375 else
11376 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11377 if test "x$ac_cv_func_dlopen" = xyes; then :
11378 lt_cv_dlopen="dlopen"
11379 else
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11381 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11382 if ${ac_cv_lib_dl_dlopen+:} false; then :
11383 $as_echo_n "(cached) " >&6
11384 else
11385 ac_check_lib_save_LIBS=$LIBS
11386 LIBS="-ldl $LIBS"
11387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11388 /* end confdefs.h. */
11390 /* Override any GCC internal prototype to avoid an error.
11391 Use char because int might match the return type of a GCC
11392 builtin and then its argument prototype would still apply. */
11393 #ifdef __cplusplus
11394 extern "C"
11395 #endif
11396 char dlopen ();
11398 main ()
11400 return dlopen ();
11402 return 0;
11404 _ACEOF
11405 if ac_fn_c_try_link "$LINENO"; then :
11406 ac_cv_lib_dl_dlopen=yes
11407 else
11408 ac_cv_lib_dl_dlopen=no
11410 rm -f core conftest.err conftest.$ac_objext \
11411 conftest$ac_exeext conftest.$ac_ext
11412 LIBS=$ac_check_lib_save_LIBS
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11415 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11416 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11417 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11418 else
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11420 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11421 if ${ac_cv_lib_svld_dlopen+:} false; then :
11422 $as_echo_n "(cached) " >&6
11423 else
11424 ac_check_lib_save_LIBS=$LIBS
11425 LIBS="-lsvld $LIBS"
11426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11427 /* end confdefs.h. */
11429 /* Override any GCC internal prototype to avoid an error.
11430 Use char because int might match the return type of a GCC
11431 builtin and then its argument prototype would still apply. */
11432 #ifdef __cplusplus
11433 extern "C"
11434 #endif
11435 char dlopen ();
11437 main ()
11439 return dlopen ();
11441 return 0;
11443 _ACEOF
11444 if ac_fn_c_try_link "$LINENO"; then :
11445 ac_cv_lib_svld_dlopen=yes
11446 else
11447 ac_cv_lib_svld_dlopen=no
11449 rm -f core conftest.err conftest.$ac_objext \
11450 conftest$ac_exeext conftest.$ac_ext
11451 LIBS=$ac_check_lib_save_LIBS
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11454 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11455 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11456 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11457 else
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11459 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11460 if ${ac_cv_lib_dld_dld_link+:} false; then :
11461 $as_echo_n "(cached) " >&6
11462 else
11463 ac_check_lib_save_LIBS=$LIBS
11464 LIBS="-ldld $LIBS"
11465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11466 /* end confdefs.h. */
11468 /* Override any GCC internal prototype to avoid an error.
11469 Use char because int might match the return type of a GCC
11470 builtin and then its argument prototype would still apply. */
11471 #ifdef __cplusplus
11472 extern "C"
11473 #endif
11474 char dld_link ();
11476 main ()
11478 return dld_link ();
11480 return 0;
11482 _ACEOF
11483 if ac_fn_c_try_link "$LINENO"; then :
11484 ac_cv_lib_dld_dld_link=yes
11485 else
11486 ac_cv_lib_dld_dld_link=no
11488 rm -f core conftest.err conftest.$ac_objext \
11489 conftest$ac_exeext conftest.$ac_ext
11490 LIBS=$ac_check_lib_save_LIBS
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11493 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11494 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11495 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11514 esac
11516 if test "x$lt_cv_dlopen" != xno; then
11517 enable_dlopen=yes
11518 else
11519 enable_dlopen=no
11522 case $lt_cv_dlopen in
11523 dlopen)
11524 save_CPPFLAGS="$CPPFLAGS"
11525 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11527 save_LDFLAGS="$LDFLAGS"
11528 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11530 save_LIBS="$LIBS"
11531 LIBS="$lt_cv_dlopen_libs $LIBS"
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11534 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11535 if ${lt_cv_dlopen_self+:} false; then :
11536 $as_echo_n "(cached) " >&6
11537 else
11538 if test "$cross_compiling" = yes; then :
11539 lt_cv_dlopen_self=cross
11540 else
11541 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11542 lt_status=$lt_dlunknown
11543 cat > conftest.$ac_ext <<_LT_EOF
11544 #line 11544 "configure"
11545 #include "confdefs.h"
11547 #if HAVE_DLFCN_H
11548 #include <dlfcn.h>
11549 #endif
11551 #include <stdio.h>
11553 #ifdef RTLD_GLOBAL
11554 # define LT_DLGLOBAL RTLD_GLOBAL
11555 #else
11556 # ifdef DL_GLOBAL
11557 # define LT_DLGLOBAL DL_GLOBAL
11558 # else
11559 # define LT_DLGLOBAL 0
11560 # endif
11561 #endif
11563 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11564 find out it does not work in some platform. */
11565 #ifndef LT_DLLAZY_OR_NOW
11566 # ifdef RTLD_LAZY
11567 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11568 # else
11569 # ifdef DL_LAZY
11570 # define LT_DLLAZY_OR_NOW DL_LAZY
11571 # else
11572 # ifdef RTLD_NOW
11573 # define LT_DLLAZY_OR_NOW RTLD_NOW
11574 # else
11575 # ifdef DL_NOW
11576 # define LT_DLLAZY_OR_NOW DL_NOW
11577 # else
11578 # define LT_DLLAZY_OR_NOW 0
11579 # endif
11580 # endif
11581 # endif
11582 # endif
11583 #endif
11585 /* When -fvisbility=hidden is used, assume the code has been annotated
11586 correspondingly for the symbols needed. */
11587 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11588 void fnord () __attribute__((visibility("default")));
11589 #endif
11591 void fnord () { int i=42; }
11592 int main ()
11594 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11595 int status = $lt_dlunknown;
11597 if (self)
11599 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11600 else
11602 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11603 else puts (dlerror ());
11605 /* dlclose (self); */
11607 else
11608 puts (dlerror ());
11610 return status;
11612 _LT_EOF
11613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11614 (eval $ac_link) 2>&5
11615 ac_status=$?
11616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11617 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11618 (./conftest; exit; ) >&5 2>/dev/null
11619 lt_status=$?
11620 case x$lt_status in
11621 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11622 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11623 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11624 esac
11625 else :
11626 # compilation failed
11627 lt_cv_dlopen_self=no
11630 rm -fr conftest*
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11635 $as_echo "$lt_cv_dlopen_self" >&6; }
11637 if test "x$lt_cv_dlopen_self" = xyes; then
11638 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11640 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11641 if ${lt_cv_dlopen_self_static+:} false; then :
11642 $as_echo_n "(cached) " >&6
11643 else
11644 if test "$cross_compiling" = yes; then :
11645 lt_cv_dlopen_self_static=cross
11646 else
11647 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11648 lt_status=$lt_dlunknown
11649 cat > conftest.$ac_ext <<_LT_EOF
11650 #line 11650 "configure"
11651 #include "confdefs.h"
11653 #if HAVE_DLFCN_H
11654 #include <dlfcn.h>
11655 #endif
11657 #include <stdio.h>
11659 #ifdef RTLD_GLOBAL
11660 # define LT_DLGLOBAL RTLD_GLOBAL
11661 #else
11662 # ifdef DL_GLOBAL
11663 # define LT_DLGLOBAL DL_GLOBAL
11664 # else
11665 # define LT_DLGLOBAL 0
11666 # endif
11667 #endif
11669 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11670 find out it does not work in some platform. */
11671 #ifndef LT_DLLAZY_OR_NOW
11672 # ifdef RTLD_LAZY
11673 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11674 # else
11675 # ifdef DL_LAZY
11676 # define LT_DLLAZY_OR_NOW DL_LAZY
11677 # else
11678 # ifdef RTLD_NOW
11679 # define LT_DLLAZY_OR_NOW RTLD_NOW
11680 # else
11681 # ifdef DL_NOW
11682 # define LT_DLLAZY_OR_NOW DL_NOW
11683 # else
11684 # define LT_DLLAZY_OR_NOW 0
11685 # endif
11686 # endif
11687 # endif
11688 # endif
11689 #endif
11691 /* When -fvisbility=hidden is used, assume the code has been annotated
11692 correspondingly for the symbols needed. */
11693 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11694 void fnord () __attribute__((visibility("default")));
11695 #endif
11697 void fnord () { int i=42; }
11698 int main ()
11700 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11701 int status = $lt_dlunknown;
11703 if (self)
11705 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11706 else
11708 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11709 else puts (dlerror ());
11711 /* dlclose (self); */
11713 else
11714 puts (dlerror ());
11716 return status;
11718 _LT_EOF
11719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11720 (eval $ac_link) 2>&5
11721 ac_status=$?
11722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11723 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11724 (./conftest; exit; ) >&5 2>/dev/null
11725 lt_status=$?
11726 case x$lt_status in
11727 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11728 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11729 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11730 esac
11731 else :
11732 # compilation failed
11733 lt_cv_dlopen_self_static=no
11736 rm -fr conftest*
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11741 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11744 CPPFLAGS="$save_CPPFLAGS"
11745 LDFLAGS="$save_LDFLAGS"
11746 LIBS="$save_LIBS"
11748 esac
11750 case $lt_cv_dlopen_self in
11751 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11752 *) enable_dlopen_self=unknown ;;
11753 esac
11755 case $lt_cv_dlopen_self_static in
11756 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11757 *) enable_dlopen_self_static=unknown ;;
11758 esac
11777 striplib=
11778 old_striplib=
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11780 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11781 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11782 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11783 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11785 $as_echo "yes" >&6; }
11786 else
11787 # FIXME - insert some real tests, host_os isn't really good enough
11788 case $host_os in
11789 darwin*)
11790 if test -n "$STRIP" ; then
11791 striplib="$STRIP -x"
11792 old_striplib="$STRIP -S"
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11794 $as_echo "yes" >&6; }
11795 else
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11797 $as_echo "no" >&6; }
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11802 $as_echo "no" >&6; }
11804 esac
11818 # Report which library types will actually be built
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11820 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11822 $as_echo "$can_build_shared" >&6; }
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11825 $as_echo_n "checking whether to build shared libraries... " >&6; }
11826 test "$can_build_shared" = "no" && enable_shared=no
11828 # On AIX, shared libraries and static libraries use the same namespace, and
11829 # are all built from PIC.
11830 case $host_os in
11831 aix3*)
11832 test "$enable_shared" = yes && enable_static=no
11833 if test -n "$RANLIB"; then
11834 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11835 postinstall_cmds='$RANLIB $lib'
11839 aix[4-9]*)
11840 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11841 test "$enable_shared" = yes && enable_static=no
11844 esac
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11846 $as_echo "$enable_shared" >&6; }
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11849 $as_echo_n "checking whether to build static libraries... " >&6; }
11850 # Make sure either enable_shared or enable_static is yes.
11851 test "$enable_shared" = yes || enable_static=yes
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11853 $as_echo "$enable_static" >&6; }
11859 ac_ext=c
11860 ac_cpp='$CPP $CPPFLAGS'
11861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11865 CC="$lt_save_CC"
11879 ac_config_commands="$ac_config_commands libtool"
11884 # Only expand once:
11889 # Check whether --enable-largefile was given.
11890 if test "${enable_largefile+set}" = set; then :
11891 enableval=$enable_largefile;
11894 if test "$enable_largefile" != no; then
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11897 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11898 if ${ac_cv_sys_largefile_CC+:} false; then :
11899 $as_echo_n "(cached) " >&6
11900 else
11901 ac_cv_sys_largefile_CC=no
11902 if test "$GCC" != yes; then
11903 ac_save_CC=$CC
11904 while :; do
11905 # IRIX 6.2 and later do not support large files by default,
11906 # so use the C compiler's -n32 option if that helps.
11907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11908 /* end confdefs.h. */
11909 #include <sys/types.h>
11910 /* Check that off_t can represent 2**63 - 1 correctly.
11911 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11912 since some C++ compilers masquerading as C compilers
11913 incorrectly reject 9223372036854775807. */
11914 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11915 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11916 && LARGE_OFF_T % 2147483647 == 1)
11917 ? 1 : -1];
11919 main ()
11923 return 0;
11925 _ACEOF
11926 if ac_fn_c_try_compile "$LINENO"; then :
11927 break
11929 rm -f core conftest.err conftest.$ac_objext
11930 CC="$CC -n32"
11931 if ac_fn_c_try_compile "$LINENO"; then :
11932 ac_cv_sys_largefile_CC=' -n32'; break
11934 rm -f core conftest.err conftest.$ac_objext
11935 break
11936 done
11937 CC=$ac_save_CC
11938 rm -f conftest.$ac_ext
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11942 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11943 if test "$ac_cv_sys_largefile_CC" != no; then
11944 CC=$CC$ac_cv_sys_largefile_CC
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11948 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11949 if ${ac_cv_sys_file_offset_bits+:} false; then :
11950 $as_echo_n "(cached) " >&6
11951 else
11952 while :; do
11953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11954 /* end confdefs.h. */
11955 #include <sys/types.h>
11956 /* Check that off_t can represent 2**63 - 1 correctly.
11957 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11958 since some C++ compilers masquerading as C compilers
11959 incorrectly reject 9223372036854775807. */
11960 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11961 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11962 && LARGE_OFF_T % 2147483647 == 1)
11963 ? 1 : -1];
11965 main ()
11969 return 0;
11971 _ACEOF
11972 if ac_fn_c_try_compile "$LINENO"; then :
11973 ac_cv_sys_file_offset_bits=no; break
11975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11977 /* end confdefs.h. */
11978 #define _FILE_OFFSET_BITS 64
11979 #include <sys/types.h>
11980 /* Check that off_t can represent 2**63 - 1 correctly.
11981 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11982 since some C++ compilers masquerading as C compilers
11983 incorrectly reject 9223372036854775807. */
11984 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11985 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11986 && LARGE_OFF_T % 2147483647 == 1)
11987 ? 1 : -1];
11989 main ()
11993 return 0;
11995 _ACEOF
11996 if ac_fn_c_try_compile "$LINENO"; then :
11997 ac_cv_sys_file_offset_bits=64; break
11999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12000 ac_cv_sys_file_offset_bits=unknown
12001 break
12002 done
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12005 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12006 case $ac_cv_sys_file_offset_bits in #(
12007 no | unknown) ;;
12009 cat >>confdefs.h <<_ACEOF
12010 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12011 _ACEOF
12013 esac
12014 rm -rf conftest*
12015 if test $ac_cv_sys_file_offset_bits = unknown; then
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12017 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12018 if ${ac_cv_sys_large_files+:} false; then :
12019 $as_echo_n "(cached) " >&6
12020 else
12021 while :; do
12022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12023 /* end confdefs.h. */
12024 #include <sys/types.h>
12025 /* Check that off_t can represent 2**63 - 1 correctly.
12026 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12027 since some C++ compilers masquerading as C compilers
12028 incorrectly reject 9223372036854775807. */
12029 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12030 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12031 && LARGE_OFF_T % 2147483647 == 1)
12032 ? 1 : -1];
12034 main ()
12038 return 0;
12040 _ACEOF
12041 if ac_fn_c_try_compile "$LINENO"; then :
12042 ac_cv_sys_large_files=no; break
12044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046 /* end confdefs.h. */
12047 #define _LARGE_FILES 1
12048 #include <sys/types.h>
12049 /* Check that off_t can represent 2**63 - 1 correctly.
12050 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12051 since some C++ compilers masquerading as C compilers
12052 incorrectly reject 9223372036854775807. */
12053 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12054 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12055 && LARGE_OFF_T % 2147483647 == 1)
12056 ? 1 : -1];
12058 main ()
12062 return 0;
12064 _ACEOF
12065 if ac_fn_c_try_compile "$LINENO"; then :
12066 ac_cv_sys_large_files=1; break
12068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12069 ac_cv_sys_large_files=unknown
12070 break
12071 done
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12074 $as_echo "$ac_cv_sys_large_files" >&6; }
12075 case $ac_cv_sys_large_files in #(
12076 no | unknown) ;;
12078 cat >>confdefs.h <<_ACEOF
12079 #define _LARGE_FILES $ac_cv_sys_large_files
12080 _ACEOF
12082 esac
12083 rm -rf conftest*
12090 backtrace_supported=yes
12092 if test -n "${with_target_subdir}"; then
12093 # We are compiling a GCC library. We can assume that the unwind
12094 # library exists.
12095 BACKTRACE_FILE="backtrace.lo simple.lo"
12096 else
12097 ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
12098 if test "x$ac_cv_header_unwind_h" = xyes; then :
12099 ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace"
12100 if test "x$ac_cv_func__Unwind_Backtrace" = xyes; then :
12101 BACKTRACE_FILE="backtrace.lo simple.lo"
12102 else
12103 BACKTRACE_FILE="nounwind.lo"
12104 backtrace_supported=no
12107 else
12108 BACKTRACE_FILE="nounwind.lo"
12109 backtrace_supported=no
12116 EXTRA_FLAGS=
12117 if test -n "${with_target_subdir}"; then
12118 EXTRA_FLAGS="-funwind-tables -frandom-seed=\$@"
12119 else
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -funwind-tables option" >&5
12121 $as_echo_n "checking for -funwind-tables option... " >&6; }
12122 if ${libbacktrace_cv_c_unwind_tables+:} false; then :
12123 $as_echo_n "(cached) " >&6
12124 else
12125 CFLAGS_hold="$CFLAGS"
12126 CFLAGS="$CFLAGS -funwind-tables"
12127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12128 /* end confdefs.h. */
12129 static int f() { return 0; }
12131 main ()
12133 return f();
12135 return 0;
12137 _ACEOF
12138 if ac_fn_c_try_compile "$LINENO"; then :
12139 libbacktrace_cv_c_unwind_tables=yes
12140 else
12141 libbacktrace_cv_c_unwind_tables=no
12143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12144 CFLAGS="$CFLAGS_hold"
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_unwind_tables" >&5
12147 $as_echo "$libbacktrace_cv_c_unwind_tables" >&6; }
12148 if test "$libbacktrace_cv_c_unwind_tables" = "yes"; then
12149 EXTRA_FLAGS=-funwind-tables
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed=string option" >&5
12152 $as_echo_n "checking for -frandom-seed=string option... " >&6; }
12153 if ${libbacktrace_cv_c_random_seed_string+:} false; then :
12154 $as_echo_n "(cached) " >&6
12155 else
12156 CFLAGS_hold="$CFLAGS"
12157 CFLAGS="$CFLAGS -frandom-seed=conftest.lo"
12158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12159 /* end confdefs.h. */
12162 main ()
12164 return 0;
12166 return 0;
12168 _ACEOF
12169 if ac_fn_c_try_compile "$LINENO"; then :
12170 libbacktrace_cv_c_random_seed_string=yes
12171 else
12172 libbacktrace_cv_c_random_seed_string=no
12174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12175 CFLAGS="$CFLAGS_hold"
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_random_seed_string" >&5
12178 $as_echo "$libbacktrace_cv_c_random_seed_string" >&6; }
12179 if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then
12180 EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@"
12184 if test -n "${with_target_subdir}"; then
12185 # Add CET specific flags is Intel CET is enabled.
12186 # Check whether --enable-cet was given.
12187 if test "${enable_cet+set}" = set; then :
12188 enableval=$enable_cet;
12189 case "$enableval" in
12190 yes|no|auto) ;;
12191 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
12192 esac
12194 else
12195 enable_cet=auto
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
12200 $as_echo_n "checking for CET support... " >&6; }
12202 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
12203 case "$host" in
12204 i[34567]86-*-linux* | x86_64-*-linux*)
12205 case "$enable_cet" in
12206 auto)
12207 # Check if target supports multi-byte NOPs
12208 # and if compiler and assembler support CET insn.
12209 cet_save_CFLAGS="$CFLAGS"
12210 CFLAGS="$CFLAGS -fcf-protection"
12211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12212 /* end confdefs.h. */
12215 main ()
12218 #if !defined(__SSE2__)
12219 #error target does not support multi-byte NOPs
12220 #else
12221 asm ("setssbsy");
12222 #endif
12225 return 0;
12227 _ACEOF
12228 if ac_fn_c_try_compile "$LINENO"; then :
12229 enable_cet=yes
12230 else
12231 enable_cet=no
12233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12234 CFLAGS="$cet_save_CFLAGS"
12236 yes)
12237 # Check if assembler supports CET.
12238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12239 /* end confdefs.h. */
12242 main ()
12244 asm ("setssbsy");
12246 return 0;
12248 _ACEOF
12249 if ac_fn_c_try_compile "$LINENO"; then :
12251 else
12252 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
12254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12256 esac
12259 enable_cet=no
12261 esac
12262 if test x$enable_cet = xyes; then
12263 CET_FLAGS="-fcf-protection -mshstk"
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12265 $as_echo "yes" >&6; }
12266 else
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268 $as_echo "no" >&6; }
12271 EXTRA_FLAGS="$EXTRA_FLAGS $CET_FLAGS"
12275 ac_ext=c
12276 ac_cpp='$CPP $CPPFLAGS'
12277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12281 WARN_FLAGS=
12282 save_CFLAGS="$CFLAGS"
12283 for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
12284 -Wmissing-prototypes -Wold-style-definition \
12285 -Wmissing-format-attribute -Wcast-qual; do
12286 # Do the check with the no- prefix removed since gcc silently
12287 # accepts any -Wno-* option on purpose
12288 case $real_option in
12289 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
12290 *) option=$real_option ;;
12291 esac
12292 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
12295 $as_echo_n "checking whether $CC supports $option... " >&6; }
12296 if eval \${$as_acx_Woption+:} false; then :
12297 $as_echo_n "(cached) " >&6
12298 else
12299 CFLAGS="$option"
12300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12301 /* end confdefs.h. */
12304 main ()
12308 return 0;
12310 _ACEOF
12311 if ac_fn_c_try_compile "$LINENO"; then :
12312 eval "$as_acx_Woption=yes"
12313 else
12314 eval "$as_acx_Woption=no"
12316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12319 eval ac_res=\$$as_acx_Woption
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12321 $as_echo "$ac_res" >&6; }
12322 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
12323 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
12325 done
12326 CFLAGS="$save_CFLAGS"
12327 ac_ext=c
12328 ac_cpp='$CPP $CPPFLAGS'
12329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12335 # Check whether --enable-werror was given.
12336 if test "${enable_werror+set}" = set; then :
12337 enableval=$enable_werror;
12340 if test "x$enable_werror" != "xno" && test -n "${with_target_subdir}"; then :
12341 WARN_FLAGS="$WARN_FLAGS -Werror"
12345 if test -n "${with_target_subdir}"; then
12348 # Check whether --with-system-libunwind was given.
12349 if test "${with_system_libunwind+set}" = set; then :
12350 withval=$with_system_libunwind;
12353 # If system-libunwind was not specifically set, pick a default setting.
12354 if test x$with_system_libunwind = x; then
12355 case ${target} in
12356 ia64-*-hpux*) with_system_libunwind=yes ;;
12357 *) with_system_libunwind=no ;;
12358 esac
12360 # Based on system-libunwind and target, do we have ipinfo?
12361 if test x$with_system_libunwind = xyes; then
12362 case ${target} in
12363 ia64-*-*) have_unwind_getipinfo=no ;;
12364 *) have_unwind_getipinfo=yes ;;
12365 esac
12366 else
12367 # Darwin before version 9 does not have _Unwind_GetIPInfo.
12369 case ${target} in
12370 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
12371 *) have_unwind_getipinfo=yes ;;
12372 esac
12376 if test x$have_unwind_getipinfo = xyes; then
12378 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
12382 else
12383 ac_save_CFFLAGS="$CFLAGS"
12384 CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_GetIPInfo" >&5
12386 $as_echo_n "checking for _Unwind_GetIPInfo... " >&6; }
12387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12388 /* end confdefs.h. */
12389 #include "unwind.h"
12390 struct _Unwind_Context *context;
12391 int ip_before_insn = 0;
12393 main ()
12395 return _Unwind_GetIPInfo (context, &ip_before_insn);
12397 return 0;
12399 _ACEOF
12400 if ac_fn_c_try_link "$LINENO"; then :
12401 have_unwind_getipinfo=yes
12402 else
12403 have_unwind_getipinfo=no
12405 rm -f core conftest.err conftest.$ac_objext \
12406 conftest$ac_exeext conftest.$ac_ext
12407 CFLAGS="$ac_save_CFLAGS"
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unwind_getipinfo" >&5
12409 $as_echo "$have_unwind_getipinfo" >&6; }
12410 if test "$have_unwind_getipinfo" = "yes"; then
12412 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
12417 # Enable --enable-host-shared.
12418 # Check whether --enable-host-shared was given.
12419 if test "${enable_host_shared+set}" = set; then :
12420 enableval=$enable_host_shared; PIC_FLAG=-fPIC
12421 else
12422 PIC_FLAG=
12427 # Enable Intel CET on Intel CET enabled host if jit is enabled.
12428 # Check whether --enable-cet was given.
12429 if test "${enable_cet+set}" = set; then :
12430 enableval=$enable_cet;
12431 case "$enableval" in
12432 yes|no|auto) ;;
12433 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
12434 esac
12436 else
12437 enable_cet=auto
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
12442 $as_echo_n "checking for CET support... " >&6; }
12444 case "$host" in
12445 i[34567]86-*-linux* | x86_64-*-linux*)
12446 may_have_cet=yes
12447 cet_save_CFLAGS="$CFLAGS"
12448 CFLAGS="$CFLAGS -fcf-protection"
12449 case "$enable_cet" in
12450 auto)
12451 # Check if target supports multi-byte NOPs
12452 # and if compiler and assembler support CET.
12453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12454 /* end confdefs.h. */
12457 main ()
12460 #if !defined(__SSE2__)
12461 #error target does not support multi-byte NOPs
12462 #else
12463 asm ("setssbsy");
12464 #endif
12467 return 0;
12469 _ACEOF
12470 if ac_fn_c_try_compile "$LINENO"; then :
12471 enable_cet=yes
12472 else
12473 enable_cet=no
12475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12477 yes)
12478 # Check if compiler and assembler support CET.
12479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12480 /* end confdefs.h. */
12483 main ()
12485 asm ("setssbsy");
12487 return 0;
12489 _ACEOF
12490 if ac_fn_c_try_compile "$LINENO"; then :
12491 support_cet=yes
12492 else
12493 support_cet=no
12495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12496 if test $support_cet = "no"; then
12497 if test x$enable_bootstrap != xno \
12498 && test -z "${with_build_subdir}" \
12499 && (test ! -f ../stage_current \
12500 || test `cat ../stage_current` != "stage1"); then
12501 # Require CET support only for the final GCC build.
12502 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
12503 else
12504 # Don't enable CET without CET support for non-bootstrap
12505 # build, in stage1 nor for build support.
12506 enable_cet=no
12510 esac
12511 CFLAGS="$cet_save_CFLAGS"
12514 may_have_cet=no
12515 enable_cet=no
12517 esac
12519 cet_save_CFLAGS="$CFLAGS"
12520 CFLAGS="$CFLAGS -fcf-protection=none"
12521 cet_save_LDFLAGS="$LDFLAGS"
12522 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
12523 if test x$may_have_cet = xyes; then
12524 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
12525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h. */
12529 main ()
12531 return 0;
12533 return 0;
12535 _ACEOF
12536 if ac_fn_c_try_link "$LINENO"; then :
12537 may_have_cet=yes
12538 else
12539 may_have_cet=no
12541 rm -f core conftest.err conftest.$ac_objext \
12542 conftest$ac_exeext conftest.$ac_ext
12545 if test x$may_have_cet = xyes; then
12546 if test x$cross_compiling = xno; then
12547 if test "$cross_compiling" = yes; then :
12548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12550 as_fn_error $? "cannot run test program while cross compiling
12551 See \`config.log' for more details" "$LINENO" 5; }
12552 else
12553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12554 /* end confdefs.h. */
12557 main ()
12559 asm ("endbr32");
12560 return 0;
12563 _ACEOF
12564 if ac_fn_c_try_run "$LINENO"; then :
12565 have_multi_byte_nop=yes
12566 else
12567 have_multi_byte_nop=no
12569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12570 conftest.$ac_objext conftest.beam conftest.$ac_ext
12573 have_cet=no
12574 if test x$have_multi_byte_nop = xyes; then
12575 if test "$cross_compiling" = yes; then :
12576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12578 as_fn_error $? "cannot run test program while cross compiling
12579 See \`config.log' for more details" "$LINENO" 5; }
12580 else
12581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12582 /* end confdefs.h. */
12584 static void
12585 foo (void)
12589 static void
12590 __attribute__ ((noinline, noclone))
12591 xxx (void (*f) (void))
12593 f ();
12596 static void
12597 __attribute__ ((noinline, noclone))
12598 bar (void)
12600 xxx (foo);
12604 main ()
12606 bar ();
12607 return 0;
12610 _ACEOF
12611 if ac_fn_c_try_run "$LINENO"; then :
12612 have_cet=no
12613 else
12614 have_cet=yes
12616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12617 conftest.$ac_objext conftest.beam conftest.$ac_ext
12621 if test x$enable_cet = xno -a x$have_cet = xyes; then
12622 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
12625 else
12626 # Enable CET in cross compiler if possible so that it will run on both
12627 # CET and non-CET hosts.
12628 have_cet=yes
12630 if test x$enable_cet = xyes; then
12631 CET_HOST_FLAGS="-fcf-protection"
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12633 $as_echo "yes" >&6; }
12634 else
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12636 $as_echo "no" >&6; }
12638 CFLAGS="$cet_save_CFLAGS"
12639 LDFLAGS="$cet_save_LDFLAGS"
12641 case x$enable_languages in
12642 *jit*)
12645 CET_HOST_FLAGS=
12647 esac
12650 # Test for __sync support.
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
12652 $as_echo_n "checking __sync extensions... " >&6; }
12653 if ${libbacktrace_cv_sys_sync+:} false; then :
12654 $as_echo_n "(cached) " >&6
12655 else
12656 if test -n "${with_target_subdir}"; then
12657 case "${host}" in
12658 hppa*-*-hpux*) libbacktrace_cv_sys_sync=no ;;
12659 *) libbacktrace_cv_sys_sync=yes ;;
12660 esac
12661 else
12662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12663 /* end confdefs.h. */
12664 int i;
12666 main ()
12668 __sync_bool_compare_and_swap (&i, i, i);
12669 __sync_lock_test_and_set (&i, 1);
12670 __sync_lock_release (&i);
12672 return 0;
12674 _ACEOF
12675 if ac_fn_c_try_link "$LINENO"; then :
12676 libbacktrace_cv_sys_sync=yes
12677 else
12678 libbacktrace_cv_sys_sync=no
12680 rm -f core conftest.err conftest.$ac_objext \
12681 conftest$ac_exeext conftest.$ac_ext
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5
12685 $as_echo "$libbacktrace_cv_sys_sync" >&6; }
12686 BACKTRACE_SUPPORTS_THREADS=0
12687 if test "$libbacktrace_cv_sys_sync" = "yes"; then
12688 BACKTRACE_SUPPORTS_THREADS=1
12690 $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
12695 # Test for __atomic support.
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
12697 $as_echo_n "checking __atomic extensions... " >&6; }
12698 if ${libbacktrace_cv_sys_atomic+:} false; then :
12699 $as_echo_n "(cached) " >&6
12700 else
12701 if test -n "${with_target_subdir}"; then
12702 libbacktrace_cv_sys_atomic=yes
12703 else
12704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12705 /* end confdefs.h. */
12706 int i;
12708 main ()
12710 __atomic_load_n (&i, __ATOMIC_ACQUIRE);
12711 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
12713 return 0;
12715 _ACEOF
12716 if ac_fn_c_try_link "$LINENO"; then :
12717 libbacktrace_cv_sys_atomic=yes
12718 else
12719 libbacktrace_cv_sys_atomic=no
12721 rm -f core conftest.err conftest.$ac_objext \
12722 conftest$ac_exeext conftest.$ac_ext
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_atomic" >&5
12726 $as_echo "$libbacktrace_cv_sys_atomic" >&6; }
12727 if test "$libbacktrace_cv_sys_atomic" = "yes"; then
12729 $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
12733 # The library needs to be able to read the executable itself. Compile
12734 # a file to determine the executable format. The awk script
12735 # filetype.awk prints out the file type.
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
12737 $as_echo_n "checking output filetype... " >&6; }
12738 if ${libbacktrace_cv_sys_filetype+:} false; then :
12739 $as_echo_n "(cached) " >&6
12740 else
12741 filetype=
12742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12743 /* end confdefs.h. */
12744 int i;
12746 main ()
12748 int j;
12750 return 0;
12752 _ACEOF
12753 if ac_fn_c_try_compile "$LINENO"; then :
12754 filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext`
12755 else
12756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12758 as_fn_error $? "compiler failed
12759 See \`config.log' for more details" "$LINENO" 5; }
12761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12762 libbacktrace_cv_sys_filetype=$filetype
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5
12765 $as_echo "$libbacktrace_cv_sys_filetype" >&6; }
12767 # Match the file type to decide what files to compile.
12768 FORMAT_FILE=
12769 backtrace_supports_data=yes
12770 case "$libbacktrace_cv_sys_filetype" in
12771 elf*) FORMAT_FILE="elf.lo" ;;
12772 macho) FORMAT_FILE="macho.lo" ;;
12773 pecoff) FORMAT_FILE="pecoff.lo"
12774 backtrace_supports_data=no
12776 xcoff*) FORMAT_FILE="xcoff.lo"
12777 backtrace_supports_data=no
12779 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
12780 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
12781 FORMAT_FILE="unknown.lo"
12782 backtrace_supported=no
12784 esac
12787 # ELF defines.
12788 elfsize=
12789 case "$libbacktrace_cv_sys_filetype" in
12790 elf32) elfsize=32 ;;
12791 elf64) elfsize=64 ;;
12792 *) elfsize=unused
12793 esac
12795 cat >>confdefs.h <<_ACEOF
12796 #define BACKTRACE_ELF_SIZE $elfsize
12797 _ACEOF
12799 if test "$FORMAT_FILE" = "elf.lo"; then
12800 HAVE_ELF_TRUE=
12801 HAVE_ELF_FALSE='#'
12802 else
12803 HAVE_ELF_TRUE='#'
12804 HAVE_ELF_FALSE=
12808 # XCOFF defines.
12809 xcoffsize=
12810 case "$libbacktrace_cv_sys_filetype" in
12811 xcoff32) xcoffsize=32 ;;
12812 xcoff64) xcoffsize=64 ;;
12813 *) xcoffsize=unused
12814 esac
12816 cat >>confdefs.h <<_ACEOF
12817 #define BACKTRACE_XCOFF_SIZE $xcoffsize
12818 _ACEOF
12821 BACKTRACE_SUPPORTED=0
12822 if test "$backtrace_supported" = "yes"; then
12823 BACKTRACE_SUPPORTED=1
12827 BACKTRACE_SUPPORTS_DATA=0
12828 if test "$backtrace_supports_data" = "yes"; then
12829 BACKTRACE_SUPPORTS_DATA=1
12835 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12837 acx_cv_header_stdint=stddef.h
12838 acx_cv_header_stdint_kind="(already complete)"
12839 for i in stdint.h $inttype_headers; do
12840 unset ac_cv_type_uintptr_t
12841 unset ac_cv_type_uintmax_t
12842 unset ac_cv_type_int_least32_t
12843 unset ac_cv_type_int_fast32_t
12844 unset ac_cv_type_uint64_t
12845 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12846 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12847 #include <$i>
12849 if test "x$ac_cv_type_uintmax_t" = xyes; then :
12850 acx_cv_header_stdint=$i
12851 else
12852 continue
12855 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12856 #include <$i>
12858 if test "x$ac_cv_type_uintptr_t" = xyes; then :
12860 else
12861 acx_cv_header_stdint_kind="(mostly complete)"
12864 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
12865 #include <$i>
12867 if test "x$ac_cv_type_int_least32_t" = xyes; then :
12869 else
12870 acx_cv_header_stdint_kind="(mostly complete)"
12873 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
12874 #include <$i>
12876 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
12878 else
12879 acx_cv_header_stdint_kind="(mostly complete)"
12882 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12883 #include <$i>
12885 if test "x$ac_cv_type_uint64_t" = xyes; then :
12887 else
12888 acx_cv_header_stdint_kind="(lacks uint64_t)"
12891 break
12892 done
12893 if test "$acx_cv_header_stdint" = stddef.h; then
12894 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12895 for i in stdint.h $inttype_headers; do
12896 unset ac_cv_type_uintptr_t
12897 unset ac_cv_type_uint32_t
12898 unset ac_cv_type_uint64_t
12899 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
12900 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
12901 #include <$i>
12903 if test "x$ac_cv_type_uint32_t" = xyes; then :
12904 acx_cv_header_stdint=$i
12905 else
12906 continue
12909 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12910 #include <$i>
12912 if test "x$ac_cv_type_uint64_t" = xyes; then :
12916 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12917 #include <$i>
12919 if test "x$ac_cv_type_uintptr_t" = xyes; then :
12923 break
12924 done
12926 if test "$acx_cv_header_stdint" = stddef.h; then
12927 acx_cv_header_stdint_kind="(u_intXX_t style)"
12928 for i in sys/types.h $inttype_headers; do
12929 unset ac_cv_type_u_int32_t
12930 unset ac_cv_type_u_int64_t
12931 $as_echo_n "looking for u_intXX_t types in $i, " >&6
12932 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
12933 #include <$i>
12935 if test "x$ac_cv_type_u_int32_t" = xyes; then :
12936 acx_cv_header_stdint=$i
12937 else
12938 continue
12941 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
12942 #include <$i>
12944 if test "x$ac_cv_type_u_int64_t" = xyes; then :
12948 break
12949 done
12951 if test "$acx_cv_header_stdint" = stddef.h; then
12952 acx_cv_header_stdint_kind="(using manual detection)"
12955 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12956 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12957 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12958 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12959 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12961 # ----------------- Summarize what we found so far
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
12964 $as_echo_n "checking what to include in gstdint.h... " >&6; }
12966 case `$as_basename -- gstdint.h ||
12967 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
12968 Xgstdint.h : 'X\(//\)$' \| \
12969 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
12970 $as_echo X/gstdint.h |
12971 sed '/^.*\/\([^/][^/]*\)\/*$/{
12972 s//\1/
12975 /^X\/\(\/\/\)$/{
12976 s//\1/
12979 /^X\/\(\/\).*/{
12980 s//\1/
12983 s/.*/./; q'` in
12984 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12985 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12986 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12987 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12988 *) ;;
12989 esac
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12992 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
12994 # ----------------- done included file, check C basic types --------
12996 # Lacking an uintptr_t? Test size of void *
12997 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12998 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
12999 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13000 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13001 # This bug is HP SR number 8606223364.
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13003 $as_echo_n "checking size of void *... " >&6; }
13004 if ${ac_cv_sizeof_void_p+:} false; then :
13005 $as_echo_n "(cached) " >&6
13006 else
13007 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
13009 else
13010 if test "$ac_cv_type_void_p" = yes; then
13011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13013 as_fn_error 77 "cannot compute sizeof (void *)
13014 See \`config.log' for more details" "$LINENO" 5; }
13015 else
13016 ac_cv_sizeof_void_p=0
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13022 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13026 cat >>confdefs.h <<_ACEOF
13027 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13028 _ACEOF
13031 esac
13033 # Lacking an uint64_t? Test size of long
13034 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
13035 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
13036 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13037 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13038 # This bug is HP SR number 8606223364.
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13040 $as_echo_n "checking size of long... " >&6; }
13041 if ${ac_cv_sizeof_long+:} false; then :
13042 $as_echo_n "(cached) " >&6
13043 else
13044 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13046 else
13047 if test "$ac_cv_type_long" = yes; then
13048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13050 as_fn_error 77 "cannot compute sizeof (long)
13051 See \`config.log' for more details" "$LINENO" 5; }
13052 else
13053 ac_cv_sizeof_long=0
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13059 $as_echo "$ac_cv_sizeof_long" >&6; }
13063 cat >>confdefs.h <<_ACEOF
13064 #define SIZEOF_LONG $ac_cv_sizeof_long
13065 _ACEOF
13068 esac
13070 if test $acx_cv_header_stdint = stddef.h; then
13071 # Lacking a good header? Test size of everything and deduce all types.
13072 # The cast to long int works around a bug in the HP C Compiler
13073 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13074 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13075 # This bug is HP SR number 8606223364.
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13077 $as_echo_n "checking size of int... " >&6; }
13078 if ${ac_cv_sizeof_int+:} false; then :
13079 $as_echo_n "(cached) " >&6
13080 else
13081 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13083 else
13084 if test "$ac_cv_type_int" = yes; then
13085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13087 as_fn_error 77 "cannot compute sizeof (int)
13088 See \`config.log' for more details" "$LINENO" 5; }
13089 else
13090 ac_cv_sizeof_int=0
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13096 $as_echo "$ac_cv_sizeof_int" >&6; }
13100 cat >>confdefs.h <<_ACEOF
13101 #define SIZEOF_INT $ac_cv_sizeof_int
13102 _ACEOF
13105 # The cast to long int works around a bug in the HP C Compiler
13106 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13107 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13108 # This bug is HP SR number 8606223364.
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13110 $as_echo_n "checking size of short... " >&6; }
13111 if ${ac_cv_sizeof_short+:} false; then :
13112 $as_echo_n "(cached) " >&6
13113 else
13114 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
13116 else
13117 if test "$ac_cv_type_short" = yes; then
13118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13120 as_fn_error 77 "cannot compute sizeof (short)
13121 See \`config.log' for more details" "$LINENO" 5; }
13122 else
13123 ac_cv_sizeof_short=0
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13129 $as_echo "$ac_cv_sizeof_short" >&6; }
13133 cat >>confdefs.h <<_ACEOF
13134 #define SIZEOF_SHORT $ac_cv_sizeof_short
13135 _ACEOF
13138 # The cast to long int works around a bug in the HP C Compiler
13139 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13140 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13141 # This bug is HP SR number 8606223364.
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13143 $as_echo_n "checking size of char... " >&6; }
13144 if ${ac_cv_sizeof_char+:} false; then :
13145 $as_echo_n "(cached) " >&6
13146 else
13147 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
13149 else
13150 if test "$ac_cv_type_char" = yes; then
13151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13153 as_fn_error 77 "cannot compute sizeof (char)
13154 See \`config.log' for more details" "$LINENO" 5; }
13155 else
13156 ac_cv_sizeof_char=0
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13162 $as_echo "$ac_cv_sizeof_char" >&6; }
13166 cat >>confdefs.h <<_ACEOF
13167 #define SIZEOF_CHAR $ac_cv_sizeof_char
13168 _ACEOF
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
13173 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
13174 case "$ac_cv_sizeof_char" in
13175 1) acx_cv_type_int8_t=char ;;
13176 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
13177 esac
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
13179 $as_echo "$acx_cv_type_int8_t" >&6; }
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
13182 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
13183 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
13184 2:*) acx_cv_type_int16_t=int ;;
13185 *:2) acx_cv_type_int16_t=short ;;
13186 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
13187 esac
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
13189 $as_echo "$acx_cv_type_int16_t" >&6; }
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
13192 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
13193 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
13194 4:*) acx_cv_type_int32_t=int ;;
13195 *:4) acx_cv_type_int32_t=long ;;
13196 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
13197 esac
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
13199 $as_echo "$acx_cv_type_int32_t" >&6; }
13202 # These tests are here to make the output prettier
13204 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
13205 case "$ac_cv_sizeof_long" in
13206 8) acx_cv_type_int64_t=long ;;
13207 esac
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
13209 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
13211 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
13214 # Now we can use the above types
13216 if test "$ac_cv_type_uintptr_t" != yes; then
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
13218 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
13219 case $ac_cv_sizeof_void_p in
13220 2) acx_cv_type_intptr_t=int16_t ;;
13221 4) acx_cv_type_intptr_t=int32_t ;;
13222 8) acx_cv_type_intptr_t=int64_t ;;
13223 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
13224 esac
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
13226 $as_echo "$acx_cv_type_intptr_t" >&6; }
13229 # ----------------- done all checks, emit header -------------
13230 ac_config_commands="$ac_config_commands gstdint.h"
13235 for ac_header in sys/mman.h
13236 do :
13237 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13238 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13239 cat >>confdefs.h <<_ACEOF
13240 #define HAVE_SYS_MMAN_H 1
13241 _ACEOF
13245 done
13247 if test "$ac_cv_header_sys_mman_h" = "no"; then
13248 have_mmap=no
13249 else
13250 if test -n "${with_target_subdir}"; then
13251 # When built as a GCC target library, we can't do a link test. We
13252 # simply assume that if we have mman.h, we have mmap.
13253 have_mmap=yes
13254 case "${host}" in
13255 *-*-msdosdjgpp)
13256 # DJGPP has sys/man.h, but no mmap
13257 have_mmap=no ;;
13258 esac
13259 else
13260 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13261 if test "x$ac_cv_func_mmap" = xyes; then :
13262 have_mmap=yes
13263 else
13264 have_mmap=no
13269 if test "$have_mmap" = "no"; then
13270 VIEW_FILE=read.lo
13271 ALLOC_FILE=alloc.lo
13272 else
13273 VIEW_FILE=mmapio.lo
13274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13275 /* end confdefs.h. */
13277 #include <sys/mman.h>
13278 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
13279 #error no MAP_ANONYMOUS
13280 #endif
13282 _ACEOF
13283 if ac_fn_c_try_cpp "$LINENO"; then :
13284 ALLOC_FILE=mmap.lo
13285 else
13286 ALLOC_FILE=alloc.lo
13288 rm -f conftest.err conftest.i conftest.$ac_ext
13293 BACKTRACE_USES_MALLOC=0
13294 if test "$ALLOC_FILE" = "alloc.lo"; then
13295 BACKTRACE_USES_MALLOC=1
13299 # Check for dl_iterate_phdr.
13300 for ac_header in link.h sys/link.h
13301 do :
13302 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13303 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13304 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13305 cat >>confdefs.h <<_ACEOF
13306 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13307 _ACEOF
13311 done
13313 if test "$ac_cv_header_link_h" = "no" -a "$ac_cv_header_sys_link_h" = "no"; then
13314 have_dl_iterate_phdr=no
13315 else
13316 if test -n "${with_target_subdir}"; then
13317 link_h=link.h
13318 if test "$ac_cv_header_link_h" = "no"; then
13319 link_h=sys/link.h
13321 # When built as a GCC target library, we can't do a link test.
13322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13323 /* end confdefs.h. */
13324 #include <$link_h>
13326 _ACEOF
13327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13328 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
13329 have_dl_iterate_phdr=yes
13330 else
13331 have_dl_iterate_phdr=no
13333 rm -f conftest*
13335 else
13336 ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr"
13337 if test "x$ac_cv_func_dl_iterate_phdr" = xyes; then :
13338 have_dl_iterate_phdr=yes
13339 else
13340 have_dl_iterate_phdr=no
13345 if test "$have_dl_iterate_phdr" = "yes"; then
13347 $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
13351 # Check for header file for Mach-O image functions.
13352 for ac_header in mach-o/dyld.h
13353 do :
13354 ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
13355 if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
13356 cat >>confdefs.h <<_ACEOF
13357 #define HAVE_MACH_O_DYLD_H 1
13358 _ACEOF
13362 done
13365 # Check for loadquery.
13366 for ac_header in sys/ldr.h
13367 do :
13368 ac_fn_c_check_header_mongrel "$LINENO" "sys/ldr.h" "ac_cv_header_sys_ldr_h" "$ac_includes_default"
13369 if test "x$ac_cv_header_sys_ldr_h" = xyes; then :
13370 cat >>confdefs.h <<_ACEOF
13371 #define HAVE_SYS_LDR_H 1
13372 _ACEOF
13376 done
13378 if test "$ac_cv_header_sys_ldr_h" = "no"; then
13379 have_loadquery=no
13380 else
13381 if test -n "${with_target_subdir}"; then
13382 # When built as a GCC target library, we can't do a link test.
13383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13384 /* end confdefs.h. */
13385 #include <sys/ldr.h>
13387 _ACEOF
13388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13389 $EGREP "loadquery" >/dev/null 2>&1; then :
13390 have_loadquery=yes
13391 else
13392 have_loadquery=no
13394 rm -f conftest*
13396 else
13397 ac_fn_c_check_func "$LINENO" "loadquery" "ac_cv_func_loadquery"
13398 if test "x$ac_cv_func_loadquery" = xyes; then :
13399 have_loadquery=yes
13400 else
13401 have_loadquery=no
13406 if test "$have_loadquery" = "yes"; then
13408 $as_echo "#define HAVE_LOADQUERY 1" >>confdefs.h
13412 # Check for the fcntl function.
13413 if test -n "${with_target_subdir}"; then
13414 case "${host}" in
13415 *-*-mingw*) have_fcntl=no ;;
13416 *) have_fcntl=yes ;;
13417 esac
13418 else
13419 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
13420 if test "x$ac_cv_func_fcntl" = xyes; then :
13421 have_fcntl=yes
13422 else
13423 have_fcntl=no
13427 if test "$have_fcntl" = "yes"; then
13429 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
13433 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
13434 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
13435 ac_have_decl=1
13436 else
13437 ac_have_decl=0
13440 cat >>confdefs.h <<_ACEOF
13441 #define HAVE_DECL_STRNLEN $ac_have_decl
13442 _ACEOF
13443 ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
13444 if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
13445 ac_have_decl=1
13446 else
13447 ac_have_decl=0
13450 cat >>confdefs.h <<_ACEOF
13451 #define HAVE_DECL_GETPAGESIZE $ac_have_decl
13452 _ACEOF
13454 for ac_func in lstat readlink
13455 do :
13456 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13457 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13458 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13459 cat >>confdefs.h <<_ACEOF
13460 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13461 _ACEOF
13464 done
13467 # Check for getexecname function.
13468 if test -n "${with_target_subdir}"; then
13469 case "${host}" in
13470 *-*-solaris2*) have_getexecname=yes ;;
13471 *) have_getexecname=no ;;
13472 esac
13473 else
13474 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
13475 if test "x$ac_cv_func_getexecname" = xyes; then :
13476 have_getexecname=yes
13477 else
13478 have_getexecname=no
13482 if test "$have_getexecname" = "yes"; then
13484 $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
13488 # Check for sysctl definitions.
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KERN_PROC" >&5
13491 $as_echo_n "checking for KERN_PROC... " >&6; }
13492 if ${libbacktrace_cv_proc+:} false; then :
13493 $as_echo_n "(cached) " >&6
13494 else
13495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13496 /* end confdefs.h. */
13498 #include <sys/types.h>
13499 #include <sys/sysctl.h>
13502 main ()
13504 int mib0 = CTL_KERN; int mib1 = KERN_PROC; int mib2 = KERN_PROC_PATHNAME;
13506 return 0;
13508 _ACEOF
13509 if ac_fn_c_try_compile "$LINENO"; then :
13510 libbacktrace_cv_proc=yes
13511 else
13512 libbacktrace_cv_proc=no
13514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_proc" >&5
13517 $as_echo "$libbacktrace_cv_proc" >&6; }
13518 if test "$libbacktrace_cv_proc" = "yes"; then
13520 $as_echo "#define HAVE_KERN_PROC 1" >>confdefs.h
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for KERN_PROG_ARGS" >&5
13525 $as_echo_n "checking for KERN_PROG_ARGS... " >&6; }
13526 if ${libbacktrace_cv_procargs+:} false; then :
13527 $as_echo_n "(cached) " >&6
13528 else
13529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13530 /* end confdefs.h. */
13532 #include <sys/types.h>
13533 #include <sys/sysctl.h>
13536 main ()
13538 int mib0 = CTL_KERN; int mib1 = KERN_PROC_ARGS; int mib2 = KERN_PROC_PATHNAME;
13540 return 0;
13542 _ACEOF
13543 if ac_fn_c_try_compile "$LINENO"; then :
13544 libbacktrace_cv_procargs=yes
13545 else
13546 libbacktrace_cv_procargs=no
13548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_procargs" >&5
13551 $as_echo "$libbacktrace_cv_procargs" >&6; }
13552 if test "$libbacktrace_cv_procargs" = "yes"; then
13554 $as_echo "#define HAVE_KERN_PROC_ARGS 1" >>confdefs.h
13558 # Check for the clock_gettime function.
13559 for ac_func in clock_gettime
13560 do :
13561 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
13562 if test "x$ac_cv_func_clock_gettime" = xyes; then :
13563 cat >>confdefs.h <<_ACEOF
13564 #define HAVE_CLOCK_GETTIME 1
13565 _ACEOF
13568 done
13570 clock_gettime_link=
13571 # At least for glibc, clock_gettime is in librt. But don't
13572 # pull that in if it still doesn't give us the function we want. This
13573 # test is copied from libgomp, and modified to not link in -lrt as
13574 # we're using this for test timing only.
13575 if test "$ac_cv_func_clock_gettime" = no; then
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13577 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13578 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13579 $as_echo_n "(cached) " >&6
13580 else
13581 ac_check_lib_save_LIBS=$LIBS
13582 LIBS="-lrt $LIBS"
13583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13584 /* end confdefs.h. */
13586 /* Override any GCC internal prototype to avoid an error.
13587 Use char because int might match the return type of a GCC
13588 builtin and then its argument prototype would still apply. */
13589 #ifdef __cplusplus
13590 extern "C"
13591 #endif
13592 char clock_gettime ();
13594 main ()
13596 return clock_gettime ();
13598 return 0;
13600 _ACEOF
13601 if ac_fn_c_try_link "$LINENO"; then :
13602 ac_cv_lib_rt_clock_gettime=yes
13603 else
13604 ac_cv_lib_rt_clock_gettime=no
13606 rm -f core conftest.err conftest.$ac_objext \
13607 conftest$ac_exeext conftest.$ac_ext
13608 LIBS=$ac_check_lib_save_LIBS
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13611 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13612 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13613 CLOCK_GETTIME_LINK=-lrt
13615 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13623 $as_echo_n "checking whether -pthread is supported... " >&6; }
13624 if ${libgo_cv_lib_pthread+:} false; then :
13625 $as_echo_n "(cached) " >&6
13626 else
13627 CFLAGS_hold=$CFLAGS
13628 CFLAGS="$CFLAGS -pthread"
13629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13630 /* end confdefs.h. */
13631 int i;
13632 _ACEOF
13633 if ac_fn_c_try_compile "$LINENO"; then :
13634 libgo_cv_lib_pthread=yes
13635 else
13636 libgo_cv_lib_pthread=no
13638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13639 CFLAGS=$CFLAGS_hold
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
13642 $as_echo "$libgo_cv_lib_pthread" >&6; }
13643 PTHREAD_CFLAGS=
13644 if test "$libgo_cv_lib_pthread" = yes; then
13645 PTHREAD_CFLAGS=-pthread
13649 if test "$libgo_cv_lib_pthread" = yes; then
13650 HAVE_PTHREAD_TRUE=
13651 HAVE_PTHREAD_FALSE='#'
13652 else
13653 HAVE_PTHREAD_TRUE='#'
13654 HAVE_PTHREAD_FALSE=
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -gdwarf-5 is supported" >&5
13659 $as_echo_n "checking whether -gdwarf-5 is supported... " >&6; }
13660 if ${libbacktrace_cv_lib_dwarf5+:} false; then :
13661 $as_echo_n "(cached) " >&6
13662 else
13663 CFLAGS_hold=$CFLAGS
13664 CFLAGS="$CFLAGS -gdwarf-5"
13665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13666 /* end confdefs.h. */
13667 int i;
13669 main ()
13671 return 0;
13673 return 0;
13675 _ACEOF
13676 if ac_fn_c_try_link "$LINENO"; then :
13677 libbacktrace_cv_lib_dwarf5=yes
13678 else
13679 libbacktrace_cv_lib_dwarf5=no
13681 rm -f core conftest.err conftest.$ac_objext \
13682 conftest$ac_exeext conftest.$ac_ext
13683 CFLAGS=$CFLAGS_hold
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_lib_dwarf5" >&5
13686 $as_echo "$libbacktrace_cv_lib_dwarf5" >&6; }
13687 if test "$libbacktrace_cv_lib_dwarf5" = yes; then
13688 HAVE_DWARF5_TRUE=
13689 HAVE_DWARF5_FALSE='#'
13690 else
13691 HAVE_DWARF5_TRUE='#'
13692 HAVE_DWARF5_FALSE=
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
13697 $as_echo_n "checking for compress in -lz... " >&6; }
13698 if ${ac_cv_lib_z_compress+:} false; then :
13699 $as_echo_n "(cached) " >&6
13700 else
13701 ac_check_lib_save_LIBS=$LIBS
13702 LIBS="-lz $LIBS"
13703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13704 /* end confdefs.h. */
13706 /* Override any GCC internal prototype to avoid an error.
13707 Use char because int might match the return type of a GCC
13708 builtin and then its argument prototype would still apply. */
13709 #ifdef __cplusplus
13710 extern "C"
13711 #endif
13712 char compress ();
13714 main ()
13716 return compress ();
13718 return 0;
13720 _ACEOF
13721 if ac_fn_c_try_link "$LINENO"; then :
13722 ac_cv_lib_z_compress=yes
13723 else
13724 ac_cv_lib_z_compress=no
13726 rm -f core conftest.err conftest.$ac_objext \
13727 conftest$ac_exeext conftest.$ac_ext
13728 LIBS=$ac_check_lib_save_LIBS
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
13731 $as_echo "$ac_cv_lib_z_compress" >&6; }
13732 if test "x$ac_cv_lib_z_compress" = xyes; then :
13734 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
13738 if test "$ac_cv_lib_z_compress" = yes; then
13739 HAVE_ZLIB_TRUE=
13740 HAVE_ZLIB_FALSE='#'
13741 else
13742 HAVE_ZLIB_TRUE='#'
13743 HAVE_ZLIB_FALSE=
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --build-id is supported" >&5
13748 $as_echo_n "checking whether --build-id is supported... " >&6; }
13749 if ${libbacktrace_cv_ld_buildid+:} false; then :
13750 $as_echo_n "(cached) " >&6
13751 else
13752 LDFLAGS_hold=$LDFLAGS
13753 LDFLAGS="$LDFLAGS -Wl,--build-id"
13754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13755 /* end confdefs.h. */
13758 main ()
13762 return 0;
13764 _ACEOF
13765 if ac_fn_c_try_link "$LINENO"; then :
13766 libbacktrace_cv_ld_buildid=yes
13767 else
13768 libbacktrace_cv_ld_buildid=no
13770 rm -f core conftest.err conftest.$ac_objext \
13771 conftest$ac_exeext conftest.$ac_ext
13772 LDFLAGS=$LDFLAGS_hold
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_ld_buildid" >&5
13775 $as_echo "$libbacktrace_cv_ld_buildid" >&6; }
13776 if test "$libbacktrace_cv_ld_buildid" = yes; then
13777 HAVE_BUILDID_TRUE=
13778 HAVE_BUILDID_FALSE='#'
13779 else
13780 HAVE_BUILDID_TRUE='#'
13781 HAVE_BUILDID_FALSE=
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections is supported" >&5
13786 $as_echo_n "checking whether --compress-debug-sections is supported... " >&6; }
13787 if ${libgo_cv_ld_compress+:} false; then :
13788 $as_echo_n "(cached) " >&6
13789 else
13790 LDFLAGS_hold=$LDFLAGS
13791 LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zlib-gnu"
13792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13793 /* end confdefs.h. */
13796 main ()
13800 return 0;
13802 _ACEOF
13803 if ac_fn_c_try_link "$LINENO"; then :
13804 libgo_cv_ld_compress=yes
13805 else
13806 libgo_cv_ld_compress=no
13808 rm -f core conftest.err conftest.$ac_objext \
13809 conftest$ac_exeext conftest.$ac_ext
13810 LDFLAGS=$LDFLAGS_hold
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress" >&5
13813 $as_echo "$libgo_cv_ld_compress" >&6; }
13814 if test "$libgo_cv_ld_compress" = yes; then
13815 HAVE_COMPRESSED_DEBUG_TRUE=
13816 HAVE_COMPRESSED_DEBUG_FALSE='#'
13817 else
13818 HAVE_COMPRESSED_DEBUG_TRUE='#'
13819 HAVE_COMPRESSED_DEBUG_FALSE=
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD_compress in -lzstd" >&5
13824 $as_echo_n "checking for ZSTD_compress in -lzstd... " >&6; }
13825 if ${ac_cv_lib_zstd_ZSTD_compress+:} false; then :
13826 $as_echo_n "(cached) " >&6
13827 else
13828 ac_check_lib_save_LIBS=$LIBS
13829 LIBS="-lzstd $LIBS"
13830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13831 /* end confdefs.h. */
13833 /* Override any GCC internal prototype to avoid an error.
13834 Use char because int might match the return type of a GCC
13835 builtin and then its argument prototype would still apply. */
13836 #ifdef __cplusplus
13837 extern "C"
13838 #endif
13839 char ZSTD_compress ();
13841 main ()
13843 return ZSTD_compress ();
13845 return 0;
13847 _ACEOF
13848 if ac_fn_c_try_link "$LINENO"; then :
13849 ac_cv_lib_zstd_ZSTD_compress=yes
13850 else
13851 ac_cv_lib_zstd_ZSTD_compress=no
13853 rm -f core conftest.err conftest.$ac_objext \
13854 conftest$ac_exeext conftest.$ac_ext
13855 LIBS=$ac_check_lib_save_LIBS
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_compress" >&5
13858 $as_echo "$ac_cv_lib_zstd_ZSTD_compress" >&6; }
13859 if test "x$ac_cv_lib_zstd_ZSTD_compress" = xyes; then :
13861 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
13865 if test "$ac_cv_lib_zstd_ZSTD_compress" = yes; then
13866 HAVE_ZSTD_TRUE=
13867 HAVE_ZSTD_FALSE='#'
13868 else
13869 HAVE_ZSTD_TRUE='#'
13870 HAVE_ZSTD_FALSE=
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections=zstd is supported" >&5
13875 $as_echo_n "checking whether --compress-debug-sections=zstd is supported... " >&6; }
13876 if ${libgo_cv_ld_compress_zstd+:} false; then :
13877 $as_echo_n "(cached) " >&6
13878 else
13879 LDFLAGS_hold=$LDFLAGS
13880 LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zstd"
13881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13882 /* end confdefs.h. */
13885 main ()
13889 return 0;
13891 _ACEOF
13892 if ac_fn_c_try_link "$LINENO"; then :
13893 libgo_cv_ld_compress_zstd=yes
13894 else
13895 libgo_cv_ld_compress_zstd=no
13897 rm -f core conftest.err conftest.$ac_objext \
13898 conftest$ac_exeext conftest.$ac_ext
13899 LDFLAGS=$LDFLAGS_hold
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress_zstd" >&5
13902 $as_echo "$libgo_cv_ld_compress_zstd" >&6; }
13903 if test "$libgo_cv_ld_compress_zstd" = yes; then
13904 HAVE_COMPRESSED_DEBUG_ZSTD_TRUE=
13905 HAVE_COMPRESSED_DEBUG_ZSTD_FALSE='#'
13906 else
13907 HAVE_COMPRESSED_DEBUG_ZSTD_TRUE='#'
13908 HAVE_COMPRESSED_DEBUG_ZSTD_FALSE=
13913 # Extract the first word of "objcopy", so it can be a program name with args.
13914 set dummy objcopy; ac_word=$2
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13916 $as_echo_n "checking for $ac_word... " >&6; }
13917 if ${ac_cv_prog_OBJCOPY+:} false; then :
13918 $as_echo_n "(cached) " >&6
13919 else
13920 if test -n "$OBJCOPY"; then
13921 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13922 else
13923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13924 for as_dir in $PATH
13926 IFS=$as_save_IFS
13927 test -z "$as_dir" && as_dir=.
13928 for ac_exec_ext in '' $ac_executable_extensions; do
13929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13930 ac_cv_prog_OBJCOPY="objcopy"
13931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13932 break 2
13934 done
13935 done
13936 IFS=$as_save_IFS
13940 OBJCOPY=$ac_cv_prog_OBJCOPY
13941 if test -n "$OBJCOPY"; then
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13943 $as_echo "$OBJCOPY" >&6; }
13944 else
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13946 $as_echo "no" >&6; }
13950 # Extract the first word of "readelf", so it can be a program name with args.
13951 set dummy readelf; ac_word=$2
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13953 $as_echo_n "checking for $ac_word... " >&6; }
13954 if ${ac_cv_prog_READELF+:} false; then :
13955 $as_echo_n "(cached) " >&6
13956 else
13957 if test -n "$READELF"; then
13958 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13959 else
13960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13961 for as_dir in $PATH
13963 IFS=$as_save_IFS
13964 test -z "$as_dir" && as_dir=.
13965 for ac_exec_ext in '' $ac_executable_extensions; do
13966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13967 ac_cv_prog_READELF="readelf"
13968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13969 break 2
13971 done
13972 done
13973 IFS=$as_save_IFS
13977 READELF=$ac_cv_prog_READELF
13978 if test -n "$READELF"; then
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
13980 $as_echo "$READELF" >&6; }
13981 else
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13983 $as_echo "no" >&6; }
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether objcopy supports debuglink" >&5
13988 $as_echo_n "checking whether objcopy supports debuglink... " >&6; }
13989 if ${libbacktrace_cv_objcopy_debuglink+:} false; then :
13990 $as_echo_n "(cached) " >&6
13991 else
13992 if test -n "${with_target_subdir}"; then
13993 libbacktrace_cv_objcopy_debuglink=no
13994 elif ! test -n "${OBJCOPY}"; then
13995 libbacktrace_cv_objcopy_debuglink=no
13996 elif ${OBJCOPY} --help | grep add-gnu-debuglink >/dev/null 2>&1; then
13997 libbacktrace_cv_objcopy_debuglink=yes
13998 else
13999 libbacktrace_cv_objcopy_debuglink=no
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_objcopy_debuglink" >&5
14003 $as_echo "$libbacktrace_cv_objcopy_debuglink" >&6; }
14004 if test "$libbacktrace_cv_objcopy_debuglink" = yes; then
14005 HAVE_OBJCOPY_DEBUGLINK_TRUE=
14006 HAVE_OBJCOPY_DEBUGLINK_FALSE='#'
14007 else
14008 HAVE_OBJCOPY_DEBUGLINK_TRUE='#'
14009 HAVE_OBJCOPY_DEBUGLINK_FALSE=
14014 # Extract the first word of "dsymutil", so it can be a program name with args.
14015 set dummy dsymutil; ac_word=$2
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14017 $as_echo_n "checking for $ac_word... " >&6; }
14018 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14019 $as_echo_n "(cached) " >&6
14020 else
14021 if test -n "$DSYMUTIL"; then
14022 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14023 else
14024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14025 for as_dir in $PATH
14027 IFS=$as_save_IFS
14028 test -z "$as_dir" && as_dir=.
14029 for ac_exec_ext in '' $ac_executable_extensions; do
14030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14031 ac_cv_prog_DSYMUTIL="dsymutil"
14032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14033 break 2
14035 done
14036 done
14037 IFS=$as_save_IFS
14041 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14042 if test -n "$DSYMUTIL"; then
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14044 $as_echo "$DSYMUTIL" >&6; }
14045 else
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14047 $as_echo "no" >&6; }
14051 if test -n "${DSYMUTIL}" -a "$FORMAT_FILE" = "macho.lo"; then
14052 USE_DSYMUTIL_TRUE=
14053 USE_DSYMUTIL_FALSE='#'
14054 else
14055 USE_DSYMUTIL_TRUE='#'
14056 USE_DSYMUTIL_FALSE=
14061 # Extract the first word of "nm", so it can be a program name with args.
14062 set dummy nm; ac_word=$2
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14064 $as_echo_n "checking for $ac_word... " >&6; }
14065 if ${ac_cv_prog_NM+:} false; then :
14066 $as_echo_n "(cached) " >&6
14067 else
14068 if test -n "$NM"; then
14069 ac_cv_prog_NM="$NM" # Let the user override the test.
14070 else
14071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14072 for as_dir in $PATH
14074 IFS=$as_save_IFS
14075 test -z "$as_dir" && as_dir=.
14076 for ac_exec_ext in '' $ac_executable_extensions; do
14077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14078 ac_cv_prog_NM="nm"
14079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14080 break 2
14082 done
14083 done
14084 IFS=$as_save_IFS
14088 NM=$ac_cv_prog_NM
14089 if test -n "$NM"; then
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
14091 $as_echo "$NM" >&6; }
14092 else
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14094 $as_echo "no" >&6; }
14099 # Extract the first word of "xz", so it can be a program name with args.
14100 set dummy xz; ac_word=$2
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14102 $as_echo_n "checking for $ac_word... " >&6; }
14103 if ${ac_cv_prog_XZ+:} false; then :
14104 $as_echo_n "(cached) " >&6
14105 else
14106 if test -n "$XZ"; then
14107 ac_cv_prog_XZ="$XZ" # Let the user override the test.
14108 else
14109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14110 for as_dir in $PATH
14112 IFS=$as_save_IFS
14113 test -z "$as_dir" && as_dir=.
14114 for ac_exec_ext in '' $ac_executable_extensions; do
14115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14116 ac_cv_prog_XZ="xz"
14117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14118 break 2
14120 done
14121 done
14122 IFS=$as_save_IFS
14126 XZ=$ac_cv_prog_XZ
14127 if test -n "$XZ"; then
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XZ" >&5
14129 $as_echo "$XZ" >&6; }
14130 else
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14132 $as_echo "no" >&6; }
14136 if test "$XZ" != ""; then
14137 HAVE_XZ_TRUE=
14138 HAVE_XZ_FALSE='#'
14139 else
14140 HAVE_XZ_TRUE='#'
14141 HAVE_XZ_FALSE=
14144 # Extract the first word of "comm", so it can be a program name with args.
14145 set dummy comm; ac_word=$2
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14147 $as_echo_n "checking for $ac_word... " >&6; }
14148 if ${ac_cv_prog_COMM+:} false; then :
14149 $as_echo_n "(cached) " >&6
14150 else
14151 if test -n "$COMM"; then
14152 ac_cv_prog_COMM="$COMM" # Let the user override the test.
14153 else
14154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14155 for as_dir in $PATH
14157 IFS=$as_save_IFS
14158 test -z "$as_dir" && as_dir=.
14159 for ac_exec_ext in '' $ac_executable_extensions; do
14160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14161 ac_cv_prog_COMM="comm"
14162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14163 break 2
14165 done
14166 done
14167 IFS=$as_save_IFS
14171 COMM=$ac_cv_prog_COMM
14172 if test -n "$COMM"; then
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
14174 $as_echo "$COMM" >&6; }
14175 else
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14177 $as_echo "no" >&6; }
14181 if test "$COMM" != ""; then
14182 HAVE_COMM_TRUE=
14183 HAVE_COMM_FALSE='#'
14184 else
14185 HAVE_COMM_TRUE='#'
14186 HAVE_COMM_FALSE=
14190 if test "${with_target_subdir}" = "" -a "$FORMAT_FILE" = "elf.lo" -a "${OBJCOPY}" != "" -a "${NM}" != "" -a "${XZ}" != "" -a "${COMM}" != ""; then
14191 HAVE_MINIDEBUG_TRUE=
14192 HAVE_MINIDEBUG_FALSE='#'
14193 else
14194 HAVE_MINIDEBUG_TRUE='#'
14195 HAVE_MINIDEBUG_FALSE=
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_auto_decoder in -llzma" >&5
14200 $as_echo_n "checking for lzma_auto_decoder in -llzma... " >&6; }
14201 if ${ac_cv_lib_lzma_lzma_auto_decoder+:} false; then :
14202 $as_echo_n "(cached) " >&6
14203 else
14204 ac_check_lib_save_LIBS=$LIBS
14205 LIBS="-llzma $LIBS"
14206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14207 /* end confdefs.h. */
14209 /* Override any GCC internal prototype to avoid an error.
14210 Use char because int might match the return type of a GCC
14211 builtin and then its argument prototype would still apply. */
14212 #ifdef __cplusplus
14213 extern "C"
14214 #endif
14215 char lzma_auto_decoder ();
14217 main ()
14219 return lzma_auto_decoder ();
14221 return 0;
14223 _ACEOF
14224 if ac_fn_c_try_link "$LINENO"; then :
14225 ac_cv_lib_lzma_lzma_auto_decoder=yes
14226 else
14227 ac_cv_lib_lzma_lzma_auto_decoder=no
14229 rm -f core conftest.err conftest.$ac_objext \
14230 conftest$ac_exeext conftest.$ac_ext
14231 LIBS=$ac_check_lib_save_LIBS
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_auto_decoder" >&5
14234 $as_echo "$ac_cv_lib_lzma_lzma_auto_decoder" >&6; }
14235 if test "x$ac_cv_lib_lzma_lzma_auto_decoder" = xyes; then :
14237 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
14241 if test "$ac_cv_lib_lzma_lzma_auto_decoder" = yes; then
14242 HAVE_LIBLZMA_TRUE=
14243 HAVE_LIBLZMA_FALSE='#'
14244 else
14245 HAVE_LIBLZMA_TRUE='#'
14246 HAVE_LIBLZMA_FALSE=
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5
14251 $as_echo_n "checking whether tests can run... " >&6; }
14252 if ${libbacktrace_cv_sys_native+:} false; then :
14253 $as_echo_n "(cached) " >&6
14254 else
14255 if test "$cross_compiling" = yes; then :
14256 libbacktrace_cv_sys_native=no
14257 else
14258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14259 /* end confdefs.h. */
14262 main ()
14264 return 0;
14266 return 0;
14268 _ACEOF
14269 if ac_fn_c_try_run "$LINENO"; then :
14270 libbacktrace_cv_sys_native=yes
14271 else
14272 libbacktrace_cv_sys_native=no
14274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14275 conftest.$ac_objext conftest.beam conftest.$ac_ext
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5
14280 $as_echo "$libbacktrace_cv_sys_native" >&6; }
14281 if test "$libbacktrace_cv_sys_native" = "yes"; then
14282 NATIVE_TRUE=
14283 NATIVE_FALSE='#'
14284 else
14285 NATIVE_TRUE='#'
14286 NATIVE_FALSE=
14290 if test "${multilib}" = "yes"; then
14291 multilib_arg="--enable-multilib"
14292 else
14293 multilib_arg=
14296 ac_config_files="$ac_config_files Makefile backtrace-supported.h"
14298 ac_config_files="$ac_config_files install-debuginfo-for-buildid.sh"
14301 # We need multilib support, but only if configuring for the target.
14302 ac_config_commands="$ac_config_commands default"
14305 cat >confcache <<\_ACEOF
14306 # This file is a shell script that caches the results of configure
14307 # tests run on this system so they can be shared between configure
14308 # scripts and configure runs, see configure's option --config-cache.
14309 # It is not useful on other systems. If it contains results you don't
14310 # want to keep, you may remove or edit it.
14312 # config.status only pays attention to the cache file if you give it
14313 # the --recheck option to rerun configure.
14315 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14316 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14317 # following values.
14319 _ACEOF
14321 # The following way of writing the cache mishandles newlines in values,
14322 # but we know of no workaround that is simple, portable, and efficient.
14323 # So, we kill variables containing newlines.
14324 # Ultrix sh set writes to stderr and can't be redirected directly,
14325 # and sets the high bit in the cache file unless we assign to the vars.
14327 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14328 eval ac_val=\$$ac_var
14329 case $ac_val in #(
14330 *${as_nl}*)
14331 case $ac_var in #(
14332 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14333 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14334 esac
14335 case $ac_var in #(
14336 _ | IFS | as_nl) ;; #(
14337 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14338 *) { eval $ac_var=; unset $ac_var;} ;;
14339 esac ;;
14340 esac
14341 done
14343 (set) 2>&1 |
14344 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14345 *${as_nl}ac_space=\ *)
14346 # `set' does not quote correctly, so add quotes: double-quote
14347 # substitution turns \\\\ into \\, and sed turns \\ into \.
14348 sed -n \
14349 "s/'/'\\\\''/g;
14350 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14351 ;; #(
14353 # `set' quotes correctly as required by POSIX, so do not add quotes.
14354 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14356 esac |
14357 sort
14359 sed '
14360 /^ac_cv_env_/b end
14361 t clear
14362 :clear
14363 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14364 t end
14365 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14366 :end' >>confcache
14367 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14368 if test -w "$cache_file"; then
14369 if test "x$cache_file" != "x/dev/null"; then
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14371 $as_echo "$as_me: updating cache $cache_file" >&6;}
14372 if test ! -f "$cache_file" || test -h "$cache_file"; then
14373 cat confcache >"$cache_file"
14374 else
14375 case $cache_file in #(
14376 */* | ?:*)
14377 mv -f confcache "$cache_file"$$ &&
14378 mv -f "$cache_file"$$ "$cache_file" ;; #(
14380 mv -f confcache "$cache_file" ;;
14381 esac
14384 else
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14386 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14389 rm -f confcache
14391 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14392 # Let make expand exec_prefix.
14393 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14395 DEFS=-DHAVE_CONFIG_H
14397 ac_libobjs=
14398 ac_ltlibobjs=
14400 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14401 # 1. Remove the extension, and $U if already installed.
14402 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14403 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14404 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14405 # will be set to the directory where LIBOBJS objects are built.
14406 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14407 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14408 done
14409 LIBOBJS=$ac_libobjs
14411 LTLIBOBJS=$ac_ltlibobjs
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14415 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14416 if test -n "$am_sleep_pid"; then
14417 # Hide warnings about reused PIDs.
14418 wait $am_sleep_pid 2>/dev/null
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14421 $as_echo "done" >&6; }
14422 if test -n "$EXEEXT"; then
14423 am__EXEEXT_TRUE=
14424 am__EXEEXT_FALSE='#'
14425 else
14426 am__EXEEXT_TRUE='#'
14427 am__EXEEXT_FALSE=
14430 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14431 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14432 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14434 if test -z "${HAVE_DWZ_TRUE}" && test -z "${HAVE_DWZ_FALSE}"; then
14435 as_fn_error $? "conditional \"HAVE_DWZ\" was never defined.
14436 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14438 if test -z "${HAVE_ELF_TRUE}" && test -z "${HAVE_ELF_FALSE}"; then
14439 as_fn_error $? "conditional \"HAVE_ELF\" was never defined.
14440 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14442 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
14443 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
14444 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14446 if test -z "${HAVE_DWARF5_TRUE}" && test -z "${HAVE_DWARF5_FALSE}"; then
14447 as_fn_error $? "conditional \"HAVE_DWARF5\" was never defined.
14448 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14450 if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
14451 as_fn_error $? "conditional \"HAVE_ZLIB\" was never defined.
14452 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14454 if test -z "${HAVE_BUILDID_TRUE}" && test -z "${HAVE_BUILDID_FALSE}"; then
14455 as_fn_error $? "conditional \"HAVE_BUILDID\" was never defined.
14456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14458 if test -z "${HAVE_COMPRESSED_DEBUG_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_FALSE}"; then
14459 as_fn_error $? "conditional \"HAVE_COMPRESSED_DEBUG\" was never defined.
14460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14462 if test -z "${HAVE_ZSTD_TRUE}" && test -z "${HAVE_ZSTD_FALSE}"; then
14463 as_fn_error $? "conditional \"HAVE_ZSTD\" was never defined.
14464 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14466 if test -z "${HAVE_COMPRESSED_DEBUG_ZSTD_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_ZSTD_FALSE}"; then
14467 as_fn_error $? "conditional \"HAVE_COMPRESSED_DEBUG_ZSTD\" was never defined.
14468 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14470 if test -z "${HAVE_OBJCOPY_DEBUGLINK_TRUE}" && test -z "${HAVE_OBJCOPY_DEBUGLINK_FALSE}"; then
14471 as_fn_error $? "conditional \"HAVE_OBJCOPY_DEBUGLINK\" was never defined.
14472 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14474 if test -z "${USE_DSYMUTIL_TRUE}" && test -z "${USE_DSYMUTIL_FALSE}"; then
14475 as_fn_error $? "conditional \"USE_DSYMUTIL\" was never defined.
14476 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14478 if test -z "${HAVE_XZ_TRUE}" && test -z "${HAVE_XZ_FALSE}"; then
14479 as_fn_error $? "conditional \"HAVE_XZ\" was never defined.
14480 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14482 if test -z "${HAVE_COMM_TRUE}" && test -z "${HAVE_COMM_FALSE}"; then
14483 as_fn_error $? "conditional \"HAVE_COMM\" was never defined.
14484 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14486 if test -z "${HAVE_MINIDEBUG_TRUE}" && test -z "${HAVE_MINIDEBUG_FALSE}"; then
14487 as_fn_error $? "conditional \"HAVE_MINIDEBUG\" was never defined.
14488 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14490 if test -z "${HAVE_LIBLZMA_TRUE}" && test -z "${HAVE_LIBLZMA_FALSE}"; then
14491 as_fn_error $? "conditional \"HAVE_LIBLZMA\" was never defined.
14492 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14494 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
14495 as_fn_error $? "conditional \"NATIVE\" was never defined.
14496 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14499 : "${CONFIG_STATUS=./config.status}"
14500 ac_write_fail=0
14501 ac_clean_files_save=$ac_clean_files
14502 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14504 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14505 as_write_fail=0
14506 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14507 #! $SHELL
14508 # Generated by $as_me.
14509 # Run this file to recreate the current configuration.
14510 # Compiler output produced by configure, useful for debugging
14511 # configure, is in config.log if it exists.
14513 debug=false
14514 ac_cs_recheck=false
14515 ac_cs_silent=false
14517 SHELL=\${CONFIG_SHELL-$SHELL}
14518 export SHELL
14519 _ASEOF
14520 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14521 ## -------------------- ##
14522 ## M4sh Initialization. ##
14523 ## -------------------- ##
14525 # Be more Bourne compatible
14526 DUALCASE=1; export DUALCASE # for MKS sh
14527 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14528 emulate sh
14529 NULLCMD=:
14530 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14531 # is contrary to our usage. Disable this feature.
14532 alias -g '${1+"$@"}'='"$@"'
14533 setopt NO_GLOB_SUBST
14534 else
14535 case `(set -o) 2>/dev/null` in #(
14536 *posix*) :
14537 set -o posix ;; #(
14538 *) :
14540 esac
14544 as_nl='
14546 export as_nl
14547 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14548 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14549 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14550 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14551 # Prefer a ksh shell builtin over an external printf program on Solaris,
14552 # but without wasting forks for bash or zsh.
14553 if test -z "$BASH_VERSION$ZSH_VERSION" \
14554 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14555 as_echo='print -r --'
14556 as_echo_n='print -rn --'
14557 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14558 as_echo='printf %s\n'
14559 as_echo_n='printf %s'
14560 else
14561 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14562 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14563 as_echo_n='/usr/ucb/echo -n'
14564 else
14565 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14566 as_echo_n_body='eval
14567 arg=$1;
14568 case $arg in #(
14569 *"$as_nl"*)
14570 expr "X$arg" : "X\\(.*\\)$as_nl";
14571 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14572 esac;
14573 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14575 export as_echo_n_body
14576 as_echo_n='sh -c $as_echo_n_body as_echo'
14578 export as_echo_body
14579 as_echo='sh -c $as_echo_body as_echo'
14582 # The user is always right.
14583 if test "${PATH_SEPARATOR+set}" != set; then
14584 PATH_SEPARATOR=:
14585 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14586 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14587 PATH_SEPARATOR=';'
14592 # IFS
14593 # We need space, tab and new line, in precisely that order. Quoting is
14594 # there to prevent editors from complaining about space-tab.
14595 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14596 # splitting by setting IFS to empty value.)
14597 IFS=" "" $as_nl"
14599 # Find who we are. Look in the path if we contain no directory separator.
14600 as_myself=
14601 case $0 in #((
14602 *[\\/]* ) as_myself=$0 ;;
14603 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14604 for as_dir in $PATH
14606 IFS=$as_save_IFS
14607 test -z "$as_dir" && as_dir=.
14608 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14609 done
14610 IFS=$as_save_IFS
14613 esac
14614 # We did not find ourselves, most probably we were run as `sh COMMAND'
14615 # in which case we are not to be found in the path.
14616 if test "x$as_myself" = x; then
14617 as_myself=$0
14619 if test ! -f "$as_myself"; then
14620 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14621 exit 1
14624 # Unset variables that we do not need and which cause bugs (e.g. in
14625 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14626 # suppresses any "Segmentation fault" message there. '((' could
14627 # trigger a bug in pdksh 5.2.14.
14628 for as_var in BASH_ENV ENV MAIL MAILPATH
14629 do eval test x\${$as_var+set} = xset \
14630 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14631 done
14632 PS1='$ '
14633 PS2='> '
14634 PS4='+ '
14636 # NLS nuisances.
14637 LC_ALL=C
14638 export LC_ALL
14639 LANGUAGE=C
14640 export LANGUAGE
14642 # CDPATH.
14643 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14646 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14647 # ----------------------------------------
14648 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14649 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14650 # script with STATUS, using 1 if that was 0.
14651 as_fn_error ()
14653 as_status=$1; test $as_status -eq 0 && as_status=1
14654 if test "$4"; then
14655 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14656 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14658 $as_echo "$as_me: error: $2" >&2
14659 as_fn_exit $as_status
14660 } # as_fn_error
14663 # as_fn_set_status STATUS
14664 # -----------------------
14665 # Set $? to STATUS, without forking.
14666 as_fn_set_status ()
14668 return $1
14669 } # as_fn_set_status
14671 # as_fn_exit STATUS
14672 # -----------------
14673 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14674 as_fn_exit ()
14676 set +e
14677 as_fn_set_status $1
14678 exit $1
14679 } # as_fn_exit
14681 # as_fn_unset VAR
14682 # ---------------
14683 # Portably unset VAR.
14684 as_fn_unset ()
14686 { eval $1=; unset $1;}
14688 as_unset=as_fn_unset
14689 # as_fn_append VAR VALUE
14690 # ----------------------
14691 # Append the text in VALUE to the end of the definition contained in VAR. Take
14692 # advantage of any shell optimizations that allow amortized linear growth over
14693 # repeated appends, instead of the typical quadratic growth present in naive
14694 # implementations.
14695 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14696 eval 'as_fn_append ()
14698 eval $1+=\$2
14700 else
14701 as_fn_append ()
14703 eval $1=\$$1\$2
14705 fi # as_fn_append
14707 # as_fn_arith ARG...
14708 # ------------------
14709 # Perform arithmetic evaluation on the ARGs, and store the result in the
14710 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14711 # must be portable across $(()) and expr.
14712 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14713 eval 'as_fn_arith ()
14715 as_val=$(( $* ))
14717 else
14718 as_fn_arith ()
14720 as_val=`expr "$@" || test $? -eq 1`
14722 fi # as_fn_arith
14725 if expr a : '\(a\)' >/dev/null 2>&1 &&
14726 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14727 as_expr=expr
14728 else
14729 as_expr=false
14732 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14733 as_basename=basename
14734 else
14735 as_basename=false
14738 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14739 as_dirname=dirname
14740 else
14741 as_dirname=false
14744 as_me=`$as_basename -- "$0" ||
14745 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14746 X"$0" : 'X\(//\)$' \| \
14747 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14748 $as_echo X/"$0" |
14749 sed '/^.*\/\([^/][^/]*\)\/*$/{
14750 s//\1/
14753 /^X\/\(\/\/\)$/{
14754 s//\1/
14757 /^X\/\(\/\).*/{
14758 s//\1/
14761 s/.*/./; q'`
14763 # Avoid depending upon Character Ranges.
14764 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14765 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14766 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14767 as_cr_digits='0123456789'
14768 as_cr_alnum=$as_cr_Letters$as_cr_digits
14770 ECHO_C= ECHO_N= ECHO_T=
14771 case `echo -n x` in #(((((
14772 -n*)
14773 case `echo 'xy\c'` in
14774 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14775 xy) ECHO_C='\c';;
14776 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14777 ECHO_T=' ';;
14778 esac;;
14780 ECHO_N='-n';;
14781 esac
14783 rm -f conf$$ conf$$.exe conf$$.file
14784 if test -d conf$$.dir; then
14785 rm -f conf$$.dir/conf$$.file
14786 else
14787 rm -f conf$$.dir
14788 mkdir conf$$.dir 2>/dev/null
14790 if (echo >conf$$.file) 2>/dev/null; then
14791 if ln -s conf$$.file conf$$ 2>/dev/null; then
14792 as_ln_s='ln -s'
14793 # ... but there are two gotchas:
14794 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14795 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14796 # In both cases, we have to default to `cp -pR'.
14797 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14798 as_ln_s='cp -pR'
14799 elif ln conf$$.file conf$$ 2>/dev/null; then
14800 as_ln_s=ln
14801 else
14802 as_ln_s='cp -pR'
14804 else
14805 as_ln_s='cp -pR'
14807 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14808 rmdir conf$$.dir 2>/dev/null
14811 # as_fn_mkdir_p
14812 # -------------
14813 # Create "$as_dir" as a directory, including parents if necessary.
14814 as_fn_mkdir_p ()
14817 case $as_dir in #(
14818 -*) as_dir=./$as_dir;;
14819 esac
14820 test -d "$as_dir" || eval $as_mkdir_p || {
14821 as_dirs=
14822 while :; do
14823 case $as_dir in #(
14824 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14825 *) as_qdir=$as_dir;;
14826 esac
14827 as_dirs="'$as_qdir' $as_dirs"
14828 as_dir=`$as_dirname -- "$as_dir" ||
14829 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14830 X"$as_dir" : 'X\(//\)[^/]' \| \
14831 X"$as_dir" : 'X\(//\)$' \| \
14832 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14833 $as_echo X"$as_dir" |
14834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14835 s//\1/
14838 /^X\(\/\/\)[^/].*/{
14839 s//\1/
14842 /^X\(\/\/\)$/{
14843 s//\1/
14846 /^X\(\/\).*/{
14847 s//\1/
14850 s/.*/./; q'`
14851 test -d "$as_dir" && break
14852 done
14853 test -z "$as_dirs" || eval "mkdir $as_dirs"
14854 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14857 } # as_fn_mkdir_p
14858 if mkdir -p . 2>/dev/null; then
14859 as_mkdir_p='mkdir -p "$as_dir"'
14860 else
14861 test -d ./-p && rmdir ./-p
14862 as_mkdir_p=false
14866 # as_fn_executable_p FILE
14867 # -----------------------
14868 # Test if FILE is an executable regular file.
14869 as_fn_executable_p ()
14871 test -f "$1" && test -x "$1"
14872 } # as_fn_executable_p
14873 as_test_x='test -x'
14874 as_executable_p=as_fn_executable_p
14876 # Sed expression to map a string onto a valid CPP name.
14877 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14879 # Sed expression to map a string onto a valid variable name.
14880 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14883 exec 6>&1
14884 ## ----------------------------------- ##
14885 ## Main body of $CONFIG_STATUS script. ##
14886 ## ----------------------------------- ##
14887 _ASEOF
14888 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14891 # Save the log message, to keep $0 and so on meaningful, and to
14892 # report actual input values of CONFIG_FILES etc. instead of their
14893 # values after options handling.
14894 ac_log="
14895 This file was extended by package-unused $as_me version-unused, which was
14896 generated by GNU Autoconf 2.69. Invocation command line was
14898 CONFIG_FILES = $CONFIG_FILES
14899 CONFIG_HEADERS = $CONFIG_HEADERS
14900 CONFIG_LINKS = $CONFIG_LINKS
14901 CONFIG_COMMANDS = $CONFIG_COMMANDS
14902 $ $0 $@
14904 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14907 _ACEOF
14909 case $ac_config_files in *"
14910 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14911 esac
14913 case $ac_config_headers in *"
14914 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14915 esac
14918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14919 # Files that config.status was made for.
14920 config_files="$ac_config_files"
14921 config_headers="$ac_config_headers"
14922 config_commands="$ac_config_commands"
14924 _ACEOF
14926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14927 ac_cs_usage="\
14928 \`$as_me' instantiates files and other configuration actions
14929 from templates according to the current configuration. Unless the files
14930 and actions are specified as TAGs, all are instantiated by default.
14932 Usage: $0 [OPTION]... [TAG]...
14934 -h, --help print this help, then exit
14935 -V, --version print version number and configuration settings, then exit
14936 --config print configuration, then exit
14937 -q, --quiet, --silent
14938 do not print progress messages
14939 -d, --debug don't remove temporary files
14940 --recheck update $as_me by reconfiguring in the same conditions
14941 --file=FILE[:TEMPLATE]
14942 instantiate the configuration file FILE
14943 --header=FILE[:TEMPLATE]
14944 instantiate the configuration header FILE
14946 Configuration files:
14947 $config_files
14949 Configuration headers:
14950 $config_headers
14952 Configuration commands:
14953 $config_commands
14955 Report bugs to the package provider."
14957 _ACEOF
14958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14959 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14960 ac_cs_version="\\
14961 package-unused config.status version-unused
14962 configured by $0, generated by GNU Autoconf 2.69,
14963 with options \\"\$ac_cs_config\\"
14965 Copyright (C) 2012 Free Software Foundation, Inc.
14966 This config.status script is free software; the Free Software Foundation
14967 gives unlimited permission to copy, distribute and modify it."
14969 ac_pwd='$ac_pwd'
14970 srcdir='$srcdir'
14971 INSTALL='$INSTALL'
14972 MKDIR_P='$MKDIR_P'
14973 AWK='$AWK'
14974 test -n "\$AWK" || AWK=awk
14975 _ACEOF
14977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14978 # The default lists apply if the user does not specify any file.
14979 ac_need_defaults=:
14980 while test $# != 0
14982 case $1 in
14983 --*=?*)
14984 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14985 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14986 ac_shift=:
14988 --*=)
14989 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14990 ac_optarg=
14991 ac_shift=:
14994 ac_option=$1
14995 ac_optarg=$2
14996 ac_shift=shift
14998 esac
15000 case $ac_option in
15001 # Handling of the options.
15002 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15003 ac_cs_recheck=: ;;
15004 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15005 $as_echo "$ac_cs_version"; exit ;;
15006 --config | --confi | --conf | --con | --co | --c )
15007 $as_echo "$ac_cs_config"; exit ;;
15008 --debug | --debu | --deb | --de | --d | -d )
15009 debug=: ;;
15010 --file | --fil | --fi | --f )
15011 $ac_shift
15012 case $ac_optarg in
15013 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15014 '') as_fn_error $? "missing file argument" ;;
15015 esac
15016 as_fn_append CONFIG_FILES " '$ac_optarg'"
15017 ac_need_defaults=false;;
15018 --header | --heade | --head | --hea )
15019 $ac_shift
15020 case $ac_optarg in
15021 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15022 esac
15023 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15024 ac_need_defaults=false;;
15025 --he | --h)
15026 # Conflict between --help and --header
15027 as_fn_error $? "ambiguous option: \`$1'
15028 Try \`$0 --help' for more information.";;
15029 --help | --hel | -h )
15030 $as_echo "$ac_cs_usage"; exit ;;
15031 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15032 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15033 ac_cs_silent=: ;;
15035 # This is an error.
15036 -*) as_fn_error $? "unrecognized option: \`$1'
15037 Try \`$0 --help' for more information." ;;
15039 *) as_fn_append ac_config_targets " $1"
15040 ac_need_defaults=false ;;
15042 esac
15043 shift
15044 done
15046 ac_configure_extra_args=
15048 if $ac_cs_silent; then
15049 exec 6>/dev/null
15050 ac_configure_extra_args="$ac_configure_extra_args --silent"
15053 _ACEOF
15054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15055 if \$ac_cs_recheck; then
15056 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15057 shift
15058 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15059 CONFIG_SHELL='$SHELL'
15060 export CONFIG_SHELL
15061 exec "\$@"
15064 _ACEOF
15065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15066 exec 5>>config.log
15068 echo
15069 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15070 ## Running $as_me. ##
15071 _ASBOX
15072 $as_echo "$ac_log"
15073 } >&5
15075 _ACEOF
15076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15078 # INIT-COMMANDS
15081 srcdir="$srcdir"
15082 host="$host"
15083 target="$target"
15084 with_multisubdir="$with_multisubdir"
15085 with_multisrctop="$with_multisrctop"
15086 with_target_subdir="$with_target_subdir"
15087 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15088 multi_basedir="$multi_basedir"
15089 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15090 CC="$CC"
15091 CXX="$CXX"
15092 GFORTRAN="$GFORTRAN"
15093 GDC="$GDC"
15096 # The HP-UX ksh and POSIX shell print the target directory to stdout
15097 # if CDPATH is set.
15098 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15100 sed_quote_subst='$sed_quote_subst'
15101 double_quote_subst='$double_quote_subst'
15102 delay_variable_subst='$delay_variable_subst'
15103 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15104 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15105 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15106 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15107 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15108 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15109 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15110 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15111 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15112 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15113 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15114 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15115 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15116 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15117 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15118 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15119 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15120 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15121 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15122 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15123 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15124 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15125 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15126 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15127 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15128 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15129 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15130 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15131 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15132 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15133 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15134 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15135 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15136 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15137 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15138 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15139 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15140 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15141 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15142 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15143 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15144 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15145 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15146 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15147 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15148 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15149 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15150 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15151 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"`'
15152 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15153 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15154 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15155 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15156 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15157 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15158 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15159 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15160 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15161 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15162 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15163 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15164 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15165 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15166 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15167 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15168 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15169 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15170 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15171 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15172 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15173 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15174 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15175 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15176 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15177 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15178 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15179 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15180 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15181 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15182 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15183 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15184 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15185 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15186 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15187 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15188 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15189 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15190 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15191 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15192 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15193 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15194 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15195 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15196 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15197 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15198 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15199 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15200 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15201 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15202 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15203 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15204 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15205 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15206 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15207 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15208 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15209 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15210 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15211 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15212 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15213 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15214 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15215 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15216 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15217 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15218 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15219 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15220 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15221 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15222 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15224 LTCC='$LTCC'
15225 LTCFLAGS='$LTCFLAGS'
15226 compiler='$compiler_DEFAULT'
15228 # A function that is used when there is no print builtin or printf.
15229 func_fallback_echo ()
15231 eval 'cat <<_LTECHO_EOF
15233 _LTECHO_EOF'
15236 # Quote evaled strings.
15237 for var in SHELL \
15238 ECHO \
15239 SED \
15240 GREP \
15241 EGREP \
15242 FGREP \
15243 LD \
15244 NM \
15245 LN_S \
15246 lt_SP2NL \
15247 lt_NL2SP \
15248 reload_flag \
15249 OBJDUMP \
15250 deplibs_check_method \
15251 file_magic_cmd \
15252 AR \
15253 AR_FLAGS \
15254 STRIP \
15255 RANLIB \
15256 CC \
15257 CFLAGS \
15258 compiler \
15259 lt_cv_sys_global_symbol_pipe \
15260 lt_cv_sys_global_symbol_to_cdecl \
15261 lt_cv_sys_global_symbol_to_c_name_address \
15262 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15263 lt_prog_compiler_no_builtin_flag \
15264 lt_prog_compiler_wl \
15265 lt_prog_compiler_pic \
15266 lt_prog_compiler_static \
15267 lt_cv_prog_compiler_c_o \
15268 need_locks \
15269 DSYMUTIL \
15270 NMEDIT \
15271 LIPO \
15272 OTOOL \
15273 OTOOL64 \
15274 shrext_cmds \
15275 export_dynamic_flag_spec \
15276 whole_archive_flag_spec \
15277 compiler_needs_object \
15278 with_gnu_ld \
15279 allow_undefined_flag \
15280 no_undefined_flag \
15281 hardcode_libdir_flag_spec \
15282 hardcode_libdir_flag_spec_ld \
15283 hardcode_libdir_separator \
15284 fix_srcfile_path \
15285 exclude_expsyms \
15286 include_expsyms \
15287 file_list_spec \
15288 variables_saved_for_relink \
15289 libname_spec \
15290 library_names_spec \
15291 soname_spec \
15292 install_override_mode \
15293 finish_eval \
15294 old_striplib \
15295 striplib; do
15296 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15297 *[\\\\\\\`\\"\\\$]*)
15298 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15301 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15303 esac
15304 done
15306 # Double-quote double-evaled strings.
15307 for var in reload_cmds \
15308 old_postinstall_cmds \
15309 old_postuninstall_cmds \
15310 old_archive_cmds \
15311 extract_expsyms_cmds \
15312 old_archive_from_new_cmds \
15313 old_archive_from_expsyms_cmds \
15314 archive_cmds \
15315 archive_expsym_cmds \
15316 module_cmds \
15317 module_expsym_cmds \
15318 export_symbols_cmds \
15319 prelink_cmds \
15320 postinstall_cmds \
15321 postuninstall_cmds \
15322 finish_cmds \
15323 sys_lib_search_path_spec \
15324 sys_lib_dlsearch_path_spec; do
15325 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15326 *[\\\\\\\`\\"\\\$]*)
15327 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15330 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15332 esac
15333 done
15335 ac_aux_dir='$ac_aux_dir'
15336 xsi_shell='$xsi_shell'
15337 lt_shell_append='$lt_shell_append'
15339 # See if we are running on zsh, and set the options which allow our
15340 # commands through without removal of \ escapes INIT.
15341 if test -n "\${ZSH_VERSION+set}" ; then
15342 setopt NO_GLOB_SUBST
15346 PACKAGE='$PACKAGE'
15347 VERSION='$VERSION'
15348 TIMESTAMP='$TIMESTAMP'
15349 RM='$RM'
15350 ofile='$ofile'
15355 GCC="$GCC"
15356 CC="$CC"
15357 acx_cv_header_stdint="$acx_cv_header_stdint"
15358 acx_cv_type_int8_t="$acx_cv_type_int8_t"
15359 acx_cv_type_int16_t="$acx_cv_type_int16_t"
15360 acx_cv_type_int32_t="$acx_cv_type_int32_t"
15361 acx_cv_type_int64_t="$acx_cv_type_int64_t"
15362 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
15363 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
15364 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
15365 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
15366 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
15367 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
15368 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
15369 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
15370 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
15373 # Variables needed in config.status (file generation) which aren't already
15374 # passed by autoconf.
15375 SUBDIRS="$SUBDIRS"
15378 _ACEOF
15380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15382 # Handling of arguments.
15383 for ac_config_target in $ac_config_targets
15385 case $ac_config_target in
15386 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15387 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15388 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15389 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
15390 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15391 "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;;
15392 "install-debuginfo-for-buildid.sh") CONFIG_FILES="$CONFIG_FILES install-debuginfo-for-buildid.sh" ;;
15393 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15395 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15396 esac
15397 done
15400 # If the user did not use the arguments to specify the items to instantiate,
15401 # then the envvar interface is used. Set only those that are not.
15402 # We use the long form for the default assignment because of an extremely
15403 # bizarre bug on SunOS 4.1.3.
15404 if $ac_need_defaults; then
15405 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15406 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15407 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15410 # Have a temporary directory for convenience. Make it in the build tree
15411 # simply because there is no reason against having it here, and in addition,
15412 # creating and moving files from /tmp can sometimes cause problems.
15413 # Hook for its removal unless debugging.
15414 # Note that there is a small window in which the directory will not be cleaned:
15415 # after its creation but before its name has been assigned to `$tmp'.
15416 $debug ||
15418 tmp= ac_tmp=
15419 trap 'exit_status=$?
15420 : "${ac_tmp:=$tmp}"
15421 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15423 trap 'as_fn_exit 1' 1 2 13 15
15425 # Create a (secure) tmp directory for tmp files.
15428 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15429 test -d "$tmp"
15430 } ||
15432 tmp=./conf$$-$RANDOM
15433 (umask 077 && mkdir "$tmp")
15434 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15435 ac_tmp=$tmp
15437 # Set up the scripts for CONFIG_FILES section.
15438 # No need to generate them if there are no CONFIG_FILES.
15439 # This happens for instance with `./config.status config.h'.
15440 if test -n "$CONFIG_FILES"; then
15443 ac_cr=`echo X | tr X '\015'`
15444 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15445 # But we know of no other shell where ac_cr would be empty at this
15446 # point, so we can use a bashism as a fallback.
15447 if test "x$ac_cr" = x; then
15448 eval ac_cr=\$\'\\r\'
15450 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15451 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15452 ac_cs_awk_cr='\\r'
15453 else
15454 ac_cs_awk_cr=$ac_cr
15457 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15458 _ACEOF
15462 echo "cat >conf$$subs.awk <<_ACEOF" &&
15463 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15464 echo "_ACEOF"
15465 } >conf$$subs.sh ||
15466 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15467 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15468 ac_delim='%!_!# '
15469 for ac_last_try in false false false false false :; do
15470 . ./conf$$subs.sh ||
15471 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15473 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15474 if test $ac_delim_n = $ac_delim_num; then
15475 break
15476 elif $ac_last_try; then
15477 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15478 else
15479 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15481 done
15482 rm -f conf$$subs.sh
15484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15485 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15486 _ACEOF
15487 sed -n '
15489 s/^/S["/; s/!.*/"]=/
15492 s/^[^!]*!//
15493 :repl
15494 t repl
15495 s/'"$ac_delim"'$//
15496 t delim
15499 s/\(.\{148\}\)..*/\1/
15500 t more1
15501 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15504 b repl
15505 :more1
15506 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15509 s/.\{148\}//
15510 t nl
15511 :delim
15513 s/\(.\{148\}\)..*/\1/
15514 t more2
15515 s/["\\]/\\&/g; s/^/"/; s/$/"/
15518 :more2
15519 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15522 s/.\{148\}//
15523 t delim
15524 ' <conf$$subs.awk | sed '
15525 /^[^""]/{
15527 s/\n//
15529 ' >>$CONFIG_STATUS || ac_write_fail=1
15530 rm -f conf$$subs.awk
15531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15532 _ACAWK
15533 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15534 for (key in S) S_is_set[key] = 1
15535 FS = "\a"
15539 line = $ 0
15540 nfields = split(line, field, "@")
15541 substed = 0
15542 len = length(field[1])
15543 for (i = 2; i < nfields; i++) {
15544 key = field[i]
15545 keylen = length(key)
15546 if (S_is_set[key]) {
15547 value = S[key]
15548 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15549 len += length(value) + length(field[++i])
15550 substed = 1
15551 } else
15552 len += 1 + keylen
15555 print line
15558 _ACAWK
15559 _ACEOF
15560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15561 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15562 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15563 else
15565 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15566 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15567 _ACEOF
15569 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15570 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15571 # trailing colons and then remove the whole line if VPATH becomes empty
15572 # (actually we leave an empty line to preserve line numbers).
15573 if test "x$srcdir" = x.; then
15574 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15576 s///
15577 s/^/:/
15578 s/[ ]*$/:/
15579 s/:\$(srcdir):/:/g
15580 s/:\${srcdir}:/:/g
15581 s/:@srcdir@:/:/g
15582 s/^:*//
15583 s/:*$//
15585 s/\(=[ ]*\).*/\1/
15587 s/\n//
15588 s/^[^=]*=[ ]*$//
15592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15593 fi # test -n "$CONFIG_FILES"
15595 # Set up the scripts for CONFIG_HEADERS section.
15596 # No need to generate them if there are no CONFIG_HEADERS.
15597 # This happens for instance with `./config.status Makefile'.
15598 if test -n "$CONFIG_HEADERS"; then
15599 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15600 BEGIN {
15601 _ACEOF
15603 # Transform confdefs.h into an awk script `defines.awk', embedded as
15604 # here-document in config.status, that substitutes the proper values into
15605 # config.h.in to produce config.h.
15607 # Create a delimiter string that does not exist in confdefs.h, to ease
15608 # handling of long lines.
15609 ac_delim='%!_!# '
15610 for ac_last_try in false false :; do
15611 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15612 if test -z "$ac_tt"; then
15613 break
15614 elif $ac_last_try; then
15615 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15616 else
15617 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15619 done
15621 # For the awk script, D is an array of macro values keyed by name,
15622 # likewise P contains macro parameters if any. Preserve backslash
15623 # newline sequences.
15625 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15626 sed -n '
15627 s/.\{148\}/&'"$ac_delim"'/g
15628 t rset
15629 :rset
15630 s/^[ ]*#[ ]*define[ ][ ]*/ /
15631 t def
15633 :def
15634 s/\\$//
15635 t bsnl
15636 s/["\\]/\\&/g
15637 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15638 D["\1"]=" \3"/p
15639 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15641 :bsnl
15642 s/["\\]/\\&/g
15643 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15644 D["\1"]=" \3\\\\\\n"\\/p
15645 t cont
15646 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15647 t cont
15649 :cont
15651 s/.\{148\}/&'"$ac_delim"'/g
15652 t clear
15653 :clear
15654 s/\\$//
15655 t bsnlc
15656 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15658 :bsnlc
15659 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15660 b cont
15661 ' <confdefs.h | sed '
15662 s/'"$ac_delim"'/"\\\
15663 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15666 for (key in D) D_is_set[key] = 1
15667 FS = "\a"
15669 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15670 line = \$ 0
15671 split(line, arg, " ")
15672 if (arg[1] == "#") {
15673 defundef = arg[2]
15674 mac1 = arg[3]
15675 } else {
15676 defundef = substr(arg[1], 2)
15677 mac1 = arg[2]
15679 split(mac1, mac2, "(") #)
15680 macro = mac2[1]
15681 prefix = substr(line, 1, index(line, defundef) - 1)
15682 if (D_is_set[macro]) {
15683 # Preserve the white space surrounding the "#".
15684 print prefix "define", macro P[macro] D[macro]
15685 next
15686 } else {
15687 # Replace #undef with comments. This is necessary, for example,
15688 # in the case of _POSIX_SOURCE, which is predefined and required
15689 # on some systems where configure will not decide to define it.
15690 if (defundef == "undef") {
15691 print "/*", prefix defundef, macro, "*/"
15692 next
15696 { print }
15697 _ACAWK
15698 _ACEOF
15699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15700 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15701 fi # test -n "$CONFIG_HEADERS"
15704 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15705 shift
15706 for ac_tag
15708 case $ac_tag in
15709 :[FHLC]) ac_mode=$ac_tag; continue;;
15710 esac
15711 case $ac_mode$ac_tag in
15712 :[FHL]*:*);;
15713 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15714 :[FH]-) ac_tag=-:-;;
15715 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15716 esac
15717 ac_save_IFS=$IFS
15718 IFS=:
15719 set x $ac_tag
15720 IFS=$ac_save_IFS
15721 shift
15722 ac_file=$1
15723 shift
15725 case $ac_mode in
15726 :L) ac_source=$1;;
15727 :[FH])
15728 ac_file_inputs=
15729 for ac_f
15731 case $ac_f in
15732 -) ac_f="$ac_tmp/stdin";;
15733 *) # Look for the file first in the build tree, then in the source tree
15734 # (if the path is not absolute). The absolute path cannot be DOS-style,
15735 # because $ac_f cannot contain `:'.
15736 test -f "$ac_f" ||
15737 case $ac_f in
15738 [\\/$]*) false;;
15739 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15740 esac ||
15741 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15742 esac
15743 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15744 as_fn_append ac_file_inputs " '$ac_f'"
15745 done
15747 # Let's still pretend it is `configure' which instantiates (i.e., don't
15748 # use $as_me), people would be surprised to read:
15749 # /* config.h. Generated by config.status. */
15750 configure_input='Generated from '`
15751 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15752 `' by configure.'
15753 if test x"$ac_file" != x-; then
15754 configure_input="$ac_file. $configure_input"
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15756 $as_echo "$as_me: creating $ac_file" >&6;}
15758 # Neutralize special characters interpreted by sed in replacement strings.
15759 case $configure_input in #(
15760 *\&* | *\|* | *\\* )
15761 ac_sed_conf_input=`$as_echo "$configure_input" |
15762 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15763 *) ac_sed_conf_input=$configure_input;;
15764 esac
15766 case $ac_tag in
15767 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15768 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15769 esac
15771 esac
15773 ac_dir=`$as_dirname -- "$ac_file" ||
15774 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15775 X"$ac_file" : 'X\(//\)[^/]' \| \
15776 X"$ac_file" : 'X\(//\)$' \| \
15777 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15778 $as_echo X"$ac_file" |
15779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15780 s//\1/
15783 /^X\(\/\/\)[^/].*/{
15784 s//\1/
15787 /^X\(\/\/\)$/{
15788 s//\1/
15791 /^X\(\/\).*/{
15792 s//\1/
15795 s/.*/./; q'`
15796 as_dir="$ac_dir"; as_fn_mkdir_p
15797 ac_builddir=.
15799 case "$ac_dir" in
15800 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15802 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15803 # A ".." for each directory in $ac_dir_suffix.
15804 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15805 case $ac_top_builddir_sub in
15806 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15807 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15808 esac ;;
15809 esac
15810 ac_abs_top_builddir=$ac_pwd
15811 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15812 # for backward compatibility:
15813 ac_top_builddir=$ac_top_build_prefix
15815 case $srcdir in
15816 .) # We are building in place.
15817 ac_srcdir=.
15818 ac_top_srcdir=$ac_top_builddir_sub
15819 ac_abs_top_srcdir=$ac_pwd ;;
15820 [\\/]* | ?:[\\/]* ) # Absolute name.
15821 ac_srcdir=$srcdir$ac_dir_suffix;
15822 ac_top_srcdir=$srcdir
15823 ac_abs_top_srcdir=$srcdir ;;
15824 *) # Relative name.
15825 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15826 ac_top_srcdir=$ac_top_build_prefix$srcdir
15827 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15828 esac
15829 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15832 case $ac_mode in
15835 # CONFIG_FILE
15838 case $INSTALL in
15839 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15840 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15841 esac
15842 ac_MKDIR_P=$MKDIR_P
15843 case $MKDIR_P in
15844 [\\/$]* | ?:[\\/]* ) ;;
15845 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15846 esac
15847 _ACEOF
15849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15850 # If the template does not know about datarootdir, expand it.
15851 # FIXME: This hack should be removed a few years after 2.60.
15852 ac_datarootdir_hack=; ac_datarootdir_seen=
15853 ac_sed_dataroot='
15854 /datarootdir/ {
15858 /@datadir@/p
15859 /@docdir@/p
15860 /@infodir@/p
15861 /@localedir@/p
15862 /@mandir@/p'
15863 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15864 *datarootdir*) ac_datarootdir_seen=yes;;
15865 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15867 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15868 _ACEOF
15869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15870 ac_datarootdir_hack='
15871 s&@datadir@&$datadir&g
15872 s&@docdir@&$docdir&g
15873 s&@infodir@&$infodir&g
15874 s&@localedir@&$localedir&g
15875 s&@mandir@&$mandir&g
15876 s&\\\${datarootdir}&$datarootdir&g' ;;
15877 esac
15878 _ACEOF
15880 # Neutralize VPATH when `$srcdir' = `.'.
15881 # Shell code in configure.ac might set extrasub.
15882 # FIXME: do we really want to maintain this feature?
15883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15884 ac_sed_extra="$ac_vpsub
15885 $extrasub
15886 _ACEOF
15887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15889 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15890 s|@configure_input@|$ac_sed_conf_input|;t t
15891 s&@top_builddir@&$ac_top_builddir_sub&;t t
15892 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15893 s&@srcdir@&$ac_srcdir&;t t
15894 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15895 s&@top_srcdir@&$ac_top_srcdir&;t t
15896 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15897 s&@builddir@&$ac_builddir&;t t
15898 s&@abs_builddir@&$ac_abs_builddir&;t t
15899 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15900 s&@INSTALL@&$ac_INSTALL&;t t
15901 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15902 $ac_datarootdir_hack
15904 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15905 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15907 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15908 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15909 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15910 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15912 which seems to be undefined. Please make sure it is defined" >&5
15913 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15914 which seems to be undefined. Please make sure it is defined" >&2;}
15916 rm -f "$ac_tmp/stdin"
15917 case $ac_file in
15918 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15919 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15920 esac \
15921 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15925 # CONFIG_HEADER
15927 if test x"$ac_file" != x-; then
15929 $as_echo "/* $configure_input */" \
15930 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15931 } >"$ac_tmp/config.h" \
15932 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15933 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15935 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15936 else
15937 rm -f "$ac_file"
15938 mv "$ac_tmp/config.h" "$ac_file" \
15939 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15941 else
15942 $as_echo "/* $configure_input */" \
15943 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15944 || as_fn_error $? "could not create -" "$LINENO" 5
15946 # Compute "$ac_file"'s index in $config_headers.
15947 _am_arg="$ac_file"
15948 _am_stamp_count=1
15949 for _am_header in $config_headers :; do
15950 case $_am_header in
15951 $_am_arg | $_am_arg:* )
15952 break ;;
15954 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15955 esac
15956 done
15957 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15958 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15959 X"$_am_arg" : 'X\(//\)[^/]' \| \
15960 X"$_am_arg" : 'X\(//\)$' \| \
15961 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15962 $as_echo X"$_am_arg" |
15963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15964 s//\1/
15967 /^X\(\/\/\)[^/].*/{
15968 s//\1/
15971 /^X\(\/\/\)$/{
15972 s//\1/
15975 /^X\(\/\).*/{
15976 s//\1/
15979 s/.*/./; q'`/stamp-h$_am_stamp_count
15982 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15983 $as_echo "$as_me: executing $ac_file commands" >&6;}
15985 esac
15988 case $ac_file$ac_mode in
15989 "default-1":C)
15990 # Only add multilib support code if we just rebuilt the top-level
15991 # Makefile.
15992 case " $CONFIG_FILES " in
15993 *" Makefile "*)
15994 ac_file=Makefile . ${multi_basedir}/config-ml.in
15996 esac ;;
15997 "libtool":C)
15999 # See if we are running on zsh, and set the options which allow our
16000 # commands through without removal of \ escapes.
16001 if test -n "${ZSH_VERSION+set}" ; then
16002 setopt NO_GLOB_SUBST
16005 cfgfile="${ofile}T"
16006 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16007 $RM "$cfgfile"
16009 cat <<_LT_EOF >> "$cfgfile"
16010 #! $SHELL
16012 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16013 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16014 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16015 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16017 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16018 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16019 # Written by Gordon Matzigkeit, 1996
16021 # This file is part of GNU Libtool.
16023 # GNU Libtool is free software; you can redistribute it and/or
16024 # modify it under the terms of the GNU General Public License as
16025 # published by the Free Software Foundation; either version 2 of
16026 # the License, or (at your option) any later version.
16028 # As a special exception to the GNU General Public License,
16029 # if you distribute this file as part of a program or library that
16030 # is built using GNU Libtool, you may include this file under the
16031 # same distribution terms that you use for the rest of that program.
16033 # GNU Libtool is distributed in the hope that it will be useful,
16034 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16035 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16036 # GNU General Public License for more details.
16038 # You should have received a copy of the GNU General Public License
16039 # along with GNU Libtool; see the file COPYING. If not, a copy
16040 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16041 # obtained by writing to the Free Software Foundation, Inc.,
16042 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16045 # The names of the tagged configurations supported by this script.
16046 available_tags=""
16048 # ### BEGIN LIBTOOL CONFIG
16050 # Which release of libtool.m4 was used?
16051 macro_version=$macro_version
16052 macro_revision=$macro_revision
16054 # Whether or not to build shared libraries.
16055 build_libtool_libs=$enable_shared
16057 # Whether or not to build static libraries.
16058 build_old_libs=$enable_static
16060 # What type of objects to build.
16061 pic_mode=$pic_mode
16063 # Whether or not to optimize for fast installation.
16064 fast_install=$enable_fast_install
16066 # Shell to use when invoking shell scripts.
16067 SHELL=$lt_SHELL
16069 # An echo program that protects backslashes.
16070 ECHO=$lt_ECHO
16072 # The host system.
16073 host_alias=$host_alias
16074 host=$host
16075 host_os=$host_os
16077 # The build system.
16078 build_alias=$build_alias
16079 build=$build
16080 build_os=$build_os
16082 # A sed program that does not truncate output.
16083 SED=$lt_SED
16085 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16086 Xsed="\$SED -e 1s/^X//"
16088 # A grep program that handles long lines.
16089 GREP=$lt_GREP
16091 # An ERE matcher.
16092 EGREP=$lt_EGREP
16094 # A literal string matcher.
16095 FGREP=$lt_FGREP
16097 # A BSD- or MS-compatible name lister.
16098 NM=$lt_NM
16100 # Whether we need soft or hard links.
16101 LN_S=$lt_LN_S
16103 # What is the maximum length of a command?
16104 max_cmd_len=$max_cmd_len
16106 # Object file suffix (normally "o").
16107 objext=$ac_objext
16109 # Executable file suffix (normally "").
16110 exeext=$exeext
16112 # whether the shell understands "unset".
16113 lt_unset=$lt_unset
16115 # turn spaces into newlines.
16116 SP2NL=$lt_lt_SP2NL
16118 # turn newlines into spaces.
16119 NL2SP=$lt_lt_NL2SP
16121 # An object symbol dumper.
16122 OBJDUMP=$lt_OBJDUMP
16124 # Method to check whether dependent libraries are shared objects.
16125 deplibs_check_method=$lt_deplibs_check_method
16127 # Command to use when deplibs_check_method == "file_magic".
16128 file_magic_cmd=$lt_file_magic_cmd
16130 # The archiver.
16131 AR=$lt_AR
16132 AR_FLAGS=$lt_AR_FLAGS
16134 # A symbol stripping program.
16135 STRIP=$lt_STRIP
16137 # Commands used to install an old-style archive.
16138 RANLIB=$lt_RANLIB
16139 old_postinstall_cmds=$lt_old_postinstall_cmds
16140 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16142 # Whether to use a lock for old archive extraction.
16143 lock_old_archive_extraction=$lock_old_archive_extraction
16145 # A C compiler.
16146 LTCC=$lt_CC
16148 # LTCC compiler flags.
16149 LTCFLAGS=$lt_CFLAGS
16151 # Take the output of nm and produce a listing of raw symbols and C names.
16152 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16154 # Transform the output of nm in a proper C declaration.
16155 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16157 # Transform the output of nm in a C name address pair.
16158 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16160 # Transform the output of nm in a C name address pair when lib prefix is needed.
16161 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16163 # The name of the directory that contains temporary libtool files.
16164 objdir=$objdir
16166 # Used to examine libraries when file_magic_cmd begins with "file".
16167 MAGIC_CMD=$MAGIC_CMD
16169 # Must we lock files when doing compilation?
16170 need_locks=$lt_need_locks
16172 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16173 DSYMUTIL=$lt_DSYMUTIL
16175 # Tool to change global to local symbols on Mac OS X.
16176 NMEDIT=$lt_NMEDIT
16178 # Tool to manipulate fat objects and archives on Mac OS X.
16179 LIPO=$lt_LIPO
16181 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16182 OTOOL=$lt_OTOOL
16184 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16185 OTOOL64=$lt_OTOOL64
16187 # Old archive suffix (normally "a").
16188 libext=$libext
16190 # Shared library suffix (normally ".so").
16191 shrext_cmds=$lt_shrext_cmds
16193 # The commands to extract the exported symbol list from a shared archive.
16194 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16196 # Variables whose values should be saved in libtool wrapper scripts and
16197 # restored at link time.
16198 variables_saved_for_relink=$lt_variables_saved_for_relink
16200 # Do we need the "lib" prefix for modules?
16201 need_lib_prefix=$need_lib_prefix
16203 # Do we need a version for libraries?
16204 need_version=$need_version
16206 # Library versioning type.
16207 version_type=$version_type
16209 # Shared library runtime path variable.
16210 runpath_var=$runpath_var
16212 # Shared library path variable.
16213 shlibpath_var=$shlibpath_var
16215 # Is shlibpath searched before the hard-coded library search path?
16216 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16218 # Format of library name prefix.
16219 libname_spec=$lt_libname_spec
16221 # List of archive names. First name is the real one, the rest are links.
16222 # The last name is the one that the linker finds with -lNAME
16223 library_names_spec=$lt_library_names_spec
16225 # The coded name of the library, if different from the real name.
16226 soname_spec=$lt_soname_spec
16228 # Permission mode override for installation of shared libraries.
16229 install_override_mode=$lt_install_override_mode
16231 # Command to use after installation of a shared archive.
16232 postinstall_cmds=$lt_postinstall_cmds
16234 # Command to use after uninstallation of a shared archive.
16235 postuninstall_cmds=$lt_postuninstall_cmds
16237 # Commands used to finish a libtool library installation in a directory.
16238 finish_cmds=$lt_finish_cmds
16240 # As "finish_cmds", except a single script fragment to be evaled but
16241 # not shown.
16242 finish_eval=$lt_finish_eval
16244 # Whether we should hardcode library paths into libraries.
16245 hardcode_into_libs=$hardcode_into_libs
16247 # Compile-time system search path for libraries.
16248 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16250 # Run-time system search path for libraries.
16251 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16253 # Whether dlopen is supported.
16254 dlopen_support=$enable_dlopen
16256 # Whether dlopen of programs is supported.
16257 dlopen_self=$enable_dlopen_self
16259 # Whether dlopen of statically linked programs is supported.
16260 dlopen_self_static=$enable_dlopen_self_static
16262 # Commands to strip libraries.
16263 old_striplib=$lt_old_striplib
16264 striplib=$lt_striplib
16267 # The linker used to build libraries.
16268 LD=$lt_LD
16270 # How to create reloadable object files.
16271 reload_flag=$lt_reload_flag
16272 reload_cmds=$lt_reload_cmds
16274 # Commands used to build an old-style archive.
16275 old_archive_cmds=$lt_old_archive_cmds
16277 # A language specific compiler.
16278 CC=$lt_compiler
16280 # Is the compiler the GNU compiler?
16281 with_gcc=$GCC
16283 # Compiler flag to turn off builtin functions.
16284 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16286 # How to pass a linker flag through the compiler.
16287 wl=$lt_lt_prog_compiler_wl
16289 # Additional compiler flags for building library objects.
16290 pic_flag=$lt_lt_prog_compiler_pic
16292 # Compiler flag to prevent dynamic linking.
16293 link_static_flag=$lt_lt_prog_compiler_static
16295 # Does compiler simultaneously support -c and -o options?
16296 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16298 # Whether or not to add -lc for building shared libraries.
16299 build_libtool_need_lc=$archive_cmds_need_lc
16301 # Whether or not to disallow shared libs when runtime libs are static.
16302 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16304 # Compiler flag to allow reflexive dlopens.
16305 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16307 # Compiler flag to generate shared objects directly from archives.
16308 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16310 # Whether the compiler copes with passing no objects directly.
16311 compiler_needs_object=$lt_compiler_needs_object
16313 # Create an old-style archive from a shared archive.
16314 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16316 # Create a temporary old-style archive to link instead of a shared archive.
16317 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16319 # Commands used to build a shared archive.
16320 archive_cmds=$lt_archive_cmds
16321 archive_expsym_cmds=$lt_archive_expsym_cmds
16323 # Commands used to build a loadable module if different from building
16324 # a shared archive.
16325 module_cmds=$lt_module_cmds
16326 module_expsym_cmds=$lt_module_expsym_cmds
16328 # Whether we are building with GNU ld or not.
16329 with_gnu_ld=$lt_with_gnu_ld
16331 # Flag that allows shared libraries with undefined symbols to be built.
16332 allow_undefined_flag=$lt_allow_undefined_flag
16334 # Flag that enforces no undefined symbols.
16335 no_undefined_flag=$lt_no_undefined_flag
16337 # Flag to hardcode \$libdir into a binary during linking.
16338 # This must work even if \$libdir does not exist
16339 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16341 # If ld is used when linking, flag to hardcode \$libdir into a binary
16342 # during linking. This must work even if \$libdir does not exist.
16343 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16345 # Whether we need a single "-rpath" flag with a separated argument.
16346 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16348 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16349 # DIR into the resulting binary.
16350 hardcode_direct=$hardcode_direct
16352 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16353 # DIR into the resulting binary and the resulting library dependency is
16354 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16355 # library is relocated.
16356 hardcode_direct_absolute=$hardcode_direct_absolute
16358 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16359 # into the resulting binary.
16360 hardcode_minus_L=$hardcode_minus_L
16362 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16363 # into the resulting binary.
16364 hardcode_shlibpath_var=$hardcode_shlibpath_var
16366 # Set to "yes" if building a shared library automatically hardcodes DIR
16367 # into the library and all subsequent libraries and executables linked
16368 # against it.
16369 hardcode_automatic=$hardcode_automatic
16371 # Set to yes if linker adds runtime paths of dependent libraries
16372 # to runtime path list.
16373 inherit_rpath=$inherit_rpath
16375 # Whether libtool must link a program against all its dependency libraries.
16376 link_all_deplibs=$link_all_deplibs
16378 # Fix the shell variable \$srcfile for the compiler.
16379 fix_srcfile_path=$lt_fix_srcfile_path
16381 # Set to "yes" if exported symbols are required.
16382 always_export_symbols=$always_export_symbols
16384 # The commands to list exported symbols.
16385 export_symbols_cmds=$lt_export_symbols_cmds
16387 # Symbols that should not be listed in the preloaded symbols.
16388 exclude_expsyms=$lt_exclude_expsyms
16390 # Symbols that must always be exported.
16391 include_expsyms=$lt_include_expsyms
16393 # Commands necessary for linking programs (against libraries) with templates.
16394 prelink_cmds=$lt_prelink_cmds
16396 # Specify filename containing input files.
16397 file_list_spec=$lt_file_list_spec
16399 # How to hardcode a shared library path into an executable.
16400 hardcode_action=$hardcode_action
16402 # ### END LIBTOOL CONFIG
16404 _LT_EOF
16406 case $host_os in
16407 aix3*)
16408 cat <<\_LT_EOF >> "$cfgfile"
16409 # AIX sometimes has problems with the GCC collect2 program. For some
16410 # reason, if we set the COLLECT_NAMES environment variable, the problems
16411 # vanish in a puff of smoke.
16412 if test "X${COLLECT_NAMES+set}" != Xset; then
16413 COLLECT_NAMES=
16414 export COLLECT_NAMES
16416 _LT_EOF
16418 esac
16421 ltmain="$ac_aux_dir/ltmain.sh"
16424 # We use sed instead of cat because bash on DJGPP gets confused if
16425 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16426 # text mode, it properly converts lines to CR/LF. This bash problem
16427 # is reportedly fixed, but why not run on old versions too?
16428 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16429 || (rm -f "$cfgfile"; exit 1)
16431 case $xsi_shell in
16432 yes)
16433 cat << \_LT_EOF >> "$cfgfile"
16435 # func_dirname file append nondir_replacement
16436 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16437 # otherwise set result to NONDIR_REPLACEMENT.
16438 func_dirname ()
16440 case ${1} in
16441 */*) func_dirname_result="${1%/*}${2}" ;;
16442 * ) func_dirname_result="${3}" ;;
16443 esac
16446 # func_basename file
16447 func_basename ()
16449 func_basename_result="${1##*/}"
16452 # func_dirname_and_basename file append nondir_replacement
16453 # perform func_basename and func_dirname in a single function
16454 # call:
16455 # dirname: Compute the dirname of FILE. If nonempty,
16456 # add APPEND to the result, otherwise set result
16457 # to NONDIR_REPLACEMENT.
16458 # value returned in "$func_dirname_result"
16459 # basename: Compute filename of FILE.
16460 # value retuned in "$func_basename_result"
16461 # Implementation must be kept synchronized with func_dirname
16462 # and func_basename. For efficiency, we do not delegate to
16463 # those functions but instead duplicate the functionality here.
16464 func_dirname_and_basename ()
16466 case ${1} in
16467 */*) func_dirname_result="${1%/*}${2}" ;;
16468 * ) func_dirname_result="${3}" ;;
16469 esac
16470 func_basename_result="${1##*/}"
16473 # func_stripname prefix suffix name
16474 # strip PREFIX and SUFFIX off of NAME.
16475 # PREFIX and SUFFIX must not contain globbing or regex special
16476 # characters, hashes, percent signs, but SUFFIX may contain a leading
16477 # dot (in which case that matches only a dot).
16478 func_stripname ()
16480 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16481 # positional parameters, so assign one to ordinary parameter first.
16482 func_stripname_result=${3}
16483 func_stripname_result=${func_stripname_result#"${1}"}
16484 func_stripname_result=${func_stripname_result%"${2}"}
16487 # func_opt_split
16488 func_opt_split ()
16490 func_opt_split_opt=${1%%=*}
16491 func_opt_split_arg=${1#*=}
16494 # func_lo2o object
16495 func_lo2o ()
16497 case ${1} in
16498 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16499 *) func_lo2o_result=${1} ;;
16500 esac
16503 # func_xform libobj-or-source
16504 func_xform ()
16506 func_xform_result=${1%.*}.lo
16509 # func_arith arithmetic-term...
16510 func_arith ()
16512 func_arith_result=$(( $* ))
16515 # func_len string
16516 # STRING may not start with a hyphen.
16517 func_len ()
16519 func_len_result=${#1}
16522 _LT_EOF
16524 *) # Bourne compatible functions.
16525 cat << \_LT_EOF >> "$cfgfile"
16527 # func_dirname file append nondir_replacement
16528 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16529 # otherwise set result to NONDIR_REPLACEMENT.
16530 func_dirname ()
16532 # Extract subdirectory from the argument.
16533 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16534 if test "X$func_dirname_result" = "X${1}"; then
16535 func_dirname_result="${3}"
16536 else
16537 func_dirname_result="$func_dirname_result${2}"
16541 # func_basename file
16542 func_basename ()
16544 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16548 # func_stripname prefix suffix name
16549 # strip PREFIX and SUFFIX off of NAME.
16550 # PREFIX and SUFFIX must not contain globbing or regex special
16551 # characters, hashes, percent signs, but SUFFIX may contain a leading
16552 # dot (in which case that matches only a dot).
16553 # func_strip_suffix prefix name
16554 func_stripname ()
16556 case ${2} in
16557 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16558 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16559 esac
16562 # sed scripts:
16563 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16564 my_sed_long_arg='1s/^-[^=]*=//'
16566 # func_opt_split
16567 func_opt_split ()
16569 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16570 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16573 # func_lo2o object
16574 func_lo2o ()
16576 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16579 # func_xform libobj-or-source
16580 func_xform ()
16582 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16585 # func_arith arithmetic-term...
16586 func_arith ()
16588 func_arith_result=`expr "$@"`
16591 # func_len string
16592 # STRING may not start with a hyphen.
16593 func_len ()
16595 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16598 _LT_EOF
16599 esac
16601 case $lt_shell_append in
16602 yes)
16603 cat << \_LT_EOF >> "$cfgfile"
16605 # func_append var value
16606 # Append VALUE to the end of shell variable VAR.
16607 func_append ()
16609 eval "$1+=\$2"
16611 _LT_EOF
16614 cat << \_LT_EOF >> "$cfgfile"
16616 # func_append var value
16617 # Append VALUE to the end of shell variable VAR.
16618 func_append ()
16620 eval "$1=\$$1\$2"
16623 _LT_EOF
16625 esac
16628 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16629 || (rm -f "$cfgfile"; exit 1)
16631 mv -f "$cfgfile" "$ofile" ||
16632 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16633 chmod +x "$ofile"
16636 "gstdint.h":C)
16637 if test "$GCC" = yes; then
16638 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
16639 else
16640 echo "/* generated for $CC */" > tmp-stdint.h
16643 sed 's/^ *//' >> tmp-stdint.h <<EOF
16645 #ifndef GCC_GENERATED_STDINT_H
16646 #define GCC_GENERATED_STDINT_H 1
16648 #include <sys/types.h>
16651 if test "$acx_cv_header_stdint" != stdint.h; then
16652 echo "#include <stddef.h>" >> tmp-stdint.h
16654 if test "$acx_cv_header_stdint" != stddef.h; then
16655 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
16658 sed 's/^ *//' >> tmp-stdint.h <<EOF
16659 /* glibc uses these symbols as guards to prevent redefinitions. */
16660 #ifdef __int8_t_defined
16661 #define _INT8_T
16662 #define _INT16_T
16663 #define _INT32_T
16664 #endif
16665 #ifdef __uint32_t_defined
16666 #define _UINT32_T
16667 #endif
16671 # ----------------- done header, emit basic int types -------------
16672 if test "$acx_cv_header_stdint" = stddef.h; then
16673 sed 's/^ *//' >> tmp-stdint.h <<EOF
16675 #ifndef _UINT8_T
16676 #define _UINT8_T
16677 #ifndef __uint8_t_defined
16678 #define __uint8_t_defined
16679 #ifndef uint8_t
16680 typedef unsigned $acx_cv_type_int8_t uint8_t;
16681 #endif
16682 #endif
16683 #endif
16685 #ifndef _UINT16_T
16686 #define _UINT16_T
16687 #ifndef __uint16_t_defined
16688 #define __uint16_t_defined
16689 #ifndef uint16_t
16690 typedef unsigned $acx_cv_type_int16_t uint16_t;
16691 #endif
16692 #endif
16693 #endif
16695 #ifndef _UINT32_T
16696 #define _UINT32_T
16697 #ifndef __uint32_t_defined
16698 #define __uint32_t_defined
16699 #ifndef uint32_t
16700 typedef unsigned $acx_cv_type_int32_t uint32_t;
16701 #endif
16702 #endif
16703 #endif
16705 #ifndef _INT8_T
16706 #define _INT8_T
16707 #ifndef __int8_t_defined
16708 #define __int8_t_defined
16709 #ifndef int8_t
16710 typedef $acx_cv_type_int8_t int8_t;
16711 #endif
16712 #endif
16713 #endif
16715 #ifndef _INT16_T
16716 #define _INT16_T
16717 #ifndef __int16_t_defined
16718 #define __int16_t_defined
16719 #ifndef int16_t
16720 typedef $acx_cv_type_int16_t int16_t;
16721 #endif
16722 #endif
16723 #endif
16725 #ifndef _INT32_T
16726 #define _INT32_T
16727 #ifndef __int32_t_defined
16728 #define __int32_t_defined
16729 #ifndef int32_t
16730 typedef $acx_cv_type_int32_t int32_t;
16731 #endif
16732 #endif
16733 #endif
16735 elif test "$ac_cv_type_u_int32_t" = yes; then
16736 sed 's/^ *//' >> tmp-stdint.h <<EOF
16738 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
16739 #ifndef _INT8_T
16740 #define _INT8_T
16741 #endif
16742 #ifndef _INT16_T
16743 #define _INT16_T
16744 #endif
16745 #ifndef _INT32_T
16746 #define _INT32_T
16747 #endif
16749 #ifndef _UINT8_T
16750 #define _UINT8_T
16751 #ifndef __uint8_t_defined
16752 #define __uint8_t_defined
16753 #ifndef uint8_t
16754 typedef u_int8_t uint8_t;
16755 #endif
16756 #endif
16757 #endif
16759 #ifndef _UINT16_T
16760 #define _UINT16_T
16761 #ifndef __uint16_t_defined
16762 #define __uint16_t_defined
16763 #ifndef uint16_t
16764 typedef u_int16_t uint16_t;
16765 #endif
16766 #endif
16767 #endif
16769 #ifndef _UINT32_T
16770 #define _UINT32_T
16771 #ifndef __uint32_t_defined
16772 #define __uint32_t_defined
16773 #ifndef uint32_t
16774 typedef u_int32_t uint32_t;
16775 #endif
16776 #endif
16777 #endif
16779 else
16780 sed 's/^ *//' >> tmp-stdint.h <<EOF
16782 /* Some systems have guard macros to prevent redefinitions, define them. */
16783 #ifndef _INT8_T
16784 #define _INT8_T
16785 #endif
16786 #ifndef _INT16_T
16787 #define _INT16_T
16788 #endif
16789 #ifndef _INT32_T
16790 #define _INT32_T
16791 #endif
16792 #ifndef _UINT8_T
16793 #define _UINT8_T
16794 #endif
16795 #ifndef _UINT16_T
16796 #define _UINT16_T
16797 #endif
16798 #ifndef _UINT32_T
16799 #define _UINT32_T
16800 #endif
16804 # ------------- done basic int types, emit int64_t types ------------
16805 if test "$ac_cv_type_uint64_t" = yes; then
16806 sed 's/^ *//' >> tmp-stdint.h <<EOF
16808 /* system headers have good uint64_t and int64_t */
16809 #ifndef _INT64_T
16810 #define _INT64_T
16811 #endif
16812 #ifndef _UINT64_T
16813 #define _UINT64_T
16814 #endif
16816 elif test "$ac_cv_type_u_int64_t" = yes; then
16817 sed 's/^ *//' >> tmp-stdint.h <<EOF
16819 /* system headers have an u_int64_t (and int64_t) */
16820 #ifndef _INT64_T
16821 #define _INT64_T
16822 #endif
16823 #ifndef _UINT64_T
16824 #define _UINT64_T
16825 #ifndef __uint64_t_defined
16826 #define __uint64_t_defined
16827 #ifndef uint64_t
16828 typedef u_int64_t uint64_t;
16829 #endif
16830 #endif
16831 #endif
16833 elif test -n "$acx_cv_type_int64_t"; then
16834 sed 's/^ *//' >> tmp-stdint.h <<EOF
16836 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
16837 #ifndef _INT64_T
16838 #define _INT64_T
16839 #ifndef int64_t
16840 typedef $acx_cv_type_int64_t int64_t;
16841 #endif
16842 #endif
16843 #ifndef _UINT64_T
16844 #define _UINT64_T
16845 #ifndef __uint64_t_defined
16846 #define __uint64_t_defined
16847 #ifndef uint64_t
16848 typedef unsigned $acx_cv_type_int64_t uint64_t;
16849 #endif
16850 #endif
16851 #endif
16853 else
16854 sed 's/^ *//' >> tmp-stdint.h <<EOF
16856 /* some common heuristics for int64_t, using compiler-specific tests */
16857 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
16858 #ifndef _INT64_T
16859 #define _INT64_T
16860 #ifndef __int64_t_defined
16861 #ifndef int64_t
16862 typedef long long int64_t;
16863 #endif
16864 #endif
16865 #endif
16866 #ifndef _UINT64_T
16867 #define _UINT64_T
16868 #ifndef uint64_t
16869 typedef unsigned long long uint64_t;
16870 #endif
16871 #endif
16873 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
16874 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
16875 does not implement __extension__. But that compiler doesn't define
16876 __GNUC_MINOR__. */
16877 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
16878 # define __extension__
16879 # endif
16881 # ifndef _INT64_T
16882 # define _INT64_T
16883 # ifndef int64_t
16884 __extension__ typedef long long int64_t;
16885 # endif
16886 # endif
16887 # ifndef _UINT64_T
16888 # define _UINT64_T
16889 # ifndef uint64_t
16890 __extension__ typedef unsigned long long uint64_t;
16891 # endif
16892 # endif
16894 #elif !defined __STRICT_ANSI__
16895 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
16897 # ifndef _INT64_T
16898 # define _INT64_T
16899 # ifndef int64_t
16900 typedef __int64 int64_t;
16901 # endif
16902 # endif
16903 # ifndef _UINT64_T
16904 # define _UINT64_T
16905 # ifndef uint64_t
16906 typedef unsigned __int64 uint64_t;
16907 # endif
16908 # endif
16909 # endif /* compiler */
16911 #endif /* ANSI version */
16915 # ------------- done int64_t types, emit intptr types ------------
16916 if test "$ac_cv_type_uintptr_t" != yes; then
16917 sed 's/^ *//' >> tmp-stdint.h <<EOF
16919 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
16920 #ifndef __uintptr_t_defined
16921 #ifndef uintptr_t
16922 typedef u$acx_cv_type_intptr_t uintptr_t;
16923 #endif
16924 #endif
16925 #ifndef __intptr_t_defined
16926 #ifndef intptr_t
16927 typedef $acx_cv_type_intptr_t intptr_t;
16928 #endif
16929 #endif
16933 # ------------- done intptr types, emit int_least types ------------
16934 if test "$ac_cv_type_int_least32_t" != yes; then
16935 sed 's/^ *//' >> tmp-stdint.h <<EOF
16937 /* Define int_least types */
16938 typedef int8_t int_least8_t;
16939 typedef int16_t int_least16_t;
16940 typedef int32_t int_least32_t;
16941 #ifdef _INT64_T
16942 typedef int64_t int_least64_t;
16943 #endif
16945 typedef uint8_t uint_least8_t;
16946 typedef uint16_t uint_least16_t;
16947 typedef uint32_t uint_least32_t;
16948 #ifdef _UINT64_T
16949 typedef uint64_t uint_least64_t;
16950 #endif
16954 # ------------- done intptr types, emit int_fast types ------------
16955 if test "$ac_cv_type_int_fast32_t" != yes; then
16956 sed 's/^ *//' >> tmp-stdint.h <<EOF
16958 /* Define int_fast types. short is often slow */
16959 typedef int8_t int_fast8_t;
16960 typedef int int_fast16_t;
16961 typedef int32_t int_fast32_t;
16962 #ifdef _INT64_T
16963 typedef int64_t int_fast64_t;
16964 #endif
16966 typedef uint8_t uint_fast8_t;
16967 typedef unsigned int uint_fast16_t;
16968 typedef uint32_t uint_fast32_t;
16969 #ifdef _UINT64_T
16970 typedef uint64_t uint_fast64_t;
16971 #endif
16975 if test "$ac_cv_type_uintmax_t" != yes; then
16976 sed 's/^ *//' >> tmp-stdint.h <<EOF
16978 /* Define intmax based on what we found */
16979 #ifndef intmax_t
16980 #ifdef _INT64_T
16981 typedef int64_t intmax_t;
16982 #else
16983 typedef long intmax_t;
16984 #endif
16985 #endif
16986 #ifndef uintmax_t
16987 #ifdef _UINT64_T
16988 typedef uint64_t uintmax_t;
16989 #else
16990 typedef unsigned long uintmax_t;
16991 #endif
16992 #endif
16996 sed 's/^ *//' >> tmp-stdint.h <<EOF
16998 #endif /* GCC_GENERATED_STDINT_H */
17001 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
17002 rm -f tmp-stdint.h
17003 else
17004 mv -f tmp-stdint.h gstdint.h
17008 "install-debuginfo-for-buildid.sh":F) chmod +x install-debuginfo-for-buildid.sh ;;
17009 "default":C) if test -n "$CONFIG_FILES"; then
17010 if test -n "${with_target_subdir}"; then
17011 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17012 # that multilib installs will end up installed in the correct place.
17013 # The testsuite needs it for multilib-aware ABI baseline files.
17014 # To work around this not being passed down from config-ml.in ->
17015 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
17016 # append it here. Only modify Makefiles that have just been created.
17018 # Also, get rid of this simulated-VPATH thing that automake does.
17019 cat > vpsed << \_EOF
17020 s!`test -f '$<' || echo '$(srcdir)/'`!!
17021 _EOF
17022 for i in $SUBDIRS; do
17023 case $CONFIG_FILES in
17024 *${i}/Makefile*)
17025 #echo "Adding MULTISUBDIR to $i/Makefile"
17026 sed -f vpsed $i/Makefile > tmp
17027 grep '^MULTISUBDIR =' Makefile >> tmp
17028 mv tmp $i/Makefile
17030 esac
17031 done
17032 rm vpsed
17037 esac
17038 done # for ac_tag
17041 as_fn_exit 0
17042 _ACEOF
17043 ac_clean_files=$ac_clean_files_save
17045 test $ac_write_fail = 0 ||
17046 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17049 # configure is writing to config.log, and then calls config.status.
17050 # config.status does its own redirection, appending to config.log.
17051 # Unfortunately, on DOS this fails, as config.log is still kept open
17052 # by configure, so config.status won't be able to write to it; its
17053 # output is simply discarded. So we exec the FD to /dev/null,
17054 # effectively closing config.log, so it can be properly (re)opened and
17055 # appended to by config.status. When coming back to configure, we
17056 # need to make the FD available again.
17057 if test "$no_create" != yes; then
17058 ac_cs_success=:
17059 ac_config_status_args=
17060 test "$silent" = yes &&
17061 ac_config_status_args="$ac_config_status_args --quiet"
17062 exec 5>/dev/null
17063 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17064 exec 5>>config.log
17065 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17066 # would make configure fail if this is the last instruction.
17067 $ac_cs_success || as_fn_exit 1
17069 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17071 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}