testsuite: Require 128 bit long double for ibmlongdouble.
[official-gcc.git] / lto-plugin / configure
blob675b9cfa522e94f32b5823de480ddef7dadbc3be
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for LTO plugin for ld 0.1.
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='LTO plugin for ld'
589 PACKAGE_TARNAME='lto-plugin'
590 PACKAGE_VERSION='0.1'
591 PACKAGE_STRING='LTO plugin for ld 0.1'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 target_noncanonical
636 lt_host_flags
637 OTOOL64
638 OTOOL
639 LIPO
640 NMEDIT
641 DSYMUTIL
642 RANLIB
644 OBJDUMP
645 LN_S
647 ac_ct_DUMPBIN
648 DUMPBIN
650 FGREP
652 LIBTOOL
653 ac_lto_plugin_extra_ldflags
654 LTO_PLUGIN_USE_SYMVER_SUN_FALSE
655 LTO_PLUGIN_USE_SYMVER_SUN_TRUE
656 LTO_PLUGIN_USE_SYMVER_GNU_FALSE
657 LTO_PLUGIN_USE_SYMVER_GNU_TRUE
658 LTO_PLUGIN_USE_SYMVER_FALSE
659 LTO_PLUGIN_USE_SYMVER_TRUE
660 get_gcc_base_ver
661 real_target_noncanonical
662 accel_dir_suffix
663 gcc_build_dir
664 CET_HOST_FLAGS
665 ac_lto_plugin_ldflags
666 enable_host_bind_now
667 ac_lto_plugin_warn_cflags
668 EGREP
669 GREP
671 am__fastdepCC_FALSE
672 am__fastdepCC_TRUE
673 CCDEPMODE
674 am__nodep
675 AMDEPBACKSLASH
676 AMDEP_FALSE
677 AMDEP_TRUE
678 am__quote
679 am__include
680 DEPDIR
681 OBJEXT
682 EXEEXT
683 ac_ct_CC
684 CPPFLAGS
685 LDFLAGS
686 CFLAGS
688 with_libiberty
689 MAINT
690 MAINTAINER_MODE_FALSE
691 MAINTAINER_MODE_TRUE
692 AM_BACKSLASH
693 AM_DEFAULT_VERBOSITY
694 AM_DEFAULT_V
695 AM_V
696 am__untar
697 am__tar
698 AMTAR
699 am__leading_dot
700 SET_MAKE
702 mkdir_p
703 MKDIR_P
704 INSTALL_STRIP_PROGRAM
705 STRIP
706 install_sh
707 MAKEINFO
708 AUTOHEADER
709 AUTOMAKE
710 AUTOCONF
711 ACLOCAL
712 VERSION
713 PACKAGE
714 CYGPATH_W
715 am__isrc
716 INSTALL_DATA
717 INSTALL_SCRIPT
718 INSTALL_PROGRAM
719 target_subdir
720 host_subdir
721 build_subdir
722 build_libsubdir
723 target_os
724 target_vendor
725 target_cpu
726 target
727 host_os
728 host_vendor
729 host_cpu
730 host
731 build_os
732 build_vendor
733 build_cpu
734 build
735 target_alias
736 host_alias
737 build_alias
738 LIBS
739 ECHO_T
740 ECHO_N
741 ECHO_C
742 DEFS
743 mandir
744 localedir
745 libdir
746 psdir
747 pdfdir
748 dvidir
749 htmldir
750 infodir
751 docdir
752 oldincludedir
753 includedir
754 localstatedir
755 sharedstatedir
756 sysconfdir
757 datadir
758 datarootdir
759 libexecdir
760 sbindir
761 bindir
762 program_transform_name
763 prefix
764 exec_prefix
765 PACKAGE_URL
766 PACKAGE_BUGREPORT
767 PACKAGE_STRING
768 PACKAGE_VERSION
769 PACKAGE_TARNAME
770 PACKAGE_NAME
771 PATH_SEPARATOR
772 SHELL'
773 ac_subst_files=''
774 ac_user_opts='
775 enable_option_checking
776 with_build_libsubdir
777 enable_silent_rules
778 enable_maintainer_mode
779 with_libiberty
780 enable_dependency_tracking
781 enable_largefile
782 enable_host_bind_now
783 enable_cet
784 with_gcc_major_version_only
785 enable_shared
786 enable_static
787 with_pic
788 enable_fast_install
789 with_gnu_ld
790 enable_libtool_lock
792 ac_precious_vars='build_alias
793 host_alias
794 target_alias
796 CFLAGS
797 LDFLAGS
798 LIBS
799 CPPFLAGS
800 CPP'
803 # Initialize some variables set by options.
804 ac_init_help=
805 ac_init_version=false
806 ac_unrecognized_opts=
807 ac_unrecognized_sep=
808 # The variables have the same names as the options, with
809 # dashes changed to underlines.
810 cache_file=/dev/null
811 exec_prefix=NONE
812 no_create=
813 no_recursion=
814 prefix=NONE
815 program_prefix=NONE
816 program_suffix=NONE
817 program_transform_name=s,x,x,
818 silent=
819 site=
820 srcdir=
821 verbose=
822 x_includes=NONE
823 x_libraries=NONE
825 # Installation directory options.
826 # These are left unexpanded so users can "make install exec_prefix=/foo"
827 # and all the variables that are supposed to be based on exec_prefix
828 # by default will actually change.
829 # Use braces instead of parens because sh, perl, etc. also accept them.
830 # (The list follows the same order as the GNU Coding Standards.)
831 bindir='${exec_prefix}/bin'
832 sbindir='${exec_prefix}/sbin'
833 libexecdir='${exec_prefix}/libexec'
834 datarootdir='${prefix}/share'
835 datadir='${datarootdir}'
836 sysconfdir='${prefix}/etc'
837 sharedstatedir='${prefix}/com'
838 localstatedir='${prefix}/var'
839 includedir='${prefix}/include'
840 oldincludedir='/usr/include'
841 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842 infodir='${datarootdir}/info'
843 htmldir='${docdir}'
844 dvidir='${docdir}'
845 pdfdir='${docdir}'
846 psdir='${docdir}'
847 libdir='${exec_prefix}/lib'
848 localedir='${datarootdir}/locale'
849 mandir='${datarootdir}/man'
851 ac_prev=
852 ac_dashdash=
853 for ac_option
855 # If the previous option needs an argument, assign it.
856 if test -n "$ac_prev"; then
857 eval $ac_prev=\$ac_option
858 ac_prev=
859 continue
862 case $ac_option in
863 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864 *=) ac_optarg= ;;
865 *) ac_optarg=yes ;;
866 esac
868 # Accept the important Cygnus configure options, so we can diagnose typos.
870 case $ac_dashdash$ac_option in
872 ac_dashdash=yes ;;
874 -bindir | --bindir | --bindi | --bind | --bin | --bi)
875 ac_prev=bindir ;;
876 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
877 bindir=$ac_optarg ;;
879 -build | --build | --buil | --bui | --bu)
880 ac_prev=build_alias ;;
881 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
882 build_alias=$ac_optarg ;;
884 -cache-file | --cache-file | --cache-fil | --cache-fi \
885 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
886 ac_prev=cache_file ;;
887 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
888 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
889 cache_file=$ac_optarg ;;
891 --config-cache | -C)
892 cache_file=config.cache ;;
894 -datadir | --datadir | --datadi | --datad)
895 ac_prev=datadir ;;
896 -datadir=* | --datadir=* | --datadi=* | --datad=*)
897 datadir=$ac_optarg ;;
899 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900 | --dataroo | --dataro | --datar)
901 ac_prev=datarootdir ;;
902 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904 datarootdir=$ac_optarg ;;
906 -disable-* | --disable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error $? "invalid feature name: $ac_useropt"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
915 "enable_$ac_useropt"
916 "*) ;;
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
919 esac
920 eval enable_$ac_useropt=no ;;
922 -docdir | --docdir | --docdi | --doc | --do)
923 ac_prev=docdir ;;
924 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
925 docdir=$ac_optarg ;;
927 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
928 ac_prev=dvidir ;;
929 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
930 dvidir=$ac_optarg ;;
932 -enable-* | --enable-*)
933 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error $? "invalid feature name: $ac_useropt"
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
941 "enable_$ac_useropt"
942 "*) ;;
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
945 esac
946 eval enable_$ac_useropt=\$ac_optarg ;;
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
959 with_gas=yes ;;
961 -help | --help | --hel | --he | -h)
962 ac_init_help=long ;;
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 ac_prev=htmldir ;;
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 | --ht=*)
977 htmldir=$ac_optarg ;;
979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 ac_prev=infodir ;;
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
991 -libdir | --libdir | --libdi | --libd)
992 ac_prev=libdir ;;
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 libdir=$ac_optarg ;;
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1008 -localstatedir | --localstatedir | --localstatedi | --localstated \
1009 | --localstate | --localstat | --localsta | --localst | --locals)
1010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013 localstatedir=$ac_optarg ;;
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 ac_prev=mandir ;;
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1022 with_fp=no ;;
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1026 no_create=yes ;;
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 no_recursion=yes ;;
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 ac_prev=prefix ;;
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 ac_prev=pdfdir ;;
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1082 -psdir | --psdir | --psdi | --psd | --ps)
1083 ac_prev=psdir ;;
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 psdir=$ac_optarg ;;
1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1089 silent=yes ;;
1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 ac_prev=sbindir ;;
1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 | --sbi=* | --sb=*)
1095 sbindir=$ac_optarg ;;
1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099 | --sharedst | --shareds | --shared | --share | --shar \
1100 | --sha | --sh)
1101 ac_prev=sharedstatedir ;;
1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 | --sha=* | --sh=*)
1106 sharedstatedir=$ac_optarg ;;
1108 -site | --site | --sit)
1109 ac_prev=site ;;
1110 -site=* | --site=* | --sit=*)
1111 site=$ac_optarg ;;
1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 ac_prev=srcdir ;;
1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116 srcdir=$ac_optarg ;;
1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119 | --syscon | --sysco | --sysc | --sys | --sy)
1120 ac_prev=sysconfdir ;;
1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123 sysconfdir=$ac_optarg ;;
1125 -target | --target | --targe | --targ | --tar | --ta | --t)
1126 ac_prev=target_alias ;;
1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128 target_alias=$ac_optarg ;;
1130 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131 verbose=yes ;;
1133 -version | --version | --versio | --versi | --vers | -V)
1134 ac_init_version=: ;;
1136 -with-* | --with-*)
1137 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140 as_fn_error $? "invalid package name: $ac_useropt"
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1145 "with_$ac_useropt"
1146 "*) ;;
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
1149 esac
1150 eval with_$ac_useropt=\$ac_optarg ;;
1152 -without-* | --without-*)
1153 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 as_fn_error $? "invalid package name: $ac_useropt"
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1161 "with_$ac_useropt"
1162 "*) ;;
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
1165 esac
1166 eval with_$ac_useropt=no ;;
1168 --x)
1169 # Obsolete; use --with-x.
1170 with_x=yes ;;
1172 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173 | --x-incl | --x-inc | --x-in | --x-i)
1174 ac_prev=x_includes ;;
1175 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177 x_includes=$ac_optarg ;;
1179 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181 ac_prev=x_libraries ;;
1182 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184 x_libraries=$ac_optarg ;;
1186 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1187 Try \`$0 --help' for more information"
1190 *=*)
1191 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1192 # Reject names that are not valid shell variable names.
1193 case $ac_envvar in #(
1194 '' | [0-9]* | *[!_$as_cr_alnum]* )
1195 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1196 esac
1197 eval $ac_envvar=\$ac_optarg
1198 export $ac_envvar ;;
1201 # FIXME: should be removed in autoconf 3.0.
1202 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1205 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1208 esac
1209 done
1211 if test -n "$ac_prev"; then
1212 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1213 as_fn_error $? "missing argument to $ac_option"
1216 if test -n "$ac_unrecognized_opts"; then
1217 case $enable_option_checking in
1218 no) ;;
1219 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1220 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1221 esac
1224 # Check all directory arguments for consistency.
1225 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1226 datadir sysconfdir sharedstatedir localstatedir includedir \
1227 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1228 libdir localedir mandir
1230 eval ac_val=\$$ac_var
1231 # Remove trailing slashes.
1232 case $ac_val in
1233 */ )
1234 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1235 eval $ac_var=\$ac_val;;
1236 esac
1237 # Be sure to have absolute directory names.
1238 case $ac_val in
1239 [\\/$]* | ?:[\\/]* ) continue;;
1240 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1241 esac
1242 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1243 done
1245 # There might be people who depend on the old broken behavior: `$host'
1246 # used to hold the argument of --host etc.
1247 # FIXME: To remove some day.
1248 build=$build_alias
1249 host=$host_alias
1250 target=$target_alias
1252 # FIXME: To remove some day.
1253 if test "x$host_alias" != x; then
1254 if test "x$build_alias" = x; then
1255 cross_compiling=maybe
1256 elif test "x$build_alias" != "x$host_alias"; then
1257 cross_compiling=yes
1261 ac_tool_prefix=
1262 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1264 test "$silent" = yes && exec 6>/dev/null
1267 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1268 ac_ls_di=`ls -di .` &&
1269 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1270 as_fn_error $? "working directory cannot be determined"
1271 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1272 as_fn_error $? "pwd does not report name of working directory"
1275 # Find the source files, if location was not specified.
1276 if test -z "$srcdir"; then
1277 ac_srcdir_defaulted=yes
1278 # Try the directory containing this script, then the parent directory.
1279 ac_confdir=`$as_dirname -- "$as_myself" ||
1280 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1281 X"$as_myself" : 'X\(//\)[^/]' \| \
1282 X"$as_myself" : 'X\(//\)$' \| \
1283 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1284 $as_echo X"$as_myself" |
1285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1286 s//\1/
1289 /^X\(\/\/\)[^/].*/{
1290 s//\1/
1293 /^X\(\/\/\)$/{
1294 s//\1/
1297 /^X\(\/\).*/{
1298 s//\1/
1301 s/.*/./; q'`
1302 srcdir=$ac_confdir
1303 if test ! -r "$srcdir/$ac_unique_file"; then
1304 srcdir=..
1306 else
1307 ac_srcdir_defaulted=no
1309 if test ! -r "$srcdir/$ac_unique_file"; then
1310 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1311 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1313 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1314 ac_abs_confdir=`(
1315 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1316 pwd)`
1317 # When building in place, set srcdir=.
1318 if test "$ac_abs_confdir" = "$ac_pwd"; then
1319 srcdir=.
1321 # Remove unnecessary trailing slashes from srcdir.
1322 # Double slashes in file names in object file debugging info
1323 # mess up M-x gdb in Emacs.
1324 case $srcdir in
1325 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1326 esac
1327 for ac_var in $ac_precious_vars; do
1328 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1329 eval ac_env_${ac_var}_value=\$${ac_var}
1330 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1331 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1332 done
1335 # Report the --help message.
1337 if test "$ac_init_help" = "long"; then
1338 # Omit some internal or obsolete options to make the list less imposing.
1339 # This message is too long to be a string in the A/UX 3.1 sh.
1340 cat <<_ACEOF
1341 \`configure' configures LTO plugin for ld 0.1 to adapt to many kinds of systems.
1343 Usage: $0 [OPTION]... [VAR=VALUE]...
1345 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1346 VAR=VALUE. See below for descriptions of some of the useful variables.
1348 Defaults for the options are specified in brackets.
1350 Configuration:
1351 -h, --help display this help and exit
1352 --help=short display options specific to this package
1353 --help=recursive display the short help of all the included packages
1354 -V, --version display version information and exit
1355 -q, --quiet, --silent do not print \`checking ...' messages
1356 --cache-file=FILE cache test results in FILE [disabled]
1357 -C, --config-cache alias for \`--cache-file=config.cache'
1358 -n, --no-create do not create output files
1359 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1361 Installation directories:
1362 --prefix=PREFIX install architecture-independent files in PREFIX
1363 [$ac_default_prefix]
1364 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1365 [PREFIX]
1367 By default, \`make install' will install all the files in
1368 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1369 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1370 for instance \`--prefix=\$HOME'.
1372 For better control, use the options below.
1374 Fine tuning of the installation directories:
1375 --bindir=DIR user executables [EPREFIX/bin]
1376 --sbindir=DIR system admin executables [EPREFIX/sbin]
1377 --libexecdir=DIR program executables [EPREFIX/libexec]
1378 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1379 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1380 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1381 --libdir=DIR object code libraries [EPREFIX/lib]
1382 --includedir=DIR C header files [PREFIX/include]
1383 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1384 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1385 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1386 --infodir=DIR info documentation [DATAROOTDIR/info]
1387 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1388 --mandir=DIR man documentation [DATAROOTDIR/man]
1389 --docdir=DIR documentation root [DATAROOTDIR/doc/lto-plugin]
1390 --htmldir=DIR html documentation [DOCDIR]
1391 --dvidir=DIR dvi documentation [DOCDIR]
1392 --pdfdir=DIR pdf documentation [DOCDIR]
1393 --psdir=DIR ps documentation [DOCDIR]
1394 _ACEOF
1396 cat <<\_ACEOF
1398 Program names:
1399 --program-prefix=PREFIX prepend PREFIX to installed program names
1400 --program-suffix=SUFFIX append SUFFIX to installed program names
1401 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1403 System types:
1404 --build=BUILD configure for building on BUILD [guessed]
1405 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1406 --target=TARGET configure for building compilers for TARGET [HOST]
1407 _ACEOF
1410 if test -n "$ac_init_help"; then
1411 case $ac_init_help in
1412 short | recursive ) echo "Configuration of LTO plugin for ld 0.1:";;
1413 esac
1414 cat <<\_ACEOF
1416 Optional Features:
1417 --disable-option-checking ignore unrecognized --enable/--with options
1418 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1419 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1420 --enable-silent-rules less verbose build output (undo: "make V=1")
1421 --disable-silent-rules verbose build output (undo: "make V=0")
1422 --enable-maintainer-mode
1423 enable make rules and dependencies not useful (and
1424 sometimes confusing) to the casual installer
1425 --enable-dependency-tracking
1426 do not reject slow dependency extractors
1427 --disable-dependency-tracking
1428 speeds up one-time build
1429 --disable-largefile omit support for large files
1430 --enable-host-bind-now link host code as BIND_NOW
1431 --enable-cet enable Intel CET in host libraries [default=auto]
1432 --enable-shared[=PKGS] build shared libraries [default=yes]
1433 --enable-static[=PKGS] build static libraries [default=yes]
1434 --enable-fast-install[=PKGS]
1435 optimize for fast installation [default=yes]
1436 --disable-libtool-lock avoid locking (might break parallel builds)
1438 Optional Packages:
1439 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1440 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1441 --with-build-libsubdir=DIR Directory where to find libraries for build system
1442 --with-libiberty=PATH specify the directory where to find libiberty
1443 [../libiberty]
1444 --with-gcc-major-version-only
1445 use only GCC major number in filesystem paths
1446 --with-pic try to use only PIC/non-PIC objects [default=use
1447 both]
1448 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1450 Some influential environment variables:
1451 CC C compiler command
1452 CFLAGS C compiler flags
1453 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1454 nonstandard directory <lib dir>
1455 LIBS libraries to pass to the linker, e.g. -l<library>
1456 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1457 you have headers in a nonstandard directory <include dir>
1458 CPP C preprocessor
1460 Use these variables to override the choices made by `configure' or to help
1461 it to find libraries and programs with nonstandard names/locations.
1463 Report bugs to the package provider.
1464 _ACEOF
1465 ac_status=$?
1468 if test "$ac_init_help" = "recursive"; then
1469 # If there are subdirs, report their specific --help.
1470 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1471 test -d "$ac_dir" ||
1472 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1473 continue
1474 ac_builddir=.
1476 case "$ac_dir" in
1477 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1480 # A ".." for each directory in $ac_dir_suffix.
1481 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1482 case $ac_top_builddir_sub in
1483 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1485 esac ;;
1486 esac
1487 ac_abs_top_builddir=$ac_pwd
1488 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1489 # for backward compatibility:
1490 ac_top_builddir=$ac_top_build_prefix
1492 case $srcdir in
1493 .) # We are building in place.
1494 ac_srcdir=.
1495 ac_top_srcdir=$ac_top_builddir_sub
1496 ac_abs_top_srcdir=$ac_pwd ;;
1497 [\\/]* | ?:[\\/]* ) # Absolute name.
1498 ac_srcdir=$srcdir$ac_dir_suffix;
1499 ac_top_srcdir=$srcdir
1500 ac_abs_top_srcdir=$srcdir ;;
1501 *) # Relative name.
1502 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1503 ac_top_srcdir=$ac_top_build_prefix$srcdir
1504 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1505 esac
1506 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1508 cd "$ac_dir" || { ac_status=$?; continue; }
1509 # Check for guested configure.
1510 if test -f "$ac_srcdir/configure.gnu"; then
1511 echo &&
1512 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1513 elif test -f "$ac_srcdir/configure"; then
1514 echo &&
1515 $SHELL "$ac_srcdir/configure" --help=recursive
1516 else
1517 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1518 fi || ac_status=$?
1519 cd "$ac_pwd" || { ac_status=$?; break; }
1520 done
1523 test -n "$ac_init_help" && exit $ac_status
1524 if $ac_init_version; then
1525 cat <<\_ACEOF
1526 LTO plugin for ld configure 0.1
1527 generated by GNU Autoconf 2.69
1529 Copyright (C) 2012 Free Software Foundation, Inc.
1530 This configure script is free software; the Free Software Foundation
1531 gives unlimited permission to copy, distribute and modify it.
1532 _ACEOF
1533 exit
1536 ## ------------------------ ##
1537 ## Autoconf initialization. ##
1538 ## ------------------------ ##
1540 # ac_fn_c_try_compile LINENO
1541 # --------------------------
1542 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1543 ac_fn_c_try_compile ()
1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546 rm -f conftest.$ac_objext
1547 if { { ac_try="$ac_compile"
1548 case "(($ac_try" in
1549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1550 *) ac_try_echo=$ac_try;;
1551 esac
1552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553 $as_echo "$ac_try_echo"; } >&5
1554 (eval "$ac_compile") 2>conftest.err
1555 ac_status=$?
1556 if test -s conftest.err; then
1557 grep -v '^ *+' conftest.err >conftest.er1
1558 cat conftest.er1 >&5
1559 mv -f conftest.er1 conftest.err
1561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562 test $ac_status = 0; } && {
1563 test -z "$ac_c_werror_flag" ||
1564 test ! -s conftest.err
1565 } && test -s conftest.$ac_objext; then :
1566 ac_retval=0
1567 else
1568 $as_echo "$as_me: failed program was:" >&5
1569 sed 's/^/| /' conftest.$ac_ext >&5
1571 ac_retval=1
1573 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574 as_fn_set_status $ac_retval
1576 } # ac_fn_c_try_compile
1578 # ac_fn_c_try_cpp LINENO
1579 # ----------------------
1580 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1581 ac_fn_c_try_cpp ()
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 if { { ac_try="$ac_cpp conftest.$ac_ext"
1585 case "(($ac_try" in
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1588 esac
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1592 ac_status=$?
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } > conftest.i && {
1600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1601 test ! -s conftest.err
1602 }; then :
1603 ac_retval=0
1604 else
1605 $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1608 ac_retval=1
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611 as_fn_set_status $ac_retval
1613 } # ac_fn_c_try_cpp
1615 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1616 # -------------------------------------------------------
1617 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1618 # the include files in INCLUDES and setting the cache variable VAR
1619 # accordingly.
1620 ac_fn_c_check_header_mongrel ()
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 if eval \${$3+:} false; then :
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1625 $as_echo_n "checking for $2... " >&6; }
1626 if eval \${$3+:} false; then :
1627 $as_echo_n "(cached) " >&6
1629 eval ac_res=\$$3
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631 $as_echo "$ac_res" >&6; }
1632 else
1633 # Is the header compilable?
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1635 $as_echo_n "checking $2 usability... " >&6; }
1636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1637 /* end confdefs.h. */
1639 #include <$2>
1640 _ACEOF
1641 if ac_fn_c_try_compile "$LINENO"; then :
1642 ac_header_compiler=yes
1643 else
1644 ac_header_compiler=no
1646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1648 $as_echo "$ac_header_compiler" >&6; }
1650 # Is the header present?
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1652 $as_echo_n "checking $2 presence... " >&6; }
1653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654 /* end confdefs.h. */
1655 #include <$2>
1656 _ACEOF
1657 if ac_fn_c_try_cpp "$LINENO"; then :
1658 ac_header_preproc=yes
1659 else
1660 ac_header_preproc=no
1662 rm -f conftest.err conftest.i conftest.$ac_ext
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1664 $as_echo "$ac_header_preproc" >&6; }
1666 # So? What about this header?
1667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1668 yes:no: )
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1670 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1672 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1674 no:yes:* )
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1676 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1678 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1680 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1682 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1684 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1686 esac
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1688 $as_echo_n "checking for $2... " >&6; }
1689 if eval \${$3+:} false; then :
1690 $as_echo_n "(cached) " >&6
1691 else
1692 eval "$3=\$ac_header_compiler"
1694 eval ac_res=\$$3
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1696 $as_echo "$ac_res" >&6; }
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700 } # ac_fn_c_check_header_mongrel
1702 # ac_fn_c_try_run LINENO
1703 # ----------------------
1704 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1705 # that executables *can* be run.
1706 ac_fn_c_try_run ()
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 if { { ac_try="$ac_link"
1710 case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713 esac
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_link") 2>&5
1717 ac_status=$?
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1720 { { case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_try") 2>&5
1727 ac_status=$?
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; }; }; then :
1730 ac_retval=0
1731 else
1732 $as_echo "$as_me: program exited with status $ac_status" >&5
1733 $as_echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.$ac_ext >&5
1736 ac_retval=$ac_status
1738 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740 as_fn_set_status $ac_retval
1742 } # ac_fn_c_try_run
1744 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1745 # -------------------------------------------------------
1746 # Tests whether HEADER exists and can be compiled using the include files in
1747 # INCLUDES, setting the cache variable VAR accordingly.
1748 ac_fn_c_check_header_compile ()
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752 $as_echo_n "checking for $2... " >&6; }
1753 if eval \${$3+:} false; then :
1754 $as_echo_n "(cached) " >&6
1755 else
1756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757 /* end confdefs.h. */
1759 #include <$2>
1760 _ACEOF
1761 if ac_fn_c_try_compile "$LINENO"; then :
1762 eval "$3=yes"
1763 else
1764 eval "$3=no"
1766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1768 eval ac_res=\$$3
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770 $as_echo "$ac_res" >&6; }
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 } # ac_fn_c_check_header_compile
1775 # ac_fn_c_try_link LINENO
1776 # -----------------------
1777 # Try to link conftest.$ac_ext, and return whether this succeeded.
1778 ac_fn_c_try_link ()
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 rm -f conftest.$ac_objext conftest$ac_exeext
1782 if { { ac_try="$ac_link"
1783 case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_link") 2>conftest.err
1790 ac_status=$?
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } && {
1798 test -z "$ac_c_werror_flag" ||
1799 test ! -s conftest.err
1800 } && test -s conftest$ac_exeext && {
1801 test "$cross_compiling" = yes ||
1802 test -x conftest$ac_exeext
1803 }; then :
1804 ac_retval=0
1805 else
1806 $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1809 ac_retval=1
1811 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1812 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1813 # interfere with the next link command; also delete a directory that is
1814 # left behind by Apple's compiler. We do this before executing the actions.
1815 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817 as_fn_set_status $ac_retval
1819 } # ac_fn_c_try_link
1821 # ac_fn_c_check_func LINENO FUNC VAR
1822 # ----------------------------------
1823 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1824 ac_fn_c_check_func ()
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1828 $as_echo_n "checking for $2... " >&6; }
1829 if eval \${$3+:} false; then :
1830 $as_echo_n "(cached) " >&6
1831 else
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1834 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1836 #define $2 innocuous_$2
1838 /* System header to define __stub macros and hopefully few prototypes,
1839 which can conflict with char $2 (); below.
1840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1841 <limits.h> exists even on freestanding compilers. */
1843 #ifdef __STDC__
1844 # include <limits.h>
1845 #else
1846 # include <assert.h>
1847 #endif
1849 #undef $2
1851 /* Override any GCC internal prototype to avoid an error.
1852 Use char because int might match the return type of a GCC
1853 builtin and then its argument prototype would still apply. */
1854 #ifdef __cplusplus
1855 extern "C"
1856 #endif
1857 char $2 ();
1858 /* The GNU C library defines this for functions which it implements
1859 to always fail with ENOSYS. Some functions are actually named
1860 something starting with __ and the normal name is an alias. */
1861 #if defined __stub_$2 || defined __stub___$2
1862 choke me
1863 #endif
1866 main ()
1868 return $2 ();
1870 return 0;
1872 _ACEOF
1873 if ac_fn_c_try_link "$LINENO"; then :
1874 eval "$3=yes"
1875 else
1876 eval "$3=no"
1878 rm -f core conftest.err conftest.$ac_objext \
1879 conftest$ac_exeext conftest.$ac_ext
1881 eval ac_res=\$$3
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 $as_echo "$ac_res" >&6; }
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886 } # ac_fn_c_check_func
1888 # ac_fn_c_find_intX_t LINENO BITS VAR
1889 # -----------------------------------
1890 # Finds a signed integer type with width BITS, setting cache variable VAR
1891 # accordingly.
1892 ac_fn_c_find_intX_t ()
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1896 $as_echo_n "checking for int$2_t... " >&6; }
1897 if eval \${$3+:} false; then :
1898 $as_echo_n "(cached) " >&6
1899 else
1900 eval "$3=no"
1901 # Order is important - never check a type that is potentially smaller
1902 # than half of the expected target width.
1903 for ac_type in int$2_t 'int' 'long int' \
1904 'long long int' 'short int' 'signed char'; do
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1907 $ac_includes_default
1908 enum { N = $2 / 2 - 1 };
1910 main ()
1912 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1913 test_array [0] = 0;
1914 return test_array [0];
1917 return 0;
1919 _ACEOF
1920 if ac_fn_c_try_compile "$LINENO"; then :
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1923 $ac_includes_default
1924 enum { N = $2 / 2 - 1 };
1926 main ()
1928 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1929 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1930 test_array [0] = 0;
1931 return test_array [0];
1934 return 0;
1936 _ACEOF
1937 if ac_fn_c_try_compile "$LINENO"; then :
1939 else
1940 case $ac_type in #(
1941 int$2_t) :
1942 eval "$3=yes" ;; #(
1943 *) :
1944 eval "$3=\$ac_type" ;;
1945 esac
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1950 if eval test \"x\$"$3"\" = x"no"; then :
1952 else
1953 break
1955 done
1957 eval ac_res=\$$3
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959 $as_echo "$ac_res" >&6; }
1960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962 } # ac_fn_c_find_intX_t
1964 # ac_fn_c_find_uintX_t LINENO BITS VAR
1965 # ------------------------------------
1966 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1967 # accordingly.
1968 ac_fn_c_find_uintX_t ()
1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1972 $as_echo_n "checking for uint$2_t... " >&6; }
1973 if eval \${$3+:} false; then :
1974 $as_echo_n "(cached) " >&6
1975 else
1976 eval "$3=no"
1977 # Order is important - never check a type that is potentially smaller
1978 # than half of the expected target width.
1979 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1980 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1983 $ac_includes_default
1985 main ()
1987 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1988 test_array [0] = 0;
1989 return test_array [0];
1992 return 0;
1994 _ACEOF
1995 if ac_fn_c_try_compile "$LINENO"; then :
1996 case $ac_type in #(
1997 uint$2_t) :
1998 eval "$3=yes" ;; #(
1999 *) :
2000 eval "$3=\$ac_type" ;;
2001 esac
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 if eval test \"x\$"$3"\" = x"no"; then :
2006 else
2007 break
2009 done
2011 eval ac_res=\$$3
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013 $as_echo "$ac_res" >&6; }
2014 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016 } # ac_fn_c_find_uintX_t
2017 cat >config.log <<_ACEOF
2018 This file contains any messages produced by compilers while
2019 running configure, to aid debugging if configure makes a mistake.
2021 It was created by LTO plugin for ld $as_me 0.1, which was
2022 generated by GNU Autoconf 2.69. Invocation command line was
2024 $ $0 $@
2026 _ACEOF
2027 exec 5>>config.log
2029 cat <<_ASUNAME
2030 ## --------- ##
2031 ## Platform. ##
2032 ## --------- ##
2034 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2035 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2036 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2037 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2038 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2040 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2041 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2043 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2044 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2045 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2046 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2047 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2048 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2049 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2051 _ASUNAME
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 for as_dir in $PATH
2056 IFS=$as_save_IFS
2057 test -z "$as_dir" && as_dir=.
2058 $as_echo "PATH: $as_dir"
2059 done
2060 IFS=$as_save_IFS
2062 } >&5
2064 cat >&5 <<_ACEOF
2067 ## ----------- ##
2068 ## Core tests. ##
2069 ## ----------- ##
2071 _ACEOF
2074 # Keep a trace of the command line.
2075 # Strip out --no-create and --no-recursion so they do not pile up.
2076 # Strip out --silent because we don't want to record it for future runs.
2077 # Also quote any args containing shell meta-characters.
2078 # Make two passes to allow for proper duplicate-argument suppression.
2079 ac_configure_args=
2080 ac_configure_args0=
2081 ac_configure_args1=
2082 ac_must_keep_next=false
2083 for ac_pass in 1 2
2085 for ac_arg
2087 case $ac_arg in
2088 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2090 | -silent | --silent | --silen | --sile | --sil)
2091 continue ;;
2092 *\'*)
2093 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2094 esac
2095 case $ac_pass in
2096 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2098 as_fn_append ac_configure_args1 " '$ac_arg'"
2099 if test $ac_must_keep_next = true; then
2100 ac_must_keep_next=false # Got value, back to normal.
2101 else
2102 case $ac_arg in
2103 *=* | --config-cache | -C | -disable-* | --disable-* \
2104 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2105 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2106 | -with-* | --with-* | -without-* | --without-* | --x)
2107 case "$ac_configure_args0 " in
2108 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2109 esac
2111 -* ) ac_must_keep_next=true ;;
2112 esac
2114 as_fn_append ac_configure_args " '$ac_arg'"
2116 esac
2117 done
2118 done
2119 { ac_configure_args0=; unset ac_configure_args0;}
2120 { ac_configure_args1=; unset ac_configure_args1;}
2122 # When interrupted or exit'd, cleanup temporary files, and complete
2123 # config.log. We remove comments because anyway the quotes in there
2124 # would cause problems or look ugly.
2125 # WARNING: Use '\'' to represent an apostrophe within the trap.
2126 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2127 trap 'exit_status=$?
2128 # Save into config.log some information that might help in debugging.
2130 echo
2132 $as_echo "## ---------------- ##
2133 ## Cache variables. ##
2134 ## ---------------- ##"
2135 echo
2136 # The following way of writing the cache mishandles newlines in values,
2138 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2139 eval ac_val=\$$ac_var
2140 case $ac_val in #(
2141 *${as_nl}*)
2142 case $ac_var in #(
2143 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2144 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2145 esac
2146 case $ac_var in #(
2147 _ | IFS | as_nl) ;; #(
2148 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2149 *) { eval $ac_var=; unset $ac_var;} ;;
2150 esac ;;
2151 esac
2152 done
2153 (set) 2>&1 |
2154 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2155 *${as_nl}ac_space=\ *)
2156 sed -n \
2157 "s/'\''/'\''\\\\'\'''\''/g;
2158 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2159 ;; #(
2161 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2163 esac |
2164 sort
2166 echo
2168 $as_echo "## ----------------- ##
2169 ## Output variables. ##
2170 ## ----------------- ##"
2171 echo
2172 for ac_var in $ac_subst_vars
2174 eval ac_val=\$$ac_var
2175 case $ac_val in
2176 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2177 esac
2178 $as_echo "$ac_var='\''$ac_val'\''"
2179 done | sort
2180 echo
2182 if test -n "$ac_subst_files"; then
2183 $as_echo "## ------------------- ##
2184 ## File substitutions. ##
2185 ## ------------------- ##"
2186 echo
2187 for ac_var in $ac_subst_files
2189 eval ac_val=\$$ac_var
2190 case $ac_val in
2191 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2192 esac
2193 $as_echo "$ac_var='\''$ac_val'\''"
2194 done | sort
2195 echo
2198 if test -s confdefs.h; then
2199 $as_echo "## ----------- ##
2200 ## confdefs.h. ##
2201 ## ----------- ##"
2202 echo
2203 cat confdefs.h
2204 echo
2206 test "$ac_signal" != 0 &&
2207 $as_echo "$as_me: caught signal $ac_signal"
2208 $as_echo "$as_me: exit $exit_status"
2209 } >&5
2210 rm -f core *.core core.conftest.* &&
2211 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2212 exit $exit_status
2214 for ac_signal in 1 2 13 15; do
2215 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2216 done
2217 ac_signal=0
2219 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2220 rm -f -r conftest* confdefs.h
2222 $as_echo "/* confdefs.h */" > confdefs.h
2224 # Predefined preprocessor variables.
2226 cat >>confdefs.h <<_ACEOF
2227 #define PACKAGE_NAME "$PACKAGE_NAME"
2228 _ACEOF
2230 cat >>confdefs.h <<_ACEOF
2231 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2232 _ACEOF
2234 cat >>confdefs.h <<_ACEOF
2235 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2236 _ACEOF
2238 cat >>confdefs.h <<_ACEOF
2239 #define PACKAGE_STRING "$PACKAGE_STRING"
2240 _ACEOF
2242 cat >>confdefs.h <<_ACEOF
2243 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2244 _ACEOF
2246 cat >>confdefs.h <<_ACEOF
2247 #define PACKAGE_URL "$PACKAGE_URL"
2248 _ACEOF
2251 # Let the site file select an alternate cache file if it wants to.
2252 # Prefer an explicitly selected file to automatically selected ones.
2253 ac_site_file1=NONE
2254 ac_site_file2=NONE
2255 if test -n "$CONFIG_SITE"; then
2256 # We do not want a PATH search for config.site.
2257 case $CONFIG_SITE in #((
2258 -*) ac_site_file1=./$CONFIG_SITE;;
2259 */*) ac_site_file1=$CONFIG_SITE;;
2260 *) ac_site_file1=./$CONFIG_SITE;;
2261 esac
2262 elif test "x$prefix" != xNONE; then
2263 ac_site_file1=$prefix/share/config.site
2264 ac_site_file2=$prefix/etc/config.site
2265 else
2266 ac_site_file1=$ac_default_prefix/share/config.site
2267 ac_site_file2=$ac_default_prefix/etc/config.site
2269 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2271 test "x$ac_site_file" = xNONE && continue
2272 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2274 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2275 sed 's/^/| /' "$ac_site_file" >&5
2276 . "$ac_site_file" \
2277 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2279 as_fn_error $? "failed to load site script $ac_site_file
2280 See \`config.log' for more details" "$LINENO" 5; }
2282 done
2284 if test -r "$cache_file"; then
2285 # Some versions of bash will fail to source /dev/null (special files
2286 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2287 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2289 $as_echo "$as_me: loading cache $cache_file" >&6;}
2290 case $cache_file in
2291 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2292 *) . "./$cache_file";;
2293 esac
2295 else
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2297 $as_echo "$as_me: creating cache $cache_file" >&6;}
2298 >$cache_file
2301 # Check that the precious variables saved in the cache have kept the same
2302 # value.
2303 ac_cache_corrupted=false
2304 for ac_var in $ac_precious_vars; do
2305 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2306 eval ac_new_set=\$ac_env_${ac_var}_set
2307 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2308 eval ac_new_val=\$ac_env_${ac_var}_value
2309 case $ac_old_set,$ac_new_set in
2310 set,)
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2312 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2313 ac_cache_corrupted=: ;;
2314 ,set)
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2316 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2317 ac_cache_corrupted=: ;;
2318 ,);;
2320 if test "x$ac_old_val" != "x$ac_new_val"; then
2321 # differences in whitespace do not lead to failure.
2322 ac_old_val_w=`echo x $ac_old_val`
2323 ac_new_val_w=`echo x $ac_new_val`
2324 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2326 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2327 ac_cache_corrupted=:
2328 else
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2330 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2331 eval $ac_var=\$ac_old_val
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2334 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2336 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2337 fi;;
2338 esac
2339 # Pass precious variables to config.status.
2340 if test "$ac_new_set" = set; then
2341 case $ac_new_val in
2342 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2343 *) ac_arg=$ac_var=$ac_new_val ;;
2344 esac
2345 case " $ac_configure_args " in
2346 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2347 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2348 esac
2350 done
2351 if $ac_cache_corrupted; then
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2355 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2356 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2358 ## -------------------- ##
2359 ## Main body of script. ##
2360 ## -------------------- ##
2362 ac_ext=c
2363 ac_cpp='$CPP $CPPFLAGS'
2364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2372 ac_aux_dir=
2373 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2374 if test -f "$ac_dir/install-sh"; then
2375 ac_aux_dir=$ac_dir
2376 ac_install_sh="$ac_aux_dir/install-sh -c"
2377 break
2378 elif test -f "$ac_dir/install.sh"; then
2379 ac_aux_dir=$ac_dir
2380 ac_install_sh="$ac_aux_dir/install.sh -c"
2381 break
2382 elif test -f "$ac_dir/shtool"; then
2383 ac_aux_dir=$ac_dir
2384 ac_install_sh="$ac_aux_dir/shtool install -c"
2385 break
2387 done
2388 if test -z "$ac_aux_dir"; then
2389 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2392 # These three variables are undocumented and unsupported,
2393 # and are intended to be withdrawn in a future Autoconf release.
2394 # They can cause serious problems if a builder's source tree is in a directory
2395 # whose full name contains unusual characters.
2396 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2397 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2398 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2401 # Make sure we can run config.sub.
2402 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2403 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2406 $as_echo_n "checking build system type... " >&6; }
2407 if ${ac_cv_build+:} false; then :
2408 $as_echo_n "(cached) " >&6
2409 else
2410 ac_build_alias=$build_alias
2411 test "x$ac_build_alias" = x &&
2412 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2413 test "x$ac_build_alias" = x &&
2414 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2415 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2416 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2420 $as_echo "$ac_cv_build" >&6; }
2421 case $ac_cv_build in
2422 *-*-*) ;;
2423 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2424 esac
2425 build=$ac_cv_build
2426 ac_save_IFS=$IFS; IFS='-'
2427 set x $ac_cv_build
2428 shift
2429 build_cpu=$1
2430 build_vendor=$2
2431 shift; shift
2432 # Remember, the first character of IFS is used to create $*,
2433 # except with old shells:
2434 build_os=$*
2435 IFS=$ac_save_IFS
2436 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2440 $as_echo_n "checking host system type... " >&6; }
2441 if ${ac_cv_host+:} false; then :
2442 $as_echo_n "(cached) " >&6
2443 else
2444 if test "x$host_alias" = x; then
2445 ac_cv_host=$ac_cv_build
2446 else
2447 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2448 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2453 $as_echo "$ac_cv_host" >&6; }
2454 case $ac_cv_host in
2455 *-*-*) ;;
2456 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2457 esac
2458 host=$ac_cv_host
2459 ac_save_IFS=$IFS; IFS='-'
2460 set x $ac_cv_host
2461 shift
2462 host_cpu=$1
2463 host_vendor=$2
2464 shift; shift
2465 # Remember, the first character of IFS is used to create $*,
2466 # except with old shells:
2467 host_os=$*
2468 IFS=$ac_save_IFS
2469 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2473 $as_echo_n "checking target system type... " >&6; }
2474 if ${ac_cv_target+:} false; then :
2475 $as_echo_n "(cached) " >&6
2476 else
2477 if test "x$target_alias" = x; then
2478 ac_cv_target=$ac_cv_host
2479 else
2480 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2481 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2486 $as_echo "$ac_cv_target" >&6; }
2487 case $ac_cv_target in
2488 *-*-*) ;;
2489 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2490 esac
2491 target=$ac_cv_target
2492 ac_save_IFS=$IFS; IFS='-'
2493 set x $ac_cv_target
2494 shift
2495 target_cpu=$1
2496 target_vendor=$2
2497 shift; shift
2498 # Remember, the first character of IFS is used to create $*,
2499 # except with old shells:
2500 target_os=$*
2501 IFS=$ac_save_IFS
2502 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2505 # The aliases save the names the user supplied, while $host etc.
2506 # will get canonicalized.
2507 test -n "$target_alias" &&
2508 test "$program_prefix$program_suffix$program_transform_name" = \
2509 NONENONEs,x,x, &&
2510 program_prefix=${target_alias}-
2512 case ${build_alias} in
2513 "") build_noncanonical=${build} ;;
2514 *) build_noncanonical=${build_alias} ;;
2515 esac
2517 case ${host_alias} in
2518 "") host_noncanonical=${build_noncanonical} ;;
2519 *) host_noncanonical=${host_alias} ;;
2520 esac
2522 case ${target_alias} in
2523 "") target_noncanonical=${host_noncanonical} ;;
2524 *) target_noncanonical=${target_alias} ;;
2525 esac
2528 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2529 # have matching libraries, they should use host libraries: Makefile.tpl
2530 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2531 # However, they still use the build modules, because the corresponding
2532 # host modules (e.g. bison) are only built for the host when bootstrap
2533 # finishes. So:
2534 # - build_subdir is where we find build modules, and never changes.
2535 # - build_libsubdir is where we find build libraries, and can be overridden.
2537 # Prefix 'build-' so this never conflicts with target_subdir.
2538 build_subdir="build-${build_noncanonical}"
2540 # Check whether --with-build-libsubdir was given.
2541 if test "${with_build_libsubdir+set}" = set; then :
2542 withval=$with_build_libsubdir; build_libsubdir="$withval"
2543 else
2544 build_libsubdir="$build_subdir"
2547 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2548 if ( test $srcdir = . && test -d gcc ) \
2549 || test -d $srcdir/../host-${host_noncanonical}; then
2550 host_subdir="host-${host_noncanonical}"
2551 else
2552 host_subdir=.
2554 # No prefix.
2555 target_subdir=${target_noncanonical}
2557 am__api_version='1.15'
2559 # Find a good install program. We prefer a C program (faster),
2560 # so one script is as good as another. But avoid the broken or
2561 # incompatible versions:
2562 # SysV /etc/install, /usr/sbin/install
2563 # SunOS /usr/etc/install
2564 # IRIX /sbin/install
2565 # AIX /bin/install
2566 # AmigaOS /C/install, which installs bootblocks on floppy discs
2567 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2568 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2569 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2570 # OS/2's system install, which has a completely different semantic
2571 # ./install, which can be erroneously created by make from ./install.sh.
2572 # Reject install programs that cannot install multiple files.
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2574 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2575 if test -z "$INSTALL"; then
2576 if ${ac_cv_path_install+:} false; then :
2577 $as_echo_n "(cached) " >&6
2578 else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 # Account for people who put trailing slashes in PATH elements.
2585 case $as_dir/ in #((
2586 ./ | .// | /[cC]/* | \
2587 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2588 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2589 /usr/ucb/* ) ;;
2591 # OSF1 and SCO ODT 3.0 have their own names for install.
2592 # Don't use installbsd from OSF since it installs stuff as root
2593 # by default.
2594 for ac_prog in ginstall scoinst install; do
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2597 if test $ac_prog = install &&
2598 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2599 # AIX install. It has an incompatible calling convention.
2601 elif test $ac_prog = install &&
2602 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2603 # program-specific install script used by HP pwplus--don't use.
2605 else
2606 rm -rf conftest.one conftest.two conftest.dir
2607 echo one > conftest.one
2608 echo two > conftest.two
2609 mkdir conftest.dir
2610 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2611 test -s conftest.one && test -s conftest.two &&
2612 test -s conftest.dir/conftest.one &&
2613 test -s conftest.dir/conftest.two
2614 then
2615 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2616 break 3
2620 done
2621 done
2623 esac
2625 done
2626 IFS=$as_save_IFS
2628 rm -rf conftest.one conftest.two conftest.dir
2631 if test "${ac_cv_path_install+set}" = set; then
2632 INSTALL=$ac_cv_path_install
2633 else
2634 # As a last resort, use the slow shell script. Don't cache a
2635 # value for INSTALL within a source directory, because that will
2636 # break other packages using the cache if that directory is
2637 # removed, or if the value is a relative name.
2638 INSTALL=$ac_install_sh
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2642 $as_echo "$INSTALL" >&6; }
2644 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2645 # It thinks the first close brace ends the variable substitution.
2646 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2648 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2650 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2653 $as_echo_n "checking whether build environment is sane... " >&6; }
2654 # Reject unsafe characters in $srcdir or the absolute working directory
2655 # name. Accept space and tab only in the latter.
2656 am_lf='
2658 case `pwd` in
2659 *[\\\"\#\$\&\'\`$am_lf]*)
2660 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2661 esac
2662 case $srcdir in
2663 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2664 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2665 esac
2667 # Do 'set' in a subshell so we don't clobber the current shell's
2668 # arguments. Must try -L first in case configure is actually a
2669 # symlink; some systems play weird games with the mod time of symlinks
2670 # (eg FreeBSD returns the mod time of the symlink's containing
2671 # directory).
2672 if (
2673 am_has_slept=no
2674 for am_try in 1 2; do
2675 echo "timestamp, slept: $am_has_slept" > conftest.file
2676 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2677 if test "$*" = "X"; then
2678 # -L didn't work.
2679 set X `ls -t "$srcdir/configure" conftest.file`
2681 if test "$*" != "X $srcdir/configure conftest.file" \
2682 && test "$*" != "X conftest.file $srcdir/configure"; then
2684 # If neither matched, then we have a broken ls. This can happen
2685 # if, for instance, CONFIG_SHELL is bash and it inherits a
2686 # broken ls alias from the environment. This has actually
2687 # happened. Such a system could not be considered "sane".
2688 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2689 alias in your environment" "$LINENO" 5
2691 if test "$2" = conftest.file || test $am_try -eq 2; then
2692 break
2694 # Just in case.
2695 sleep 1
2696 am_has_slept=yes
2697 done
2698 test "$2" = conftest.file
2700 then
2701 # Ok.
2703 else
2704 as_fn_error $? "newly created file is older than distributed files!
2705 Check your system clock" "$LINENO" 5
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2708 $as_echo "yes" >&6; }
2709 # If we didn't sleep, we still need to ensure time stamps of config.status and
2710 # generated files are strictly newer.
2711 am_sleep_pid=
2712 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2713 ( sleep 1 ) &
2714 am_sleep_pid=$!
2717 rm -f conftest.file
2719 test "$program_prefix" != NONE &&
2720 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2721 # Use a double $ so make ignores it.
2722 test "$program_suffix" != NONE &&
2723 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2724 # Double any \ or $.
2725 # By default was `s,x,x', remove it if useless.
2726 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2727 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2729 # Expand $ac_aux_dir to an absolute path.
2730 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2732 if test x"${MISSING+set}" != xset; then
2733 case $am_aux_dir in
2734 *\ * | *\ *)
2735 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2737 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2738 esac
2740 # Use eval to expand $SHELL
2741 if eval "$MISSING --is-lightweight"; then
2742 am_missing_run="$MISSING "
2743 else
2744 am_missing_run=
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2746 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2749 if test x"${install_sh+set}" != xset; then
2750 case $am_aux_dir in
2751 *\ * | *\ *)
2752 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2754 install_sh="\${SHELL} $am_aux_dir/install-sh"
2755 esac
2758 # Installed binaries are usually stripped using 'strip' when the user
2759 # run "make install-strip". However 'strip' might not be the right
2760 # tool to use in cross-compilation environments, therefore Automake
2761 # will honor the 'STRIP' environment variable to overrule this program.
2762 if test "$cross_compiling" != no; then
2763 if test -n "$ac_tool_prefix"; then
2764 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2765 set dummy ${ac_tool_prefix}strip; ac_word=$2
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767 $as_echo_n "checking for $ac_word... " >&6; }
2768 if ${ac_cv_prog_STRIP+:} false; then :
2769 $as_echo_n "(cached) " >&6
2770 else
2771 if test -n "$STRIP"; then
2772 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2773 else
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2781 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 break 2
2785 done
2786 done
2787 IFS=$as_save_IFS
2791 STRIP=$ac_cv_prog_STRIP
2792 if test -n "$STRIP"; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2794 $as_echo "$STRIP" >&6; }
2795 else
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797 $as_echo "no" >&6; }
2802 if test -z "$ac_cv_prog_STRIP"; then
2803 ac_ct_STRIP=$STRIP
2804 # Extract the first word of "strip", so it can be a program name with args.
2805 set dummy strip; ac_word=$2
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807 $as_echo_n "checking for $ac_word... " >&6; }
2808 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2809 $as_echo_n "(cached) " >&6
2810 else
2811 if test -n "$ac_ct_STRIP"; then
2812 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2813 else
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821 ac_cv_prog_ac_ct_STRIP="strip"
2822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 break 2
2825 done
2826 done
2827 IFS=$as_save_IFS
2831 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2832 if test -n "$ac_ct_STRIP"; then
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2834 $as_echo "$ac_ct_STRIP" >&6; }
2835 else
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837 $as_echo "no" >&6; }
2840 if test "x$ac_ct_STRIP" = x; then
2841 STRIP=":"
2842 else
2843 case $cross_compiling:$ac_tool_warned in
2844 yes:)
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2847 ac_tool_warned=yes ;;
2848 esac
2849 STRIP=$ac_ct_STRIP
2851 else
2852 STRIP="$ac_cv_prog_STRIP"
2856 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2859 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2860 if test -z "$MKDIR_P"; then
2861 if ${ac_cv_path_mkdir+:} false; then :
2862 $as_echo_n "(cached) " >&6
2863 else
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2867 IFS=$as_save_IFS
2868 test -z "$as_dir" && as_dir=.
2869 for ac_prog in mkdir gmkdir; do
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2872 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2873 'mkdir (GNU coreutils) '* | \
2874 'mkdir (coreutils) '* | \
2875 'mkdir (fileutils) '4.1*)
2876 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2877 break 3;;
2878 esac
2879 done
2880 done
2881 done
2882 IFS=$as_save_IFS
2886 test -d ./--version && rmdir ./--version
2887 if test "${ac_cv_path_mkdir+set}" = set; then
2888 MKDIR_P="$ac_cv_path_mkdir -p"
2889 else
2890 # As a last resort, use the slow shell script. Don't cache a
2891 # value for MKDIR_P within a source directory, because that will
2892 # break other packages using the cache if that directory is
2893 # removed, or if the value is a relative name.
2894 MKDIR_P="$ac_install_sh -d"
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2898 $as_echo "$MKDIR_P" >&6; }
2900 for ac_prog in gawk mawk nawk awk
2902 # Extract the first word of "$ac_prog", so it can be a program name with args.
2903 set dummy $ac_prog; ac_word=$2
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905 $as_echo_n "checking for $ac_word... " >&6; }
2906 if ${ac_cv_prog_AWK+:} false; then :
2907 $as_echo_n "(cached) " >&6
2908 else
2909 if test -n "$AWK"; then
2910 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2911 else
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 for as_dir in $PATH
2915 IFS=$as_save_IFS
2916 test -z "$as_dir" && as_dir=.
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2919 ac_cv_prog_AWK="$ac_prog"
2920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921 break 2
2923 done
2924 done
2925 IFS=$as_save_IFS
2929 AWK=$ac_cv_prog_AWK
2930 if test -n "$AWK"; then
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2932 $as_echo "$AWK" >&6; }
2933 else
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 $as_echo "no" >&6; }
2939 test -n "$AWK" && break
2940 done
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2943 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2944 set x ${MAKE-make}
2945 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2946 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2947 $as_echo_n "(cached) " >&6
2948 else
2949 cat >conftest.make <<\_ACEOF
2950 SHELL = /bin/sh
2951 all:
2952 @echo '@@@%%%=$(MAKE)=@@@%%%'
2953 _ACEOF
2954 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2955 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2956 *@@@%%%=?*=@@@%%%*)
2957 eval ac_cv_prog_make_${ac_make}_set=yes;;
2959 eval ac_cv_prog_make_${ac_make}_set=no;;
2960 esac
2961 rm -f conftest.make
2963 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2965 $as_echo "yes" >&6; }
2966 SET_MAKE=
2967 else
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969 $as_echo "no" >&6; }
2970 SET_MAKE="MAKE=${MAKE-make}"
2973 rm -rf .tst 2>/dev/null
2974 mkdir .tst 2>/dev/null
2975 if test -d .tst; then
2976 am__leading_dot=.
2977 else
2978 am__leading_dot=_
2980 rmdir .tst 2>/dev/null
2982 # Check whether --enable-silent-rules was given.
2983 if test "${enable_silent_rules+set}" = set; then :
2984 enableval=$enable_silent_rules;
2987 case $enable_silent_rules in # (((
2988 yes) AM_DEFAULT_VERBOSITY=0;;
2989 no) AM_DEFAULT_VERBOSITY=1;;
2990 *) AM_DEFAULT_VERBOSITY=1;;
2991 esac
2992 am_make=${MAKE-make}
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2994 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2995 if ${am_cv_make_support_nested_variables+:} false; then :
2996 $as_echo_n "(cached) " >&6
2997 else
2998 if $as_echo 'TRUE=$(BAR$(V))
2999 BAR0=false
3000 BAR1=true
3002 am__doit:
3003 @$(TRUE)
3004 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3005 am_cv_make_support_nested_variables=yes
3006 else
3007 am_cv_make_support_nested_variables=no
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3011 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3012 if test $am_cv_make_support_nested_variables = yes; then
3013 AM_V='$(V)'
3014 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3015 else
3016 AM_V=$AM_DEFAULT_VERBOSITY
3017 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3019 AM_BACKSLASH='\'
3021 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3022 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3023 # is not polluted with repeated "-I."
3024 am__isrc=' -I$(srcdir)'
3025 # test to see if srcdir already configured
3026 if test -f $srcdir/config.status; then
3027 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3031 # test whether we have cygpath
3032 if test -z "$CYGPATH_W"; then
3033 if (cygpath --version) >/dev/null 2>/dev/null; then
3034 CYGPATH_W='cygpath -w'
3035 else
3036 CYGPATH_W=echo
3041 # Define the identity of the package.
3042 PACKAGE='lto-plugin'
3043 VERSION='0.1'
3046 cat >>confdefs.h <<_ACEOF
3047 #define PACKAGE "$PACKAGE"
3048 _ACEOF
3051 cat >>confdefs.h <<_ACEOF
3052 #define VERSION "$VERSION"
3053 _ACEOF
3055 # Some tools Automake needs.
3057 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3060 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3063 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3066 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3069 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3071 # For better backward compatibility. To be removed once Automake 1.9.x
3072 # dies out for good. For more background, see:
3073 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3074 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3075 mkdir_p='$(MKDIR_P)'
3077 # We need awk for the "check" target (and possibly the TAP driver). The
3078 # system "awk" is bad on some platforms.
3079 # Always define AMTAR for backward compatibility. Yes, it's still used
3080 # in the wild :-( We should find a proper way to deprecate it ...
3081 AMTAR='$${TAR-tar}'
3084 # We'll loop over all known methods to create a tar archive until one works.
3085 _am_tools='gnutar pax cpio none'
3087 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3094 # POSIX will say in a future version that running "rm -f" with no argument
3095 # is OK; and we want to be able to make that assumption in our Makefile
3096 # recipes. So use an aggressive probe to check that the usage we want is
3097 # actually supported "in the wild" to an acceptable degree.
3098 # See automake bug#10828.
3099 # To make any issue more visible, cause the running configure to be aborted
3100 # by default if the 'rm' program in use doesn't match our expectations; the
3101 # user can still override this though.
3102 if rm -f && rm -fr && rm -rf; then : OK; else
3103 cat >&2 <<'END'
3104 Oops!
3106 Your 'rm' program seems unable to run without file operands specified
3107 on the command line, even when the '-f' option is present. This is contrary
3108 to the behaviour of most rm programs out there, and not conforming with
3109 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3111 Please tell bug-automake@gnu.org about your system, including the value
3112 of your $PATH and any error possibly output before this message. This
3113 can help us improve future automake versions.
3116 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3117 echo 'Configuration will proceed anyway, since you have set the' >&2
3118 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3119 echo >&2
3120 else
3121 cat >&2 <<'END'
3122 Aborting the configuration process, to ensure you take notice of the issue.
3124 You can download and install GNU coreutils to get an 'rm' implementation
3125 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3127 If you want to complete the configuration process using your problematic
3128 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3129 to "yes", and re-run configure.
3132 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3138 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3139 # Check whether --enable-maintainer-mode was given.
3140 if test "${enable_maintainer_mode+set}" = set; then :
3141 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3142 else
3143 USE_MAINTAINER_MODE=no
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3147 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3148 if test $USE_MAINTAINER_MODE = yes; then
3149 MAINTAINER_MODE_TRUE=
3150 MAINTAINER_MODE_FALSE='#'
3151 else
3152 MAINTAINER_MODE_TRUE='#'
3153 MAINTAINER_MODE_FALSE=
3156 MAINT=$MAINTAINER_MODE_TRUE
3160 # Check whether --with-libiberty was given.
3161 if test "${with_libiberty+set}" = set; then :
3162 withval=$with_libiberty;
3163 else
3164 with_libiberty=../libiberty
3168 DEPDIR="${am__leading_dot}deps"
3170 ac_config_commands="$ac_config_commands depfiles"
3173 am_make=${MAKE-make}
3174 cat > confinc << 'END'
3175 am__doit:
3176 @echo this is the am__doit target
3177 .PHONY: am__doit
3179 # If we don't find an include directive, just comment out the code.
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3181 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3182 am__include="#"
3183 am__quote=
3184 _am_result=none
3185 # First try GNU make style include.
3186 echo "include confinc" > confmf
3187 # Ignore all kinds of additional output from 'make'.
3188 case `$am_make -s -f confmf 2> /dev/null` in #(
3189 *the\ am__doit\ target*)
3190 am__include=include
3191 am__quote=
3192 _am_result=GNU
3194 esac
3195 # Now try BSD make style include.
3196 if test "$am__include" = "#"; then
3197 echo '.include "confinc"' > confmf
3198 case `$am_make -s -f confmf 2> /dev/null` in #(
3199 *the\ am__doit\ target*)
3200 am__include=.include
3201 am__quote="\""
3202 _am_result=BSD
3204 esac
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3209 $as_echo "$_am_result" >&6; }
3210 rm -f confinc confmf
3212 # Check whether --enable-dependency-tracking was given.
3213 if test "${enable_dependency_tracking+set}" = set; then :
3214 enableval=$enable_dependency_tracking;
3217 if test "x$enable_dependency_tracking" != xno; then
3218 am_depcomp="$ac_aux_dir/depcomp"
3219 AMDEPBACKSLASH='\'
3220 am__nodep='_no'
3222 if test "x$enable_dependency_tracking" != xno; then
3223 AMDEP_TRUE=
3224 AMDEP_FALSE='#'
3225 else
3226 AMDEP_TRUE='#'
3227 AMDEP_FALSE=
3231 ac_ext=c
3232 ac_cpp='$CPP $CPPFLAGS'
3233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3236 if test -n "$ac_tool_prefix"; then
3237 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3238 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240 $as_echo_n "checking for $ac_word... " >&6; }
3241 if ${ac_cv_prog_CC+:} false; then :
3242 $as_echo_n "(cached) " >&6
3243 else
3244 if test -n "$CC"; then
3245 ac_cv_prog_CC="$CC" # Let the user override the test.
3246 else
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH
3250 IFS=$as_save_IFS
3251 test -z "$as_dir" && as_dir=.
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3254 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256 break 2
3258 done
3259 done
3260 IFS=$as_save_IFS
3264 CC=$ac_cv_prog_CC
3265 if test -n "$CC"; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3267 $as_echo "$CC" >&6; }
3268 else
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3275 if test -z "$ac_cv_prog_CC"; then
3276 ac_ct_CC=$CC
3277 # Extract the first word of "gcc", so it can be a program name with args.
3278 set dummy gcc; ac_word=$2
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280 $as_echo_n "checking for $ac_word... " >&6; }
3281 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3282 $as_echo_n "(cached) " >&6
3283 else
3284 if test -n "$ac_ct_CC"; then
3285 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3286 else
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 for as_dir in $PATH
3290 IFS=$as_save_IFS
3291 test -z "$as_dir" && as_dir=.
3292 for ac_exec_ext in '' $ac_executable_extensions; do
3293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3294 ac_cv_prog_ac_ct_CC="gcc"
3295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3296 break 2
3298 done
3299 done
3300 IFS=$as_save_IFS
3304 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3305 if test -n "$ac_ct_CC"; then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3307 $as_echo "$ac_ct_CC" >&6; }
3308 else
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310 $as_echo "no" >&6; }
3313 if test "x$ac_ct_CC" = x; then
3314 CC=""
3315 else
3316 case $cross_compiling:$ac_tool_warned in
3317 yes:)
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3320 ac_tool_warned=yes ;;
3321 esac
3322 CC=$ac_ct_CC
3324 else
3325 CC="$ac_cv_prog_CC"
3328 if test -z "$CC"; then
3329 if test -n "$ac_tool_prefix"; then
3330 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3331 set dummy ${ac_tool_prefix}cc; ac_word=$2
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3333 $as_echo_n "checking for $ac_word... " >&6; }
3334 if ${ac_cv_prog_CC+:} false; then :
3335 $as_echo_n "(cached) " >&6
3336 else
3337 if test -n "$CC"; then
3338 ac_cv_prog_CC="$CC" # Let the user override the test.
3339 else
3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341 for as_dir in $PATH
3343 IFS=$as_save_IFS
3344 test -z "$as_dir" && as_dir=.
3345 for ac_exec_ext in '' $ac_executable_extensions; do
3346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347 ac_cv_prog_CC="${ac_tool_prefix}cc"
3348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3349 break 2
3351 done
3352 done
3353 IFS=$as_save_IFS
3357 CC=$ac_cv_prog_CC
3358 if test -n "$CC"; then
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3360 $as_echo "$CC" >&6; }
3361 else
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363 $as_echo "no" >&6; }
3369 if test -z "$CC"; then
3370 # Extract the first word of "cc", so it can be a program name with args.
3371 set dummy cc; ac_word=$2
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373 $as_echo_n "checking for $ac_word... " >&6; }
3374 if ${ac_cv_prog_CC+:} false; then :
3375 $as_echo_n "(cached) " >&6
3376 else
3377 if test -n "$CC"; then
3378 ac_cv_prog_CC="$CC" # Let the user override the test.
3379 else
3380 ac_prog_rejected=no
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 for as_dir in $PATH
3384 IFS=$as_save_IFS
3385 test -z "$as_dir" && as_dir=.
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3388 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3389 ac_prog_rejected=yes
3390 continue
3392 ac_cv_prog_CC="cc"
3393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3394 break 2
3396 done
3397 done
3398 IFS=$as_save_IFS
3400 if test $ac_prog_rejected = yes; then
3401 # We found a bogon in the path, so make sure we never use it.
3402 set dummy $ac_cv_prog_CC
3403 shift
3404 if test $# != 0; then
3405 # We chose a different compiler from the bogus one.
3406 # However, it has the same basename, so the bogon will be chosen
3407 # first if we set CC to just the basename; use the full file name.
3408 shift
3409 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3414 CC=$ac_cv_prog_CC
3415 if test -n "$CC"; then
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3417 $as_echo "$CC" >&6; }
3418 else
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3420 $as_echo "no" >&6; }
3425 if test -z "$CC"; then
3426 if test -n "$ac_tool_prefix"; then
3427 for ac_prog in cl.exe
3429 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3430 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3432 $as_echo_n "checking for $ac_word... " >&6; }
3433 if ${ac_cv_prog_CC+:} false; then :
3434 $as_echo_n "(cached) " >&6
3435 else
3436 if test -n "$CC"; then
3437 ac_cv_prog_CC="$CC" # Let the user override the test.
3438 else
3439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440 for as_dir in $PATH
3442 IFS=$as_save_IFS
3443 test -z "$as_dir" && as_dir=.
3444 for ac_exec_ext in '' $ac_executable_extensions; do
3445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3446 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3448 break 2
3450 done
3451 done
3452 IFS=$as_save_IFS
3456 CC=$ac_cv_prog_CC
3457 if test -n "$CC"; then
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3459 $as_echo "$CC" >&6; }
3460 else
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3462 $as_echo "no" >&6; }
3466 test -n "$CC" && break
3467 done
3469 if test -z "$CC"; then
3470 ac_ct_CC=$CC
3471 for ac_prog in cl.exe
3473 # Extract the first word of "$ac_prog", so it can be a program name with args.
3474 set dummy $ac_prog; ac_word=$2
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476 $as_echo_n "checking for $ac_word... " >&6; }
3477 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3478 $as_echo_n "(cached) " >&6
3479 else
3480 if test -n "$ac_ct_CC"; then
3481 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3482 else
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 for as_dir in $PATH
3486 IFS=$as_save_IFS
3487 test -z "$as_dir" && as_dir=.
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3490 ac_cv_prog_ac_ct_CC="$ac_prog"
3491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3492 break 2
3494 done
3495 done
3496 IFS=$as_save_IFS
3500 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3501 if test -n "$ac_ct_CC"; then
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3503 $as_echo "$ac_ct_CC" >&6; }
3504 else
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506 $as_echo "no" >&6; }
3510 test -n "$ac_ct_CC" && break
3511 done
3513 if test "x$ac_ct_CC" = x; then
3514 CC=""
3515 else
3516 case $cross_compiling:$ac_tool_warned in
3517 yes:)
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3519 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3520 ac_tool_warned=yes ;;
3521 esac
3522 CC=$ac_ct_CC
3529 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3531 as_fn_error $? "no acceptable C compiler found in \$PATH
3532 See \`config.log' for more details" "$LINENO" 5; }
3534 # Provide some information about the compiler.
3535 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3536 set X $ac_compile
3537 ac_compiler=$2
3538 for ac_option in --version -v -V -qversion; do
3539 { { ac_try="$ac_compiler $ac_option >&5"
3540 case "(($ac_try" in
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3543 esac
3544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3545 $as_echo "$ac_try_echo"; } >&5
3546 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3547 ac_status=$?
3548 if test -s conftest.err; then
3549 sed '10a\
3550 ... rest of stderr output deleted ...
3551 10q' conftest.err >conftest.er1
3552 cat conftest.er1 >&5
3554 rm -f conftest.er1 conftest.err
3555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3556 test $ac_status = 0; }
3557 done
3559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h. */
3563 main ()
3567 return 0;
3569 _ACEOF
3570 ac_clean_files_save=$ac_clean_files
3571 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3572 # Try to create an executable without -o first, disregard a.out.
3573 # It will help us diagnose broken compilers, and finding out an intuition
3574 # of exeext.
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3576 $as_echo_n "checking whether the C compiler works... " >&6; }
3577 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3579 # The possible output files:
3580 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3582 ac_rmfiles=
3583 for ac_file in $ac_files
3585 case $ac_file in
3586 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3587 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3588 esac
3589 done
3590 rm -f $ac_rmfiles
3592 if { { ac_try="$ac_link_default"
3593 case "(($ac_try" in
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3596 esac
3597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3598 $as_echo "$ac_try_echo"; } >&5
3599 (eval "$ac_link_default") 2>&5
3600 ac_status=$?
3601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3602 test $ac_status = 0; }; then :
3603 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3604 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3605 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3606 # so that the user can short-circuit this test for compilers unknown to
3607 # Autoconf.
3608 for ac_file in $ac_files ''
3610 test -f "$ac_file" || continue
3611 case $ac_file in
3612 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3614 [ab].out )
3615 # We found the default executable, but exeext='' is most
3616 # certainly right.
3617 break;;
3618 *.* )
3619 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3620 then :; else
3621 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3623 # We set ac_cv_exeext here because the later test for it is not
3624 # safe: cross compilers may not add the suffix if given an `-o'
3625 # argument, so we may need to know it at that point already.
3626 # Even if this section looks crufty: it has the advantage of
3627 # actually working.
3628 break;;
3630 break;;
3631 esac
3632 done
3633 test "$ac_cv_exeext" = no && ac_cv_exeext=
3635 else
3636 ac_file=''
3638 if test -z "$ac_file"; then :
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640 $as_echo "no" >&6; }
3641 $as_echo "$as_me: failed program was:" >&5
3642 sed 's/^/| /' conftest.$ac_ext >&5
3644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3645 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3646 as_fn_error 77 "C compiler cannot create executables
3647 See \`config.log' for more details" "$LINENO" 5; }
3648 else
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3650 $as_echo "yes" >&6; }
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3653 $as_echo_n "checking for C compiler default output file name... " >&6; }
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3655 $as_echo "$ac_file" >&6; }
3656 ac_exeext=$ac_cv_exeext
3658 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3659 ac_clean_files=$ac_clean_files_save
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3661 $as_echo_n "checking for suffix of executables... " >&6; }
3662 if { { ac_try="$ac_link"
3663 case "(($ac_try" in
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3666 esac
3667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3668 $as_echo "$ac_try_echo"; } >&5
3669 (eval "$ac_link") 2>&5
3670 ac_status=$?
3671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672 test $ac_status = 0; }; then :
3673 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3674 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3675 # work properly (i.e., refer to `conftest.exe'), while it won't with
3676 # `rm'.
3677 for ac_file in conftest.exe conftest conftest.*; do
3678 test -f "$ac_file" || continue
3679 case $ac_file in
3680 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3681 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3682 break;;
3683 * ) break;;
3684 esac
3685 done
3686 else
3687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3689 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3690 See \`config.log' for more details" "$LINENO" 5; }
3692 rm -f conftest conftest$ac_cv_exeext
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3694 $as_echo "$ac_cv_exeext" >&6; }
3696 rm -f conftest.$ac_ext
3697 EXEEXT=$ac_cv_exeext
3698 ac_exeext=$EXEEXT
3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700 /* end confdefs.h. */
3701 #include <stdio.h>
3703 main ()
3705 FILE *f = fopen ("conftest.out", "w");
3706 return ferror (f) || fclose (f) != 0;
3709 return 0;
3711 _ACEOF
3712 ac_clean_files="$ac_clean_files conftest.out"
3713 # Check that the compiler produces executables we can run. If not, either
3714 # the compiler is broken, or we cross compile.
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3716 $as_echo_n "checking whether we are cross compiling... " >&6; }
3717 if test "$cross_compiling" != yes; then
3718 { { ac_try="$ac_link"
3719 case "(($ac_try" in
3720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3722 esac
3723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3724 $as_echo "$ac_try_echo"; } >&5
3725 (eval "$ac_link") 2>&5
3726 ac_status=$?
3727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3728 test $ac_status = 0; }
3729 if { ac_try='./conftest$ac_cv_exeext'
3730 { { case "(($ac_try" in
3731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732 *) ac_try_echo=$ac_try;;
3733 esac
3734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3735 $as_echo "$ac_try_echo"; } >&5
3736 (eval "$ac_try") 2>&5
3737 ac_status=$?
3738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3739 test $ac_status = 0; }; }; then
3740 cross_compiling=no
3741 else
3742 if test "$cross_compiling" = maybe; then
3743 cross_compiling=yes
3744 else
3745 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3746 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3747 as_fn_error $? "cannot run C compiled programs.
3748 If you meant to cross compile, use \`--host'.
3749 See \`config.log' for more details" "$LINENO" 5; }
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3754 $as_echo "$cross_compiling" >&6; }
3756 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3757 ac_clean_files=$ac_clean_files_save
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3759 $as_echo_n "checking for suffix of object files... " >&6; }
3760 if ${ac_cv_objext+:} false; then :
3761 $as_echo_n "(cached) " >&6
3762 else
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h. */
3767 main ()
3771 return 0;
3773 _ACEOF
3774 rm -f conftest.o conftest.obj
3775 if { { ac_try="$ac_compile"
3776 case "(($ac_try" in
3777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3778 *) ac_try_echo=$ac_try;;
3779 esac
3780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3781 $as_echo "$ac_try_echo"; } >&5
3782 (eval "$ac_compile") 2>&5
3783 ac_status=$?
3784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3785 test $ac_status = 0; }; then :
3786 for ac_file in conftest.o conftest.obj conftest.*; do
3787 test -f "$ac_file" || continue;
3788 case $ac_file in
3789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3790 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3791 break;;
3792 esac
3793 done
3794 else
3795 $as_echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3800 as_fn_error $? "cannot compute suffix of object files: cannot compile
3801 See \`config.log' for more details" "$LINENO" 5; }
3803 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3806 $as_echo "$ac_cv_objext" >&6; }
3807 OBJEXT=$ac_cv_objext
3808 ac_objext=$OBJEXT
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3810 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3811 if ${ac_cv_c_compiler_gnu+:} false; then :
3812 $as_echo_n "(cached) " >&6
3813 else
3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815 /* end confdefs.h. */
3818 main ()
3820 #ifndef __GNUC__
3821 choke me
3822 #endif
3825 return 0;
3827 _ACEOF
3828 if ac_fn_c_try_compile "$LINENO"; then :
3829 ac_compiler_gnu=yes
3830 else
3831 ac_compiler_gnu=no
3833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3838 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3839 if test $ac_compiler_gnu = yes; then
3840 GCC=yes
3841 else
3842 GCC=
3844 ac_test_CFLAGS=${CFLAGS+set}
3845 ac_save_CFLAGS=$CFLAGS
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3847 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3848 if ${ac_cv_prog_cc_g+:} false; then :
3849 $as_echo_n "(cached) " >&6
3850 else
3851 ac_save_c_werror_flag=$ac_c_werror_flag
3852 ac_c_werror_flag=yes
3853 ac_cv_prog_cc_g=no
3854 CFLAGS="-g"
3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3859 main ()
3863 return 0;
3865 _ACEOF
3866 if ac_fn_c_try_compile "$LINENO"; then :
3867 ac_cv_prog_cc_g=yes
3868 else
3869 CFLAGS=""
3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871 /* end confdefs.h. */
3874 main ()
3878 return 0;
3880 _ACEOF
3881 if ac_fn_c_try_compile "$LINENO"; then :
3883 else
3884 ac_c_werror_flag=$ac_save_c_werror_flag
3885 CFLAGS="-g"
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h. */
3890 main ()
3894 return 0;
3896 _ACEOF
3897 if ac_fn_c_try_compile "$LINENO"; then :
3898 ac_cv_prog_cc_g=yes
3900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905 ac_c_werror_flag=$ac_save_c_werror_flag
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3908 $as_echo "$ac_cv_prog_cc_g" >&6; }
3909 if test "$ac_test_CFLAGS" = set; then
3910 CFLAGS=$ac_save_CFLAGS
3911 elif test $ac_cv_prog_cc_g = yes; then
3912 if test "$GCC" = yes; then
3913 CFLAGS="-g -O2"
3914 else
3915 CFLAGS="-g"
3917 else
3918 if test "$GCC" = yes; then
3919 CFLAGS="-O2"
3920 else
3921 CFLAGS=
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3925 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3926 if ${ac_cv_prog_cc_c89+:} false; then :
3927 $as_echo_n "(cached) " >&6
3928 else
3929 ac_cv_prog_cc_c89=no
3930 ac_save_CC=$CC
3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h. */
3933 #include <stdarg.h>
3934 #include <stdio.h>
3935 struct stat;
3936 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3937 struct buf { int x; };
3938 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3939 static char *e (p, i)
3940 char **p;
3941 int i;
3943 return p[i];
3945 static char *f (char * (*g) (char **, int), char **p, ...)
3947 char *s;
3948 va_list v;
3949 va_start (v,p);
3950 s = g (p, va_arg (v,int));
3951 va_end (v);
3952 return s;
3955 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3956 function prototypes and stuff, but not '\xHH' hex character constants.
3957 These don't provoke an error unfortunately, instead are silently treated
3958 as 'x'. The following induces an error, until -std is added to get
3959 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3960 array size at least. It's necessary to write '\x00'==0 to get something
3961 that's true only with -std. */
3962 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3964 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3965 inside strings and character constants. */
3966 #define FOO(x) 'x'
3967 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3969 int test (int i, double x);
3970 struct s1 {int (*f) (int a);};
3971 struct s2 {int (*f) (double a);};
3972 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3973 int argc;
3974 char **argv;
3976 main ()
3978 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3980 return 0;
3982 _ACEOF
3983 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3984 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3986 CC="$ac_save_CC $ac_arg"
3987 if ac_fn_c_try_compile "$LINENO"; then :
3988 ac_cv_prog_cc_c89=$ac_arg
3990 rm -f core conftest.err conftest.$ac_objext
3991 test "x$ac_cv_prog_cc_c89" != "xno" && break
3992 done
3993 rm -f conftest.$ac_ext
3994 CC=$ac_save_CC
3997 # AC_CACHE_VAL
3998 case "x$ac_cv_prog_cc_c89" in
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4001 $as_echo "none needed" >&6; } ;;
4002 xno)
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4004 $as_echo "unsupported" >&6; } ;;
4006 CC="$CC $ac_cv_prog_cc_c89"
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4008 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4009 esac
4010 if test "x$ac_cv_prog_cc_c89" != xno; then :
4014 ac_ext=c
4015 ac_cpp='$CPP $CPPFLAGS'
4016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4020 ac_ext=c
4021 ac_cpp='$CPP $CPPFLAGS'
4022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4026 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4027 if ${am_cv_prog_cc_c_o+:} false; then :
4028 $as_echo_n "(cached) " >&6
4029 else
4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031 /* end confdefs.h. */
4034 main ()
4038 return 0;
4040 _ACEOF
4041 # Make sure it works both with $CC and with simple cc.
4042 # Following AC_PROG_CC_C_O, we do the test twice because some
4043 # compilers refuse to overwrite an existing .o file with -o,
4044 # though they will create one.
4045 am_cv_prog_cc_c_o=yes
4046 for am_i in 1 2; do
4047 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4048 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4049 ac_status=$?
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } \
4052 && test -f conftest2.$ac_objext; then
4053 : OK
4054 else
4055 am_cv_prog_cc_c_o=no
4056 break
4058 done
4059 rm -f core conftest*
4060 unset am_i
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4063 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4064 if test "$am_cv_prog_cc_c_o" != yes; then
4065 # Losing compiler, so override with the script.
4066 # FIXME: It is wrong to rewrite CC.
4067 # But if we don't then we get into trouble of one sort or another.
4068 # A longer-term fix would be to have automake use am__CC in this case,
4069 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4070 CC="$am_aux_dir/compile $CC"
4072 ac_ext=c
4073 ac_cpp='$CPP $CPPFLAGS'
4074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4079 depcc="$CC" am_compiler_list=
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4082 $as_echo_n "checking dependency style of $depcc... " >&6; }
4083 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4084 $as_echo_n "(cached) " >&6
4085 else
4086 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4087 # We make a subdir and do the tests there. Otherwise we can end up
4088 # making bogus files that we don't know about and never remove. For
4089 # instance it was reported that on HP-UX the gcc test will end up
4090 # making a dummy file named 'D' -- because '-MD' means "put the output
4091 # in D".
4092 rm -rf conftest.dir
4093 mkdir conftest.dir
4094 # Copy depcomp to subdir because otherwise we won't find it if we're
4095 # using a relative directory.
4096 cp "$am_depcomp" conftest.dir
4097 cd conftest.dir
4098 # We will build objects and dependencies in a subdirectory because
4099 # it helps to detect inapplicable dependency modes. For instance
4100 # both Tru64's cc and ICC support -MD to output dependencies as a
4101 # side effect of compilation, but ICC will put the dependencies in
4102 # the current directory while Tru64 will put them in the object
4103 # directory.
4104 mkdir sub
4106 am_cv_CC_dependencies_compiler_type=none
4107 if test "$am_compiler_list" = ""; then
4108 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4110 am__universal=false
4111 case " $depcc " in #(
4112 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4113 esac
4115 for depmode in $am_compiler_list; do
4116 # Setup a source with many dependencies, because some compilers
4117 # like to wrap large dependency lists on column 80 (with \), and
4118 # we should not choose a depcomp mode which is confused by this.
4120 # We need to recreate these files for each test, as the compiler may
4121 # overwrite some of them when testing with obscure command lines.
4122 # This happens at least with the AIX C compiler.
4123 : > sub/conftest.c
4124 for i in 1 2 3 4 5 6; do
4125 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4126 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4127 # Solaris 10 /bin/sh.
4128 echo '/* dummy */' > sub/conftst$i.h
4129 done
4130 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4132 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4133 # mode. It turns out that the SunPro C++ compiler does not properly
4134 # handle '-M -o', and we need to detect this. Also, some Intel
4135 # versions had trouble with output in subdirs.
4136 am__obj=sub/conftest.${OBJEXT-o}
4137 am__minus_obj="-o $am__obj"
4138 case $depmode in
4139 gcc)
4140 # This depmode causes a compiler race in universal mode.
4141 test "$am__universal" = false || continue
4143 nosideeffect)
4144 # After this tag, mechanisms are not by side-effect, so they'll
4145 # only be used when explicitly requested.
4146 if test "x$enable_dependency_tracking" = xyes; then
4147 continue
4148 else
4149 break
4152 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4153 # This compiler won't grok '-c -o', but also, the minuso test has
4154 # not run yet. These depmodes are late enough in the game, and
4155 # so weak that their functioning should not be impacted.
4156 am__obj=conftest.${OBJEXT-o}
4157 am__minus_obj=
4159 none) break ;;
4160 esac
4161 if depmode=$depmode \
4162 source=sub/conftest.c object=$am__obj \
4163 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4164 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4165 >/dev/null 2>conftest.err &&
4166 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4167 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4168 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4169 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4170 # icc doesn't choke on unknown options, it will just issue warnings
4171 # or remarks (even with -Werror). So we grep stderr for any message
4172 # that says an option was ignored or not supported.
4173 # When given -MP, icc 7.0 and 7.1 complain thusly:
4174 # icc: Command line warning: ignoring option '-M'; no argument required
4175 # The diagnosis changed in icc 8.0:
4176 # icc: Command line remark: option '-MP' not supported
4177 if (grep 'ignoring option' conftest.err ||
4178 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4179 am_cv_CC_dependencies_compiler_type=$depmode
4180 break
4183 done
4185 cd ..
4186 rm -rf conftest.dir
4187 else
4188 am_cv_CC_dependencies_compiler_type=none
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4193 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4194 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4197 test "x$enable_dependency_tracking" != xno \
4198 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4199 am__fastdepCC_TRUE=
4200 am__fastdepCC_FALSE='#'
4201 else
4202 am__fastdepCC_TRUE='#'
4203 am__fastdepCC_FALSE=
4208 ac_ext=c
4209 ac_cpp='$CPP $CPPFLAGS'
4210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4214 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4215 # On Suns, sometimes $CPP names a directory.
4216 if test -n "$CPP" && test -d "$CPP"; then
4217 CPP=
4219 if test -z "$CPP"; then
4220 if ${ac_cv_prog_CPP+:} false; then :
4221 $as_echo_n "(cached) " >&6
4222 else
4223 # Double quotes because CPP needs to be expanded
4224 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4226 ac_preproc_ok=false
4227 for ac_c_preproc_warn_flag in '' yes
4229 # Use a header file that comes with gcc, so configuring glibc
4230 # with a fresh cross-compiler works.
4231 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4232 # <limits.h> exists even on freestanding compilers.
4233 # On the NeXT, cc -E runs the code through the compiler's parser,
4234 # not just through cpp. "Syntax error" is here to catch this case.
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4237 #ifdef __STDC__
4238 # include <limits.h>
4239 #else
4240 # include <assert.h>
4241 #endif
4242 Syntax error
4243 _ACEOF
4244 if ac_fn_c_try_cpp "$LINENO"; then :
4246 else
4247 # Broken: fails on valid input.
4248 continue
4250 rm -f conftest.err conftest.i conftest.$ac_ext
4252 # OK, works on sane cases. Now check whether nonexistent headers
4253 # can be detected and how.
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4256 #include <ac_nonexistent.h>
4257 _ACEOF
4258 if ac_fn_c_try_cpp "$LINENO"; then :
4259 # Broken: success on invalid input.
4260 continue
4261 else
4262 # Passes both tests.
4263 ac_preproc_ok=:
4264 break
4266 rm -f conftest.err conftest.i conftest.$ac_ext
4268 done
4269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4270 rm -f conftest.i conftest.err conftest.$ac_ext
4271 if $ac_preproc_ok; then :
4272 break
4275 done
4276 ac_cv_prog_CPP=$CPP
4279 CPP=$ac_cv_prog_CPP
4280 else
4281 ac_cv_prog_CPP=$CPP
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4284 $as_echo "$CPP" >&6; }
4285 ac_preproc_ok=false
4286 for ac_c_preproc_warn_flag in '' yes
4288 # Use a header file that comes with gcc, so configuring glibc
4289 # with a fresh cross-compiler works.
4290 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4291 # <limits.h> exists even on freestanding compilers.
4292 # On the NeXT, cc -E runs the code through the compiler's parser,
4293 # not just through cpp. "Syntax error" is here to catch this case.
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4296 #ifdef __STDC__
4297 # include <limits.h>
4298 #else
4299 # include <assert.h>
4300 #endif
4301 Syntax error
4302 _ACEOF
4303 if ac_fn_c_try_cpp "$LINENO"; then :
4305 else
4306 # Broken: fails on valid input.
4307 continue
4309 rm -f conftest.err conftest.i conftest.$ac_ext
4311 # OK, works on sane cases. Now check whether nonexistent headers
4312 # can be detected and how.
4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314 /* end confdefs.h. */
4315 #include <ac_nonexistent.h>
4316 _ACEOF
4317 if ac_fn_c_try_cpp "$LINENO"; then :
4318 # Broken: success on invalid input.
4319 continue
4320 else
4321 # Passes both tests.
4322 ac_preproc_ok=:
4323 break
4325 rm -f conftest.err conftest.i conftest.$ac_ext
4327 done
4328 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4329 rm -f conftest.i conftest.err conftest.$ac_ext
4330 if $ac_preproc_ok; then :
4332 else
4333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4335 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4336 See \`config.log' for more details" "$LINENO" 5; }
4339 ac_ext=c
4340 ac_cpp='$CPP $CPPFLAGS'
4341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4347 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4348 if ${ac_cv_path_GREP+:} false; then :
4349 $as_echo_n "(cached) " >&6
4350 else
4351 if test -z "$GREP"; then
4352 ac_path_GREP_found=false
4353 # Loop through the user's path and test for each of PROGNAME-LIST
4354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4357 IFS=$as_save_IFS
4358 test -z "$as_dir" && as_dir=.
4359 for ac_prog in grep ggrep; do
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4362 as_fn_executable_p "$ac_path_GREP" || continue
4363 # Check for GNU ac_path_GREP and select it if it is found.
4364 # Check for GNU $ac_path_GREP
4365 case `"$ac_path_GREP" --version 2>&1` in
4366 *GNU*)
4367 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4369 ac_count=0
4370 $as_echo_n 0123456789 >"conftest.in"
4371 while :
4373 cat "conftest.in" "conftest.in" >"conftest.tmp"
4374 mv "conftest.tmp" "conftest.in"
4375 cp "conftest.in" "conftest.nl"
4376 $as_echo 'GREP' >> "conftest.nl"
4377 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4378 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4379 as_fn_arith $ac_count + 1 && ac_count=$as_val
4380 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4381 # Best one so far, save it but keep looking for a better one
4382 ac_cv_path_GREP="$ac_path_GREP"
4383 ac_path_GREP_max=$ac_count
4385 # 10*(2^10) chars as input seems more than enough
4386 test $ac_count -gt 10 && break
4387 done
4388 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4389 esac
4391 $ac_path_GREP_found && break 3
4392 done
4393 done
4394 done
4395 IFS=$as_save_IFS
4396 if test -z "$ac_cv_path_GREP"; then
4397 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4399 else
4400 ac_cv_path_GREP=$GREP
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4405 $as_echo "$ac_cv_path_GREP" >&6; }
4406 GREP="$ac_cv_path_GREP"
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4410 $as_echo_n "checking for egrep... " >&6; }
4411 if ${ac_cv_path_EGREP+:} false; then :
4412 $as_echo_n "(cached) " >&6
4413 else
4414 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4415 then ac_cv_path_EGREP="$GREP -E"
4416 else
4417 if test -z "$EGREP"; then
4418 ac_path_EGREP_found=false
4419 # Loop through the user's path and test for each of PROGNAME-LIST
4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4423 IFS=$as_save_IFS
4424 test -z "$as_dir" && as_dir=.
4425 for ac_prog in egrep; do
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4428 as_fn_executable_p "$ac_path_EGREP" || continue
4429 # Check for GNU ac_path_EGREP and select it if it is found.
4430 # Check for GNU $ac_path_EGREP
4431 case `"$ac_path_EGREP" --version 2>&1` in
4432 *GNU*)
4433 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4435 ac_count=0
4436 $as_echo_n 0123456789 >"conftest.in"
4437 while :
4439 cat "conftest.in" "conftest.in" >"conftest.tmp"
4440 mv "conftest.tmp" "conftest.in"
4441 cp "conftest.in" "conftest.nl"
4442 $as_echo 'EGREP' >> "conftest.nl"
4443 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4444 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4445 as_fn_arith $ac_count + 1 && ac_count=$as_val
4446 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4447 # Best one so far, save it but keep looking for a better one
4448 ac_cv_path_EGREP="$ac_path_EGREP"
4449 ac_path_EGREP_max=$ac_count
4451 # 10*(2^10) chars as input seems more than enough
4452 test $ac_count -gt 10 && break
4453 done
4454 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4455 esac
4457 $ac_path_EGREP_found && break 3
4458 done
4459 done
4460 done
4461 IFS=$as_save_IFS
4462 if test -z "$ac_cv_path_EGREP"; then
4463 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4465 else
4466 ac_cv_path_EGREP=$EGREP
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4472 $as_echo "$ac_cv_path_EGREP" >&6; }
4473 EGREP="$ac_cv_path_EGREP"
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4477 $as_echo_n "checking for ANSI C header files... " >&6; }
4478 if ${ac_cv_header_stdc+:} false; then :
4479 $as_echo_n "(cached) " >&6
4480 else
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4483 #include <stdlib.h>
4484 #include <stdarg.h>
4485 #include <string.h>
4486 #include <float.h>
4489 main ()
4493 return 0;
4495 _ACEOF
4496 if ac_fn_c_try_compile "$LINENO"; then :
4497 ac_cv_header_stdc=yes
4498 else
4499 ac_cv_header_stdc=no
4501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503 if test $ac_cv_header_stdc = yes; then
4504 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4507 #include <string.h>
4509 _ACEOF
4510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4511 $EGREP "memchr" >/dev/null 2>&1; then :
4513 else
4514 ac_cv_header_stdc=no
4516 rm -f conftest*
4520 if test $ac_cv_header_stdc = yes; then
4521 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4524 #include <stdlib.h>
4526 _ACEOF
4527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4528 $EGREP "free" >/dev/null 2>&1; then :
4530 else
4531 ac_cv_header_stdc=no
4533 rm -f conftest*
4537 if test $ac_cv_header_stdc = yes; then
4538 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4539 if test "$cross_compiling" = yes; then :
4541 else
4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543 /* end confdefs.h. */
4544 #include <ctype.h>
4545 #include <stdlib.h>
4546 #if ((' ' & 0x0FF) == 0x020)
4547 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4548 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4549 #else
4550 # define ISLOWER(c) \
4551 (('a' <= (c) && (c) <= 'i') \
4552 || ('j' <= (c) && (c) <= 'r') \
4553 || ('s' <= (c) && (c) <= 'z'))
4554 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4555 #endif
4557 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4559 main ()
4561 int i;
4562 for (i = 0; i < 256; i++)
4563 if (XOR (islower (i), ISLOWER (i))
4564 || toupper (i) != TOUPPER (i))
4565 return 2;
4566 return 0;
4568 _ACEOF
4569 if ac_fn_c_try_run "$LINENO"; then :
4571 else
4572 ac_cv_header_stdc=no
4574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4575 conftest.$ac_objext conftest.beam conftest.$ac_ext
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4581 $as_echo "$ac_cv_header_stdc" >&6; }
4582 if test $ac_cv_header_stdc = yes; then
4584 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4588 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4589 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4590 inttypes.h stdint.h unistd.h
4591 do :
4592 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4593 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4595 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4596 cat >>confdefs.h <<_ACEOF
4597 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4598 _ACEOF
4602 done
4606 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4607 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4608 MINIX=yes
4609 else
4610 MINIX=
4614 if test "$MINIX" = yes; then
4616 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4619 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4622 $as_echo "#define _MINIX 1" >>confdefs.h
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4628 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4629 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4630 $as_echo_n "(cached) " >&6
4631 else
4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633 /* end confdefs.h. */
4635 # define __EXTENSIONS__ 1
4636 $ac_includes_default
4638 main ()
4642 return 0;
4644 _ACEOF
4645 if ac_fn_c_try_compile "$LINENO"; then :
4646 ac_cv_safe_to_define___extensions__=yes
4647 else
4648 ac_cv_safe_to_define___extensions__=no
4650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4653 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4654 test $ac_cv_safe_to_define___extensions__ = yes &&
4655 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4657 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4659 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4661 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4663 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4666 ac_ext=c
4667 ac_cpp='$CPP $CPPFLAGS'
4668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4671 if test -n "$ac_tool_prefix"; then
4672 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4673 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4675 $as_echo_n "checking for $ac_word... " >&6; }
4676 if ${ac_cv_prog_CC+:} false; then :
4677 $as_echo_n "(cached) " >&6
4678 else
4679 if test -n "$CC"; then
4680 ac_cv_prog_CC="$CC" # Let the user override the test.
4681 else
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4689 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 break 2
4693 done
4694 done
4695 IFS=$as_save_IFS
4699 CC=$ac_cv_prog_CC
4700 if test -n "$CC"; then
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4702 $as_echo "$CC" >&6; }
4703 else
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705 $as_echo "no" >&6; }
4710 if test -z "$ac_cv_prog_CC"; then
4711 ac_ct_CC=$CC
4712 # Extract the first word of "gcc", so it can be a program name with args.
4713 set dummy gcc; ac_word=$2
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4715 $as_echo_n "checking for $ac_word... " >&6; }
4716 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4717 $as_echo_n "(cached) " >&6
4718 else
4719 if test -n "$ac_ct_CC"; then
4720 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4721 else
4722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723 for as_dir in $PATH
4725 IFS=$as_save_IFS
4726 test -z "$as_dir" && as_dir=.
4727 for ac_exec_ext in '' $ac_executable_extensions; do
4728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4729 ac_cv_prog_ac_ct_CC="gcc"
4730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4731 break 2
4733 done
4734 done
4735 IFS=$as_save_IFS
4739 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4740 if test -n "$ac_ct_CC"; then
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4742 $as_echo "$ac_ct_CC" >&6; }
4743 else
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4745 $as_echo "no" >&6; }
4748 if test "x$ac_ct_CC" = x; then
4749 CC=""
4750 else
4751 case $cross_compiling:$ac_tool_warned in
4752 yes:)
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4755 ac_tool_warned=yes ;;
4756 esac
4757 CC=$ac_ct_CC
4759 else
4760 CC="$ac_cv_prog_CC"
4763 if test -z "$CC"; then
4764 if test -n "$ac_tool_prefix"; then
4765 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4766 set dummy ${ac_tool_prefix}cc; ac_word=$2
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768 $as_echo_n "checking for $ac_word... " >&6; }
4769 if ${ac_cv_prog_CC+:} false; then :
4770 $as_echo_n "(cached) " >&6
4771 else
4772 if test -n "$CC"; then
4773 ac_cv_prog_CC="$CC" # Let the user override the test.
4774 else
4775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 for as_dir in $PATH
4778 IFS=$as_save_IFS
4779 test -z "$as_dir" && as_dir=.
4780 for ac_exec_ext in '' $ac_executable_extensions; do
4781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4782 ac_cv_prog_CC="${ac_tool_prefix}cc"
4783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4784 break 2
4786 done
4787 done
4788 IFS=$as_save_IFS
4792 CC=$ac_cv_prog_CC
4793 if test -n "$CC"; then
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4795 $as_echo "$CC" >&6; }
4796 else
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4798 $as_echo "no" >&6; }
4804 if test -z "$CC"; then
4805 # Extract the first word of "cc", so it can be a program name with args.
4806 set dummy cc; ac_word=$2
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808 $as_echo_n "checking for $ac_word... " >&6; }
4809 if ${ac_cv_prog_CC+:} false; then :
4810 $as_echo_n "(cached) " >&6
4811 else
4812 if test -n "$CC"; then
4813 ac_cv_prog_CC="$CC" # Let the user override the test.
4814 else
4815 ac_prog_rejected=no
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 for as_dir in $PATH
4819 IFS=$as_save_IFS
4820 test -z "$as_dir" && as_dir=.
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4823 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4824 ac_prog_rejected=yes
4825 continue
4827 ac_cv_prog_CC="cc"
4828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 break 2
4831 done
4832 done
4833 IFS=$as_save_IFS
4835 if test $ac_prog_rejected = yes; then
4836 # We found a bogon in the path, so make sure we never use it.
4837 set dummy $ac_cv_prog_CC
4838 shift
4839 if test $# != 0; then
4840 # We chose a different compiler from the bogus one.
4841 # However, it has the same basename, so the bogon will be chosen
4842 # first if we set CC to just the basename; use the full file name.
4843 shift
4844 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4849 CC=$ac_cv_prog_CC
4850 if test -n "$CC"; then
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4852 $as_echo "$CC" >&6; }
4853 else
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4855 $as_echo "no" >&6; }
4860 if test -z "$CC"; then
4861 if test -n "$ac_tool_prefix"; then
4862 for ac_prog in cl.exe
4864 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4865 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867 $as_echo_n "checking for $ac_word... " >&6; }
4868 if ${ac_cv_prog_CC+:} false; then :
4869 $as_echo_n "(cached) " >&6
4870 else
4871 if test -n "$CC"; then
4872 ac_cv_prog_CC="$CC" # Let the user override the test.
4873 else
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 for as_dir in $PATH
4877 IFS=$as_save_IFS
4878 test -z "$as_dir" && as_dir=.
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4881 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 break 2
4885 done
4886 done
4887 IFS=$as_save_IFS
4891 CC=$ac_cv_prog_CC
4892 if test -n "$CC"; then
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4894 $as_echo "$CC" >&6; }
4895 else
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897 $as_echo "no" >&6; }
4901 test -n "$CC" && break
4902 done
4904 if test -z "$CC"; then
4905 ac_ct_CC=$CC
4906 for ac_prog in cl.exe
4908 # Extract the first word of "$ac_prog", so it can be a program name with args.
4909 set dummy $ac_prog; ac_word=$2
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4911 $as_echo_n "checking for $ac_word... " >&6; }
4912 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4913 $as_echo_n "(cached) " >&6
4914 else
4915 if test -n "$ac_ct_CC"; then
4916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4917 else
4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 for as_dir in $PATH
4921 IFS=$as_save_IFS
4922 test -z "$as_dir" && as_dir=.
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4925 ac_cv_prog_ac_ct_CC="$ac_prog"
4926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4927 break 2
4929 done
4930 done
4931 IFS=$as_save_IFS
4935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4936 if test -n "$ac_ct_CC"; then
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4938 $as_echo "$ac_ct_CC" >&6; }
4939 else
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4941 $as_echo "no" >&6; }
4945 test -n "$ac_ct_CC" && break
4946 done
4948 if test "x$ac_ct_CC" = x; then
4949 CC=""
4950 else
4951 case $cross_compiling:$ac_tool_warned in
4952 yes:)
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4955 ac_tool_warned=yes ;;
4956 esac
4957 CC=$ac_ct_CC
4964 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4966 as_fn_error $? "no acceptable C compiler found in \$PATH
4967 See \`config.log' for more details" "$LINENO" 5; }
4969 # Provide some information about the compiler.
4970 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4971 set X $ac_compile
4972 ac_compiler=$2
4973 for ac_option in --version -v -V -qversion; do
4974 { { ac_try="$ac_compiler $ac_option >&5"
4975 case "(($ac_try" in
4976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4977 *) ac_try_echo=$ac_try;;
4978 esac
4979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4980 $as_echo "$ac_try_echo"; } >&5
4981 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4982 ac_status=$?
4983 if test -s conftest.err; then
4984 sed '10a\
4985 ... rest of stderr output deleted ...
4986 10q' conftest.err >conftest.er1
4987 cat conftest.er1 >&5
4989 rm -f conftest.er1 conftest.err
4990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4991 test $ac_status = 0; }
4992 done
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4995 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4996 if ${ac_cv_c_compiler_gnu+:} false; then :
4997 $as_echo_n "(cached) " >&6
4998 else
4999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000 /* end confdefs.h. */
5003 main ()
5005 #ifndef __GNUC__
5006 choke me
5007 #endif
5010 return 0;
5012 _ACEOF
5013 if ac_fn_c_try_compile "$LINENO"; then :
5014 ac_compiler_gnu=yes
5015 else
5016 ac_compiler_gnu=no
5018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5023 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5024 if test $ac_compiler_gnu = yes; then
5025 GCC=yes
5026 else
5027 GCC=
5029 ac_test_CFLAGS=${CFLAGS+set}
5030 ac_save_CFLAGS=$CFLAGS
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5032 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5033 if ${ac_cv_prog_cc_g+:} false; then :
5034 $as_echo_n "(cached) " >&6
5035 else
5036 ac_save_c_werror_flag=$ac_c_werror_flag
5037 ac_c_werror_flag=yes
5038 ac_cv_prog_cc_g=no
5039 CFLAGS="-g"
5040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5041 /* end confdefs.h. */
5044 main ()
5048 return 0;
5050 _ACEOF
5051 if ac_fn_c_try_compile "$LINENO"; then :
5052 ac_cv_prog_cc_g=yes
5053 else
5054 CFLAGS=""
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h. */
5059 main ()
5063 return 0;
5065 _ACEOF
5066 if ac_fn_c_try_compile "$LINENO"; then :
5068 else
5069 ac_c_werror_flag=$ac_save_c_werror_flag
5070 CFLAGS="-g"
5071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5072 /* end confdefs.h. */
5075 main ()
5079 return 0;
5081 _ACEOF
5082 if ac_fn_c_try_compile "$LINENO"; then :
5083 ac_cv_prog_cc_g=yes
5085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5090 ac_c_werror_flag=$ac_save_c_werror_flag
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5093 $as_echo "$ac_cv_prog_cc_g" >&6; }
5094 if test "$ac_test_CFLAGS" = set; then
5095 CFLAGS=$ac_save_CFLAGS
5096 elif test $ac_cv_prog_cc_g = yes; then
5097 if test "$GCC" = yes; then
5098 CFLAGS="-g -O2"
5099 else
5100 CFLAGS="-g"
5102 else
5103 if test "$GCC" = yes; then
5104 CFLAGS="-O2"
5105 else
5106 CFLAGS=
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5110 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5111 if ${ac_cv_prog_cc_c89+:} false; then :
5112 $as_echo_n "(cached) " >&6
5113 else
5114 ac_cv_prog_cc_c89=no
5115 ac_save_CC=$CC
5116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117 /* end confdefs.h. */
5118 #include <stdarg.h>
5119 #include <stdio.h>
5120 struct stat;
5121 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5122 struct buf { int x; };
5123 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5124 static char *e (p, i)
5125 char **p;
5126 int i;
5128 return p[i];
5130 static char *f (char * (*g) (char **, int), char **p, ...)
5132 char *s;
5133 va_list v;
5134 va_start (v,p);
5135 s = g (p, va_arg (v,int));
5136 va_end (v);
5137 return s;
5140 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5141 function prototypes and stuff, but not '\xHH' hex character constants.
5142 These don't provoke an error unfortunately, instead are silently treated
5143 as 'x'. The following induces an error, until -std is added to get
5144 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5145 array size at least. It's necessary to write '\x00'==0 to get something
5146 that's true only with -std. */
5147 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5149 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5150 inside strings and character constants. */
5151 #define FOO(x) 'x'
5152 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5154 int test (int i, double x);
5155 struct s1 {int (*f) (int a);};
5156 struct s2 {int (*f) (double a);};
5157 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5158 int argc;
5159 char **argv;
5161 main ()
5163 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5165 return 0;
5167 _ACEOF
5168 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5169 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5171 CC="$ac_save_CC $ac_arg"
5172 if ac_fn_c_try_compile "$LINENO"; then :
5173 ac_cv_prog_cc_c89=$ac_arg
5175 rm -f core conftest.err conftest.$ac_objext
5176 test "x$ac_cv_prog_cc_c89" != "xno" && break
5177 done
5178 rm -f conftest.$ac_ext
5179 CC=$ac_save_CC
5182 # AC_CACHE_VAL
5183 case "x$ac_cv_prog_cc_c89" in
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5186 $as_echo "none needed" >&6; } ;;
5187 xno)
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5189 $as_echo "unsupported" >&6; } ;;
5191 CC="$CC $ac_cv_prog_cc_c89"
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5193 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5194 esac
5195 if test "x$ac_cv_prog_cc_c89" != xno; then :
5199 ac_ext=c
5200 ac_cpp='$CPP $CPPFLAGS'
5201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5205 ac_ext=c
5206 ac_cpp='$CPP $CPPFLAGS'
5207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5211 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5212 if ${am_cv_prog_cc_c_o+:} false; then :
5213 $as_echo_n "(cached) " >&6
5214 else
5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h. */
5219 main ()
5223 return 0;
5225 _ACEOF
5226 # Make sure it works both with $CC and with simple cc.
5227 # Following AC_PROG_CC_C_O, we do the test twice because some
5228 # compilers refuse to overwrite an existing .o file with -o,
5229 # though they will create one.
5230 am_cv_prog_cc_c_o=yes
5231 for am_i in 1 2; do
5232 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5233 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5234 ac_status=$?
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } \
5237 && test -f conftest2.$ac_objext; then
5238 : OK
5239 else
5240 am_cv_prog_cc_c_o=no
5241 break
5243 done
5244 rm -f core conftest*
5245 unset am_i
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5248 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5249 if test "$am_cv_prog_cc_c_o" != yes; then
5250 # Losing compiler, so override with the script.
5251 # FIXME: It is wrong to rewrite CC.
5252 # But if we don't then we get into trouble of one sort or another.
5253 # A longer-term fix would be to have automake use am__CC in this case,
5254 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5255 CC="$am_aux_dir/compile $CC"
5257 ac_ext=c
5258 ac_cpp='$CPP $CPPFLAGS'
5259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5264 depcc="$CC" am_compiler_list=
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5267 $as_echo_n "checking dependency style of $depcc... " >&6; }
5268 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5269 $as_echo_n "(cached) " >&6
5270 else
5271 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5272 # We make a subdir and do the tests there. Otherwise we can end up
5273 # making bogus files that we don't know about and never remove. For
5274 # instance it was reported that on HP-UX the gcc test will end up
5275 # making a dummy file named 'D' -- because '-MD' means "put the output
5276 # in D".
5277 rm -rf conftest.dir
5278 mkdir conftest.dir
5279 # Copy depcomp to subdir because otherwise we won't find it if we're
5280 # using a relative directory.
5281 cp "$am_depcomp" conftest.dir
5282 cd conftest.dir
5283 # We will build objects and dependencies in a subdirectory because
5284 # it helps to detect inapplicable dependency modes. For instance
5285 # both Tru64's cc and ICC support -MD to output dependencies as a
5286 # side effect of compilation, but ICC will put the dependencies in
5287 # the current directory while Tru64 will put them in the object
5288 # directory.
5289 mkdir sub
5291 am_cv_CC_dependencies_compiler_type=none
5292 if test "$am_compiler_list" = ""; then
5293 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5295 am__universal=false
5296 case " $depcc " in #(
5297 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5298 esac
5300 for depmode in $am_compiler_list; do
5301 # Setup a source with many dependencies, because some compilers
5302 # like to wrap large dependency lists on column 80 (with \), and
5303 # we should not choose a depcomp mode which is confused by this.
5305 # We need to recreate these files for each test, as the compiler may
5306 # overwrite some of them when testing with obscure command lines.
5307 # This happens at least with the AIX C compiler.
5308 : > sub/conftest.c
5309 for i in 1 2 3 4 5 6; do
5310 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5311 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5312 # Solaris 10 /bin/sh.
5313 echo '/* dummy */' > sub/conftst$i.h
5314 done
5315 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5317 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5318 # mode. It turns out that the SunPro C++ compiler does not properly
5319 # handle '-M -o', and we need to detect this. Also, some Intel
5320 # versions had trouble with output in subdirs.
5321 am__obj=sub/conftest.${OBJEXT-o}
5322 am__minus_obj="-o $am__obj"
5323 case $depmode in
5324 gcc)
5325 # This depmode causes a compiler race in universal mode.
5326 test "$am__universal" = false || continue
5328 nosideeffect)
5329 # After this tag, mechanisms are not by side-effect, so they'll
5330 # only be used when explicitly requested.
5331 if test "x$enable_dependency_tracking" = xyes; then
5332 continue
5333 else
5334 break
5337 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5338 # This compiler won't grok '-c -o', but also, the minuso test has
5339 # not run yet. These depmodes are late enough in the game, and
5340 # so weak that their functioning should not be impacted.
5341 am__obj=conftest.${OBJEXT-o}
5342 am__minus_obj=
5344 none) break ;;
5345 esac
5346 if depmode=$depmode \
5347 source=sub/conftest.c object=$am__obj \
5348 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5349 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5350 >/dev/null 2>conftest.err &&
5351 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5352 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5353 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5354 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5355 # icc doesn't choke on unknown options, it will just issue warnings
5356 # or remarks (even with -Werror). So we grep stderr for any message
5357 # that says an option was ignored or not supported.
5358 # When given -MP, icc 7.0 and 7.1 complain thusly:
5359 # icc: Command line warning: ignoring option '-M'; no argument required
5360 # The diagnosis changed in icc 8.0:
5361 # icc: Command line remark: option '-MP' not supported
5362 if (grep 'ignoring option' conftest.err ||
5363 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5364 am_cv_CC_dependencies_compiler_type=$depmode
5365 break
5368 done
5370 cd ..
5371 rm -rf conftest.dir
5372 else
5373 am_cv_CC_dependencies_compiler_type=none
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5378 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5379 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5382 test "x$enable_dependency_tracking" != xno \
5383 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5384 am__fastdepCC_TRUE=
5385 am__fastdepCC_FALSE='#'
5386 else
5387 am__fastdepCC_TRUE='#'
5388 am__fastdepCC_FALSE=
5392 # Check whether --enable-largefile was given.
5393 if test "${enable_largefile+set}" = set; then :
5394 enableval=$enable_largefile;
5397 if test "$enable_largefile" != no; then
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5400 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5401 if ${ac_cv_sys_largefile_CC+:} false; then :
5402 $as_echo_n "(cached) " >&6
5403 else
5404 ac_cv_sys_largefile_CC=no
5405 if test "$GCC" != yes; then
5406 ac_save_CC=$CC
5407 while :; do
5408 # IRIX 6.2 and later do not support large files by default,
5409 # so use the C compiler's -n32 option if that helps.
5410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411 /* end confdefs.h. */
5412 #include <sys/types.h>
5413 /* Check that off_t can represent 2**63 - 1 correctly.
5414 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5415 since some C++ compilers masquerading as C compilers
5416 incorrectly reject 9223372036854775807. */
5417 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5418 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5419 && LARGE_OFF_T % 2147483647 == 1)
5420 ? 1 : -1];
5422 main ()
5426 return 0;
5428 _ACEOF
5429 if ac_fn_c_try_compile "$LINENO"; then :
5430 break
5432 rm -f core conftest.err conftest.$ac_objext
5433 CC="$CC -n32"
5434 if ac_fn_c_try_compile "$LINENO"; then :
5435 ac_cv_sys_largefile_CC=' -n32'; break
5437 rm -f core conftest.err conftest.$ac_objext
5438 break
5439 done
5440 CC=$ac_save_CC
5441 rm -f conftest.$ac_ext
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5445 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5446 if test "$ac_cv_sys_largefile_CC" != no; then
5447 CC=$CC$ac_cv_sys_largefile_CC
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5451 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5452 if ${ac_cv_sys_file_offset_bits+:} false; then :
5453 $as_echo_n "(cached) " >&6
5454 else
5455 while :; do
5456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5457 /* end confdefs.h. */
5458 #include <sys/types.h>
5459 /* Check that off_t can represent 2**63 - 1 correctly.
5460 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5461 since some C++ compilers masquerading as C compilers
5462 incorrectly reject 9223372036854775807. */
5463 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5464 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5465 && LARGE_OFF_T % 2147483647 == 1)
5466 ? 1 : -1];
5468 main ()
5472 return 0;
5474 _ACEOF
5475 if ac_fn_c_try_compile "$LINENO"; then :
5476 ac_cv_sys_file_offset_bits=no; break
5478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h. */
5481 #define _FILE_OFFSET_BITS 64
5482 #include <sys/types.h>
5483 /* Check that off_t can represent 2**63 - 1 correctly.
5484 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5485 since some C++ compilers masquerading as C compilers
5486 incorrectly reject 9223372036854775807. */
5487 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5488 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5489 && LARGE_OFF_T % 2147483647 == 1)
5490 ? 1 : -1];
5492 main ()
5496 return 0;
5498 _ACEOF
5499 if ac_fn_c_try_compile "$LINENO"; then :
5500 ac_cv_sys_file_offset_bits=64; break
5502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5503 ac_cv_sys_file_offset_bits=unknown
5504 break
5505 done
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5508 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5509 case $ac_cv_sys_file_offset_bits in #(
5510 no | unknown) ;;
5512 cat >>confdefs.h <<_ACEOF
5513 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5514 _ACEOF
5516 esac
5517 rm -rf conftest*
5518 if test $ac_cv_sys_file_offset_bits = unknown; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5520 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5521 if ${ac_cv_sys_large_files+:} false; then :
5522 $as_echo_n "(cached) " >&6
5523 else
5524 while :; do
5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526 /* end confdefs.h. */
5527 #include <sys/types.h>
5528 /* Check that off_t can represent 2**63 - 1 correctly.
5529 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5530 since some C++ compilers masquerading as C compilers
5531 incorrectly reject 9223372036854775807. */
5532 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5533 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5534 && LARGE_OFF_T % 2147483647 == 1)
5535 ? 1 : -1];
5537 main ()
5541 return 0;
5543 _ACEOF
5544 if ac_fn_c_try_compile "$LINENO"; then :
5545 ac_cv_sys_large_files=no; break
5547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549 /* end confdefs.h. */
5550 #define _LARGE_FILES 1
5551 #include <sys/types.h>
5552 /* Check that off_t can represent 2**63 - 1 correctly.
5553 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5554 since some C++ compilers masquerading as C compilers
5555 incorrectly reject 9223372036854775807. */
5556 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5557 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5558 && LARGE_OFF_T % 2147483647 == 1)
5559 ? 1 : -1];
5561 main ()
5565 return 0;
5567 _ACEOF
5568 if ac_fn_c_try_compile "$LINENO"; then :
5569 ac_cv_sys_large_files=1; break
5571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572 ac_cv_sys_large_files=unknown
5573 break
5574 done
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5577 $as_echo "$ac_cv_sys_large_files" >&6; }
5578 case $ac_cv_sys_large_files in #(
5579 no | unknown) ;;
5581 cat >>confdefs.h <<_ACEOF
5582 #define _LARGE_FILES $ac_cv_sys_large_files
5583 _ACEOF
5585 esac
5586 rm -rf conftest*
5592 ac_ext=c
5593 ac_cpp='$CPP $CPPFLAGS'
5594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5598 ac_lto_plugin_warn_cflags=
5599 save_CFLAGS="$CFLAGS"
5600 for real_option in -Wall; do
5601 # Do the check with the no- prefix removed since gcc silently
5602 # accepts any -Wno-* option on purpose
5603 case $real_option in
5604 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
5605 *) option=$real_option ;;
5606 esac
5607 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5610 $as_echo_n "checking whether $CC supports $option... " >&6; }
5611 if eval \${$as_acx_Woption+:} false; then :
5612 $as_echo_n "(cached) " >&6
5613 else
5614 CFLAGS="$option"
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h. */
5619 main ()
5623 return 0;
5625 _ACEOF
5626 if ac_fn_c_try_compile "$LINENO"; then :
5627 eval "$as_acx_Woption=yes"
5628 else
5629 eval "$as_acx_Woption=no"
5631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5634 eval ac_res=\$$as_acx_Woption
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5636 $as_echo "$ac_res" >&6; }
5637 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5638 ac_lto_plugin_warn_cflags="$ac_lto_plugin_warn_cflags${ac_lto_plugin_warn_cflags:+ }$real_option"
5640 done
5641 CFLAGS="$save_CFLAGS"
5642 ac_ext=c
5643 ac_cpp='$CPP $CPPFLAGS'
5644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5650 # Check whether -static-libgcc is supported.
5651 saved_LDFLAGS="$LDFLAGS"
5652 LDFLAGS="$LDFLAGS -static-libgcc"
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -static-libgcc" >&5
5654 $as_echo_n "checking for -static-libgcc... " >&6; }
5655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656 /* end confdefs.h. */
5658 int main() {}
5659 _ACEOF
5660 if ac_fn_c_try_link "$LINENO"; then :
5661 have_static_libgcc=yes
5662 else
5663 have_static_libgcc=no
5665 rm -f core conftest.err conftest.$ac_objext \
5666 conftest$ac_exeext conftest.$ac_ext
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_static_libgcc" >&5
5668 $as_echo "$have_static_libgcc" >&6; };
5669 LDFLAGS="$saved_LDFLAGS"
5670 # Need -Wc to get it through libtool.
5671 if test "x$have_static_libgcc" = xyes; then
5672 ac_lto_plugin_ldflags="-Wc,-static-libgcc"
5675 # Enable --enable-host-bind-now
5676 # Check whether --enable-host-bind-now was given.
5677 if test "${enable_host_bind_now+set}" = set; then :
5678 enableval=$enable_host_bind_now;
5683 if test x$enable_host_bind_now = xyes; then
5684 ac_lto_plugin_ldflags="$ac_lto_plugin_ldflags -Wl,-z,now"
5689 # Check whether --enable-cet was given.
5690 if test "${enable_cet+set}" = set; then :
5691 enableval=$enable_cet;
5692 case "$enableval" in
5693 yes|no|auto) ;;
5694 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5695 esac
5697 else
5698 enable_cet=auto
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5703 $as_echo_n "checking for CET support... " >&6; }
5705 case "$host" in
5706 i[34567]86-*-linux* | x86_64-*-linux*)
5707 may_have_cet=yes
5708 cet_save_CFLAGS="$CFLAGS"
5709 CFLAGS="$CFLAGS -fcf-protection"
5710 case "$enable_cet" in
5711 auto)
5712 # Check if target supports multi-byte NOPs
5713 # and if compiler and assembler support CET.
5714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5715 /* end confdefs.h. */
5718 main ()
5721 #if !defined(__SSE2__)
5722 #error target does not support multi-byte NOPs
5723 #else
5724 asm ("setssbsy");
5725 #endif
5728 return 0;
5730 _ACEOF
5731 if ac_fn_c_try_compile "$LINENO"; then :
5732 enable_cet=yes
5733 else
5734 enable_cet=no
5736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5738 yes)
5739 # Check if compiler and assembler support CET.
5740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741 /* end confdefs.h. */
5744 main ()
5746 asm ("setssbsy");
5748 return 0;
5750 _ACEOF
5751 if ac_fn_c_try_compile "$LINENO"; then :
5752 support_cet=yes
5753 else
5754 support_cet=no
5756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5757 if test $support_cet = "no"; then
5758 if test x$enable_bootstrap != xno \
5759 && test -z "${with_build_subdir}" \
5760 && (test ! -f ../stage_current \
5761 || test `cat ../stage_current` != "stage1"); then
5762 # Require CET support only for the final GCC build.
5763 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
5764 else
5765 # Don't enable CET without CET support for non-bootstrap
5766 # build, in stage1 nor for build support.
5767 enable_cet=no
5771 esac
5772 CFLAGS="$cet_save_CFLAGS"
5775 may_have_cet=no
5776 enable_cet=no
5778 esac
5780 cet_save_CFLAGS="$CFLAGS"
5781 CFLAGS="$CFLAGS -fcf-protection=none"
5782 cet_save_LDFLAGS="$LDFLAGS"
5783 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
5784 if test x$may_have_cet = xyes; then
5785 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
5786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787 /* end confdefs.h. */
5790 main ()
5792 return 0;
5794 return 0;
5796 _ACEOF
5797 if ac_fn_c_try_link "$LINENO"; then :
5798 may_have_cet=yes
5799 else
5800 may_have_cet=no
5802 rm -f core conftest.err conftest.$ac_objext \
5803 conftest$ac_exeext conftest.$ac_ext
5806 if test x$may_have_cet = xyes; then
5807 if test x$cross_compiling = xno; then
5808 if test "$cross_compiling" = yes; then :
5809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5811 as_fn_error $? "cannot run test program while cross compiling
5812 See \`config.log' for more details" "$LINENO" 5; }
5813 else
5814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5815 /* end confdefs.h. */
5818 main ()
5820 asm ("endbr32");
5821 return 0;
5824 _ACEOF
5825 if ac_fn_c_try_run "$LINENO"; then :
5826 have_multi_byte_nop=yes
5827 else
5828 have_multi_byte_nop=no
5830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5831 conftest.$ac_objext conftest.beam conftest.$ac_ext
5834 have_cet=no
5835 if test x$have_multi_byte_nop = xyes; then
5836 if test "$cross_compiling" = yes; then :
5837 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5839 as_fn_error $? "cannot run test program while cross compiling
5840 See \`config.log' for more details" "$LINENO" 5; }
5841 else
5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843 /* end confdefs.h. */
5845 static void
5846 foo (void)
5850 static void
5851 __attribute__ ((noinline, noclone))
5852 xxx (void (*f) (void))
5854 f ();
5857 static void
5858 __attribute__ ((noinline, noclone))
5859 bar (void)
5861 xxx (foo);
5865 main ()
5867 bar ();
5868 return 0;
5871 _ACEOF
5872 if ac_fn_c_try_run "$LINENO"; then :
5873 have_cet=no
5874 else
5875 have_cet=yes
5877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5878 conftest.$ac_objext conftest.beam conftest.$ac_ext
5882 if test x$enable_cet = xno -a x$have_cet = xyes; then
5883 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
5886 else
5887 # Enable CET in cross compiler if possible so that it will run on both
5888 # CET and non-CET hosts.
5889 have_cet=yes
5891 if test x$enable_cet = xyes; then
5892 CET_HOST_FLAGS="-fcf-protection"
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5894 $as_echo "yes" >&6; }
5895 else
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897 $as_echo "no" >&6; }
5899 CFLAGS="$cet_save_CFLAGS"
5900 LDFLAGS="$cet_save_LDFLAGS"
5904 if test x"$host_subdir" = x.; then
5905 gcc_build_dir=../gcc
5906 else
5907 gcc_build_dir=../../$host_subdir/gcc
5911 # Used for constructing correct paths for offload compilers.
5912 accel_dir_suffix=
5913 real_target_noncanonical=${target_noncanonical}
5914 if test x"$enable_as_accelerator_for" != x; then
5915 accel_dir_suffix=/accel/${target_noncanonical}
5916 real_target_noncanonical=${enable_as_accelerator_for}
5921 # Determine what GCC version number to use in filesystem paths.
5923 get_gcc_base_ver="cat"
5925 # Check whether --with-gcc-major-version-only was given.
5926 if test "${with_gcc_major_version_only+set}" = set; then :
5927 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
5928 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
5937 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
5938 lto_plugin_use_symver=no
5939 if test x$gcc_no_link = xyes; then
5940 # If we cannot link, we cannot build shared libraries, so do not use
5941 # symbol versioning.
5942 lto_plugin_use_symver=no
5943 else
5944 save_LDFLAGS="$LDFLAGS"
5945 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
5946 cat > conftest.map <<EOF
5948 global: *foo*; bar; local: *;
5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952 /* end confdefs.h. */
5953 int foo;
5955 main ()
5959 return 0;
5961 _ACEOF
5962 if ac_fn_c_try_link "$LINENO"; then :
5963 lto_plugin_use_symver=gnu
5964 else
5965 lto_plugin_use_symver=no
5967 rm -f core conftest.err conftest.$ac_objext \
5968 conftest$ac_exeext conftest.$ac_ext
5969 if test x$lto_plugin_use_symver = xno; then
5970 case "$target_os" in
5971 solaris2*)
5972 LDFLAGS="$save_LDFLAGS"
5973 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
5974 # Sun ld cannot handle wildcards and treats all entries as undefined.
5975 cat > conftest.map <<EOF
5977 global: foo; local: *;
5980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5981 /* end confdefs.h. */
5982 int foo;
5984 main ()
5988 return 0;
5990 _ACEOF
5991 if ac_fn_c_try_link "$LINENO"; then :
5992 lto_plugin_use_symver=sun
5993 else
5994 lto_plugin_use_symver=no
5996 rm -f core conftest.err conftest.$ac_objext \
5997 conftest$ac_exeext conftest.$ac_ext
5999 esac
6001 LDFLAGS="$save_LDFLAGS"
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lto_plugin_use_symver" >&5
6004 $as_echo "$lto_plugin_use_symver" >&6; }
6005 if test "x$lto_plugin_use_symver" != xno; then
6006 LTO_PLUGIN_USE_SYMVER_TRUE=
6007 LTO_PLUGIN_USE_SYMVER_FALSE='#'
6008 else
6009 LTO_PLUGIN_USE_SYMVER_TRUE='#'
6010 LTO_PLUGIN_USE_SYMVER_FALSE=
6013 if test "x$lto_plugin_use_symver" = xgnu; then
6014 LTO_PLUGIN_USE_SYMVER_GNU_TRUE=
6015 LTO_PLUGIN_USE_SYMVER_GNU_FALSE='#'
6016 else
6017 LTO_PLUGIN_USE_SYMVER_GNU_TRUE='#'
6018 LTO_PLUGIN_USE_SYMVER_GNU_FALSE=
6021 if test "x$lto_plugin_use_symver" = xsun; then
6022 LTO_PLUGIN_USE_SYMVER_SUN_TRUE=
6023 LTO_PLUGIN_USE_SYMVER_SUN_FALSE='#'
6024 else
6025 LTO_PLUGIN_USE_SYMVER_SUN_TRUE='#'
6026 LTO_PLUGIN_USE_SYMVER_SUN_FALSE=
6030 # Check for thread headers.
6031 use_locking=no
6032 ac_lto_plugin_extra_ldflags=
6034 case $host in
6035 riscv*)
6036 # do not use locking as pthread depends on libatomic
6038 *-linux*)
6039 use_locking=yes
6041 esac
6043 if test x$use_locking = xyes; then
6044 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
6045 if test "x$ac_cv_header_pthread_h" = xyes; then :
6047 $as_echo "#define HAVE_PTHREAD_LOCKING 1" >>confdefs.h
6053 ac_lto_plugin_extra_ldflags="-pthread"
6058 case `pwd` in
6059 *\ * | *\ *)
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6061 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6062 esac
6066 macro_version='2.2.7a'
6067 macro_revision='1.3134'
6081 ltmain="$ac_aux_dir/ltmain.sh"
6083 # Backslashify metacharacters that are still active within
6084 # double-quoted strings.
6085 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6087 # Same as above, but do not quote variable references.
6088 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6090 # Sed substitution to delay expansion of an escaped shell variable in a
6091 # double_quote_subst'ed string.
6092 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6094 # Sed substitution to delay expansion of an escaped single quote.
6095 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6097 # Sed substitution to avoid accidental globbing in evaled expressions
6098 no_glob_subst='s/\*/\\\*/g'
6100 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6101 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6102 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6105 $as_echo_n "checking how to print strings... " >&6; }
6106 # Test print first, because it will be a builtin if present.
6107 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6108 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6109 ECHO='print -r --'
6110 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6111 ECHO='printf %s\n'
6112 else
6113 # Use this function as a fallback that always works.
6114 func_fallback_echo ()
6116 eval 'cat <<_LTECHO_EOF
6118 _LTECHO_EOF'
6120 ECHO='func_fallback_echo'
6123 # func_echo_all arg...
6124 # Invoke $ECHO with all args, space-separated.
6125 func_echo_all ()
6127 $ECHO ""
6130 case "$ECHO" in
6131 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6132 $as_echo "printf" >&6; } ;;
6133 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6134 $as_echo "print -r" >&6; } ;;
6135 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6136 $as_echo "cat" >&6; } ;;
6137 esac
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6153 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6154 if ${ac_cv_path_SED+:} false; then :
6155 $as_echo_n "(cached) " >&6
6156 else
6157 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6158 for ac_i in 1 2 3 4 5 6 7; do
6159 ac_script="$ac_script$as_nl$ac_script"
6160 done
6161 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6162 { ac_script=; unset ac_script;}
6163 if test -z "$SED"; then
6164 ac_path_SED_found=false
6165 # Loop through the user's path and test for each of PROGNAME-LIST
6166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167 for as_dir in $PATH
6169 IFS=$as_save_IFS
6170 test -z "$as_dir" && as_dir=.
6171 for ac_prog in sed gsed; do
6172 for ac_exec_ext in '' $ac_executable_extensions; do
6173 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6174 as_fn_executable_p "$ac_path_SED" || continue
6175 # Check for GNU ac_path_SED and select it if it is found.
6176 # Check for GNU $ac_path_SED
6177 case `"$ac_path_SED" --version 2>&1` in
6178 *GNU*)
6179 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6181 ac_count=0
6182 $as_echo_n 0123456789 >"conftest.in"
6183 while :
6185 cat "conftest.in" "conftest.in" >"conftest.tmp"
6186 mv "conftest.tmp" "conftest.in"
6187 cp "conftest.in" "conftest.nl"
6188 $as_echo '' >> "conftest.nl"
6189 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6190 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6191 as_fn_arith $ac_count + 1 && ac_count=$as_val
6192 if test $ac_count -gt ${ac_path_SED_max-0}; then
6193 # Best one so far, save it but keep looking for a better one
6194 ac_cv_path_SED="$ac_path_SED"
6195 ac_path_SED_max=$ac_count
6197 # 10*(2^10) chars as input seems more than enough
6198 test $ac_count -gt 10 && break
6199 done
6200 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6201 esac
6203 $ac_path_SED_found && break 3
6204 done
6205 done
6206 done
6207 IFS=$as_save_IFS
6208 if test -z "$ac_cv_path_SED"; then
6209 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6211 else
6212 ac_cv_path_SED=$SED
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6217 $as_echo "$ac_cv_path_SED" >&6; }
6218 SED="$ac_cv_path_SED"
6219 rm -f conftest.sed
6221 test -z "$SED" && SED=sed
6222 Xsed="$SED -e 1s/^X//"
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6235 $as_echo_n "checking for fgrep... " >&6; }
6236 if ${ac_cv_path_FGREP+:} false; then :
6237 $as_echo_n "(cached) " >&6
6238 else
6239 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6240 then ac_cv_path_FGREP="$GREP -F"
6241 else
6242 if test -z "$FGREP"; then
6243 ac_path_FGREP_found=false
6244 # Loop through the user's path and test for each of PROGNAME-LIST
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6248 IFS=$as_save_IFS
6249 test -z "$as_dir" && as_dir=.
6250 for ac_prog in fgrep; do
6251 for ac_exec_ext in '' $ac_executable_extensions; do
6252 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6253 as_fn_executable_p "$ac_path_FGREP" || continue
6254 # Check for GNU ac_path_FGREP and select it if it is found.
6255 # Check for GNU $ac_path_FGREP
6256 case `"$ac_path_FGREP" --version 2>&1` in
6257 *GNU*)
6258 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6260 ac_count=0
6261 $as_echo_n 0123456789 >"conftest.in"
6262 while :
6264 cat "conftest.in" "conftest.in" >"conftest.tmp"
6265 mv "conftest.tmp" "conftest.in"
6266 cp "conftest.in" "conftest.nl"
6267 $as_echo 'FGREP' >> "conftest.nl"
6268 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6269 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6270 as_fn_arith $ac_count + 1 && ac_count=$as_val
6271 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6272 # Best one so far, save it but keep looking for a better one
6273 ac_cv_path_FGREP="$ac_path_FGREP"
6274 ac_path_FGREP_max=$ac_count
6276 # 10*(2^10) chars as input seems more than enough
6277 test $ac_count -gt 10 && break
6278 done
6279 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6280 esac
6282 $ac_path_FGREP_found && break 3
6283 done
6284 done
6285 done
6286 IFS=$as_save_IFS
6287 if test -z "$ac_cv_path_FGREP"; then
6288 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6290 else
6291 ac_cv_path_FGREP=$FGREP
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6297 $as_echo "$ac_cv_path_FGREP" >&6; }
6298 FGREP="$ac_cv_path_FGREP"
6301 test -z "$GREP" && GREP=grep
6321 # Check whether --with-gnu-ld was given.
6322 if test "${with_gnu_ld+set}" = set; then :
6323 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6324 else
6325 with_gnu_ld=no
6328 ac_prog=ld
6329 if test "$GCC" = yes; then
6330 # Check if gcc -print-prog-name=ld gives a path.
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6332 $as_echo_n "checking for ld used by $CC... " >&6; }
6333 case $host in
6334 *-*-mingw*)
6335 # gcc leaves a trailing carriage return which upsets mingw
6336 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6338 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6339 esac
6340 case $ac_prog in
6341 # Accept absolute paths.
6342 [\\/]* | ?:[\\/]*)
6343 re_direlt='/[^/][^/]*/\.\./'
6344 # Canonicalize the pathname of ld
6345 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6346 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6347 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6348 done
6349 test -z "$LD" && LD="$ac_prog"
6352 # If it fails, then pretend we aren't using GCC.
6353 ac_prog=ld
6356 # If it is relative, then search for the first ld in PATH.
6357 with_gnu_ld=unknown
6359 esac
6360 elif test "$with_gnu_ld" = yes; then
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6362 $as_echo_n "checking for GNU ld... " >&6; }
6363 else
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6365 $as_echo_n "checking for non-GNU ld... " >&6; }
6367 if ${lt_cv_path_LD+:} false; then :
6368 $as_echo_n "(cached) " >&6
6369 else
6370 if test -z "$LD"; then
6371 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6372 for ac_dir in $PATH; do
6373 IFS="$lt_save_ifs"
6374 test -z "$ac_dir" && ac_dir=.
6375 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6376 lt_cv_path_LD="$ac_dir/$ac_prog"
6377 # Check to see if the program is GNU ld. I'd rather use --version,
6378 # but apparently some variants of GNU ld only accept -v.
6379 # Break only if it was the GNU/non-GNU ld that we prefer.
6380 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6381 *GNU* | *'with BFD'*)
6382 test "$with_gnu_ld" != no && break
6385 test "$with_gnu_ld" != yes && break
6387 esac
6389 done
6390 IFS="$lt_save_ifs"
6391 else
6392 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6396 LD="$lt_cv_path_LD"
6397 if test -n "$LD"; then
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6399 $as_echo "$LD" >&6; }
6400 else
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402 $as_echo "no" >&6; }
6404 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6406 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6407 if ${lt_cv_prog_gnu_ld+:} false; then :
6408 $as_echo_n "(cached) " >&6
6409 else
6410 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6411 case `$LD -v 2>&1 </dev/null` in
6412 *GNU* | *'with BFD'*)
6413 lt_cv_prog_gnu_ld=yes
6416 lt_cv_prog_gnu_ld=no
6418 esac
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6421 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6422 with_gnu_ld=$lt_cv_prog_gnu_ld
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6433 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6434 if ${lt_cv_path_NM+:} false; then :
6435 $as_echo_n "(cached) " >&6
6436 else
6437 if test -n "$NM"; then
6438 # Let the user override the test.
6439 lt_cv_path_NM="$NM"
6440 else
6441 lt_nm_to_check="${ac_tool_prefix}nm"
6442 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6443 lt_nm_to_check="$lt_nm_to_check nm"
6445 for lt_tmp_nm in $lt_nm_to_check; do
6446 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6447 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6448 IFS="$lt_save_ifs"
6449 test -z "$ac_dir" && ac_dir=.
6450 tmp_nm="$ac_dir/$lt_tmp_nm"
6451 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6452 # Check to see if the nm accepts a BSD-compat flag.
6453 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6454 # nm: unknown option "B" ignored
6455 # Tru64's nm complains that /dev/null is an invalid object file
6456 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6457 */dev/null* | *'Invalid file or object type'*)
6458 lt_cv_path_NM="$tmp_nm -B"
6459 break
6462 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6463 */dev/null*)
6464 lt_cv_path_NM="$tmp_nm -p"
6465 break
6468 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6469 continue # so that we can try to find one that supports BSD flags
6471 esac
6473 esac
6475 done
6476 IFS="$lt_save_ifs"
6477 done
6478 : ${lt_cv_path_NM=no}
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6482 $as_echo "$lt_cv_path_NM" >&6; }
6483 if test "$lt_cv_path_NM" != "no"; then
6484 NM="$lt_cv_path_NM"
6485 else
6486 # Didn't find any BSD compatible name lister, look for dumpbin.
6487 if test -n "$DUMPBIN"; then :
6488 # Let the user override the test.
6489 else
6490 if test -n "$ac_tool_prefix"; then
6491 for ac_prog in dumpbin "link -dump"
6493 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6494 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6496 $as_echo_n "checking for $ac_word... " >&6; }
6497 if ${ac_cv_prog_DUMPBIN+:} false; then :
6498 $as_echo_n "(cached) " >&6
6499 else
6500 if test -n "$DUMPBIN"; then
6501 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6502 else
6503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504 for as_dir in $PATH
6506 IFS=$as_save_IFS
6507 test -z "$as_dir" && as_dir=.
6508 for ac_exec_ext in '' $ac_executable_extensions; do
6509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6510 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6512 break 2
6514 done
6515 done
6516 IFS=$as_save_IFS
6520 DUMPBIN=$ac_cv_prog_DUMPBIN
6521 if test -n "$DUMPBIN"; then
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6523 $as_echo "$DUMPBIN" >&6; }
6524 else
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6526 $as_echo "no" >&6; }
6530 test -n "$DUMPBIN" && break
6531 done
6533 if test -z "$DUMPBIN"; then
6534 ac_ct_DUMPBIN=$DUMPBIN
6535 for ac_prog in dumpbin "link -dump"
6537 # Extract the first word of "$ac_prog", so it can be a program name with args.
6538 set dummy $ac_prog; ac_word=$2
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6540 $as_echo_n "checking for $ac_word... " >&6; }
6541 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6542 $as_echo_n "(cached) " >&6
6543 else
6544 if test -n "$ac_ct_DUMPBIN"; then
6545 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6546 else
6547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548 for as_dir in $PATH
6550 IFS=$as_save_IFS
6551 test -z "$as_dir" && as_dir=.
6552 for ac_exec_ext in '' $ac_executable_extensions; do
6553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6554 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6556 break 2
6558 done
6559 done
6560 IFS=$as_save_IFS
6564 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6565 if test -n "$ac_ct_DUMPBIN"; then
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6567 $as_echo "$ac_ct_DUMPBIN" >&6; }
6568 else
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570 $as_echo "no" >&6; }
6574 test -n "$ac_ct_DUMPBIN" && break
6575 done
6577 if test "x$ac_ct_DUMPBIN" = x; then
6578 DUMPBIN=":"
6579 else
6580 case $cross_compiling:$ac_tool_warned in
6581 yes:)
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6584 ac_tool_warned=yes ;;
6585 esac
6586 DUMPBIN=$ac_ct_DUMPBIN
6590 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6591 *COFF*)
6592 DUMPBIN="$DUMPBIN -symbols"
6595 DUMPBIN=:
6597 esac
6600 if test "$DUMPBIN" != ":"; then
6601 NM="$DUMPBIN"
6604 test -z "$NM" && NM=nm
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6612 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6613 if ${lt_cv_nm_interface+:} false; then :
6614 $as_echo_n "(cached) " >&6
6615 else
6616 lt_cv_nm_interface="BSD nm"
6617 echo "int some_variable = 0;" > conftest.$ac_ext
6618 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6619 (eval "$ac_compile" 2>conftest.err)
6620 cat conftest.err >&5
6621 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6622 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6623 cat conftest.err >&5
6624 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6625 cat conftest.out >&5
6626 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6627 lt_cv_nm_interface="MS dumpbin"
6629 rm -f conftest*
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6632 $as_echo "$lt_cv_nm_interface" >&6; }
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6635 $as_echo_n "checking whether ln -s works... " >&6; }
6636 LN_S=$as_ln_s
6637 if test "$LN_S" = "ln -s"; then
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6639 $as_echo "yes" >&6; }
6640 else
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6642 $as_echo "no, using $LN_S" >&6; }
6645 # find the maximum length of command line arguments
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6647 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6648 if ${lt_cv_sys_max_cmd_len+:} false; then :
6649 $as_echo_n "(cached) " >&6
6650 else
6652 teststring="ABCD"
6654 case $build_os in
6655 msdosdjgpp*)
6656 # On DJGPP, this test can blow up pretty badly due to problems in libc
6657 # (any single argument exceeding 2000 bytes causes a buffer overrun
6658 # during glob expansion). Even if it were fixed, the result of this
6659 # check would be larger than it should be.
6660 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6663 gnu*)
6664 # Under GNU Hurd, this test is not required because there is
6665 # no limit to the length of command line arguments.
6666 # Libtool will interpret -1 as no limit whatsoever
6667 lt_cv_sys_max_cmd_len=-1;
6670 cygwin* | mingw* | cegcc*)
6671 # On Win9x/ME, this test blows up -- it succeeds, but takes
6672 # about 5 minutes as the teststring grows exponentially.
6673 # Worse, since 9x/ME are not pre-emptively multitasking,
6674 # you end up with a "frozen" computer, even though with patience
6675 # the test eventually succeeds (with a max line length of 256k).
6676 # Instead, let's just punt: use the minimum linelength reported by
6677 # all of the supported platforms: 8192 (on NT/2K/XP).
6678 lt_cv_sys_max_cmd_len=8192;
6681 mint*)
6682 # On MiNT this can take a long time and run out of memory.
6683 lt_cv_sys_max_cmd_len=8192;
6686 amigaos*)
6687 # On AmigaOS with pdksh, this test takes hours, literally.
6688 # So we just punt and use a minimum line length of 8192.
6689 lt_cv_sys_max_cmd_len=8192;
6692 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6693 # This has been around since 386BSD, at least. Likely further.
6694 if test -x /sbin/sysctl; then
6695 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6696 elif test -x /usr/sbin/sysctl; then
6697 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6698 else
6699 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6701 # And add a safety zone
6702 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6703 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6706 interix*)
6707 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6708 lt_cv_sys_max_cmd_len=196608
6711 osf*)
6712 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6713 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6714 # nice to cause kernel panics so lets avoid the loop below.
6715 # First set a reasonable default.
6716 lt_cv_sys_max_cmd_len=16384
6718 if test -x /sbin/sysconfig; then
6719 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6720 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6721 esac
6724 sco3.2v5*)
6725 lt_cv_sys_max_cmd_len=102400
6727 sysv5* | sco5v6* | sysv4.2uw2*)
6728 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6729 if test -n "$kargmax"; then
6730 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6731 else
6732 lt_cv_sys_max_cmd_len=32768
6736 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6737 if test -n "$lt_cv_sys_max_cmd_len"; then
6738 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6739 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6740 else
6741 # Make teststring a little bigger before we do anything with it.
6742 # a 1K string should be a reasonable start.
6743 for i in 1 2 3 4 5 6 7 8 ; do
6744 teststring=$teststring$teststring
6745 done
6746 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6747 # If test is not a shell built-in, we'll probably end up computing a
6748 # maximum length that is only half of the actual maximum length, but
6749 # we can't tell.
6750 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6751 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6752 test $i != 17 # 1/2 MB should be enough
6754 i=`expr $i + 1`
6755 teststring=$teststring$teststring
6756 done
6757 # Only check the string length outside the loop.
6758 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6759 teststring=
6760 # Add a significant safety factor because C++ compilers can tack on
6761 # massive amounts of additional arguments before passing them to the
6762 # linker. It appears as though 1/2 is a usable value.
6763 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6766 esac
6770 if test -n $lt_cv_sys_max_cmd_len ; then
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6772 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6773 else
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6775 $as_echo "none" >&6; }
6777 max_cmd_len=$lt_cv_sys_max_cmd_len
6784 : ${CP="cp -f"}
6785 : ${MV="mv -f"}
6786 : ${RM="rm -f"}
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6789 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6790 # Try some XSI features
6791 xsi_shell=no
6792 ( _lt_dummy="a/b/c"
6793 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6794 = c,a/b,, \
6795 && eval 'test $(( 1 + 1 )) -eq 2 \
6796 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6797 && xsi_shell=yes
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6799 $as_echo "$xsi_shell" >&6; }
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6803 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6804 lt_shell_append=no
6805 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6806 >/dev/null 2>&1 \
6807 && lt_shell_append=yes
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6809 $as_echo "$lt_shell_append" >&6; }
6812 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6813 lt_unset=unset
6814 else
6815 lt_unset=false
6822 # test EBCDIC or ASCII
6823 case `echo X|tr X '\101'` in
6824 A) # ASCII based system
6825 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6826 lt_SP2NL='tr \040 \012'
6827 lt_NL2SP='tr \015\012 \040\040'
6829 *) # EBCDIC based system
6830 lt_SP2NL='tr \100 \n'
6831 lt_NL2SP='tr \r\n \100\100'
6833 esac
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6844 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6845 if ${lt_cv_ld_reload_flag+:} false; then :
6846 $as_echo_n "(cached) " >&6
6847 else
6848 lt_cv_ld_reload_flag='-r'
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6851 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6852 reload_flag=$lt_cv_ld_reload_flag
6853 case $reload_flag in
6854 "" | " "*) ;;
6855 *) reload_flag=" $reload_flag" ;;
6856 esac
6857 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6858 case $host_os in
6859 darwin*)
6860 if test "$GCC" = yes; then
6861 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6862 else
6863 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6866 esac
6876 if test -n "$ac_tool_prefix"; then
6877 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6878 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6880 $as_echo_n "checking for $ac_word... " >&6; }
6881 if ${ac_cv_prog_OBJDUMP+:} false; then :
6882 $as_echo_n "(cached) " >&6
6883 else
6884 if test -n "$OBJDUMP"; then
6885 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6886 else
6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 for as_dir in $PATH
6890 IFS=$as_save_IFS
6891 test -z "$as_dir" && as_dir=.
6892 for ac_exec_ext in '' $ac_executable_extensions; do
6893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6894 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6896 break 2
6898 done
6899 done
6900 IFS=$as_save_IFS
6904 OBJDUMP=$ac_cv_prog_OBJDUMP
6905 if test -n "$OBJDUMP"; then
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6907 $as_echo "$OBJDUMP" >&6; }
6908 else
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6910 $as_echo "no" >&6; }
6915 if test -z "$ac_cv_prog_OBJDUMP"; then
6916 ac_ct_OBJDUMP=$OBJDUMP
6917 # Extract the first word of "objdump", so it can be a program name with args.
6918 set dummy objdump; ac_word=$2
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6920 $as_echo_n "checking for $ac_word... " >&6; }
6921 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6922 $as_echo_n "(cached) " >&6
6923 else
6924 if test -n "$ac_ct_OBJDUMP"; then
6925 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6926 else
6927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928 for as_dir in $PATH
6930 IFS=$as_save_IFS
6931 test -z "$as_dir" && as_dir=.
6932 for ac_exec_ext in '' $ac_executable_extensions; do
6933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6934 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6936 break 2
6938 done
6939 done
6940 IFS=$as_save_IFS
6944 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6945 if test -n "$ac_ct_OBJDUMP"; then
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6947 $as_echo "$ac_ct_OBJDUMP" >&6; }
6948 else
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6950 $as_echo "no" >&6; }
6953 if test "x$ac_ct_OBJDUMP" = x; then
6954 OBJDUMP="false"
6955 else
6956 case $cross_compiling:$ac_tool_warned in
6957 yes:)
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6960 ac_tool_warned=yes ;;
6961 esac
6962 OBJDUMP=$ac_ct_OBJDUMP
6964 else
6965 OBJDUMP="$ac_cv_prog_OBJDUMP"
6968 test -z "$OBJDUMP" && OBJDUMP=objdump
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6979 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6980 if ${lt_cv_deplibs_check_method+:} false; then :
6981 $as_echo_n "(cached) " >&6
6982 else
6983 lt_cv_file_magic_cmd='$MAGIC_CMD'
6984 lt_cv_file_magic_test_file=
6985 lt_cv_deplibs_check_method='unknown'
6986 # Need to set the preceding variable on all platforms that support
6987 # interlibrary dependencies.
6988 # 'none' -- dependencies not supported.
6989 # `unknown' -- same as none, but documents that we really don't know.
6990 # 'pass_all' -- all dependencies passed with no checks.
6991 # 'test_compile' -- check by making test program.
6992 # 'file_magic [[regex]]' -- check by looking for files in library path
6993 # which responds to the $file_magic_cmd with a given extended regex.
6994 # If you have `file' or equivalent on your system and you're not sure
6995 # whether `pass_all' will *always* work, you probably want this one.
6997 case $host_os in
6998 aix[4-9]*)
6999 lt_cv_deplibs_check_method=pass_all
7002 beos*)
7003 lt_cv_deplibs_check_method=pass_all
7006 bsdi[45]*)
7007 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7008 lt_cv_file_magic_cmd='/usr/bin/file -L'
7009 lt_cv_file_magic_test_file=/shlib/libc.so
7012 cygwin*)
7013 # func_win32_libid is a shell function defined in ltmain.sh
7014 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7015 lt_cv_file_magic_cmd='func_win32_libid'
7018 mingw* | pw32*)
7019 # Base MSYS/MinGW do not provide the 'file' command needed by
7020 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7021 # unless we find 'file', for example because we are cross-compiling.
7022 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7023 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7024 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7025 lt_cv_file_magic_cmd='func_win32_libid'
7026 else
7027 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7028 lt_cv_file_magic_cmd='$OBJDUMP -f'
7032 cegcc*)
7033 # use the weaker test based on 'objdump'. See mingw*.
7034 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7035 lt_cv_file_magic_cmd='$OBJDUMP -f'
7038 darwin* | rhapsody*)
7039 lt_cv_deplibs_check_method=pass_all
7042 freebsd* | dragonfly*)
7043 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7044 case $host_cpu in
7045 i*86 )
7046 # Not sure whether the presence of OpenBSD here was a mistake.
7047 # Let's accept both of them until this is cleared up.
7048 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7049 lt_cv_file_magic_cmd=/usr/bin/file
7050 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7052 esac
7053 else
7054 lt_cv_deplibs_check_method=pass_all
7058 gnu*)
7059 lt_cv_deplibs_check_method=pass_all
7062 haiku*)
7063 lt_cv_deplibs_check_method=pass_all
7066 hpux10.20* | hpux11*)
7067 lt_cv_file_magic_cmd=/usr/bin/file
7068 case $host_cpu in
7069 ia64*)
7070 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7071 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7073 hppa*64*)
7074 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]'
7075 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7078 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7079 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7081 esac
7084 interix[3-9]*)
7085 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7086 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7089 irix5* | irix6* | nonstopux*)
7090 case $LD in
7091 *-32|*"-32 ") libmagic=32-bit;;
7092 *-n32|*"-n32 ") libmagic=N32;;
7093 *-64|*"-64 ") libmagic=64-bit;;
7094 *) libmagic=never-match;;
7095 esac
7096 lt_cv_deplibs_check_method=pass_all
7099 # This must be Linux ELF.
7100 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
7101 lt_cv_deplibs_check_method=pass_all
7104 netbsd*)
7105 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7106 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7107 else
7108 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7112 newos6*)
7113 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7114 lt_cv_file_magic_cmd=/usr/bin/file
7115 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7118 *nto* | *qnx*)
7119 lt_cv_deplibs_check_method=pass_all
7122 openbsd*)
7123 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7124 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7125 else
7126 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7130 osf3* | osf4* | osf5*)
7131 lt_cv_deplibs_check_method=pass_all
7134 rdos*)
7135 lt_cv_deplibs_check_method=pass_all
7138 solaris*)
7139 lt_cv_deplibs_check_method=pass_all
7142 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7143 lt_cv_deplibs_check_method=pass_all
7146 sysv4 | sysv4.3*)
7147 case $host_vendor in
7148 motorola)
7149 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]'
7150 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7152 ncr)
7153 lt_cv_deplibs_check_method=pass_all
7155 sequent)
7156 lt_cv_file_magic_cmd='/bin/file'
7157 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7159 sni)
7160 lt_cv_file_magic_cmd='/bin/file'
7161 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7162 lt_cv_file_magic_test_file=/lib/libc.so
7164 siemens)
7165 lt_cv_deplibs_check_method=pass_all
7168 lt_cv_deplibs_check_method=pass_all
7170 esac
7173 tpf*)
7174 lt_cv_deplibs_check_method=pass_all
7176 vxworks*)
7177 # Assume VxWorks cross toolchains are built on Linux, possibly
7178 # as canadian for Windows hosts.
7179 lt_cv_deplibs_check_method=pass_all
7181 esac
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7185 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7186 file_magic_cmd=$lt_cv_file_magic_cmd
7187 deplibs_check_method=$lt_cv_deplibs_check_method
7188 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7201 if test -n "$ac_tool_prefix"; then
7202 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7203 set dummy ${ac_tool_prefix}ar; ac_word=$2
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 $as_echo_n "checking for $ac_word... " >&6; }
7206 if ${ac_cv_prog_AR+:} false; then :
7207 $as_echo_n "(cached) " >&6
7208 else
7209 if test -n "$AR"; then
7210 ac_cv_prog_AR="$AR" # Let the user override the test.
7211 else
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in $PATH
7215 IFS=$as_save_IFS
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7219 ac_cv_prog_AR="${ac_tool_prefix}ar"
7220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7221 break 2
7223 done
7224 done
7225 IFS=$as_save_IFS
7229 AR=$ac_cv_prog_AR
7230 if test -n "$AR"; then
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7232 $as_echo "$AR" >&6; }
7233 else
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
7240 if test -z "$ac_cv_prog_AR"; then
7241 ac_ct_AR=$AR
7242 # Extract the first word of "ar", so it can be a program name with args.
7243 set dummy ar; ac_word=$2
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245 $as_echo_n "checking for $ac_word... " >&6; }
7246 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7247 $as_echo_n "(cached) " >&6
7248 else
7249 if test -n "$ac_ct_AR"; then
7250 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7251 else
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 for as_dir in $PATH
7255 IFS=$as_save_IFS
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7259 ac_cv_prog_ac_ct_AR="ar"
7260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7261 break 2
7263 done
7264 done
7265 IFS=$as_save_IFS
7269 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7270 if test -n "$ac_ct_AR"; then
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7272 $as_echo "$ac_ct_AR" >&6; }
7273 else
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 $as_echo "no" >&6; }
7278 if test "x$ac_ct_AR" = x; then
7279 AR="false"
7280 else
7281 case $cross_compiling:$ac_tool_warned in
7282 yes:)
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7285 ac_tool_warned=yes ;;
7286 esac
7287 AR=$ac_ct_AR
7289 else
7290 AR="$ac_cv_prog_AR"
7293 test -z "$AR" && AR=ar
7294 test -z "$AR_FLAGS" && AR_FLAGS=cru
7306 if test -n "$ac_tool_prefix"; then
7307 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7308 set dummy ${ac_tool_prefix}strip; ac_word=$2
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7310 $as_echo_n "checking for $ac_word... " >&6; }
7311 if ${ac_cv_prog_STRIP+:} false; then :
7312 $as_echo_n "(cached) " >&6
7313 else
7314 if test -n "$STRIP"; then
7315 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7316 else
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 for as_dir in $PATH
7320 IFS=$as_save_IFS
7321 test -z "$as_dir" && as_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7326 break 2
7328 done
7329 done
7330 IFS=$as_save_IFS
7334 STRIP=$ac_cv_prog_STRIP
7335 if test -n "$STRIP"; then
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7337 $as_echo "$STRIP" >&6; }
7338 else
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340 $as_echo "no" >&6; }
7345 if test -z "$ac_cv_prog_STRIP"; then
7346 ac_ct_STRIP=$STRIP
7347 # Extract the first word of "strip", so it can be a program name with args.
7348 set dummy strip; ac_word=$2
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350 $as_echo_n "checking for $ac_word... " >&6; }
7351 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7352 $as_echo_n "(cached) " >&6
7353 else
7354 if test -n "$ac_ct_STRIP"; then
7355 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7356 else
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 for as_dir in $PATH
7360 IFS=$as_save_IFS
7361 test -z "$as_dir" && as_dir=.
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364 ac_cv_prog_ac_ct_STRIP="strip"
7365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366 break 2
7368 done
7369 done
7370 IFS=$as_save_IFS
7374 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7375 if test -n "$ac_ct_STRIP"; then
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7377 $as_echo "$ac_ct_STRIP" >&6; }
7378 else
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 $as_echo "no" >&6; }
7383 if test "x$ac_ct_STRIP" = x; then
7384 STRIP=":"
7385 else
7386 case $cross_compiling:$ac_tool_warned in
7387 yes:)
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7390 ac_tool_warned=yes ;;
7391 esac
7392 STRIP=$ac_ct_STRIP
7394 else
7395 STRIP="$ac_cv_prog_STRIP"
7398 test -z "$STRIP" && STRIP=:
7405 if test -n "$ac_tool_prefix"; then
7406 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7407 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7409 $as_echo_n "checking for $ac_word... " >&6; }
7410 if ${ac_cv_prog_RANLIB+:} false; then :
7411 $as_echo_n "(cached) " >&6
7412 else
7413 if test -n "$RANLIB"; then
7414 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7415 else
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 for as_dir in $PATH
7419 IFS=$as_save_IFS
7420 test -z "$as_dir" && as_dir=.
7421 for ac_exec_ext in '' $ac_executable_extensions; do
7422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7423 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7425 break 2
7427 done
7428 done
7429 IFS=$as_save_IFS
7433 RANLIB=$ac_cv_prog_RANLIB
7434 if test -n "$RANLIB"; then
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7436 $as_echo "$RANLIB" >&6; }
7437 else
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7439 $as_echo "no" >&6; }
7444 if test -z "$ac_cv_prog_RANLIB"; then
7445 ac_ct_RANLIB=$RANLIB
7446 # Extract the first word of "ranlib", so it can be a program name with args.
7447 set dummy ranlib; ac_word=$2
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7449 $as_echo_n "checking for $ac_word... " >&6; }
7450 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7451 $as_echo_n "(cached) " >&6
7452 else
7453 if test -n "$ac_ct_RANLIB"; then
7454 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7455 else
7456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457 for as_dir in $PATH
7459 IFS=$as_save_IFS
7460 test -z "$as_dir" && as_dir=.
7461 for ac_exec_ext in '' $ac_executable_extensions; do
7462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7463 ac_cv_prog_ac_ct_RANLIB="ranlib"
7464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7465 break 2
7467 done
7468 done
7469 IFS=$as_save_IFS
7473 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7474 if test -n "$ac_ct_RANLIB"; then
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7476 $as_echo "$ac_ct_RANLIB" >&6; }
7477 else
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7479 $as_echo "no" >&6; }
7482 if test "x$ac_ct_RANLIB" = x; then
7483 RANLIB=":"
7484 else
7485 case $cross_compiling:$ac_tool_warned in
7486 yes:)
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7489 ac_tool_warned=yes ;;
7490 esac
7491 RANLIB=$ac_ct_RANLIB
7493 else
7494 RANLIB="$ac_cv_prog_RANLIB"
7497 test -z "$RANLIB" && RANLIB=:
7504 # Determine commands to create old-style static archives.
7505 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7506 old_postinstall_cmds='chmod 644 $oldlib'
7507 old_postuninstall_cmds=
7509 if test -n "$RANLIB"; then
7510 case $host_os in
7511 openbsd*)
7512 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7515 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7517 esac
7518 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7521 case $host_os in
7522 darwin*)
7523 lock_old_archive_extraction=yes ;;
7525 lock_old_archive_extraction=no ;;
7526 esac
7566 # If no C compiler was specified, use CC.
7567 LTCC=${LTCC-"$CC"}
7569 # If no C compiler flags were specified, use CFLAGS.
7570 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7572 # Allow CC to be a program name with arguments.
7573 compiler=$CC
7576 # Check for command to grab the raw symbol name followed by C symbol from nm.
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7578 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7579 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7580 $as_echo_n "(cached) " >&6
7581 else
7583 # These are sane defaults that work on at least a few old systems.
7584 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7586 # Character class describing NM global symbol codes.
7587 symcode='[BCDEGRST]'
7589 # Regexp to match symbols that can be accessed directly from C.
7590 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7592 # Define system-specific variables.
7593 case $host_os in
7594 aix*)
7595 symcode='[BCDT]'
7597 cygwin* | mingw* | pw32* | cegcc*)
7598 symcode='[ABCDGISTW]'
7600 hpux*)
7601 if test "$host_cpu" = ia64; then
7602 symcode='[ABCDEGRST]'
7605 irix* | nonstopux*)
7606 symcode='[BCDEGRST]'
7608 osf*)
7609 symcode='[BCDEGQRST]'
7611 solaris*)
7612 symcode='[BDRT]'
7614 sco3.2v5*)
7615 symcode='[DT]'
7617 sysv4.2uw2*)
7618 symcode='[DT]'
7620 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7621 symcode='[ABDT]'
7623 sysv4)
7624 symcode='[DFNSTU]'
7626 esac
7628 # If we're using GNU nm, then use its standard symbol codes.
7629 case `$NM -V 2>&1` in
7630 *GNU* | *'with BFD'*)
7631 symcode='[ABCDGIRSTW]' ;;
7632 esac
7634 # Transform an extracted symbol line into a proper C declaration.
7635 # Some systems (esp. on ia64) link data and code symbols differently,
7636 # so use this general approach.
7637 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7639 # Transform an extracted symbol line into symbol name and symbol address
7640 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7641 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'"
7643 # Handle CRLF in mingw tool chain
7644 opt_cr=
7645 case $build_os in
7646 mingw*)
7647 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7649 esac
7651 # Try without a prefix underscore, then with it.
7652 for ac_symprfx in "" "_"; do
7654 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7655 symxfrm="\\1 $ac_symprfx\\2 \\2"
7657 # Write the raw and C identifiers.
7658 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7659 # Fake it for dumpbin and say T for any non-static function
7660 # and D for any global variable.
7661 # Also find C++ and __fastcall symbols from MSVC++,
7662 # which start with @ or ?.
7663 lt_cv_sys_global_symbol_pipe="$AWK '"\
7664 " {last_section=section; section=\$ 3};"\
7665 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7666 " \$ 0!~/External *\|/{next};"\
7667 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7668 " {if(hide[section]) next};"\
7669 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7670 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7671 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7672 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7673 " ' prfx=^$ac_symprfx"
7674 else
7675 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7678 # Check to see that the pipe works correctly.
7679 pipe_works=no
7681 rm -f conftest*
7682 cat > conftest.$ac_ext <<_LT_EOF
7683 #ifdef __cplusplus
7684 extern "C" {
7685 #endif
7686 char nm_test_var;
7687 void nm_test_func(void);
7688 void nm_test_func(void){}
7689 #ifdef __cplusplus
7691 #endif
7692 int main(){nm_test_var='a';nm_test_func();return(0);}
7693 _LT_EOF
7695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7696 (eval $ac_compile) 2>&5
7697 ac_status=$?
7698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7699 test $ac_status = 0; }; then
7700 # Now try to grab the symbols.
7701 nlist=conftest.nm
7702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7703 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7704 ac_status=$?
7705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7706 test $ac_status = 0; } && test -s "$nlist"; then
7707 # Try sorting and uniquifying the output.
7708 if sort "$nlist" | uniq > "$nlist"T; then
7709 mv -f "$nlist"T "$nlist"
7710 else
7711 rm -f "$nlist"T
7714 # Make sure that we snagged all the symbols we need.
7715 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7716 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7717 cat <<_LT_EOF > conftest.$ac_ext
7718 #ifdef __cplusplus
7719 extern "C" {
7720 #endif
7722 _LT_EOF
7723 # Now generate the symbol file.
7724 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7726 cat <<_LT_EOF >> conftest.$ac_ext
7728 /* The mapping between symbol names and symbols. */
7729 const struct {
7730 const char *name;
7731 void *address;
7733 lt__PROGRAM__LTX_preloaded_symbols[] =
7735 { "@PROGRAM@", (void *) 0 },
7736 _LT_EOF
7737 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7738 cat <<\_LT_EOF >> conftest.$ac_ext
7739 {0, (void *) 0}
7742 /* This works around a problem in FreeBSD linker */
7743 #ifdef FREEBSD_WORKAROUND
7744 static const void *lt_preloaded_setup() {
7745 return lt__PROGRAM__LTX_preloaded_symbols;
7747 #endif
7749 #ifdef __cplusplus
7751 #endif
7752 _LT_EOF
7753 # Now try linking the two files.
7754 mv conftest.$ac_objext conftstm.$ac_objext
7755 lt_save_LIBS="$LIBS"
7756 lt_save_CFLAGS="$CFLAGS"
7757 LIBS="conftstm.$ac_objext"
7758 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7759 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7760 (eval $ac_link) 2>&5
7761 ac_status=$?
7762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7763 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7764 pipe_works=yes
7766 LIBS="$lt_save_LIBS"
7767 CFLAGS="$lt_save_CFLAGS"
7768 else
7769 echo "cannot find nm_test_func in $nlist" >&5
7771 else
7772 echo "cannot find nm_test_var in $nlist" >&5
7774 else
7775 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7777 else
7778 echo "$progname: failed program was:" >&5
7779 cat conftest.$ac_ext >&5
7781 rm -rf conftest* conftst*
7783 # Do not use the global_symbol_pipe unless it works.
7784 if test "$pipe_works" = yes; then
7785 break
7786 else
7787 lt_cv_sys_global_symbol_pipe=
7789 done
7793 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7794 lt_cv_sys_global_symbol_to_cdecl=
7796 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7798 $as_echo "failed" >&6; }
7799 else
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7801 $as_echo "ok" >&6; }
7825 # Check whether --enable-libtool-lock was given.
7826 if test "${enable_libtool_lock+set}" = set; then :
7827 enableval=$enable_libtool_lock;
7830 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7832 # Some flags need to be propagated to the compiler or linker for good
7833 # libtool support.
7834 case $host in
7835 ia64-*-hpux*)
7836 # Find out which ABI we are using.
7837 echo 'int i;' > conftest.$ac_ext
7838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7839 (eval $ac_compile) 2>&5
7840 ac_status=$?
7841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7842 test $ac_status = 0; }; then
7843 case `/usr/bin/file conftest.$ac_objext` in
7844 *ELF-32*)
7845 HPUX_IA64_MODE="32"
7847 *ELF-64*)
7848 HPUX_IA64_MODE="64"
7850 esac
7852 rm -rf conftest*
7854 *-*-irix6*)
7855 # Find out which ABI we are using.
7856 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7858 (eval $ac_compile) 2>&5
7859 ac_status=$?
7860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7861 test $ac_status = 0; }; then
7862 if test "$lt_cv_prog_gnu_ld" = yes; then
7863 case `/usr/bin/file conftest.$ac_objext` in
7864 *32-bit*)
7865 LD="${LD-ld} -melf32bsmip"
7867 *N32*)
7868 LD="${LD-ld} -melf32bmipn32"
7870 *64-bit*)
7871 LD="${LD-ld} -melf64bmip"
7873 esac
7874 else
7875 case `/usr/bin/file conftest.$ac_objext` in
7876 *32-bit*)
7877 LD="${LD-ld} -32"
7879 *N32*)
7880 LD="${LD-ld} -n32"
7882 *64-bit*)
7883 LD="${LD-ld} -64"
7885 esac
7888 rm -rf conftest*
7891 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7892 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7893 # Find out which ABI we are using.
7894 echo 'int i;' > conftest.$ac_ext
7895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7896 (eval $ac_compile) 2>&5
7897 ac_status=$?
7898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7899 test $ac_status = 0; }; then
7900 case `/usr/bin/file conftest.o` in
7901 *32-bit*)
7902 case $host in
7903 x86_64-*kfreebsd*-gnu)
7904 LD="${LD-ld} -m elf_i386_fbsd"
7906 x86_64-*linux*)
7907 case `/usr/bin/file conftest.o` in
7908 *x86-64*)
7909 LD="${LD-ld} -m elf32_x86_64"
7912 LD="${LD-ld} -m elf_i386"
7914 esac
7916 powerpc64le-*linux*)
7917 LD="${LD-ld} -m elf32lppclinux"
7919 powerpc64-*linux*)
7920 LD="${LD-ld} -m elf32ppclinux"
7922 s390x-*linux*)
7923 LD="${LD-ld} -m elf_s390"
7925 sparc64-*linux*)
7926 LD="${LD-ld} -m elf32_sparc"
7928 esac
7930 *64-bit*)
7931 case $host in
7932 x86_64-*kfreebsd*-gnu)
7933 LD="${LD-ld} -m elf_x86_64_fbsd"
7935 x86_64-*linux*)
7936 LD="${LD-ld} -m elf_x86_64"
7938 powerpcle-*linux*)
7939 LD="${LD-ld} -m elf64lppc"
7941 powerpc-*linux*)
7942 LD="${LD-ld} -m elf64ppc"
7944 s390*-*linux*|s390*-*tpf*)
7945 LD="${LD-ld} -m elf64_s390"
7947 sparc*-*linux*)
7948 LD="${LD-ld} -m elf64_sparc"
7950 esac
7952 esac
7954 rm -rf conftest*
7957 *-*-sco3.2v5*)
7958 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7959 SAVE_CFLAGS="$CFLAGS"
7960 CFLAGS="$CFLAGS -belf"
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7962 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7963 if ${lt_cv_cc_needs_belf+:} false; then :
7964 $as_echo_n "(cached) " >&6
7965 else
7966 ac_ext=c
7967 ac_cpp='$CPP $CPPFLAGS'
7968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973 /* end confdefs.h. */
7976 main ()
7980 return 0;
7982 _ACEOF
7983 if ac_fn_c_try_link "$LINENO"; then :
7984 lt_cv_cc_needs_belf=yes
7985 else
7986 lt_cv_cc_needs_belf=no
7988 rm -f core conftest.err conftest.$ac_objext \
7989 conftest$ac_exeext conftest.$ac_ext
7990 ac_ext=c
7991 ac_cpp='$CPP $CPPFLAGS'
7992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7998 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7999 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8000 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8001 CFLAGS="$SAVE_CFLAGS"
8004 sparc*-*solaris*)
8005 # Find out which ABI we are using.
8006 echo 'int i;' > conftest.$ac_ext
8007 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8008 (eval $ac_compile) 2>&5
8009 ac_status=$?
8010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8011 test $ac_status = 0; }; then
8012 case `/usr/bin/file conftest.o` in
8013 *64-bit*)
8014 case $lt_cv_prog_gnu_ld in
8015 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8017 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8018 LD="${LD-ld} -64"
8021 esac
8023 esac
8025 rm -rf conftest*
8027 esac
8029 need_locks="$enable_libtool_lock"
8032 case $host_os in
8033 rhapsody* | darwin*)
8034 if test -n "$ac_tool_prefix"; then
8035 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8036 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8038 $as_echo_n "checking for $ac_word... " >&6; }
8039 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8040 $as_echo_n "(cached) " >&6
8041 else
8042 if test -n "$DSYMUTIL"; then
8043 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8044 else
8045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 for as_dir in $PATH
8048 IFS=$as_save_IFS
8049 test -z "$as_dir" && as_dir=.
8050 for ac_exec_ext in '' $ac_executable_extensions; do
8051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8052 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8054 break 2
8056 done
8057 done
8058 IFS=$as_save_IFS
8062 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8063 if test -n "$DSYMUTIL"; then
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8065 $as_echo "$DSYMUTIL" >&6; }
8066 else
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8068 $as_echo "no" >&6; }
8073 if test -z "$ac_cv_prog_DSYMUTIL"; then
8074 ac_ct_DSYMUTIL=$DSYMUTIL
8075 # Extract the first word of "dsymutil", so it can be a program name with args.
8076 set dummy dsymutil; ac_word=$2
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8078 $as_echo_n "checking for $ac_word... " >&6; }
8079 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8080 $as_echo_n "(cached) " >&6
8081 else
8082 if test -n "$ac_ct_DSYMUTIL"; then
8083 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8084 else
8085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086 for as_dir in $PATH
8088 IFS=$as_save_IFS
8089 test -z "$as_dir" && as_dir=.
8090 for ac_exec_ext in '' $ac_executable_extensions; do
8091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8092 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8094 break 2
8096 done
8097 done
8098 IFS=$as_save_IFS
8102 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8103 if test -n "$ac_ct_DSYMUTIL"; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8105 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8106 else
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108 $as_echo "no" >&6; }
8111 if test "x$ac_ct_DSYMUTIL" = x; then
8112 DSYMUTIL=":"
8113 else
8114 case $cross_compiling:$ac_tool_warned in
8115 yes:)
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8118 ac_tool_warned=yes ;;
8119 esac
8120 DSYMUTIL=$ac_ct_DSYMUTIL
8122 else
8123 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8126 if test -n "$ac_tool_prefix"; then
8127 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8128 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8130 $as_echo_n "checking for $ac_word... " >&6; }
8131 if ${ac_cv_prog_NMEDIT+:} false; then :
8132 $as_echo_n "(cached) " >&6
8133 else
8134 if test -n "$NMEDIT"; then
8135 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8136 else
8137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138 for as_dir in $PATH
8140 IFS=$as_save_IFS
8141 test -z "$as_dir" && as_dir=.
8142 for ac_exec_ext in '' $ac_executable_extensions; do
8143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8144 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8146 break 2
8148 done
8149 done
8150 IFS=$as_save_IFS
8154 NMEDIT=$ac_cv_prog_NMEDIT
8155 if test -n "$NMEDIT"; then
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8157 $as_echo "$NMEDIT" >&6; }
8158 else
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160 $as_echo "no" >&6; }
8165 if test -z "$ac_cv_prog_NMEDIT"; then
8166 ac_ct_NMEDIT=$NMEDIT
8167 # Extract the first word of "nmedit", so it can be a program name with args.
8168 set dummy nmedit; ac_word=$2
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8170 $as_echo_n "checking for $ac_word... " >&6; }
8171 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8172 $as_echo_n "(cached) " >&6
8173 else
8174 if test -n "$ac_ct_NMEDIT"; then
8175 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8176 else
8177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178 for as_dir in $PATH
8180 IFS=$as_save_IFS
8181 test -z "$as_dir" && as_dir=.
8182 for ac_exec_ext in '' $ac_executable_extensions; do
8183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8184 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8186 break 2
8188 done
8189 done
8190 IFS=$as_save_IFS
8194 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8195 if test -n "$ac_ct_NMEDIT"; then
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8197 $as_echo "$ac_ct_NMEDIT" >&6; }
8198 else
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200 $as_echo "no" >&6; }
8203 if test "x$ac_ct_NMEDIT" = x; then
8204 NMEDIT=":"
8205 else
8206 case $cross_compiling:$ac_tool_warned in
8207 yes:)
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8210 ac_tool_warned=yes ;;
8211 esac
8212 NMEDIT=$ac_ct_NMEDIT
8214 else
8215 NMEDIT="$ac_cv_prog_NMEDIT"
8218 if test -n "$ac_tool_prefix"; then
8219 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8220 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8222 $as_echo_n "checking for $ac_word... " >&6; }
8223 if ${ac_cv_prog_LIPO+:} false; then :
8224 $as_echo_n "(cached) " >&6
8225 else
8226 if test -n "$LIPO"; then
8227 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8228 else
8229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230 for as_dir in $PATH
8232 IFS=$as_save_IFS
8233 test -z "$as_dir" && as_dir=.
8234 for ac_exec_ext in '' $ac_executable_extensions; do
8235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8236 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8238 break 2
8240 done
8241 done
8242 IFS=$as_save_IFS
8246 LIPO=$ac_cv_prog_LIPO
8247 if test -n "$LIPO"; then
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8249 $as_echo "$LIPO" >&6; }
8250 else
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8252 $as_echo "no" >&6; }
8257 if test -z "$ac_cv_prog_LIPO"; then
8258 ac_ct_LIPO=$LIPO
8259 # Extract the first word of "lipo", so it can be a program name with args.
8260 set dummy lipo; ac_word=$2
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8262 $as_echo_n "checking for $ac_word... " >&6; }
8263 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8264 $as_echo_n "(cached) " >&6
8265 else
8266 if test -n "$ac_ct_LIPO"; then
8267 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8268 else
8269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270 for as_dir in $PATH
8272 IFS=$as_save_IFS
8273 test -z "$as_dir" && as_dir=.
8274 for ac_exec_ext in '' $ac_executable_extensions; do
8275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8276 ac_cv_prog_ac_ct_LIPO="lipo"
8277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8278 break 2
8280 done
8281 done
8282 IFS=$as_save_IFS
8286 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8287 if test -n "$ac_ct_LIPO"; then
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8289 $as_echo "$ac_ct_LIPO" >&6; }
8290 else
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292 $as_echo "no" >&6; }
8295 if test "x$ac_ct_LIPO" = x; then
8296 LIPO=":"
8297 else
8298 case $cross_compiling:$ac_tool_warned in
8299 yes:)
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8302 ac_tool_warned=yes ;;
8303 esac
8304 LIPO=$ac_ct_LIPO
8306 else
8307 LIPO="$ac_cv_prog_LIPO"
8310 if test -n "$ac_tool_prefix"; then
8311 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8312 set dummy ${ac_tool_prefix}otool; ac_word=$2
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8314 $as_echo_n "checking for $ac_word... " >&6; }
8315 if ${ac_cv_prog_OTOOL+:} false; then :
8316 $as_echo_n "(cached) " >&6
8317 else
8318 if test -n "$OTOOL"; then
8319 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8320 else
8321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322 for as_dir in $PATH
8324 IFS=$as_save_IFS
8325 test -z "$as_dir" && as_dir=.
8326 for ac_exec_ext in '' $ac_executable_extensions; do
8327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8328 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8330 break 2
8332 done
8333 done
8334 IFS=$as_save_IFS
8338 OTOOL=$ac_cv_prog_OTOOL
8339 if test -n "$OTOOL"; then
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8341 $as_echo "$OTOOL" >&6; }
8342 else
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8344 $as_echo "no" >&6; }
8349 if test -z "$ac_cv_prog_OTOOL"; then
8350 ac_ct_OTOOL=$OTOOL
8351 # Extract the first word of "otool", so it can be a program name with args.
8352 set dummy otool; ac_word=$2
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8354 $as_echo_n "checking for $ac_word... " >&6; }
8355 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8356 $as_echo_n "(cached) " >&6
8357 else
8358 if test -n "$ac_ct_OTOOL"; then
8359 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8360 else
8361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362 for as_dir in $PATH
8364 IFS=$as_save_IFS
8365 test -z "$as_dir" && as_dir=.
8366 for ac_exec_ext in '' $ac_executable_extensions; do
8367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8368 ac_cv_prog_ac_ct_OTOOL="otool"
8369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8370 break 2
8372 done
8373 done
8374 IFS=$as_save_IFS
8378 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8379 if test -n "$ac_ct_OTOOL"; then
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8381 $as_echo "$ac_ct_OTOOL" >&6; }
8382 else
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8384 $as_echo "no" >&6; }
8387 if test "x$ac_ct_OTOOL" = x; then
8388 OTOOL=":"
8389 else
8390 case $cross_compiling:$ac_tool_warned in
8391 yes:)
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8394 ac_tool_warned=yes ;;
8395 esac
8396 OTOOL=$ac_ct_OTOOL
8398 else
8399 OTOOL="$ac_cv_prog_OTOOL"
8402 if test -n "$ac_tool_prefix"; then
8403 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8404 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8406 $as_echo_n "checking for $ac_word... " >&6; }
8407 if ${ac_cv_prog_OTOOL64+:} false; then :
8408 $as_echo_n "(cached) " >&6
8409 else
8410 if test -n "$OTOOL64"; then
8411 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8412 else
8413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8414 for as_dir in $PATH
8416 IFS=$as_save_IFS
8417 test -z "$as_dir" && as_dir=.
8418 for ac_exec_ext in '' $ac_executable_extensions; do
8419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8420 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8422 break 2
8424 done
8425 done
8426 IFS=$as_save_IFS
8430 OTOOL64=$ac_cv_prog_OTOOL64
8431 if test -n "$OTOOL64"; then
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8433 $as_echo "$OTOOL64" >&6; }
8434 else
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8436 $as_echo "no" >&6; }
8441 if test -z "$ac_cv_prog_OTOOL64"; then
8442 ac_ct_OTOOL64=$OTOOL64
8443 # Extract the first word of "otool64", so it can be a program name with args.
8444 set dummy otool64; ac_word=$2
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8446 $as_echo_n "checking for $ac_word... " >&6; }
8447 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8448 $as_echo_n "(cached) " >&6
8449 else
8450 if test -n "$ac_ct_OTOOL64"; then
8451 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8452 else
8453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8454 for as_dir in $PATH
8456 IFS=$as_save_IFS
8457 test -z "$as_dir" && as_dir=.
8458 for ac_exec_ext in '' $ac_executable_extensions; do
8459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8460 ac_cv_prog_ac_ct_OTOOL64="otool64"
8461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8462 break 2
8464 done
8465 done
8466 IFS=$as_save_IFS
8470 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8471 if test -n "$ac_ct_OTOOL64"; then
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8473 $as_echo "$ac_ct_OTOOL64" >&6; }
8474 else
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8476 $as_echo "no" >&6; }
8479 if test "x$ac_ct_OTOOL64" = x; then
8480 OTOOL64=":"
8481 else
8482 case $cross_compiling:$ac_tool_warned in
8483 yes:)
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8486 ac_tool_warned=yes ;;
8487 esac
8488 OTOOL64=$ac_ct_OTOOL64
8490 else
8491 OTOOL64="$ac_cv_prog_OTOOL64"
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8521 $as_echo_n "checking for -single_module linker flag... " >&6; }
8522 if ${lt_cv_apple_cc_single_mod+:} false; then :
8523 $as_echo_n "(cached) " >&6
8524 else
8525 lt_cv_apple_cc_single_mod=no
8526 if test -z "${LT_MULTI_MODULE}"; then
8527 # By default we will add the -single_module flag. You can override
8528 # by either setting the environment variable LT_MULTI_MODULE
8529 # non-empty at configure time, or by adding -multi_module to the
8530 # link flags.
8531 rm -rf libconftest.dylib*
8532 echo "int foo(void){return 1;}" > conftest.c
8533 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8534 -dynamiclib -Wl,-single_module conftest.c" >&5
8535 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8536 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8537 _lt_result=$?
8538 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8539 lt_cv_apple_cc_single_mod=yes
8540 else
8541 cat conftest.err >&5
8543 rm -rf libconftest.dylib*
8544 rm -f conftest.*
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8548 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8550 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8551 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8552 $as_echo_n "(cached) " >&6
8553 else
8554 lt_cv_ld_exported_symbols_list=no
8555 save_LDFLAGS=$LDFLAGS
8556 echo "_main" > conftest.sym
8557 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559 /* end confdefs.h. */
8562 main ()
8566 return 0;
8568 _ACEOF
8569 if ac_fn_c_try_link "$LINENO"; then :
8570 lt_cv_ld_exported_symbols_list=yes
8571 else
8572 lt_cv_ld_exported_symbols_list=no
8574 rm -f core conftest.err conftest.$ac_objext \
8575 conftest$ac_exeext conftest.$ac_ext
8576 LDFLAGS="$save_LDFLAGS"
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8580 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8582 $as_echo_n "checking for -force_load linker flag... " >&6; }
8583 if ${lt_cv_ld_force_load+:} false; then :
8584 $as_echo_n "(cached) " >&6
8585 else
8586 lt_cv_ld_force_load=no
8587 cat > conftest.c << _LT_EOF
8588 int forced_loaded() { return 2;}
8589 _LT_EOF
8590 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8591 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8592 echo "$AR cru libconftest.a conftest.o" >&5
8593 $AR cru libconftest.a conftest.o 2>&5
8594 cat > conftest.c << _LT_EOF
8595 int main() { return 0;}
8596 _LT_EOF
8597 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8598 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8599 _lt_result=$?
8600 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8601 lt_cv_ld_force_load=yes
8602 else
8603 cat conftest.err >&5
8605 rm -f conftest.err libconftest.a conftest conftest.c
8606 rm -rf conftest.dSYM
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8610 $as_echo "$lt_cv_ld_force_load" >&6; }
8611 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8612 # build without first building modern cctools / linker.
8613 case $host_cpu-$host_os in
8614 *-rhapsody* | *-darwin1.[012])
8615 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8616 *-darwin1.*)
8617 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8618 *-darwin*)
8619 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8620 # deployment target is forced to an earlier version.
8621 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8622 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8624 10.[012][,.]*)
8625 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8629 esac
8631 esac
8632 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8633 _lt_dar_single_mod='$single_module'
8635 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8636 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8637 else
8638 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8640 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8641 _lt_dsymutil='~$DSYMUTIL $lib || :'
8642 else
8643 _lt_dsymutil=
8646 esac
8648 for ac_header in dlfcn.h
8649 do :
8650 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8652 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8653 cat >>confdefs.h <<_ACEOF
8654 #define HAVE_DLFCN_H 1
8655 _ACEOF
8659 done
8665 # Set options
8669 enable_dlopen=no
8672 enable_win32_dll=no
8675 # Check whether --enable-shared was given.
8676 if test "${enable_shared+set}" = set; then :
8677 enableval=$enable_shared; p=${PACKAGE-default}
8678 case $enableval in
8679 yes) enable_shared=yes ;;
8680 no) enable_shared=no ;;
8682 enable_shared=no
8683 # Look at the argument we got. We use all the common list separators.
8684 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8685 for pkg in $enableval; do
8686 IFS="$lt_save_ifs"
8687 if test "X$pkg" = "X$p"; then
8688 enable_shared=yes
8690 done
8691 IFS="$lt_save_ifs"
8693 esac
8694 else
8695 enable_shared=yes
8706 # Check whether --enable-static was given.
8707 if test "${enable_static+set}" = set; then :
8708 enableval=$enable_static; p=${PACKAGE-default}
8709 case $enableval in
8710 yes) enable_static=yes ;;
8711 no) enable_static=no ;;
8713 enable_static=no
8714 # Look at the argument we got. We use all the common list separators.
8715 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8716 for pkg in $enableval; do
8717 IFS="$lt_save_ifs"
8718 if test "X$pkg" = "X$p"; then
8719 enable_static=yes
8721 done
8722 IFS="$lt_save_ifs"
8724 esac
8725 else
8726 enable_static=yes
8738 # Check whether --with-pic was given.
8739 if test "${with_pic+set}" = set; then :
8740 withval=$with_pic; pic_mode="$withval"
8741 else
8742 pic_mode=default
8746 test -z "$pic_mode" && pic_mode=default
8754 # Check whether --enable-fast-install was given.
8755 if test "${enable_fast_install+set}" = set; then :
8756 enableval=$enable_fast_install; p=${PACKAGE-default}
8757 case $enableval in
8758 yes) enable_fast_install=yes ;;
8759 no) enable_fast_install=no ;;
8761 enable_fast_install=no
8762 # Look at the argument we got. We use all the common list separators.
8763 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8764 for pkg in $enableval; do
8765 IFS="$lt_save_ifs"
8766 if test "X$pkg" = "X$p"; then
8767 enable_fast_install=yes
8769 done
8770 IFS="$lt_save_ifs"
8772 esac
8773 else
8774 enable_fast_install=yes
8787 # This can be used to rebuild libtool when needed
8788 LIBTOOL_DEPS="$ltmain"
8790 # Always use our own libtool.
8791 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8818 test -z "$LN_S" && LN_S="ln -s"
8833 if test -n "${ZSH_VERSION+set}" ; then
8834 setopt NO_GLOB_SUBST
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8838 $as_echo_n "checking for objdir... " >&6; }
8839 if ${lt_cv_objdir+:} false; then :
8840 $as_echo_n "(cached) " >&6
8841 else
8842 rm -f .libs 2>/dev/null
8843 mkdir .libs 2>/dev/null
8844 if test -d .libs; then
8845 lt_cv_objdir=.libs
8846 else
8847 # MS-DOS does not allow filenames that begin with a dot.
8848 lt_cv_objdir=_libs
8850 rmdir .libs 2>/dev/null
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8853 $as_echo "$lt_cv_objdir" >&6; }
8854 objdir=$lt_cv_objdir
8860 cat >>confdefs.h <<_ACEOF
8861 #define LT_OBJDIR "$lt_cv_objdir/"
8862 _ACEOF
8867 case $host_os in
8868 aix3*)
8869 # AIX sometimes has problems with the GCC collect2 program. For some
8870 # reason, if we set the COLLECT_NAMES environment variable, the problems
8871 # vanish in a puff of smoke.
8872 if test "X${COLLECT_NAMES+set}" != Xset; then
8873 COLLECT_NAMES=
8874 export COLLECT_NAMES
8877 esac
8879 # Global variables:
8880 ofile=libtool
8881 can_build_shared=yes
8883 # All known linkers require a `.a' archive for static linking (except MSVC,
8884 # which needs '.lib').
8885 libext=a
8887 with_gnu_ld="$lt_cv_prog_gnu_ld"
8889 old_CC="$CC"
8890 old_CFLAGS="$CFLAGS"
8892 # Set sane defaults for various variables
8893 test -z "$CC" && CC=cc
8894 test -z "$LTCC" && LTCC=$CC
8895 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8896 test -z "$LD" && LD=ld
8897 test -z "$ac_objext" && ac_objext=o
8899 for cc_temp in $compiler""; do
8900 case $cc_temp in
8901 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8902 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8903 \-*) ;;
8904 *) break;;
8905 esac
8906 done
8907 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8910 # Only perform the check for file, if the check method requires it
8911 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8912 case $deplibs_check_method in
8913 file_magic*)
8914 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8916 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8917 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8918 $as_echo_n "(cached) " >&6
8919 else
8920 case $MAGIC_CMD in
8921 [\\/*] | ?:[\\/]*)
8922 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8925 lt_save_MAGIC_CMD="$MAGIC_CMD"
8926 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8927 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8928 for ac_dir in $ac_dummy; do
8929 IFS="$lt_save_ifs"
8930 test -z "$ac_dir" && ac_dir=.
8931 if test -f $ac_dir/${ac_tool_prefix}file; then
8932 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8933 if test -n "$file_magic_test_file"; then
8934 case $deplibs_check_method in
8935 "file_magic "*)
8936 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8937 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8938 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8939 $EGREP "$file_magic_regex" > /dev/null; then
8941 else
8942 cat <<_LT_EOF 1>&2
8944 *** Warning: the command libtool uses to detect shared libraries,
8945 *** $file_magic_cmd, produces output that libtool cannot recognize.
8946 *** The result is that libtool may fail to recognize shared libraries
8947 *** as such. This will affect the creation of libtool libraries that
8948 *** depend on shared libraries, but programs linked with such libtool
8949 *** libraries will work regardless of this problem. Nevertheless, you
8950 *** may want to report the problem to your system manager and/or to
8951 *** bug-libtool@gnu.org
8953 _LT_EOF
8954 fi ;;
8955 esac
8957 break
8959 done
8960 IFS="$lt_save_ifs"
8961 MAGIC_CMD="$lt_save_MAGIC_CMD"
8963 esac
8966 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8967 if test -n "$MAGIC_CMD"; then
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8969 $as_echo "$MAGIC_CMD" >&6; }
8970 else
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8972 $as_echo "no" >&6; }
8979 if test -z "$lt_cv_path_MAGIC_CMD"; then
8980 if test -n "$ac_tool_prefix"; then
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8982 $as_echo_n "checking for file... " >&6; }
8983 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8984 $as_echo_n "(cached) " >&6
8985 else
8986 case $MAGIC_CMD in
8987 [\\/*] | ?:[\\/]*)
8988 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8991 lt_save_MAGIC_CMD="$MAGIC_CMD"
8992 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8993 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8994 for ac_dir in $ac_dummy; do
8995 IFS="$lt_save_ifs"
8996 test -z "$ac_dir" && ac_dir=.
8997 if test -f $ac_dir/file; then
8998 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8999 if test -n "$file_magic_test_file"; then
9000 case $deplibs_check_method in
9001 "file_magic "*)
9002 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9003 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9004 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9005 $EGREP "$file_magic_regex" > /dev/null; then
9007 else
9008 cat <<_LT_EOF 1>&2
9010 *** Warning: the command libtool uses to detect shared libraries,
9011 *** $file_magic_cmd, produces output that libtool cannot recognize.
9012 *** The result is that libtool may fail to recognize shared libraries
9013 *** as such. This will affect the creation of libtool libraries that
9014 *** depend on shared libraries, but programs linked with such libtool
9015 *** libraries will work regardless of this problem. Nevertheless, you
9016 *** may want to report the problem to your system manager and/or to
9017 *** bug-libtool@gnu.org
9019 _LT_EOF
9020 fi ;;
9021 esac
9023 break
9025 done
9026 IFS="$lt_save_ifs"
9027 MAGIC_CMD="$lt_save_MAGIC_CMD"
9029 esac
9032 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9033 if test -n "$MAGIC_CMD"; then
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9035 $as_echo "$MAGIC_CMD" >&6; }
9036 else
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9038 $as_echo "no" >&6; }
9042 else
9043 MAGIC_CMD=:
9049 esac
9051 # Use C for the default configuration in the libtool script
9053 lt_save_CC="$CC"
9054 ac_ext=c
9055 ac_cpp='$CPP $CPPFLAGS'
9056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9061 # Source file extension for C test sources.
9062 ac_ext=c
9064 # Object file extension for compiled C test sources.
9065 objext=o
9066 objext=$objext
9068 # Code to be used in simple compile tests
9069 lt_simple_compile_test_code="int some_variable = 0;"
9071 # Code to be used in simple link tests
9072 lt_simple_link_test_code='int main(){return(0);}'
9080 # If no C compiler was specified, use CC.
9081 LTCC=${LTCC-"$CC"}
9083 # If no C compiler flags were specified, use CFLAGS.
9084 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9086 # Allow CC to be a program name with arguments.
9087 compiler=$CC
9089 # Save the default compiler, since it gets overwritten when the other
9090 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9091 compiler_DEFAULT=$CC
9093 # save warnings/boilerplate of simple test code
9094 ac_outfile=conftest.$ac_objext
9095 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9096 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9097 _lt_compiler_boilerplate=`cat conftest.err`
9098 $RM conftest*
9100 ac_outfile=conftest.$ac_objext
9101 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9102 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9103 _lt_linker_boilerplate=`cat conftest.err`
9104 $RM -r conftest*
9107 ## CAVEAT EMPTOR:
9108 ## There is no encapsulation within the following macros, do not change
9109 ## the running order or otherwise move them around unless you know exactly
9110 ## what you are doing...
9111 if test -n "$compiler"; then
9113 lt_prog_compiler_no_builtin_flag=
9115 if test "$GCC" = yes; then
9116 case $cc_basename in
9117 nvcc*)
9118 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9120 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9121 esac
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9124 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9125 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9126 $as_echo_n "(cached) " >&6
9127 else
9128 lt_cv_prog_compiler_rtti_exceptions=no
9129 ac_outfile=conftest.$ac_objext
9130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9131 lt_compiler_flag="-fno-rtti -fno-exceptions"
9132 # Insert the option either (1) after the last *FLAGS variable, or
9133 # (2) before a word containing "conftest.", or (3) at the end.
9134 # Note that $ac_compile itself does not contain backslashes and begins
9135 # with a dollar sign (not a hyphen), so the echo should work correctly.
9136 # The option is referenced via a variable to avoid confusing sed.
9137 lt_compile=`echo "$ac_compile" | $SED \
9138 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9139 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9140 -e 's:$: $lt_compiler_flag:'`
9141 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9142 (eval "$lt_compile" 2>conftest.err)
9143 ac_status=$?
9144 cat conftest.err >&5
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 if (exit $ac_status) && test -s "$ac_outfile"; then
9147 # The compiler can only warn and ignore the option if not recognized
9148 # So say no if there are warnings other than the usual output.
9149 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9150 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9151 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9152 lt_cv_prog_compiler_rtti_exceptions=yes
9155 $RM conftest*
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9159 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9161 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9162 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9163 else
9174 lt_prog_compiler_wl=
9175 lt_prog_compiler_pic=
9176 lt_prog_compiler_static=
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9179 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9181 if test "$GCC" = yes; then
9182 lt_prog_compiler_wl='-Wl,'
9183 lt_prog_compiler_static='-static'
9185 case $host_os in
9186 aix*)
9187 # All AIX code is PIC.
9188 if test "$host_cpu" = ia64; then
9189 # AIX 5 now supports IA64 processor
9190 lt_prog_compiler_static='-Bstatic'
9192 lt_prog_compiler_pic='-fPIC'
9195 amigaos*)
9196 case $host_cpu in
9197 powerpc)
9198 # see comment about AmigaOS4 .so support
9199 lt_prog_compiler_pic='-fPIC'
9201 m68k)
9202 # FIXME: we need at least 68020 code to build shared libraries, but
9203 # adding the `-m68020' flag to GCC prevents building anything better,
9204 # like `-m68040'.
9205 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9207 esac
9210 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9211 # PIC is the default for these OSes.
9214 mingw* | cygwin* | pw32* | os2* | cegcc*)
9215 # This hack is so that the source file can tell whether it is being
9216 # built for inclusion in a dll (and should export symbols for example).
9217 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9218 # (--disable-auto-import) libraries
9219 lt_prog_compiler_pic='-DDLL_EXPORT'
9222 darwin* | rhapsody*)
9223 # PIC is the default on this platform
9224 # Common symbols not allowed in MH_DYLIB files
9225 lt_prog_compiler_pic='-fno-common'
9228 haiku*)
9229 # PIC is the default for Haiku.
9230 # The "-static" flag exists, but is broken.
9231 lt_prog_compiler_static=
9234 hpux*)
9235 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9236 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9237 # sets the default TLS model and affects inlining.
9238 case $host_cpu in
9239 hppa*64*)
9240 # +Z the default
9243 lt_prog_compiler_pic='-fPIC'
9245 esac
9248 interix[3-9]*)
9249 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9250 # Instead, we relocate shared libraries at runtime.
9253 msdosdjgpp*)
9254 # Just because we use GCC doesn't mean we suddenly get shared libraries
9255 # on systems that don't support them.
9256 lt_prog_compiler_can_build_shared=no
9257 enable_shared=no
9260 *nto* | *qnx*)
9261 # QNX uses GNU C++, but need to define -shared option too, otherwise
9262 # it will coredump.
9263 lt_prog_compiler_pic='-fPIC -shared'
9266 sysv4*MP*)
9267 if test -d /usr/nec; then
9268 lt_prog_compiler_pic=-Kconform_pic
9273 lt_prog_compiler_pic='-fPIC'
9275 esac
9277 case $cc_basename in
9278 nvcc*) # Cuda Compiler Driver 2.2
9279 lt_prog_compiler_wl='-Xlinker '
9280 lt_prog_compiler_pic='-Xcompiler -fPIC'
9282 esac
9283 else
9284 # PORTME Check for flag to pass linker flags through the system compiler.
9285 case $host_os in
9286 aix*)
9287 lt_prog_compiler_wl='-Wl,'
9288 if test "$host_cpu" = ia64; then
9289 # AIX 5 now supports IA64 processor
9290 lt_prog_compiler_static='-Bstatic'
9291 else
9292 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9296 mingw* | cygwin* | pw32* | os2* | cegcc*)
9297 # This hack is so that the source file can tell whether it is being
9298 # built for inclusion in a dll (and should export symbols for example).
9299 lt_prog_compiler_pic='-DDLL_EXPORT'
9302 hpux9* | hpux10* | hpux11*)
9303 lt_prog_compiler_wl='-Wl,'
9304 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9305 # not for PA HP-UX.
9306 case $host_cpu in
9307 hppa*64*|ia64*)
9308 # +Z the default
9311 lt_prog_compiler_pic='+Z'
9313 esac
9314 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9315 lt_prog_compiler_static='${wl}-a ${wl}archive'
9318 irix5* | irix6* | nonstopux*)
9319 lt_prog_compiler_wl='-Wl,'
9320 # PIC (with -KPIC) is the default.
9321 lt_prog_compiler_static='-non_shared'
9324 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9325 case $cc_basename in
9326 # old Intel for x86_64 which still supported -KPIC.
9327 ecc*)
9328 lt_prog_compiler_wl='-Wl,'
9329 lt_prog_compiler_pic='-KPIC'
9330 lt_prog_compiler_static='-static'
9332 # icc used to be incompatible with GCC.
9333 # ICC 10 doesn't accept -KPIC any more.
9334 icc* | ifort*)
9335 lt_prog_compiler_wl='-Wl,'
9336 lt_prog_compiler_pic='-fPIC'
9337 lt_prog_compiler_static='-static'
9339 # Lahey Fortran 8.1.
9340 lf95*)
9341 lt_prog_compiler_wl='-Wl,'
9342 lt_prog_compiler_pic='--shared'
9343 lt_prog_compiler_static='--static'
9345 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9346 # Portland Group compilers (*not* the Pentium gcc compiler,
9347 # which looks to be a dead project)
9348 lt_prog_compiler_wl='-Wl,'
9349 lt_prog_compiler_pic='-fpic'
9350 lt_prog_compiler_static='-Bstatic'
9352 ccc*)
9353 lt_prog_compiler_wl='-Wl,'
9354 # All Alpha code is PIC.
9355 lt_prog_compiler_static='-non_shared'
9357 xl* | bgxl* | bgf* | mpixl*)
9358 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9359 lt_prog_compiler_wl='-Wl,'
9360 lt_prog_compiler_pic='-qpic'
9361 lt_prog_compiler_static='-qstaticlink'
9364 case `$CC -V 2>&1 | sed 5q` in
9365 *Sun\ F* | *Sun*Fortran*)
9366 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9367 lt_prog_compiler_pic='-KPIC'
9368 lt_prog_compiler_static='-Bstatic'
9369 lt_prog_compiler_wl=''
9371 *Sun\ C*)
9372 # Sun C 5.9
9373 lt_prog_compiler_pic='-KPIC'
9374 lt_prog_compiler_static='-Bstatic'
9375 lt_prog_compiler_wl='-Wl,'
9377 esac
9379 esac
9382 newsos6)
9383 lt_prog_compiler_pic='-KPIC'
9384 lt_prog_compiler_static='-Bstatic'
9387 *nto* | *qnx*)
9388 # QNX uses GNU C++, but need to define -shared option too, otherwise
9389 # it will coredump.
9390 lt_prog_compiler_pic='-fPIC -shared'
9393 osf3* | osf4* | osf5*)
9394 lt_prog_compiler_wl='-Wl,'
9395 # All OSF/1 code is PIC.
9396 lt_prog_compiler_static='-non_shared'
9399 rdos*)
9400 lt_prog_compiler_static='-non_shared'
9403 solaris*)
9404 lt_prog_compiler_pic='-KPIC'
9405 lt_prog_compiler_static='-Bstatic'
9406 case $cc_basename in
9407 f77* | f90* | f95*)
9408 lt_prog_compiler_wl='-Qoption ld ';;
9410 lt_prog_compiler_wl='-Wl,';;
9411 esac
9414 sunos4*)
9415 lt_prog_compiler_wl='-Qoption ld '
9416 lt_prog_compiler_pic='-PIC'
9417 lt_prog_compiler_static='-Bstatic'
9420 sysv4 | sysv4.2uw2* | sysv4.3*)
9421 lt_prog_compiler_wl='-Wl,'
9422 lt_prog_compiler_pic='-KPIC'
9423 lt_prog_compiler_static='-Bstatic'
9426 sysv4*MP*)
9427 if test -d /usr/nec ;then
9428 lt_prog_compiler_pic='-Kconform_pic'
9429 lt_prog_compiler_static='-Bstatic'
9433 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9434 lt_prog_compiler_wl='-Wl,'
9435 lt_prog_compiler_pic='-KPIC'
9436 lt_prog_compiler_static='-Bstatic'
9439 unicos*)
9440 lt_prog_compiler_wl='-Wl,'
9441 lt_prog_compiler_can_build_shared=no
9444 uts4*)
9445 lt_prog_compiler_pic='-pic'
9446 lt_prog_compiler_static='-Bstatic'
9450 lt_prog_compiler_can_build_shared=no
9452 esac
9455 case $host_os in
9456 # For platforms which do not support PIC, -DPIC is meaningless:
9457 *djgpp*)
9458 lt_prog_compiler_pic=
9461 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9463 esac
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9465 $as_echo "$lt_prog_compiler_pic" >&6; }
9473 # Check to make sure the PIC flag actually works.
9475 if test -n "$lt_prog_compiler_pic"; then
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9477 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9478 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9479 $as_echo_n "(cached) " >&6
9480 else
9481 lt_cv_prog_compiler_pic_works=no
9482 ac_outfile=conftest.$ac_objext
9483 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9484 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9485 # Insert the option either (1) after the last *FLAGS variable, or
9486 # (2) before a word containing "conftest.", or (3) at the end.
9487 # Note that $ac_compile itself does not contain backslashes and begins
9488 # with a dollar sign (not a hyphen), so the echo should work correctly.
9489 # The option is referenced via a variable to avoid confusing sed.
9490 lt_compile=`echo "$ac_compile" | $SED \
9491 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9492 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9493 -e 's:$: $lt_compiler_flag:'`
9494 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9495 (eval "$lt_compile" 2>conftest.err)
9496 ac_status=$?
9497 cat conftest.err >&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 if (exit $ac_status) && test -s "$ac_outfile"; then
9500 # The compiler can only warn and ignore the option if not recognized
9501 # So say no if there are warnings other than the usual output.
9502 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9503 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9504 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9505 lt_cv_prog_compiler_pic_works=yes
9508 $RM conftest*
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9512 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9514 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9515 case $lt_prog_compiler_pic in
9516 "" | " "*) ;;
9517 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9518 esac
9519 else
9520 lt_prog_compiler_pic=
9521 lt_prog_compiler_can_build_shared=no
9532 # Check to make sure the static flag actually works.
9534 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9536 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9537 if ${lt_cv_prog_compiler_static_works+:} false; then :
9538 $as_echo_n "(cached) " >&6
9539 else
9540 lt_cv_prog_compiler_static_works=no
9541 save_LDFLAGS="$LDFLAGS"
9542 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9543 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9544 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9545 # The linker can only warn and ignore the option if not recognized
9546 # So say no if there are warnings
9547 if test -s conftest.err; then
9548 # Append any errors to the config.log.
9549 cat conftest.err 1>&5
9550 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9551 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9552 if diff conftest.exp conftest.er2 >/dev/null; then
9553 lt_cv_prog_compiler_static_works=yes
9555 else
9556 lt_cv_prog_compiler_static_works=yes
9559 $RM -r conftest*
9560 LDFLAGS="$save_LDFLAGS"
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9564 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9566 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9568 else
9569 lt_prog_compiler_static=
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9579 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9580 if ${lt_cv_prog_compiler_c_o+:} false; then :
9581 $as_echo_n "(cached) " >&6
9582 else
9583 lt_cv_prog_compiler_c_o=no
9584 $RM -r conftest 2>/dev/null
9585 mkdir conftest
9586 cd conftest
9587 mkdir out
9588 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9590 lt_compiler_flag="-o out/conftest2.$ac_objext"
9591 # Insert the option either (1) after the last *FLAGS variable, or
9592 # (2) before a word containing "conftest.", or (3) at the end.
9593 # Note that $ac_compile itself does not contain backslashes and begins
9594 # with a dollar sign (not a hyphen), so the echo should work correctly.
9595 lt_compile=`echo "$ac_compile" | $SED \
9596 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9598 -e 's:$: $lt_compiler_flag:'`
9599 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9600 (eval "$lt_compile" 2>out/conftest.err)
9601 ac_status=$?
9602 cat out/conftest.err >&5
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9605 then
9606 # The compiler can only warn and ignore the option if not recognized
9607 # So say no if there are warnings
9608 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9609 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9610 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9611 lt_cv_prog_compiler_c_o=yes
9614 chmod u+w . 2>&5
9615 $RM conftest*
9616 # SGI C++ compiler will create directory out/ii_files/ for
9617 # template instantiation
9618 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9619 $RM out/* && rmdir out
9620 cd ..
9621 $RM -r conftest
9622 $RM conftest*
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9626 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9634 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9635 if ${lt_cv_prog_compiler_c_o+:} false; then :
9636 $as_echo_n "(cached) " >&6
9637 else
9638 lt_cv_prog_compiler_c_o=no
9639 $RM -r conftest 2>/dev/null
9640 mkdir conftest
9641 cd conftest
9642 mkdir out
9643 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9645 lt_compiler_flag="-o out/conftest2.$ac_objext"
9646 # Insert the option either (1) after the last *FLAGS variable, or
9647 # (2) before a word containing "conftest.", or (3) at the end.
9648 # Note that $ac_compile itself does not contain backslashes and begins
9649 # with a dollar sign (not a hyphen), so the echo should work correctly.
9650 lt_compile=`echo "$ac_compile" | $SED \
9651 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9653 -e 's:$: $lt_compiler_flag:'`
9654 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9655 (eval "$lt_compile" 2>out/conftest.err)
9656 ac_status=$?
9657 cat out/conftest.err >&5
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9660 then
9661 # The compiler can only warn and ignore the option if not recognized
9662 # So say no if there are warnings
9663 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9664 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9665 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9666 lt_cv_prog_compiler_c_o=yes
9669 chmod u+w . 2>&5
9670 $RM conftest*
9671 # SGI C++ compiler will create directory out/ii_files/ for
9672 # template instantiation
9673 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9674 $RM out/* && rmdir out
9675 cd ..
9676 $RM -r conftest
9677 $RM conftest*
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9681 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9686 hard_links="nottested"
9687 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9688 # do not overwrite the value of need_locks provided by the user
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9690 $as_echo_n "checking if we can lock with hard links... " >&6; }
9691 hard_links=yes
9692 $RM conftest*
9693 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9694 touch conftest.a
9695 ln conftest.a conftest.b 2>&5 || hard_links=no
9696 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9698 $as_echo "$hard_links" >&6; }
9699 if test "$hard_links" = no; then
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9701 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9702 need_locks=warn
9704 else
9705 need_locks=no
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9714 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9716 runpath_var=
9717 allow_undefined_flag=
9718 always_export_symbols=no
9719 archive_cmds=
9720 archive_expsym_cmds=
9721 compiler_needs_object=no
9722 enable_shared_with_static_runtimes=no
9723 export_dynamic_flag_spec=
9724 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9725 hardcode_automatic=no
9726 hardcode_direct=no
9727 hardcode_direct_absolute=no
9728 hardcode_libdir_flag_spec=
9729 hardcode_libdir_flag_spec_ld=
9730 hardcode_libdir_separator=
9731 hardcode_minus_L=no
9732 hardcode_shlibpath_var=unsupported
9733 inherit_rpath=no
9734 link_all_deplibs=unknown
9735 module_cmds=
9736 module_expsym_cmds=
9737 old_archive_from_new_cmds=
9738 old_archive_from_expsyms_cmds=
9739 thread_safe_flag_spec=
9740 whole_archive_flag_spec=
9741 # include_expsyms should be a list of space-separated symbols to be *always*
9742 # included in the symbol list
9743 include_expsyms=
9744 # exclude_expsyms can be an extended regexp of symbols to exclude
9745 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9746 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9747 # as well as any symbol that contains `d'.
9748 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9749 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9750 # platforms (ab)use it in PIC code, but their linkers get confused if
9751 # the symbol is explicitly referenced. Since portable code cannot
9752 # rely on this symbol name, it's probably fine to never include it in
9753 # preloaded symbol tables.
9754 # Exclude shared library initialization/finalization symbols.
9755 extract_expsyms_cmds=
9757 case $host_os in
9758 cygwin* | mingw* | pw32* | cegcc*)
9759 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9760 # When not using gcc, we currently assume that we are using
9761 # Microsoft Visual C++.
9762 if test "$GCC" != yes; then
9763 with_gnu_ld=no
9766 interix*)
9767 # we just hope/assume this is gcc and not c89 (= MSVC++)
9768 with_gnu_ld=yes
9770 openbsd*)
9771 with_gnu_ld=no
9773 esac
9775 ld_shlibs=yes
9777 # On some targets, GNU ld is compatible enough with the native linker
9778 # that we're better off using the native interface for both.
9779 lt_use_gnu_ld_interface=no
9780 if test "$with_gnu_ld" = yes; then
9781 case $host_os in
9782 aix*)
9783 # The AIX port of GNU ld has always aspired to compatibility
9784 # with the native linker. However, as the warning in the GNU ld
9785 # block says, versions before 2.19.5* couldn't really create working
9786 # shared libraries, regardless of the interface used.
9787 case `$LD -v 2>&1` in
9788 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9789 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9790 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9792 lt_use_gnu_ld_interface=yes
9794 esac
9797 lt_use_gnu_ld_interface=yes
9799 esac
9802 if test "$lt_use_gnu_ld_interface" = yes; then
9803 # If archive_cmds runs LD, not CC, wlarc should be empty
9804 wlarc='${wl}'
9806 # Set some defaults for GNU ld with shared library support. These
9807 # are reset later if shared libraries are not supported. Putting them
9808 # here allows them to be overridden if necessary.
9809 runpath_var=LD_RUN_PATH
9810 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9811 export_dynamic_flag_spec='${wl}--export-dynamic'
9812 # ancient GNU ld didn't support --whole-archive et. al.
9813 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9814 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9815 else
9816 whole_archive_flag_spec=
9818 supports_anon_versioning=no
9819 case `$LD -v 2>&1` in
9820 *GNU\ gold*) supports_anon_versioning=yes ;;
9821 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9822 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9823 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9824 *\ 2.11.*) ;; # other 2.11 versions
9825 *) supports_anon_versioning=yes ;;
9826 esac
9828 # See if GNU ld supports shared libraries.
9829 case $host_os in
9830 aix[3-9]*)
9831 # On AIX/PPC, the GNU linker is very broken
9832 if test "$host_cpu" != ia64; then
9833 ld_shlibs=no
9834 cat <<_LT_EOF 1>&2
9836 *** Warning: the GNU linker, at least up to release 2.19, is reported
9837 *** to be unable to reliably create shared libraries on AIX.
9838 *** Therefore, libtool is disabling shared libraries support. If you
9839 *** really care for shared libraries, you may want to install binutils
9840 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9841 *** You will then need to restart the configuration process.
9843 _LT_EOF
9847 amigaos*)
9848 case $host_cpu in
9849 powerpc)
9850 # see comment about AmigaOS4 .so support
9851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9852 archive_expsym_cmds=''
9854 m68k)
9855 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)'
9856 hardcode_libdir_flag_spec='-L$libdir'
9857 hardcode_minus_L=yes
9859 esac
9862 beos*)
9863 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9864 allow_undefined_flag=unsupported
9865 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9866 # support --undefined. This deserves some investigation. FIXME
9867 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9868 else
9869 ld_shlibs=no
9873 cygwin* | mingw* | pw32* | cegcc*)
9874 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9875 # as there is no search path for DLLs.
9876 hardcode_libdir_flag_spec='-L$libdir'
9877 export_dynamic_flag_spec='${wl}--export-all-symbols'
9878 allow_undefined_flag=unsupported
9879 always_export_symbols=no
9880 enable_shared_with_static_runtimes=yes
9881 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9883 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9884 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9885 # If the export-symbols file already is a .def file (1st line
9886 # is EXPORTS), use it as is; otherwise, prepend...
9887 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9888 cp $export_symbols $output_objdir/$soname.def;
9889 else
9890 echo EXPORTS > $output_objdir/$soname.def;
9891 cat $export_symbols >> $output_objdir/$soname.def;
9893 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9894 else
9895 ld_shlibs=no
9899 haiku*)
9900 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9901 link_all_deplibs=yes
9904 interix[3-9]*)
9905 hardcode_direct=no
9906 hardcode_shlibpath_var=no
9907 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9908 export_dynamic_flag_spec='${wl}-E'
9909 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9910 # Instead, shared libraries are loaded at an image base (0x10000000 by
9911 # default) and relocated if they conflict, which is a slow very memory
9912 # consuming and fragmenting process. To avoid this, we pick a random,
9913 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9914 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9915 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9916 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'
9919 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9920 tmp_diet=no
9921 if test "$host_os" = linux-dietlibc; then
9922 case $cc_basename in
9923 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9924 esac
9926 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9927 && test "$tmp_diet" = no
9928 then
9929 tmp_addflag=' $pic_flag'
9930 tmp_sharedflag='-shared'
9931 case $cc_basename,$host_cpu in
9932 pgcc*) # Portland Group C compiler
9933 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'
9934 tmp_addflag=' $pic_flag'
9936 pgf77* | pgf90* | pgf95* | pgfortran*)
9937 # Portland Group f77 and f90 compilers
9938 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'
9939 tmp_addflag=' $pic_flag -Mnomain' ;;
9940 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9941 tmp_addflag=' -i_dynamic' ;;
9942 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9943 tmp_addflag=' -i_dynamic -nofor_main' ;;
9944 ifc* | ifort*) # Intel Fortran compiler
9945 tmp_addflag=' -nofor_main' ;;
9946 lf95*) # Lahey Fortran 8.1
9947 whole_archive_flag_spec=
9948 tmp_sharedflag='--shared' ;;
9949 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9950 tmp_sharedflag='-qmkshrobj'
9951 tmp_addflag= ;;
9952 nvcc*) # Cuda Compiler Driver 2.2
9953 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'
9954 compiler_needs_object=yes
9956 esac
9957 case `$CC -V 2>&1 | sed 5q` in
9958 *Sun\ C*) # Sun C 5.9
9959 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'
9960 compiler_needs_object=yes
9961 tmp_sharedflag='-G' ;;
9962 *Sun\ F*) # Sun Fortran 8.3
9963 tmp_sharedflag='-G' ;;
9964 esac
9965 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9967 if test "x$supports_anon_versioning" = xyes; then
9968 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9969 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9970 echo "local: *; };" >> $output_objdir/$libname.ver~
9971 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9974 case $cc_basename in
9975 xlf* | bgf* | bgxlf* | mpixlf*)
9976 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9977 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9978 hardcode_libdir_flag_spec=
9979 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9980 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9981 if test "x$supports_anon_versioning" = xyes; then
9982 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9983 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9984 echo "local: *; };" >> $output_objdir/$libname.ver~
9985 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9988 esac
9989 else
9990 ld_shlibs=no
9994 netbsd*)
9995 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9996 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9997 wlarc=
9998 else
9999 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10000 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10004 solaris*)
10005 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10006 ld_shlibs=no
10007 cat <<_LT_EOF 1>&2
10009 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10010 *** create shared libraries on Solaris systems. Therefore, libtool
10011 *** is disabling shared libraries support. We urge you to upgrade GNU
10012 *** binutils to release 2.9.1 or newer. Another option is to modify
10013 *** your PATH or compiler configuration so that the native linker is
10014 *** used, and then restart.
10016 _LT_EOF
10017 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10018 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10019 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10020 else
10021 ld_shlibs=no
10025 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10026 case `$LD -v 2>&1` in
10027 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10028 ld_shlibs=no
10029 cat <<_LT_EOF 1>&2
10031 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10032 *** reliably create shared libraries on SCO systems. Therefore, libtool
10033 *** is disabling shared libraries support. We urge you to upgrade GNU
10034 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10035 *** your PATH or compiler configuration so that the native linker is
10036 *** used, and then restart.
10038 _LT_EOF
10041 # For security reasons, it is highly recommended that you always
10042 # use absolute paths for naming shared libraries, and exclude the
10043 # DT_RUNPATH tag from executables and libraries. But doing so
10044 # requires that you compile everything twice, which is a pain.
10045 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10046 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10048 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10049 else
10050 ld_shlibs=no
10053 esac
10056 sunos4*)
10057 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10058 wlarc=
10059 hardcode_direct=yes
10060 hardcode_shlibpath_var=no
10064 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10065 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10066 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10067 else
10068 ld_shlibs=no
10071 esac
10073 if test "$ld_shlibs" = no; then
10074 runpath_var=
10075 hardcode_libdir_flag_spec=
10076 export_dynamic_flag_spec=
10077 whole_archive_flag_spec=
10079 else
10080 # PORTME fill in a description of your system's linker (not GNU ld)
10081 case $host_os in
10082 aix3*)
10083 allow_undefined_flag=unsupported
10084 always_export_symbols=yes
10085 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'
10086 # Note: this linker hardcodes the directories in LIBPATH if there
10087 # are no directories specified by -L.
10088 hardcode_minus_L=yes
10089 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10090 # Neither direct hardcoding nor static linking is supported with a
10091 # broken collect2.
10092 hardcode_direct=unsupported
10096 aix[4-9]*)
10097 if test "$host_cpu" = ia64; then
10098 # On IA64, the linker does run time linking by default, so we don't
10099 # have to do anything special.
10100 aix_use_runtimelinking=no
10101 exp_sym_flag='-Bexport'
10102 no_entry_flag=""
10103 else
10104 # If we're using GNU nm, then we don't want the "-C" option.
10105 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10106 # Also, AIX nm treats weak defined symbols like other global
10107 # defined symbols, whereas GNU nm marks them as "W".
10108 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10109 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'
10110 else
10111 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'
10113 aix_use_runtimelinking=no
10115 # Test if we are trying to use run time linking or normal
10116 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10117 # need to do runtime linking.
10118 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10119 for ld_flag in $LDFLAGS; do
10120 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10121 aix_use_runtimelinking=yes
10122 break
10124 done
10126 esac
10128 exp_sym_flag='-bexport'
10129 no_entry_flag='-bnoentry'
10132 # When large executables or shared objects are built, AIX ld can
10133 # have problems creating the table of contents. If linking a library
10134 # or program results in "error TOC overflow" add -mminimal-toc to
10135 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10136 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10138 archive_cmds=''
10139 hardcode_direct=yes
10140 hardcode_direct_absolute=yes
10141 hardcode_libdir_separator=':'
10142 link_all_deplibs=yes
10143 file_list_spec='${wl}-f,'
10145 if test "$GCC" = yes; then
10146 case $host_os in aix4.[012]|aix4.[012].*)
10147 # We only want to do this on AIX 4.2 and lower, the check
10148 # below for broken collect2 doesn't work under 4.3+
10149 collect2name=`${CC} -print-prog-name=collect2`
10150 if test -f "$collect2name" &&
10151 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10152 then
10153 # We have reworked collect2
10155 else
10156 # We have old collect2
10157 hardcode_direct=unsupported
10158 # It fails to find uninstalled libraries when the uninstalled
10159 # path is not listed in the libpath. Setting hardcode_minus_L
10160 # to unsupported forces relinking
10161 hardcode_minus_L=yes
10162 hardcode_libdir_flag_spec='-L$libdir'
10163 hardcode_libdir_separator=
10166 esac
10167 shared_flag='-shared'
10168 if test "$aix_use_runtimelinking" = yes; then
10169 shared_flag="$shared_flag "'${wl}-G'
10171 else
10172 # not using gcc
10173 if test "$host_cpu" = ia64; then
10174 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10175 # chokes on -Wl,-G. The following line is correct:
10176 shared_flag='-G'
10177 else
10178 if test "$aix_use_runtimelinking" = yes; then
10179 shared_flag='${wl}-G'
10180 else
10181 shared_flag='${wl}-bM:SRE'
10186 export_dynamic_flag_spec='${wl}-bexpall'
10187 # It seems that -bexpall does not export symbols beginning with
10188 # underscore (_), so it is better to generate a list of symbols to export.
10189 always_export_symbols=yes
10190 if test "$aix_use_runtimelinking" = yes; then
10191 # Warning - without using the other runtime loading flags (-brtl),
10192 # -berok will link without error, but may produce a broken library.
10193 allow_undefined_flag='-berok'
10194 # Determine the default libpath from the value encoded in an
10195 # empty executable.
10196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10197 /* end confdefs.h. */
10200 main ()
10204 return 0;
10206 _ACEOF
10207 if ac_fn_c_try_link "$LINENO"; then :
10209 lt_aix_libpath_sed='
10210 /Import File Strings/,/^$/ {
10211 /^0/ {
10212 s/^0 *\(.*\)$/\1/
10216 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10217 # Check for a 64-bit object if we didn't find anything.
10218 if test -z "$aix_libpath"; then
10219 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10222 rm -f core conftest.err conftest.$ac_objext \
10223 conftest$ac_exeext conftest.$ac_ext
10224 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10226 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10227 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"
10228 else
10229 if test "$host_cpu" = ia64; then
10230 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10231 allow_undefined_flag="-z nodefs"
10232 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"
10233 else
10234 # Determine the default libpath from the value encoded in an
10235 # empty executable.
10236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10237 /* end confdefs.h. */
10240 main ()
10244 return 0;
10246 _ACEOF
10247 if ac_fn_c_try_link "$LINENO"; then :
10249 lt_aix_libpath_sed='
10250 /Import File Strings/,/^$/ {
10251 /^0/ {
10252 s/^0 *\(.*\)$/\1/
10256 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10257 # Check for a 64-bit object if we didn't find anything.
10258 if test -z "$aix_libpath"; then
10259 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10262 rm -f core conftest.err conftest.$ac_objext \
10263 conftest$ac_exeext conftest.$ac_ext
10264 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10266 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10267 # Warning - without using the other run time loading flags,
10268 # -berok will link without error, but may produce a broken library.
10269 no_undefined_flag=' ${wl}-bernotok'
10270 allow_undefined_flag=' ${wl}-berok'
10271 if test "$with_gnu_ld" = yes; then
10272 # We only use this code for GNU lds that support --whole-archive.
10273 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10274 else
10275 # Exported symbols can be pulled into shared objects from archives
10276 whole_archive_flag_spec='$convenience'
10278 archive_cmds_need_lc=yes
10279 # This is similar to how AIX traditionally builds its shared libraries.
10280 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'
10285 amigaos*)
10286 case $host_cpu in
10287 powerpc)
10288 # see comment about AmigaOS4 .so support
10289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10290 archive_expsym_cmds=''
10292 m68k)
10293 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)'
10294 hardcode_libdir_flag_spec='-L$libdir'
10295 hardcode_minus_L=yes
10297 esac
10300 bsdi[45]*)
10301 export_dynamic_flag_spec=-rdynamic
10304 cygwin* | mingw* | pw32* | cegcc*)
10305 # When not using gcc, we currently assume that we are using
10306 # Microsoft Visual C++.
10307 # hardcode_libdir_flag_spec is actually meaningless, as there is
10308 # no search path for DLLs.
10309 hardcode_libdir_flag_spec=' '
10310 allow_undefined_flag=unsupported
10311 # Tell ltmain to make .lib files, not .a files.
10312 libext=lib
10313 # Tell ltmain to make .dll files, not .so files.
10314 shrext_cmds=".dll"
10315 # FIXME: Setting linknames here is a bad hack.
10316 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10317 # The linker will automatically build a .lib file if we build a DLL.
10318 old_archive_from_new_cmds='true'
10319 # FIXME: Should let the user specify the lib program.
10320 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10321 fix_srcfile_path='`cygpath -w "$srcfile"`'
10322 enable_shared_with_static_runtimes=yes
10325 darwin* | rhapsody*)
10328 archive_cmds_need_lc=no
10329 hardcode_direct=no
10330 hardcode_automatic=yes
10331 hardcode_shlibpath_var=unsupported
10332 if test "$lt_cv_ld_force_load" = "yes"; then
10333 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\"`'
10334 else
10335 whole_archive_flag_spec=''
10337 link_all_deplibs=yes
10338 allow_undefined_flag="$_lt_dar_allow_undefined"
10339 case $cc_basename in
10340 ifort*) _lt_dar_can_shared=yes ;;
10341 *) _lt_dar_can_shared=$GCC ;;
10342 esac
10343 if test "$_lt_dar_can_shared" = "yes"; then
10344 output_verbose_link_cmd=func_echo_all
10345 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10346 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10347 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}"
10348 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}"
10350 else
10351 ld_shlibs=no
10356 dgux*)
10357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10358 hardcode_libdir_flag_spec='-L$libdir'
10359 hardcode_shlibpath_var=no
10362 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10363 # support. Future versions do this automatically, but an explicit c++rt0.o
10364 # does not break anything, and helps significantly (at the cost of a little
10365 # extra space).
10366 freebsd2.2*)
10367 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10368 hardcode_libdir_flag_spec='-R$libdir'
10369 hardcode_direct=yes
10370 hardcode_shlibpath_var=no
10373 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10374 freebsd2.*)
10375 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10376 hardcode_direct=yes
10377 hardcode_minus_L=yes
10378 hardcode_shlibpath_var=no
10381 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10382 freebsd* | dragonfly*)
10383 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10384 hardcode_libdir_flag_spec='-R$libdir'
10385 hardcode_direct=yes
10386 hardcode_shlibpath_var=no
10389 hpux9*)
10390 if test "$GCC" = yes; then
10391 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'
10392 else
10393 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'
10395 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10396 hardcode_libdir_separator=:
10397 hardcode_direct=yes
10399 # hardcode_minus_L: Not really in the search PATH,
10400 # but as the default location of the library.
10401 hardcode_minus_L=yes
10402 export_dynamic_flag_spec='${wl}-E'
10405 hpux10*)
10406 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10407 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10408 else
10409 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10411 if test "$with_gnu_ld" = no; then
10412 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10413 hardcode_libdir_flag_spec_ld='+b $libdir'
10414 hardcode_libdir_separator=:
10415 hardcode_direct=yes
10416 hardcode_direct_absolute=yes
10417 export_dynamic_flag_spec='${wl}-E'
10418 # hardcode_minus_L: Not really in the search PATH,
10419 # but as the default location of the library.
10420 hardcode_minus_L=yes
10424 hpux11*)
10425 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10426 case $host_cpu in
10427 hppa*64*)
10428 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10430 ia64*)
10431 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10434 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10436 esac
10437 else
10438 case $host_cpu in
10439 hppa*64*)
10440 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10442 ia64*)
10443 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10447 # Older versions of the 11.00 compiler do not understand -b yet
10448 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10450 $as_echo_n "checking if $CC understands -b... " >&6; }
10451 if ${lt_cv_prog_compiler__b+:} false; then :
10452 $as_echo_n "(cached) " >&6
10453 else
10454 lt_cv_prog_compiler__b=no
10455 save_LDFLAGS="$LDFLAGS"
10456 LDFLAGS="$LDFLAGS -b"
10457 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10458 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10459 # The linker can only warn and ignore the option if not recognized
10460 # So say no if there are warnings
10461 if test -s conftest.err; then
10462 # Append any errors to the config.log.
10463 cat conftest.err 1>&5
10464 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10465 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10466 if diff conftest.exp conftest.er2 >/dev/null; then
10467 lt_cv_prog_compiler__b=yes
10469 else
10470 lt_cv_prog_compiler__b=yes
10473 $RM -r conftest*
10474 LDFLAGS="$save_LDFLAGS"
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10478 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10480 if test x"$lt_cv_prog_compiler__b" = xyes; then
10481 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10482 else
10483 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10487 esac
10489 if test "$with_gnu_ld" = no; then
10490 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10491 hardcode_libdir_separator=:
10493 case $host_cpu in
10494 hppa*64*|ia64*)
10495 hardcode_direct=no
10496 hardcode_shlibpath_var=no
10499 hardcode_direct=yes
10500 hardcode_direct_absolute=yes
10501 export_dynamic_flag_spec='${wl}-E'
10503 # hardcode_minus_L: Not really in the search PATH,
10504 # but as the default location of the library.
10505 hardcode_minus_L=yes
10507 esac
10511 irix5* | irix6* | nonstopux*)
10512 if test "$GCC" = yes; then
10513 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'
10514 # Try to use the -exported_symbol ld option, if it does not
10515 # work, assume that -exports_file does not work either and
10516 # implicitly export all symbols.
10517 save_LDFLAGS="$LDFLAGS"
10518 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h. */
10521 int foo(void) {}
10522 _ACEOF
10523 if ac_fn_c_try_link "$LINENO"; then :
10524 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'
10527 rm -f core conftest.err conftest.$ac_objext \
10528 conftest$ac_exeext conftest.$ac_ext
10529 LDFLAGS="$save_LDFLAGS"
10530 else
10531 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'
10532 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'
10534 archive_cmds_need_lc='no'
10535 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10536 hardcode_libdir_separator=:
10537 inherit_rpath=yes
10538 link_all_deplibs=yes
10541 netbsd*)
10542 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10543 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10544 else
10545 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10547 hardcode_libdir_flag_spec='-R$libdir'
10548 hardcode_direct=yes
10549 hardcode_shlibpath_var=no
10552 newsos6)
10553 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10554 hardcode_direct=yes
10555 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10556 hardcode_libdir_separator=:
10557 hardcode_shlibpath_var=no
10560 *nto* | *qnx*)
10563 openbsd*)
10564 if test -f /usr/libexec/ld.so; then
10565 hardcode_direct=yes
10566 hardcode_shlibpath_var=no
10567 hardcode_direct_absolute=yes
10568 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10569 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10570 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10571 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10572 export_dynamic_flag_spec='${wl}-E'
10573 else
10574 case $host_os in
10575 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10576 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10577 hardcode_libdir_flag_spec='-R$libdir'
10580 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10581 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10583 esac
10585 else
10586 ld_shlibs=no
10590 os2*)
10591 hardcode_libdir_flag_spec='-L$libdir'
10592 hardcode_minus_L=yes
10593 allow_undefined_flag=unsupported
10594 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'
10595 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10598 osf3*)
10599 if test "$GCC" = yes; then
10600 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10601 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'
10602 else
10603 allow_undefined_flag=' -expect_unresolved \*'
10604 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'
10606 archive_cmds_need_lc='no'
10607 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10608 hardcode_libdir_separator=:
10611 osf4* | osf5*) # as osf3* with the addition of -msym flag
10612 if test "$GCC" = yes; then
10613 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10614 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'
10615 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10616 else
10617 allow_undefined_flag=' -expect_unresolved \*'
10618 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'
10619 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~
10620 $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'
10622 # Both c and cxx compiler support -rpath directly
10623 hardcode_libdir_flag_spec='-rpath $libdir'
10625 archive_cmds_need_lc='no'
10626 hardcode_libdir_separator=:
10629 solaris*)
10630 no_undefined_flag=' -z defs'
10631 if test "$GCC" = yes; then
10632 wlarc='${wl}'
10633 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10634 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10635 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10636 else
10637 case `$CC -V 2>&1` in
10638 *"Compilers 5.0"*)
10639 wlarc=''
10640 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10641 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10642 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10645 wlarc='${wl}'
10646 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10647 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10648 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10650 esac
10652 hardcode_libdir_flag_spec='-R$libdir'
10653 hardcode_shlibpath_var=no
10654 case $host_os in
10655 solaris2.[0-5] | solaris2.[0-5].*) ;;
10657 # The compiler driver will combine and reorder linker options,
10658 # but understands `-z linker_flag'. GCC discards it without `$wl',
10659 # but is careful enough not to reorder.
10660 # Supported since Solaris 2.6 (maybe 2.5.1?)
10661 if test "$GCC" = yes; then
10662 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10663 else
10664 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10667 esac
10668 link_all_deplibs=yes
10671 sunos4*)
10672 if test "x$host_vendor" = xsequent; then
10673 # Use $CC to link under sequent, because it throws in some extra .o
10674 # files that make .init and .fini sections work.
10675 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10676 else
10677 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10679 hardcode_libdir_flag_spec='-L$libdir'
10680 hardcode_direct=yes
10681 hardcode_minus_L=yes
10682 hardcode_shlibpath_var=no
10685 sysv4)
10686 case $host_vendor in
10687 sni)
10688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10689 hardcode_direct=yes # is this really true???
10691 siemens)
10692 ## LD is ld it makes a PLAMLIB
10693 ## CC just makes a GrossModule.
10694 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10695 reload_cmds='$CC -r -o $output$reload_objs'
10696 hardcode_direct=no
10698 motorola)
10699 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10700 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10702 esac
10703 runpath_var='LD_RUN_PATH'
10704 hardcode_shlibpath_var=no
10707 sysv4.3*)
10708 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10709 hardcode_shlibpath_var=no
10710 export_dynamic_flag_spec='-Bexport'
10713 sysv4*MP*)
10714 if test -d /usr/nec; then
10715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10716 hardcode_shlibpath_var=no
10717 runpath_var=LD_RUN_PATH
10718 hardcode_runpath_var=yes
10719 ld_shlibs=yes
10723 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10724 no_undefined_flag='${wl}-z,text'
10725 archive_cmds_need_lc=no
10726 hardcode_shlibpath_var=no
10727 runpath_var='LD_RUN_PATH'
10729 if test "$GCC" = yes; then
10730 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10731 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10732 else
10733 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10734 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10738 sysv5* | sco3.2v5* | sco5v6*)
10739 # Note: We can NOT use -z defs as we might desire, because we do not
10740 # link with -lc, and that would cause any symbols used from libc to
10741 # always be unresolved, which means just about no library would
10742 # ever link correctly. If we're not using GNU ld we use -z text
10743 # though, which does catch some bad symbols but isn't as heavy-handed
10744 # as -z defs.
10745 no_undefined_flag='${wl}-z,text'
10746 allow_undefined_flag='${wl}-z,nodefs'
10747 archive_cmds_need_lc=no
10748 hardcode_shlibpath_var=no
10749 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10750 hardcode_libdir_separator=':'
10751 link_all_deplibs=yes
10752 export_dynamic_flag_spec='${wl}-Bexport'
10753 runpath_var='LD_RUN_PATH'
10755 if test "$GCC" = yes; then
10756 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10757 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10758 else
10759 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10760 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10764 uts4*)
10765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10766 hardcode_libdir_flag_spec='-L$libdir'
10767 hardcode_shlibpath_var=no
10771 ld_shlibs=no
10773 esac
10775 if test x$host_vendor = xsni; then
10776 case $host in
10777 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10778 export_dynamic_flag_spec='${wl}-Blargedynsym'
10780 esac
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10785 $as_echo "$ld_shlibs" >&6; }
10786 test "$ld_shlibs" = no && can_build_shared=no
10788 with_gnu_ld=$with_gnu_ld
10805 # Do we need to explicitly link libc?
10807 case "x$archive_cmds_need_lc" in
10808 x|xyes)
10809 # Assume -lc should be added
10810 archive_cmds_need_lc=yes
10812 if test "$enable_shared" = yes && test "$GCC" = yes; then
10813 case $archive_cmds in
10814 *'~'*)
10815 # FIXME: we may have to deal with multi-command sequences.
10817 '$CC '*)
10818 # Test whether the compiler implicitly links with -lc since on some
10819 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10820 # to ld, don't add -lc before -lgcc.
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10822 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10823 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10824 $as_echo_n "(cached) " >&6
10825 else
10826 $RM conftest*
10827 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10830 (eval $ac_compile) 2>&5
10831 ac_status=$?
10832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10833 test $ac_status = 0; } 2>conftest.err; then
10834 soname=conftest
10835 lib=conftest
10836 libobjs=conftest.$ac_objext
10837 deplibs=
10838 wl=$lt_prog_compiler_wl
10839 pic_flag=$lt_prog_compiler_pic
10840 compiler_flags=-v
10841 linker_flags=-v
10842 verstring=
10843 output_objdir=.
10844 libname=conftest
10845 lt_save_allow_undefined_flag=$allow_undefined_flag
10846 allow_undefined_flag=
10847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10848 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10849 ac_status=$?
10850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10851 test $ac_status = 0; }
10852 then
10853 lt_cv_archive_cmds_need_lc=no
10854 else
10855 lt_cv_archive_cmds_need_lc=yes
10857 allow_undefined_flag=$lt_save_allow_undefined_flag
10858 else
10859 cat conftest.err 1>&5
10861 $RM conftest*
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10865 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10866 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10868 esac
10871 esac
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11030 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11032 if test "$GCC" = yes; then
11033 case $host_os in
11034 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11035 *) lt_awk_arg="/^libraries:/" ;;
11036 esac
11037 case $host_os in
11038 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11039 *) lt_sed_strip_eq="s,=/,/,g" ;;
11040 esac
11041 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11042 case $lt_search_path_spec in
11043 *\;*)
11044 # if the path contains ";" then we assume it to be the separator
11045 # otherwise default to the standard path separator (i.e. ":") - it is
11046 # assumed that no part of a normal pathname contains ";" but that should
11047 # okay in the real world where ";" in dirpaths is itself problematic.
11048 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11051 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11053 esac
11054 # Ok, now we have the path, separated by spaces, we can step through it
11055 # and add multilib dir if necessary.
11056 lt_tmp_lt_search_path_spec=
11057 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11058 for lt_sys_path in $lt_search_path_spec; do
11059 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11060 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11061 else
11062 test -d "$lt_sys_path" && \
11063 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11065 done
11066 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11067 BEGIN {RS=" "; FS="/|\n";} {
11068 lt_foo="";
11069 lt_count=0;
11070 for (lt_i = NF; lt_i > 0; lt_i--) {
11071 if ($lt_i != "" && $lt_i != ".") {
11072 if ($lt_i == "..") {
11073 lt_count++;
11074 } else {
11075 if (lt_count == 0) {
11076 lt_foo="/" $lt_i lt_foo;
11077 } else {
11078 lt_count--;
11083 if (lt_foo != "") { lt_freq[lt_foo]++; }
11084 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11086 # AWK program above erroneously prepends '/' to C:/dos/paths
11087 # for these hosts.
11088 case $host_os in
11089 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11090 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11091 esac
11092 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11093 else
11094 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11096 library_names_spec=
11097 libname_spec='lib$name'
11098 soname_spec=
11099 shrext_cmds=".so"
11100 postinstall_cmds=
11101 postuninstall_cmds=
11102 finish_cmds=
11103 finish_eval=
11104 shlibpath_var=
11105 shlibpath_overrides_runpath=unknown
11106 version_type=none
11107 dynamic_linker="$host_os ld.so"
11108 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11109 need_lib_prefix=unknown
11110 hardcode_into_libs=no
11112 # when you set need_version to no, make sure it does not cause -set_version
11113 # flags to be left without arguments
11114 need_version=unknown
11116 case $host_os in
11117 aix3*)
11118 version_type=linux
11119 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11120 shlibpath_var=LIBPATH
11122 # AIX 3 has no versioning support, so we append a major version to the name.
11123 soname_spec='${libname}${release}${shared_ext}$major'
11126 aix[4-9]*)
11127 version_type=linux
11128 need_lib_prefix=no
11129 need_version=no
11130 hardcode_into_libs=yes
11131 if test "$host_cpu" = ia64; then
11132 # AIX 5 supports IA64
11133 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11134 shlibpath_var=LD_LIBRARY_PATH
11135 else
11136 # With GCC up to 2.95.x, collect2 would create an import file
11137 # for dependence libraries. The import file would start with
11138 # the line `#! .'. This would cause the generated library to
11139 # depend on `.', always an invalid library. This was fixed in
11140 # development snapshots of GCC prior to 3.0.
11141 case $host_os in
11142 aix4 | aix4.[01] | aix4.[01].*)
11143 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11144 echo ' yes '
11145 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11147 else
11148 can_build_shared=no
11151 esac
11152 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11153 # soname into executable. Probably we can add versioning support to
11154 # collect2, so additional links can be useful in future.
11155 if test "$aix_use_runtimelinking" = yes; then
11156 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11157 # instead of lib<name>.a to let people know that these are not
11158 # typical AIX shared libraries.
11159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11160 else
11161 # We preserve .a as extension for shared libraries through AIX4.2
11162 # and later when we are not doing run time linking.
11163 library_names_spec='${libname}${release}.a $libname.a'
11164 soname_spec='${libname}${release}${shared_ext}$major'
11166 shlibpath_var=LIBPATH
11170 amigaos*)
11171 case $host_cpu in
11172 powerpc)
11173 # Since July 2007 AmigaOS4 officially supports .so libraries.
11174 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11177 m68k)
11178 library_names_spec='$libname.ixlibrary $libname.a'
11179 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11180 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'
11182 esac
11185 beos*)
11186 library_names_spec='${libname}${shared_ext}'
11187 dynamic_linker="$host_os ld.so"
11188 shlibpath_var=LIBRARY_PATH
11191 bsdi[45]*)
11192 version_type=linux
11193 need_version=no
11194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11195 soname_spec='${libname}${release}${shared_ext}$major'
11196 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11197 shlibpath_var=LD_LIBRARY_PATH
11198 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11199 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11200 # the default ld.so.conf also contains /usr/contrib/lib and
11201 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11202 # libtool to hard-code these into programs
11205 cygwin* | mingw* | pw32* | cegcc*)
11206 version_type=windows
11207 shrext_cmds=".dll"
11208 need_version=no
11209 need_lib_prefix=no
11211 case $GCC,$host_os in
11212 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11213 library_names_spec='$libname.dll.a'
11214 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11215 postinstall_cmds='base_file=`basename \${file}`~
11216 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11217 dldir=$destdir/`dirname \$dlpath`~
11218 test -d \$dldir || mkdir -p \$dldir~
11219 $install_prog $dir/$dlname \$dldir/$dlname~
11220 chmod a+x \$dldir/$dlname~
11221 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11222 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11224 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11225 dlpath=$dir/\$dldll~
11226 $RM \$dlpath'
11227 shlibpath_overrides_runpath=yes
11229 case $host_os in
11230 cygwin*)
11231 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11232 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11234 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11236 mingw* | cegcc*)
11237 # MinGW DLLs use traditional 'lib' prefix
11238 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11240 pw32*)
11241 # pw32 DLLs use 'pw' prefix rather than 'lib'
11242 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11244 esac
11248 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11250 esac
11251 dynamic_linker='Win32 ld.exe'
11252 # FIXME: first we should search . and the directory the executable is in
11253 shlibpath_var=PATH
11256 darwin* | rhapsody*)
11257 dynamic_linker="$host_os dyld"
11258 version_type=darwin
11259 need_lib_prefix=no
11260 need_version=no
11261 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11262 soname_spec='${libname}${release}${major}$shared_ext'
11263 shlibpath_overrides_runpath=yes
11264 shlibpath_var=DYLD_LIBRARY_PATH
11265 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11267 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11268 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11271 dgux*)
11272 version_type=linux
11273 need_lib_prefix=no
11274 need_version=no
11275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11276 soname_spec='${libname}${release}${shared_ext}$major'
11277 shlibpath_var=LD_LIBRARY_PATH
11280 freebsd* | dragonfly*)
11281 # DragonFly does not have aout. When/if they implement a new
11282 # versioning mechanism, adjust this.
11283 if test -x /usr/bin/objformat; then
11284 objformat=`/usr/bin/objformat`
11285 else
11286 case $host_os in
11287 freebsd[23].*) objformat=aout ;;
11288 *) objformat=elf ;;
11289 esac
11291 version_type=freebsd-$objformat
11292 case $version_type in
11293 freebsd-elf*)
11294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11295 need_version=no
11296 need_lib_prefix=no
11298 freebsd-*)
11299 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11300 need_version=yes
11302 esac
11303 shlibpath_var=LD_LIBRARY_PATH
11304 case $host_os in
11305 freebsd2.*)
11306 shlibpath_overrides_runpath=yes
11308 freebsd3.[01]* | freebsdelf3.[01]*)
11309 shlibpath_overrides_runpath=yes
11310 hardcode_into_libs=yes
11312 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11313 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11314 shlibpath_overrides_runpath=no
11315 hardcode_into_libs=yes
11317 *) # from 4.6 on, and DragonFly
11318 shlibpath_overrides_runpath=yes
11319 hardcode_into_libs=yes
11321 esac
11324 haiku*)
11325 version_type=linux
11326 need_lib_prefix=no
11327 need_version=no
11328 dynamic_linker="$host_os runtime_loader"
11329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11330 soname_spec='${libname}${release}${shared_ext}$major'
11331 shlibpath_var=LIBRARY_PATH
11332 shlibpath_overrides_runpath=yes
11333 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11334 hardcode_into_libs=yes
11337 hpux9* | hpux10* | hpux11*)
11338 # Give a soname corresponding to the major version so that dld.sl refuses to
11339 # link against other versions.
11340 version_type=sunos
11341 need_lib_prefix=no
11342 need_version=no
11343 case $host_cpu in
11344 ia64*)
11345 shrext_cmds='.so'
11346 hardcode_into_libs=yes
11347 dynamic_linker="$host_os dld.so"
11348 shlibpath_var=LD_LIBRARY_PATH
11349 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11351 soname_spec='${libname}${release}${shared_ext}$major'
11352 if test "X$HPUX_IA64_MODE" = X32; then
11353 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11354 else
11355 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11357 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11359 hppa*64*)
11360 shrext_cmds='.sl'
11361 hardcode_into_libs=yes
11362 dynamic_linker="$host_os dld.sl"
11363 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11364 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11366 soname_spec='${libname}${release}${shared_ext}$major'
11367 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11368 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11371 shrext_cmds='.sl'
11372 dynamic_linker="$host_os dld.sl"
11373 shlibpath_var=SHLIB_PATH
11374 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11376 soname_spec='${libname}${release}${shared_ext}$major'
11378 esac
11379 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11380 postinstall_cmds='chmod 555 $lib'
11381 # or fails outright, so override atomically:
11382 install_override_mode=555
11385 interix[3-9]*)
11386 version_type=linux
11387 need_lib_prefix=no
11388 need_version=no
11389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11390 soname_spec='${libname}${release}${shared_ext}$major'
11391 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11392 shlibpath_var=LD_LIBRARY_PATH
11393 shlibpath_overrides_runpath=no
11394 hardcode_into_libs=yes
11397 irix5* | irix6* | nonstopux*)
11398 case $host_os in
11399 nonstopux*) version_type=nonstopux ;;
11401 if test "$lt_cv_prog_gnu_ld" = yes; then
11402 version_type=linux
11403 else
11404 version_type=irix
11405 fi ;;
11406 esac
11407 need_lib_prefix=no
11408 need_version=no
11409 soname_spec='${libname}${release}${shared_ext}$major'
11410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11411 case $host_os in
11412 irix5* | nonstopux*)
11413 libsuff= shlibsuff=
11416 case $LD in # libtool.m4 will add one of these switches to LD
11417 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11418 libsuff= shlibsuff= libmagic=32-bit;;
11419 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11420 libsuff=32 shlibsuff=N32 libmagic=N32;;
11421 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11422 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11423 *) libsuff= shlibsuff= libmagic=never-match;;
11424 esac
11426 esac
11427 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11428 shlibpath_overrides_runpath=no
11429 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11430 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11431 hardcode_into_libs=yes
11434 # No shared lib support for Linux oldld, aout, or coff.
11435 linux*oldld* | linux*aout* | linux*coff*)
11436 dynamic_linker=no
11439 # This must be Linux ELF.
11441 # uclinux* changes (here and below) have been submitted to the libtool
11442 # project, but have not yet been accepted: they are GCC-local changes
11443 # for the time being. (See
11444 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11445 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11446 version_type=linux
11447 need_lib_prefix=no
11448 need_version=no
11449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11450 soname_spec='${libname}${release}${shared_ext}$major'
11451 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11452 shlibpath_var=LD_LIBRARY_PATH
11453 shlibpath_overrides_runpath=no
11455 # Some binutils ld are patched to set DT_RUNPATH
11456 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11457 $as_echo_n "(cached) " >&6
11458 else
11459 lt_cv_shlibpath_overrides_runpath=no
11460 save_LDFLAGS=$LDFLAGS
11461 save_libdir=$libdir
11462 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11463 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11465 /* end confdefs.h. */
11468 main ()
11472 return 0;
11474 _ACEOF
11475 if ac_fn_c_try_link "$LINENO"; then :
11476 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11477 lt_cv_shlibpath_overrides_runpath=yes
11480 rm -f core conftest.err conftest.$ac_objext \
11481 conftest$ac_exeext conftest.$ac_ext
11482 LDFLAGS=$save_LDFLAGS
11483 libdir=$save_libdir
11487 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11489 # This implies no fast_install, which is unacceptable.
11490 # Some rework will be needed to allow for fast_install
11491 # before this can be enabled.
11492 hardcode_into_libs=yes
11494 # Append ld.so.conf contents to the search path
11495 if test -f /etc/ld.so.conf; then
11496 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' ' '`
11497 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11500 # We used to test for /lib/ld.so.1 and disable shared libraries on
11501 # powerpc, because MkLinux only supported shared libraries with the
11502 # GNU dynamic linker. Since this was broken with cross compilers,
11503 # most powerpc-linux boxes support dynamic linking these days and
11504 # people can always --disable-shared, the test was removed, and we
11505 # assume the GNU/Linux dynamic linker is in use.
11506 dynamic_linker='GNU/Linux ld.so'
11509 netbsd*)
11510 version_type=sunos
11511 need_lib_prefix=no
11512 need_version=no
11513 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11515 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11516 dynamic_linker='NetBSD (a.out) ld.so'
11517 else
11518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11519 soname_spec='${libname}${release}${shared_ext}$major'
11520 dynamic_linker='NetBSD ld.elf_so'
11522 shlibpath_var=LD_LIBRARY_PATH
11523 shlibpath_overrides_runpath=yes
11524 hardcode_into_libs=yes
11527 newsos6)
11528 version_type=linux
11529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11530 shlibpath_var=LD_LIBRARY_PATH
11531 shlibpath_overrides_runpath=yes
11534 *nto* | *qnx*)
11535 version_type=qnx
11536 need_lib_prefix=no
11537 need_version=no
11538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11539 soname_spec='${libname}${release}${shared_ext}$major'
11540 shlibpath_var=LD_LIBRARY_PATH
11541 shlibpath_overrides_runpath=no
11542 hardcode_into_libs=yes
11543 dynamic_linker='ldqnx.so'
11546 openbsd*)
11547 version_type=sunos
11548 sys_lib_dlsearch_path_spec="/usr/lib"
11549 need_lib_prefix=no
11550 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11551 case $host_os in
11552 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11553 *) need_version=no ;;
11554 esac
11555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11557 shlibpath_var=LD_LIBRARY_PATH
11558 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11559 case $host_os in
11560 openbsd2.[89] | openbsd2.[89].*)
11561 shlibpath_overrides_runpath=no
11564 shlibpath_overrides_runpath=yes
11566 esac
11567 else
11568 shlibpath_overrides_runpath=yes
11572 os2*)
11573 libname_spec='$name'
11574 shrext_cmds=".dll"
11575 need_lib_prefix=no
11576 library_names_spec='$libname${shared_ext} $libname.a'
11577 dynamic_linker='OS/2 ld.exe'
11578 shlibpath_var=LIBPATH
11581 osf3* | osf4* | osf5*)
11582 version_type=osf
11583 need_lib_prefix=no
11584 need_version=no
11585 soname_spec='${libname}${release}${shared_ext}$major'
11586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11587 shlibpath_var=LD_LIBRARY_PATH
11588 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11589 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11592 rdos*)
11593 dynamic_linker=no
11596 solaris*)
11597 version_type=linux
11598 need_lib_prefix=no
11599 need_version=no
11600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11601 soname_spec='${libname}${release}${shared_ext}$major'
11602 shlibpath_var=LD_LIBRARY_PATH
11603 shlibpath_overrides_runpath=yes
11604 hardcode_into_libs=yes
11605 # ldd complains unless libraries are executable
11606 postinstall_cmds='chmod +x $lib'
11609 sunos4*)
11610 version_type=sunos
11611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11612 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11613 shlibpath_var=LD_LIBRARY_PATH
11614 shlibpath_overrides_runpath=yes
11615 if test "$with_gnu_ld" = yes; then
11616 need_lib_prefix=no
11618 need_version=yes
11621 sysv4 | sysv4.3*)
11622 version_type=linux
11623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11624 soname_spec='${libname}${release}${shared_ext}$major'
11625 shlibpath_var=LD_LIBRARY_PATH
11626 case $host_vendor in
11627 sni)
11628 shlibpath_overrides_runpath=no
11629 need_lib_prefix=no
11630 runpath_var=LD_RUN_PATH
11632 siemens)
11633 need_lib_prefix=no
11635 motorola)
11636 need_lib_prefix=no
11637 need_version=no
11638 shlibpath_overrides_runpath=no
11639 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11641 esac
11644 sysv4*MP*)
11645 if test -d /usr/nec ;then
11646 version_type=linux
11647 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11648 soname_spec='$libname${shared_ext}.$major'
11649 shlibpath_var=LD_LIBRARY_PATH
11653 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11654 version_type=freebsd-elf
11655 need_lib_prefix=no
11656 need_version=no
11657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11658 soname_spec='${libname}${release}${shared_ext}$major'
11659 shlibpath_var=LD_LIBRARY_PATH
11660 shlibpath_overrides_runpath=yes
11661 hardcode_into_libs=yes
11662 if test "$with_gnu_ld" = yes; then
11663 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11664 else
11665 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11666 case $host_os in
11667 sco3.2v5*)
11668 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11670 esac
11672 sys_lib_dlsearch_path_spec='/usr/lib'
11675 tpf*)
11676 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11677 version_type=linux
11678 need_lib_prefix=no
11679 need_version=no
11680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11681 shlibpath_var=LD_LIBRARY_PATH
11682 shlibpath_overrides_runpath=no
11683 hardcode_into_libs=yes
11686 uts4*)
11687 version_type=linux
11688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11689 soname_spec='${libname}${release}${shared_ext}$major'
11690 shlibpath_var=LD_LIBRARY_PATH
11693 # Shared libraries for VwWorks, >= 7 only at this stage
11694 # and (fpic) still incompatible with "large" code models
11695 # in a few configurations. Only for RTP mode in any case,
11696 # and upon explicit request at configure time.
11697 vxworks7*)
11698 dynamic_linker=no
11699 case ${with_multisubdir}-${enable_shared} in
11700 *large*)
11702 *mrtp*-yes)
11703 version_type=linux
11704 need_lib_prefix=no
11705 need_version=no
11706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11707 soname_spec='${libname}${release}${shared_ext}$major'
11708 dynamic_linker="$host_os module_loader"
11710 esac
11713 dynamic_linker=no
11715 esac
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11717 $as_echo "$dynamic_linker" >&6; }
11718 test "$dynamic_linker" = no && can_build_shared=no
11720 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11721 if test "$GCC" = yes; then
11722 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11725 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11726 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11728 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11729 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11824 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11825 hardcode_action=
11826 if test -n "$hardcode_libdir_flag_spec" ||
11827 test -n "$runpath_var" ||
11828 test "X$hardcode_automatic" = "Xyes" ; then
11830 # We can hardcode non-existent directories.
11831 if test "$hardcode_direct" != no &&
11832 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11833 # have to relink, otherwise we might link with an installed library
11834 # when we should be linking with a yet-to-be-installed one
11835 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11836 test "$hardcode_minus_L" != no; then
11837 # Linking always hardcodes the temporary library directory.
11838 hardcode_action=relink
11839 else
11840 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11841 hardcode_action=immediate
11843 else
11844 # We cannot hardcode anything, or else we can only hardcode existing
11845 # directories.
11846 hardcode_action=unsupported
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11849 $as_echo "$hardcode_action" >&6; }
11851 if test "$hardcode_action" = relink ||
11852 test "$inherit_rpath" = yes; then
11853 # Fast installation is not supported
11854 enable_fast_install=no
11855 elif test "$shlibpath_overrides_runpath" = yes ||
11856 test "$enable_shared" = no; then
11857 # Fast installation is not necessary
11858 enable_fast_install=needless
11866 if test "x$enable_dlopen" != xyes; then
11867 enable_dlopen=unknown
11868 enable_dlopen_self=unknown
11869 enable_dlopen_self_static=unknown
11870 else
11871 lt_cv_dlopen=no
11872 lt_cv_dlopen_libs=
11874 case $host_os in
11875 beos*)
11876 lt_cv_dlopen="load_add_on"
11877 lt_cv_dlopen_libs=
11878 lt_cv_dlopen_self=yes
11881 mingw* | pw32* | cegcc*)
11882 lt_cv_dlopen="LoadLibrary"
11883 lt_cv_dlopen_libs=
11886 cygwin*)
11887 lt_cv_dlopen="dlopen"
11888 lt_cv_dlopen_libs=
11891 darwin*)
11892 # if libdl is installed we need to link against it
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11894 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11895 if ${ac_cv_lib_dl_dlopen+:} false; then :
11896 $as_echo_n "(cached) " >&6
11897 else
11898 ac_check_lib_save_LIBS=$LIBS
11899 LIBS="-ldl $LIBS"
11900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11901 /* end confdefs.h. */
11903 /* Override any GCC internal prototype to avoid an error.
11904 Use char because int might match the return type of a GCC
11905 builtin and then its argument prototype would still apply. */
11906 #ifdef __cplusplus
11907 extern "C"
11908 #endif
11909 char dlopen ();
11911 main ()
11913 return dlopen ();
11915 return 0;
11917 _ACEOF
11918 if ac_fn_c_try_link "$LINENO"; then :
11919 ac_cv_lib_dl_dlopen=yes
11920 else
11921 ac_cv_lib_dl_dlopen=no
11923 rm -f core conftest.err conftest.$ac_objext \
11924 conftest$ac_exeext conftest.$ac_ext
11925 LIBS=$ac_check_lib_save_LIBS
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11928 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11929 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11930 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11931 else
11933 lt_cv_dlopen="dyld"
11934 lt_cv_dlopen_libs=
11935 lt_cv_dlopen_self=yes
11942 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11943 if test "x$ac_cv_func_shl_load" = xyes; then :
11944 lt_cv_dlopen="shl_load"
11945 else
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11947 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11948 if ${ac_cv_lib_dld_shl_load+:} false; then :
11949 $as_echo_n "(cached) " >&6
11950 else
11951 ac_check_lib_save_LIBS=$LIBS
11952 LIBS="-ldld $LIBS"
11953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11954 /* end confdefs.h. */
11956 /* Override any GCC internal prototype to avoid an error.
11957 Use char because int might match the return type of a GCC
11958 builtin and then its argument prototype would still apply. */
11959 #ifdef __cplusplus
11960 extern "C"
11961 #endif
11962 char shl_load ();
11964 main ()
11966 return shl_load ();
11968 return 0;
11970 _ACEOF
11971 if ac_fn_c_try_link "$LINENO"; then :
11972 ac_cv_lib_dld_shl_load=yes
11973 else
11974 ac_cv_lib_dld_shl_load=no
11976 rm -f core conftest.err conftest.$ac_objext \
11977 conftest$ac_exeext conftest.$ac_ext
11978 LIBS=$ac_check_lib_save_LIBS
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11981 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11982 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11983 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11984 else
11985 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11986 if test "x$ac_cv_func_dlopen" = xyes; then :
11987 lt_cv_dlopen="dlopen"
11988 else
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11990 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11991 if ${ac_cv_lib_dl_dlopen+:} false; then :
11992 $as_echo_n "(cached) " >&6
11993 else
11994 ac_check_lib_save_LIBS=$LIBS
11995 LIBS="-ldl $LIBS"
11996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997 /* end confdefs.h. */
11999 /* Override any GCC internal prototype to avoid an error.
12000 Use char because int might match the return type of a GCC
12001 builtin and then its argument prototype would still apply. */
12002 #ifdef __cplusplus
12003 extern "C"
12004 #endif
12005 char dlopen ();
12007 main ()
12009 return dlopen ();
12011 return 0;
12013 _ACEOF
12014 if ac_fn_c_try_link "$LINENO"; then :
12015 ac_cv_lib_dl_dlopen=yes
12016 else
12017 ac_cv_lib_dl_dlopen=no
12019 rm -f core conftest.err conftest.$ac_objext \
12020 conftest$ac_exeext conftest.$ac_ext
12021 LIBS=$ac_check_lib_save_LIBS
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12024 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12025 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12026 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12027 else
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12029 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12030 if ${ac_cv_lib_svld_dlopen+:} false; then :
12031 $as_echo_n "(cached) " >&6
12032 else
12033 ac_check_lib_save_LIBS=$LIBS
12034 LIBS="-lsvld $LIBS"
12035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036 /* end confdefs.h. */
12038 /* Override any GCC internal prototype to avoid an error.
12039 Use char because int might match the return type of a GCC
12040 builtin and then its argument prototype would still apply. */
12041 #ifdef __cplusplus
12042 extern "C"
12043 #endif
12044 char dlopen ();
12046 main ()
12048 return dlopen ();
12050 return 0;
12052 _ACEOF
12053 if ac_fn_c_try_link "$LINENO"; then :
12054 ac_cv_lib_svld_dlopen=yes
12055 else
12056 ac_cv_lib_svld_dlopen=no
12058 rm -f core conftest.err conftest.$ac_objext \
12059 conftest$ac_exeext conftest.$ac_ext
12060 LIBS=$ac_check_lib_save_LIBS
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12063 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12064 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12065 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12066 else
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12068 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12069 if ${ac_cv_lib_dld_dld_link+:} false; then :
12070 $as_echo_n "(cached) " >&6
12071 else
12072 ac_check_lib_save_LIBS=$LIBS
12073 LIBS="-ldld $LIBS"
12074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12075 /* end confdefs.h. */
12077 /* Override any GCC internal prototype to avoid an error.
12078 Use char because int might match the return type of a GCC
12079 builtin and then its argument prototype would still apply. */
12080 #ifdef __cplusplus
12081 extern "C"
12082 #endif
12083 char dld_link ();
12085 main ()
12087 return dld_link ();
12089 return 0;
12091 _ACEOF
12092 if ac_fn_c_try_link "$LINENO"; then :
12093 ac_cv_lib_dld_dld_link=yes
12094 else
12095 ac_cv_lib_dld_dld_link=no
12097 rm -f core conftest.err conftest.$ac_objext \
12098 conftest$ac_exeext conftest.$ac_ext
12099 LIBS=$ac_check_lib_save_LIBS
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12102 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12103 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12104 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12123 esac
12125 if test "x$lt_cv_dlopen" != xno; then
12126 enable_dlopen=yes
12127 else
12128 enable_dlopen=no
12131 case $lt_cv_dlopen in
12132 dlopen)
12133 save_CPPFLAGS="$CPPFLAGS"
12134 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12136 save_LDFLAGS="$LDFLAGS"
12137 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12139 save_LIBS="$LIBS"
12140 LIBS="$lt_cv_dlopen_libs $LIBS"
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12143 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12144 if ${lt_cv_dlopen_self+:} false; then :
12145 $as_echo_n "(cached) " >&6
12146 else
12147 if test "$cross_compiling" = yes; then :
12148 lt_cv_dlopen_self=cross
12149 else
12150 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12151 lt_status=$lt_dlunknown
12152 cat > conftest.$ac_ext <<_LT_EOF
12153 #line 12153 "configure"
12154 #include "confdefs.h"
12156 #if HAVE_DLFCN_H
12157 #include <dlfcn.h>
12158 #endif
12160 #include <stdio.h>
12162 #ifdef RTLD_GLOBAL
12163 # define LT_DLGLOBAL RTLD_GLOBAL
12164 #else
12165 # ifdef DL_GLOBAL
12166 # define LT_DLGLOBAL DL_GLOBAL
12167 # else
12168 # define LT_DLGLOBAL 0
12169 # endif
12170 #endif
12172 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12173 find out it does not work in some platform. */
12174 #ifndef LT_DLLAZY_OR_NOW
12175 # ifdef RTLD_LAZY
12176 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12177 # else
12178 # ifdef DL_LAZY
12179 # define LT_DLLAZY_OR_NOW DL_LAZY
12180 # else
12181 # ifdef RTLD_NOW
12182 # define LT_DLLAZY_OR_NOW RTLD_NOW
12183 # else
12184 # ifdef DL_NOW
12185 # define LT_DLLAZY_OR_NOW DL_NOW
12186 # else
12187 # define LT_DLLAZY_OR_NOW 0
12188 # endif
12189 # endif
12190 # endif
12191 # endif
12192 #endif
12194 /* When -fvisbility=hidden is used, assume the code has been annotated
12195 correspondingly for the symbols needed. */
12196 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12197 void fnord () __attribute__((visibility("default")));
12198 #endif
12200 void fnord () { int i=42; }
12201 int main ()
12203 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12204 int status = $lt_dlunknown;
12206 if (self)
12208 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12209 else
12211 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12212 else puts (dlerror ());
12214 /* dlclose (self); */
12216 else
12217 puts (dlerror ());
12219 return status;
12221 _LT_EOF
12222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12223 (eval $ac_link) 2>&5
12224 ac_status=$?
12225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12226 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12227 (./conftest; exit; ) >&5 2>/dev/null
12228 lt_status=$?
12229 case x$lt_status in
12230 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12231 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12232 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12233 esac
12234 else :
12235 # compilation failed
12236 lt_cv_dlopen_self=no
12239 rm -fr conftest*
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12244 $as_echo "$lt_cv_dlopen_self" >&6; }
12246 if test "x$lt_cv_dlopen_self" = xyes; then
12247 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12249 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12250 if ${lt_cv_dlopen_self_static+:} false; then :
12251 $as_echo_n "(cached) " >&6
12252 else
12253 if test "$cross_compiling" = yes; then :
12254 lt_cv_dlopen_self_static=cross
12255 else
12256 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12257 lt_status=$lt_dlunknown
12258 cat > conftest.$ac_ext <<_LT_EOF
12259 #line 12259 "configure"
12260 #include "confdefs.h"
12262 #if HAVE_DLFCN_H
12263 #include <dlfcn.h>
12264 #endif
12266 #include <stdio.h>
12268 #ifdef RTLD_GLOBAL
12269 # define LT_DLGLOBAL RTLD_GLOBAL
12270 #else
12271 # ifdef DL_GLOBAL
12272 # define LT_DLGLOBAL DL_GLOBAL
12273 # else
12274 # define LT_DLGLOBAL 0
12275 # endif
12276 #endif
12278 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12279 find out it does not work in some platform. */
12280 #ifndef LT_DLLAZY_OR_NOW
12281 # ifdef RTLD_LAZY
12282 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12283 # else
12284 # ifdef DL_LAZY
12285 # define LT_DLLAZY_OR_NOW DL_LAZY
12286 # else
12287 # ifdef RTLD_NOW
12288 # define LT_DLLAZY_OR_NOW RTLD_NOW
12289 # else
12290 # ifdef DL_NOW
12291 # define LT_DLLAZY_OR_NOW DL_NOW
12292 # else
12293 # define LT_DLLAZY_OR_NOW 0
12294 # endif
12295 # endif
12296 # endif
12297 # endif
12298 #endif
12300 /* When -fvisbility=hidden is used, assume the code has been annotated
12301 correspondingly for the symbols needed. */
12302 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12303 void fnord () __attribute__((visibility("default")));
12304 #endif
12306 void fnord () { int i=42; }
12307 int main ()
12309 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12310 int status = $lt_dlunknown;
12312 if (self)
12314 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12315 else
12317 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12318 else puts (dlerror ());
12320 /* dlclose (self); */
12322 else
12323 puts (dlerror ());
12325 return status;
12327 _LT_EOF
12328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12329 (eval $ac_link) 2>&5
12330 ac_status=$?
12331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12332 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12333 (./conftest; exit; ) >&5 2>/dev/null
12334 lt_status=$?
12335 case x$lt_status in
12336 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12337 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12338 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12339 esac
12340 else :
12341 # compilation failed
12342 lt_cv_dlopen_self_static=no
12345 rm -fr conftest*
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12350 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12353 CPPFLAGS="$save_CPPFLAGS"
12354 LDFLAGS="$save_LDFLAGS"
12355 LIBS="$save_LIBS"
12357 esac
12359 case $lt_cv_dlopen_self in
12360 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12361 *) enable_dlopen_self=unknown ;;
12362 esac
12364 case $lt_cv_dlopen_self_static in
12365 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12366 *) enable_dlopen_self_static=unknown ;;
12367 esac
12386 striplib=
12387 old_striplib=
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12389 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12390 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12391 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12392 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12394 $as_echo "yes" >&6; }
12395 else
12396 # FIXME - insert some real tests, host_os isn't really good enough
12397 case $host_os in
12398 darwin*)
12399 if test -n "$STRIP" ; then
12400 striplib="$STRIP -x"
12401 old_striplib="$STRIP -S"
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12403 $as_echo "yes" >&6; }
12404 else
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12406 $as_echo "no" >&6; }
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12411 $as_echo "no" >&6; }
12413 esac
12427 # Report which library types will actually be built
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12429 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12431 $as_echo "$can_build_shared" >&6; }
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12434 $as_echo_n "checking whether to build shared libraries... " >&6; }
12435 test "$can_build_shared" = "no" && enable_shared=no
12437 # On AIX, shared libraries and static libraries use the same namespace, and
12438 # are all built from PIC.
12439 case $host_os in
12440 aix3*)
12441 test "$enable_shared" = yes && enable_static=no
12442 if test -n "$RANLIB"; then
12443 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12444 postinstall_cmds='$RANLIB $lib'
12448 aix[4-9]*)
12449 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12450 test "$enable_shared" = yes && enable_static=no
12453 esac
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12455 $as_echo "$enable_shared" >&6; }
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12458 $as_echo_n "checking whether to build static libraries... " >&6; }
12459 # Make sure either enable_shared or enable_static is yes.
12460 test "$enable_shared" = yes || enable_static=yes
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12462 $as_echo "$enable_static" >&6; }
12468 ac_ext=c
12469 ac_cpp='$CPP $CPPFLAGS'
12470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12474 CC="$lt_save_CC"
12488 ac_config_commands="$ac_config_commands libtool"
12493 # Only expand once:
12499 case $host in
12500 *-cygwin* | *-mingw*)
12501 # 'host' will be top-level target in the case of a target lib,
12502 # we must compare to with_cross_host to decide if this is a native
12503 # or cross-compiler and select where to install dlls appropriately.
12504 if test -n "$with_cross_host" &&
12505 test x"$with_cross_host" != x"no"; then
12506 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12507 else
12508 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12512 lt_host_flags=
12514 esac
12519 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
12520 case $ac_cv_c_int64_t in #(
12521 no|yes) ;; #(
12524 cat >>confdefs.h <<_ACEOF
12525 #define int64_t $ac_cv_c_int64_t
12526 _ACEOF
12528 esac
12530 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
12531 case $ac_cv_c_uint64_t in #(
12532 no|yes) ;; #(
12535 $as_echo "#define _UINT64_T 1" >>confdefs.h
12538 cat >>confdefs.h <<_ACEOF
12539 #define uint64_t $ac_cv_c_uint64_t
12540 _ACEOF
12542 esac
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12545 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12546 if ${ac_cv_header_sys_wait_h+:} false; then :
12547 $as_echo_n "(cached) " >&6
12548 else
12549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12550 /* end confdefs.h. */
12551 #include <sys/types.h>
12552 #include <sys/wait.h>
12553 #ifndef WEXITSTATUS
12554 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12555 #endif
12556 #ifndef WIFEXITED
12557 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12558 #endif
12561 main ()
12563 int s;
12564 wait (&s);
12565 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12567 return 0;
12569 _ACEOF
12570 if ac_fn_c_try_compile "$LINENO"; then :
12571 ac_cv_header_sys_wait_h=yes
12572 else
12573 ac_cv_header_sys_wait_h=no
12575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12578 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12579 if test $ac_cv_header_sys_wait_h = yes; then
12581 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12585 ac_config_files="$ac_config_files Makefile"
12587 ac_config_headers="$ac_config_headers config.h"
12589 cat >confcache <<\_ACEOF
12590 # This file is a shell script that caches the results of configure
12591 # tests run on this system so they can be shared between configure
12592 # scripts and configure runs, see configure's option --config-cache.
12593 # It is not useful on other systems. If it contains results you don't
12594 # want to keep, you may remove or edit it.
12596 # config.status only pays attention to the cache file if you give it
12597 # the --recheck option to rerun configure.
12599 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12600 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12601 # following values.
12603 _ACEOF
12605 # The following way of writing the cache mishandles newlines in values,
12606 # but we know of no workaround that is simple, portable, and efficient.
12607 # So, we kill variables containing newlines.
12608 # Ultrix sh set writes to stderr and can't be redirected directly,
12609 # and sets the high bit in the cache file unless we assign to the vars.
12611 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12612 eval ac_val=\$$ac_var
12613 case $ac_val in #(
12614 *${as_nl}*)
12615 case $ac_var in #(
12616 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12617 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12618 esac
12619 case $ac_var in #(
12620 _ | IFS | as_nl) ;; #(
12621 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12622 *) { eval $ac_var=; unset $ac_var;} ;;
12623 esac ;;
12624 esac
12625 done
12627 (set) 2>&1 |
12628 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12629 *${as_nl}ac_space=\ *)
12630 # `set' does not quote correctly, so add quotes: double-quote
12631 # substitution turns \\\\ into \\, and sed turns \\ into \.
12632 sed -n \
12633 "s/'/'\\\\''/g;
12634 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12635 ;; #(
12637 # `set' quotes correctly as required by POSIX, so do not add quotes.
12638 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12640 esac |
12641 sort
12643 sed '
12644 /^ac_cv_env_/b end
12645 t clear
12646 :clear
12647 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12648 t end
12649 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12650 :end' >>confcache
12651 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12652 if test -w "$cache_file"; then
12653 if test "x$cache_file" != "x/dev/null"; then
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12655 $as_echo "$as_me: updating cache $cache_file" >&6;}
12656 if test ! -f "$cache_file" || test -h "$cache_file"; then
12657 cat confcache >"$cache_file"
12658 else
12659 case $cache_file in #(
12660 */* | ?:*)
12661 mv -f confcache "$cache_file"$$ &&
12662 mv -f "$cache_file"$$ "$cache_file" ;; #(
12664 mv -f confcache "$cache_file" ;;
12665 esac
12668 else
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12670 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12673 rm -f confcache
12675 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12676 # Let make expand exec_prefix.
12677 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12679 DEFS=-DHAVE_CONFIG_H
12681 ac_libobjs=
12682 ac_ltlibobjs=
12684 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12685 # 1. Remove the extension, and $U if already installed.
12686 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12687 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12688 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12689 # will be set to the directory where LIBOBJS objects are built.
12690 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12691 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12692 done
12693 LIBOBJS=$ac_libobjs
12695 LTLIBOBJS=$ac_ltlibobjs
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12699 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12700 if test -n "$am_sleep_pid"; then
12701 # Hide warnings about reused PIDs.
12702 wait $am_sleep_pid 2>/dev/null
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12705 $as_echo "done" >&6; }
12706 if test -n "$EXEEXT"; then
12707 am__EXEEXT_TRUE=
12708 am__EXEEXT_FALSE='#'
12709 else
12710 am__EXEEXT_TRUE='#'
12711 am__EXEEXT_FALSE=
12714 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12715 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12718 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12719 as_fn_error $? "conditional \"AMDEP\" was never defined.
12720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12722 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12723 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12726 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12727 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12730 if test -z "${LTO_PLUGIN_USE_SYMVER_TRUE}" && test -z "${LTO_PLUGIN_USE_SYMVER_FALSE}"; then
12731 as_fn_error $? "conditional \"LTO_PLUGIN_USE_SYMVER\" was never defined.
12732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12734 if test -z "${LTO_PLUGIN_USE_SYMVER_GNU_TRUE}" && test -z "${LTO_PLUGIN_USE_SYMVER_GNU_FALSE}"; then
12735 as_fn_error $? "conditional \"LTO_PLUGIN_USE_SYMVER_GNU\" was never defined.
12736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12738 if test -z "${LTO_PLUGIN_USE_SYMVER_SUN_TRUE}" && test -z "${LTO_PLUGIN_USE_SYMVER_SUN_FALSE}"; then
12739 as_fn_error $? "conditional \"LTO_PLUGIN_USE_SYMVER_SUN\" was never defined.
12740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12743 : "${CONFIG_STATUS=./config.status}"
12744 ac_write_fail=0
12745 ac_clean_files_save=$ac_clean_files
12746 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12748 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12749 as_write_fail=0
12750 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12751 #! $SHELL
12752 # Generated by $as_me.
12753 # Run this file to recreate the current configuration.
12754 # Compiler output produced by configure, useful for debugging
12755 # configure, is in config.log if it exists.
12757 debug=false
12758 ac_cs_recheck=false
12759 ac_cs_silent=false
12761 SHELL=\${CONFIG_SHELL-$SHELL}
12762 export SHELL
12763 _ASEOF
12764 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12765 ## -------------------- ##
12766 ## M4sh Initialization. ##
12767 ## -------------------- ##
12769 # Be more Bourne compatible
12770 DUALCASE=1; export DUALCASE # for MKS sh
12771 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12772 emulate sh
12773 NULLCMD=:
12774 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12775 # is contrary to our usage. Disable this feature.
12776 alias -g '${1+"$@"}'='"$@"'
12777 setopt NO_GLOB_SUBST
12778 else
12779 case `(set -o) 2>/dev/null` in #(
12780 *posix*) :
12781 set -o posix ;; #(
12782 *) :
12784 esac
12788 as_nl='
12790 export as_nl
12791 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12792 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12793 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12794 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12795 # Prefer a ksh shell builtin over an external printf program on Solaris,
12796 # but without wasting forks for bash or zsh.
12797 if test -z "$BASH_VERSION$ZSH_VERSION" \
12798 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12799 as_echo='print -r --'
12800 as_echo_n='print -rn --'
12801 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12802 as_echo='printf %s\n'
12803 as_echo_n='printf %s'
12804 else
12805 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12806 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12807 as_echo_n='/usr/ucb/echo -n'
12808 else
12809 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12810 as_echo_n_body='eval
12811 arg=$1;
12812 case $arg in #(
12813 *"$as_nl"*)
12814 expr "X$arg" : "X\\(.*\\)$as_nl";
12815 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12816 esac;
12817 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12819 export as_echo_n_body
12820 as_echo_n='sh -c $as_echo_n_body as_echo'
12822 export as_echo_body
12823 as_echo='sh -c $as_echo_body as_echo'
12826 # The user is always right.
12827 if test "${PATH_SEPARATOR+set}" != set; then
12828 PATH_SEPARATOR=:
12829 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12830 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12831 PATH_SEPARATOR=';'
12836 # IFS
12837 # We need space, tab and new line, in precisely that order. Quoting is
12838 # there to prevent editors from complaining about space-tab.
12839 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12840 # splitting by setting IFS to empty value.)
12841 IFS=" "" $as_nl"
12843 # Find who we are. Look in the path if we contain no directory separator.
12844 as_myself=
12845 case $0 in #((
12846 *[\\/]* ) as_myself=$0 ;;
12847 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12848 for as_dir in $PATH
12850 IFS=$as_save_IFS
12851 test -z "$as_dir" && as_dir=.
12852 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12853 done
12854 IFS=$as_save_IFS
12857 esac
12858 # We did not find ourselves, most probably we were run as `sh COMMAND'
12859 # in which case we are not to be found in the path.
12860 if test "x$as_myself" = x; then
12861 as_myself=$0
12863 if test ! -f "$as_myself"; then
12864 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12865 exit 1
12868 # Unset variables that we do not need and which cause bugs (e.g. in
12869 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12870 # suppresses any "Segmentation fault" message there. '((' could
12871 # trigger a bug in pdksh 5.2.14.
12872 for as_var in BASH_ENV ENV MAIL MAILPATH
12873 do eval test x\${$as_var+set} = xset \
12874 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12875 done
12876 PS1='$ '
12877 PS2='> '
12878 PS4='+ '
12880 # NLS nuisances.
12881 LC_ALL=C
12882 export LC_ALL
12883 LANGUAGE=C
12884 export LANGUAGE
12886 # CDPATH.
12887 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12890 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12891 # ----------------------------------------
12892 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12893 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12894 # script with STATUS, using 1 if that was 0.
12895 as_fn_error ()
12897 as_status=$1; test $as_status -eq 0 && as_status=1
12898 if test "$4"; then
12899 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12900 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12902 $as_echo "$as_me: error: $2" >&2
12903 as_fn_exit $as_status
12904 } # as_fn_error
12907 # as_fn_set_status STATUS
12908 # -----------------------
12909 # Set $? to STATUS, without forking.
12910 as_fn_set_status ()
12912 return $1
12913 } # as_fn_set_status
12915 # as_fn_exit STATUS
12916 # -----------------
12917 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12918 as_fn_exit ()
12920 set +e
12921 as_fn_set_status $1
12922 exit $1
12923 } # as_fn_exit
12925 # as_fn_unset VAR
12926 # ---------------
12927 # Portably unset VAR.
12928 as_fn_unset ()
12930 { eval $1=; unset $1;}
12932 as_unset=as_fn_unset
12933 # as_fn_append VAR VALUE
12934 # ----------------------
12935 # Append the text in VALUE to the end of the definition contained in VAR. Take
12936 # advantage of any shell optimizations that allow amortized linear growth over
12937 # repeated appends, instead of the typical quadratic growth present in naive
12938 # implementations.
12939 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12940 eval 'as_fn_append ()
12942 eval $1+=\$2
12944 else
12945 as_fn_append ()
12947 eval $1=\$$1\$2
12949 fi # as_fn_append
12951 # as_fn_arith ARG...
12952 # ------------------
12953 # Perform arithmetic evaluation on the ARGs, and store the result in the
12954 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12955 # must be portable across $(()) and expr.
12956 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12957 eval 'as_fn_arith ()
12959 as_val=$(( $* ))
12961 else
12962 as_fn_arith ()
12964 as_val=`expr "$@" || test $? -eq 1`
12966 fi # as_fn_arith
12969 if expr a : '\(a\)' >/dev/null 2>&1 &&
12970 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12971 as_expr=expr
12972 else
12973 as_expr=false
12976 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12977 as_basename=basename
12978 else
12979 as_basename=false
12982 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12983 as_dirname=dirname
12984 else
12985 as_dirname=false
12988 as_me=`$as_basename -- "$0" ||
12989 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12990 X"$0" : 'X\(//\)$' \| \
12991 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12992 $as_echo X/"$0" |
12993 sed '/^.*\/\([^/][^/]*\)\/*$/{
12994 s//\1/
12997 /^X\/\(\/\/\)$/{
12998 s//\1/
13001 /^X\/\(\/\).*/{
13002 s//\1/
13005 s/.*/./; q'`
13007 # Avoid depending upon Character Ranges.
13008 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13009 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13010 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13011 as_cr_digits='0123456789'
13012 as_cr_alnum=$as_cr_Letters$as_cr_digits
13014 ECHO_C= ECHO_N= ECHO_T=
13015 case `echo -n x` in #(((((
13016 -n*)
13017 case `echo 'xy\c'` in
13018 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13019 xy) ECHO_C='\c';;
13020 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13021 ECHO_T=' ';;
13022 esac;;
13024 ECHO_N='-n';;
13025 esac
13027 rm -f conf$$ conf$$.exe conf$$.file
13028 if test -d conf$$.dir; then
13029 rm -f conf$$.dir/conf$$.file
13030 else
13031 rm -f conf$$.dir
13032 mkdir conf$$.dir 2>/dev/null
13034 if (echo >conf$$.file) 2>/dev/null; then
13035 if ln -s conf$$.file conf$$ 2>/dev/null; then
13036 as_ln_s='ln -s'
13037 # ... but there are two gotchas:
13038 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13039 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13040 # In both cases, we have to default to `cp -pR'.
13041 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13042 as_ln_s='cp -pR'
13043 elif ln conf$$.file conf$$ 2>/dev/null; then
13044 as_ln_s=ln
13045 else
13046 as_ln_s='cp -pR'
13048 else
13049 as_ln_s='cp -pR'
13051 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13052 rmdir conf$$.dir 2>/dev/null
13055 # as_fn_mkdir_p
13056 # -------------
13057 # Create "$as_dir" as a directory, including parents if necessary.
13058 as_fn_mkdir_p ()
13061 case $as_dir in #(
13062 -*) as_dir=./$as_dir;;
13063 esac
13064 test -d "$as_dir" || eval $as_mkdir_p || {
13065 as_dirs=
13066 while :; do
13067 case $as_dir in #(
13068 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13069 *) as_qdir=$as_dir;;
13070 esac
13071 as_dirs="'$as_qdir' $as_dirs"
13072 as_dir=`$as_dirname -- "$as_dir" ||
13073 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13074 X"$as_dir" : 'X\(//\)[^/]' \| \
13075 X"$as_dir" : 'X\(//\)$' \| \
13076 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13077 $as_echo X"$as_dir" |
13078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13079 s//\1/
13082 /^X\(\/\/\)[^/].*/{
13083 s//\1/
13086 /^X\(\/\/\)$/{
13087 s//\1/
13090 /^X\(\/\).*/{
13091 s//\1/
13094 s/.*/./; q'`
13095 test -d "$as_dir" && break
13096 done
13097 test -z "$as_dirs" || eval "mkdir $as_dirs"
13098 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13101 } # as_fn_mkdir_p
13102 if mkdir -p . 2>/dev/null; then
13103 as_mkdir_p='mkdir -p "$as_dir"'
13104 else
13105 test -d ./-p && rmdir ./-p
13106 as_mkdir_p=false
13110 # as_fn_executable_p FILE
13111 # -----------------------
13112 # Test if FILE is an executable regular file.
13113 as_fn_executable_p ()
13115 test -f "$1" && test -x "$1"
13116 } # as_fn_executable_p
13117 as_test_x='test -x'
13118 as_executable_p=as_fn_executable_p
13120 # Sed expression to map a string onto a valid CPP name.
13121 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13123 # Sed expression to map a string onto a valid variable name.
13124 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13127 exec 6>&1
13128 ## ----------------------------------- ##
13129 ## Main body of $CONFIG_STATUS script. ##
13130 ## ----------------------------------- ##
13131 _ASEOF
13132 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13135 # Save the log message, to keep $0 and so on meaningful, and to
13136 # report actual input values of CONFIG_FILES etc. instead of their
13137 # values after options handling.
13138 ac_log="
13139 This file was extended by LTO plugin for ld $as_me 0.1, which was
13140 generated by GNU Autoconf 2.69. Invocation command line was
13142 CONFIG_FILES = $CONFIG_FILES
13143 CONFIG_HEADERS = $CONFIG_HEADERS
13144 CONFIG_LINKS = $CONFIG_LINKS
13145 CONFIG_COMMANDS = $CONFIG_COMMANDS
13146 $ $0 $@
13148 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13151 _ACEOF
13153 case $ac_config_files in *"
13154 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13155 esac
13157 case $ac_config_headers in *"
13158 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13159 esac
13162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13163 # Files that config.status was made for.
13164 config_files="$ac_config_files"
13165 config_headers="$ac_config_headers"
13166 config_commands="$ac_config_commands"
13168 _ACEOF
13170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13171 ac_cs_usage="\
13172 \`$as_me' instantiates files and other configuration actions
13173 from templates according to the current configuration. Unless the files
13174 and actions are specified as TAGs, all are instantiated by default.
13176 Usage: $0 [OPTION]... [TAG]...
13178 -h, --help print this help, then exit
13179 -V, --version print version number and configuration settings, then exit
13180 --config print configuration, then exit
13181 -q, --quiet, --silent
13182 do not print progress messages
13183 -d, --debug don't remove temporary files
13184 --recheck update $as_me by reconfiguring in the same conditions
13185 --file=FILE[:TEMPLATE]
13186 instantiate the configuration file FILE
13187 --header=FILE[:TEMPLATE]
13188 instantiate the configuration header FILE
13190 Configuration files:
13191 $config_files
13193 Configuration headers:
13194 $config_headers
13196 Configuration commands:
13197 $config_commands
13199 Report bugs to the package provider."
13201 _ACEOF
13202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13203 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13204 ac_cs_version="\\
13205 LTO plugin for ld config.status 0.1
13206 configured by $0, generated by GNU Autoconf 2.69,
13207 with options \\"\$ac_cs_config\\"
13209 Copyright (C) 2012 Free Software Foundation, Inc.
13210 This config.status script is free software; the Free Software Foundation
13211 gives unlimited permission to copy, distribute and modify it."
13213 ac_pwd='$ac_pwd'
13214 srcdir='$srcdir'
13215 INSTALL='$INSTALL'
13216 MKDIR_P='$MKDIR_P'
13217 AWK='$AWK'
13218 test -n "\$AWK" || AWK=awk
13219 _ACEOF
13221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13222 # The default lists apply if the user does not specify any file.
13223 ac_need_defaults=:
13224 while test $# != 0
13226 case $1 in
13227 --*=?*)
13228 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13229 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13230 ac_shift=:
13232 --*=)
13233 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13234 ac_optarg=
13235 ac_shift=:
13238 ac_option=$1
13239 ac_optarg=$2
13240 ac_shift=shift
13242 esac
13244 case $ac_option in
13245 # Handling of the options.
13246 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13247 ac_cs_recheck=: ;;
13248 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13249 $as_echo "$ac_cs_version"; exit ;;
13250 --config | --confi | --conf | --con | --co | --c )
13251 $as_echo "$ac_cs_config"; exit ;;
13252 --debug | --debu | --deb | --de | --d | -d )
13253 debug=: ;;
13254 --file | --fil | --fi | --f )
13255 $ac_shift
13256 case $ac_optarg in
13257 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13258 '') as_fn_error $? "missing file argument" ;;
13259 esac
13260 as_fn_append CONFIG_FILES " '$ac_optarg'"
13261 ac_need_defaults=false;;
13262 --header | --heade | --head | --hea )
13263 $ac_shift
13264 case $ac_optarg in
13265 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13266 esac
13267 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13268 ac_need_defaults=false;;
13269 --he | --h)
13270 # Conflict between --help and --header
13271 as_fn_error $? "ambiguous option: \`$1'
13272 Try \`$0 --help' for more information.";;
13273 --help | --hel | -h )
13274 $as_echo "$ac_cs_usage"; exit ;;
13275 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13276 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13277 ac_cs_silent=: ;;
13279 # This is an error.
13280 -*) as_fn_error $? "unrecognized option: \`$1'
13281 Try \`$0 --help' for more information." ;;
13283 *) as_fn_append ac_config_targets " $1"
13284 ac_need_defaults=false ;;
13286 esac
13287 shift
13288 done
13290 ac_configure_extra_args=
13292 if $ac_cs_silent; then
13293 exec 6>/dev/null
13294 ac_configure_extra_args="$ac_configure_extra_args --silent"
13297 _ACEOF
13298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13299 if \$ac_cs_recheck; then
13300 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13301 shift
13302 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13303 CONFIG_SHELL='$SHELL'
13304 export CONFIG_SHELL
13305 exec "\$@"
13308 _ACEOF
13309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13310 exec 5>>config.log
13312 echo
13313 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13314 ## Running $as_me. ##
13315 _ASBOX
13316 $as_echo "$ac_log"
13317 } >&5
13319 _ACEOF
13320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13322 # INIT-COMMANDS
13324 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13327 # The HP-UX ksh and POSIX shell print the target directory to stdout
13328 # if CDPATH is set.
13329 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13331 sed_quote_subst='$sed_quote_subst'
13332 double_quote_subst='$double_quote_subst'
13333 delay_variable_subst='$delay_variable_subst'
13334 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13335 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13336 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13337 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13338 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13339 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13340 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13341 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13342 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13343 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13344 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13345 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13346 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13347 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13348 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13349 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13350 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13351 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13352 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13353 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13354 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13355 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13356 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13357 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13358 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13359 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13360 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13361 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13362 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13363 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13364 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13365 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13366 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13367 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13368 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13369 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13370 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13371 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13372 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13373 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13374 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13375 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13376 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13377 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13378 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13379 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13380 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13381 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13382 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"`'
13383 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13384 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13385 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13386 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13387 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13388 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13389 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13390 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13391 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13392 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13393 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13394 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13395 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13396 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13397 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13398 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13399 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13400 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13401 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13402 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13403 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13404 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13405 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13406 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13407 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13408 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13409 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13410 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13411 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13412 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13413 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13414 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13415 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13416 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13417 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13418 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13419 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13420 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13421 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13422 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13423 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13424 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13425 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13426 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13427 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13428 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13429 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13430 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13431 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13432 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13433 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13434 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13435 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13436 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13437 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13438 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13439 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13440 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13441 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13442 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13443 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13444 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13445 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13446 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13447 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13448 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13449 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13450 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13451 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13452 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13453 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13455 LTCC='$LTCC'
13456 LTCFLAGS='$LTCFLAGS'
13457 compiler='$compiler_DEFAULT'
13459 # A function that is used when there is no print builtin or printf.
13460 func_fallback_echo ()
13462 eval 'cat <<_LTECHO_EOF
13464 _LTECHO_EOF'
13467 # Quote evaled strings.
13468 for var in SHELL \
13469 ECHO \
13470 SED \
13471 GREP \
13472 EGREP \
13473 FGREP \
13474 LD \
13475 NM \
13476 LN_S \
13477 lt_SP2NL \
13478 lt_NL2SP \
13479 reload_flag \
13480 OBJDUMP \
13481 deplibs_check_method \
13482 file_magic_cmd \
13483 AR \
13484 AR_FLAGS \
13485 STRIP \
13486 RANLIB \
13487 CC \
13488 CFLAGS \
13489 compiler \
13490 lt_cv_sys_global_symbol_pipe \
13491 lt_cv_sys_global_symbol_to_cdecl \
13492 lt_cv_sys_global_symbol_to_c_name_address \
13493 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13494 lt_prog_compiler_no_builtin_flag \
13495 lt_prog_compiler_wl \
13496 lt_prog_compiler_pic \
13497 lt_prog_compiler_static \
13498 lt_cv_prog_compiler_c_o \
13499 need_locks \
13500 DSYMUTIL \
13501 NMEDIT \
13502 LIPO \
13503 OTOOL \
13504 OTOOL64 \
13505 shrext_cmds \
13506 export_dynamic_flag_spec \
13507 whole_archive_flag_spec \
13508 compiler_needs_object \
13509 with_gnu_ld \
13510 allow_undefined_flag \
13511 no_undefined_flag \
13512 hardcode_libdir_flag_spec \
13513 hardcode_libdir_flag_spec_ld \
13514 hardcode_libdir_separator \
13515 fix_srcfile_path \
13516 exclude_expsyms \
13517 include_expsyms \
13518 file_list_spec \
13519 variables_saved_for_relink \
13520 libname_spec \
13521 library_names_spec \
13522 soname_spec \
13523 install_override_mode \
13524 finish_eval \
13525 old_striplib \
13526 striplib; do
13527 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13528 *[\\\\\\\`\\"\\\$]*)
13529 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13532 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13534 esac
13535 done
13537 # Double-quote double-evaled strings.
13538 for var in reload_cmds \
13539 old_postinstall_cmds \
13540 old_postuninstall_cmds \
13541 old_archive_cmds \
13542 extract_expsyms_cmds \
13543 old_archive_from_new_cmds \
13544 old_archive_from_expsyms_cmds \
13545 archive_cmds \
13546 archive_expsym_cmds \
13547 module_cmds \
13548 module_expsym_cmds \
13549 export_symbols_cmds \
13550 prelink_cmds \
13551 postinstall_cmds \
13552 postuninstall_cmds \
13553 finish_cmds \
13554 sys_lib_search_path_spec \
13555 sys_lib_dlsearch_path_spec; do
13556 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13557 *[\\\\\\\`\\"\\\$]*)
13558 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13561 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13563 esac
13564 done
13566 ac_aux_dir='$ac_aux_dir'
13567 xsi_shell='$xsi_shell'
13568 lt_shell_append='$lt_shell_append'
13570 # See if we are running on zsh, and set the options which allow our
13571 # commands through without removal of \ escapes INIT.
13572 if test -n "\${ZSH_VERSION+set}" ; then
13573 setopt NO_GLOB_SUBST
13577 PACKAGE='$PACKAGE'
13578 VERSION='$VERSION'
13579 TIMESTAMP='$TIMESTAMP'
13580 RM='$RM'
13581 ofile='$ofile'
13586 _ACEOF
13588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13590 # Handling of arguments.
13591 for ac_config_target in $ac_config_targets
13593 case $ac_config_target in
13594 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13595 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13596 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13597 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13599 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13600 esac
13601 done
13604 # If the user did not use the arguments to specify the items to instantiate,
13605 # then the envvar interface is used. Set only those that are not.
13606 # We use the long form for the default assignment because of an extremely
13607 # bizarre bug on SunOS 4.1.3.
13608 if $ac_need_defaults; then
13609 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13610 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13611 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13614 # Have a temporary directory for convenience. Make it in the build tree
13615 # simply because there is no reason against having it here, and in addition,
13616 # creating and moving files from /tmp can sometimes cause problems.
13617 # Hook for its removal unless debugging.
13618 # Note that there is a small window in which the directory will not be cleaned:
13619 # after its creation but before its name has been assigned to `$tmp'.
13620 $debug ||
13622 tmp= ac_tmp=
13623 trap 'exit_status=$?
13624 : "${ac_tmp:=$tmp}"
13625 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13627 trap 'as_fn_exit 1' 1 2 13 15
13629 # Create a (secure) tmp directory for tmp files.
13632 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13633 test -d "$tmp"
13634 } ||
13636 tmp=./conf$$-$RANDOM
13637 (umask 077 && mkdir "$tmp")
13638 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13639 ac_tmp=$tmp
13641 # Set up the scripts for CONFIG_FILES section.
13642 # No need to generate them if there are no CONFIG_FILES.
13643 # This happens for instance with `./config.status config.h'.
13644 if test -n "$CONFIG_FILES"; then
13647 ac_cr=`echo X | tr X '\015'`
13648 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13649 # But we know of no other shell where ac_cr would be empty at this
13650 # point, so we can use a bashism as a fallback.
13651 if test "x$ac_cr" = x; then
13652 eval ac_cr=\$\'\\r\'
13654 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13655 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13656 ac_cs_awk_cr='\\r'
13657 else
13658 ac_cs_awk_cr=$ac_cr
13661 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13662 _ACEOF
13666 echo "cat >conf$$subs.awk <<_ACEOF" &&
13667 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13668 echo "_ACEOF"
13669 } >conf$$subs.sh ||
13670 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13671 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13672 ac_delim='%!_!# '
13673 for ac_last_try in false false false false false :; do
13674 . ./conf$$subs.sh ||
13675 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13677 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13678 if test $ac_delim_n = $ac_delim_num; then
13679 break
13680 elif $ac_last_try; then
13681 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13682 else
13683 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13685 done
13686 rm -f conf$$subs.sh
13688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13689 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13690 _ACEOF
13691 sed -n '
13693 s/^/S["/; s/!.*/"]=/
13696 s/^[^!]*!//
13697 :repl
13698 t repl
13699 s/'"$ac_delim"'$//
13700 t delim
13703 s/\(.\{148\}\)..*/\1/
13704 t more1
13705 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13708 b repl
13709 :more1
13710 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13713 s/.\{148\}//
13714 t nl
13715 :delim
13717 s/\(.\{148\}\)..*/\1/
13718 t more2
13719 s/["\\]/\\&/g; s/^/"/; s/$/"/
13722 :more2
13723 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13726 s/.\{148\}//
13727 t delim
13728 ' <conf$$subs.awk | sed '
13729 /^[^""]/{
13731 s/\n//
13733 ' >>$CONFIG_STATUS || ac_write_fail=1
13734 rm -f conf$$subs.awk
13735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13736 _ACAWK
13737 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13738 for (key in S) S_is_set[key] = 1
13739 FS = "\a"
13743 line = $ 0
13744 nfields = split(line, field, "@")
13745 substed = 0
13746 len = length(field[1])
13747 for (i = 2; i < nfields; i++) {
13748 key = field[i]
13749 keylen = length(key)
13750 if (S_is_set[key]) {
13751 value = S[key]
13752 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13753 len += length(value) + length(field[++i])
13754 substed = 1
13755 } else
13756 len += 1 + keylen
13759 print line
13762 _ACAWK
13763 _ACEOF
13764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13765 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13766 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13767 else
13769 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13770 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13771 _ACEOF
13773 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13774 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13775 # trailing colons and then remove the whole line if VPATH becomes empty
13776 # (actually we leave an empty line to preserve line numbers).
13777 if test "x$srcdir" = x.; then
13778 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13780 s///
13781 s/^/:/
13782 s/[ ]*$/:/
13783 s/:\$(srcdir):/:/g
13784 s/:\${srcdir}:/:/g
13785 s/:@srcdir@:/:/g
13786 s/^:*//
13787 s/:*$//
13789 s/\(=[ ]*\).*/\1/
13791 s/\n//
13792 s/^[^=]*=[ ]*$//
13796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13797 fi # test -n "$CONFIG_FILES"
13799 # Set up the scripts for CONFIG_HEADERS section.
13800 # No need to generate them if there are no CONFIG_HEADERS.
13801 # This happens for instance with `./config.status Makefile'.
13802 if test -n "$CONFIG_HEADERS"; then
13803 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13804 BEGIN {
13805 _ACEOF
13807 # Transform confdefs.h into an awk script `defines.awk', embedded as
13808 # here-document in config.status, that substitutes the proper values into
13809 # config.h.in to produce config.h.
13811 # Create a delimiter string that does not exist in confdefs.h, to ease
13812 # handling of long lines.
13813 ac_delim='%!_!# '
13814 for ac_last_try in false false :; do
13815 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13816 if test -z "$ac_tt"; then
13817 break
13818 elif $ac_last_try; then
13819 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13820 else
13821 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13823 done
13825 # For the awk script, D is an array of macro values keyed by name,
13826 # likewise P contains macro parameters if any. Preserve backslash
13827 # newline sequences.
13829 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13830 sed -n '
13831 s/.\{148\}/&'"$ac_delim"'/g
13832 t rset
13833 :rset
13834 s/^[ ]*#[ ]*define[ ][ ]*/ /
13835 t def
13837 :def
13838 s/\\$//
13839 t bsnl
13840 s/["\\]/\\&/g
13841 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13842 D["\1"]=" \3"/p
13843 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13845 :bsnl
13846 s/["\\]/\\&/g
13847 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13848 D["\1"]=" \3\\\\\\n"\\/p
13849 t cont
13850 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13851 t cont
13853 :cont
13855 s/.\{148\}/&'"$ac_delim"'/g
13856 t clear
13857 :clear
13858 s/\\$//
13859 t bsnlc
13860 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13862 :bsnlc
13863 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13864 b cont
13865 ' <confdefs.h | sed '
13866 s/'"$ac_delim"'/"\\\
13867 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13870 for (key in D) D_is_set[key] = 1
13871 FS = "\a"
13873 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13874 line = \$ 0
13875 split(line, arg, " ")
13876 if (arg[1] == "#") {
13877 defundef = arg[2]
13878 mac1 = arg[3]
13879 } else {
13880 defundef = substr(arg[1], 2)
13881 mac1 = arg[2]
13883 split(mac1, mac2, "(") #)
13884 macro = mac2[1]
13885 prefix = substr(line, 1, index(line, defundef) - 1)
13886 if (D_is_set[macro]) {
13887 # Preserve the white space surrounding the "#".
13888 print prefix "define", macro P[macro] D[macro]
13889 next
13890 } else {
13891 # Replace #undef with comments. This is necessary, for example,
13892 # in the case of _POSIX_SOURCE, which is predefined and required
13893 # on some systems where configure will not decide to define it.
13894 if (defundef == "undef") {
13895 print "/*", prefix defundef, macro, "*/"
13896 next
13900 { print }
13901 _ACAWK
13902 _ACEOF
13903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13904 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13905 fi # test -n "$CONFIG_HEADERS"
13908 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13909 shift
13910 for ac_tag
13912 case $ac_tag in
13913 :[FHLC]) ac_mode=$ac_tag; continue;;
13914 esac
13915 case $ac_mode$ac_tag in
13916 :[FHL]*:*);;
13917 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13918 :[FH]-) ac_tag=-:-;;
13919 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13920 esac
13921 ac_save_IFS=$IFS
13922 IFS=:
13923 set x $ac_tag
13924 IFS=$ac_save_IFS
13925 shift
13926 ac_file=$1
13927 shift
13929 case $ac_mode in
13930 :L) ac_source=$1;;
13931 :[FH])
13932 ac_file_inputs=
13933 for ac_f
13935 case $ac_f in
13936 -) ac_f="$ac_tmp/stdin";;
13937 *) # Look for the file first in the build tree, then in the source tree
13938 # (if the path is not absolute). The absolute path cannot be DOS-style,
13939 # because $ac_f cannot contain `:'.
13940 test -f "$ac_f" ||
13941 case $ac_f in
13942 [\\/$]*) false;;
13943 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13944 esac ||
13945 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13946 esac
13947 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13948 as_fn_append ac_file_inputs " '$ac_f'"
13949 done
13951 # Let's still pretend it is `configure' which instantiates (i.e., don't
13952 # use $as_me), people would be surprised to read:
13953 # /* config.h. Generated by config.status. */
13954 configure_input='Generated from '`
13955 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13956 `' by configure.'
13957 if test x"$ac_file" != x-; then
13958 configure_input="$ac_file. $configure_input"
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13960 $as_echo "$as_me: creating $ac_file" >&6;}
13962 # Neutralize special characters interpreted by sed in replacement strings.
13963 case $configure_input in #(
13964 *\&* | *\|* | *\\* )
13965 ac_sed_conf_input=`$as_echo "$configure_input" |
13966 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13967 *) ac_sed_conf_input=$configure_input;;
13968 esac
13970 case $ac_tag in
13971 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13972 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13973 esac
13975 esac
13977 ac_dir=`$as_dirname -- "$ac_file" ||
13978 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13979 X"$ac_file" : 'X\(//\)[^/]' \| \
13980 X"$ac_file" : 'X\(//\)$' \| \
13981 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13982 $as_echo X"$ac_file" |
13983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13984 s//\1/
13987 /^X\(\/\/\)[^/].*/{
13988 s//\1/
13991 /^X\(\/\/\)$/{
13992 s//\1/
13995 /^X\(\/\).*/{
13996 s//\1/
13999 s/.*/./; q'`
14000 as_dir="$ac_dir"; as_fn_mkdir_p
14001 ac_builddir=.
14003 case "$ac_dir" in
14004 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14006 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14007 # A ".." for each directory in $ac_dir_suffix.
14008 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14009 case $ac_top_builddir_sub in
14010 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14011 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14012 esac ;;
14013 esac
14014 ac_abs_top_builddir=$ac_pwd
14015 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14016 # for backward compatibility:
14017 ac_top_builddir=$ac_top_build_prefix
14019 case $srcdir in
14020 .) # We are building in place.
14021 ac_srcdir=.
14022 ac_top_srcdir=$ac_top_builddir_sub
14023 ac_abs_top_srcdir=$ac_pwd ;;
14024 [\\/]* | ?:[\\/]* ) # Absolute name.
14025 ac_srcdir=$srcdir$ac_dir_suffix;
14026 ac_top_srcdir=$srcdir
14027 ac_abs_top_srcdir=$srcdir ;;
14028 *) # Relative name.
14029 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14030 ac_top_srcdir=$ac_top_build_prefix$srcdir
14031 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14032 esac
14033 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14036 case $ac_mode in
14039 # CONFIG_FILE
14042 case $INSTALL in
14043 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14044 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14045 esac
14046 ac_MKDIR_P=$MKDIR_P
14047 case $MKDIR_P in
14048 [\\/$]* | ?:[\\/]* ) ;;
14049 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14050 esac
14051 _ACEOF
14053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14054 # If the template does not know about datarootdir, expand it.
14055 # FIXME: This hack should be removed a few years after 2.60.
14056 ac_datarootdir_hack=; ac_datarootdir_seen=
14057 ac_sed_dataroot='
14058 /datarootdir/ {
14062 /@datadir@/p
14063 /@docdir@/p
14064 /@infodir@/p
14065 /@localedir@/p
14066 /@mandir@/p'
14067 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14068 *datarootdir*) ac_datarootdir_seen=yes;;
14069 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14071 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14072 _ACEOF
14073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14074 ac_datarootdir_hack='
14075 s&@datadir@&$datadir&g
14076 s&@docdir@&$docdir&g
14077 s&@infodir@&$infodir&g
14078 s&@localedir@&$localedir&g
14079 s&@mandir@&$mandir&g
14080 s&\\\${datarootdir}&$datarootdir&g' ;;
14081 esac
14082 _ACEOF
14084 # Neutralize VPATH when `$srcdir' = `.'.
14085 # Shell code in configure.ac might set extrasub.
14086 # FIXME: do we really want to maintain this feature?
14087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14088 ac_sed_extra="$ac_vpsub
14089 $extrasub
14090 _ACEOF
14091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14093 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14094 s|@configure_input@|$ac_sed_conf_input|;t t
14095 s&@top_builddir@&$ac_top_builddir_sub&;t t
14096 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14097 s&@srcdir@&$ac_srcdir&;t t
14098 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14099 s&@top_srcdir@&$ac_top_srcdir&;t t
14100 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14101 s&@builddir@&$ac_builddir&;t t
14102 s&@abs_builddir@&$ac_abs_builddir&;t t
14103 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14104 s&@INSTALL@&$ac_INSTALL&;t t
14105 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14106 $ac_datarootdir_hack
14108 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14109 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14111 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14112 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14113 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14114 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14116 which seems to be undefined. Please make sure it is defined" >&5
14117 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14118 which seems to be undefined. Please make sure it is defined" >&2;}
14120 rm -f "$ac_tmp/stdin"
14121 case $ac_file in
14122 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14123 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14124 esac \
14125 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14129 # CONFIG_HEADER
14131 if test x"$ac_file" != x-; then
14133 $as_echo "/* $configure_input */" \
14134 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14135 } >"$ac_tmp/config.h" \
14136 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14137 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14139 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14140 else
14141 rm -f "$ac_file"
14142 mv "$ac_tmp/config.h" "$ac_file" \
14143 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14145 else
14146 $as_echo "/* $configure_input */" \
14147 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14148 || as_fn_error $? "could not create -" "$LINENO" 5
14150 # Compute "$ac_file"'s index in $config_headers.
14151 _am_arg="$ac_file"
14152 _am_stamp_count=1
14153 for _am_header in $config_headers :; do
14154 case $_am_header in
14155 $_am_arg | $_am_arg:* )
14156 break ;;
14158 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14159 esac
14160 done
14161 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14162 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14163 X"$_am_arg" : 'X\(//\)[^/]' \| \
14164 X"$_am_arg" : 'X\(//\)$' \| \
14165 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14166 $as_echo X"$_am_arg" |
14167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14168 s//\1/
14171 /^X\(\/\/\)[^/].*/{
14172 s//\1/
14175 /^X\(\/\/\)$/{
14176 s//\1/
14179 /^X\(\/\).*/{
14180 s//\1/
14183 s/.*/./; q'`/stamp-h$_am_stamp_count
14186 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14187 $as_echo "$as_me: executing $ac_file commands" >&6;}
14189 esac
14192 case $ac_file$ac_mode in
14193 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14194 # Older Autoconf quotes --file arguments for eval, but not when files
14195 # are listed without --file. Let's play safe and only enable the eval
14196 # if we detect the quoting.
14197 case $CONFIG_FILES in
14198 *\'*) eval set x "$CONFIG_FILES" ;;
14199 *) set x $CONFIG_FILES ;;
14200 esac
14201 shift
14202 for mf
14204 # Strip MF so we end up with the name of the file.
14205 mf=`echo "$mf" | sed -e 's/:.*$//'`
14206 # Check whether this is an Automake generated Makefile or not.
14207 # We used to match only the files named 'Makefile.in', but
14208 # some people rename them; so instead we look at the file content.
14209 # Grep'ing the first line is not enough: some people post-process
14210 # each Makefile.in and add a new line on top of each file to say so.
14211 # Grep'ing the whole file is not good either: AIX grep has a line
14212 # limit of 2048, but all sed's we know have understand at least 4000.
14213 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14214 dirpart=`$as_dirname -- "$mf" ||
14215 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14216 X"$mf" : 'X\(//\)[^/]' \| \
14217 X"$mf" : 'X\(//\)$' \| \
14218 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14219 $as_echo X"$mf" |
14220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14221 s//\1/
14224 /^X\(\/\/\)[^/].*/{
14225 s//\1/
14228 /^X\(\/\/\)$/{
14229 s//\1/
14232 /^X\(\/\).*/{
14233 s//\1/
14236 s/.*/./; q'`
14237 else
14238 continue
14240 # Extract the definition of DEPDIR, am__include, and am__quote
14241 # from the Makefile without running 'make'.
14242 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14243 test -z "$DEPDIR" && continue
14244 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14245 test -z "$am__include" && continue
14246 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14247 # Find all dependency output files, they are included files with
14248 # $(DEPDIR) in their names. We invoke sed twice because it is the
14249 # simplest approach to changing $(DEPDIR) to its actual value in the
14250 # expansion.
14251 for file in `sed -n "
14252 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14253 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14254 # Make sure the directory exists.
14255 test -f "$dirpart/$file" && continue
14256 fdir=`$as_dirname -- "$file" ||
14257 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14258 X"$file" : 'X\(//\)[^/]' \| \
14259 X"$file" : 'X\(//\)$' \| \
14260 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14261 $as_echo X"$file" |
14262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14263 s//\1/
14266 /^X\(\/\/\)[^/].*/{
14267 s//\1/
14270 /^X\(\/\/\)$/{
14271 s//\1/
14274 /^X\(\/\).*/{
14275 s//\1/
14278 s/.*/./; q'`
14279 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14280 # echo "creating $dirpart/$file"
14281 echo '# dummy' > "$dirpart/$file"
14282 done
14283 done
14286 "libtool":C)
14288 # See if we are running on zsh, and set the options which allow our
14289 # commands through without removal of \ escapes.
14290 if test -n "${ZSH_VERSION+set}" ; then
14291 setopt NO_GLOB_SUBST
14294 cfgfile="${ofile}T"
14295 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14296 $RM "$cfgfile"
14298 cat <<_LT_EOF >> "$cfgfile"
14299 #! $SHELL
14301 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14302 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14303 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14304 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14306 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14307 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14308 # Written by Gordon Matzigkeit, 1996
14310 # This file is part of GNU Libtool.
14312 # GNU Libtool is free software; you can redistribute it and/or
14313 # modify it under the terms of the GNU General Public License as
14314 # published by the Free Software Foundation; either version 2 of
14315 # the License, or (at your option) any later version.
14317 # As a special exception to the GNU General Public License,
14318 # if you distribute this file as part of a program or library that
14319 # is built using GNU Libtool, you may include this file under the
14320 # same distribution terms that you use for the rest of that program.
14322 # GNU Libtool is distributed in the hope that it will be useful,
14323 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14324 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14325 # GNU General Public License for more details.
14327 # You should have received a copy of the GNU General Public License
14328 # along with GNU Libtool; see the file COPYING. If not, a copy
14329 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14330 # obtained by writing to the Free Software Foundation, Inc.,
14331 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14334 # The names of the tagged configurations supported by this script.
14335 available_tags=""
14337 # ### BEGIN LIBTOOL CONFIG
14339 # Which release of libtool.m4 was used?
14340 macro_version=$macro_version
14341 macro_revision=$macro_revision
14343 # Whether or not to build shared libraries.
14344 build_libtool_libs=$enable_shared
14346 # Whether or not to build static libraries.
14347 build_old_libs=$enable_static
14349 # What type of objects to build.
14350 pic_mode=$pic_mode
14352 # Whether or not to optimize for fast installation.
14353 fast_install=$enable_fast_install
14355 # Shell to use when invoking shell scripts.
14356 SHELL=$lt_SHELL
14358 # An echo program that protects backslashes.
14359 ECHO=$lt_ECHO
14361 # The host system.
14362 host_alias=$host_alias
14363 host=$host
14364 host_os=$host_os
14366 # The build system.
14367 build_alias=$build_alias
14368 build=$build
14369 build_os=$build_os
14371 # A sed program that does not truncate output.
14372 SED=$lt_SED
14374 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14375 Xsed="\$SED -e 1s/^X//"
14377 # A grep program that handles long lines.
14378 GREP=$lt_GREP
14380 # An ERE matcher.
14381 EGREP=$lt_EGREP
14383 # A literal string matcher.
14384 FGREP=$lt_FGREP
14386 # A BSD- or MS-compatible name lister.
14387 NM=$lt_NM
14389 # Whether we need soft or hard links.
14390 LN_S=$lt_LN_S
14392 # What is the maximum length of a command?
14393 max_cmd_len=$max_cmd_len
14395 # Object file suffix (normally "o").
14396 objext=$ac_objext
14398 # Executable file suffix (normally "").
14399 exeext=$exeext
14401 # whether the shell understands "unset".
14402 lt_unset=$lt_unset
14404 # turn spaces into newlines.
14405 SP2NL=$lt_lt_SP2NL
14407 # turn newlines into spaces.
14408 NL2SP=$lt_lt_NL2SP
14410 # An object symbol dumper.
14411 OBJDUMP=$lt_OBJDUMP
14413 # Method to check whether dependent libraries are shared objects.
14414 deplibs_check_method=$lt_deplibs_check_method
14416 # Command to use when deplibs_check_method == "file_magic".
14417 file_magic_cmd=$lt_file_magic_cmd
14419 # The archiver.
14420 AR=$lt_AR
14421 AR_FLAGS=$lt_AR_FLAGS
14423 # A symbol stripping program.
14424 STRIP=$lt_STRIP
14426 # Commands used to install an old-style archive.
14427 RANLIB=$lt_RANLIB
14428 old_postinstall_cmds=$lt_old_postinstall_cmds
14429 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14431 # Whether to use a lock for old archive extraction.
14432 lock_old_archive_extraction=$lock_old_archive_extraction
14434 # A C compiler.
14435 LTCC=$lt_CC
14437 # LTCC compiler flags.
14438 LTCFLAGS=$lt_CFLAGS
14440 # Take the output of nm and produce a listing of raw symbols and C names.
14441 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14443 # Transform the output of nm in a proper C declaration.
14444 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14446 # Transform the output of nm in a C name address pair.
14447 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14449 # Transform the output of nm in a C name address pair when lib prefix is needed.
14450 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14452 # The name of the directory that contains temporary libtool files.
14453 objdir=$objdir
14455 # Used to examine libraries when file_magic_cmd begins with "file".
14456 MAGIC_CMD=$MAGIC_CMD
14458 # Must we lock files when doing compilation?
14459 need_locks=$lt_need_locks
14461 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14462 DSYMUTIL=$lt_DSYMUTIL
14464 # Tool to change global to local symbols on Mac OS X.
14465 NMEDIT=$lt_NMEDIT
14467 # Tool to manipulate fat objects and archives on Mac OS X.
14468 LIPO=$lt_LIPO
14470 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14471 OTOOL=$lt_OTOOL
14473 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14474 OTOOL64=$lt_OTOOL64
14476 # Old archive suffix (normally "a").
14477 libext=$libext
14479 # Shared library suffix (normally ".so").
14480 shrext_cmds=$lt_shrext_cmds
14482 # The commands to extract the exported symbol list from a shared archive.
14483 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14485 # Variables whose values should be saved in libtool wrapper scripts and
14486 # restored at link time.
14487 variables_saved_for_relink=$lt_variables_saved_for_relink
14489 # Do we need the "lib" prefix for modules?
14490 need_lib_prefix=$need_lib_prefix
14492 # Do we need a version for libraries?
14493 need_version=$need_version
14495 # Library versioning type.
14496 version_type=$version_type
14498 # Shared library runtime path variable.
14499 runpath_var=$runpath_var
14501 # Shared library path variable.
14502 shlibpath_var=$shlibpath_var
14504 # Is shlibpath searched before the hard-coded library search path?
14505 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14507 # Format of library name prefix.
14508 libname_spec=$lt_libname_spec
14510 # List of archive names. First name is the real one, the rest are links.
14511 # The last name is the one that the linker finds with -lNAME
14512 library_names_spec=$lt_library_names_spec
14514 # The coded name of the library, if different from the real name.
14515 soname_spec=$lt_soname_spec
14517 # Permission mode override for installation of shared libraries.
14518 install_override_mode=$lt_install_override_mode
14520 # Command to use after installation of a shared archive.
14521 postinstall_cmds=$lt_postinstall_cmds
14523 # Command to use after uninstallation of a shared archive.
14524 postuninstall_cmds=$lt_postuninstall_cmds
14526 # Commands used to finish a libtool library installation in a directory.
14527 finish_cmds=$lt_finish_cmds
14529 # As "finish_cmds", except a single script fragment to be evaled but
14530 # not shown.
14531 finish_eval=$lt_finish_eval
14533 # Whether we should hardcode library paths into libraries.
14534 hardcode_into_libs=$hardcode_into_libs
14536 # Compile-time system search path for libraries.
14537 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14539 # Run-time system search path for libraries.
14540 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14542 # Whether dlopen is supported.
14543 dlopen_support=$enable_dlopen
14545 # Whether dlopen of programs is supported.
14546 dlopen_self=$enable_dlopen_self
14548 # Whether dlopen of statically linked programs is supported.
14549 dlopen_self_static=$enable_dlopen_self_static
14551 # Commands to strip libraries.
14552 old_striplib=$lt_old_striplib
14553 striplib=$lt_striplib
14556 # The linker used to build libraries.
14557 LD=$lt_LD
14559 # How to create reloadable object files.
14560 reload_flag=$lt_reload_flag
14561 reload_cmds=$lt_reload_cmds
14563 # Commands used to build an old-style archive.
14564 old_archive_cmds=$lt_old_archive_cmds
14566 # A language specific compiler.
14567 CC=$lt_compiler
14569 # Is the compiler the GNU compiler?
14570 with_gcc=$GCC
14572 # Compiler flag to turn off builtin functions.
14573 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14575 # How to pass a linker flag through the compiler.
14576 wl=$lt_lt_prog_compiler_wl
14578 # Additional compiler flags for building library objects.
14579 pic_flag=$lt_lt_prog_compiler_pic
14581 # Compiler flag to prevent dynamic linking.
14582 link_static_flag=$lt_lt_prog_compiler_static
14584 # Does compiler simultaneously support -c and -o options?
14585 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14587 # Whether or not to add -lc for building shared libraries.
14588 build_libtool_need_lc=$archive_cmds_need_lc
14590 # Whether or not to disallow shared libs when runtime libs are static.
14591 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14593 # Compiler flag to allow reflexive dlopens.
14594 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14596 # Compiler flag to generate shared objects directly from archives.
14597 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14599 # Whether the compiler copes with passing no objects directly.
14600 compiler_needs_object=$lt_compiler_needs_object
14602 # Create an old-style archive from a shared archive.
14603 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14605 # Create a temporary old-style archive to link instead of a shared archive.
14606 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14608 # Commands used to build a shared archive.
14609 archive_cmds=$lt_archive_cmds
14610 archive_expsym_cmds=$lt_archive_expsym_cmds
14612 # Commands used to build a loadable module if different from building
14613 # a shared archive.
14614 module_cmds=$lt_module_cmds
14615 module_expsym_cmds=$lt_module_expsym_cmds
14617 # Whether we are building with GNU ld or not.
14618 with_gnu_ld=$lt_with_gnu_ld
14620 # Flag that allows shared libraries with undefined symbols to be built.
14621 allow_undefined_flag=$lt_allow_undefined_flag
14623 # Flag that enforces no undefined symbols.
14624 no_undefined_flag=$lt_no_undefined_flag
14626 # Flag to hardcode \$libdir into a binary during linking.
14627 # This must work even if \$libdir does not exist
14628 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14630 # If ld is used when linking, flag to hardcode \$libdir into a binary
14631 # during linking. This must work even if \$libdir does not exist.
14632 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14634 # Whether we need a single "-rpath" flag with a separated argument.
14635 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14637 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14638 # DIR into the resulting binary.
14639 hardcode_direct=$hardcode_direct
14641 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14642 # DIR into the resulting binary and the resulting library dependency is
14643 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14644 # library is relocated.
14645 hardcode_direct_absolute=$hardcode_direct_absolute
14647 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14648 # into the resulting binary.
14649 hardcode_minus_L=$hardcode_minus_L
14651 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14652 # into the resulting binary.
14653 hardcode_shlibpath_var=$hardcode_shlibpath_var
14655 # Set to "yes" if building a shared library automatically hardcodes DIR
14656 # into the library and all subsequent libraries and executables linked
14657 # against it.
14658 hardcode_automatic=$hardcode_automatic
14660 # Set to yes if linker adds runtime paths of dependent libraries
14661 # to runtime path list.
14662 inherit_rpath=$inherit_rpath
14664 # Whether libtool must link a program against all its dependency libraries.
14665 link_all_deplibs=$link_all_deplibs
14667 # Fix the shell variable \$srcfile for the compiler.
14668 fix_srcfile_path=$lt_fix_srcfile_path
14670 # Set to "yes" if exported symbols are required.
14671 always_export_symbols=$always_export_symbols
14673 # The commands to list exported symbols.
14674 export_symbols_cmds=$lt_export_symbols_cmds
14676 # Symbols that should not be listed in the preloaded symbols.
14677 exclude_expsyms=$lt_exclude_expsyms
14679 # Symbols that must always be exported.
14680 include_expsyms=$lt_include_expsyms
14682 # Commands necessary for linking programs (against libraries) with templates.
14683 prelink_cmds=$lt_prelink_cmds
14685 # Specify filename containing input files.
14686 file_list_spec=$lt_file_list_spec
14688 # How to hardcode a shared library path into an executable.
14689 hardcode_action=$hardcode_action
14691 # ### END LIBTOOL CONFIG
14693 _LT_EOF
14695 case $host_os in
14696 aix3*)
14697 cat <<\_LT_EOF >> "$cfgfile"
14698 # AIX sometimes has problems with the GCC collect2 program. For some
14699 # reason, if we set the COLLECT_NAMES environment variable, the problems
14700 # vanish in a puff of smoke.
14701 if test "X${COLLECT_NAMES+set}" != Xset; then
14702 COLLECT_NAMES=
14703 export COLLECT_NAMES
14705 _LT_EOF
14707 esac
14710 ltmain="$ac_aux_dir/ltmain.sh"
14713 # We use sed instead of cat because bash on DJGPP gets confused if
14714 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14715 # text mode, it properly converts lines to CR/LF. This bash problem
14716 # is reportedly fixed, but why not run on old versions too?
14717 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14718 || (rm -f "$cfgfile"; exit 1)
14720 case $xsi_shell in
14721 yes)
14722 cat << \_LT_EOF >> "$cfgfile"
14724 # func_dirname file append nondir_replacement
14725 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14726 # otherwise set result to NONDIR_REPLACEMENT.
14727 func_dirname ()
14729 case ${1} in
14730 */*) func_dirname_result="${1%/*}${2}" ;;
14731 * ) func_dirname_result="${3}" ;;
14732 esac
14735 # func_basename file
14736 func_basename ()
14738 func_basename_result="${1##*/}"
14741 # func_dirname_and_basename file append nondir_replacement
14742 # perform func_basename and func_dirname in a single function
14743 # call:
14744 # dirname: Compute the dirname of FILE. If nonempty,
14745 # add APPEND to the result, otherwise set result
14746 # to NONDIR_REPLACEMENT.
14747 # value returned in "$func_dirname_result"
14748 # basename: Compute filename of FILE.
14749 # value retuned in "$func_basename_result"
14750 # Implementation must be kept synchronized with func_dirname
14751 # and func_basename. For efficiency, we do not delegate to
14752 # those functions but instead duplicate the functionality here.
14753 func_dirname_and_basename ()
14755 case ${1} in
14756 */*) func_dirname_result="${1%/*}${2}" ;;
14757 * ) func_dirname_result="${3}" ;;
14758 esac
14759 func_basename_result="${1##*/}"
14762 # func_stripname prefix suffix name
14763 # strip PREFIX and SUFFIX off of NAME.
14764 # PREFIX and SUFFIX must not contain globbing or regex special
14765 # characters, hashes, percent signs, but SUFFIX may contain a leading
14766 # dot (in which case that matches only a dot).
14767 func_stripname ()
14769 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14770 # positional parameters, so assign one to ordinary parameter first.
14771 func_stripname_result=${3}
14772 func_stripname_result=${func_stripname_result#"${1}"}
14773 func_stripname_result=${func_stripname_result%"${2}"}
14776 # func_opt_split
14777 func_opt_split ()
14779 func_opt_split_opt=${1%%=*}
14780 func_opt_split_arg=${1#*=}
14783 # func_lo2o object
14784 func_lo2o ()
14786 case ${1} in
14787 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14788 *) func_lo2o_result=${1} ;;
14789 esac
14792 # func_xform libobj-or-source
14793 func_xform ()
14795 func_xform_result=${1%.*}.lo
14798 # func_arith arithmetic-term...
14799 func_arith ()
14801 func_arith_result=$(( $* ))
14804 # func_len string
14805 # STRING may not start with a hyphen.
14806 func_len ()
14808 func_len_result=${#1}
14811 _LT_EOF
14813 *) # Bourne compatible functions.
14814 cat << \_LT_EOF >> "$cfgfile"
14816 # func_dirname file append nondir_replacement
14817 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14818 # otherwise set result to NONDIR_REPLACEMENT.
14819 func_dirname ()
14821 # Extract subdirectory from the argument.
14822 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14823 if test "X$func_dirname_result" = "X${1}"; then
14824 func_dirname_result="${3}"
14825 else
14826 func_dirname_result="$func_dirname_result${2}"
14830 # func_basename file
14831 func_basename ()
14833 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14837 # func_stripname prefix suffix name
14838 # strip PREFIX and SUFFIX off of NAME.
14839 # PREFIX and SUFFIX must not contain globbing or regex special
14840 # characters, hashes, percent signs, but SUFFIX may contain a leading
14841 # dot (in which case that matches only a dot).
14842 # func_strip_suffix prefix name
14843 func_stripname ()
14845 case ${2} in
14846 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14847 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14848 esac
14851 # sed scripts:
14852 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14853 my_sed_long_arg='1s/^-[^=]*=//'
14855 # func_opt_split
14856 func_opt_split ()
14858 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14859 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14862 # func_lo2o object
14863 func_lo2o ()
14865 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14868 # func_xform libobj-or-source
14869 func_xform ()
14871 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14874 # func_arith arithmetic-term...
14875 func_arith ()
14877 func_arith_result=`expr "$@"`
14880 # func_len string
14881 # STRING may not start with a hyphen.
14882 func_len ()
14884 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14887 _LT_EOF
14888 esac
14890 case $lt_shell_append in
14891 yes)
14892 cat << \_LT_EOF >> "$cfgfile"
14894 # func_append var value
14895 # Append VALUE to the end of shell variable VAR.
14896 func_append ()
14898 eval "$1+=\$2"
14900 _LT_EOF
14903 cat << \_LT_EOF >> "$cfgfile"
14905 # func_append var value
14906 # Append VALUE to the end of shell variable VAR.
14907 func_append ()
14909 eval "$1=\$$1\$2"
14912 _LT_EOF
14914 esac
14917 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14918 || (rm -f "$cfgfile"; exit 1)
14920 mv -f "$cfgfile" "$ofile" ||
14921 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14922 chmod +x "$ofile"
14926 esac
14927 done # for ac_tag
14930 as_fn_exit 0
14931 _ACEOF
14932 ac_clean_files=$ac_clean_files_save
14934 test $ac_write_fail = 0 ||
14935 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14938 # configure is writing to config.log, and then calls config.status.
14939 # config.status does its own redirection, appending to config.log.
14940 # Unfortunately, on DOS this fails, as config.log is still kept open
14941 # by configure, so config.status won't be able to write to it; its
14942 # output is simply discarded. So we exec the FD to /dev/null,
14943 # effectively closing config.log, so it can be properly (re)opened and
14944 # appended to by config.status. When coming back to configure, we
14945 # need to make the FD available again.
14946 if test "$no_create" != yes; then
14947 ac_cs_success=:
14948 ac_config_status_args=
14949 test "$silent" = yes &&
14950 ac_config_status_args="$ac_config_status_args --quiet"
14951 exec 5>/dev/null
14952 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14953 exec 5>>config.log
14954 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14955 # would make configure fail if this is the last instruction.
14956 $ac_cs_success || as_fn_exit 1
14958 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14960 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}