Fix memory barrier patterns for pre PA8800 processors
[official-gcc.git] / lto-plugin / configure
blob37c44d04a0d83d5b546fed1c6b902d8000516246
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 nm to test.
6439 lt_nm_to_check="$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"
6446 for lt_tmp_nm in "$lt_nm_to_check"; do
6447 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6448 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6449 IFS="$lt_save_ifs"
6450 test -z "$ac_dir" && ac_dir=.
6451 # Strip out any user-provided options from the nm to test twice,
6452 # the first time to test to see if nm (rather than its options) has
6453 # an explicit path, the second time to yield a file which can be
6454 # nm'ed itself.
6455 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6456 case "$tmp_nm_path" in
6457 */*|*\\*) tmp_nm="$lt_tmp_nm";;
6458 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6459 esac
6460 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6461 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
6462 # Check to see if the nm accepts a BSD-compat flag.
6463 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6464 # nm: unknown option "B" ignored
6465 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6466 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6467 break
6470 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6471 *$tmp_nm*)
6472 lt_cv_path_NM="$tmp_nm -p"
6473 break
6476 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6477 continue # so that we can try to find one that supports BSD flags
6479 esac
6481 esac
6483 done
6484 IFS="$lt_save_ifs"
6485 done
6486 : ${lt_cv_path_NM=no}
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6489 $as_echo "$lt_cv_path_NM" >&6; }
6490 if test "$lt_cv_path_NM" != "no"; then
6491 NM="$lt_cv_path_NM"
6492 else
6493 # Didn't find any BSD compatible name lister, look for dumpbin.
6494 if test -n "$DUMPBIN"; then :
6495 # Let the user override the test.
6496 else
6497 if test -n "$ac_tool_prefix"; then
6498 for ac_prog in dumpbin "link -dump"
6500 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6501 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6503 $as_echo_n "checking for $ac_word... " >&6; }
6504 if ${ac_cv_prog_DUMPBIN+:} false; then :
6505 $as_echo_n "(cached) " >&6
6506 else
6507 if test -n "$DUMPBIN"; then
6508 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6509 else
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 for as_dir in $PATH
6513 IFS=$as_save_IFS
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6517 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6519 break 2
6521 done
6522 done
6523 IFS=$as_save_IFS
6527 DUMPBIN=$ac_cv_prog_DUMPBIN
6528 if test -n "$DUMPBIN"; then
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6530 $as_echo "$DUMPBIN" >&6; }
6531 else
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533 $as_echo "no" >&6; }
6537 test -n "$DUMPBIN" && break
6538 done
6540 if test -z "$DUMPBIN"; then
6541 ac_ct_DUMPBIN=$DUMPBIN
6542 for ac_prog in dumpbin "link -dump"
6544 # Extract the first word of "$ac_prog", so it can be a program name with args.
6545 set dummy $ac_prog; ac_word=$2
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6547 $as_echo_n "checking for $ac_word... " >&6; }
6548 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6549 $as_echo_n "(cached) " >&6
6550 else
6551 if test -n "$ac_ct_DUMPBIN"; then
6552 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6553 else
6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 for as_dir in $PATH
6557 IFS=$as_save_IFS
6558 test -z "$as_dir" && as_dir=.
6559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6561 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6563 break 2
6565 done
6566 done
6567 IFS=$as_save_IFS
6571 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6572 if test -n "$ac_ct_DUMPBIN"; then
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6574 $as_echo "$ac_ct_DUMPBIN" >&6; }
6575 else
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577 $as_echo "no" >&6; }
6581 test -n "$ac_ct_DUMPBIN" && break
6582 done
6584 if test "x$ac_ct_DUMPBIN" = x; then
6585 DUMPBIN=":"
6586 else
6587 case $cross_compiling:$ac_tool_warned in
6588 yes:)
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6591 ac_tool_warned=yes ;;
6592 esac
6593 DUMPBIN=$ac_ct_DUMPBIN
6597 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6598 *COFF*)
6599 DUMPBIN="$DUMPBIN -symbols"
6602 DUMPBIN=:
6604 esac
6607 if test "$DUMPBIN" != ":"; then
6608 NM="$DUMPBIN"
6611 test -z "$NM" && NM=nm
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6619 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6620 if ${lt_cv_nm_interface+:} false; then :
6621 $as_echo_n "(cached) " >&6
6622 else
6623 lt_cv_nm_interface="BSD nm"
6624 echo "int some_variable = 0;" > conftest.$ac_ext
6625 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6626 (eval "$ac_compile" 2>conftest.err)
6627 cat conftest.err >&5
6628 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6629 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6630 cat conftest.err >&5
6631 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6632 cat conftest.out >&5
6633 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6634 lt_cv_nm_interface="MS dumpbin"
6636 rm -f conftest*
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6639 $as_echo "$lt_cv_nm_interface" >&6; }
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6642 $as_echo_n "checking whether ln -s works... " >&6; }
6643 LN_S=$as_ln_s
6644 if test "$LN_S" = "ln -s"; then
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6646 $as_echo "yes" >&6; }
6647 else
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6649 $as_echo "no, using $LN_S" >&6; }
6652 # find the maximum length of command line arguments
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6654 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6655 if ${lt_cv_sys_max_cmd_len+:} false; then :
6656 $as_echo_n "(cached) " >&6
6657 else
6659 teststring="ABCD"
6661 case $build_os in
6662 msdosdjgpp*)
6663 # On DJGPP, this test can blow up pretty badly due to problems in libc
6664 # (any single argument exceeding 2000 bytes causes a buffer overrun
6665 # during glob expansion). Even if it were fixed, the result of this
6666 # check would be larger than it should be.
6667 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6670 gnu*)
6671 # Under GNU Hurd, this test is not required because there is
6672 # no limit to the length of command line arguments.
6673 # Libtool will interpret -1 as no limit whatsoever
6674 lt_cv_sys_max_cmd_len=-1;
6677 cygwin* | mingw* | cegcc*)
6678 # On Win9x/ME, this test blows up -- it succeeds, but takes
6679 # about 5 minutes as the teststring grows exponentially.
6680 # Worse, since 9x/ME are not pre-emptively multitasking,
6681 # you end up with a "frozen" computer, even though with patience
6682 # the test eventually succeeds (with a max line length of 256k).
6683 # Instead, let's just punt: use the minimum linelength reported by
6684 # all of the supported platforms: 8192 (on NT/2K/XP).
6685 lt_cv_sys_max_cmd_len=8192;
6688 mint*)
6689 # On MiNT this can take a long time and run out of memory.
6690 lt_cv_sys_max_cmd_len=8192;
6693 amigaos*)
6694 # On AmigaOS with pdksh, this test takes hours, literally.
6695 # So we just punt and use a minimum line length of 8192.
6696 lt_cv_sys_max_cmd_len=8192;
6699 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6700 # This has been around since 386BSD, at least. Likely further.
6701 if test -x /sbin/sysctl; then
6702 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6703 elif test -x /usr/sbin/sysctl; then
6704 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6705 else
6706 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6708 # And add a safety zone
6709 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6710 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6713 interix*)
6714 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6715 lt_cv_sys_max_cmd_len=196608
6718 osf*)
6719 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6720 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6721 # nice to cause kernel panics so lets avoid the loop below.
6722 # First set a reasonable default.
6723 lt_cv_sys_max_cmd_len=16384
6725 if test -x /sbin/sysconfig; then
6726 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6727 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6728 esac
6731 sco3.2v5*)
6732 lt_cv_sys_max_cmd_len=102400
6734 sysv5* | sco5v6* | sysv4.2uw2*)
6735 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6736 if test -n "$kargmax"; then
6737 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6738 else
6739 lt_cv_sys_max_cmd_len=32768
6743 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6744 if test -n "$lt_cv_sys_max_cmd_len"; then
6745 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6746 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6747 else
6748 # Make teststring a little bigger before we do anything with it.
6749 # a 1K string should be a reasonable start.
6750 for i in 1 2 3 4 5 6 7 8 ; do
6751 teststring=$teststring$teststring
6752 done
6753 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6754 # If test is not a shell built-in, we'll probably end up computing a
6755 # maximum length that is only half of the actual maximum length, but
6756 # we can't tell.
6757 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6758 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6759 test $i != 17 # 1/2 MB should be enough
6761 i=`expr $i + 1`
6762 teststring=$teststring$teststring
6763 done
6764 # Only check the string length outside the loop.
6765 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6766 teststring=
6767 # Add a significant safety factor because C++ compilers can tack on
6768 # massive amounts of additional arguments before passing them to the
6769 # linker. It appears as though 1/2 is a usable value.
6770 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6773 esac
6777 if test -n $lt_cv_sys_max_cmd_len ; then
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6779 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6780 else
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6782 $as_echo "none" >&6; }
6784 max_cmd_len=$lt_cv_sys_max_cmd_len
6791 : ${CP="cp -f"}
6792 : ${MV="mv -f"}
6793 : ${RM="rm -f"}
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6796 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6797 # Try some XSI features
6798 xsi_shell=no
6799 ( _lt_dummy="a/b/c"
6800 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6801 = c,a/b,, \
6802 && eval 'test $(( 1 + 1 )) -eq 2 \
6803 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6804 && xsi_shell=yes
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6806 $as_echo "$xsi_shell" >&6; }
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6810 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6811 lt_shell_append=no
6812 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6813 >/dev/null 2>&1 \
6814 && lt_shell_append=yes
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6816 $as_echo "$lt_shell_append" >&6; }
6819 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6820 lt_unset=unset
6821 else
6822 lt_unset=false
6829 # test EBCDIC or ASCII
6830 case `echo X|tr X '\101'` in
6831 A) # ASCII based system
6832 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6833 lt_SP2NL='tr \040 \012'
6834 lt_NL2SP='tr \015\012 \040\040'
6836 *) # EBCDIC based system
6837 lt_SP2NL='tr \100 \n'
6838 lt_NL2SP='tr \r\n \100\100'
6840 esac
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6851 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6852 if ${lt_cv_ld_reload_flag+:} false; then :
6853 $as_echo_n "(cached) " >&6
6854 else
6855 lt_cv_ld_reload_flag='-r'
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6858 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6859 reload_flag=$lt_cv_ld_reload_flag
6860 case $reload_flag in
6861 "" | " "*) ;;
6862 *) reload_flag=" $reload_flag" ;;
6863 esac
6864 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6865 case $host_os in
6866 darwin*)
6867 if test "$GCC" = yes; then
6868 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6869 else
6870 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6873 esac
6883 if test -n "$ac_tool_prefix"; then
6884 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6885 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6887 $as_echo_n "checking for $ac_word... " >&6; }
6888 if ${ac_cv_prog_OBJDUMP+:} false; then :
6889 $as_echo_n "(cached) " >&6
6890 else
6891 if test -n "$OBJDUMP"; then
6892 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6893 else
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 for as_dir in $PATH
6897 IFS=$as_save_IFS
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6901 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 break 2
6905 done
6906 done
6907 IFS=$as_save_IFS
6911 OBJDUMP=$ac_cv_prog_OBJDUMP
6912 if test -n "$OBJDUMP"; then
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6914 $as_echo "$OBJDUMP" >&6; }
6915 else
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917 $as_echo "no" >&6; }
6922 if test -z "$ac_cv_prog_OBJDUMP"; then
6923 ac_ct_OBJDUMP=$OBJDUMP
6924 # Extract the first word of "objdump", so it can be a program name with args.
6925 set dummy objdump; ac_word=$2
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6927 $as_echo_n "checking for $ac_word... " >&6; }
6928 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6929 $as_echo_n "(cached) " >&6
6930 else
6931 if test -n "$ac_ct_OBJDUMP"; then
6932 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6933 else
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 for as_dir in $PATH
6937 IFS=$as_save_IFS
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6941 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6943 break 2
6945 done
6946 done
6947 IFS=$as_save_IFS
6951 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6952 if test -n "$ac_ct_OBJDUMP"; then
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6954 $as_echo "$ac_ct_OBJDUMP" >&6; }
6955 else
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957 $as_echo "no" >&6; }
6960 if test "x$ac_ct_OBJDUMP" = x; then
6961 OBJDUMP="false"
6962 else
6963 case $cross_compiling:$ac_tool_warned in
6964 yes:)
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6967 ac_tool_warned=yes ;;
6968 esac
6969 OBJDUMP=$ac_ct_OBJDUMP
6971 else
6972 OBJDUMP="$ac_cv_prog_OBJDUMP"
6975 test -z "$OBJDUMP" && OBJDUMP=objdump
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6986 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6987 if ${lt_cv_deplibs_check_method+:} false; then :
6988 $as_echo_n "(cached) " >&6
6989 else
6990 lt_cv_file_magic_cmd='$MAGIC_CMD'
6991 lt_cv_file_magic_test_file=
6992 lt_cv_deplibs_check_method='unknown'
6993 # Need to set the preceding variable on all platforms that support
6994 # interlibrary dependencies.
6995 # 'none' -- dependencies not supported.
6996 # `unknown' -- same as none, but documents that we really don't know.
6997 # 'pass_all' -- all dependencies passed with no checks.
6998 # 'test_compile' -- check by making test program.
6999 # 'file_magic [[regex]]' -- check by looking for files in library path
7000 # which responds to the $file_magic_cmd with a given extended regex.
7001 # If you have `file' or equivalent on your system and you're not sure
7002 # whether `pass_all' will *always* work, you probably want this one.
7004 case $host_os in
7005 aix[4-9]*)
7006 lt_cv_deplibs_check_method=pass_all
7009 beos*)
7010 lt_cv_deplibs_check_method=pass_all
7013 bsdi[45]*)
7014 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7015 lt_cv_file_magic_cmd='/usr/bin/file -L'
7016 lt_cv_file_magic_test_file=/shlib/libc.so
7019 cygwin*)
7020 # func_win32_libid is a shell function defined in ltmain.sh
7021 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7022 lt_cv_file_magic_cmd='func_win32_libid'
7025 mingw* | pw32*)
7026 # Base MSYS/MinGW do not provide the 'file' command needed by
7027 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7028 # unless we find 'file', for example because we are cross-compiling.
7029 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7030 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7031 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7032 lt_cv_file_magic_cmd='func_win32_libid'
7033 else
7034 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7035 lt_cv_file_magic_cmd='$OBJDUMP -f'
7039 cegcc*)
7040 # use the weaker test based on 'objdump'. See mingw*.
7041 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7042 lt_cv_file_magic_cmd='$OBJDUMP -f'
7045 darwin* | rhapsody*)
7046 lt_cv_deplibs_check_method=pass_all
7049 freebsd* | dragonfly*)
7050 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7051 case $host_cpu in
7052 i*86 )
7053 # Not sure whether the presence of OpenBSD here was a mistake.
7054 # Let's accept both of them until this is cleared up.
7055 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7056 lt_cv_file_magic_cmd=/usr/bin/file
7057 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7059 esac
7060 else
7061 lt_cv_deplibs_check_method=pass_all
7065 gnu*)
7066 lt_cv_deplibs_check_method=pass_all
7069 haiku*)
7070 lt_cv_deplibs_check_method=pass_all
7073 hpux10.20* | hpux11*)
7074 lt_cv_file_magic_cmd=/usr/bin/file
7075 case $host_cpu in
7076 ia64*)
7077 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7078 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7080 hppa*64*)
7081 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]'
7082 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7085 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7086 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7088 esac
7091 interix[3-9]*)
7092 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7096 irix5* | irix6* | nonstopux*)
7097 case $LD in
7098 *-32|*"-32 ") libmagic=32-bit;;
7099 *-n32|*"-n32 ") libmagic=N32;;
7100 *-64|*"-64 ") libmagic=64-bit;;
7101 *) libmagic=never-match;;
7102 esac
7103 lt_cv_deplibs_check_method=pass_all
7106 # This must be Linux ELF.
7107 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
7108 lt_cv_deplibs_check_method=pass_all
7111 netbsd*)
7112 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7113 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7114 else
7115 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7119 newos6*)
7120 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7121 lt_cv_file_magic_cmd=/usr/bin/file
7122 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7125 *nto* | *qnx*)
7126 lt_cv_deplibs_check_method=pass_all
7129 openbsd*)
7130 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7131 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7132 else
7133 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7137 osf3* | osf4* | osf5*)
7138 lt_cv_deplibs_check_method=pass_all
7141 rdos*)
7142 lt_cv_deplibs_check_method=pass_all
7145 solaris*)
7146 lt_cv_deplibs_check_method=pass_all
7149 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7150 lt_cv_deplibs_check_method=pass_all
7153 sysv4 | sysv4.3*)
7154 case $host_vendor in
7155 motorola)
7156 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]'
7157 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7159 ncr)
7160 lt_cv_deplibs_check_method=pass_all
7162 sequent)
7163 lt_cv_file_magic_cmd='/bin/file'
7164 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7166 sni)
7167 lt_cv_file_magic_cmd='/bin/file'
7168 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7169 lt_cv_file_magic_test_file=/lib/libc.so
7171 siemens)
7172 lt_cv_deplibs_check_method=pass_all
7175 lt_cv_deplibs_check_method=pass_all
7177 esac
7180 tpf*)
7181 lt_cv_deplibs_check_method=pass_all
7183 vxworks*)
7184 # Assume VxWorks cross toolchains are built on Linux, possibly
7185 # as canadian for Windows hosts.
7186 lt_cv_deplibs_check_method=pass_all
7188 esac
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7192 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7193 file_magic_cmd=$lt_cv_file_magic_cmd
7194 deplibs_check_method=$lt_cv_deplibs_check_method
7195 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7208 plugin_option=
7209 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
7210 for plugin in $plugin_names; do
7211 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
7212 if test x$plugin_so = x$plugin; then
7213 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
7215 if test x$plugin_so != x$plugin; then
7216 plugin_option="--plugin $plugin_so"
7217 break
7219 done
7221 if test -n "$ac_tool_prefix"; then
7222 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7223 set dummy ${ac_tool_prefix}ar; ac_word=$2
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7225 $as_echo_n "checking for $ac_word... " >&6; }
7226 if ${ac_cv_prog_AR+:} false; then :
7227 $as_echo_n "(cached) " >&6
7228 else
7229 if test -n "$AR"; then
7230 ac_cv_prog_AR="$AR" # Let the user override the test.
7231 else
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 for as_dir in $PATH
7235 IFS=$as_save_IFS
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7239 ac_cv_prog_AR="${ac_tool_prefix}ar"
7240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 break 2
7243 done
7244 done
7245 IFS=$as_save_IFS
7249 AR=$ac_cv_prog_AR
7250 if test -n "$AR"; then
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7252 $as_echo "$AR" >&6; }
7253 else
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7255 $as_echo "no" >&6; }
7260 if test -z "$ac_cv_prog_AR"; then
7261 ac_ct_AR=$AR
7262 # Extract the first word of "ar", so it can be a program name with args.
7263 set dummy ar; ac_word=$2
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7265 $as_echo_n "checking for $ac_word... " >&6; }
7266 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7267 $as_echo_n "(cached) " >&6
7268 else
7269 if test -n "$ac_ct_AR"; then
7270 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7271 else
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 for as_dir in $PATH
7275 IFS=$as_save_IFS
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7279 ac_cv_prog_ac_ct_AR="ar"
7280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7281 break 2
7283 done
7284 done
7285 IFS=$as_save_IFS
7289 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7290 if test -n "$ac_ct_AR"; then
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7292 $as_echo "$ac_ct_AR" >&6; }
7293 else
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295 $as_echo "no" >&6; }
7298 if test "x$ac_ct_AR" = x; then
7299 AR="false"
7300 else
7301 case $cross_compiling:$ac_tool_warned in
7302 yes:)
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7305 ac_tool_warned=yes ;;
7306 esac
7307 AR=$ac_ct_AR
7309 else
7310 AR="$ac_cv_prog_AR"
7313 test -z "$AR" && AR=ar
7314 if test -n "$plugin_option"; then
7315 if $AR --help 2>&1 | grep -q "\--plugin"; then
7316 touch conftest.c
7317 $AR $plugin_option rc conftest.a conftest.c
7318 if test "$?" != 0; then
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
7320 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
7321 else
7322 AR="$AR $plugin_option"
7324 rm -f conftest.*
7327 test -z "$AR_FLAGS" && AR_FLAGS=cru
7339 if test -n "$ac_tool_prefix"; then
7340 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7341 set dummy ${ac_tool_prefix}strip; ac_word=$2
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343 $as_echo_n "checking for $ac_word... " >&6; }
7344 if ${ac_cv_prog_STRIP+:} false; then :
7345 $as_echo_n "(cached) " >&6
7346 else
7347 if test -n "$STRIP"; then
7348 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7349 else
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 for as_dir in $PATH
7353 IFS=$as_save_IFS
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 break 2
7361 done
7362 done
7363 IFS=$as_save_IFS
7367 STRIP=$ac_cv_prog_STRIP
7368 if test -n "$STRIP"; then
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7370 $as_echo "$STRIP" >&6; }
7371 else
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373 $as_echo "no" >&6; }
7378 if test -z "$ac_cv_prog_STRIP"; then
7379 ac_ct_STRIP=$STRIP
7380 # Extract the first word of "strip", so it can be a program name with args.
7381 set dummy strip; ac_word=$2
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7383 $as_echo_n "checking for $ac_word... " >&6; }
7384 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7385 $as_echo_n "(cached) " >&6
7386 else
7387 if test -n "$ac_ct_STRIP"; then
7388 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7389 else
7390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391 for as_dir in $PATH
7393 IFS=$as_save_IFS
7394 test -z "$as_dir" && as_dir=.
7395 for ac_exec_ext in '' $ac_executable_extensions; do
7396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7397 ac_cv_prog_ac_ct_STRIP="strip"
7398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7399 break 2
7401 done
7402 done
7403 IFS=$as_save_IFS
7407 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7408 if test -n "$ac_ct_STRIP"; then
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7410 $as_echo "$ac_ct_STRIP" >&6; }
7411 else
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7413 $as_echo "no" >&6; }
7416 if test "x$ac_ct_STRIP" = x; then
7417 STRIP=":"
7418 else
7419 case $cross_compiling:$ac_tool_warned in
7420 yes:)
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7423 ac_tool_warned=yes ;;
7424 esac
7425 STRIP=$ac_ct_STRIP
7427 else
7428 STRIP="$ac_cv_prog_STRIP"
7431 test -z "$STRIP" && STRIP=:
7438 if test -n "$ac_tool_prefix"; then
7439 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7440 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7442 $as_echo_n "checking for $ac_word... " >&6; }
7443 if ${ac_cv_prog_RANLIB+:} false; then :
7444 $as_echo_n "(cached) " >&6
7445 else
7446 if test -n "$RANLIB"; then
7447 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7448 else
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450 for as_dir in $PATH
7452 IFS=$as_save_IFS
7453 test -z "$as_dir" && as_dir=.
7454 for ac_exec_ext in '' $ac_executable_extensions; do
7455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7456 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7458 break 2
7460 done
7461 done
7462 IFS=$as_save_IFS
7466 RANLIB=$ac_cv_prog_RANLIB
7467 if test -n "$RANLIB"; then
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7469 $as_echo "$RANLIB" >&6; }
7470 else
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472 $as_echo "no" >&6; }
7477 if test -z "$ac_cv_prog_RANLIB"; then
7478 ac_ct_RANLIB=$RANLIB
7479 # Extract the first word of "ranlib", so it can be a program name with args.
7480 set dummy ranlib; ac_word=$2
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7482 $as_echo_n "checking for $ac_word... " >&6; }
7483 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7484 $as_echo_n "(cached) " >&6
7485 else
7486 if test -n "$ac_ct_RANLIB"; then
7487 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7488 else
7489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490 for as_dir in $PATH
7492 IFS=$as_save_IFS
7493 test -z "$as_dir" && as_dir=.
7494 for ac_exec_ext in '' $ac_executable_extensions; do
7495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7496 ac_cv_prog_ac_ct_RANLIB="ranlib"
7497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7498 break 2
7500 done
7501 done
7502 IFS=$as_save_IFS
7506 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7507 if test -n "$ac_ct_RANLIB"; then
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7509 $as_echo "$ac_ct_RANLIB" >&6; }
7510 else
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7512 $as_echo "no" >&6; }
7515 if test "x$ac_ct_RANLIB" = x; then
7516 RANLIB=":"
7517 else
7518 case $cross_compiling:$ac_tool_warned in
7519 yes:)
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7522 ac_tool_warned=yes ;;
7523 esac
7524 RANLIB=$ac_ct_RANLIB
7526 else
7527 RANLIB="$ac_cv_prog_RANLIB"
7530 test -z "$RANLIB" && RANLIB=:
7531 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7532 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7533 RANLIB="$RANLIB $plugin_option"
7542 # Determine commands to create old-style static archives.
7543 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7544 old_postinstall_cmds='chmod 644 $oldlib'
7545 old_postuninstall_cmds=
7547 if test -n "$RANLIB"; then
7548 case $host_os in
7549 openbsd*)
7550 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7553 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7555 esac
7556 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7559 case $host_os in
7560 darwin*)
7561 lock_old_archive_extraction=yes ;;
7563 lock_old_archive_extraction=no ;;
7564 esac
7604 # If no C compiler was specified, use CC.
7605 LTCC=${LTCC-"$CC"}
7607 # If no C compiler flags were specified, use CFLAGS.
7608 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7610 # Allow CC to be a program name with arguments.
7611 compiler=$CC
7614 # Check for command to grab the raw symbol name followed by C symbol from nm.
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7616 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7617 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7618 $as_echo_n "(cached) " >&6
7619 else
7621 # These are sane defaults that work on at least a few old systems.
7622 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7624 # Character class describing NM global symbol codes.
7625 symcode='[BCDEGRST]'
7627 # Regexp to match symbols that can be accessed directly from C.
7628 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7630 # Define system-specific variables.
7631 case $host_os in
7632 aix*)
7633 symcode='[BCDT]'
7635 cygwin* | mingw* | pw32* | cegcc*)
7636 symcode='[ABCDGISTW]'
7638 hpux*)
7639 if test "$host_cpu" = ia64; then
7640 symcode='[ABCDEGRST]'
7643 irix* | nonstopux*)
7644 symcode='[BCDEGRST]'
7646 osf*)
7647 symcode='[BCDEGQRST]'
7649 solaris*)
7650 symcode='[BCDRT]'
7652 sco3.2v5*)
7653 symcode='[DT]'
7655 sysv4.2uw2*)
7656 symcode='[DT]'
7658 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7659 symcode='[ABDT]'
7661 sysv4)
7662 symcode='[DFNSTU]'
7664 esac
7666 # If we're using GNU nm, then use its standard symbol codes.
7667 case `$NM -V 2>&1` in
7668 *GNU* | *'with BFD'*)
7669 symcode='[ABCDGIRSTW]' ;;
7670 esac
7672 # Transform an extracted symbol line into a proper C declaration.
7673 # Some systems (esp. on ia64) link data and code symbols differently,
7674 # so use this general approach.
7675 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7677 # Transform an extracted symbol line into symbol name and symbol address
7678 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7679 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'"
7681 # Handle CRLF in mingw tool chain
7682 opt_cr=
7683 case $build_os in
7684 mingw*)
7685 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7687 esac
7689 # Try without a prefix underscore, then with it.
7690 for ac_symprfx in "" "_"; do
7692 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7693 symxfrm="\\1 $ac_symprfx\\2 \\2"
7695 # Write the raw and C identifiers.
7696 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7697 # Fake it for dumpbin and say T for any non-static function
7698 # and D for any global variable.
7699 # Also find C++ and __fastcall symbols from MSVC++,
7700 # which start with @ or ?.
7701 lt_cv_sys_global_symbol_pipe="$AWK '"\
7702 " {last_section=section; section=\$ 3};"\
7703 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7704 " \$ 0!~/External *\|/{next};"\
7705 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7706 " {if(hide[section]) next};"\
7707 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7708 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7709 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7710 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7711 " ' prfx=^$ac_symprfx"
7712 else
7713 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7716 # Check to see that the pipe works correctly.
7717 pipe_works=no
7719 rm -f conftest*
7720 cat > conftest.$ac_ext <<_LT_EOF
7721 #ifdef __cplusplus
7722 extern "C" {
7723 #endif
7724 char nm_test_var;
7725 void nm_test_func(void);
7726 void nm_test_func(void){}
7727 #ifdef __cplusplus
7729 #endif
7730 int main(){nm_test_var='a';nm_test_func();return(0);}
7731 _LT_EOF
7733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7734 (eval $ac_compile) 2>&5
7735 ac_status=$?
7736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7737 test $ac_status = 0; }; then
7738 # Now try to grab the symbols.
7739 nlist=conftest.nm
7740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7741 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7742 ac_status=$?
7743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7744 test $ac_status = 0; } && test -s "$nlist"; then
7745 # Try sorting and uniquifying the output.
7746 if sort "$nlist" | uniq > "$nlist"T; then
7747 mv -f "$nlist"T "$nlist"
7748 else
7749 rm -f "$nlist"T
7752 # Make sure that we snagged all the symbols we need.
7753 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7754 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7755 cat <<_LT_EOF > conftest.$ac_ext
7756 #ifdef __cplusplus
7757 extern "C" {
7758 #endif
7760 _LT_EOF
7761 # Now generate the symbol file.
7762 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7764 cat <<_LT_EOF >> conftest.$ac_ext
7766 /* The mapping between symbol names and symbols. */
7767 const struct {
7768 const char *name;
7769 void *address;
7771 lt__PROGRAM__LTX_preloaded_symbols[] =
7773 { "@PROGRAM@", (void *) 0 },
7774 _LT_EOF
7775 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7776 cat <<\_LT_EOF >> conftest.$ac_ext
7777 {0, (void *) 0}
7780 /* This works around a problem in FreeBSD linker */
7781 #ifdef FREEBSD_WORKAROUND
7782 static const void *lt_preloaded_setup() {
7783 return lt__PROGRAM__LTX_preloaded_symbols;
7785 #endif
7787 #ifdef __cplusplus
7789 #endif
7790 _LT_EOF
7791 # Now try linking the two files.
7792 mv conftest.$ac_objext conftstm.$ac_objext
7793 lt_save_LIBS="$LIBS"
7794 lt_save_CFLAGS="$CFLAGS"
7795 LIBS="conftstm.$ac_objext"
7796 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7798 (eval $ac_link) 2>&5
7799 ac_status=$?
7800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7801 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7802 pipe_works=yes
7804 LIBS="$lt_save_LIBS"
7805 CFLAGS="$lt_save_CFLAGS"
7806 else
7807 echo "cannot find nm_test_func in $nlist" >&5
7809 else
7810 echo "cannot find nm_test_var in $nlist" >&5
7812 else
7813 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7815 else
7816 echo "$progname: failed program was:" >&5
7817 cat conftest.$ac_ext >&5
7819 rm -rf conftest* conftst*
7821 # Do not use the global_symbol_pipe unless it works.
7822 if test "$pipe_works" = yes; then
7823 break
7824 else
7825 lt_cv_sys_global_symbol_pipe=
7827 done
7831 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7832 lt_cv_sys_global_symbol_to_cdecl=
7834 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7836 $as_echo "failed" >&6; }
7837 else
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7839 $as_echo "ok" >&6; }
7863 # Check whether --enable-libtool-lock was given.
7864 if test "${enable_libtool_lock+set}" = set; then :
7865 enableval=$enable_libtool_lock;
7868 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7870 # Some flags need to be propagated to the compiler or linker for good
7871 # libtool support.
7872 case $host in
7873 ia64-*-hpux*)
7874 # Find out which ABI we are using.
7875 echo 'int i;' > conftest.$ac_ext
7876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7877 (eval $ac_compile) 2>&5
7878 ac_status=$?
7879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7880 test $ac_status = 0; }; then
7881 case `/usr/bin/file conftest.$ac_objext` in
7882 *ELF-32*)
7883 HPUX_IA64_MODE="32"
7885 *ELF-64*)
7886 HPUX_IA64_MODE="64"
7888 esac
7890 rm -rf conftest*
7892 *-*-irix6*)
7893 # Find out which ABI we are using.
7894 echo '#line '$LINENO' "configure"' > 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 if test "$lt_cv_prog_gnu_ld" = yes; then
7901 case `/usr/bin/file conftest.$ac_objext` in
7902 *32-bit*)
7903 LD="${LD-ld} -melf32bsmip"
7905 *N32*)
7906 LD="${LD-ld} -melf32bmipn32"
7908 *64-bit*)
7909 LD="${LD-ld} -melf64bmip"
7911 esac
7912 else
7913 case `/usr/bin/file conftest.$ac_objext` in
7914 *32-bit*)
7915 LD="${LD-ld} -32"
7917 *N32*)
7918 LD="${LD-ld} -n32"
7920 *64-bit*)
7921 LD="${LD-ld} -64"
7923 esac
7926 rm -rf conftest*
7929 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7930 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7931 # Find out which ABI we are using.
7932 echo 'int i;' > conftest.$ac_ext
7933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7934 (eval $ac_compile) 2>&5
7935 ac_status=$?
7936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7937 test $ac_status = 0; }; then
7938 case `/usr/bin/file conftest.o` in
7939 *32-bit*)
7940 case $host in
7941 x86_64-*kfreebsd*-gnu)
7942 LD="${LD-ld} -m elf_i386_fbsd"
7944 x86_64-*linux*)
7945 case `/usr/bin/file conftest.o` in
7946 *x86-64*)
7947 LD="${LD-ld} -m elf32_x86_64"
7950 LD="${LD-ld} -m elf_i386"
7952 esac
7954 powerpc64le-*linux*)
7955 LD="${LD-ld} -m elf32lppclinux"
7957 powerpc64-*linux*)
7958 LD="${LD-ld} -m elf32ppclinux"
7960 s390x-*linux*)
7961 LD="${LD-ld} -m elf_s390"
7963 sparc64-*linux*)
7964 LD="${LD-ld} -m elf32_sparc"
7966 esac
7968 *64-bit*)
7969 case $host in
7970 x86_64-*kfreebsd*-gnu)
7971 LD="${LD-ld} -m elf_x86_64_fbsd"
7973 x86_64-*linux*)
7974 LD="${LD-ld} -m elf_x86_64"
7976 powerpcle-*linux*)
7977 LD="${LD-ld} -m elf64lppc"
7979 powerpc-*linux*)
7980 LD="${LD-ld} -m elf64ppc"
7982 s390*-*linux*|s390*-*tpf*)
7983 LD="${LD-ld} -m elf64_s390"
7985 sparc*-*linux*)
7986 LD="${LD-ld} -m elf64_sparc"
7988 esac
7990 esac
7992 rm -rf conftest*
7995 *-*-sco3.2v5*)
7996 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7997 SAVE_CFLAGS="$CFLAGS"
7998 CFLAGS="$CFLAGS -belf"
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8000 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8001 if ${lt_cv_cc_needs_belf+:} false; then :
8002 $as_echo_n "(cached) " >&6
8003 else
8004 ac_ext=c
8005 ac_cpp='$CPP $CPPFLAGS'
8006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011 /* end confdefs.h. */
8014 main ()
8018 return 0;
8020 _ACEOF
8021 if ac_fn_c_try_link "$LINENO"; then :
8022 lt_cv_cc_needs_belf=yes
8023 else
8024 lt_cv_cc_needs_belf=no
8026 rm -f core conftest.err conftest.$ac_objext \
8027 conftest$ac_exeext conftest.$ac_ext
8028 ac_ext=c
8029 ac_cpp='$CPP $CPPFLAGS'
8030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8036 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8037 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8038 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8039 CFLAGS="$SAVE_CFLAGS"
8042 sparc*-*solaris*)
8043 # Find out which ABI we are using.
8044 echo 'int i;' > conftest.$ac_ext
8045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8046 (eval $ac_compile) 2>&5
8047 ac_status=$?
8048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8049 test $ac_status = 0; }; then
8050 case `/usr/bin/file conftest.o` in
8051 *64-bit*)
8052 case $lt_cv_prog_gnu_ld in
8053 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8055 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8056 LD="${LD-ld} -64"
8059 esac
8061 esac
8063 rm -rf conftest*
8065 esac
8067 need_locks="$enable_libtool_lock"
8070 case $host_os in
8071 rhapsody* | darwin*)
8072 if test -n "$ac_tool_prefix"; then
8073 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8074 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076 $as_echo_n "checking for $ac_word... " >&6; }
8077 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8078 $as_echo_n "(cached) " >&6
8079 else
8080 if test -n "$DSYMUTIL"; then
8081 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8082 else
8083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084 for as_dir in $PATH
8086 IFS=$as_save_IFS
8087 test -z "$as_dir" && as_dir=.
8088 for ac_exec_ext in '' $ac_executable_extensions; do
8089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8090 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8092 break 2
8094 done
8095 done
8096 IFS=$as_save_IFS
8100 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8101 if test -n "$DSYMUTIL"; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8103 $as_echo "$DSYMUTIL" >&6; }
8104 else
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106 $as_echo "no" >&6; }
8111 if test -z "$ac_cv_prog_DSYMUTIL"; then
8112 ac_ct_DSYMUTIL=$DSYMUTIL
8113 # Extract the first word of "dsymutil", so it can be a program name with args.
8114 set dummy dsymutil; ac_word=$2
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8116 $as_echo_n "checking for $ac_word... " >&6; }
8117 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8118 $as_echo_n "(cached) " >&6
8119 else
8120 if test -n "$ac_ct_DSYMUTIL"; then
8121 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8122 else
8123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124 for as_dir in $PATH
8126 IFS=$as_save_IFS
8127 test -z "$as_dir" && as_dir=.
8128 for ac_exec_ext in '' $ac_executable_extensions; do
8129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8130 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8132 break 2
8134 done
8135 done
8136 IFS=$as_save_IFS
8140 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8141 if test -n "$ac_ct_DSYMUTIL"; then
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8143 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8144 else
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146 $as_echo "no" >&6; }
8149 if test "x$ac_ct_DSYMUTIL" = x; then
8150 DSYMUTIL=":"
8151 else
8152 case $cross_compiling:$ac_tool_warned in
8153 yes:)
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8156 ac_tool_warned=yes ;;
8157 esac
8158 DSYMUTIL=$ac_ct_DSYMUTIL
8160 else
8161 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8164 if test -n "$ac_tool_prefix"; then
8165 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8166 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8168 $as_echo_n "checking for $ac_word... " >&6; }
8169 if ${ac_cv_prog_NMEDIT+:} false; then :
8170 $as_echo_n "(cached) " >&6
8171 else
8172 if test -n "$NMEDIT"; then
8173 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8174 else
8175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176 for as_dir in $PATH
8178 IFS=$as_save_IFS
8179 test -z "$as_dir" && as_dir=.
8180 for ac_exec_ext in '' $ac_executable_extensions; do
8181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8182 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8184 break 2
8186 done
8187 done
8188 IFS=$as_save_IFS
8192 NMEDIT=$ac_cv_prog_NMEDIT
8193 if test -n "$NMEDIT"; then
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8195 $as_echo "$NMEDIT" >&6; }
8196 else
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8198 $as_echo "no" >&6; }
8203 if test -z "$ac_cv_prog_NMEDIT"; then
8204 ac_ct_NMEDIT=$NMEDIT
8205 # Extract the first word of "nmedit", so it can be a program name with args.
8206 set dummy nmedit; ac_word=$2
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8208 $as_echo_n "checking for $ac_word... " >&6; }
8209 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8210 $as_echo_n "(cached) " >&6
8211 else
8212 if test -n "$ac_ct_NMEDIT"; then
8213 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8214 else
8215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8216 for as_dir in $PATH
8218 IFS=$as_save_IFS
8219 test -z "$as_dir" && as_dir=.
8220 for ac_exec_ext in '' $ac_executable_extensions; do
8221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8222 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8224 break 2
8226 done
8227 done
8228 IFS=$as_save_IFS
8232 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8233 if test -n "$ac_ct_NMEDIT"; then
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8235 $as_echo "$ac_ct_NMEDIT" >&6; }
8236 else
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8238 $as_echo "no" >&6; }
8241 if test "x$ac_ct_NMEDIT" = x; then
8242 NMEDIT=":"
8243 else
8244 case $cross_compiling:$ac_tool_warned in
8245 yes:)
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8248 ac_tool_warned=yes ;;
8249 esac
8250 NMEDIT=$ac_ct_NMEDIT
8252 else
8253 NMEDIT="$ac_cv_prog_NMEDIT"
8256 if test -n "$ac_tool_prefix"; then
8257 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8258 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8260 $as_echo_n "checking for $ac_word... " >&6; }
8261 if ${ac_cv_prog_LIPO+:} false; then :
8262 $as_echo_n "(cached) " >&6
8263 else
8264 if test -n "$LIPO"; then
8265 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8266 else
8267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8268 for as_dir in $PATH
8270 IFS=$as_save_IFS
8271 test -z "$as_dir" && as_dir=.
8272 for ac_exec_ext in '' $ac_executable_extensions; do
8273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8274 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8276 break 2
8278 done
8279 done
8280 IFS=$as_save_IFS
8284 LIPO=$ac_cv_prog_LIPO
8285 if test -n "$LIPO"; then
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8287 $as_echo "$LIPO" >&6; }
8288 else
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8290 $as_echo "no" >&6; }
8295 if test -z "$ac_cv_prog_LIPO"; then
8296 ac_ct_LIPO=$LIPO
8297 # Extract the first word of "lipo", so it can be a program name with args.
8298 set dummy lipo; ac_word=$2
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8300 $as_echo_n "checking for $ac_word... " >&6; }
8301 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8302 $as_echo_n "(cached) " >&6
8303 else
8304 if test -n "$ac_ct_LIPO"; then
8305 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8306 else
8307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8308 for as_dir in $PATH
8310 IFS=$as_save_IFS
8311 test -z "$as_dir" && as_dir=.
8312 for ac_exec_ext in '' $ac_executable_extensions; do
8313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8314 ac_cv_prog_ac_ct_LIPO="lipo"
8315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8316 break 2
8318 done
8319 done
8320 IFS=$as_save_IFS
8324 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8325 if test -n "$ac_ct_LIPO"; then
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8327 $as_echo "$ac_ct_LIPO" >&6; }
8328 else
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8330 $as_echo "no" >&6; }
8333 if test "x$ac_ct_LIPO" = x; then
8334 LIPO=":"
8335 else
8336 case $cross_compiling:$ac_tool_warned in
8337 yes:)
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8340 ac_tool_warned=yes ;;
8341 esac
8342 LIPO=$ac_ct_LIPO
8344 else
8345 LIPO="$ac_cv_prog_LIPO"
8348 if test -n "$ac_tool_prefix"; then
8349 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8350 set dummy ${ac_tool_prefix}otool; ac_word=$2
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8352 $as_echo_n "checking for $ac_word... " >&6; }
8353 if ${ac_cv_prog_OTOOL+:} false; then :
8354 $as_echo_n "(cached) " >&6
8355 else
8356 if test -n "$OTOOL"; then
8357 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8358 else
8359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360 for as_dir in $PATH
8362 IFS=$as_save_IFS
8363 test -z "$as_dir" && as_dir=.
8364 for ac_exec_ext in '' $ac_executable_extensions; do
8365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8366 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8368 break 2
8370 done
8371 done
8372 IFS=$as_save_IFS
8376 OTOOL=$ac_cv_prog_OTOOL
8377 if test -n "$OTOOL"; then
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8379 $as_echo "$OTOOL" >&6; }
8380 else
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8382 $as_echo "no" >&6; }
8387 if test -z "$ac_cv_prog_OTOOL"; then
8388 ac_ct_OTOOL=$OTOOL
8389 # Extract the first word of "otool", so it can be a program name with args.
8390 set dummy otool; ac_word=$2
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8392 $as_echo_n "checking for $ac_word... " >&6; }
8393 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8394 $as_echo_n "(cached) " >&6
8395 else
8396 if test -n "$ac_ct_OTOOL"; then
8397 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8398 else
8399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8400 for as_dir in $PATH
8402 IFS=$as_save_IFS
8403 test -z "$as_dir" && as_dir=.
8404 for ac_exec_ext in '' $ac_executable_extensions; do
8405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8406 ac_cv_prog_ac_ct_OTOOL="otool"
8407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8408 break 2
8410 done
8411 done
8412 IFS=$as_save_IFS
8416 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8417 if test -n "$ac_ct_OTOOL"; then
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8419 $as_echo "$ac_ct_OTOOL" >&6; }
8420 else
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8422 $as_echo "no" >&6; }
8425 if test "x$ac_ct_OTOOL" = x; then
8426 OTOOL=":"
8427 else
8428 case $cross_compiling:$ac_tool_warned in
8429 yes:)
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8432 ac_tool_warned=yes ;;
8433 esac
8434 OTOOL=$ac_ct_OTOOL
8436 else
8437 OTOOL="$ac_cv_prog_OTOOL"
8440 if test -n "$ac_tool_prefix"; then
8441 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8442 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8444 $as_echo_n "checking for $ac_word... " >&6; }
8445 if ${ac_cv_prog_OTOOL64+:} false; then :
8446 $as_echo_n "(cached) " >&6
8447 else
8448 if test -n "$OTOOL64"; then
8449 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8450 else
8451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8452 for as_dir in $PATH
8454 IFS=$as_save_IFS
8455 test -z "$as_dir" && as_dir=.
8456 for ac_exec_ext in '' $ac_executable_extensions; do
8457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8458 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8460 break 2
8462 done
8463 done
8464 IFS=$as_save_IFS
8468 OTOOL64=$ac_cv_prog_OTOOL64
8469 if test -n "$OTOOL64"; then
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8471 $as_echo "$OTOOL64" >&6; }
8472 else
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8474 $as_echo "no" >&6; }
8479 if test -z "$ac_cv_prog_OTOOL64"; then
8480 ac_ct_OTOOL64=$OTOOL64
8481 # Extract the first word of "otool64", so it can be a program name with args.
8482 set dummy otool64; ac_word=$2
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8484 $as_echo_n "checking for $ac_word... " >&6; }
8485 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8486 $as_echo_n "(cached) " >&6
8487 else
8488 if test -n "$ac_ct_OTOOL64"; then
8489 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8490 else
8491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8492 for as_dir in $PATH
8494 IFS=$as_save_IFS
8495 test -z "$as_dir" && as_dir=.
8496 for ac_exec_ext in '' $ac_executable_extensions; do
8497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8498 ac_cv_prog_ac_ct_OTOOL64="otool64"
8499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8500 break 2
8502 done
8503 done
8504 IFS=$as_save_IFS
8508 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8509 if test -n "$ac_ct_OTOOL64"; then
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8511 $as_echo "$ac_ct_OTOOL64" >&6; }
8512 else
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8514 $as_echo "no" >&6; }
8517 if test "x$ac_ct_OTOOL64" = x; then
8518 OTOOL64=":"
8519 else
8520 case $cross_compiling:$ac_tool_warned in
8521 yes:)
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8524 ac_tool_warned=yes ;;
8525 esac
8526 OTOOL64=$ac_ct_OTOOL64
8528 else
8529 OTOOL64="$ac_cv_prog_OTOOL64"
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8559 $as_echo_n "checking for -single_module linker flag... " >&6; }
8560 if ${lt_cv_apple_cc_single_mod+:} false; then :
8561 $as_echo_n "(cached) " >&6
8562 else
8563 lt_cv_apple_cc_single_mod=no
8564 if test -z "${LT_MULTI_MODULE}"; then
8565 # By default we will add the -single_module flag. You can override
8566 # by either setting the environment variable LT_MULTI_MODULE
8567 # non-empty at configure time, or by adding -multi_module to the
8568 # link flags.
8569 rm -rf libconftest.dylib*
8570 echo "int foo(void){return 1;}" > conftest.c
8571 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8572 -dynamiclib -Wl,-single_module conftest.c" >&5
8573 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8574 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8575 _lt_result=$?
8576 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8577 lt_cv_apple_cc_single_mod=yes
8578 else
8579 cat conftest.err >&5
8581 rm -rf libconftest.dylib*
8582 rm -f conftest.*
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8586 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8588 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8589 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8590 $as_echo_n "(cached) " >&6
8591 else
8592 lt_cv_ld_exported_symbols_list=no
8593 save_LDFLAGS=$LDFLAGS
8594 echo "_main" > conftest.sym
8595 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8597 /* end confdefs.h. */
8600 main ()
8604 return 0;
8606 _ACEOF
8607 if ac_fn_c_try_link "$LINENO"; then :
8608 lt_cv_ld_exported_symbols_list=yes
8609 else
8610 lt_cv_ld_exported_symbols_list=no
8612 rm -f core conftest.err conftest.$ac_objext \
8613 conftest$ac_exeext conftest.$ac_ext
8614 LDFLAGS="$save_LDFLAGS"
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8618 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8620 $as_echo_n "checking for -force_load linker flag... " >&6; }
8621 if ${lt_cv_ld_force_load+:} false; then :
8622 $as_echo_n "(cached) " >&6
8623 else
8624 lt_cv_ld_force_load=no
8625 cat > conftest.c << _LT_EOF
8626 int forced_loaded() { return 2;}
8627 _LT_EOF
8628 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8629 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8630 echo "$AR cru libconftest.a conftest.o" >&5
8631 $AR cru libconftest.a conftest.o 2>&5
8632 cat > conftest.c << _LT_EOF
8633 int main() { return 0;}
8634 _LT_EOF
8635 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8636 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8637 _lt_result=$?
8638 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8639 lt_cv_ld_force_load=yes
8640 else
8641 cat conftest.err >&5
8643 rm -f conftest.err libconftest.a conftest conftest.c
8644 rm -rf conftest.dSYM
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8648 $as_echo "$lt_cv_ld_force_load" >&6; }
8649 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8650 # build without first building modern cctools / linker.
8651 case $host_cpu-$host_os in
8652 *-rhapsody* | *-darwin1.[012])
8653 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8654 *-darwin1.*)
8655 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8656 *-darwin*)
8657 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8658 # deployment target is forced to an earlier version.
8659 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8660 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8662 10.[012][,.]*)
8663 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8667 esac
8669 esac
8670 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8671 _lt_dar_single_mod='$single_module'
8673 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8674 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8675 else
8676 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8678 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8679 _lt_dsymutil='~$DSYMUTIL $lib || :'
8680 else
8681 _lt_dsymutil=
8684 esac
8686 for ac_header in dlfcn.h
8687 do :
8688 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8690 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8691 cat >>confdefs.h <<_ACEOF
8692 #define HAVE_DLFCN_H 1
8693 _ACEOF
8697 done
8703 # Set options
8707 enable_dlopen=no
8710 enable_win32_dll=no
8713 # Check whether --enable-shared was given.
8714 if test "${enable_shared+set}" = set; then :
8715 enableval=$enable_shared; p=${PACKAGE-default}
8716 case $enableval in
8717 yes) enable_shared=yes ;;
8718 no) enable_shared=no ;;
8720 enable_shared=no
8721 # Look at the argument we got. We use all the common list separators.
8722 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8723 for pkg in $enableval; do
8724 IFS="$lt_save_ifs"
8725 if test "X$pkg" = "X$p"; then
8726 enable_shared=yes
8728 done
8729 IFS="$lt_save_ifs"
8731 esac
8732 else
8733 enable_shared=yes
8744 # Check whether --enable-static was given.
8745 if test "${enable_static+set}" = set; then :
8746 enableval=$enable_static; p=${PACKAGE-default}
8747 case $enableval in
8748 yes) enable_static=yes ;;
8749 no) enable_static=no ;;
8751 enable_static=no
8752 # Look at the argument we got. We use all the common list separators.
8753 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8754 for pkg in $enableval; do
8755 IFS="$lt_save_ifs"
8756 if test "X$pkg" = "X$p"; then
8757 enable_static=yes
8759 done
8760 IFS="$lt_save_ifs"
8762 esac
8763 else
8764 enable_static=yes
8776 # Check whether --with-pic was given.
8777 if test "${with_pic+set}" = set; then :
8778 withval=$with_pic; pic_mode="$withval"
8779 else
8780 pic_mode=default
8784 test -z "$pic_mode" && pic_mode=default
8792 # Check whether --enable-fast-install was given.
8793 if test "${enable_fast_install+set}" = set; then :
8794 enableval=$enable_fast_install; p=${PACKAGE-default}
8795 case $enableval in
8796 yes) enable_fast_install=yes ;;
8797 no) enable_fast_install=no ;;
8799 enable_fast_install=no
8800 # Look at the argument we got. We use all the common list separators.
8801 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8802 for pkg in $enableval; do
8803 IFS="$lt_save_ifs"
8804 if test "X$pkg" = "X$p"; then
8805 enable_fast_install=yes
8807 done
8808 IFS="$lt_save_ifs"
8810 esac
8811 else
8812 enable_fast_install=yes
8825 # This can be used to rebuild libtool when needed
8826 LIBTOOL_DEPS="$ltmain"
8828 # Always use our own libtool.
8829 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8856 test -z "$LN_S" && LN_S="ln -s"
8871 if test -n "${ZSH_VERSION+set}" ; then
8872 setopt NO_GLOB_SUBST
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8876 $as_echo_n "checking for objdir... " >&6; }
8877 if ${lt_cv_objdir+:} false; then :
8878 $as_echo_n "(cached) " >&6
8879 else
8880 rm -f .libs 2>/dev/null
8881 mkdir .libs 2>/dev/null
8882 if test -d .libs; then
8883 lt_cv_objdir=.libs
8884 else
8885 # MS-DOS does not allow filenames that begin with a dot.
8886 lt_cv_objdir=_libs
8888 rmdir .libs 2>/dev/null
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8891 $as_echo "$lt_cv_objdir" >&6; }
8892 objdir=$lt_cv_objdir
8898 cat >>confdefs.h <<_ACEOF
8899 #define LT_OBJDIR "$lt_cv_objdir/"
8900 _ACEOF
8905 case $host_os in
8906 aix3*)
8907 # AIX sometimes has problems with the GCC collect2 program. For some
8908 # reason, if we set the COLLECT_NAMES environment variable, the problems
8909 # vanish in a puff of smoke.
8910 if test "X${COLLECT_NAMES+set}" != Xset; then
8911 COLLECT_NAMES=
8912 export COLLECT_NAMES
8915 esac
8917 # Global variables:
8918 ofile=libtool
8919 can_build_shared=yes
8921 # All known linkers require a `.a' archive for static linking (except MSVC,
8922 # which needs '.lib').
8923 libext=a
8925 with_gnu_ld="$lt_cv_prog_gnu_ld"
8927 old_CC="$CC"
8928 old_CFLAGS="$CFLAGS"
8930 # Set sane defaults for various variables
8931 test -z "$CC" && CC=cc
8932 test -z "$LTCC" && LTCC=$CC
8933 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8934 test -z "$LD" && LD=ld
8935 test -z "$ac_objext" && ac_objext=o
8937 for cc_temp in $compiler""; do
8938 case $cc_temp in
8939 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8940 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8941 \-*) ;;
8942 *) break;;
8943 esac
8944 done
8945 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8948 # Only perform the check for file, if the check method requires it
8949 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8950 case $deplibs_check_method in
8951 file_magic*)
8952 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8954 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8955 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8956 $as_echo_n "(cached) " >&6
8957 else
8958 case $MAGIC_CMD in
8959 [\\/*] | ?:[\\/]*)
8960 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8963 lt_save_MAGIC_CMD="$MAGIC_CMD"
8964 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8965 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8966 for ac_dir in $ac_dummy; do
8967 IFS="$lt_save_ifs"
8968 test -z "$ac_dir" && ac_dir=.
8969 if test -f $ac_dir/${ac_tool_prefix}file; then
8970 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8971 if test -n "$file_magic_test_file"; then
8972 case $deplibs_check_method in
8973 "file_magic "*)
8974 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8975 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8976 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8977 $EGREP "$file_magic_regex" > /dev/null; then
8979 else
8980 cat <<_LT_EOF 1>&2
8982 *** Warning: the command libtool uses to detect shared libraries,
8983 *** $file_magic_cmd, produces output that libtool cannot recognize.
8984 *** The result is that libtool may fail to recognize shared libraries
8985 *** as such. This will affect the creation of libtool libraries that
8986 *** depend on shared libraries, but programs linked with such libtool
8987 *** libraries will work regardless of this problem. Nevertheless, you
8988 *** may want to report the problem to your system manager and/or to
8989 *** bug-libtool@gnu.org
8991 _LT_EOF
8992 fi ;;
8993 esac
8995 break
8997 done
8998 IFS="$lt_save_ifs"
8999 MAGIC_CMD="$lt_save_MAGIC_CMD"
9001 esac
9004 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9005 if test -n "$MAGIC_CMD"; then
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9007 $as_echo "$MAGIC_CMD" >&6; }
9008 else
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9010 $as_echo "no" >&6; }
9017 if test -z "$lt_cv_path_MAGIC_CMD"; then
9018 if test -n "$ac_tool_prefix"; then
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9020 $as_echo_n "checking for file... " >&6; }
9021 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9022 $as_echo_n "(cached) " >&6
9023 else
9024 case $MAGIC_CMD in
9025 [\\/*] | ?:[\\/]*)
9026 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9029 lt_save_MAGIC_CMD="$MAGIC_CMD"
9030 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9031 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9032 for ac_dir in $ac_dummy; do
9033 IFS="$lt_save_ifs"
9034 test -z "$ac_dir" && ac_dir=.
9035 if test -f $ac_dir/file; then
9036 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9037 if test -n "$file_magic_test_file"; then
9038 case $deplibs_check_method in
9039 "file_magic "*)
9040 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9041 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9042 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9043 $EGREP "$file_magic_regex" > /dev/null; then
9045 else
9046 cat <<_LT_EOF 1>&2
9048 *** Warning: the command libtool uses to detect shared libraries,
9049 *** $file_magic_cmd, produces output that libtool cannot recognize.
9050 *** The result is that libtool may fail to recognize shared libraries
9051 *** as such. This will affect the creation of libtool libraries that
9052 *** depend on shared libraries, but programs linked with such libtool
9053 *** libraries will work regardless of this problem. Nevertheless, you
9054 *** may want to report the problem to your system manager and/or to
9055 *** bug-libtool@gnu.org
9057 _LT_EOF
9058 fi ;;
9059 esac
9061 break
9063 done
9064 IFS="$lt_save_ifs"
9065 MAGIC_CMD="$lt_save_MAGIC_CMD"
9067 esac
9070 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9071 if test -n "$MAGIC_CMD"; then
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9073 $as_echo "$MAGIC_CMD" >&6; }
9074 else
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9076 $as_echo "no" >&6; }
9080 else
9081 MAGIC_CMD=:
9087 esac
9089 # Use C for the default configuration in the libtool script
9091 lt_save_CC="$CC"
9092 ac_ext=c
9093 ac_cpp='$CPP $CPPFLAGS'
9094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9099 # Source file extension for C test sources.
9100 ac_ext=c
9102 # Object file extension for compiled C test sources.
9103 objext=o
9104 objext=$objext
9106 # Code to be used in simple compile tests
9107 lt_simple_compile_test_code="int some_variable = 0;"
9109 # Code to be used in simple link tests
9110 lt_simple_link_test_code='int main(){return(0);}'
9118 # If no C compiler was specified, use CC.
9119 LTCC=${LTCC-"$CC"}
9121 # If no C compiler flags were specified, use CFLAGS.
9122 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9124 # Allow CC to be a program name with arguments.
9125 compiler=$CC
9127 # Save the default compiler, since it gets overwritten when the other
9128 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9129 compiler_DEFAULT=$CC
9131 # save warnings/boilerplate of simple test code
9132 ac_outfile=conftest.$ac_objext
9133 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9134 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9135 _lt_compiler_boilerplate=`cat conftest.err`
9136 $RM conftest*
9138 ac_outfile=conftest.$ac_objext
9139 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9140 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9141 _lt_linker_boilerplate=`cat conftest.err`
9142 $RM -r conftest*
9145 ## CAVEAT EMPTOR:
9146 ## There is no encapsulation within the following macros, do not change
9147 ## the running order or otherwise move them around unless you know exactly
9148 ## what you are doing...
9149 if test -n "$compiler"; then
9151 lt_prog_compiler_no_builtin_flag=
9153 if test "$GCC" = yes; then
9154 case $cc_basename in
9155 nvcc*)
9156 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9158 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9159 esac
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9162 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9163 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9164 $as_echo_n "(cached) " >&6
9165 else
9166 lt_cv_prog_compiler_rtti_exceptions=no
9167 ac_outfile=conftest.$ac_objext
9168 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9169 lt_compiler_flag="-fno-rtti -fno-exceptions"
9170 # Insert the option either (1) after the last *FLAGS variable, or
9171 # (2) before a word containing "conftest.", or (3) at the end.
9172 # Note that $ac_compile itself does not contain backslashes and begins
9173 # with a dollar sign (not a hyphen), so the echo should work correctly.
9174 # The option is referenced via a variable to avoid confusing sed.
9175 lt_compile=`echo "$ac_compile" | $SED \
9176 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9177 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9178 -e 's:$: $lt_compiler_flag:'`
9179 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9180 (eval "$lt_compile" 2>conftest.err)
9181 ac_status=$?
9182 cat conftest.err >&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 if (exit $ac_status) && test -s "$ac_outfile"; then
9185 # The compiler can only warn and ignore the option if not recognized
9186 # So say no if there are warnings other than the usual output.
9187 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9188 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9189 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9190 lt_cv_prog_compiler_rtti_exceptions=yes
9193 $RM conftest*
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9197 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9199 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9200 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9201 else
9212 lt_prog_compiler_wl=
9213 lt_prog_compiler_pic=
9214 lt_prog_compiler_static=
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9217 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9219 if test "$GCC" = yes; then
9220 lt_prog_compiler_wl='-Wl,'
9221 lt_prog_compiler_static='-static'
9223 case $host_os in
9224 aix*)
9225 # All AIX code is PIC.
9226 if test "$host_cpu" = ia64; then
9227 # AIX 5 now supports IA64 processor
9228 lt_prog_compiler_static='-Bstatic'
9230 lt_prog_compiler_pic='-fPIC'
9233 amigaos*)
9234 case $host_cpu in
9235 powerpc)
9236 # see comment about AmigaOS4 .so support
9237 lt_prog_compiler_pic='-fPIC'
9239 m68k)
9240 # FIXME: we need at least 68020 code to build shared libraries, but
9241 # adding the `-m68020' flag to GCC prevents building anything better,
9242 # like `-m68040'.
9243 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9245 esac
9248 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9249 # PIC is the default for these OSes.
9252 mingw* | cygwin* | pw32* | os2* | cegcc*)
9253 # This hack is so that the source file can tell whether it is being
9254 # built for inclusion in a dll (and should export symbols for example).
9255 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9256 # (--disable-auto-import) libraries
9257 lt_prog_compiler_pic='-DDLL_EXPORT'
9260 darwin* | rhapsody*)
9261 # PIC is the default on this platform
9262 # Common symbols not allowed in MH_DYLIB files
9263 lt_prog_compiler_pic='-fno-common'
9266 haiku*)
9267 # PIC is the default for Haiku.
9268 # The "-static" flag exists, but is broken.
9269 lt_prog_compiler_static=
9272 hpux*)
9273 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9274 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9275 # sets the default TLS model and affects inlining.
9276 case $host_cpu in
9277 hppa*64*)
9278 # +Z the default
9281 lt_prog_compiler_pic='-fPIC'
9283 esac
9286 interix[3-9]*)
9287 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9288 # Instead, we relocate shared libraries at runtime.
9291 msdosdjgpp*)
9292 # Just because we use GCC doesn't mean we suddenly get shared libraries
9293 # on systems that don't support them.
9294 lt_prog_compiler_can_build_shared=no
9295 enable_shared=no
9298 *nto* | *qnx*)
9299 # QNX uses GNU C++, but need to define -shared option too, otherwise
9300 # it will coredump.
9301 lt_prog_compiler_pic='-fPIC -shared'
9304 sysv4*MP*)
9305 if test -d /usr/nec; then
9306 lt_prog_compiler_pic=-Kconform_pic
9311 lt_prog_compiler_pic='-fPIC'
9313 esac
9315 case $cc_basename in
9316 nvcc*) # Cuda Compiler Driver 2.2
9317 lt_prog_compiler_wl='-Xlinker '
9318 lt_prog_compiler_pic='-Xcompiler -fPIC'
9320 esac
9321 else
9322 # PORTME Check for flag to pass linker flags through the system compiler.
9323 case $host_os in
9324 aix*)
9325 lt_prog_compiler_wl='-Wl,'
9326 if test "$host_cpu" = ia64; then
9327 # AIX 5 now supports IA64 processor
9328 lt_prog_compiler_static='-Bstatic'
9329 else
9330 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9334 mingw* | cygwin* | pw32* | os2* | cegcc*)
9335 # This hack is so that the source file can tell whether it is being
9336 # built for inclusion in a dll (and should export symbols for example).
9337 lt_prog_compiler_pic='-DDLL_EXPORT'
9340 hpux9* | hpux10* | hpux11*)
9341 lt_prog_compiler_wl='-Wl,'
9342 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9343 # not for PA HP-UX.
9344 case $host_cpu in
9345 hppa*64*|ia64*)
9346 # +Z the default
9349 lt_prog_compiler_pic='+Z'
9351 esac
9352 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9353 lt_prog_compiler_static='${wl}-a ${wl}archive'
9356 irix5* | irix6* | nonstopux*)
9357 lt_prog_compiler_wl='-Wl,'
9358 # PIC (with -KPIC) is the default.
9359 lt_prog_compiler_static='-non_shared'
9362 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9363 case $cc_basename in
9364 # old Intel for x86_64 which still supported -KPIC.
9365 ecc*)
9366 lt_prog_compiler_wl='-Wl,'
9367 lt_prog_compiler_pic='-KPIC'
9368 lt_prog_compiler_static='-static'
9370 # icc used to be incompatible with GCC.
9371 # ICC 10 doesn't accept -KPIC any more.
9372 icc* | ifort*)
9373 lt_prog_compiler_wl='-Wl,'
9374 lt_prog_compiler_pic='-fPIC'
9375 lt_prog_compiler_static='-static'
9377 # Lahey Fortran 8.1.
9378 lf95*)
9379 lt_prog_compiler_wl='-Wl,'
9380 lt_prog_compiler_pic='--shared'
9381 lt_prog_compiler_static='--static'
9383 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9384 # Portland Group compilers (*not* the Pentium gcc compiler,
9385 # which looks to be a dead project)
9386 lt_prog_compiler_wl='-Wl,'
9387 lt_prog_compiler_pic='-fpic'
9388 lt_prog_compiler_static='-Bstatic'
9390 ccc*)
9391 lt_prog_compiler_wl='-Wl,'
9392 # All Alpha code is PIC.
9393 lt_prog_compiler_static='-non_shared'
9395 xl* | bgxl* | bgf* | mpixl*)
9396 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9397 lt_prog_compiler_wl='-Wl,'
9398 lt_prog_compiler_pic='-qpic'
9399 lt_prog_compiler_static='-qstaticlink'
9402 case `$CC -V 2>&1 | sed 5q` in
9403 *Sun\ F* | *Sun*Fortran*)
9404 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9405 lt_prog_compiler_pic='-KPIC'
9406 lt_prog_compiler_static='-Bstatic'
9407 lt_prog_compiler_wl=''
9409 *Sun\ C*)
9410 # Sun C 5.9
9411 lt_prog_compiler_pic='-KPIC'
9412 lt_prog_compiler_static='-Bstatic'
9413 lt_prog_compiler_wl='-Wl,'
9415 esac
9417 esac
9420 newsos6)
9421 lt_prog_compiler_pic='-KPIC'
9422 lt_prog_compiler_static='-Bstatic'
9425 *nto* | *qnx*)
9426 # QNX uses GNU C++, but need to define -shared option too, otherwise
9427 # it will coredump.
9428 lt_prog_compiler_pic='-fPIC -shared'
9431 osf3* | osf4* | osf5*)
9432 lt_prog_compiler_wl='-Wl,'
9433 # All OSF/1 code is PIC.
9434 lt_prog_compiler_static='-non_shared'
9437 rdos*)
9438 lt_prog_compiler_static='-non_shared'
9441 solaris*)
9442 lt_prog_compiler_pic='-KPIC'
9443 lt_prog_compiler_static='-Bstatic'
9444 case $cc_basename in
9445 f77* | f90* | f95*)
9446 lt_prog_compiler_wl='-Qoption ld ';;
9448 lt_prog_compiler_wl='-Wl,';;
9449 esac
9452 sunos4*)
9453 lt_prog_compiler_wl='-Qoption ld '
9454 lt_prog_compiler_pic='-PIC'
9455 lt_prog_compiler_static='-Bstatic'
9458 sysv4 | sysv4.2uw2* | sysv4.3*)
9459 lt_prog_compiler_wl='-Wl,'
9460 lt_prog_compiler_pic='-KPIC'
9461 lt_prog_compiler_static='-Bstatic'
9464 sysv4*MP*)
9465 if test -d /usr/nec ;then
9466 lt_prog_compiler_pic='-Kconform_pic'
9467 lt_prog_compiler_static='-Bstatic'
9471 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9472 lt_prog_compiler_wl='-Wl,'
9473 lt_prog_compiler_pic='-KPIC'
9474 lt_prog_compiler_static='-Bstatic'
9477 unicos*)
9478 lt_prog_compiler_wl='-Wl,'
9479 lt_prog_compiler_can_build_shared=no
9482 uts4*)
9483 lt_prog_compiler_pic='-pic'
9484 lt_prog_compiler_static='-Bstatic'
9488 lt_prog_compiler_can_build_shared=no
9490 esac
9493 case $host_os in
9494 # For platforms which do not support PIC, -DPIC is meaningless:
9495 *djgpp*)
9496 lt_prog_compiler_pic=
9499 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9501 esac
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9503 $as_echo "$lt_prog_compiler_pic" >&6; }
9511 # Check to make sure the PIC flag actually works.
9513 if test -n "$lt_prog_compiler_pic"; then
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9515 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9516 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9517 $as_echo_n "(cached) " >&6
9518 else
9519 lt_cv_prog_compiler_pic_works=no
9520 ac_outfile=conftest.$ac_objext
9521 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9522 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9523 # Insert the option either (1) after the last *FLAGS variable, or
9524 # (2) before a word containing "conftest.", or (3) at the end.
9525 # Note that $ac_compile itself does not contain backslashes and begins
9526 # with a dollar sign (not a hyphen), so the echo should work correctly.
9527 # The option is referenced via a variable to avoid confusing sed.
9528 lt_compile=`echo "$ac_compile" | $SED \
9529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9531 -e 's:$: $lt_compiler_flag:'`
9532 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9533 (eval "$lt_compile" 2>conftest.err)
9534 ac_status=$?
9535 cat conftest.err >&5
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 if (exit $ac_status) && test -s "$ac_outfile"; then
9538 # The compiler can only warn and ignore the option if not recognized
9539 # So say no if there are warnings other than the usual output.
9540 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9541 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9542 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9543 lt_cv_prog_compiler_pic_works=yes
9546 $RM conftest*
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9550 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9552 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9553 case $lt_prog_compiler_pic in
9554 "" | " "*) ;;
9555 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9556 esac
9557 else
9558 lt_prog_compiler_pic=
9559 lt_prog_compiler_can_build_shared=no
9570 # Check to make sure the static flag actually works.
9572 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9574 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9575 if ${lt_cv_prog_compiler_static_works+:} false; then :
9576 $as_echo_n "(cached) " >&6
9577 else
9578 lt_cv_prog_compiler_static_works=no
9579 save_LDFLAGS="$LDFLAGS"
9580 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9581 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9582 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9583 # The linker can only warn and ignore the option if not recognized
9584 # So say no if there are warnings
9585 if test -s conftest.err; then
9586 # Append any errors to the config.log.
9587 cat conftest.err 1>&5
9588 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9589 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9590 if diff conftest.exp conftest.er2 >/dev/null; then
9591 lt_cv_prog_compiler_static_works=yes
9593 else
9594 lt_cv_prog_compiler_static_works=yes
9597 $RM -r conftest*
9598 LDFLAGS="$save_LDFLAGS"
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9602 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9604 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9606 else
9607 lt_prog_compiler_static=
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9617 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9618 if ${lt_cv_prog_compiler_c_o+:} false; then :
9619 $as_echo_n "(cached) " >&6
9620 else
9621 lt_cv_prog_compiler_c_o=no
9622 $RM -r conftest 2>/dev/null
9623 mkdir conftest
9624 cd conftest
9625 mkdir out
9626 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9628 lt_compiler_flag="-o out/conftest2.$ac_objext"
9629 # Insert the option either (1) after the last *FLAGS variable, or
9630 # (2) before a word containing "conftest.", or (3) at the end.
9631 # Note that $ac_compile itself does not contain backslashes and begins
9632 # with a dollar sign (not a hyphen), so the echo should work correctly.
9633 lt_compile=`echo "$ac_compile" | $SED \
9634 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9635 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9636 -e 's:$: $lt_compiler_flag:'`
9637 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9638 (eval "$lt_compile" 2>out/conftest.err)
9639 ac_status=$?
9640 cat out/conftest.err >&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9643 then
9644 # The compiler can only warn and ignore the option if not recognized
9645 # So say no if there are warnings
9646 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9647 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9648 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9649 lt_cv_prog_compiler_c_o=yes
9652 chmod u+w . 2>&5
9653 $RM conftest*
9654 # SGI C++ compiler will create directory out/ii_files/ for
9655 # template instantiation
9656 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9657 $RM out/* && rmdir out
9658 cd ..
9659 $RM -r conftest
9660 $RM conftest*
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9664 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9672 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9673 if ${lt_cv_prog_compiler_c_o+:} false; then :
9674 $as_echo_n "(cached) " >&6
9675 else
9676 lt_cv_prog_compiler_c_o=no
9677 $RM -r conftest 2>/dev/null
9678 mkdir conftest
9679 cd conftest
9680 mkdir out
9681 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9683 lt_compiler_flag="-o out/conftest2.$ac_objext"
9684 # Insert the option either (1) after the last *FLAGS variable, or
9685 # (2) before a word containing "conftest.", or (3) at the end.
9686 # Note that $ac_compile itself does not contain backslashes and begins
9687 # with a dollar sign (not a hyphen), so the echo should work correctly.
9688 lt_compile=`echo "$ac_compile" | $SED \
9689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9691 -e 's:$: $lt_compiler_flag:'`
9692 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9693 (eval "$lt_compile" 2>out/conftest.err)
9694 ac_status=$?
9695 cat out/conftest.err >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9698 then
9699 # The compiler can only warn and ignore the option if not recognized
9700 # So say no if there are warnings
9701 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9702 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9703 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9704 lt_cv_prog_compiler_c_o=yes
9707 chmod u+w . 2>&5
9708 $RM conftest*
9709 # SGI C++ compiler will create directory out/ii_files/ for
9710 # template instantiation
9711 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9712 $RM out/* && rmdir out
9713 cd ..
9714 $RM -r conftest
9715 $RM conftest*
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9719 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9724 hard_links="nottested"
9725 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9726 # do not overwrite the value of need_locks provided by the user
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9728 $as_echo_n "checking if we can lock with hard links... " >&6; }
9729 hard_links=yes
9730 $RM conftest*
9731 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9732 touch conftest.a
9733 ln conftest.a conftest.b 2>&5 || hard_links=no
9734 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9736 $as_echo "$hard_links" >&6; }
9737 if test "$hard_links" = no; then
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9739 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9740 need_locks=warn
9742 else
9743 need_locks=no
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9752 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9754 runpath_var=
9755 allow_undefined_flag=
9756 always_export_symbols=no
9757 archive_cmds=
9758 archive_expsym_cmds=
9759 compiler_needs_object=no
9760 enable_shared_with_static_runtimes=no
9761 export_dynamic_flag_spec=
9762 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9763 hardcode_automatic=no
9764 hardcode_direct=no
9765 hardcode_direct_absolute=no
9766 hardcode_libdir_flag_spec=
9767 hardcode_libdir_flag_spec_ld=
9768 hardcode_libdir_separator=
9769 hardcode_minus_L=no
9770 hardcode_shlibpath_var=unsupported
9771 inherit_rpath=no
9772 link_all_deplibs=unknown
9773 module_cmds=
9774 module_expsym_cmds=
9775 old_archive_from_new_cmds=
9776 old_archive_from_expsyms_cmds=
9777 thread_safe_flag_spec=
9778 whole_archive_flag_spec=
9779 # include_expsyms should be a list of space-separated symbols to be *always*
9780 # included in the symbol list
9781 include_expsyms=
9782 # exclude_expsyms can be an extended regexp of symbols to exclude
9783 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9784 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9785 # as well as any symbol that contains `d'.
9786 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9787 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9788 # platforms (ab)use it in PIC code, but their linkers get confused if
9789 # the symbol is explicitly referenced. Since portable code cannot
9790 # rely on this symbol name, it's probably fine to never include it in
9791 # preloaded symbol tables.
9792 # Exclude shared library initialization/finalization symbols.
9793 extract_expsyms_cmds=
9795 case $host_os in
9796 cygwin* | mingw* | pw32* | cegcc*)
9797 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9798 # When not using gcc, we currently assume that we are using
9799 # Microsoft Visual C++.
9800 if test "$GCC" != yes; then
9801 with_gnu_ld=no
9804 interix*)
9805 # we just hope/assume this is gcc and not c89 (= MSVC++)
9806 with_gnu_ld=yes
9808 openbsd*)
9809 with_gnu_ld=no
9811 esac
9813 ld_shlibs=yes
9815 # On some targets, GNU ld is compatible enough with the native linker
9816 # that we're better off using the native interface for both.
9817 lt_use_gnu_ld_interface=no
9818 if test "$with_gnu_ld" = yes; then
9819 case $host_os in
9820 aix*)
9821 # The AIX port of GNU ld has always aspired to compatibility
9822 # with the native linker. However, as the warning in the GNU ld
9823 # block says, versions before 2.19.5* couldn't really create working
9824 # shared libraries, regardless of the interface used.
9825 case `$LD -v 2>&1` in
9826 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9827 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9828 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9830 lt_use_gnu_ld_interface=yes
9832 esac
9835 lt_use_gnu_ld_interface=yes
9837 esac
9840 if test "$lt_use_gnu_ld_interface" = yes; then
9841 # If archive_cmds runs LD, not CC, wlarc should be empty
9842 wlarc='${wl}'
9844 # Set some defaults for GNU ld with shared library support. These
9845 # are reset later if shared libraries are not supported. Putting them
9846 # here allows them to be overridden if necessary.
9847 runpath_var=LD_RUN_PATH
9848 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9849 export_dynamic_flag_spec='${wl}--export-dynamic'
9850 # ancient GNU ld didn't support --whole-archive et. al.
9851 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9852 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9853 else
9854 whole_archive_flag_spec=
9856 supports_anon_versioning=no
9857 case `$LD -v 2>&1` in
9858 *GNU\ gold*) supports_anon_versioning=yes ;;
9859 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9860 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9861 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9862 *\ 2.11.*) ;; # other 2.11 versions
9863 *) supports_anon_versioning=yes ;;
9864 esac
9866 # See if GNU ld supports shared libraries.
9867 case $host_os in
9868 aix[3-9]*)
9869 # On AIX/PPC, the GNU linker is very broken
9870 if test "$host_cpu" != ia64; then
9871 ld_shlibs=no
9872 cat <<_LT_EOF 1>&2
9874 *** Warning: the GNU linker, at least up to release 2.19, is reported
9875 *** to be unable to reliably create shared libraries on AIX.
9876 *** Therefore, libtool is disabling shared libraries support. If you
9877 *** really care for shared libraries, you may want to install binutils
9878 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9879 *** You will then need to restart the configuration process.
9881 _LT_EOF
9885 amigaos*)
9886 case $host_cpu in
9887 powerpc)
9888 # see comment about AmigaOS4 .so support
9889 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9890 archive_expsym_cmds=''
9892 m68k)
9893 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)'
9894 hardcode_libdir_flag_spec='-L$libdir'
9895 hardcode_minus_L=yes
9897 esac
9900 beos*)
9901 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9902 allow_undefined_flag=unsupported
9903 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9904 # support --undefined. This deserves some investigation. FIXME
9905 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9906 else
9907 ld_shlibs=no
9911 cygwin* | mingw* | pw32* | cegcc*)
9912 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9913 # as there is no search path for DLLs.
9914 hardcode_libdir_flag_spec='-L$libdir'
9915 export_dynamic_flag_spec='${wl}--export-all-symbols'
9916 allow_undefined_flag=unsupported
9917 always_export_symbols=no
9918 enable_shared_with_static_runtimes=yes
9919 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9921 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9922 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9923 # If the export-symbols file already is a .def file (1st line
9924 # is EXPORTS), use it as is; otherwise, prepend...
9925 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9926 cp $export_symbols $output_objdir/$soname.def;
9927 else
9928 echo EXPORTS > $output_objdir/$soname.def;
9929 cat $export_symbols >> $output_objdir/$soname.def;
9931 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9932 else
9933 ld_shlibs=no
9937 haiku*)
9938 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9939 link_all_deplibs=yes
9942 interix[3-9]*)
9943 hardcode_direct=no
9944 hardcode_shlibpath_var=no
9945 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9946 export_dynamic_flag_spec='${wl}-E'
9947 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9948 # Instead, shared libraries are loaded at an image base (0x10000000 by
9949 # default) and relocated if they conflict, which is a slow very memory
9950 # consuming and fragmenting process. To avoid this, we pick a random,
9951 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9952 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9953 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9954 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'
9957 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9958 tmp_diet=no
9959 if test "$host_os" = linux-dietlibc; then
9960 case $cc_basename in
9961 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9962 esac
9964 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9965 && test "$tmp_diet" = no
9966 then
9967 tmp_addflag=' $pic_flag'
9968 tmp_sharedflag='-shared'
9969 case $cc_basename,$host_cpu in
9970 pgcc*) # Portland Group C compiler
9971 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'
9972 tmp_addflag=' $pic_flag'
9974 pgf77* | pgf90* | pgf95* | pgfortran*)
9975 # Portland Group f77 and f90 compilers
9976 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'
9977 tmp_addflag=' $pic_flag -Mnomain' ;;
9978 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9979 tmp_addflag=' -i_dynamic' ;;
9980 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9981 tmp_addflag=' -i_dynamic -nofor_main' ;;
9982 ifc* | ifort*) # Intel Fortran compiler
9983 tmp_addflag=' -nofor_main' ;;
9984 lf95*) # Lahey Fortran 8.1
9985 whole_archive_flag_spec=
9986 tmp_sharedflag='--shared' ;;
9987 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9988 tmp_sharedflag='-qmkshrobj'
9989 tmp_addflag= ;;
9990 nvcc*) # Cuda Compiler Driver 2.2
9991 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'
9992 compiler_needs_object=yes
9994 esac
9995 case `$CC -V 2>&1 | sed 5q` in
9996 *Sun\ C*) # Sun C 5.9
9997 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'
9998 compiler_needs_object=yes
9999 tmp_sharedflag='-G' ;;
10000 *Sun\ F*) # Sun Fortran 8.3
10001 tmp_sharedflag='-G' ;;
10002 esac
10003 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10005 if test "x$supports_anon_versioning" = xyes; then
10006 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10007 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10008 echo "local: *; };" >> $output_objdir/$libname.ver~
10009 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10012 case $cc_basename in
10013 xlf* | bgf* | bgxlf* | mpixlf*)
10014 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10015 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10016 hardcode_libdir_flag_spec=
10017 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10018 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10019 if test "x$supports_anon_versioning" = xyes; then
10020 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10021 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10022 echo "local: *; };" >> $output_objdir/$libname.ver~
10023 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10026 esac
10027 else
10028 ld_shlibs=no
10032 netbsd*)
10033 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10034 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10035 wlarc=
10036 else
10037 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10038 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10042 solaris*)
10043 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10044 ld_shlibs=no
10045 cat <<_LT_EOF 1>&2
10047 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10048 *** create shared libraries on Solaris systems. Therefore, libtool
10049 *** is disabling shared libraries support. We urge you to upgrade GNU
10050 *** binutils to release 2.9.1 or newer. Another option is to modify
10051 *** your PATH or compiler configuration so that the native linker is
10052 *** used, and then restart.
10054 _LT_EOF
10055 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10057 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10058 else
10059 ld_shlibs=no
10063 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10064 case `$LD -v 2>&1` in
10065 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10066 ld_shlibs=no
10067 cat <<_LT_EOF 1>&2
10069 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10070 *** reliably create shared libraries on SCO systems. Therefore, libtool
10071 *** is disabling shared libraries support. We urge you to upgrade GNU
10072 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10073 *** your PATH or compiler configuration so that the native linker is
10074 *** used, and then restart.
10076 _LT_EOF
10079 # For security reasons, it is highly recommended that you always
10080 # use absolute paths for naming shared libraries, and exclude the
10081 # DT_RUNPATH tag from executables and libraries. But doing so
10082 # requires that you compile everything twice, which is a pain.
10083 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10084 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10085 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10086 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10087 else
10088 ld_shlibs=no
10091 esac
10094 sunos4*)
10095 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10096 wlarc=
10097 hardcode_direct=yes
10098 hardcode_shlibpath_var=no
10102 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10103 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10104 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10105 else
10106 ld_shlibs=no
10109 esac
10111 if test "$ld_shlibs" = no; then
10112 runpath_var=
10113 hardcode_libdir_flag_spec=
10114 export_dynamic_flag_spec=
10115 whole_archive_flag_spec=
10117 else
10118 # PORTME fill in a description of your system's linker (not GNU ld)
10119 case $host_os in
10120 aix3*)
10121 allow_undefined_flag=unsupported
10122 always_export_symbols=yes
10123 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'
10124 # Note: this linker hardcodes the directories in LIBPATH if there
10125 # are no directories specified by -L.
10126 hardcode_minus_L=yes
10127 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10128 # Neither direct hardcoding nor static linking is supported with a
10129 # broken collect2.
10130 hardcode_direct=unsupported
10134 aix[4-9]*)
10135 if test "$host_cpu" = ia64; then
10136 # On IA64, the linker does run time linking by default, so we don't
10137 # have to do anything special.
10138 aix_use_runtimelinking=no
10139 exp_sym_flag='-Bexport'
10140 no_entry_flag=""
10141 else
10142 # If we're using GNU nm, then we don't want the "-C" option.
10143 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10144 # Also, AIX nm treats weak defined symbols like other global
10145 # defined symbols, whereas GNU nm marks them as "W".
10146 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10147 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'
10148 else
10149 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'
10151 aix_use_runtimelinking=no
10153 # Test if we are trying to use run time linking or normal
10154 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10155 # need to do runtime linking.
10156 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10157 for ld_flag in $LDFLAGS; do
10158 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10159 aix_use_runtimelinking=yes
10160 break
10162 done
10164 esac
10166 exp_sym_flag='-bexport'
10167 no_entry_flag='-bnoentry'
10170 # When large executables or shared objects are built, AIX ld can
10171 # have problems creating the table of contents. If linking a library
10172 # or program results in "error TOC overflow" add -mminimal-toc to
10173 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10174 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10176 archive_cmds=''
10177 hardcode_direct=yes
10178 hardcode_direct_absolute=yes
10179 hardcode_libdir_separator=':'
10180 link_all_deplibs=yes
10181 file_list_spec='${wl}-f,'
10183 if test "$GCC" = yes; then
10184 case $host_os in aix4.[012]|aix4.[012].*)
10185 # We only want to do this on AIX 4.2 and lower, the check
10186 # below for broken collect2 doesn't work under 4.3+
10187 collect2name=`${CC} -print-prog-name=collect2`
10188 if test -f "$collect2name" &&
10189 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10190 then
10191 # We have reworked collect2
10193 else
10194 # We have old collect2
10195 hardcode_direct=unsupported
10196 # It fails to find uninstalled libraries when the uninstalled
10197 # path is not listed in the libpath. Setting hardcode_minus_L
10198 # to unsupported forces relinking
10199 hardcode_minus_L=yes
10200 hardcode_libdir_flag_spec='-L$libdir'
10201 hardcode_libdir_separator=
10204 esac
10205 shared_flag='-shared'
10206 if test "$aix_use_runtimelinking" = yes; then
10207 shared_flag="$shared_flag "'${wl}-G'
10209 else
10210 # not using gcc
10211 if test "$host_cpu" = ia64; then
10212 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10213 # chokes on -Wl,-G. The following line is correct:
10214 shared_flag='-G'
10215 else
10216 if test "$aix_use_runtimelinking" = yes; then
10217 shared_flag='${wl}-G'
10218 else
10219 shared_flag='${wl}-bM:SRE'
10224 export_dynamic_flag_spec='${wl}-bexpall'
10225 # It seems that -bexpall does not export symbols beginning with
10226 # underscore (_), so it is better to generate a list of symbols to export.
10227 always_export_symbols=yes
10228 if test "$aix_use_runtimelinking" = yes; then
10229 # Warning - without using the other runtime loading flags (-brtl),
10230 # -berok will link without error, but may produce a broken library.
10231 allow_undefined_flag='-berok'
10232 # Determine the default libpath from the value encoded in an
10233 # empty executable.
10234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10235 /* end confdefs.h. */
10238 main ()
10242 return 0;
10244 _ACEOF
10245 if ac_fn_c_try_link "$LINENO"; then :
10247 lt_aix_libpath_sed='
10248 /Import File Strings/,/^$/ {
10249 /^0/ {
10250 s/^0 *\(.*\)$/\1/
10254 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10255 # Check for a 64-bit object if we didn't find anything.
10256 if test -z "$aix_libpath"; then
10257 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10260 rm -f core conftest.err conftest.$ac_objext \
10261 conftest$ac_exeext conftest.$ac_ext
10262 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10264 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10265 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"
10266 else
10267 if test "$host_cpu" = ia64; then
10268 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10269 allow_undefined_flag="-z nodefs"
10270 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"
10271 else
10272 # Determine the default libpath from the value encoded in an
10273 # empty executable.
10274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10275 /* end confdefs.h. */
10278 main ()
10282 return 0;
10284 _ACEOF
10285 if ac_fn_c_try_link "$LINENO"; then :
10287 lt_aix_libpath_sed='
10288 /Import File Strings/,/^$/ {
10289 /^0/ {
10290 s/^0 *\(.*\)$/\1/
10294 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10295 # Check for a 64-bit object if we didn't find anything.
10296 if test -z "$aix_libpath"; then
10297 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10300 rm -f core conftest.err conftest.$ac_objext \
10301 conftest$ac_exeext conftest.$ac_ext
10302 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10304 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10305 # Warning - without using the other run time loading flags,
10306 # -berok will link without error, but may produce a broken library.
10307 no_undefined_flag=' ${wl}-bernotok'
10308 allow_undefined_flag=' ${wl}-berok'
10309 if test "$with_gnu_ld" = yes; then
10310 # We only use this code for GNU lds that support --whole-archive.
10311 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10312 else
10313 # Exported symbols can be pulled into shared objects from archives
10314 whole_archive_flag_spec='$convenience'
10316 archive_cmds_need_lc=yes
10317 # This is similar to how AIX traditionally builds its shared libraries.
10318 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'
10323 amigaos*)
10324 case $host_cpu in
10325 powerpc)
10326 # see comment about AmigaOS4 .so support
10327 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10328 archive_expsym_cmds=''
10330 m68k)
10331 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)'
10332 hardcode_libdir_flag_spec='-L$libdir'
10333 hardcode_minus_L=yes
10335 esac
10338 bsdi[45]*)
10339 export_dynamic_flag_spec=-rdynamic
10342 cygwin* | mingw* | pw32* | cegcc*)
10343 # When not using gcc, we currently assume that we are using
10344 # Microsoft Visual C++.
10345 # hardcode_libdir_flag_spec is actually meaningless, as there is
10346 # no search path for DLLs.
10347 hardcode_libdir_flag_spec=' '
10348 allow_undefined_flag=unsupported
10349 # Tell ltmain to make .lib files, not .a files.
10350 libext=lib
10351 # Tell ltmain to make .dll files, not .so files.
10352 shrext_cmds=".dll"
10353 # FIXME: Setting linknames here is a bad hack.
10354 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10355 # The linker will automatically build a .lib file if we build a DLL.
10356 old_archive_from_new_cmds='true'
10357 # FIXME: Should let the user specify the lib program.
10358 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10359 fix_srcfile_path='`cygpath -w "$srcfile"`'
10360 enable_shared_with_static_runtimes=yes
10363 darwin* | rhapsody*)
10366 archive_cmds_need_lc=no
10367 hardcode_direct=no
10368 hardcode_automatic=yes
10369 hardcode_shlibpath_var=unsupported
10370 if test "$lt_cv_ld_force_load" = "yes"; then
10371 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\"`'
10372 else
10373 whole_archive_flag_spec=''
10375 link_all_deplibs=yes
10376 allow_undefined_flag="$_lt_dar_allow_undefined"
10377 case $cc_basename in
10378 ifort*) _lt_dar_can_shared=yes ;;
10379 *) _lt_dar_can_shared=$GCC ;;
10380 esac
10381 if test "$_lt_dar_can_shared" = "yes"; then
10382 output_verbose_link_cmd=func_echo_all
10383 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10384 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10385 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}"
10386 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}"
10388 else
10389 ld_shlibs=no
10394 dgux*)
10395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10396 hardcode_libdir_flag_spec='-L$libdir'
10397 hardcode_shlibpath_var=no
10400 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10401 # support. Future versions do this automatically, but an explicit c++rt0.o
10402 # does not break anything, and helps significantly (at the cost of a little
10403 # extra space).
10404 freebsd2.2*)
10405 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10406 hardcode_libdir_flag_spec='-R$libdir'
10407 hardcode_direct=yes
10408 hardcode_shlibpath_var=no
10411 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10412 freebsd2.*)
10413 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10414 hardcode_direct=yes
10415 hardcode_minus_L=yes
10416 hardcode_shlibpath_var=no
10419 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10420 freebsd* | dragonfly*)
10421 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10422 hardcode_libdir_flag_spec='-R$libdir'
10423 hardcode_direct=yes
10424 hardcode_shlibpath_var=no
10427 hpux9*)
10428 if test "$GCC" = yes; then
10429 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'
10430 else
10431 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'
10433 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10434 hardcode_libdir_separator=:
10435 hardcode_direct=yes
10437 # hardcode_minus_L: Not really in the search PATH,
10438 # but as the default location of the library.
10439 hardcode_minus_L=yes
10440 export_dynamic_flag_spec='${wl}-E'
10443 hpux10*)
10444 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10445 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10446 else
10447 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10449 if test "$with_gnu_ld" = no; then
10450 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10451 hardcode_libdir_flag_spec_ld='+b $libdir'
10452 hardcode_libdir_separator=:
10453 hardcode_direct=yes
10454 hardcode_direct_absolute=yes
10455 export_dynamic_flag_spec='${wl}-E'
10456 # hardcode_minus_L: Not really in the search PATH,
10457 # but as the default location of the library.
10458 hardcode_minus_L=yes
10462 hpux11*)
10463 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10464 case $host_cpu in
10465 hppa*64*)
10466 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10468 ia64*)
10469 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10472 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10474 esac
10475 else
10476 case $host_cpu in
10477 hppa*64*)
10478 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10480 ia64*)
10481 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10485 # Older versions of the 11.00 compiler do not understand -b yet
10486 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10488 $as_echo_n "checking if $CC understands -b... " >&6; }
10489 if ${lt_cv_prog_compiler__b+:} false; then :
10490 $as_echo_n "(cached) " >&6
10491 else
10492 lt_cv_prog_compiler__b=no
10493 save_LDFLAGS="$LDFLAGS"
10494 LDFLAGS="$LDFLAGS -b"
10495 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10496 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10497 # The linker can only warn and ignore the option if not recognized
10498 # So say no if there are warnings
10499 if test -s conftest.err; then
10500 # Append any errors to the config.log.
10501 cat conftest.err 1>&5
10502 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10503 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10504 if diff conftest.exp conftest.er2 >/dev/null; then
10505 lt_cv_prog_compiler__b=yes
10507 else
10508 lt_cv_prog_compiler__b=yes
10511 $RM -r conftest*
10512 LDFLAGS="$save_LDFLAGS"
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10516 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10518 if test x"$lt_cv_prog_compiler__b" = xyes; then
10519 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10520 else
10521 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10525 esac
10527 if test "$with_gnu_ld" = no; then
10528 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10529 hardcode_libdir_separator=:
10531 case $host_cpu in
10532 hppa*64*|ia64*)
10533 hardcode_direct=no
10534 hardcode_shlibpath_var=no
10537 hardcode_direct=yes
10538 hardcode_direct_absolute=yes
10539 export_dynamic_flag_spec='${wl}-E'
10541 # hardcode_minus_L: Not really in the search PATH,
10542 # but as the default location of the library.
10543 hardcode_minus_L=yes
10545 esac
10549 irix5* | irix6* | nonstopux*)
10550 if test "$GCC" = yes; then
10551 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'
10552 # Try to use the -exported_symbol ld option, if it does not
10553 # work, assume that -exports_file does not work either and
10554 # implicitly export all symbols.
10555 save_LDFLAGS="$LDFLAGS"
10556 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10558 /* end confdefs.h. */
10559 int foo(void) {}
10560 _ACEOF
10561 if ac_fn_c_try_link "$LINENO"; then :
10562 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'
10565 rm -f core conftest.err conftest.$ac_objext \
10566 conftest$ac_exeext conftest.$ac_ext
10567 LDFLAGS="$save_LDFLAGS"
10568 else
10569 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'
10570 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'
10572 archive_cmds_need_lc='no'
10573 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10574 hardcode_libdir_separator=:
10575 inherit_rpath=yes
10576 link_all_deplibs=yes
10579 netbsd*)
10580 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10581 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10582 else
10583 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10585 hardcode_libdir_flag_spec='-R$libdir'
10586 hardcode_direct=yes
10587 hardcode_shlibpath_var=no
10590 newsos6)
10591 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10592 hardcode_direct=yes
10593 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10594 hardcode_libdir_separator=:
10595 hardcode_shlibpath_var=no
10598 *nto* | *qnx*)
10601 openbsd*)
10602 if test -f /usr/libexec/ld.so; then
10603 hardcode_direct=yes
10604 hardcode_shlibpath_var=no
10605 hardcode_direct_absolute=yes
10606 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10607 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10608 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10609 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10610 export_dynamic_flag_spec='${wl}-E'
10611 else
10612 case $host_os in
10613 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10614 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10615 hardcode_libdir_flag_spec='-R$libdir'
10618 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10619 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10621 esac
10623 else
10624 ld_shlibs=no
10628 os2*)
10629 hardcode_libdir_flag_spec='-L$libdir'
10630 hardcode_minus_L=yes
10631 allow_undefined_flag=unsupported
10632 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'
10633 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10636 osf3*)
10637 if test "$GCC" = yes; then
10638 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10639 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'
10640 else
10641 allow_undefined_flag=' -expect_unresolved \*'
10642 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'
10644 archive_cmds_need_lc='no'
10645 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10646 hardcode_libdir_separator=:
10649 osf4* | osf5*) # as osf3* with the addition of -msym flag
10650 if test "$GCC" = yes; then
10651 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10652 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'
10653 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10654 else
10655 allow_undefined_flag=' -expect_unresolved \*'
10656 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'
10657 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~
10658 $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'
10660 # Both c and cxx compiler support -rpath directly
10661 hardcode_libdir_flag_spec='-rpath $libdir'
10663 archive_cmds_need_lc='no'
10664 hardcode_libdir_separator=:
10667 solaris*)
10668 no_undefined_flag=' -z defs'
10669 if test "$GCC" = yes; then
10670 wlarc='${wl}'
10671 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10672 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10673 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10674 else
10675 case `$CC -V 2>&1` in
10676 *"Compilers 5.0"*)
10677 wlarc=''
10678 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10679 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10680 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10683 wlarc='${wl}'
10684 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10685 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10686 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10688 esac
10690 hardcode_libdir_flag_spec='-R$libdir'
10691 hardcode_shlibpath_var=no
10692 case $host_os in
10693 solaris2.[0-5] | solaris2.[0-5].*) ;;
10695 # The compiler driver will combine and reorder linker options,
10696 # but understands `-z linker_flag'. GCC discards it without `$wl',
10697 # but is careful enough not to reorder.
10698 # Supported since Solaris 2.6 (maybe 2.5.1?)
10699 if test "$GCC" = yes; then
10700 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10701 else
10702 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10705 esac
10706 link_all_deplibs=yes
10709 sunos4*)
10710 if test "x$host_vendor" = xsequent; then
10711 # Use $CC to link under sequent, because it throws in some extra .o
10712 # files that make .init and .fini sections work.
10713 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10714 else
10715 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10717 hardcode_libdir_flag_spec='-L$libdir'
10718 hardcode_direct=yes
10719 hardcode_minus_L=yes
10720 hardcode_shlibpath_var=no
10723 sysv4)
10724 case $host_vendor in
10725 sni)
10726 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10727 hardcode_direct=yes # is this really true???
10729 siemens)
10730 ## LD is ld it makes a PLAMLIB
10731 ## CC just makes a GrossModule.
10732 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10733 reload_cmds='$CC -r -o $output$reload_objs'
10734 hardcode_direct=no
10736 motorola)
10737 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10738 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10740 esac
10741 runpath_var='LD_RUN_PATH'
10742 hardcode_shlibpath_var=no
10745 sysv4.3*)
10746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10747 hardcode_shlibpath_var=no
10748 export_dynamic_flag_spec='-Bexport'
10751 sysv4*MP*)
10752 if test -d /usr/nec; then
10753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10754 hardcode_shlibpath_var=no
10755 runpath_var=LD_RUN_PATH
10756 hardcode_runpath_var=yes
10757 ld_shlibs=yes
10761 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10762 no_undefined_flag='${wl}-z,text'
10763 archive_cmds_need_lc=no
10764 hardcode_shlibpath_var=no
10765 runpath_var='LD_RUN_PATH'
10767 if test "$GCC" = yes; then
10768 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10769 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10770 else
10771 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10772 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10776 sysv5* | sco3.2v5* | sco5v6*)
10777 # Note: We can NOT use -z defs as we might desire, because we do not
10778 # link with -lc, and that would cause any symbols used from libc to
10779 # always be unresolved, which means just about no library would
10780 # ever link correctly. If we're not using GNU ld we use -z text
10781 # though, which does catch some bad symbols but isn't as heavy-handed
10782 # as -z defs.
10783 no_undefined_flag='${wl}-z,text'
10784 allow_undefined_flag='${wl}-z,nodefs'
10785 archive_cmds_need_lc=no
10786 hardcode_shlibpath_var=no
10787 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10788 hardcode_libdir_separator=':'
10789 link_all_deplibs=yes
10790 export_dynamic_flag_spec='${wl}-Bexport'
10791 runpath_var='LD_RUN_PATH'
10793 if test "$GCC" = yes; then
10794 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10795 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10796 else
10797 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10798 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10802 uts4*)
10803 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10804 hardcode_libdir_flag_spec='-L$libdir'
10805 hardcode_shlibpath_var=no
10809 ld_shlibs=no
10811 esac
10813 if test x$host_vendor = xsni; then
10814 case $host in
10815 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10816 export_dynamic_flag_spec='${wl}-Blargedynsym'
10818 esac
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10823 $as_echo "$ld_shlibs" >&6; }
10824 test "$ld_shlibs" = no && can_build_shared=no
10826 with_gnu_ld=$with_gnu_ld
10843 # Do we need to explicitly link libc?
10845 case "x$archive_cmds_need_lc" in
10846 x|xyes)
10847 # Assume -lc should be added
10848 archive_cmds_need_lc=yes
10850 if test "$enable_shared" = yes && test "$GCC" = yes; then
10851 case $archive_cmds in
10852 *'~'*)
10853 # FIXME: we may have to deal with multi-command sequences.
10855 '$CC '*)
10856 # Test whether the compiler implicitly links with -lc since on some
10857 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10858 # to ld, don't add -lc before -lgcc.
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10860 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10861 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10862 $as_echo_n "(cached) " >&6
10863 else
10864 $RM conftest*
10865 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10868 (eval $ac_compile) 2>&5
10869 ac_status=$?
10870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10871 test $ac_status = 0; } 2>conftest.err; then
10872 soname=conftest
10873 lib=conftest
10874 libobjs=conftest.$ac_objext
10875 deplibs=
10876 wl=$lt_prog_compiler_wl
10877 pic_flag=$lt_prog_compiler_pic
10878 compiler_flags=-v
10879 linker_flags=-v
10880 verstring=
10881 output_objdir=.
10882 libname=conftest
10883 lt_save_allow_undefined_flag=$allow_undefined_flag
10884 allow_undefined_flag=
10885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10886 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10887 ac_status=$?
10888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10889 test $ac_status = 0; }
10890 then
10891 lt_cv_archive_cmds_need_lc=no
10892 else
10893 lt_cv_archive_cmds_need_lc=yes
10895 allow_undefined_flag=$lt_save_allow_undefined_flag
10896 else
10897 cat conftest.err 1>&5
10899 $RM conftest*
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10903 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10904 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10906 esac
10909 esac
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11068 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11070 if test "$GCC" = yes; then
11071 case $host_os in
11072 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11073 *) lt_awk_arg="/^libraries:/" ;;
11074 esac
11075 case $host_os in
11076 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11077 *) lt_sed_strip_eq="s,=/,/,g" ;;
11078 esac
11079 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11080 case $lt_search_path_spec in
11081 *\;*)
11082 # if the path contains ";" then we assume it to be the separator
11083 # otherwise default to the standard path separator (i.e. ":") - it is
11084 # assumed that no part of a normal pathname contains ";" but that should
11085 # okay in the real world where ";" in dirpaths is itself problematic.
11086 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11089 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11091 esac
11092 # Ok, now we have the path, separated by spaces, we can step through it
11093 # and add multilib dir if necessary.
11094 lt_tmp_lt_search_path_spec=
11095 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11096 for lt_sys_path in $lt_search_path_spec; do
11097 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11098 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11099 else
11100 test -d "$lt_sys_path" && \
11101 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11103 done
11104 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11105 BEGIN {RS=" "; FS="/|\n";} {
11106 lt_foo="";
11107 lt_count=0;
11108 for (lt_i = NF; lt_i > 0; lt_i--) {
11109 if ($lt_i != "" && $lt_i != ".") {
11110 if ($lt_i == "..") {
11111 lt_count++;
11112 } else {
11113 if (lt_count == 0) {
11114 lt_foo="/" $lt_i lt_foo;
11115 } else {
11116 lt_count--;
11121 if (lt_foo != "") { lt_freq[lt_foo]++; }
11122 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11124 # AWK program above erroneously prepends '/' to C:/dos/paths
11125 # for these hosts.
11126 case $host_os in
11127 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11128 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11129 esac
11130 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11131 else
11132 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11134 library_names_spec=
11135 libname_spec='lib$name'
11136 soname_spec=
11137 shrext_cmds=".so"
11138 postinstall_cmds=
11139 postuninstall_cmds=
11140 finish_cmds=
11141 finish_eval=
11142 shlibpath_var=
11143 shlibpath_overrides_runpath=unknown
11144 version_type=none
11145 dynamic_linker="$host_os ld.so"
11146 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11147 need_lib_prefix=unknown
11148 hardcode_into_libs=no
11150 # when you set need_version to no, make sure it does not cause -set_version
11151 # flags to be left without arguments
11152 need_version=unknown
11154 case $host_os in
11155 aix3*)
11156 version_type=linux
11157 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11158 shlibpath_var=LIBPATH
11160 # AIX 3 has no versioning support, so we append a major version to the name.
11161 soname_spec='${libname}${release}${shared_ext}$major'
11164 aix[4-9]*)
11165 version_type=linux
11166 need_lib_prefix=no
11167 need_version=no
11168 hardcode_into_libs=yes
11169 if test "$host_cpu" = ia64; then
11170 # AIX 5 supports IA64
11171 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11172 shlibpath_var=LD_LIBRARY_PATH
11173 else
11174 # With GCC up to 2.95.x, collect2 would create an import file
11175 # for dependence libraries. The import file would start with
11176 # the line `#! .'. This would cause the generated library to
11177 # depend on `.', always an invalid library. This was fixed in
11178 # development snapshots of GCC prior to 3.0.
11179 case $host_os in
11180 aix4 | aix4.[01] | aix4.[01].*)
11181 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11182 echo ' yes '
11183 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11185 else
11186 can_build_shared=no
11189 esac
11190 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11191 # soname into executable. Probably we can add versioning support to
11192 # collect2, so additional links can be useful in future.
11193 if test "$aix_use_runtimelinking" = yes; then
11194 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11195 # instead of lib<name>.a to let people know that these are not
11196 # typical AIX shared libraries.
11197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11198 else
11199 # We preserve .a as extension for shared libraries through AIX4.2
11200 # and later when we are not doing run time linking.
11201 library_names_spec='${libname}${release}.a $libname.a'
11202 soname_spec='${libname}${release}${shared_ext}$major'
11204 shlibpath_var=LIBPATH
11208 amigaos*)
11209 case $host_cpu in
11210 powerpc)
11211 # Since July 2007 AmigaOS4 officially supports .so libraries.
11212 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11215 m68k)
11216 library_names_spec='$libname.ixlibrary $libname.a'
11217 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11218 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'
11220 esac
11223 beos*)
11224 library_names_spec='${libname}${shared_ext}'
11225 dynamic_linker="$host_os ld.so"
11226 shlibpath_var=LIBRARY_PATH
11229 bsdi[45]*)
11230 version_type=linux
11231 need_version=no
11232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11233 soname_spec='${libname}${release}${shared_ext}$major'
11234 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11235 shlibpath_var=LD_LIBRARY_PATH
11236 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11237 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11238 # the default ld.so.conf also contains /usr/contrib/lib and
11239 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11240 # libtool to hard-code these into programs
11243 cygwin* | mingw* | pw32* | cegcc*)
11244 version_type=windows
11245 shrext_cmds=".dll"
11246 need_version=no
11247 need_lib_prefix=no
11249 case $GCC,$host_os in
11250 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11251 library_names_spec='$libname.dll.a'
11252 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11253 postinstall_cmds='base_file=`basename \${file}`~
11254 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11255 dldir=$destdir/`dirname \$dlpath`~
11256 test -d \$dldir || mkdir -p \$dldir~
11257 $install_prog $dir/$dlname \$dldir/$dlname~
11258 chmod a+x \$dldir/$dlname~
11259 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11260 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11262 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11263 dlpath=$dir/\$dldll~
11264 $RM \$dlpath'
11265 shlibpath_overrides_runpath=yes
11267 case $host_os in
11268 cygwin*)
11269 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11270 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11272 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11274 mingw* | cegcc*)
11275 # MinGW DLLs use traditional 'lib' prefix
11276 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11278 pw32*)
11279 # pw32 DLLs use 'pw' prefix rather than 'lib'
11280 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11282 esac
11286 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11288 esac
11289 dynamic_linker='Win32 ld.exe'
11290 # FIXME: first we should search . and the directory the executable is in
11291 shlibpath_var=PATH
11294 darwin* | rhapsody*)
11295 dynamic_linker="$host_os dyld"
11296 version_type=darwin
11297 need_lib_prefix=no
11298 need_version=no
11299 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11300 soname_spec='${libname}${release}${major}$shared_ext'
11301 shlibpath_overrides_runpath=yes
11302 shlibpath_var=DYLD_LIBRARY_PATH
11303 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11305 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11306 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11309 dgux*)
11310 version_type=linux
11311 need_lib_prefix=no
11312 need_version=no
11313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11314 soname_spec='${libname}${release}${shared_ext}$major'
11315 shlibpath_var=LD_LIBRARY_PATH
11318 freebsd* | dragonfly*)
11319 # DragonFly does not have aout. When/if they implement a new
11320 # versioning mechanism, adjust this.
11321 if test -x /usr/bin/objformat; then
11322 objformat=`/usr/bin/objformat`
11323 else
11324 case $host_os in
11325 freebsd[23].*) objformat=aout ;;
11326 *) objformat=elf ;;
11327 esac
11329 version_type=freebsd-$objformat
11330 case $version_type in
11331 freebsd-elf*)
11332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11333 need_version=no
11334 need_lib_prefix=no
11336 freebsd-*)
11337 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11338 need_version=yes
11340 esac
11341 shlibpath_var=LD_LIBRARY_PATH
11342 case $host_os in
11343 freebsd2.*)
11344 shlibpath_overrides_runpath=yes
11346 freebsd3.[01]* | freebsdelf3.[01]*)
11347 shlibpath_overrides_runpath=yes
11348 hardcode_into_libs=yes
11350 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11351 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11352 shlibpath_overrides_runpath=no
11353 hardcode_into_libs=yes
11355 *) # from 4.6 on, and DragonFly
11356 shlibpath_overrides_runpath=yes
11357 hardcode_into_libs=yes
11359 esac
11362 haiku*)
11363 version_type=linux
11364 need_lib_prefix=no
11365 need_version=no
11366 dynamic_linker="$host_os runtime_loader"
11367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11368 soname_spec='${libname}${release}${shared_ext}$major'
11369 shlibpath_var=LIBRARY_PATH
11370 shlibpath_overrides_runpath=yes
11371 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11372 hardcode_into_libs=yes
11375 hpux9* | hpux10* | hpux11*)
11376 # Give a soname corresponding to the major version so that dld.sl refuses to
11377 # link against other versions.
11378 version_type=sunos
11379 need_lib_prefix=no
11380 need_version=no
11381 case $host_cpu in
11382 ia64*)
11383 shrext_cmds='.so'
11384 hardcode_into_libs=yes
11385 dynamic_linker="$host_os dld.so"
11386 shlibpath_var=LD_LIBRARY_PATH
11387 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11389 soname_spec='${libname}${release}${shared_ext}$major'
11390 if test "X$HPUX_IA64_MODE" = X32; then
11391 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11392 else
11393 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11395 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11397 hppa*64*)
11398 shrext_cmds='.sl'
11399 hardcode_into_libs=yes
11400 dynamic_linker="$host_os dld.sl"
11401 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11402 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11404 soname_spec='${libname}${release}${shared_ext}$major'
11405 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11406 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11409 shrext_cmds='.sl'
11410 dynamic_linker="$host_os dld.sl"
11411 shlibpath_var=SHLIB_PATH
11412 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11414 soname_spec='${libname}${release}${shared_ext}$major'
11416 esac
11417 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11418 postinstall_cmds='chmod 555 $lib'
11419 # or fails outright, so override atomically:
11420 install_override_mode=555
11423 interix[3-9]*)
11424 version_type=linux
11425 need_lib_prefix=no
11426 need_version=no
11427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11428 soname_spec='${libname}${release}${shared_ext}$major'
11429 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11430 shlibpath_var=LD_LIBRARY_PATH
11431 shlibpath_overrides_runpath=no
11432 hardcode_into_libs=yes
11435 irix5* | irix6* | nonstopux*)
11436 case $host_os in
11437 nonstopux*) version_type=nonstopux ;;
11439 if test "$lt_cv_prog_gnu_ld" = yes; then
11440 version_type=linux
11441 else
11442 version_type=irix
11443 fi ;;
11444 esac
11445 need_lib_prefix=no
11446 need_version=no
11447 soname_spec='${libname}${release}${shared_ext}$major'
11448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11449 case $host_os in
11450 irix5* | nonstopux*)
11451 libsuff= shlibsuff=
11454 case $LD in # libtool.m4 will add one of these switches to LD
11455 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11456 libsuff= shlibsuff= libmagic=32-bit;;
11457 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11458 libsuff=32 shlibsuff=N32 libmagic=N32;;
11459 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11460 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11461 *) libsuff= shlibsuff= libmagic=never-match;;
11462 esac
11464 esac
11465 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11466 shlibpath_overrides_runpath=no
11467 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11468 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11469 hardcode_into_libs=yes
11472 # No shared lib support for Linux oldld, aout, or coff.
11473 linux*oldld* | linux*aout* | linux*coff*)
11474 dynamic_linker=no
11477 # This must be Linux ELF.
11479 # uclinux* changes (here and below) have been submitted to the libtool
11480 # project, but have not yet been accepted: they are GCC-local changes
11481 # for the time being. (See
11482 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11483 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11484 version_type=linux
11485 need_lib_prefix=no
11486 need_version=no
11487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11488 soname_spec='${libname}${release}${shared_ext}$major'
11489 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11490 shlibpath_var=LD_LIBRARY_PATH
11491 shlibpath_overrides_runpath=no
11493 # Some binutils ld are patched to set DT_RUNPATH
11494 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11495 $as_echo_n "(cached) " >&6
11496 else
11497 lt_cv_shlibpath_overrides_runpath=no
11498 save_LDFLAGS=$LDFLAGS
11499 save_libdir=$libdir
11500 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11501 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h. */
11506 main ()
11510 return 0;
11512 _ACEOF
11513 if ac_fn_c_try_link "$LINENO"; then :
11514 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11515 lt_cv_shlibpath_overrides_runpath=yes
11518 rm -f core conftest.err conftest.$ac_objext \
11519 conftest$ac_exeext conftest.$ac_ext
11520 LDFLAGS=$save_LDFLAGS
11521 libdir=$save_libdir
11525 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11527 # This implies no fast_install, which is unacceptable.
11528 # Some rework will be needed to allow for fast_install
11529 # before this can be enabled.
11530 hardcode_into_libs=yes
11532 # Append ld.so.conf contents to the search path
11533 if test -f /etc/ld.so.conf; then
11534 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' ' '`
11535 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11538 # We used to test for /lib/ld.so.1 and disable shared libraries on
11539 # powerpc, because MkLinux only supported shared libraries with the
11540 # GNU dynamic linker. Since this was broken with cross compilers,
11541 # most powerpc-linux boxes support dynamic linking these days and
11542 # people can always --disable-shared, the test was removed, and we
11543 # assume the GNU/Linux dynamic linker is in use.
11544 dynamic_linker='GNU/Linux ld.so'
11547 netbsd*)
11548 version_type=sunos
11549 need_lib_prefix=no
11550 need_version=no
11551 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11553 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11554 dynamic_linker='NetBSD (a.out) ld.so'
11555 else
11556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11557 soname_spec='${libname}${release}${shared_ext}$major'
11558 dynamic_linker='NetBSD ld.elf_so'
11560 shlibpath_var=LD_LIBRARY_PATH
11561 shlibpath_overrides_runpath=yes
11562 hardcode_into_libs=yes
11565 newsos6)
11566 version_type=linux
11567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11568 shlibpath_var=LD_LIBRARY_PATH
11569 shlibpath_overrides_runpath=yes
11572 *nto* | *qnx*)
11573 version_type=qnx
11574 need_lib_prefix=no
11575 need_version=no
11576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11577 soname_spec='${libname}${release}${shared_ext}$major'
11578 shlibpath_var=LD_LIBRARY_PATH
11579 shlibpath_overrides_runpath=no
11580 hardcode_into_libs=yes
11581 dynamic_linker='ldqnx.so'
11584 openbsd*)
11585 version_type=sunos
11586 sys_lib_dlsearch_path_spec="/usr/lib"
11587 need_lib_prefix=no
11588 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11589 case $host_os in
11590 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11591 *) need_version=no ;;
11592 esac
11593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11594 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11595 shlibpath_var=LD_LIBRARY_PATH
11596 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11597 case $host_os in
11598 openbsd2.[89] | openbsd2.[89].*)
11599 shlibpath_overrides_runpath=no
11602 shlibpath_overrides_runpath=yes
11604 esac
11605 else
11606 shlibpath_overrides_runpath=yes
11610 os2*)
11611 libname_spec='$name'
11612 shrext_cmds=".dll"
11613 need_lib_prefix=no
11614 library_names_spec='$libname${shared_ext} $libname.a'
11615 dynamic_linker='OS/2 ld.exe'
11616 shlibpath_var=LIBPATH
11619 osf3* | osf4* | osf5*)
11620 version_type=osf
11621 need_lib_prefix=no
11622 need_version=no
11623 soname_spec='${libname}${release}${shared_ext}$major'
11624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11625 shlibpath_var=LD_LIBRARY_PATH
11626 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11627 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11630 rdos*)
11631 dynamic_linker=no
11634 solaris*)
11635 version_type=linux
11636 need_lib_prefix=no
11637 need_version=no
11638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11639 soname_spec='${libname}${release}${shared_ext}$major'
11640 shlibpath_var=LD_LIBRARY_PATH
11641 shlibpath_overrides_runpath=yes
11642 hardcode_into_libs=yes
11643 # ldd complains unless libraries are executable
11644 postinstall_cmds='chmod +x $lib'
11647 sunos4*)
11648 version_type=sunos
11649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11650 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11651 shlibpath_var=LD_LIBRARY_PATH
11652 shlibpath_overrides_runpath=yes
11653 if test "$with_gnu_ld" = yes; then
11654 need_lib_prefix=no
11656 need_version=yes
11659 sysv4 | sysv4.3*)
11660 version_type=linux
11661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11662 soname_spec='${libname}${release}${shared_ext}$major'
11663 shlibpath_var=LD_LIBRARY_PATH
11664 case $host_vendor in
11665 sni)
11666 shlibpath_overrides_runpath=no
11667 need_lib_prefix=no
11668 runpath_var=LD_RUN_PATH
11670 siemens)
11671 need_lib_prefix=no
11673 motorola)
11674 need_lib_prefix=no
11675 need_version=no
11676 shlibpath_overrides_runpath=no
11677 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11679 esac
11682 sysv4*MP*)
11683 if test -d /usr/nec ;then
11684 version_type=linux
11685 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11686 soname_spec='$libname${shared_ext}.$major'
11687 shlibpath_var=LD_LIBRARY_PATH
11691 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11692 version_type=freebsd-elf
11693 need_lib_prefix=no
11694 need_version=no
11695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11696 soname_spec='${libname}${release}${shared_ext}$major'
11697 shlibpath_var=LD_LIBRARY_PATH
11698 shlibpath_overrides_runpath=yes
11699 hardcode_into_libs=yes
11700 if test "$with_gnu_ld" = yes; then
11701 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11702 else
11703 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11704 case $host_os in
11705 sco3.2v5*)
11706 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11708 esac
11710 sys_lib_dlsearch_path_spec='/usr/lib'
11713 tpf*)
11714 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11715 version_type=linux
11716 need_lib_prefix=no
11717 need_version=no
11718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11719 shlibpath_var=LD_LIBRARY_PATH
11720 shlibpath_overrides_runpath=no
11721 hardcode_into_libs=yes
11724 uts4*)
11725 version_type=linux
11726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11727 soname_spec='${libname}${release}${shared_ext}$major'
11728 shlibpath_var=LD_LIBRARY_PATH
11731 # Shared libraries for VwWorks, >= 7 only at this stage
11732 # and (fpic) still incompatible with "large" code models
11733 # in a few configurations. Only for RTP mode in any case,
11734 # and upon explicit request at configure time.
11735 vxworks7*)
11736 dynamic_linker=no
11737 case ${with_multisubdir}-${enable_shared} in
11738 *large*)
11740 *mrtp*-yes)
11741 version_type=linux
11742 need_lib_prefix=no
11743 need_version=no
11744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11745 soname_spec='${libname}${release}${shared_ext}$major'
11746 dynamic_linker="$host_os module_loader"
11748 esac
11751 dynamic_linker=no
11753 esac
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11755 $as_echo "$dynamic_linker" >&6; }
11756 test "$dynamic_linker" = no && can_build_shared=no
11758 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11759 if test "$GCC" = yes; then
11760 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11763 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11764 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11766 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11767 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11862 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11863 hardcode_action=
11864 if test -n "$hardcode_libdir_flag_spec" ||
11865 test -n "$runpath_var" ||
11866 test "X$hardcode_automatic" = "Xyes" ; then
11868 # We can hardcode non-existent directories.
11869 if test "$hardcode_direct" != no &&
11870 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11871 # have to relink, otherwise we might link with an installed library
11872 # when we should be linking with a yet-to-be-installed one
11873 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11874 test "$hardcode_minus_L" != no; then
11875 # Linking always hardcodes the temporary library directory.
11876 hardcode_action=relink
11877 else
11878 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11879 hardcode_action=immediate
11881 else
11882 # We cannot hardcode anything, or else we can only hardcode existing
11883 # directories.
11884 hardcode_action=unsupported
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11887 $as_echo "$hardcode_action" >&6; }
11889 if test "$hardcode_action" = relink ||
11890 test "$inherit_rpath" = yes; then
11891 # Fast installation is not supported
11892 enable_fast_install=no
11893 elif test "$shlibpath_overrides_runpath" = yes ||
11894 test "$enable_shared" = no; then
11895 # Fast installation is not necessary
11896 enable_fast_install=needless
11904 if test "x$enable_dlopen" != xyes; then
11905 enable_dlopen=unknown
11906 enable_dlopen_self=unknown
11907 enable_dlopen_self_static=unknown
11908 else
11909 lt_cv_dlopen=no
11910 lt_cv_dlopen_libs=
11912 case $host_os in
11913 beos*)
11914 lt_cv_dlopen="load_add_on"
11915 lt_cv_dlopen_libs=
11916 lt_cv_dlopen_self=yes
11919 mingw* | pw32* | cegcc*)
11920 lt_cv_dlopen="LoadLibrary"
11921 lt_cv_dlopen_libs=
11924 cygwin*)
11925 lt_cv_dlopen="dlopen"
11926 lt_cv_dlopen_libs=
11929 darwin*)
11930 # if libdl is installed we need to link against it
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11932 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11933 if ${ac_cv_lib_dl_dlopen+:} false; then :
11934 $as_echo_n "(cached) " >&6
11935 else
11936 ac_check_lib_save_LIBS=$LIBS
11937 LIBS="-ldl $LIBS"
11938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11939 /* end confdefs.h. */
11941 /* Override any GCC internal prototype to avoid an error.
11942 Use char because int might match the return type of a GCC
11943 builtin and then its argument prototype would still apply. */
11944 #ifdef __cplusplus
11945 extern "C"
11946 #endif
11947 char dlopen ();
11949 main ()
11951 return dlopen ();
11953 return 0;
11955 _ACEOF
11956 if ac_fn_c_try_link "$LINENO"; then :
11957 ac_cv_lib_dl_dlopen=yes
11958 else
11959 ac_cv_lib_dl_dlopen=no
11961 rm -f core conftest.err conftest.$ac_objext \
11962 conftest$ac_exeext conftest.$ac_ext
11963 LIBS=$ac_check_lib_save_LIBS
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11966 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11967 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11968 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11969 else
11971 lt_cv_dlopen="dyld"
11972 lt_cv_dlopen_libs=
11973 lt_cv_dlopen_self=yes
11980 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11981 if test "x$ac_cv_func_shl_load" = xyes; then :
11982 lt_cv_dlopen="shl_load"
11983 else
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11985 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11986 if ${ac_cv_lib_dld_shl_load+:} false; then :
11987 $as_echo_n "(cached) " >&6
11988 else
11989 ac_check_lib_save_LIBS=$LIBS
11990 LIBS="-ldld $LIBS"
11991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11992 /* end confdefs.h. */
11994 /* Override any GCC internal prototype to avoid an error.
11995 Use char because int might match the return type of a GCC
11996 builtin and then its argument prototype would still apply. */
11997 #ifdef __cplusplus
11998 extern "C"
11999 #endif
12000 char shl_load ();
12002 main ()
12004 return shl_load ();
12006 return 0;
12008 _ACEOF
12009 if ac_fn_c_try_link "$LINENO"; then :
12010 ac_cv_lib_dld_shl_load=yes
12011 else
12012 ac_cv_lib_dld_shl_load=no
12014 rm -f core conftest.err conftest.$ac_objext \
12015 conftest$ac_exeext conftest.$ac_ext
12016 LIBS=$ac_check_lib_save_LIBS
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12019 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12020 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12021 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12022 else
12023 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12024 if test "x$ac_cv_func_dlopen" = xyes; then :
12025 lt_cv_dlopen="dlopen"
12026 else
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12028 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12029 if ${ac_cv_lib_dl_dlopen+:} false; then :
12030 $as_echo_n "(cached) " >&6
12031 else
12032 ac_check_lib_save_LIBS=$LIBS
12033 LIBS="-ldl $LIBS"
12034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12035 /* end confdefs.h. */
12037 /* Override any GCC internal prototype to avoid an error.
12038 Use char because int might match the return type of a GCC
12039 builtin and then its argument prototype would still apply. */
12040 #ifdef __cplusplus
12041 extern "C"
12042 #endif
12043 char dlopen ();
12045 main ()
12047 return dlopen ();
12049 return 0;
12051 _ACEOF
12052 if ac_fn_c_try_link "$LINENO"; then :
12053 ac_cv_lib_dl_dlopen=yes
12054 else
12055 ac_cv_lib_dl_dlopen=no
12057 rm -f core conftest.err conftest.$ac_objext \
12058 conftest$ac_exeext conftest.$ac_ext
12059 LIBS=$ac_check_lib_save_LIBS
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12062 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12063 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12064 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12065 else
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12067 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12068 if ${ac_cv_lib_svld_dlopen+:} false; then :
12069 $as_echo_n "(cached) " >&6
12070 else
12071 ac_check_lib_save_LIBS=$LIBS
12072 LIBS="-lsvld $LIBS"
12073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074 /* end confdefs.h. */
12076 /* Override any GCC internal prototype to avoid an error.
12077 Use char because int might match the return type of a GCC
12078 builtin and then its argument prototype would still apply. */
12079 #ifdef __cplusplus
12080 extern "C"
12081 #endif
12082 char dlopen ();
12084 main ()
12086 return dlopen ();
12088 return 0;
12090 _ACEOF
12091 if ac_fn_c_try_link "$LINENO"; then :
12092 ac_cv_lib_svld_dlopen=yes
12093 else
12094 ac_cv_lib_svld_dlopen=no
12096 rm -f core conftest.err conftest.$ac_objext \
12097 conftest$ac_exeext conftest.$ac_ext
12098 LIBS=$ac_check_lib_save_LIBS
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12101 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12102 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12103 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12104 else
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12106 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12107 if ${ac_cv_lib_dld_dld_link+:} false; then :
12108 $as_echo_n "(cached) " >&6
12109 else
12110 ac_check_lib_save_LIBS=$LIBS
12111 LIBS="-ldld $LIBS"
12112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12113 /* end confdefs.h. */
12115 /* Override any GCC internal prototype to avoid an error.
12116 Use char because int might match the return type of a GCC
12117 builtin and then its argument prototype would still apply. */
12118 #ifdef __cplusplus
12119 extern "C"
12120 #endif
12121 char dld_link ();
12123 main ()
12125 return dld_link ();
12127 return 0;
12129 _ACEOF
12130 if ac_fn_c_try_link "$LINENO"; then :
12131 ac_cv_lib_dld_dld_link=yes
12132 else
12133 ac_cv_lib_dld_dld_link=no
12135 rm -f core conftest.err conftest.$ac_objext \
12136 conftest$ac_exeext conftest.$ac_ext
12137 LIBS=$ac_check_lib_save_LIBS
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12140 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12141 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12142 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12161 esac
12163 if test "x$lt_cv_dlopen" != xno; then
12164 enable_dlopen=yes
12165 else
12166 enable_dlopen=no
12169 case $lt_cv_dlopen in
12170 dlopen)
12171 save_CPPFLAGS="$CPPFLAGS"
12172 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12174 save_LDFLAGS="$LDFLAGS"
12175 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12177 save_LIBS="$LIBS"
12178 LIBS="$lt_cv_dlopen_libs $LIBS"
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12181 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12182 if ${lt_cv_dlopen_self+:} false; then :
12183 $as_echo_n "(cached) " >&6
12184 else
12185 if test "$cross_compiling" = yes; then :
12186 lt_cv_dlopen_self=cross
12187 else
12188 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12189 lt_status=$lt_dlunknown
12190 cat > conftest.$ac_ext <<_LT_EOF
12191 #line 12191 "configure"
12192 #include "confdefs.h"
12194 #if HAVE_DLFCN_H
12195 #include <dlfcn.h>
12196 #endif
12198 #include <stdio.h>
12200 #ifdef RTLD_GLOBAL
12201 # define LT_DLGLOBAL RTLD_GLOBAL
12202 #else
12203 # ifdef DL_GLOBAL
12204 # define LT_DLGLOBAL DL_GLOBAL
12205 # else
12206 # define LT_DLGLOBAL 0
12207 # endif
12208 #endif
12210 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12211 find out it does not work in some platform. */
12212 #ifndef LT_DLLAZY_OR_NOW
12213 # ifdef RTLD_LAZY
12214 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12215 # else
12216 # ifdef DL_LAZY
12217 # define LT_DLLAZY_OR_NOW DL_LAZY
12218 # else
12219 # ifdef RTLD_NOW
12220 # define LT_DLLAZY_OR_NOW RTLD_NOW
12221 # else
12222 # ifdef DL_NOW
12223 # define LT_DLLAZY_OR_NOW DL_NOW
12224 # else
12225 # define LT_DLLAZY_OR_NOW 0
12226 # endif
12227 # endif
12228 # endif
12229 # endif
12230 #endif
12232 /* When -fvisbility=hidden is used, assume the code has been annotated
12233 correspondingly for the symbols needed. */
12234 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12235 void fnord () __attribute__((visibility("default")));
12236 #endif
12238 void fnord () { int i=42; }
12239 int main ()
12241 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12242 int status = $lt_dlunknown;
12244 if (self)
12246 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12247 else
12249 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12250 else puts (dlerror ());
12252 /* dlclose (self); */
12254 else
12255 puts (dlerror ());
12257 return status;
12259 _LT_EOF
12260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12261 (eval $ac_link) 2>&5
12262 ac_status=$?
12263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12264 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12265 (./conftest; exit; ) >&5 2>/dev/null
12266 lt_status=$?
12267 case x$lt_status in
12268 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12269 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12270 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12271 esac
12272 else :
12273 # compilation failed
12274 lt_cv_dlopen_self=no
12277 rm -fr conftest*
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12282 $as_echo "$lt_cv_dlopen_self" >&6; }
12284 if test "x$lt_cv_dlopen_self" = xyes; then
12285 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12287 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12288 if ${lt_cv_dlopen_self_static+:} false; then :
12289 $as_echo_n "(cached) " >&6
12290 else
12291 if test "$cross_compiling" = yes; then :
12292 lt_cv_dlopen_self_static=cross
12293 else
12294 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12295 lt_status=$lt_dlunknown
12296 cat > conftest.$ac_ext <<_LT_EOF
12297 #line 12297 "configure"
12298 #include "confdefs.h"
12300 #if HAVE_DLFCN_H
12301 #include <dlfcn.h>
12302 #endif
12304 #include <stdio.h>
12306 #ifdef RTLD_GLOBAL
12307 # define LT_DLGLOBAL RTLD_GLOBAL
12308 #else
12309 # ifdef DL_GLOBAL
12310 # define LT_DLGLOBAL DL_GLOBAL
12311 # else
12312 # define LT_DLGLOBAL 0
12313 # endif
12314 #endif
12316 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12317 find out it does not work in some platform. */
12318 #ifndef LT_DLLAZY_OR_NOW
12319 # ifdef RTLD_LAZY
12320 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12321 # else
12322 # ifdef DL_LAZY
12323 # define LT_DLLAZY_OR_NOW DL_LAZY
12324 # else
12325 # ifdef RTLD_NOW
12326 # define LT_DLLAZY_OR_NOW RTLD_NOW
12327 # else
12328 # ifdef DL_NOW
12329 # define LT_DLLAZY_OR_NOW DL_NOW
12330 # else
12331 # define LT_DLLAZY_OR_NOW 0
12332 # endif
12333 # endif
12334 # endif
12335 # endif
12336 #endif
12338 /* When -fvisbility=hidden is used, assume the code has been annotated
12339 correspondingly for the symbols needed. */
12340 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12341 void fnord () __attribute__((visibility("default")));
12342 #endif
12344 void fnord () { int i=42; }
12345 int main ()
12347 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12348 int status = $lt_dlunknown;
12350 if (self)
12352 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12353 else
12355 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12356 else puts (dlerror ());
12358 /* dlclose (self); */
12360 else
12361 puts (dlerror ());
12363 return status;
12365 _LT_EOF
12366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12367 (eval $ac_link) 2>&5
12368 ac_status=$?
12369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12370 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12371 (./conftest; exit; ) >&5 2>/dev/null
12372 lt_status=$?
12373 case x$lt_status in
12374 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12375 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12376 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12377 esac
12378 else :
12379 # compilation failed
12380 lt_cv_dlopen_self_static=no
12383 rm -fr conftest*
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12388 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12391 CPPFLAGS="$save_CPPFLAGS"
12392 LDFLAGS="$save_LDFLAGS"
12393 LIBS="$save_LIBS"
12395 esac
12397 case $lt_cv_dlopen_self in
12398 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12399 *) enable_dlopen_self=unknown ;;
12400 esac
12402 case $lt_cv_dlopen_self_static in
12403 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12404 *) enable_dlopen_self_static=unknown ;;
12405 esac
12424 striplib=
12425 old_striplib=
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12427 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12428 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12429 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12430 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12432 $as_echo "yes" >&6; }
12433 else
12434 # FIXME - insert some real tests, host_os isn't really good enough
12435 case $host_os in
12436 darwin*)
12437 if test -n "$STRIP" ; then
12438 striplib="$STRIP -x"
12439 old_striplib="$STRIP -S"
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12441 $as_echo "yes" >&6; }
12442 else
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12444 $as_echo "no" >&6; }
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12449 $as_echo "no" >&6; }
12451 esac
12465 # Report which library types will actually be built
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12467 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12469 $as_echo "$can_build_shared" >&6; }
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12472 $as_echo_n "checking whether to build shared libraries... " >&6; }
12473 test "$can_build_shared" = "no" && enable_shared=no
12475 # On AIX, shared libraries and static libraries use the same namespace, and
12476 # are all built from PIC.
12477 case $host_os in
12478 aix3*)
12479 test "$enable_shared" = yes && enable_static=no
12480 if test -n "$RANLIB"; then
12481 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12482 postinstall_cmds='$RANLIB $lib'
12486 aix[4-9]*)
12487 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12488 test "$enable_shared" = yes && enable_static=no
12491 esac
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12493 $as_echo "$enable_shared" >&6; }
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12496 $as_echo_n "checking whether to build static libraries... " >&6; }
12497 # Make sure either enable_shared or enable_static is yes.
12498 test "$enable_shared" = yes || enable_static=yes
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12500 $as_echo "$enable_static" >&6; }
12506 ac_ext=c
12507 ac_cpp='$CPP $CPPFLAGS'
12508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12512 CC="$lt_save_CC"
12526 ac_config_commands="$ac_config_commands libtool"
12531 # Only expand once:
12537 case $host in
12538 *-cygwin* | *-mingw*)
12539 # 'host' will be top-level target in the case of a target lib,
12540 # we must compare to with_cross_host to decide if this is a native
12541 # or cross-compiler and select where to install dlls appropriately.
12542 if test -n "$with_cross_host" &&
12543 test x"$with_cross_host" != x"no"; then
12544 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12545 else
12546 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12550 lt_host_flags=
12552 esac
12557 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
12558 case $ac_cv_c_int64_t in #(
12559 no|yes) ;; #(
12562 cat >>confdefs.h <<_ACEOF
12563 #define int64_t $ac_cv_c_int64_t
12564 _ACEOF
12566 esac
12568 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
12569 case $ac_cv_c_uint64_t in #(
12570 no|yes) ;; #(
12573 $as_echo "#define _UINT64_T 1" >>confdefs.h
12576 cat >>confdefs.h <<_ACEOF
12577 #define uint64_t $ac_cv_c_uint64_t
12578 _ACEOF
12580 esac
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12583 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12584 if ${ac_cv_header_sys_wait_h+:} false; then :
12585 $as_echo_n "(cached) " >&6
12586 else
12587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12588 /* end confdefs.h. */
12589 #include <sys/types.h>
12590 #include <sys/wait.h>
12591 #ifndef WEXITSTATUS
12592 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12593 #endif
12594 #ifndef WIFEXITED
12595 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12596 #endif
12599 main ()
12601 int s;
12602 wait (&s);
12603 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12605 return 0;
12607 _ACEOF
12608 if ac_fn_c_try_compile "$LINENO"; then :
12609 ac_cv_header_sys_wait_h=yes
12610 else
12611 ac_cv_header_sys_wait_h=no
12613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12616 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12617 if test $ac_cv_header_sys_wait_h = yes; then
12619 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12623 ac_config_files="$ac_config_files Makefile"
12625 ac_config_headers="$ac_config_headers config.h"
12627 cat >confcache <<\_ACEOF
12628 # This file is a shell script that caches the results of configure
12629 # tests run on this system so they can be shared between configure
12630 # scripts and configure runs, see configure's option --config-cache.
12631 # It is not useful on other systems. If it contains results you don't
12632 # want to keep, you may remove or edit it.
12634 # config.status only pays attention to the cache file if you give it
12635 # the --recheck option to rerun configure.
12637 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12638 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12639 # following values.
12641 _ACEOF
12643 # The following way of writing the cache mishandles newlines in values,
12644 # but we know of no workaround that is simple, portable, and efficient.
12645 # So, we kill variables containing newlines.
12646 # Ultrix sh set writes to stderr and can't be redirected directly,
12647 # and sets the high bit in the cache file unless we assign to the vars.
12649 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12650 eval ac_val=\$$ac_var
12651 case $ac_val in #(
12652 *${as_nl}*)
12653 case $ac_var in #(
12654 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12655 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12656 esac
12657 case $ac_var in #(
12658 _ | IFS | as_nl) ;; #(
12659 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12660 *) { eval $ac_var=; unset $ac_var;} ;;
12661 esac ;;
12662 esac
12663 done
12665 (set) 2>&1 |
12666 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12667 *${as_nl}ac_space=\ *)
12668 # `set' does not quote correctly, so add quotes: double-quote
12669 # substitution turns \\\\ into \\, and sed turns \\ into \.
12670 sed -n \
12671 "s/'/'\\\\''/g;
12672 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12673 ;; #(
12675 # `set' quotes correctly as required by POSIX, so do not add quotes.
12676 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12678 esac |
12679 sort
12681 sed '
12682 /^ac_cv_env_/b end
12683 t clear
12684 :clear
12685 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12686 t end
12687 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12688 :end' >>confcache
12689 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12690 if test -w "$cache_file"; then
12691 if test "x$cache_file" != "x/dev/null"; then
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12693 $as_echo "$as_me: updating cache $cache_file" >&6;}
12694 if test ! -f "$cache_file" || test -h "$cache_file"; then
12695 cat confcache >"$cache_file"
12696 else
12697 case $cache_file in #(
12698 */* | ?:*)
12699 mv -f confcache "$cache_file"$$ &&
12700 mv -f "$cache_file"$$ "$cache_file" ;; #(
12702 mv -f confcache "$cache_file" ;;
12703 esac
12706 else
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12708 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12711 rm -f confcache
12713 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12714 # Let make expand exec_prefix.
12715 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12717 DEFS=-DHAVE_CONFIG_H
12719 ac_libobjs=
12720 ac_ltlibobjs=
12722 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12723 # 1. Remove the extension, and $U if already installed.
12724 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12725 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12726 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12727 # will be set to the directory where LIBOBJS objects are built.
12728 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12729 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12730 done
12731 LIBOBJS=$ac_libobjs
12733 LTLIBOBJS=$ac_ltlibobjs
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12737 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12738 if test -n "$am_sleep_pid"; then
12739 # Hide warnings about reused PIDs.
12740 wait $am_sleep_pid 2>/dev/null
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12743 $as_echo "done" >&6; }
12744 if test -n "$EXEEXT"; then
12745 am__EXEEXT_TRUE=
12746 am__EXEEXT_FALSE='#'
12747 else
12748 am__EXEEXT_TRUE='#'
12749 am__EXEEXT_FALSE=
12752 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12753 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12756 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12757 as_fn_error $? "conditional \"AMDEP\" was never defined.
12758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12760 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12761 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12764 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12765 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12768 if test -z "${LTO_PLUGIN_USE_SYMVER_TRUE}" && test -z "${LTO_PLUGIN_USE_SYMVER_FALSE}"; then
12769 as_fn_error $? "conditional \"LTO_PLUGIN_USE_SYMVER\" was never defined.
12770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12772 if test -z "${LTO_PLUGIN_USE_SYMVER_GNU_TRUE}" && test -z "${LTO_PLUGIN_USE_SYMVER_GNU_FALSE}"; then
12773 as_fn_error $? "conditional \"LTO_PLUGIN_USE_SYMVER_GNU\" was never defined.
12774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12776 if test -z "${LTO_PLUGIN_USE_SYMVER_SUN_TRUE}" && test -z "${LTO_PLUGIN_USE_SYMVER_SUN_FALSE}"; then
12777 as_fn_error $? "conditional \"LTO_PLUGIN_USE_SYMVER_SUN\" was never defined.
12778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12781 : "${CONFIG_STATUS=./config.status}"
12782 ac_write_fail=0
12783 ac_clean_files_save=$ac_clean_files
12784 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12786 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12787 as_write_fail=0
12788 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12789 #! $SHELL
12790 # Generated by $as_me.
12791 # Run this file to recreate the current configuration.
12792 # Compiler output produced by configure, useful for debugging
12793 # configure, is in config.log if it exists.
12795 debug=false
12796 ac_cs_recheck=false
12797 ac_cs_silent=false
12799 SHELL=\${CONFIG_SHELL-$SHELL}
12800 export SHELL
12801 _ASEOF
12802 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12803 ## -------------------- ##
12804 ## M4sh Initialization. ##
12805 ## -------------------- ##
12807 # Be more Bourne compatible
12808 DUALCASE=1; export DUALCASE # for MKS sh
12809 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12810 emulate sh
12811 NULLCMD=:
12812 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12813 # is contrary to our usage. Disable this feature.
12814 alias -g '${1+"$@"}'='"$@"'
12815 setopt NO_GLOB_SUBST
12816 else
12817 case `(set -o) 2>/dev/null` in #(
12818 *posix*) :
12819 set -o posix ;; #(
12820 *) :
12822 esac
12826 as_nl='
12828 export as_nl
12829 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12830 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12831 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12832 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12833 # Prefer a ksh shell builtin over an external printf program on Solaris,
12834 # but without wasting forks for bash or zsh.
12835 if test -z "$BASH_VERSION$ZSH_VERSION" \
12836 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12837 as_echo='print -r --'
12838 as_echo_n='print -rn --'
12839 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12840 as_echo='printf %s\n'
12841 as_echo_n='printf %s'
12842 else
12843 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12844 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12845 as_echo_n='/usr/ucb/echo -n'
12846 else
12847 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12848 as_echo_n_body='eval
12849 arg=$1;
12850 case $arg in #(
12851 *"$as_nl"*)
12852 expr "X$arg" : "X\\(.*\\)$as_nl";
12853 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12854 esac;
12855 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12857 export as_echo_n_body
12858 as_echo_n='sh -c $as_echo_n_body as_echo'
12860 export as_echo_body
12861 as_echo='sh -c $as_echo_body as_echo'
12864 # The user is always right.
12865 if test "${PATH_SEPARATOR+set}" != set; then
12866 PATH_SEPARATOR=:
12867 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12868 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12869 PATH_SEPARATOR=';'
12874 # IFS
12875 # We need space, tab and new line, in precisely that order. Quoting is
12876 # there to prevent editors from complaining about space-tab.
12877 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12878 # splitting by setting IFS to empty value.)
12879 IFS=" "" $as_nl"
12881 # Find who we are. Look in the path if we contain no directory separator.
12882 as_myself=
12883 case $0 in #((
12884 *[\\/]* ) as_myself=$0 ;;
12885 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12886 for as_dir in $PATH
12888 IFS=$as_save_IFS
12889 test -z "$as_dir" && as_dir=.
12890 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12891 done
12892 IFS=$as_save_IFS
12895 esac
12896 # We did not find ourselves, most probably we were run as `sh COMMAND'
12897 # in which case we are not to be found in the path.
12898 if test "x$as_myself" = x; then
12899 as_myself=$0
12901 if test ! -f "$as_myself"; then
12902 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12903 exit 1
12906 # Unset variables that we do not need and which cause bugs (e.g. in
12907 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12908 # suppresses any "Segmentation fault" message there. '((' could
12909 # trigger a bug in pdksh 5.2.14.
12910 for as_var in BASH_ENV ENV MAIL MAILPATH
12911 do eval test x\${$as_var+set} = xset \
12912 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12913 done
12914 PS1='$ '
12915 PS2='> '
12916 PS4='+ '
12918 # NLS nuisances.
12919 LC_ALL=C
12920 export LC_ALL
12921 LANGUAGE=C
12922 export LANGUAGE
12924 # CDPATH.
12925 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12928 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12929 # ----------------------------------------
12930 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12931 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12932 # script with STATUS, using 1 if that was 0.
12933 as_fn_error ()
12935 as_status=$1; test $as_status -eq 0 && as_status=1
12936 if test "$4"; then
12937 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12938 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12940 $as_echo "$as_me: error: $2" >&2
12941 as_fn_exit $as_status
12942 } # as_fn_error
12945 # as_fn_set_status STATUS
12946 # -----------------------
12947 # Set $? to STATUS, without forking.
12948 as_fn_set_status ()
12950 return $1
12951 } # as_fn_set_status
12953 # as_fn_exit STATUS
12954 # -----------------
12955 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12956 as_fn_exit ()
12958 set +e
12959 as_fn_set_status $1
12960 exit $1
12961 } # as_fn_exit
12963 # as_fn_unset VAR
12964 # ---------------
12965 # Portably unset VAR.
12966 as_fn_unset ()
12968 { eval $1=; unset $1;}
12970 as_unset=as_fn_unset
12971 # as_fn_append VAR VALUE
12972 # ----------------------
12973 # Append the text in VALUE to the end of the definition contained in VAR. Take
12974 # advantage of any shell optimizations that allow amortized linear growth over
12975 # repeated appends, instead of the typical quadratic growth present in naive
12976 # implementations.
12977 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12978 eval 'as_fn_append ()
12980 eval $1+=\$2
12982 else
12983 as_fn_append ()
12985 eval $1=\$$1\$2
12987 fi # as_fn_append
12989 # as_fn_arith ARG...
12990 # ------------------
12991 # Perform arithmetic evaluation on the ARGs, and store the result in the
12992 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12993 # must be portable across $(()) and expr.
12994 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12995 eval 'as_fn_arith ()
12997 as_val=$(( $* ))
12999 else
13000 as_fn_arith ()
13002 as_val=`expr "$@" || test $? -eq 1`
13004 fi # as_fn_arith
13007 if expr a : '\(a\)' >/dev/null 2>&1 &&
13008 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13009 as_expr=expr
13010 else
13011 as_expr=false
13014 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13015 as_basename=basename
13016 else
13017 as_basename=false
13020 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13021 as_dirname=dirname
13022 else
13023 as_dirname=false
13026 as_me=`$as_basename -- "$0" ||
13027 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13028 X"$0" : 'X\(//\)$' \| \
13029 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13030 $as_echo X/"$0" |
13031 sed '/^.*\/\([^/][^/]*\)\/*$/{
13032 s//\1/
13035 /^X\/\(\/\/\)$/{
13036 s//\1/
13039 /^X\/\(\/\).*/{
13040 s//\1/
13043 s/.*/./; q'`
13045 # Avoid depending upon Character Ranges.
13046 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13047 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13048 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13049 as_cr_digits='0123456789'
13050 as_cr_alnum=$as_cr_Letters$as_cr_digits
13052 ECHO_C= ECHO_N= ECHO_T=
13053 case `echo -n x` in #(((((
13054 -n*)
13055 case `echo 'xy\c'` in
13056 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13057 xy) ECHO_C='\c';;
13058 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13059 ECHO_T=' ';;
13060 esac;;
13062 ECHO_N='-n';;
13063 esac
13065 rm -f conf$$ conf$$.exe conf$$.file
13066 if test -d conf$$.dir; then
13067 rm -f conf$$.dir/conf$$.file
13068 else
13069 rm -f conf$$.dir
13070 mkdir conf$$.dir 2>/dev/null
13072 if (echo >conf$$.file) 2>/dev/null; then
13073 if ln -s conf$$.file conf$$ 2>/dev/null; then
13074 as_ln_s='ln -s'
13075 # ... but there are two gotchas:
13076 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13077 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13078 # In both cases, we have to default to `cp -pR'.
13079 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13080 as_ln_s='cp -pR'
13081 elif ln conf$$.file conf$$ 2>/dev/null; then
13082 as_ln_s=ln
13083 else
13084 as_ln_s='cp -pR'
13086 else
13087 as_ln_s='cp -pR'
13089 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13090 rmdir conf$$.dir 2>/dev/null
13093 # as_fn_mkdir_p
13094 # -------------
13095 # Create "$as_dir" as a directory, including parents if necessary.
13096 as_fn_mkdir_p ()
13099 case $as_dir in #(
13100 -*) as_dir=./$as_dir;;
13101 esac
13102 test -d "$as_dir" || eval $as_mkdir_p || {
13103 as_dirs=
13104 while :; do
13105 case $as_dir in #(
13106 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13107 *) as_qdir=$as_dir;;
13108 esac
13109 as_dirs="'$as_qdir' $as_dirs"
13110 as_dir=`$as_dirname -- "$as_dir" ||
13111 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13112 X"$as_dir" : 'X\(//\)[^/]' \| \
13113 X"$as_dir" : 'X\(//\)$' \| \
13114 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13115 $as_echo X"$as_dir" |
13116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13117 s//\1/
13120 /^X\(\/\/\)[^/].*/{
13121 s//\1/
13124 /^X\(\/\/\)$/{
13125 s//\1/
13128 /^X\(\/\).*/{
13129 s//\1/
13132 s/.*/./; q'`
13133 test -d "$as_dir" && break
13134 done
13135 test -z "$as_dirs" || eval "mkdir $as_dirs"
13136 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13139 } # as_fn_mkdir_p
13140 if mkdir -p . 2>/dev/null; then
13141 as_mkdir_p='mkdir -p "$as_dir"'
13142 else
13143 test -d ./-p && rmdir ./-p
13144 as_mkdir_p=false
13148 # as_fn_executable_p FILE
13149 # -----------------------
13150 # Test if FILE is an executable regular file.
13151 as_fn_executable_p ()
13153 test -f "$1" && test -x "$1"
13154 } # as_fn_executable_p
13155 as_test_x='test -x'
13156 as_executable_p=as_fn_executable_p
13158 # Sed expression to map a string onto a valid CPP name.
13159 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13161 # Sed expression to map a string onto a valid variable name.
13162 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13165 exec 6>&1
13166 ## ----------------------------------- ##
13167 ## Main body of $CONFIG_STATUS script. ##
13168 ## ----------------------------------- ##
13169 _ASEOF
13170 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13173 # Save the log message, to keep $0 and so on meaningful, and to
13174 # report actual input values of CONFIG_FILES etc. instead of their
13175 # values after options handling.
13176 ac_log="
13177 This file was extended by LTO plugin for ld $as_me 0.1, which was
13178 generated by GNU Autoconf 2.69. Invocation command line was
13180 CONFIG_FILES = $CONFIG_FILES
13181 CONFIG_HEADERS = $CONFIG_HEADERS
13182 CONFIG_LINKS = $CONFIG_LINKS
13183 CONFIG_COMMANDS = $CONFIG_COMMANDS
13184 $ $0 $@
13186 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13189 _ACEOF
13191 case $ac_config_files in *"
13192 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13193 esac
13195 case $ac_config_headers in *"
13196 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13197 esac
13200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13201 # Files that config.status was made for.
13202 config_files="$ac_config_files"
13203 config_headers="$ac_config_headers"
13204 config_commands="$ac_config_commands"
13206 _ACEOF
13208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13209 ac_cs_usage="\
13210 \`$as_me' instantiates files and other configuration actions
13211 from templates according to the current configuration. Unless the files
13212 and actions are specified as TAGs, all are instantiated by default.
13214 Usage: $0 [OPTION]... [TAG]...
13216 -h, --help print this help, then exit
13217 -V, --version print version number and configuration settings, then exit
13218 --config print configuration, then exit
13219 -q, --quiet, --silent
13220 do not print progress messages
13221 -d, --debug don't remove temporary files
13222 --recheck update $as_me by reconfiguring in the same conditions
13223 --file=FILE[:TEMPLATE]
13224 instantiate the configuration file FILE
13225 --header=FILE[:TEMPLATE]
13226 instantiate the configuration header FILE
13228 Configuration files:
13229 $config_files
13231 Configuration headers:
13232 $config_headers
13234 Configuration commands:
13235 $config_commands
13237 Report bugs to the package provider."
13239 _ACEOF
13240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13241 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13242 ac_cs_version="\\
13243 LTO plugin for ld config.status 0.1
13244 configured by $0, generated by GNU Autoconf 2.69,
13245 with options \\"\$ac_cs_config\\"
13247 Copyright (C) 2012 Free Software Foundation, Inc.
13248 This config.status script is free software; the Free Software Foundation
13249 gives unlimited permission to copy, distribute and modify it."
13251 ac_pwd='$ac_pwd'
13252 srcdir='$srcdir'
13253 INSTALL='$INSTALL'
13254 MKDIR_P='$MKDIR_P'
13255 AWK='$AWK'
13256 test -n "\$AWK" || AWK=awk
13257 _ACEOF
13259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13260 # The default lists apply if the user does not specify any file.
13261 ac_need_defaults=:
13262 while test $# != 0
13264 case $1 in
13265 --*=?*)
13266 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13267 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13268 ac_shift=:
13270 --*=)
13271 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13272 ac_optarg=
13273 ac_shift=:
13276 ac_option=$1
13277 ac_optarg=$2
13278 ac_shift=shift
13280 esac
13282 case $ac_option in
13283 # Handling of the options.
13284 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13285 ac_cs_recheck=: ;;
13286 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13287 $as_echo "$ac_cs_version"; exit ;;
13288 --config | --confi | --conf | --con | --co | --c )
13289 $as_echo "$ac_cs_config"; exit ;;
13290 --debug | --debu | --deb | --de | --d | -d )
13291 debug=: ;;
13292 --file | --fil | --fi | --f )
13293 $ac_shift
13294 case $ac_optarg in
13295 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13296 '') as_fn_error $? "missing file argument" ;;
13297 esac
13298 as_fn_append CONFIG_FILES " '$ac_optarg'"
13299 ac_need_defaults=false;;
13300 --header | --heade | --head | --hea )
13301 $ac_shift
13302 case $ac_optarg in
13303 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13304 esac
13305 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13306 ac_need_defaults=false;;
13307 --he | --h)
13308 # Conflict between --help and --header
13309 as_fn_error $? "ambiguous option: \`$1'
13310 Try \`$0 --help' for more information.";;
13311 --help | --hel | -h )
13312 $as_echo "$ac_cs_usage"; exit ;;
13313 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13314 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13315 ac_cs_silent=: ;;
13317 # This is an error.
13318 -*) as_fn_error $? "unrecognized option: \`$1'
13319 Try \`$0 --help' for more information." ;;
13321 *) as_fn_append ac_config_targets " $1"
13322 ac_need_defaults=false ;;
13324 esac
13325 shift
13326 done
13328 ac_configure_extra_args=
13330 if $ac_cs_silent; then
13331 exec 6>/dev/null
13332 ac_configure_extra_args="$ac_configure_extra_args --silent"
13335 _ACEOF
13336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13337 if \$ac_cs_recheck; then
13338 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13339 shift
13340 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13341 CONFIG_SHELL='$SHELL'
13342 export CONFIG_SHELL
13343 exec "\$@"
13346 _ACEOF
13347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13348 exec 5>>config.log
13350 echo
13351 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13352 ## Running $as_me. ##
13353 _ASBOX
13354 $as_echo "$ac_log"
13355 } >&5
13357 _ACEOF
13358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13360 # INIT-COMMANDS
13362 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13365 # The HP-UX ksh and POSIX shell print the target directory to stdout
13366 # if CDPATH is set.
13367 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13369 sed_quote_subst='$sed_quote_subst'
13370 double_quote_subst='$double_quote_subst'
13371 delay_variable_subst='$delay_variable_subst'
13372 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13373 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13374 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13375 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13376 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13377 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13378 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13379 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13380 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13381 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13382 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13383 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13384 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13385 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13386 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13387 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13388 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13389 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13390 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13391 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13392 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13393 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13394 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13395 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13396 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13397 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13398 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13399 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13400 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13401 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13402 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13403 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13404 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13405 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13406 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13407 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13408 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13409 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13410 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13411 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13412 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13413 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13414 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13415 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13416 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13417 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13418 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13419 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13420 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"`'
13421 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13422 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13423 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13424 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13425 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13426 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13427 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13428 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13429 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13430 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13431 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13432 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13433 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13434 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13435 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13436 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13437 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13438 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13439 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13440 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13441 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13442 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13443 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13444 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13445 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13446 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13447 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13448 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13449 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13450 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13451 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13452 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13453 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13454 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13455 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13456 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13457 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13458 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13459 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13460 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13461 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13462 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13463 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13464 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13465 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13466 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13467 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13468 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13469 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13470 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13471 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13472 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13473 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13474 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13475 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13476 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13477 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13478 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13479 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13480 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13481 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13482 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13483 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13484 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13485 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13486 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13487 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13488 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13489 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13490 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13491 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13493 LTCC='$LTCC'
13494 LTCFLAGS='$LTCFLAGS'
13495 compiler='$compiler_DEFAULT'
13497 # A function that is used when there is no print builtin or printf.
13498 func_fallback_echo ()
13500 eval 'cat <<_LTECHO_EOF
13502 _LTECHO_EOF'
13505 # Quote evaled strings.
13506 for var in SHELL \
13507 ECHO \
13508 SED \
13509 GREP \
13510 EGREP \
13511 FGREP \
13512 LD \
13513 NM \
13514 LN_S \
13515 lt_SP2NL \
13516 lt_NL2SP \
13517 reload_flag \
13518 OBJDUMP \
13519 deplibs_check_method \
13520 file_magic_cmd \
13521 AR \
13522 AR_FLAGS \
13523 STRIP \
13524 RANLIB \
13525 CC \
13526 CFLAGS \
13527 compiler \
13528 lt_cv_sys_global_symbol_pipe \
13529 lt_cv_sys_global_symbol_to_cdecl \
13530 lt_cv_sys_global_symbol_to_c_name_address \
13531 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13532 lt_prog_compiler_no_builtin_flag \
13533 lt_prog_compiler_wl \
13534 lt_prog_compiler_pic \
13535 lt_prog_compiler_static \
13536 lt_cv_prog_compiler_c_o \
13537 need_locks \
13538 DSYMUTIL \
13539 NMEDIT \
13540 LIPO \
13541 OTOOL \
13542 OTOOL64 \
13543 shrext_cmds \
13544 export_dynamic_flag_spec \
13545 whole_archive_flag_spec \
13546 compiler_needs_object \
13547 with_gnu_ld \
13548 allow_undefined_flag \
13549 no_undefined_flag \
13550 hardcode_libdir_flag_spec \
13551 hardcode_libdir_flag_spec_ld \
13552 hardcode_libdir_separator \
13553 fix_srcfile_path \
13554 exclude_expsyms \
13555 include_expsyms \
13556 file_list_spec \
13557 variables_saved_for_relink \
13558 libname_spec \
13559 library_names_spec \
13560 soname_spec \
13561 install_override_mode \
13562 finish_eval \
13563 old_striplib \
13564 striplib; do
13565 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13566 *[\\\\\\\`\\"\\\$]*)
13567 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13570 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13572 esac
13573 done
13575 # Double-quote double-evaled strings.
13576 for var in reload_cmds \
13577 old_postinstall_cmds \
13578 old_postuninstall_cmds \
13579 old_archive_cmds \
13580 extract_expsyms_cmds \
13581 old_archive_from_new_cmds \
13582 old_archive_from_expsyms_cmds \
13583 archive_cmds \
13584 archive_expsym_cmds \
13585 module_cmds \
13586 module_expsym_cmds \
13587 export_symbols_cmds \
13588 prelink_cmds \
13589 postinstall_cmds \
13590 postuninstall_cmds \
13591 finish_cmds \
13592 sys_lib_search_path_spec \
13593 sys_lib_dlsearch_path_spec; do
13594 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13595 *[\\\\\\\`\\"\\\$]*)
13596 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13599 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13601 esac
13602 done
13604 ac_aux_dir='$ac_aux_dir'
13605 xsi_shell='$xsi_shell'
13606 lt_shell_append='$lt_shell_append'
13608 # See if we are running on zsh, and set the options which allow our
13609 # commands through without removal of \ escapes INIT.
13610 if test -n "\${ZSH_VERSION+set}" ; then
13611 setopt NO_GLOB_SUBST
13615 PACKAGE='$PACKAGE'
13616 VERSION='$VERSION'
13617 TIMESTAMP='$TIMESTAMP'
13618 RM='$RM'
13619 ofile='$ofile'
13624 _ACEOF
13626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13628 # Handling of arguments.
13629 for ac_config_target in $ac_config_targets
13631 case $ac_config_target in
13632 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13633 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13634 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13635 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13637 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13638 esac
13639 done
13642 # If the user did not use the arguments to specify the items to instantiate,
13643 # then the envvar interface is used. Set only those that are not.
13644 # We use the long form for the default assignment because of an extremely
13645 # bizarre bug on SunOS 4.1.3.
13646 if $ac_need_defaults; then
13647 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13648 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13649 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13652 # Have a temporary directory for convenience. Make it in the build tree
13653 # simply because there is no reason against having it here, and in addition,
13654 # creating and moving files from /tmp can sometimes cause problems.
13655 # Hook for its removal unless debugging.
13656 # Note that there is a small window in which the directory will not be cleaned:
13657 # after its creation but before its name has been assigned to `$tmp'.
13658 $debug ||
13660 tmp= ac_tmp=
13661 trap 'exit_status=$?
13662 : "${ac_tmp:=$tmp}"
13663 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13665 trap 'as_fn_exit 1' 1 2 13 15
13667 # Create a (secure) tmp directory for tmp files.
13670 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13671 test -d "$tmp"
13672 } ||
13674 tmp=./conf$$-$RANDOM
13675 (umask 077 && mkdir "$tmp")
13676 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13677 ac_tmp=$tmp
13679 # Set up the scripts for CONFIG_FILES section.
13680 # No need to generate them if there are no CONFIG_FILES.
13681 # This happens for instance with `./config.status config.h'.
13682 if test -n "$CONFIG_FILES"; then
13685 ac_cr=`echo X | tr X '\015'`
13686 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13687 # But we know of no other shell where ac_cr would be empty at this
13688 # point, so we can use a bashism as a fallback.
13689 if test "x$ac_cr" = x; then
13690 eval ac_cr=\$\'\\r\'
13692 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13693 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13694 ac_cs_awk_cr='\\r'
13695 else
13696 ac_cs_awk_cr=$ac_cr
13699 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13700 _ACEOF
13704 echo "cat >conf$$subs.awk <<_ACEOF" &&
13705 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13706 echo "_ACEOF"
13707 } >conf$$subs.sh ||
13708 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13709 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13710 ac_delim='%!_!# '
13711 for ac_last_try in false false false false false :; do
13712 . ./conf$$subs.sh ||
13713 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13715 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13716 if test $ac_delim_n = $ac_delim_num; then
13717 break
13718 elif $ac_last_try; then
13719 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13720 else
13721 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13723 done
13724 rm -f conf$$subs.sh
13726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13727 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13728 _ACEOF
13729 sed -n '
13731 s/^/S["/; s/!.*/"]=/
13734 s/^[^!]*!//
13735 :repl
13736 t repl
13737 s/'"$ac_delim"'$//
13738 t delim
13741 s/\(.\{148\}\)..*/\1/
13742 t more1
13743 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13746 b repl
13747 :more1
13748 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13751 s/.\{148\}//
13752 t nl
13753 :delim
13755 s/\(.\{148\}\)..*/\1/
13756 t more2
13757 s/["\\]/\\&/g; s/^/"/; s/$/"/
13760 :more2
13761 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13764 s/.\{148\}//
13765 t delim
13766 ' <conf$$subs.awk | sed '
13767 /^[^""]/{
13769 s/\n//
13771 ' >>$CONFIG_STATUS || ac_write_fail=1
13772 rm -f conf$$subs.awk
13773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13774 _ACAWK
13775 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13776 for (key in S) S_is_set[key] = 1
13777 FS = "\a"
13781 line = $ 0
13782 nfields = split(line, field, "@")
13783 substed = 0
13784 len = length(field[1])
13785 for (i = 2; i < nfields; i++) {
13786 key = field[i]
13787 keylen = length(key)
13788 if (S_is_set[key]) {
13789 value = S[key]
13790 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13791 len += length(value) + length(field[++i])
13792 substed = 1
13793 } else
13794 len += 1 + keylen
13797 print line
13800 _ACAWK
13801 _ACEOF
13802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13803 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13804 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13805 else
13807 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13808 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13809 _ACEOF
13811 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13812 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13813 # trailing colons and then remove the whole line if VPATH becomes empty
13814 # (actually we leave an empty line to preserve line numbers).
13815 if test "x$srcdir" = x.; then
13816 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13818 s///
13819 s/^/:/
13820 s/[ ]*$/:/
13821 s/:\$(srcdir):/:/g
13822 s/:\${srcdir}:/:/g
13823 s/:@srcdir@:/:/g
13824 s/^:*//
13825 s/:*$//
13827 s/\(=[ ]*\).*/\1/
13829 s/\n//
13830 s/^[^=]*=[ ]*$//
13834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13835 fi # test -n "$CONFIG_FILES"
13837 # Set up the scripts for CONFIG_HEADERS section.
13838 # No need to generate them if there are no CONFIG_HEADERS.
13839 # This happens for instance with `./config.status Makefile'.
13840 if test -n "$CONFIG_HEADERS"; then
13841 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13842 BEGIN {
13843 _ACEOF
13845 # Transform confdefs.h into an awk script `defines.awk', embedded as
13846 # here-document in config.status, that substitutes the proper values into
13847 # config.h.in to produce config.h.
13849 # Create a delimiter string that does not exist in confdefs.h, to ease
13850 # handling of long lines.
13851 ac_delim='%!_!# '
13852 for ac_last_try in false false :; do
13853 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13854 if test -z "$ac_tt"; then
13855 break
13856 elif $ac_last_try; then
13857 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13858 else
13859 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13861 done
13863 # For the awk script, D is an array of macro values keyed by name,
13864 # likewise P contains macro parameters if any. Preserve backslash
13865 # newline sequences.
13867 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13868 sed -n '
13869 s/.\{148\}/&'"$ac_delim"'/g
13870 t rset
13871 :rset
13872 s/^[ ]*#[ ]*define[ ][ ]*/ /
13873 t def
13875 :def
13876 s/\\$//
13877 t bsnl
13878 s/["\\]/\\&/g
13879 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13880 D["\1"]=" \3"/p
13881 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13883 :bsnl
13884 s/["\\]/\\&/g
13885 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13886 D["\1"]=" \3\\\\\\n"\\/p
13887 t cont
13888 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13889 t cont
13891 :cont
13893 s/.\{148\}/&'"$ac_delim"'/g
13894 t clear
13895 :clear
13896 s/\\$//
13897 t bsnlc
13898 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13900 :bsnlc
13901 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13902 b cont
13903 ' <confdefs.h | sed '
13904 s/'"$ac_delim"'/"\\\
13905 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13908 for (key in D) D_is_set[key] = 1
13909 FS = "\a"
13911 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13912 line = \$ 0
13913 split(line, arg, " ")
13914 if (arg[1] == "#") {
13915 defundef = arg[2]
13916 mac1 = arg[3]
13917 } else {
13918 defundef = substr(arg[1], 2)
13919 mac1 = arg[2]
13921 split(mac1, mac2, "(") #)
13922 macro = mac2[1]
13923 prefix = substr(line, 1, index(line, defundef) - 1)
13924 if (D_is_set[macro]) {
13925 # Preserve the white space surrounding the "#".
13926 print prefix "define", macro P[macro] D[macro]
13927 next
13928 } else {
13929 # Replace #undef with comments. This is necessary, for example,
13930 # in the case of _POSIX_SOURCE, which is predefined and required
13931 # on some systems where configure will not decide to define it.
13932 if (defundef == "undef") {
13933 print "/*", prefix defundef, macro, "*/"
13934 next
13938 { print }
13939 _ACAWK
13940 _ACEOF
13941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13942 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13943 fi # test -n "$CONFIG_HEADERS"
13946 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13947 shift
13948 for ac_tag
13950 case $ac_tag in
13951 :[FHLC]) ac_mode=$ac_tag; continue;;
13952 esac
13953 case $ac_mode$ac_tag in
13954 :[FHL]*:*);;
13955 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13956 :[FH]-) ac_tag=-:-;;
13957 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13958 esac
13959 ac_save_IFS=$IFS
13960 IFS=:
13961 set x $ac_tag
13962 IFS=$ac_save_IFS
13963 shift
13964 ac_file=$1
13965 shift
13967 case $ac_mode in
13968 :L) ac_source=$1;;
13969 :[FH])
13970 ac_file_inputs=
13971 for ac_f
13973 case $ac_f in
13974 -) ac_f="$ac_tmp/stdin";;
13975 *) # Look for the file first in the build tree, then in the source tree
13976 # (if the path is not absolute). The absolute path cannot be DOS-style,
13977 # because $ac_f cannot contain `:'.
13978 test -f "$ac_f" ||
13979 case $ac_f in
13980 [\\/$]*) false;;
13981 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13982 esac ||
13983 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13984 esac
13985 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13986 as_fn_append ac_file_inputs " '$ac_f'"
13987 done
13989 # Let's still pretend it is `configure' which instantiates (i.e., don't
13990 # use $as_me), people would be surprised to read:
13991 # /* config.h. Generated by config.status. */
13992 configure_input='Generated from '`
13993 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13994 `' by configure.'
13995 if test x"$ac_file" != x-; then
13996 configure_input="$ac_file. $configure_input"
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13998 $as_echo "$as_me: creating $ac_file" >&6;}
14000 # Neutralize special characters interpreted by sed in replacement strings.
14001 case $configure_input in #(
14002 *\&* | *\|* | *\\* )
14003 ac_sed_conf_input=`$as_echo "$configure_input" |
14004 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14005 *) ac_sed_conf_input=$configure_input;;
14006 esac
14008 case $ac_tag in
14009 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14010 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14011 esac
14013 esac
14015 ac_dir=`$as_dirname -- "$ac_file" ||
14016 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14017 X"$ac_file" : 'X\(//\)[^/]' \| \
14018 X"$ac_file" : 'X\(//\)$' \| \
14019 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14020 $as_echo X"$ac_file" |
14021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14022 s//\1/
14025 /^X\(\/\/\)[^/].*/{
14026 s//\1/
14029 /^X\(\/\/\)$/{
14030 s//\1/
14033 /^X\(\/\).*/{
14034 s//\1/
14037 s/.*/./; q'`
14038 as_dir="$ac_dir"; as_fn_mkdir_p
14039 ac_builddir=.
14041 case "$ac_dir" in
14042 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14044 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14045 # A ".." for each directory in $ac_dir_suffix.
14046 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14047 case $ac_top_builddir_sub in
14048 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14049 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14050 esac ;;
14051 esac
14052 ac_abs_top_builddir=$ac_pwd
14053 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14054 # for backward compatibility:
14055 ac_top_builddir=$ac_top_build_prefix
14057 case $srcdir in
14058 .) # We are building in place.
14059 ac_srcdir=.
14060 ac_top_srcdir=$ac_top_builddir_sub
14061 ac_abs_top_srcdir=$ac_pwd ;;
14062 [\\/]* | ?:[\\/]* ) # Absolute name.
14063 ac_srcdir=$srcdir$ac_dir_suffix;
14064 ac_top_srcdir=$srcdir
14065 ac_abs_top_srcdir=$srcdir ;;
14066 *) # Relative name.
14067 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14068 ac_top_srcdir=$ac_top_build_prefix$srcdir
14069 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14070 esac
14071 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14074 case $ac_mode in
14077 # CONFIG_FILE
14080 case $INSTALL in
14081 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14082 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14083 esac
14084 ac_MKDIR_P=$MKDIR_P
14085 case $MKDIR_P in
14086 [\\/$]* | ?:[\\/]* ) ;;
14087 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14088 esac
14089 _ACEOF
14091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14092 # If the template does not know about datarootdir, expand it.
14093 # FIXME: This hack should be removed a few years after 2.60.
14094 ac_datarootdir_hack=; ac_datarootdir_seen=
14095 ac_sed_dataroot='
14096 /datarootdir/ {
14100 /@datadir@/p
14101 /@docdir@/p
14102 /@infodir@/p
14103 /@localedir@/p
14104 /@mandir@/p'
14105 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14106 *datarootdir*) ac_datarootdir_seen=yes;;
14107 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14109 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14110 _ACEOF
14111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14112 ac_datarootdir_hack='
14113 s&@datadir@&$datadir&g
14114 s&@docdir@&$docdir&g
14115 s&@infodir@&$infodir&g
14116 s&@localedir@&$localedir&g
14117 s&@mandir@&$mandir&g
14118 s&\\\${datarootdir}&$datarootdir&g' ;;
14119 esac
14120 _ACEOF
14122 # Neutralize VPATH when `$srcdir' = `.'.
14123 # Shell code in configure.ac might set extrasub.
14124 # FIXME: do we really want to maintain this feature?
14125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14126 ac_sed_extra="$ac_vpsub
14127 $extrasub
14128 _ACEOF
14129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14131 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14132 s|@configure_input@|$ac_sed_conf_input|;t t
14133 s&@top_builddir@&$ac_top_builddir_sub&;t t
14134 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14135 s&@srcdir@&$ac_srcdir&;t t
14136 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14137 s&@top_srcdir@&$ac_top_srcdir&;t t
14138 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14139 s&@builddir@&$ac_builddir&;t t
14140 s&@abs_builddir@&$ac_abs_builddir&;t t
14141 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14142 s&@INSTALL@&$ac_INSTALL&;t t
14143 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14144 $ac_datarootdir_hack
14146 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14147 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14149 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14150 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14151 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14152 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14154 which seems to be undefined. Please make sure it is defined" >&5
14155 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14156 which seems to be undefined. Please make sure it is defined" >&2;}
14158 rm -f "$ac_tmp/stdin"
14159 case $ac_file in
14160 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14161 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14162 esac \
14163 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14167 # CONFIG_HEADER
14169 if test x"$ac_file" != x-; then
14171 $as_echo "/* $configure_input */" \
14172 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14173 } >"$ac_tmp/config.h" \
14174 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14175 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14177 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14178 else
14179 rm -f "$ac_file"
14180 mv "$ac_tmp/config.h" "$ac_file" \
14181 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14183 else
14184 $as_echo "/* $configure_input */" \
14185 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14186 || as_fn_error $? "could not create -" "$LINENO" 5
14188 # Compute "$ac_file"'s index in $config_headers.
14189 _am_arg="$ac_file"
14190 _am_stamp_count=1
14191 for _am_header in $config_headers :; do
14192 case $_am_header in
14193 $_am_arg | $_am_arg:* )
14194 break ;;
14196 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14197 esac
14198 done
14199 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14200 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14201 X"$_am_arg" : 'X\(//\)[^/]' \| \
14202 X"$_am_arg" : 'X\(//\)$' \| \
14203 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14204 $as_echo X"$_am_arg" |
14205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14206 s//\1/
14209 /^X\(\/\/\)[^/].*/{
14210 s//\1/
14213 /^X\(\/\/\)$/{
14214 s//\1/
14217 /^X\(\/\).*/{
14218 s//\1/
14221 s/.*/./; q'`/stamp-h$_am_stamp_count
14224 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14225 $as_echo "$as_me: executing $ac_file commands" >&6;}
14227 esac
14230 case $ac_file$ac_mode in
14231 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14232 # Older Autoconf quotes --file arguments for eval, but not when files
14233 # are listed without --file. Let's play safe and only enable the eval
14234 # if we detect the quoting.
14235 case $CONFIG_FILES in
14236 *\'*) eval set x "$CONFIG_FILES" ;;
14237 *) set x $CONFIG_FILES ;;
14238 esac
14239 shift
14240 for mf
14242 # Strip MF so we end up with the name of the file.
14243 mf=`echo "$mf" | sed -e 's/:.*$//'`
14244 # Check whether this is an Automake generated Makefile or not.
14245 # We used to match only the files named 'Makefile.in', but
14246 # some people rename them; so instead we look at the file content.
14247 # Grep'ing the first line is not enough: some people post-process
14248 # each Makefile.in and add a new line on top of each file to say so.
14249 # Grep'ing the whole file is not good either: AIX grep has a line
14250 # limit of 2048, but all sed's we know have understand at least 4000.
14251 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14252 dirpart=`$as_dirname -- "$mf" ||
14253 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14254 X"$mf" : 'X\(//\)[^/]' \| \
14255 X"$mf" : 'X\(//\)$' \| \
14256 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14257 $as_echo X"$mf" |
14258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14259 s//\1/
14262 /^X\(\/\/\)[^/].*/{
14263 s//\1/
14266 /^X\(\/\/\)$/{
14267 s//\1/
14270 /^X\(\/\).*/{
14271 s//\1/
14274 s/.*/./; q'`
14275 else
14276 continue
14278 # Extract the definition of DEPDIR, am__include, and am__quote
14279 # from the Makefile without running 'make'.
14280 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14281 test -z "$DEPDIR" && continue
14282 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14283 test -z "$am__include" && continue
14284 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14285 # Find all dependency output files, they are included files with
14286 # $(DEPDIR) in their names. We invoke sed twice because it is the
14287 # simplest approach to changing $(DEPDIR) to its actual value in the
14288 # expansion.
14289 for file in `sed -n "
14290 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14291 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14292 # Make sure the directory exists.
14293 test -f "$dirpart/$file" && continue
14294 fdir=`$as_dirname -- "$file" ||
14295 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14296 X"$file" : 'X\(//\)[^/]' \| \
14297 X"$file" : 'X\(//\)$' \| \
14298 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14299 $as_echo X"$file" |
14300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14301 s//\1/
14304 /^X\(\/\/\)[^/].*/{
14305 s//\1/
14308 /^X\(\/\/\)$/{
14309 s//\1/
14312 /^X\(\/\).*/{
14313 s//\1/
14316 s/.*/./; q'`
14317 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14318 # echo "creating $dirpart/$file"
14319 echo '# dummy' > "$dirpart/$file"
14320 done
14321 done
14324 "libtool":C)
14326 # See if we are running on zsh, and set the options which allow our
14327 # commands through without removal of \ escapes.
14328 if test -n "${ZSH_VERSION+set}" ; then
14329 setopt NO_GLOB_SUBST
14332 cfgfile="${ofile}T"
14333 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14334 $RM "$cfgfile"
14336 cat <<_LT_EOF >> "$cfgfile"
14337 #! $SHELL
14339 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14340 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14341 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14342 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14344 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14345 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14346 # Written by Gordon Matzigkeit, 1996
14348 # This file is part of GNU Libtool.
14350 # GNU Libtool is free software; you can redistribute it and/or
14351 # modify it under the terms of the GNU General Public License as
14352 # published by the Free Software Foundation; either version 2 of
14353 # the License, or (at your option) any later version.
14355 # As a special exception to the GNU General Public License,
14356 # if you distribute this file as part of a program or library that
14357 # is built using GNU Libtool, you may include this file under the
14358 # same distribution terms that you use for the rest of that program.
14360 # GNU Libtool is distributed in the hope that it will be useful,
14361 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14362 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14363 # GNU General Public License for more details.
14365 # You should have received a copy of the GNU General Public License
14366 # along with GNU Libtool; see the file COPYING. If not, a copy
14367 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14368 # obtained by writing to the Free Software Foundation, Inc.,
14369 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14372 # The names of the tagged configurations supported by this script.
14373 available_tags=""
14375 # ### BEGIN LIBTOOL CONFIG
14377 # Which release of libtool.m4 was used?
14378 macro_version=$macro_version
14379 macro_revision=$macro_revision
14381 # Whether or not to build shared libraries.
14382 build_libtool_libs=$enable_shared
14384 # Whether or not to build static libraries.
14385 build_old_libs=$enable_static
14387 # What type of objects to build.
14388 pic_mode=$pic_mode
14390 # Whether or not to optimize for fast installation.
14391 fast_install=$enable_fast_install
14393 # Shell to use when invoking shell scripts.
14394 SHELL=$lt_SHELL
14396 # An echo program that protects backslashes.
14397 ECHO=$lt_ECHO
14399 # The host system.
14400 host_alias=$host_alias
14401 host=$host
14402 host_os=$host_os
14404 # The build system.
14405 build_alias=$build_alias
14406 build=$build
14407 build_os=$build_os
14409 # A sed program that does not truncate output.
14410 SED=$lt_SED
14412 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14413 Xsed="\$SED -e 1s/^X//"
14415 # A grep program that handles long lines.
14416 GREP=$lt_GREP
14418 # An ERE matcher.
14419 EGREP=$lt_EGREP
14421 # A literal string matcher.
14422 FGREP=$lt_FGREP
14424 # A BSD- or MS-compatible name lister.
14425 NM=$lt_NM
14427 # Whether we need soft or hard links.
14428 LN_S=$lt_LN_S
14430 # What is the maximum length of a command?
14431 max_cmd_len=$max_cmd_len
14433 # Object file suffix (normally "o").
14434 objext=$ac_objext
14436 # Executable file suffix (normally "").
14437 exeext=$exeext
14439 # whether the shell understands "unset".
14440 lt_unset=$lt_unset
14442 # turn spaces into newlines.
14443 SP2NL=$lt_lt_SP2NL
14445 # turn newlines into spaces.
14446 NL2SP=$lt_lt_NL2SP
14448 # An object symbol dumper.
14449 OBJDUMP=$lt_OBJDUMP
14451 # Method to check whether dependent libraries are shared objects.
14452 deplibs_check_method=$lt_deplibs_check_method
14454 # Command to use when deplibs_check_method == "file_magic".
14455 file_magic_cmd=$lt_file_magic_cmd
14457 # The archiver.
14458 AR=$lt_AR
14459 AR_FLAGS=$lt_AR_FLAGS
14461 # A symbol stripping program.
14462 STRIP=$lt_STRIP
14464 # Commands used to install an old-style archive.
14465 RANLIB=$lt_RANLIB
14466 old_postinstall_cmds=$lt_old_postinstall_cmds
14467 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14469 # Whether to use a lock for old archive extraction.
14470 lock_old_archive_extraction=$lock_old_archive_extraction
14472 # A C compiler.
14473 LTCC=$lt_CC
14475 # LTCC compiler flags.
14476 LTCFLAGS=$lt_CFLAGS
14478 # Take the output of nm and produce a listing of raw symbols and C names.
14479 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14481 # Transform the output of nm in a proper C declaration.
14482 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14484 # Transform the output of nm in a C name address pair.
14485 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14487 # Transform the output of nm in a C name address pair when lib prefix is needed.
14488 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14490 # The name of the directory that contains temporary libtool files.
14491 objdir=$objdir
14493 # Used to examine libraries when file_magic_cmd begins with "file".
14494 MAGIC_CMD=$MAGIC_CMD
14496 # Must we lock files when doing compilation?
14497 need_locks=$lt_need_locks
14499 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14500 DSYMUTIL=$lt_DSYMUTIL
14502 # Tool to change global to local symbols on Mac OS X.
14503 NMEDIT=$lt_NMEDIT
14505 # Tool to manipulate fat objects and archives on Mac OS X.
14506 LIPO=$lt_LIPO
14508 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14509 OTOOL=$lt_OTOOL
14511 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14512 OTOOL64=$lt_OTOOL64
14514 # Old archive suffix (normally "a").
14515 libext=$libext
14517 # Shared library suffix (normally ".so").
14518 shrext_cmds=$lt_shrext_cmds
14520 # The commands to extract the exported symbol list from a shared archive.
14521 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14523 # Variables whose values should be saved in libtool wrapper scripts and
14524 # restored at link time.
14525 variables_saved_for_relink=$lt_variables_saved_for_relink
14527 # Do we need the "lib" prefix for modules?
14528 need_lib_prefix=$need_lib_prefix
14530 # Do we need a version for libraries?
14531 need_version=$need_version
14533 # Library versioning type.
14534 version_type=$version_type
14536 # Shared library runtime path variable.
14537 runpath_var=$runpath_var
14539 # Shared library path variable.
14540 shlibpath_var=$shlibpath_var
14542 # Is shlibpath searched before the hard-coded library search path?
14543 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14545 # Format of library name prefix.
14546 libname_spec=$lt_libname_spec
14548 # List of archive names. First name is the real one, the rest are links.
14549 # The last name is the one that the linker finds with -lNAME
14550 library_names_spec=$lt_library_names_spec
14552 # The coded name of the library, if different from the real name.
14553 soname_spec=$lt_soname_spec
14555 # Permission mode override for installation of shared libraries.
14556 install_override_mode=$lt_install_override_mode
14558 # Command to use after installation of a shared archive.
14559 postinstall_cmds=$lt_postinstall_cmds
14561 # Command to use after uninstallation of a shared archive.
14562 postuninstall_cmds=$lt_postuninstall_cmds
14564 # Commands used to finish a libtool library installation in a directory.
14565 finish_cmds=$lt_finish_cmds
14567 # As "finish_cmds", except a single script fragment to be evaled but
14568 # not shown.
14569 finish_eval=$lt_finish_eval
14571 # Whether we should hardcode library paths into libraries.
14572 hardcode_into_libs=$hardcode_into_libs
14574 # Compile-time system search path for libraries.
14575 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14577 # Run-time system search path for libraries.
14578 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14580 # Whether dlopen is supported.
14581 dlopen_support=$enable_dlopen
14583 # Whether dlopen of programs is supported.
14584 dlopen_self=$enable_dlopen_self
14586 # Whether dlopen of statically linked programs is supported.
14587 dlopen_self_static=$enable_dlopen_self_static
14589 # Commands to strip libraries.
14590 old_striplib=$lt_old_striplib
14591 striplib=$lt_striplib
14594 # The linker used to build libraries.
14595 LD=$lt_LD
14597 # How to create reloadable object files.
14598 reload_flag=$lt_reload_flag
14599 reload_cmds=$lt_reload_cmds
14601 # Commands used to build an old-style archive.
14602 old_archive_cmds=$lt_old_archive_cmds
14604 # A language specific compiler.
14605 CC=$lt_compiler
14607 # Is the compiler the GNU compiler?
14608 with_gcc=$GCC
14610 # Compiler flag to turn off builtin functions.
14611 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14613 # How to pass a linker flag through the compiler.
14614 wl=$lt_lt_prog_compiler_wl
14616 # Additional compiler flags for building library objects.
14617 pic_flag=$lt_lt_prog_compiler_pic
14619 # Compiler flag to prevent dynamic linking.
14620 link_static_flag=$lt_lt_prog_compiler_static
14622 # Does compiler simultaneously support -c and -o options?
14623 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14625 # Whether or not to add -lc for building shared libraries.
14626 build_libtool_need_lc=$archive_cmds_need_lc
14628 # Whether or not to disallow shared libs when runtime libs are static.
14629 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14631 # Compiler flag to allow reflexive dlopens.
14632 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14634 # Compiler flag to generate shared objects directly from archives.
14635 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14637 # Whether the compiler copes with passing no objects directly.
14638 compiler_needs_object=$lt_compiler_needs_object
14640 # Create an old-style archive from a shared archive.
14641 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14643 # Create a temporary old-style archive to link instead of a shared archive.
14644 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14646 # Commands used to build a shared archive.
14647 archive_cmds=$lt_archive_cmds
14648 archive_expsym_cmds=$lt_archive_expsym_cmds
14650 # Commands used to build a loadable module if different from building
14651 # a shared archive.
14652 module_cmds=$lt_module_cmds
14653 module_expsym_cmds=$lt_module_expsym_cmds
14655 # Whether we are building with GNU ld or not.
14656 with_gnu_ld=$lt_with_gnu_ld
14658 # Flag that allows shared libraries with undefined symbols to be built.
14659 allow_undefined_flag=$lt_allow_undefined_flag
14661 # Flag that enforces no undefined symbols.
14662 no_undefined_flag=$lt_no_undefined_flag
14664 # Flag to hardcode \$libdir into a binary during linking.
14665 # This must work even if \$libdir does not exist
14666 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14668 # If ld is used when linking, flag to hardcode \$libdir into a binary
14669 # during linking. This must work even if \$libdir does not exist.
14670 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14672 # Whether we need a single "-rpath" flag with a separated argument.
14673 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14675 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14676 # DIR into the resulting binary.
14677 hardcode_direct=$hardcode_direct
14679 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14680 # DIR into the resulting binary and the resulting library dependency is
14681 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14682 # library is relocated.
14683 hardcode_direct_absolute=$hardcode_direct_absolute
14685 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14686 # into the resulting binary.
14687 hardcode_minus_L=$hardcode_minus_L
14689 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14690 # into the resulting binary.
14691 hardcode_shlibpath_var=$hardcode_shlibpath_var
14693 # Set to "yes" if building a shared library automatically hardcodes DIR
14694 # into the library and all subsequent libraries and executables linked
14695 # against it.
14696 hardcode_automatic=$hardcode_automatic
14698 # Set to yes if linker adds runtime paths of dependent libraries
14699 # to runtime path list.
14700 inherit_rpath=$inherit_rpath
14702 # Whether libtool must link a program against all its dependency libraries.
14703 link_all_deplibs=$link_all_deplibs
14705 # Fix the shell variable \$srcfile for the compiler.
14706 fix_srcfile_path=$lt_fix_srcfile_path
14708 # Set to "yes" if exported symbols are required.
14709 always_export_symbols=$always_export_symbols
14711 # The commands to list exported symbols.
14712 export_symbols_cmds=$lt_export_symbols_cmds
14714 # Symbols that should not be listed in the preloaded symbols.
14715 exclude_expsyms=$lt_exclude_expsyms
14717 # Symbols that must always be exported.
14718 include_expsyms=$lt_include_expsyms
14720 # Commands necessary for linking programs (against libraries) with templates.
14721 prelink_cmds=$lt_prelink_cmds
14723 # Specify filename containing input files.
14724 file_list_spec=$lt_file_list_spec
14726 # How to hardcode a shared library path into an executable.
14727 hardcode_action=$hardcode_action
14729 # ### END LIBTOOL CONFIG
14731 _LT_EOF
14733 case $host_os in
14734 aix3*)
14735 cat <<\_LT_EOF >> "$cfgfile"
14736 # AIX sometimes has problems with the GCC collect2 program. For some
14737 # reason, if we set the COLLECT_NAMES environment variable, the problems
14738 # vanish in a puff of smoke.
14739 if test "X${COLLECT_NAMES+set}" != Xset; then
14740 COLLECT_NAMES=
14741 export COLLECT_NAMES
14743 _LT_EOF
14745 esac
14748 ltmain="$ac_aux_dir/ltmain.sh"
14751 # We use sed instead of cat because bash on DJGPP gets confused if
14752 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14753 # text mode, it properly converts lines to CR/LF. This bash problem
14754 # is reportedly fixed, but why not run on old versions too?
14755 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14756 || (rm -f "$cfgfile"; exit 1)
14758 case $xsi_shell in
14759 yes)
14760 cat << \_LT_EOF >> "$cfgfile"
14762 # func_dirname file append nondir_replacement
14763 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14764 # otherwise set result to NONDIR_REPLACEMENT.
14765 func_dirname ()
14767 case ${1} in
14768 */*) func_dirname_result="${1%/*}${2}" ;;
14769 * ) func_dirname_result="${3}" ;;
14770 esac
14773 # func_basename file
14774 func_basename ()
14776 func_basename_result="${1##*/}"
14779 # func_dirname_and_basename file append nondir_replacement
14780 # perform func_basename and func_dirname in a single function
14781 # call:
14782 # dirname: Compute the dirname of FILE. If nonempty,
14783 # add APPEND to the result, otherwise set result
14784 # to NONDIR_REPLACEMENT.
14785 # value returned in "$func_dirname_result"
14786 # basename: Compute filename of FILE.
14787 # value retuned in "$func_basename_result"
14788 # Implementation must be kept synchronized with func_dirname
14789 # and func_basename. For efficiency, we do not delegate to
14790 # those functions but instead duplicate the functionality here.
14791 func_dirname_and_basename ()
14793 case ${1} in
14794 */*) func_dirname_result="${1%/*}${2}" ;;
14795 * ) func_dirname_result="${3}" ;;
14796 esac
14797 func_basename_result="${1##*/}"
14800 # func_stripname prefix suffix name
14801 # strip PREFIX and SUFFIX off of NAME.
14802 # PREFIX and SUFFIX must not contain globbing or regex special
14803 # characters, hashes, percent signs, but SUFFIX may contain a leading
14804 # dot (in which case that matches only a dot).
14805 func_stripname ()
14807 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14808 # positional parameters, so assign one to ordinary parameter first.
14809 func_stripname_result=${3}
14810 func_stripname_result=${func_stripname_result#"${1}"}
14811 func_stripname_result=${func_stripname_result%"${2}"}
14814 # func_opt_split
14815 func_opt_split ()
14817 func_opt_split_opt=${1%%=*}
14818 func_opt_split_arg=${1#*=}
14821 # func_lo2o object
14822 func_lo2o ()
14824 case ${1} in
14825 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14826 *) func_lo2o_result=${1} ;;
14827 esac
14830 # func_xform libobj-or-source
14831 func_xform ()
14833 func_xform_result=${1%.*}.lo
14836 # func_arith arithmetic-term...
14837 func_arith ()
14839 func_arith_result=$(( $* ))
14842 # func_len string
14843 # STRING may not start with a hyphen.
14844 func_len ()
14846 func_len_result=${#1}
14849 _LT_EOF
14851 *) # Bourne compatible functions.
14852 cat << \_LT_EOF >> "$cfgfile"
14854 # func_dirname file append nondir_replacement
14855 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14856 # otherwise set result to NONDIR_REPLACEMENT.
14857 func_dirname ()
14859 # Extract subdirectory from the argument.
14860 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14861 if test "X$func_dirname_result" = "X${1}"; then
14862 func_dirname_result="${3}"
14863 else
14864 func_dirname_result="$func_dirname_result${2}"
14868 # func_basename file
14869 func_basename ()
14871 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14875 # func_stripname prefix suffix name
14876 # strip PREFIX and SUFFIX off of NAME.
14877 # PREFIX and SUFFIX must not contain globbing or regex special
14878 # characters, hashes, percent signs, but SUFFIX may contain a leading
14879 # dot (in which case that matches only a dot).
14880 # func_strip_suffix prefix name
14881 func_stripname ()
14883 case ${2} in
14884 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14885 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14886 esac
14889 # sed scripts:
14890 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14891 my_sed_long_arg='1s/^-[^=]*=//'
14893 # func_opt_split
14894 func_opt_split ()
14896 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14897 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14900 # func_lo2o object
14901 func_lo2o ()
14903 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14906 # func_xform libobj-or-source
14907 func_xform ()
14909 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14912 # func_arith arithmetic-term...
14913 func_arith ()
14915 func_arith_result=`expr "$@"`
14918 # func_len string
14919 # STRING may not start with a hyphen.
14920 func_len ()
14922 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14925 _LT_EOF
14926 esac
14928 case $lt_shell_append in
14929 yes)
14930 cat << \_LT_EOF >> "$cfgfile"
14932 # func_append var value
14933 # Append VALUE to the end of shell variable VAR.
14934 func_append ()
14936 eval "$1+=\$2"
14938 _LT_EOF
14941 cat << \_LT_EOF >> "$cfgfile"
14943 # func_append var value
14944 # Append VALUE to the end of shell variable VAR.
14945 func_append ()
14947 eval "$1=\$$1\$2"
14950 _LT_EOF
14952 esac
14955 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14956 || (rm -f "$cfgfile"; exit 1)
14958 mv -f "$cfgfile" "$ofile" ||
14959 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14960 chmod +x "$ofile"
14964 esac
14965 done # for ac_tag
14968 as_fn_exit 0
14969 _ACEOF
14970 ac_clean_files=$ac_clean_files_save
14972 test $ac_write_fail = 0 ||
14973 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14976 # configure is writing to config.log, and then calls config.status.
14977 # config.status does its own redirection, appending to config.log.
14978 # Unfortunately, on DOS this fails, as config.log is still kept open
14979 # by configure, so config.status won't be able to write to it; its
14980 # output is simply discarded. So we exec the FD to /dev/null,
14981 # effectively closing config.log, so it can be properly (re)opened and
14982 # appended to by config.status. When coming back to configure, we
14983 # need to make the FD available again.
14984 if test "$no_create" != yes; then
14985 ac_cs_success=:
14986 ac_config_status_args=
14987 test "$silent" = yes &&
14988 ac_config_status_args="$ac_config_status_args --quiet"
14989 exec 5>/dev/null
14990 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14991 exec 5>>config.log
14992 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14993 # would make configure fail if this is the last instruction.
14994 $ac_cs_success || as_fn_exit 1
14996 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14998 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}