primary.c (match_real_constant): Remove shadowing local vars.
[official-gcc.git] / lto-plugin / configure
blobd81b297b44cd5ff481da246215667064eca162da
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 get_gcc_base_ver
654 real_target_noncanonical
655 accel_dir_suffix
656 gcc_build_dir
657 ac_lto_plugin_ldflags
658 ac_lto_plugin_warn_cflags
659 EGREP
660 GREP
662 am__fastdepCC_FALSE
663 am__fastdepCC_TRUE
664 CCDEPMODE
665 am__nodep
666 AMDEPBACKSLASH
667 AMDEP_FALSE
668 AMDEP_TRUE
669 am__quote
670 am__include
671 DEPDIR
672 OBJEXT
673 EXEEXT
674 ac_ct_CC
675 CPPFLAGS
676 LDFLAGS
677 CFLAGS
679 with_libiberty
680 MAINT
681 MAINTAINER_MODE_FALSE
682 MAINTAINER_MODE_TRUE
683 AM_BACKSLASH
684 AM_DEFAULT_VERBOSITY
685 AM_DEFAULT_V
686 AM_V
687 am__untar
688 am__tar
689 AMTAR
690 am__leading_dot
691 SET_MAKE
693 mkdir_p
694 MKDIR_P
695 INSTALL_STRIP_PROGRAM
696 STRIP
697 install_sh
698 MAKEINFO
699 AUTOHEADER
700 AUTOMAKE
701 AUTOCONF
702 ACLOCAL
703 VERSION
704 PACKAGE
705 CYGPATH_W
706 am__isrc
707 INSTALL_DATA
708 INSTALL_SCRIPT
709 INSTALL_PROGRAM
710 target_subdir
711 host_subdir
712 build_subdir
713 build_libsubdir
714 target_os
715 target_vendor
716 target_cpu
717 target
718 host_os
719 host_vendor
720 host_cpu
721 host
722 build_os
723 build_vendor
724 build_cpu
725 build
726 target_alias
727 host_alias
728 build_alias
729 LIBS
730 ECHO_T
731 ECHO_N
732 ECHO_C
733 DEFS
734 mandir
735 localedir
736 libdir
737 psdir
738 pdfdir
739 dvidir
740 htmldir
741 infodir
742 docdir
743 oldincludedir
744 includedir
745 localstatedir
746 sharedstatedir
747 sysconfdir
748 datadir
749 datarootdir
750 libexecdir
751 sbindir
752 bindir
753 program_transform_name
754 prefix
755 exec_prefix
756 PACKAGE_URL
757 PACKAGE_BUGREPORT
758 PACKAGE_STRING
759 PACKAGE_VERSION
760 PACKAGE_TARNAME
761 PACKAGE_NAME
762 PATH_SEPARATOR
763 SHELL'
764 ac_subst_files=''
765 ac_user_opts='
766 enable_option_checking
767 with_build_libsubdir
768 enable_silent_rules
769 enable_maintainer_mode
770 with_libiberty
771 enable_dependency_tracking
772 enable_largefile
773 with_gcc_major_version_only
774 enable_shared
775 enable_static
776 with_pic
777 enable_fast_install
778 with_gnu_ld
779 enable_libtool_lock
781 ac_precious_vars='build_alias
782 host_alias
783 target_alias
785 CFLAGS
786 LDFLAGS
787 LIBS
788 CPPFLAGS
789 CPP'
792 # Initialize some variables set by options.
793 ac_init_help=
794 ac_init_version=false
795 ac_unrecognized_opts=
796 ac_unrecognized_sep=
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
799 cache_file=/dev/null
800 exec_prefix=NONE
801 no_create=
802 no_recursion=
803 prefix=NONE
804 program_prefix=NONE
805 program_suffix=NONE
806 program_transform_name=s,x,x,
807 silent=
808 site=
809 srcdir=
810 verbose=
811 x_includes=NONE
812 x_libraries=NONE
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir='${exec_prefix}/bin'
821 sbindir='${exec_prefix}/sbin'
822 libexecdir='${exec_prefix}/libexec'
823 datarootdir='${prefix}/share'
824 datadir='${datarootdir}'
825 sysconfdir='${prefix}/etc'
826 sharedstatedir='${prefix}/com'
827 localstatedir='${prefix}/var'
828 includedir='${prefix}/include'
829 oldincludedir='/usr/include'
830 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831 infodir='${datarootdir}/info'
832 htmldir='${docdir}'
833 dvidir='${docdir}'
834 pdfdir='${docdir}'
835 psdir='${docdir}'
836 libdir='${exec_prefix}/lib'
837 localedir='${datarootdir}/locale'
838 mandir='${datarootdir}/man'
840 ac_prev=
841 ac_dashdash=
842 for ac_option
844 # If the previous option needs an argument, assign it.
845 if test -n "$ac_prev"; then
846 eval $ac_prev=\$ac_option
847 ac_prev=
848 continue
851 case $ac_option in
852 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 *=) ac_optarg= ;;
854 *) ac_optarg=yes ;;
855 esac
857 # Accept the important Cygnus configure options, so we can diagnose typos.
859 case $ac_dashdash$ac_option in
861 ac_dashdash=yes ;;
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 bindir=$ac_optarg ;;
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
880 --config-cache | -C)
881 cache_file=config.cache ;;
883 -datadir | --datadir | --datadi | --datad)
884 ac_prev=datadir ;;
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
895 -disable-* | --disable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error $? "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
904 "enable_$ac_useropt"
905 "*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=no ;;
911 -docdir | --docdir | --docdi | --doc | --do)
912 ac_prev=docdir ;;
913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914 docdir=$ac_optarg ;;
916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917 ac_prev=dvidir ;;
918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919 dvidir=$ac_optarg ;;
921 -enable-* | --enable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error $? "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
930 "enable_$ac_useropt"
931 "*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=\$ac_optarg ;;
937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939 | --exec | --exe | --ex)
940 ac_prev=exec_prefix ;;
941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943 | --exec=* | --exe=* | --ex=*)
944 exec_prefix=$ac_optarg ;;
946 -gas | --gas | --ga | --g)
947 # Obsolete; use --with-gas.
948 with_gas=yes ;;
950 -help | --help | --hel | --he | -h)
951 ac_init_help=long ;;
952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953 ac_init_help=recursive ;;
954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955 ac_init_help=short ;;
957 -host | --host | --hos | --ho)
958 ac_prev=host_alias ;;
959 -host=* | --host=* | --hos=* | --ho=*)
960 host_alias=$ac_optarg ;;
962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963 ac_prev=htmldir ;;
964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965 | --ht=*)
966 htmldir=$ac_optarg ;;
968 -includedir | --includedir | --includedi | --included | --include \
969 | --includ | --inclu | --incl | --inc)
970 ac_prev=includedir ;;
971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972 | --includ=* | --inclu=* | --incl=* | --inc=*)
973 includedir=$ac_optarg ;;
975 -infodir | --infodir | --infodi | --infod | --info | --inf)
976 ac_prev=infodir ;;
977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978 infodir=$ac_optarg ;;
980 -libdir | --libdir | --libdi | --libd)
981 ac_prev=libdir ;;
982 -libdir=* | --libdir=* | --libdi=* | --libd=*)
983 libdir=$ac_optarg ;;
985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986 | --libexe | --libex | --libe)
987 ac_prev=libexecdir ;;
988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989 | --libexe=* | --libex=* | --libe=*)
990 libexecdir=$ac_optarg ;;
992 -localedir | --localedir | --localedi | --localed | --locale)
993 ac_prev=localedir ;;
994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995 localedir=$ac_optarg ;;
997 -localstatedir | --localstatedir | --localstatedi | --localstated \
998 | --localstate | --localstat | --localsta | --localst | --locals)
999 ac_prev=localstatedir ;;
1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002 localstatedir=$ac_optarg ;;
1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005 ac_prev=mandir ;;
1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007 mandir=$ac_optarg ;;
1009 -nfp | --nfp | --nf)
1010 # Obsolete; use --without-fp.
1011 with_fp=no ;;
1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014 | --no-cr | --no-c | -n)
1015 no_create=yes ;;
1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019 no_recursion=yes ;;
1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023 | --oldin | --oldi | --old | --ol | --o)
1024 ac_prev=oldincludedir ;;
1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028 oldincludedir=$ac_optarg ;;
1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031 ac_prev=prefix ;;
1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033 prefix=$ac_optarg ;;
1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036 | --program-pre | --program-pr | --program-p)
1037 ac_prev=program_prefix ;;
1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040 program_prefix=$ac_optarg ;;
1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043 | --program-suf | --program-su | --program-s)
1044 ac_prev=program_suffix ;;
1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047 program_suffix=$ac_optarg ;;
1049 -program-transform-name | --program-transform-name \
1050 | --program-transform-nam | --program-transform-na \
1051 | --program-transform-n | --program-transform- \
1052 | --program-transform | --program-transfor \
1053 | --program-transfo | --program-transf \
1054 | --program-trans | --program-tran \
1055 | --progr-tra | --program-tr | --program-t)
1056 ac_prev=program_transform_name ;;
1057 -program-transform-name=* | --program-transform-name=* \
1058 | --program-transform-nam=* | --program-transform-na=* \
1059 | --program-transform-n=* | --program-transform-=* \
1060 | --program-transform=* | --program-transfor=* \
1061 | --program-transfo=* | --program-transf=* \
1062 | --program-trans=* | --program-tran=* \
1063 | --progr-tra=* | --program-tr=* | --program-t=*)
1064 program_transform_name=$ac_optarg ;;
1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067 ac_prev=pdfdir ;;
1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069 pdfdir=$ac_optarg ;;
1071 -psdir | --psdir | --psdi | --psd | --ps)
1072 ac_prev=psdir ;;
1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074 psdir=$ac_optarg ;;
1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077 | -silent | --silent | --silen | --sile | --sil)
1078 silent=yes ;;
1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081 ac_prev=sbindir ;;
1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083 | --sbi=* | --sb=*)
1084 sbindir=$ac_optarg ;;
1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088 | --sharedst | --shareds | --shared | --share | --shar \
1089 | --sha | --sh)
1090 ac_prev=sharedstatedir ;;
1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094 | --sha=* | --sh=*)
1095 sharedstatedir=$ac_optarg ;;
1097 -site | --site | --sit)
1098 ac_prev=site ;;
1099 -site=* | --site=* | --sit=*)
1100 site=$ac_optarg ;;
1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103 ac_prev=srcdir ;;
1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105 srcdir=$ac_optarg ;;
1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108 | --syscon | --sysco | --sysc | --sys | --sy)
1109 ac_prev=sysconfdir ;;
1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112 sysconfdir=$ac_optarg ;;
1114 -target | --target | --targe | --targ | --tar | --ta | --t)
1115 ac_prev=target_alias ;;
1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117 target_alias=$ac_optarg ;;
1119 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120 verbose=yes ;;
1122 -version | --version | --versio | --versi | --vers | -V)
1123 ac_init_version=: ;;
1125 -with-* | --with-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error $? "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1134 "with_$ac_useropt"
1135 "*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1138 esac
1139 eval with_$ac_useropt=\$ac_optarg ;;
1141 -without-* | --without-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error $? "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1150 "with_$ac_useropt"
1151 "*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=no ;;
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1175 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1176 Try \`$0 --help' for more information"
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 case $ac_envvar in #(
1183 '' | [0-9]* | *[!_$as_cr_alnum]* )
1184 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1185 esac
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1190 # FIXME: should be removed in autoconf 3.0.
1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1197 esac
1198 done
1200 if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 as_fn_error $? "missing argument to $ac_option"
1205 if test -n "$ac_unrecognized_opts"; then
1206 case $enable_option_checking in
1207 no) ;;
1208 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210 esac
1213 # Check all directory arguments for consistency.
1214 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
1219 eval ac_val=\$$ac_var
1220 # Remove trailing slashes.
1221 case $ac_val in
1222 */ )
1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224 eval $ac_var=\$ac_val;;
1225 esac
1226 # Be sure to have absolute directory names.
1227 case $ac_val in
1228 [\\/$]* | ?:[\\/]* ) continue;;
1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230 esac
1231 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1232 done
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1237 build=$build_alias
1238 host=$host_alias
1239 target=$target_alias
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
1245 elif test "x$build_alias" != "x$host_alias"; then
1246 cross_compiling=yes
1250 ac_tool_prefix=
1251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253 test "$silent" = yes && exec 6>/dev/null
1256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di=`ls -di .` &&
1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259 as_fn_error $? "working directory cannot be determined"
1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 as_fn_error $? "pwd does not report name of working directory"
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$as_myself" ||
1269 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$as_myself" : 'X\(//\)[^/]' \| \
1271 X"$as_myself" : 'X\(//\)$' \| \
1272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273 $as_echo X"$as_myself" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1282 /^X\(\/\/\)$/{
1283 s//\1/
1286 /^X\(\/\).*/{
1287 s//\1/
1290 s/.*/./; q'`
1291 srcdir=$ac_confdir
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 srcdir=..
1295 else
1296 ac_srcdir_defaulted=no
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1302 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303 ac_abs_confdir=`(
1304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1305 pwd)`
1306 # When building in place, set srcdir=.
1307 if test "$ac_abs_confdir" = "$ac_pwd"; then
1308 srcdir=.
1310 # Remove unnecessary trailing slashes from srcdir.
1311 # Double slashes in file names in object file debugging info
1312 # mess up M-x gdb in Emacs.
1313 case $srcdir in
1314 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315 esac
1316 for ac_var in $ac_precious_vars; do
1317 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_env_${ac_var}_value=\$${ac_var}
1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321 done
1324 # Report the --help message.
1326 if test "$ac_init_help" = "long"; then
1327 # Omit some internal or obsolete options to make the list less imposing.
1328 # This message is too long to be a string in the A/UX 3.1 sh.
1329 cat <<_ACEOF
1330 \`configure' configures LTO plugin for ld 0.1 to adapt to many kinds of systems.
1332 Usage: $0 [OPTION]... [VAR=VALUE]...
1334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335 VAR=VALUE. See below for descriptions of some of the useful variables.
1337 Defaults for the options are specified in brackets.
1339 Configuration:
1340 -h, --help display this help and exit
1341 --help=short display options specific to this package
1342 --help=recursive display the short help of all the included packages
1343 -V, --version display version information and exit
1344 -q, --quiet, --silent do not print \`checking ...' messages
1345 --cache-file=FILE cache test results in FILE [disabled]
1346 -C, --config-cache alias for \`--cache-file=config.cache'
1347 -n, --no-create do not create output files
1348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1350 Installation directories:
1351 --prefix=PREFIX install architecture-independent files in PREFIX
1352 [$ac_default_prefix]
1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1354 [PREFIX]
1356 By default, \`make install' will install all the files in
1357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359 for instance \`--prefix=\$HOME'.
1361 For better control, use the options below.
1363 Fine tuning of the installation directories:
1364 --bindir=DIR user executables [EPREFIX/bin]
1365 --sbindir=DIR system admin executables [EPREFIX/sbin]
1366 --libexecdir=DIR program executables [EPREFIX/libexec]
1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370 --libdir=DIR object code libraries [EPREFIX/lib]
1371 --includedir=DIR C header files [PREFIX/include]
1372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --infodir=DIR info documentation [DATAROOTDIR/info]
1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377 --mandir=DIR man documentation [DATAROOTDIR/man]
1378 --docdir=DIR documentation root [DATAROOTDIR/doc/lto-plugin]
1379 --htmldir=DIR html documentation [DOCDIR]
1380 --dvidir=DIR dvi documentation [DOCDIR]
1381 --pdfdir=DIR pdf documentation [DOCDIR]
1382 --psdir=DIR ps documentation [DOCDIR]
1383 _ACEOF
1385 cat <<\_ACEOF
1387 Program names:
1388 --program-prefix=PREFIX prepend PREFIX to installed program names
1389 --program-suffix=SUFFIX append SUFFIX to installed program names
1390 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1392 System types:
1393 --build=BUILD configure for building on BUILD [guessed]
1394 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1395 --target=TARGET configure for building compilers for TARGET [HOST]
1396 _ACEOF
1399 if test -n "$ac_init_help"; then
1400 case $ac_init_help in
1401 short | recursive ) echo "Configuration of LTO plugin for ld 0.1:";;
1402 esac
1403 cat <<\_ACEOF
1405 Optional Features:
1406 --disable-option-checking ignore unrecognized --enable/--with options
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1409 --enable-silent-rules less verbose build output (undo: "make V=1")
1410 --disable-silent-rules verbose build output (undo: "make V=0")
1411 --enable-maintainer-mode
1412 enable make rules and dependencies not useful (and
1413 sometimes confusing) to the casual installer
1414 --enable-dependency-tracking
1415 do not reject slow dependency extractors
1416 --disable-dependency-tracking
1417 speeds up one-time build
1418 --disable-largefile omit support for large files
1419 --enable-shared[=PKGS] build shared libraries [default=yes]
1420 --enable-static[=PKGS] build static libraries [default=yes]
1421 --enable-fast-install[=PKGS]
1422 optimize for fast installation [default=yes]
1423 --disable-libtool-lock avoid locking (might break parallel builds)
1425 Optional Packages:
1426 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1427 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1428 --with-build-libsubdir=DIR Directory where to find libraries for build system
1429 --with-libiberty=PATH specify the directory where to find libiberty
1430 [../libiberty]
1431 --with-gcc-major-version-only
1432 use only GCC major number in filesystem paths
1433 --with-pic try to use only PIC/non-PIC objects [default=use
1434 both]
1435 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1437 Some influential environment variables:
1438 CC C compiler command
1439 CFLAGS C compiler flags
1440 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1441 nonstandard directory <lib dir>
1442 LIBS libraries to pass to the linker, e.g. -l<library>
1443 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1444 you have headers in a nonstandard directory <include dir>
1445 CPP C preprocessor
1447 Use these variables to override the choices made by `configure' or to help
1448 it to find libraries and programs with nonstandard names/locations.
1450 Report bugs to the package provider.
1451 _ACEOF
1452 ac_status=$?
1455 if test "$ac_init_help" = "recursive"; then
1456 # If there are subdirs, report their specific --help.
1457 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1458 test -d "$ac_dir" ||
1459 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1460 continue
1461 ac_builddir=.
1463 case "$ac_dir" in
1464 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1467 # A ".." for each directory in $ac_dir_suffix.
1468 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1469 case $ac_top_builddir_sub in
1470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1472 esac ;;
1473 esac
1474 ac_abs_top_builddir=$ac_pwd
1475 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1476 # for backward compatibility:
1477 ac_top_builddir=$ac_top_build_prefix
1479 case $srcdir in
1480 .) # We are building in place.
1481 ac_srcdir=.
1482 ac_top_srcdir=$ac_top_builddir_sub
1483 ac_abs_top_srcdir=$ac_pwd ;;
1484 [\\/]* | ?:[\\/]* ) # Absolute name.
1485 ac_srcdir=$srcdir$ac_dir_suffix;
1486 ac_top_srcdir=$srcdir
1487 ac_abs_top_srcdir=$srcdir ;;
1488 *) # Relative name.
1489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1490 ac_top_srcdir=$ac_top_build_prefix$srcdir
1491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1492 esac
1493 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1495 cd "$ac_dir" || { ac_status=$?; continue; }
1496 # Check for guested configure.
1497 if test -f "$ac_srcdir/configure.gnu"; then
1498 echo &&
1499 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1500 elif test -f "$ac_srcdir/configure"; then
1501 echo &&
1502 $SHELL "$ac_srcdir/configure" --help=recursive
1503 else
1504 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1505 fi || ac_status=$?
1506 cd "$ac_pwd" || { ac_status=$?; break; }
1507 done
1510 test -n "$ac_init_help" && exit $ac_status
1511 if $ac_init_version; then
1512 cat <<\_ACEOF
1513 LTO plugin for ld configure 0.1
1514 generated by GNU Autoconf 2.69
1516 Copyright (C) 2012 Free Software Foundation, Inc.
1517 This configure script is free software; the Free Software Foundation
1518 gives unlimited permission to copy, distribute and modify it.
1519 _ACEOF
1520 exit
1523 ## ------------------------ ##
1524 ## Autoconf initialization. ##
1525 ## ------------------------ ##
1527 # ac_fn_c_try_compile LINENO
1528 # --------------------------
1529 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1530 ac_fn_c_try_compile ()
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 rm -f conftest.$ac_objext
1534 if { { ac_try="$ac_compile"
1535 case "(($ac_try" in
1536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537 *) ac_try_echo=$ac_try;;
1538 esac
1539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540 $as_echo "$ac_try_echo"; } >&5
1541 (eval "$ac_compile") 2>conftest.err
1542 ac_status=$?
1543 if test -s conftest.err; then
1544 grep -v '^ *+' conftest.err >conftest.er1
1545 cat conftest.er1 >&5
1546 mv -f conftest.er1 conftest.err
1548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549 test $ac_status = 0; } && {
1550 test -z "$ac_c_werror_flag" ||
1551 test ! -s conftest.err
1552 } && test -s conftest.$ac_objext; then :
1553 ac_retval=0
1554 else
1555 $as_echo "$as_me: failed program was:" >&5
1556 sed 's/^/| /' conftest.$ac_ext >&5
1558 ac_retval=1
1560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1561 as_fn_set_status $ac_retval
1563 } # ac_fn_c_try_compile
1565 # ac_fn_c_try_cpp LINENO
1566 # ----------------------
1567 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1568 ac_fn_c_try_cpp ()
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 if { { ac_try="$ac_cpp conftest.$ac_ext"
1572 case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575 esac
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1579 ac_status=$?
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } > conftest.i && {
1587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1588 test ! -s conftest.err
1589 }; then :
1590 ac_retval=0
1591 else
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1595 ac_retval=1
1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598 as_fn_set_status $ac_retval
1600 } # ac_fn_c_try_cpp
1602 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1603 # -------------------------------------------------------
1604 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1605 # the include files in INCLUDES and setting the cache variable VAR
1606 # accordingly.
1607 ac_fn_c_check_header_mongrel ()
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 if eval \${$3+:} false; then :
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1612 $as_echo_n "checking for $2... " >&6; }
1613 if eval \${$3+:} false; then :
1614 $as_echo_n "(cached) " >&6
1616 eval ac_res=\$$3
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1618 $as_echo "$ac_res" >&6; }
1619 else
1620 # Is the header compilable?
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1622 $as_echo_n "checking $2 usability... " >&6; }
1623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1624 /* end confdefs.h. */
1626 #include <$2>
1627 _ACEOF
1628 if ac_fn_c_try_compile "$LINENO"; then :
1629 ac_header_compiler=yes
1630 else
1631 ac_header_compiler=no
1633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1635 $as_echo "$ac_header_compiler" >&6; }
1637 # Is the header present?
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1639 $as_echo_n "checking $2 presence... " >&6; }
1640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641 /* end confdefs.h. */
1642 #include <$2>
1643 _ACEOF
1644 if ac_fn_c_try_cpp "$LINENO"; then :
1645 ac_header_preproc=yes
1646 else
1647 ac_header_preproc=no
1649 rm -f conftest.err conftest.i conftest.$ac_ext
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1651 $as_echo "$ac_header_preproc" >&6; }
1653 # So? What about this header?
1654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1655 yes:no: )
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1657 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1659 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1661 no:yes:* )
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1663 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1665 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1667 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1669 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1671 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1673 esac
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if eval \${$3+:} false; then :
1677 $as_echo_n "(cached) " >&6
1678 else
1679 eval "$3=\$ac_header_compiler"
1681 eval ac_res=\$$3
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687 } # ac_fn_c_check_header_mongrel
1689 # ac_fn_c_try_run LINENO
1690 # ----------------------
1691 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1692 # that executables *can* be run.
1693 ac_fn_c_try_run ()
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if { { ac_try="$ac_link"
1697 case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_link") 2>&5
1704 ac_status=$?
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1707 { { case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_try") 2>&5
1714 ac_status=$?
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; }; }; then :
1717 ac_retval=0
1718 else
1719 $as_echo "$as_me: program exited with status $ac_status" >&5
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1723 ac_retval=$ac_status
1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status $ac_retval
1729 } # ac_fn_c_try_run
1731 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1732 # -------------------------------------------------------
1733 # Tests whether HEADER exists and can be compiled using the include files in
1734 # INCLUDES, setting the cache variable VAR accordingly.
1735 ac_fn_c_check_header_compile ()
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \${$3+:} false; then :
1741 $as_echo_n "(cached) " >&6
1742 else
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1746 #include <$2>
1747 _ACEOF
1748 if ac_fn_c_try_compile "$LINENO"; then :
1749 eval "$3=yes"
1750 else
1751 eval "$3=no"
1753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1755 eval ac_res=\$$3
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757 $as_echo "$ac_res" >&6; }
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760 } # ac_fn_c_check_header_compile
1762 # ac_fn_c_try_link LINENO
1763 # -----------------------
1764 # Try to link conftest.$ac_ext, and return whether this succeeded.
1765 ac_fn_c_try_link ()
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext conftest$ac_exeext
1769 if { { ac_try="$ac_link"
1770 case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_link") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest$ac_exeext && {
1788 test "$cross_compiling" = yes ||
1789 test -x conftest$ac_exeext
1790 }; then :
1791 ac_retval=0
1792 else
1793 $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1796 ac_retval=1
1798 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1799 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1800 # interfere with the next link command; also delete a directory that is
1801 # left behind by Apple's compiler. We do this before executing the actions.
1802 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804 as_fn_set_status $ac_retval
1806 } # ac_fn_c_try_link
1808 # ac_fn_c_check_func LINENO FUNC VAR
1809 # ----------------------------------
1810 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1811 ac_fn_c_check_func ()
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815 $as_echo_n "checking for $2... " >&6; }
1816 if eval \${$3+:} false; then :
1817 $as_echo_n "(cached) " >&6
1818 else
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1821 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1823 #define $2 innocuous_$2
1825 /* System header to define __stub macros and hopefully few prototypes,
1826 which can conflict with char $2 (); below.
1827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1828 <limits.h> exists even on freestanding compilers. */
1830 #ifdef __STDC__
1831 # include <limits.h>
1832 #else
1833 # include <assert.h>
1834 #endif
1836 #undef $2
1838 /* Override any GCC internal prototype to avoid an error.
1839 Use char because int might match the return type of a GCC
1840 builtin and then its argument prototype would still apply. */
1841 #ifdef __cplusplus
1842 extern "C"
1843 #endif
1844 char $2 ();
1845 /* The GNU C library defines this for functions which it implements
1846 to always fail with ENOSYS. Some functions are actually named
1847 something starting with __ and the normal name is an alias. */
1848 #if defined __stub_$2 || defined __stub___$2
1849 choke me
1850 #endif
1853 main ()
1855 return $2 ();
1857 return 0;
1859 _ACEOF
1860 if ac_fn_c_try_link "$LINENO"; then :
1861 eval "$3=yes"
1862 else
1863 eval "$3=no"
1865 rm -f core conftest.err conftest.$ac_objext \
1866 conftest$ac_exeext conftest.$ac_ext
1868 eval ac_res=\$$3
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 $as_echo "$ac_res" >&6; }
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873 } # ac_fn_c_check_func
1875 # ac_fn_c_find_intX_t LINENO BITS VAR
1876 # -----------------------------------
1877 # Finds a signed integer type with width BITS, setting cache variable VAR
1878 # accordingly.
1879 ac_fn_c_find_intX_t ()
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1883 $as_echo_n "checking for int$2_t... " >&6; }
1884 if eval \${$3+:} false; then :
1885 $as_echo_n "(cached) " >&6
1886 else
1887 eval "$3=no"
1888 # Order is important - never check a type that is potentially smaller
1889 # than half of the expected target width.
1890 for ac_type in int$2_t 'int' 'long int' \
1891 'long long int' 'short int' 'signed char'; do
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h. */
1894 $ac_includes_default
1895 enum { N = $2 / 2 - 1 };
1897 main ()
1899 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1900 test_array [0] = 0;
1901 return test_array [0];
1904 return 0;
1906 _ACEOF
1907 if ac_fn_c_try_compile "$LINENO"; then :
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1910 $ac_includes_default
1911 enum { N = $2 / 2 - 1 };
1913 main ()
1915 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1916 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1917 test_array [0] = 0;
1918 return test_array [0];
1921 return 0;
1923 _ACEOF
1924 if ac_fn_c_try_compile "$LINENO"; then :
1926 else
1927 case $ac_type in #(
1928 int$2_t) :
1929 eval "$3=yes" ;; #(
1930 *) :
1931 eval "$3=\$ac_type" ;;
1932 esac
1934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937 if eval test \"x\$"$3"\" = x"no"; then :
1939 else
1940 break
1942 done
1944 eval ac_res=\$$3
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949 } # ac_fn_c_find_intX_t
1951 # ac_fn_c_find_uintX_t LINENO BITS VAR
1952 # ------------------------------------
1953 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1954 # accordingly.
1955 ac_fn_c_find_uintX_t ()
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1959 $as_echo_n "checking for uint$2_t... " >&6; }
1960 if eval \${$3+:} false; then :
1961 $as_echo_n "(cached) " >&6
1962 else
1963 eval "$3=no"
1964 # Order is important - never check a type that is potentially smaller
1965 # than half of the expected target width.
1966 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1967 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1970 $ac_includes_default
1972 main ()
1974 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1975 test_array [0] = 0;
1976 return test_array [0];
1979 return 0;
1981 _ACEOF
1982 if ac_fn_c_try_compile "$LINENO"; then :
1983 case $ac_type in #(
1984 uint$2_t) :
1985 eval "$3=yes" ;; #(
1986 *) :
1987 eval "$3=\$ac_type" ;;
1988 esac
1990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991 if eval test \"x\$"$3"\" = x"no"; then :
1993 else
1994 break
1996 done
1998 eval ac_res=\$$3
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003 } # ac_fn_c_find_uintX_t
2004 cat >config.log <<_ACEOF
2005 This file contains any messages produced by compilers while
2006 running configure, to aid debugging if configure makes a mistake.
2008 It was created by LTO plugin for ld $as_me 0.1, which was
2009 generated by GNU Autoconf 2.69. Invocation command line was
2011 $ $0 $@
2013 _ACEOF
2014 exec 5>>config.log
2016 cat <<_ASUNAME
2017 ## --------- ##
2018 ## Platform. ##
2019 ## --------- ##
2021 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2022 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2023 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2024 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2025 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2027 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2028 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2030 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2031 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2032 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2033 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2034 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2035 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2036 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2038 _ASUNAME
2040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041 for as_dir in $PATH
2043 IFS=$as_save_IFS
2044 test -z "$as_dir" && as_dir=.
2045 $as_echo "PATH: $as_dir"
2046 done
2047 IFS=$as_save_IFS
2049 } >&5
2051 cat >&5 <<_ACEOF
2054 ## ----------- ##
2055 ## Core tests. ##
2056 ## ----------- ##
2058 _ACEOF
2061 # Keep a trace of the command line.
2062 # Strip out --no-create and --no-recursion so they do not pile up.
2063 # Strip out --silent because we don't want to record it for future runs.
2064 # Also quote any args containing shell meta-characters.
2065 # Make two passes to allow for proper duplicate-argument suppression.
2066 ac_configure_args=
2067 ac_configure_args0=
2068 ac_configure_args1=
2069 ac_must_keep_next=false
2070 for ac_pass in 1 2
2072 for ac_arg
2074 case $ac_arg in
2075 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2077 | -silent | --silent | --silen | --sile | --sil)
2078 continue ;;
2079 *\'*)
2080 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2081 esac
2082 case $ac_pass in
2083 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2085 as_fn_append ac_configure_args1 " '$ac_arg'"
2086 if test $ac_must_keep_next = true; then
2087 ac_must_keep_next=false # Got value, back to normal.
2088 else
2089 case $ac_arg in
2090 *=* | --config-cache | -C | -disable-* | --disable-* \
2091 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2092 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2093 | -with-* | --with-* | -without-* | --without-* | --x)
2094 case "$ac_configure_args0 " in
2095 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2096 esac
2098 -* ) ac_must_keep_next=true ;;
2099 esac
2101 as_fn_append ac_configure_args " '$ac_arg'"
2103 esac
2104 done
2105 done
2106 { ac_configure_args0=; unset ac_configure_args0;}
2107 { ac_configure_args1=; unset ac_configure_args1;}
2109 # When interrupted or exit'd, cleanup temporary files, and complete
2110 # config.log. We remove comments because anyway the quotes in there
2111 # would cause problems or look ugly.
2112 # WARNING: Use '\'' to represent an apostrophe within the trap.
2113 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2114 trap 'exit_status=$?
2115 # Save into config.log some information that might help in debugging.
2117 echo
2119 $as_echo "## ---------------- ##
2120 ## Cache variables. ##
2121 ## ---------------- ##"
2122 echo
2123 # The following way of writing the cache mishandles newlines in values,
2125 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2126 eval ac_val=\$$ac_var
2127 case $ac_val in #(
2128 *${as_nl}*)
2129 case $ac_var in #(
2130 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2131 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2132 esac
2133 case $ac_var in #(
2134 _ | IFS | as_nl) ;; #(
2135 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2136 *) { eval $ac_var=; unset $ac_var;} ;;
2137 esac ;;
2138 esac
2139 done
2140 (set) 2>&1 |
2141 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2142 *${as_nl}ac_space=\ *)
2143 sed -n \
2144 "s/'\''/'\''\\\\'\'''\''/g;
2145 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2146 ;; #(
2148 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2150 esac |
2151 sort
2153 echo
2155 $as_echo "## ----------------- ##
2156 ## Output variables. ##
2157 ## ----------------- ##"
2158 echo
2159 for ac_var in $ac_subst_vars
2161 eval ac_val=\$$ac_var
2162 case $ac_val in
2163 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2164 esac
2165 $as_echo "$ac_var='\''$ac_val'\''"
2166 done | sort
2167 echo
2169 if test -n "$ac_subst_files"; then
2170 $as_echo "## ------------------- ##
2171 ## File substitutions. ##
2172 ## ------------------- ##"
2173 echo
2174 for ac_var in $ac_subst_files
2176 eval ac_val=\$$ac_var
2177 case $ac_val in
2178 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2179 esac
2180 $as_echo "$ac_var='\''$ac_val'\''"
2181 done | sort
2182 echo
2185 if test -s confdefs.h; then
2186 $as_echo "## ----------- ##
2187 ## confdefs.h. ##
2188 ## ----------- ##"
2189 echo
2190 cat confdefs.h
2191 echo
2193 test "$ac_signal" != 0 &&
2194 $as_echo "$as_me: caught signal $ac_signal"
2195 $as_echo "$as_me: exit $exit_status"
2196 } >&5
2197 rm -f core *.core core.conftest.* &&
2198 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2199 exit $exit_status
2201 for ac_signal in 1 2 13 15; do
2202 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2203 done
2204 ac_signal=0
2206 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2207 rm -f -r conftest* confdefs.h
2209 $as_echo "/* confdefs.h */" > confdefs.h
2211 # Predefined preprocessor variables.
2213 cat >>confdefs.h <<_ACEOF
2214 #define PACKAGE_NAME "$PACKAGE_NAME"
2215 _ACEOF
2217 cat >>confdefs.h <<_ACEOF
2218 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2219 _ACEOF
2221 cat >>confdefs.h <<_ACEOF
2222 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2223 _ACEOF
2225 cat >>confdefs.h <<_ACEOF
2226 #define PACKAGE_STRING "$PACKAGE_STRING"
2227 _ACEOF
2229 cat >>confdefs.h <<_ACEOF
2230 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2231 _ACEOF
2233 cat >>confdefs.h <<_ACEOF
2234 #define PACKAGE_URL "$PACKAGE_URL"
2235 _ACEOF
2238 # Let the site file select an alternate cache file if it wants to.
2239 # Prefer an explicitly selected file to automatically selected ones.
2240 ac_site_file1=NONE
2241 ac_site_file2=NONE
2242 if test -n "$CONFIG_SITE"; then
2243 # We do not want a PATH search for config.site.
2244 case $CONFIG_SITE in #((
2245 -*) ac_site_file1=./$CONFIG_SITE;;
2246 */*) ac_site_file1=$CONFIG_SITE;;
2247 *) ac_site_file1=./$CONFIG_SITE;;
2248 esac
2249 elif test "x$prefix" != xNONE; then
2250 ac_site_file1=$prefix/share/config.site
2251 ac_site_file2=$prefix/etc/config.site
2252 else
2253 ac_site_file1=$ac_default_prefix/share/config.site
2254 ac_site_file2=$ac_default_prefix/etc/config.site
2256 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2258 test "x$ac_site_file" = xNONE && continue
2259 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2261 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2262 sed 's/^/| /' "$ac_site_file" >&5
2263 . "$ac_site_file" \
2264 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2266 as_fn_error $? "failed to load site script $ac_site_file
2267 See \`config.log' for more details" "$LINENO" 5; }
2269 done
2271 if test -r "$cache_file"; then
2272 # Some versions of bash will fail to source /dev/null (special files
2273 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2274 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2276 $as_echo "$as_me: loading cache $cache_file" >&6;}
2277 case $cache_file in
2278 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2279 *) . "./$cache_file";;
2280 esac
2282 else
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2284 $as_echo "$as_me: creating cache $cache_file" >&6;}
2285 >$cache_file
2288 # Check that the precious variables saved in the cache have kept the same
2289 # value.
2290 ac_cache_corrupted=false
2291 for ac_var in $ac_precious_vars; do
2292 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2293 eval ac_new_set=\$ac_env_${ac_var}_set
2294 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2295 eval ac_new_val=\$ac_env_${ac_var}_value
2296 case $ac_old_set,$ac_new_set in
2297 set,)
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2299 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2300 ac_cache_corrupted=: ;;
2301 ,set)
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2303 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2304 ac_cache_corrupted=: ;;
2305 ,);;
2307 if test "x$ac_old_val" != "x$ac_new_val"; then
2308 # differences in whitespace do not lead to failure.
2309 ac_old_val_w=`echo x $ac_old_val`
2310 ac_new_val_w=`echo x $ac_new_val`
2311 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2313 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2314 ac_cache_corrupted=:
2315 else
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2317 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2318 eval $ac_var=\$ac_old_val
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2321 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2323 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2324 fi;;
2325 esac
2326 # Pass precious variables to config.status.
2327 if test "$ac_new_set" = set; then
2328 case $ac_new_val in
2329 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2330 *) ac_arg=$ac_var=$ac_new_val ;;
2331 esac
2332 case " $ac_configure_args " in
2333 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2334 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2335 esac
2337 done
2338 if $ac_cache_corrupted; then
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2342 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2343 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2345 ## -------------------- ##
2346 ## Main body of script. ##
2347 ## -------------------- ##
2349 ac_ext=c
2350 ac_cpp='$CPP $CPPFLAGS'
2351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2359 ac_aux_dir=
2360 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2361 if test -f "$ac_dir/install-sh"; then
2362 ac_aux_dir=$ac_dir
2363 ac_install_sh="$ac_aux_dir/install-sh -c"
2364 break
2365 elif test -f "$ac_dir/install.sh"; then
2366 ac_aux_dir=$ac_dir
2367 ac_install_sh="$ac_aux_dir/install.sh -c"
2368 break
2369 elif test -f "$ac_dir/shtool"; then
2370 ac_aux_dir=$ac_dir
2371 ac_install_sh="$ac_aux_dir/shtool install -c"
2372 break
2374 done
2375 if test -z "$ac_aux_dir"; then
2376 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2379 # These three variables are undocumented and unsupported,
2380 # and are intended to be withdrawn in a future Autoconf release.
2381 # They can cause serious problems if a builder's source tree is in a directory
2382 # whose full name contains unusual characters.
2383 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2384 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2385 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2388 # Make sure we can run config.sub.
2389 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2390 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2393 $as_echo_n "checking build system type... " >&6; }
2394 if ${ac_cv_build+:} false; then :
2395 $as_echo_n "(cached) " >&6
2396 else
2397 ac_build_alias=$build_alias
2398 test "x$ac_build_alias" = x &&
2399 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2400 test "x$ac_build_alias" = x &&
2401 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2402 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2403 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2407 $as_echo "$ac_cv_build" >&6; }
2408 case $ac_cv_build in
2409 *-*-*) ;;
2410 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2411 esac
2412 build=$ac_cv_build
2413 ac_save_IFS=$IFS; IFS='-'
2414 set x $ac_cv_build
2415 shift
2416 build_cpu=$1
2417 build_vendor=$2
2418 shift; shift
2419 # Remember, the first character of IFS is used to create $*,
2420 # except with old shells:
2421 build_os=$*
2422 IFS=$ac_save_IFS
2423 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2427 $as_echo_n "checking host system type... " >&6; }
2428 if ${ac_cv_host+:} false; then :
2429 $as_echo_n "(cached) " >&6
2430 else
2431 if test "x$host_alias" = x; then
2432 ac_cv_host=$ac_cv_build
2433 else
2434 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2435 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2440 $as_echo "$ac_cv_host" >&6; }
2441 case $ac_cv_host in
2442 *-*-*) ;;
2443 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2444 esac
2445 host=$ac_cv_host
2446 ac_save_IFS=$IFS; IFS='-'
2447 set x $ac_cv_host
2448 shift
2449 host_cpu=$1
2450 host_vendor=$2
2451 shift; shift
2452 # Remember, the first character of IFS is used to create $*,
2453 # except with old shells:
2454 host_os=$*
2455 IFS=$ac_save_IFS
2456 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2460 $as_echo_n "checking target system type... " >&6; }
2461 if ${ac_cv_target+:} false; then :
2462 $as_echo_n "(cached) " >&6
2463 else
2464 if test "x$target_alias" = x; then
2465 ac_cv_target=$ac_cv_host
2466 else
2467 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2468 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2473 $as_echo "$ac_cv_target" >&6; }
2474 case $ac_cv_target in
2475 *-*-*) ;;
2476 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2477 esac
2478 target=$ac_cv_target
2479 ac_save_IFS=$IFS; IFS='-'
2480 set x $ac_cv_target
2481 shift
2482 target_cpu=$1
2483 target_vendor=$2
2484 shift; shift
2485 # Remember, the first character of IFS is used to create $*,
2486 # except with old shells:
2487 target_os=$*
2488 IFS=$ac_save_IFS
2489 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2492 # The aliases save the names the user supplied, while $host etc.
2493 # will get canonicalized.
2494 test -n "$target_alias" &&
2495 test "$program_prefix$program_suffix$program_transform_name" = \
2496 NONENONEs,x,x, &&
2497 program_prefix=${target_alias}-
2499 case ${build_alias} in
2500 "") build_noncanonical=${build} ;;
2501 *) build_noncanonical=${build_alias} ;;
2502 esac
2504 case ${host_alias} in
2505 "") host_noncanonical=${build_noncanonical} ;;
2506 *) host_noncanonical=${host_alias} ;;
2507 esac
2509 case ${target_alias} in
2510 "") target_noncanonical=${host_noncanonical} ;;
2511 *) target_noncanonical=${target_alias} ;;
2512 esac
2515 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2516 # have matching libraries, they should use host libraries: Makefile.tpl
2517 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2518 # However, they still use the build modules, because the corresponding
2519 # host modules (e.g. bison) are only built for the host when bootstrap
2520 # finishes. So:
2521 # - build_subdir is where we find build modules, and never changes.
2522 # - build_libsubdir is where we find build libraries, and can be overridden.
2524 # Prefix 'build-' so this never conflicts with target_subdir.
2525 build_subdir="build-${build_noncanonical}"
2527 # Check whether --with-build-libsubdir was given.
2528 if test "${with_build_libsubdir+set}" = set; then :
2529 withval=$with_build_libsubdir; build_libsubdir="$withval"
2530 else
2531 build_libsubdir="$build_subdir"
2534 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2535 if ( test $srcdir = . && test -d gcc ) \
2536 || test -d $srcdir/../host-${host_noncanonical}; then
2537 host_subdir="host-${host_noncanonical}"
2538 else
2539 host_subdir=.
2541 # No prefix.
2542 target_subdir=${target_noncanonical}
2544 am__api_version='1.15'
2546 # Find a good install program. We prefer a C program (faster),
2547 # so one script is as good as another. But avoid the broken or
2548 # incompatible versions:
2549 # SysV /etc/install, /usr/sbin/install
2550 # SunOS /usr/etc/install
2551 # IRIX /sbin/install
2552 # AIX /bin/install
2553 # AmigaOS /C/install, which installs bootblocks on floppy discs
2554 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2555 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2556 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2557 # OS/2's system install, which has a completely different semantic
2558 # ./install, which can be erroneously created by make from ./install.sh.
2559 # Reject install programs that cannot install multiple files.
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2561 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2562 if test -z "$INSTALL"; then
2563 if ${ac_cv_path_install+:} false; then :
2564 $as_echo_n "(cached) " >&6
2565 else
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 for as_dir in $PATH
2569 IFS=$as_save_IFS
2570 test -z "$as_dir" && as_dir=.
2571 # Account for people who put trailing slashes in PATH elements.
2572 case $as_dir/ in #((
2573 ./ | .// | /[cC]/* | \
2574 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2575 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2576 /usr/ucb/* ) ;;
2578 # OSF1 and SCO ODT 3.0 have their own names for install.
2579 # Don't use installbsd from OSF since it installs stuff as root
2580 # by default.
2581 for ac_prog in ginstall scoinst install; do
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2584 if test $ac_prog = install &&
2585 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2586 # AIX install. It has an incompatible calling convention.
2588 elif test $ac_prog = install &&
2589 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2590 # program-specific install script used by HP pwplus--don't use.
2592 else
2593 rm -rf conftest.one conftest.two conftest.dir
2594 echo one > conftest.one
2595 echo two > conftest.two
2596 mkdir conftest.dir
2597 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2598 test -s conftest.one && test -s conftest.two &&
2599 test -s conftest.dir/conftest.one &&
2600 test -s conftest.dir/conftest.two
2601 then
2602 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2603 break 3
2607 done
2608 done
2610 esac
2612 done
2613 IFS=$as_save_IFS
2615 rm -rf conftest.one conftest.two conftest.dir
2618 if test "${ac_cv_path_install+set}" = set; then
2619 INSTALL=$ac_cv_path_install
2620 else
2621 # As a last resort, use the slow shell script. Don't cache a
2622 # value for INSTALL within a source directory, because that will
2623 # break other packages using the cache if that directory is
2624 # removed, or if the value is a relative name.
2625 INSTALL=$ac_install_sh
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2629 $as_echo "$INSTALL" >&6; }
2631 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2632 # It thinks the first close brace ends the variable substitution.
2633 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2635 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2637 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2640 $as_echo_n "checking whether build environment is sane... " >&6; }
2641 # Reject unsafe characters in $srcdir or the absolute working directory
2642 # name. Accept space and tab only in the latter.
2643 am_lf='
2645 case `pwd` in
2646 *[\\\"\#\$\&\'\`$am_lf]*)
2647 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2648 esac
2649 case $srcdir in
2650 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2651 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2652 esac
2654 # Do 'set' in a subshell so we don't clobber the current shell's
2655 # arguments. Must try -L first in case configure is actually a
2656 # symlink; some systems play weird games with the mod time of symlinks
2657 # (eg FreeBSD returns the mod time of the symlink's containing
2658 # directory).
2659 if (
2660 am_has_slept=no
2661 for am_try in 1 2; do
2662 echo "timestamp, slept: $am_has_slept" > conftest.file
2663 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2664 if test "$*" = "X"; then
2665 # -L didn't work.
2666 set X `ls -t "$srcdir/configure" conftest.file`
2668 if test "$*" != "X $srcdir/configure conftest.file" \
2669 && test "$*" != "X conftest.file $srcdir/configure"; then
2671 # If neither matched, then we have a broken ls. This can happen
2672 # if, for instance, CONFIG_SHELL is bash and it inherits a
2673 # broken ls alias from the environment. This has actually
2674 # happened. Such a system could not be considered "sane".
2675 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2676 alias in your environment" "$LINENO" 5
2678 if test "$2" = conftest.file || test $am_try -eq 2; then
2679 break
2681 # Just in case.
2682 sleep 1
2683 am_has_slept=yes
2684 done
2685 test "$2" = conftest.file
2687 then
2688 # Ok.
2690 else
2691 as_fn_error $? "newly created file is older than distributed files!
2692 Check your system clock" "$LINENO" 5
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2695 $as_echo "yes" >&6; }
2696 # If we didn't sleep, we still need to ensure time stamps of config.status and
2697 # generated files are strictly newer.
2698 am_sleep_pid=
2699 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2700 ( sleep 1 ) &
2701 am_sleep_pid=$!
2704 rm -f conftest.file
2706 test "$program_prefix" != NONE &&
2707 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2708 # Use a double $ so make ignores it.
2709 test "$program_suffix" != NONE &&
2710 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2711 # Double any \ or $.
2712 # By default was `s,x,x', remove it if useless.
2713 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2714 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2716 # Expand $ac_aux_dir to an absolute path.
2717 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2719 if test x"${MISSING+set}" != xset; then
2720 case $am_aux_dir in
2721 *\ * | *\ *)
2722 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2724 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2725 esac
2727 # Use eval to expand $SHELL
2728 if eval "$MISSING --is-lightweight"; then
2729 am_missing_run="$MISSING "
2730 else
2731 am_missing_run=
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2733 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2736 if test x"${install_sh+set}" != xset; then
2737 case $am_aux_dir in
2738 *\ * | *\ *)
2739 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2741 install_sh="\${SHELL} $am_aux_dir/install-sh"
2742 esac
2745 # Installed binaries are usually stripped using 'strip' when the user
2746 # run "make install-strip". However 'strip' might not be the right
2747 # tool to use in cross-compilation environments, therefore Automake
2748 # will honor the 'STRIP' environment variable to overrule this program.
2749 if test "$cross_compiling" != no; then
2750 if test -n "$ac_tool_prefix"; then
2751 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2752 set dummy ${ac_tool_prefix}strip; ac_word=$2
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754 $as_echo_n "checking for $ac_word... " >&6; }
2755 if ${ac_cv_prog_STRIP+:} false; then :
2756 $as_echo_n "(cached) " >&6
2757 else
2758 if test -n "$STRIP"; then
2759 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2760 else
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 for as_dir in $PATH
2764 IFS=$as_save_IFS
2765 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2768 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2770 break 2
2772 done
2773 done
2774 IFS=$as_save_IFS
2778 STRIP=$ac_cv_prog_STRIP
2779 if test -n "$STRIP"; then
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2781 $as_echo "$STRIP" >&6; }
2782 else
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784 $as_echo "no" >&6; }
2789 if test -z "$ac_cv_prog_STRIP"; then
2790 ac_ct_STRIP=$STRIP
2791 # Extract the first word of "strip", so it can be a program name with args.
2792 set dummy strip; ac_word=$2
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794 $as_echo_n "checking for $ac_word... " >&6; }
2795 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2796 $as_echo_n "(cached) " >&6
2797 else
2798 if test -n "$ac_ct_STRIP"; then
2799 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2800 else
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH
2804 IFS=$as_save_IFS
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2808 ac_cv_prog_ac_ct_STRIP="strip"
2809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 break 2
2812 done
2813 done
2814 IFS=$as_save_IFS
2818 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2819 if test -n "$ac_ct_STRIP"; then
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2821 $as_echo "$ac_ct_STRIP" >&6; }
2822 else
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824 $as_echo "no" >&6; }
2827 if test "x$ac_ct_STRIP" = x; then
2828 STRIP=":"
2829 else
2830 case $cross_compiling:$ac_tool_warned in
2831 yes:)
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2834 ac_tool_warned=yes ;;
2835 esac
2836 STRIP=$ac_ct_STRIP
2838 else
2839 STRIP="$ac_cv_prog_STRIP"
2843 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2846 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2847 if test -z "$MKDIR_P"; then
2848 if ${ac_cv_path_mkdir+:} false; then :
2849 $as_echo_n "(cached) " >&6
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2854 IFS=$as_save_IFS
2855 test -z "$as_dir" && as_dir=.
2856 for ac_prog in mkdir gmkdir; do
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2859 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2860 'mkdir (GNU coreutils) '* | \
2861 'mkdir (coreutils) '* | \
2862 'mkdir (fileutils) '4.1*)
2863 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2864 break 3;;
2865 esac
2866 done
2867 done
2868 done
2869 IFS=$as_save_IFS
2873 test -d ./--version && rmdir ./--version
2874 if test "${ac_cv_path_mkdir+set}" = set; then
2875 MKDIR_P="$ac_cv_path_mkdir -p"
2876 else
2877 # As a last resort, use the slow shell script. Don't cache a
2878 # value for MKDIR_P within a source directory, because that will
2879 # break other packages using the cache if that directory is
2880 # removed, or if the value is a relative name.
2881 MKDIR_P="$ac_install_sh -d"
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2885 $as_echo "$MKDIR_P" >&6; }
2887 for ac_prog in gawk mawk nawk awk
2889 # Extract the first word of "$ac_prog", so it can be a program name with args.
2890 set dummy $ac_prog; ac_word=$2
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 $as_echo_n "checking for $ac_word... " >&6; }
2893 if ${ac_cv_prog_AWK+:} false; then :
2894 $as_echo_n "(cached) " >&6
2895 else
2896 if test -n "$AWK"; then
2897 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2898 else
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2902 IFS=$as_save_IFS
2903 test -z "$as_dir" && as_dir=.
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2906 ac_cv_prog_AWK="$ac_prog"
2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 break 2
2910 done
2911 done
2912 IFS=$as_save_IFS
2916 AWK=$ac_cv_prog_AWK
2917 if test -n "$AWK"; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2919 $as_echo "$AWK" >&6; }
2920 else
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 $as_echo "no" >&6; }
2926 test -n "$AWK" && break
2927 done
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2930 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2931 set x ${MAKE-make}
2932 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2933 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2934 $as_echo_n "(cached) " >&6
2935 else
2936 cat >conftest.make <<\_ACEOF
2937 SHELL = /bin/sh
2938 all:
2939 @echo '@@@%%%=$(MAKE)=@@@%%%'
2940 _ACEOF
2941 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2942 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2943 *@@@%%%=?*=@@@%%%*)
2944 eval ac_cv_prog_make_${ac_make}_set=yes;;
2946 eval ac_cv_prog_make_${ac_make}_set=no;;
2947 esac
2948 rm -f conftest.make
2950 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2952 $as_echo "yes" >&6; }
2953 SET_MAKE=
2954 else
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956 $as_echo "no" >&6; }
2957 SET_MAKE="MAKE=${MAKE-make}"
2960 rm -rf .tst 2>/dev/null
2961 mkdir .tst 2>/dev/null
2962 if test -d .tst; then
2963 am__leading_dot=.
2964 else
2965 am__leading_dot=_
2967 rmdir .tst 2>/dev/null
2969 # Check whether --enable-silent-rules was given.
2970 if test "${enable_silent_rules+set}" = set; then :
2971 enableval=$enable_silent_rules;
2974 case $enable_silent_rules in # (((
2975 yes) AM_DEFAULT_VERBOSITY=0;;
2976 no) AM_DEFAULT_VERBOSITY=1;;
2977 *) AM_DEFAULT_VERBOSITY=1;;
2978 esac
2979 am_make=${MAKE-make}
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2981 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2982 if ${am_cv_make_support_nested_variables+:} false; then :
2983 $as_echo_n "(cached) " >&6
2984 else
2985 if $as_echo 'TRUE=$(BAR$(V))
2986 BAR0=false
2987 BAR1=true
2989 am__doit:
2990 @$(TRUE)
2991 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2992 am_cv_make_support_nested_variables=yes
2993 else
2994 am_cv_make_support_nested_variables=no
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2998 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2999 if test $am_cv_make_support_nested_variables = yes; then
3000 AM_V='$(V)'
3001 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3002 else
3003 AM_V=$AM_DEFAULT_VERBOSITY
3004 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3006 AM_BACKSLASH='\'
3008 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3009 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3010 # is not polluted with repeated "-I."
3011 am__isrc=' -I$(srcdir)'
3012 # test to see if srcdir already configured
3013 if test -f $srcdir/config.status; then
3014 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3018 # test whether we have cygpath
3019 if test -z "$CYGPATH_W"; then
3020 if (cygpath --version) >/dev/null 2>/dev/null; then
3021 CYGPATH_W='cygpath -w'
3022 else
3023 CYGPATH_W=echo
3028 # Define the identity of the package.
3029 PACKAGE='lto-plugin'
3030 VERSION='0.1'
3033 cat >>confdefs.h <<_ACEOF
3034 #define PACKAGE "$PACKAGE"
3035 _ACEOF
3038 cat >>confdefs.h <<_ACEOF
3039 #define VERSION "$VERSION"
3040 _ACEOF
3042 # Some tools Automake needs.
3044 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3047 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3050 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3053 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3056 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3058 # For better backward compatibility. To be removed once Automake 1.9.x
3059 # dies out for good. For more background, see:
3060 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3061 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3062 mkdir_p='$(MKDIR_P)'
3064 # We need awk for the "check" target (and possibly the TAP driver). The
3065 # system "awk" is bad on some platforms.
3066 # Always define AMTAR for backward compatibility. Yes, it's still used
3067 # in the wild :-( We should find a proper way to deprecate it ...
3068 AMTAR='$${TAR-tar}'
3071 # We'll loop over all known methods to create a tar archive until one works.
3072 _am_tools='gnutar pax cpio none'
3074 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3081 # POSIX will say in a future version that running "rm -f" with no argument
3082 # is OK; and we want to be able to make that assumption in our Makefile
3083 # recipes. So use an aggressive probe to check that the usage we want is
3084 # actually supported "in the wild" to an acceptable degree.
3085 # See automake bug#10828.
3086 # To make any issue more visible, cause the running configure to be aborted
3087 # by default if the 'rm' program in use doesn't match our expectations; the
3088 # user can still override this though.
3089 if rm -f && rm -fr && rm -rf; then : OK; else
3090 cat >&2 <<'END'
3091 Oops!
3093 Your 'rm' program seems unable to run without file operands specified
3094 on the command line, even when the '-f' option is present. This is contrary
3095 to the behaviour of most rm programs out there, and not conforming with
3096 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3098 Please tell bug-automake@gnu.org about your system, including the value
3099 of your $PATH and any error possibly output before this message. This
3100 can help us improve future automake versions.
3103 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3104 echo 'Configuration will proceed anyway, since you have set the' >&2
3105 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3106 echo >&2
3107 else
3108 cat >&2 <<'END'
3109 Aborting the configuration process, to ensure you take notice of the issue.
3111 You can download and install GNU coreutils to get an 'rm' implementation
3112 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3114 If you want to complete the configuration process using your problematic
3115 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3116 to "yes", and re-run configure.
3119 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3125 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3126 # Check whether --enable-maintainer-mode was given.
3127 if test "${enable_maintainer_mode+set}" = set; then :
3128 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3129 else
3130 USE_MAINTAINER_MODE=no
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3134 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3135 if test $USE_MAINTAINER_MODE = yes; then
3136 MAINTAINER_MODE_TRUE=
3137 MAINTAINER_MODE_FALSE='#'
3138 else
3139 MAINTAINER_MODE_TRUE='#'
3140 MAINTAINER_MODE_FALSE=
3143 MAINT=$MAINTAINER_MODE_TRUE
3147 # Check whether --with-libiberty was given.
3148 if test "${with_libiberty+set}" = set; then :
3149 withval=$with_libiberty;
3150 else
3151 with_libiberty=../libiberty
3155 DEPDIR="${am__leading_dot}deps"
3157 ac_config_commands="$ac_config_commands depfiles"
3160 am_make=${MAKE-make}
3161 cat > confinc << 'END'
3162 am__doit:
3163 @echo this is the am__doit target
3164 .PHONY: am__doit
3166 # If we don't find an include directive, just comment out the code.
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3168 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3169 am__include="#"
3170 am__quote=
3171 _am_result=none
3172 # First try GNU make style include.
3173 echo "include confinc" > confmf
3174 # Ignore all kinds of additional output from 'make'.
3175 case `$am_make -s -f confmf 2> /dev/null` in #(
3176 *the\ am__doit\ target*)
3177 am__include=include
3178 am__quote=
3179 _am_result=GNU
3181 esac
3182 # Now try BSD make style include.
3183 if test "$am__include" = "#"; then
3184 echo '.include "confinc"' > confmf
3185 case `$am_make -s -f confmf 2> /dev/null` in #(
3186 *the\ am__doit\ target*)
3187 am__include=.include
3188 am__quote="\""
3189 _am_result=BSD
3191 esac
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3196 $as_echo "$_am_result" >&6; }
3197 rm -f confinc confmf
3199 # Check whether --enable-dependency-tracking was given.
3200 if test "${enable_dependency_tracking+set}" = set; then :
3201 enableval=$enable_dependency_tracking;
3204 if test "x$enable_dependency_tracking" != xno; then
3205 am_depcomp="$ac_aux_dir/depcomp"
3206 AMDEPBACKSLASH='\'
3207 am__nodep='_no'
3209 if test "x$enable_dependency_tracking" != xno; then
3210 AMDEP_TRUE=
3211 AMDEP_FALSE='#'
3212 else
3213 AMDEP_TRUE='#'
3214 AMDEP_FALSE=
3218 ac_ext=c
3219 ac_cpp='$CPP $CPPFLAGS'
3220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3223 if test -n "$ac_tool_prefix"; then
3224 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3225 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227 $as_echo_n "checking for $ac_word... " >&6; }
3228 if ${ac_cv_prog_CC+:} false; then :
3229 $as_echo_n "(cached) " >&6
3230 else
3231 if test -n "$CC"; then
3232 ac_cv_prog_CC="$CC" # Let the user override the test.
3233 else
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 for as_dir in $PATH
3237 IFS=$as_save_IFS
3238 test -z "$as_dir" && as_dir=.
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3243 break 2
3245 done
3246 done
3247 IFS=$as_save_IFS
3251 CC=$ac_cv_prog_CC
3252 if test -n "$CC"; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3254 $as_echo "$CC" >&6; }
3255 else
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3262 if test -z "$ac_cv_prog_CC"; then
3263 ac_ct_CC=$CC
3264 # Extract the first word of "gcc", so it can be a program name with args.
3265 set dummy gcc; ac_word=$2
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267 $as_echo_n "checking for $ac_word... " >&6; }
3268 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3269 $as_echo_n "(cached) " >&6
3270 else
3271 if test -n "$ac_ct_CC"; then
3272 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3273 else
3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 for as_dir in $PATH
3277 IFS=$as_save_IFS
3278 test -z "$as_dir" && as_dir=.
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3281 ac_cv_prog_ac_ct_CC="gcc"
3282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283 break 2
3285 done
3286 done
3287 IFS=$as_save_IFS
3291 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3292 if test -n "$ac_ct_CC"; then
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3294 $as_echo "$ac_ct_CC" >&6; }
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297 $as_echo "no" >&6; }
3300 if test "x$ac_ct_CC" = x; then
3301 CC=""
3302 else
3303 case $cross_compiling:$ac_tool_warned in
3304 yes:)
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3307 ac_tool_warned=yes ;;
3308 esac
3309 CC=$ac_ct_CC
3311 else
3312 CC="$ac_cv_prog_CC"
3315 if test -z "$CC"; then
3316 if test -n "$ac_tool_prefix"; then
3317 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3318 set dummy ${ac_tool_prefix}cc; ac_word=$2
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320 $as_echo_n "checking for $ac_word... " >&6; }
3321 if ${ac_cv_prog_CC+:} false; then :
3322 $as_echo_n "(cached) " >&6
3323 else
3324 if test -n "$CC"; then
3325 ac_cv_prog_CC="$CC" # Let the user override the test.
3326 else
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 for as_dir in $PATH
3330 IFS=$as_save_IFS
3331 test -z "$as_dir" && as_dir=.
3332 for ac_exec_ext in '' $ac_executable_extensions; do
3333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3334 ac_cv_prog_CC="${ac_tool_prefix}cc"
3335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3336 break 2
3338 done
3339 done
3340 IFS=$as_save_IFS
3344 CC=$ac_cv_prog_CC
3345 if test -n "$CC"; then
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3347 $as_echo "$CC" >&6; }
3348 else
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 $as_echo "no" >&6; }
3356 if test -z "$CC"; then
3357 # Extract the first word of "cc", so it can be a program name with args.
3358 set dummy cc; ac_word=$2
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360 $as_echo_n "checking for $ac_word... " >&6; }
3361 if ${ac_cv_prog_CC+:} false; then :
3362 $as_echo_n "(cached) " >&6
3363 else
3364 if test -n "$CC"; then
3365 ac_cv_prog_CC="$CC" # Let the user override the test.
3366 else
3367 ac_prog_rejected=no
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 for as_dir in $PATH
3371 IFS=$as_save_IFS
3372 test -z "$as_dir" && as_dir=.
3373 for ac_exec_ext in '' $ac_executable_extensions; do
3374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3375 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3376 ac_prog_rejected=yes
3377 continue
3379 ac_cv_prog_CC="cc"
3380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381 break 2
3383 done
3384 done
3385 IFS=$as_save_IFS
3387 if test $ac_prog_rejected = yes; then
3388 # We found a bogon in the path, so make sure we never use it.
3389 set dummy $ac_cv_prog_CC
3390 shift
3391 if test $# != 0; then
3392 # We chose a different compiler from the bogus one.
3393 # However, it has the same basename, so the bogon will be chosen
3394 # first if we set CC to just the basename; use the full file name.
3395 shift
3396 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3401 CC=$ac_cv_prog_CC
3402 if test -n "$CC"; then
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3404 $as_echo "$CC" >&6; }
3405 else
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3412 if test -z "$CC"; then
3413 if test -n "$ac_tool_prefix"; then
3414 for ac_prog in cl.exe
3416 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3417 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3419 $as_echo_n "checking for $ac_word... " >&6; }
3420 if ${ac_cv_prog_CC+:} false; then :
3421 $as_echo_n "(cached) " >&6
3422 else
3423 if test -n "$CC"; then
3424 ac_cv_prog_CC="$CC" # Let the user override the test.
3425 else
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3429 IFS=$as_save_IFS
3430 test -z "$as_dir" && as_dir=.
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 break 2
3437 done
3438 done
3439 IFS=$as_save_IFS
3443 CC=$ac_cv_prog_CC
3444 if test -n "$CC"; then
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3446 $as_echo "$CC" >&6; }
3447 else
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449 $as_echo "no" >&6; }
3453 test -n "$CC" && break
3454 done
3456 if test -z "$CC"; then
3457 ac_ct_CC=$CC
3458 for ac_prog in cl.exe
3460 # Extract the first word of "$ac_prog", so it can be a program name with args.
3461 set dummy $ac_prog; ac_word=$2
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463 $as_echo_n "checking for $ac_word... " >&6; }
3464 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3465 $as_echo_n "(cached) " >&6
3466 else
3467 if test -n "$ac_ct_CC"; then
3468 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3469 else
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 for as_dir in $PATH
3473 IFS=$as_save_IFS
3474 test -z "$as_dir" && as_dir=.
3475 for ac_exec_ext in '' $ac_executable_extensions; do
3476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3477 ac_cv_prog_ac_ct_CC="$ac_prog"
3478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3479 break 2
3481 done
3482 done
3483 IFS=$as_save_IFS
3487 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3488 if test -n "$ac_ct_CC"; then
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3490 $as_echo "$ac_ct_CC" >&6; }
3491 else
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3493 $as_echo "no" >&6; }
3497 test -n "$ac_ct_CC" && break
3498 done
3500 if test "x$ac_ct_CC" = x; then
3501 CC=""
3502 else
3503 case $cross_compiling:$ac_tool_warned in
3504 yes:)
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3507 ac_tool_warned=yes ;;
3508 esac
3509 CC=$ac_ct_CC
3516 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3518 as_fn_error $? "no acceptable C compiler found in \$PATH
3519 See \`config.log' for more details" "$LINENO" 5; }
3521 # Provide some information about the compiler.
3522 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3523 set X $ac_compile
3524 ac_compiler=$2
3525 for ac_option in --version -v -V -qversion; do
3526 { { ac_try="$ac_compiler $ac_option >&5"
3527 case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3530 esac
3531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3532 $as_echo "$ac_try_echo"; } >&5
3533 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3534 ac_status=$?
3535 if test -s conftest.err; then
3536 sed '10a\
3537 ... rest of stderr output deleted ...
3538 10q' conftest.err >conftest.er1
3539 cat conftest.er1 >&5
3541 rm -f conftest.er1 conftest.err
3542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3543 test $ac_status = 0; }
3544 done
3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547 /* end confdefs.h. */
3550 main ()
3554 return 0;
3556 _ACEOF
3557 ac_clean_files_save=$ac_clean_files
3558 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3559 # Try to create an executable without -o first, disregard a.out.
3560 # It will help us diagnose broken compilers, and finding out an intuition
3561 # of exeext.
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3563 $as_echo_n "checking whether the C compiler works... " >&6; }
3564 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3566 # The possible output files:
3567 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3569 ac_rmfiles=
3570 for ac_file in $ac_files
3572 case $ac_file in
3573 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3574 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3575 esac
3576 done
3577 rm -f $ac_rmfiles
3579 if { { ac_try="$ac_link_default"
3580 case "(($ac_try" in
3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3583 esac
3584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3585 $as_echo "$ac_try_echo"; } >&5
3586 (eval "$ac_link_default") 2>&5
3587 ac_status=$?
3588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3589 test $ac_status = 0; }; then :
3590 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3591 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3592 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3593 # so that the user can short-circuit this test for compilers unknown to
3594 # Autoconf.
3595 for ac_file in $ac_files ''
3597 test -f "$ac_file" || continue
3598 case $ac_file in
3599 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3601 [ab].out )
3602 # We found the default executable, but exeext='' is most
3603 # certainly right.
3604 break;;
3605 *.* )
3606 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3607 then :; else
3608 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3610 # We set ac_cv_exeext here because the later test for it is not
3611 # safe: cross compilers may not add the suffix if given an `-o'
3612 # argument, so we may need to know it at that point already.
3613 # Even if this section looks crufty: it has the advantage of
3614 # actually working.
3615 break;;
3617 break;;
3618 esac
3619 done
3620 test "$ac_cv_exeext" = no && ac_cv_exeext=
3622 else
3623 ac_file=''
3625 if test -z "$ac_file"; then :
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627 $as_echo "no" >&6; }
3628 $as_echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3633 as_fn_error 77 "C compiler cannot create executables
3634 See \`config.log' for more details" "$LINENO" 5; }
3635 else
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3637 $as_echo "yes" >&6; }
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3640 $as_echo_n "checking for C compiler default output file name... " >&6; }
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3642 $as_echo "$ac_file" >&6; }
3643 ac_exeext=$ac_cv_exeext
3645 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3646 ac_clean_files=$ac_clean_files_save
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3648 $as_echo_n "checking for suffix of executables... " >&6; }
3649 if { { ac_try="$ac_link"
3650 case "(($ac_try" in
3651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652 *) ac_try_echo=$ac_try;;
3653 esac
3654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3655 $as_echo "$ac_try_echo"; } >&5
3656 (eval "$ac_link") 2>&5
3657 ac_status=$?
3658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3659 test $ac_status = 0; }; then :
3660 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3661 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3662 # work properly (i.e., refer to `conftest.exe'), while it won't with
3663 # `rm'.
3664 for ac_file in conftest.exe conftest conftest.*; do
3665 test -f "$ac_file" || continue
3666 case $ac_file in
3667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3668 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3669 break;;
3670 * ) break;;
3671 esac
3672 done
3673 else
3674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3676 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3677 See \`config.log' for more details" "$LINENO" 5; }
3679 rm -f conftest conftest$ac_cv_exeext
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3681 $as_echo "$ac_cv_exeext" >&6; }
3683 rm -f conftest.$ac_ext
3684 EXEEXT=$ac_cv_exeext
3685 ac_exeext=$EXEEXT
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3688 #include <stdio.h>
3690 main ()
3692 FILE *f = fopen ("conftest.out", "w");
3693 return ferror (f) || fclose (f) != 0;
3696 return 0;
3698 _ACEOF
3699 ac_clean_files="$ac_clean_files conftest.out"
3700 # Check that the compiler produces executables we can run. If not, either
3701 # the compiler is broken, or we cross compile.
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3703 $as_echo_n "checking whether we are cross compiling... " >&6; }
3704 if test "$cross_compiling" != yes; then
3705 { { ac_try="$ac_link"
3706 case "(($ac_try" in
3707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708 *) ac_try_echo=$ac_try;;
3709 esac
3710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3711 $as_echo "$ac_try_echo"; } >&5
3712 (eval "$ac_link") 2>&5
3713 ac_status=$?
3714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3715 test $ac_status = 0; }
3716 if { ac_try='./conftest$ac_cv_exeext'
3717 { { case "(($ac_try" in
3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3720 esac
3721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3722 $as_echo "$ac_try_echo"; } >&5
3723 (eval "$ac_try") 2>&5
3724 ac_status=$?
3725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3726 test $ac_status = 0; }; }; then
3727 cross_compiling=no
3728 else
3729 if test "$cross_compiling" = maybe; then
3730 cross_compiling=yes
3731 else
3732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3734 as_fn_error $? "cannot run C compiled programs.
3735 If you meant to cross compile, use \`--host'.
3736 See \`config.log' for more details" "$LINENO" 5; }
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3741 $as_echo "$cross_compiling" >&6; }
3743 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3744 ac_clean_files=$ac_clean_files_save
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3746 $as_echo_n "checking for suffix of object files... " >&6; }
3747 if ${ac_cv_objext+:} false; then :
3748 $as_echo_n "(cached) " >&6
3749 else
3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751 /* end confdefs.h. */
3754 main ()
3758 return 0;
3760 _ACEOF
3761 rm -f conftest.o conftest.obj
3762 if { { ac_try="$ac_compile"
3763 case "(($ac_try" in
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3766 esac
3767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3768 $as_echo "$ac_try_echo"; } >&5
3769 (eval "$ac_compile") 2>&5
3770 ac_status=$?
3771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3772 test $ac_status = 0; }; then :
3773 for ac_file in conftest.o conftest.obj conftest.*; do
3774 test -f "$ac_file" || continue;
3775 case $ac_file in
3776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3777 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3778 break;;
3779 esac
3780 done
3781 else
3782 $as_echo "$as_me: failed program was:" >&5
3783 sed 's/^/| /' conftest.$ac_ext >&5
3785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3787 as_fn_error $? "cannot compute suffix of object files: cannot compile
3788 See \`config.log' for more details" "$LINENO" 5; }
3790 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3793 $as_echo "$ac_cv_objext" >&6; }
3794 OBJEXT=$ac_cv_objext
3795 ac_objext=$OBJEXT
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3797 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3798 if ${ac_cv_c_compiler_gnu+:} false; then :
3799 $as_echo_n "(cached) " >&6
3800 else
3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802 /* end confdefs.h. */
3805 main ()
3807 #ifndef __GNUC__
3808 choke me
3809 #endif
3812 return 0;
3814 _ACEOF
3815 if ac_fn_c_try_compile "$LINENO"; then :
3816 ac_compiler_gnu=yes
3817 else
3818 ac_compiler_gnu=no
3820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3821 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3825 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3826 if test $ac_compiler_gnu = yes; then
3827 GCC=yes
3828 else
3829 GCC=
3831 ac_test_CFLAGS=${CFLAGS+set}
3832 ac_save_CFLAGS=$CFLAGS
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3834 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3835 if ${ac_cv_prog_cc_g+:} false; then :
3836 $as_echo_n "(cached) " >&6
3837 else
3838 ac_save_c_werror_flag=$ac_c_werror_flag
3839 ac_c_werror_flag=yes
3840 ac_cv_prog_cc_g=no
3841 CFLAGS="-g"
3842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3843 /* end confdefs.h. */
3846 main ()
3850 return 0;
3852 _ACEOF
3853 if ac_fn_c_try_compile "$LINENO"; then :
3854 ac_cv_prog_cc_g=yes
3855 else
3856 CFLAGS=""
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3861 main ()
3865 return 0;
3867 _ACEOF
3868 if ac_fn_c_try_compile "$LINENO"; then :
3870 else
3871 ac_c_werror_flag=$ac_save_c_werror_flag
3872 CFLAGS="-g"
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3877 main ()
3881 return 0;
3883 _ACEOF
3884 if ac_fn_c_try_compile "$LINENO"; then :
3885 ac_cv_prog_cc_g=yes
3887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892 ac_c_werror_flag=$ac_save_c_werror_flag
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3895 $as_echo "$ac_cv_prog_cc_g" >&6; }
3896 if test "$ac_test_CFLAGS" = set; then
3897 CFLAGS=$ac_save_CFLAGS
3898 elif test $ac_cv_prog_cc_g = yes; then
3899 if test "$GCC" = yes; then
3900 CFLAGS="-g -O2"
3901 else
3902 CFLAGS="-g"
3904 else
3905 if test "$GCC" = yes; then
3906 CFLAGS="-O2"
3907 else
3908 CFLAGS=
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3912 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3913 if ${ac_cv_prog_cc_c89+:} false; then :
3914 $as_echo_n "(cached) " >&6
3915 else
3916 ac_cv_prog_cc_c89=no
3917 ac_save_CC=$CC
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919 /* end confdefs.h. */
3920 #include <stdarg.h>
3921 #include <stdio.h>
3922 struct stat;
3923 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3924 struct buf { int x; };
3925 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3926 static char *e (p, i)
3927 char **p;
3928 int i;
3930 return p[i];
3932 static char *f (char * (*g) (char **, int), char **p, ...)
3934 char *s;
3935 va_list v;
3936 va_start (v,p);
3937 s = g (p, va_arg (v,int));
3938 va_end (v);
3939 return s;
3942 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3943 function prototypes and stuff, but not '\xHH' hex character constants.
3944 These don't provoke an error unfortunately, instead are silently treated
3945 as 'x'. The following induces an error, until -std is added to get
3946 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3947 array size at least. It's necessary to write '\x00'==0 to get something
3948 that's true only with -std. */
3949 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3951 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3952 inside strings and character constants. */
3953 #define FOO(x) 'x'
3954 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3956 int test (int i, double x);
3957 struct s1 {int (*f) (int a);};
3958 struct s2 {int (*f) (double a);};
3959 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3960 int argc;
3961 char **argv;
3963 main ()
3965 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3967 return 0;
3969 _ACEOF
3970 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3971 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3973 CC="$ac_save_CC $ac_arg"
3974 if ac_fn_c_try_compile "$LINENO"; then :
3975 ac_cv_prog_cc_c89=$ac_arg
3977 rm -f core conftest.err conftest.$ac_objext
3978 test "x$ac_cv_prog_cc_c89" != "xno" && break
3979 done
3980 rm -f conftest.$ac_ext
3981 CC=$ac_save_CC
3984 # AC_CACHE_VAL
3985 case "x$ac_cv_prog_cc_c89" in
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3988 $as_echo "none needed" >&6; } ;;
3989 xno)
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3991 $as_echo "unsupported" >&6; } ;;
3993 CC="$CC $ac_cv_prog_cc_c89"
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3995 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3996 esac
3997 if test "x$ac_cv_prog_cc_c89" != xno; then :
4001 ac_ext=c
4002 ac_cpp='$CPP $CPPFLAGS'
4003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4007 ac_ext=c
4008 ac_cpp='$CPP $CPPFLAGS'
4009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4013 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4014 if ${am_cv_prog_cc_c_o+:} false; then :
4015 $as_echo_n "(cached) " >&6
4016 else
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4021 main ()
4025 return 0;
4027 _ACEOF
4028 # Make sure it works both with $CC and with simple cc.
4029 # Following AC_PROG_CC_C_O, we do the test twice because some
4030 # compilers refuse to overwrite an existing .o file with -o,
4031 # though they will create one.
4032 am_cv_prog_cc_c_o=yes
4033 for am_i in 1 2; do
4034 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4035 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4036 ac_status=$?
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); } \
4039 && test -f conftest2.$ac_objext; then
4040 : OK
4041 else
4042 am_cv_prog_cc_c_o=no
4043 break
4045 done
4046 rm -f core conftest*
4047 unset am_i
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4050 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4051 if test "$am_cv_prog_cc_c_o" != yes; then
4052 # Losing compiler, so override with the script.
4053 # FIXME: It is wrong to rewrite CC.
4054 # But if we don't then we get into trouble of one sort or another.
4055 # A longer-term fix would be to have automake use am__CC in this case,
4056 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4057 CC="$am_aux_dir/compile $CC"
4059 ac_ext=c
4060 ac_cpp='$CPP $CPPFLAGS'
4061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4066 depcc="$CC" am_compiler_list=
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4069 $as_echo_n "checking dependency style of $depcc... " >&6; }
4070 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4071 $as_echo_n "(cached) " >&6
4072 else
4073 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4074 # We make a subdir and do the tests there. Otherwise we can end up
4075 # making bogus files that we don't know about and never remove. For
4076 # instance it was reported that on HP-UX the gcc test will end up
4077 # making a dummy file named 'D' -- because '-MD' means "put the output
4078 # in D".
4079 rm -rf conftest.dir
4080 mkdir conftest.dir
4081 # Copy depcomp to subdir because otherwise we won't find it if we're
4082 # using a relative directory.
4083 cp "$am_depcomp" conftest.dir
4084 cd conftest.dir
4085 # We will build objects and dependencies in a subdirectory because
4086 # it helps to detect inapplicable dependency modes. For instance
4087 # both Tru64's cc and ICC support -MD to output dependencies as a
4088 # side effect of compilation, but ICC will put the dependencies in
4089 # the current directory while Tru64 will put them in the object
4090 # directory.
4091 mkdir sub
4093 am_cv_CC_dependencies_compiler_type=none
4094 if test "$am_compiler_list" = ""; then
4095 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4097 am__universal=false
4098 case " $depcc " in #(
4099 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4100 esac
4102 for depmode in $am_compiler_list; do
4103 # Setup a source with many dependencies, because some compilers
4104 # like to wrap large dependency lists on column 80 (with \), and
4105 # we should not choose a depcomp mode which is confused by this.
4107 # We need to recreate these files for each test, as the compiler may
4108 # overwrite some of them when testing with obscure command lines.
4109 # This happens at least with the AIX C compiler.
4110 : > sub/conftest.c
4111 for i in 1 2 3 4 5 6; do
4112 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4113 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4114 # Solaris 10 /bin/sh.
4115 echo '/* dummy */' > sub/conftst$i.h
4116 done
4117 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4119 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4120 # mode. It turns out that the SunPro C++ compiler does not properly
4121 # handle '-M -o', and we need to detect this. Also, some Intel
4122 # versions had trouble with output in subdirs.
4123 am__obj=sub/conftest.${OBJEXT-o}
4124 am__minus_obj="-o $am__obj"
4125 case $depmode in
4126 gcc)
4127 # This depmode causes a compiler race in universal mode.
4128 test "$am__universal" = false || continue
4130 nosideeffect)
4131 # After this tag, mechanisms are not by side-effect, so they'll
4132 # only be used when explicitly requested.
4133 if test "x$enable_dependency_tracking" = xyes; then
4134 continue
4135 else
4136 break
4139 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4140 # This compiler won't grok '-c -o', but also, the minuso test has
4141 # not run yet. These depmodes are late enough in the game, and
4142 # so weak that their functioning should not be impacted.
4143 am__obj=conftest.${OBJEXT-o}
4144 am__minus_obj=
4146 none) break ;;
4147 esac
4148 if depmode=$depmode \
4149 source=sub/conftest.c object=$am__obj \
4150 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4151 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4152 >/dev/null 2>conftest.err &&
4153 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4154 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4155 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4156 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4157 # icc doesn't choke on unknown options, it will just issue warnings
4158 # or remarks (even with -Werror). So we grep stderr for any message
4159 # that says an option was ignored or not supported.
4160 # When given -MP, icc 7.0 and 7.1 complain thusly:
4161 # icc: Command line warning: ignoring option '-M'; no argument required
4162 # The diagnosis changed in icc 8.0:
4163 # icc: Command line remark: option '-MP' not supported
4164 if (grep 'ignoring option' conftest.err ||
4165 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4166 am_cv_CC_dependencies_compiler_type=$depmode
4167 break
4170 done
4172 cd ..
4173 rm -rf conftest.dir
4174 else
4175 am_cv_CC_dependencies_compiler_type=none
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4180 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4181 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4184 test "x$enable_dependency_tracking" != xno \
4185 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4186 am__fastdepCC_TRUE=
4187 am__fastdepCC_FALSE='#'
4188 else
4189 am__fastdepCC_TRUE='#'
4190 am__fastdepCC_FALSE=
4195 ac_ext=c
4196 ac_cpp='$CPP $CPPFLAGS'
4197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4201 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4202 # On Suns, sometimes $CPP names a directory.
4203 if test -n "$CPP" && test -d "$CPP"; then
4204 CPP=
4206 if test -z "$CPP"; then
4207 if ${ac_cv_prog_CPP+:} false; then :
4208 $as_echo_n "(cached) " >&6
4209 else
4210 # Double quotes because CPP needs to be expanded
4211 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4213 ac_preproc_ok=false
4214 for ac_c_preproc_warn_flag in '' yes
4216 # Use a header file that comes with gcc, so configuring glibc
4217 # with a fresh cross-compiler works.
4218 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4219 # <limits.h> exists even on freestanding compilers.
4220 # On the NeXT, cc -E runs the code through the compiler's parser,
4221 # not just through cpp. "Syntax error" is here to catch this case.
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4224 #ifdef __STDC__
4225 # include <limits.h>
4226 #else
4227 # include <assert.h>
4228 #endif
4229 Syntax error
4230 _ACEOF
4231 if ac_fn_c_try_cpp "$LINENO"; then :
4233 else
4234 # Broken: fails on valid input.
4235 continue
4237 rm -f conftest.err conftest.i conftest.$ac_ext
4239 # OK, works on sane cases. Now check whether nonexistent headers
4240 # can be detected and how.
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4243 #include <ac_nonexistent.h>
4244 _ACEOF
4245 if ac_fn_c_try_cpp "$LINENO"; then :
4246 # Broken: success on invalid input.
4247 continue
4248 else
4249 # Passes both tests.
4250 ac_preproc_ok=:
4251 break
4253 rm -f conftest.err conftest.i conftest.$ac_ext
4255 done
4256 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4257 rm -f conftest.i conftest.err conftest.$ac_ext
4258 if $ac_preproc_ok; then :
4259 break
4262 done
4263 ac_cv_prog_CPP=$CPP
4266 CPP=$ac_cv_prog_CPP
4267 else
4268 ac_cv_prog_CPP=$CPP
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4271 $as_echo "$CPP" >&6; }
4272 ac_preproc_ok=false
4273 for ac_c_preproc_warn_flag in '' yes
4275 # Use a header file that comes with gcc, so configuring glibc
4276 # with a fresh cross-compiler works.
4277 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4278 # <limits.h> exists even on freestanding compilers.
4279 # On the NeXT, cc -E runs the code through the compiler's parser,
4280 # not just through cpp. "Syntax error" is here to catch this case.
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4283 #ifdef __STDC__
4284 # include <limits.h>
4285 #else
4286 # include <assert.h>
4287 #endif
4288 Syntax error
4289 _ACEOF
4290 if ac_fn_c_try_cpp "$LINENO"; then :
4292 else
4293 # Broken: fails on valid input.
4294 continue
4296 rm -f conftest.err conftest.i conftest.$ac_ext
4298 # OK, works on sane cases. Now check whether nonexistent headers
4299 # can be detected and how.
4300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301 /* end confdefs.h. */
4302 #include <ac_nonexistent.h>
4303 _ACEOF
4304 if ac_fn_c_try_cpp "$LINENO"; then :
4305 # Broken: success on invalid input.
4306 continue
4307 else
4308 # Passes both tests.
4309 ac_preproc_ok=:
4310 break
4312 rm -f conftest.err conftest.i conftest.$ac_ext
4314 done
4315 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4316 rm -f conftest.i conftest.err conftest.$ac_ext
4317 if $ac_preproc_ok; then :
4319 else
4320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4322 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4323 See \`config.log' for more details" "$LINENO" 5; }
4326 ac_ext=c
4327 ac_cpp='$CPP $CPPFLAGS'
4328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4334 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4335 if ${ac_cv_path_GREP+:} false; then :
4336 $as_echo_n "(cached) " >&6
4337 else
4338 if test -z "$GREP"; then
4339 ac_path_GREP_found=false
4340 # Loop through the user's path and test for each of PROGNAME-LIST
4341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4344 IFS=$as_save_IFS
4345 test -z "$as_dir" && as_dir=.
4346 for ac_prog in grep ggrep; do
4347 for ac_exec_ext in '' $ac_executable_extensions; do
4348 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4349 as_fn_executable_p "$ac_path_GREP" || continue
4350 # Check for GNU ac_path_GREP and select it if it is found.
4351 # Check for GNU $ac_path_GREP
4352 case `"$ac_path_GREP" --version 2>&1` in
4353 *GNU*)
4354 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4356 ac_count=0
4357 $as_echo_n 0123456789 >"conftest.in"
4358 while :
4360 cat "conftest.in" "conftest.in" >"conftest.tmp"
4361 mv "conftest.tmp" "conftest.in"
4362 cp "conftest.in" "conftest.nl"
4363 $as_echo 'GREP' >> "conftest.nl"
4364 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4365 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4366 as_fn_arith $ac_count + 1 && ac_count=$as_val
4367 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4368 # Best one so far, save it but keep looking for a better one
4369 ac_cv_path_GREP="$ac_path_GREP"
4370 ac_path_GREP_max=$ac_count
4372 # 10*(2^10) chars as input seems more than enough
4373 test $ac_count -gt 10 && break
4374 done
4375 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4376 esac
4378 $ac_path_GREP_found && break 3
4379 done
4380 done
4381 done
4382 IFS=$as_save_IFS
4383 if test -z "$ac_cv_path_GREP"; then
4384 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4386 else
4387 ac_cv_path_GREP=$GREP
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4392 $as_echo "$ac_cv_path_GREP" >&6; }
4393 GREP="$ac_cv_path_GREP"
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4397 $as_echo_n "checking for egrep... " >&6; }
4398 if ${ac_cv_path_EGREP+:} false; then :
4399 $as_echo_n "(cached) " >&6
4400 else
4401 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4402 then ac_cv_path_EGREP="$GREP -E"
4403 else
4404 if test -z "$EGREP"; then
4405 ac_path_EGREP_found=false
4406 # Loop through the user's path and test for each of PROGNAME-LIST
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4410 IFS=$as_save_IFS
4411 test -z "$as_dir" && as_dir=.
4412 for ac_prog in egrep; do
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4415 as_fn_executable_p "$ac_path_EGREP" || continue
4416 # Check for GNU ac_path_EGREP and select it if it is found.
4417 # Check for GNU $ac_path_EGREP
4418 case `"$ac_path_EGREP" --version 2>&1` in
4419 *GNU*)
4420 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4422 ac_count=0
4423 $as_echo_n 0123456789 >"conftest.in"
4424 while :
4426 cat "conftest.in" "conftest.in" >"conftest.tmp"
4427 mv "conftest.tmp" "conftest.in"
4428 cp "conftest.in" "conftest.nl"
4429 $as_echo 'EGREP' >> "conftest.nl"
4430 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4431 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4432 as_fn_arith $ac_count + 1 && ac_count=$as_val
4433 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4434 # Best one so far, save it but keep looking for a better one
4435 ac_cv_path_EGREP="$ac_path_EGREP"
4436 ac_path_EGREP_max=$ac_count
4438 # 10*(2^10) chars as input seems more than enough
4439 test $ac_count -gt 10 && break
4440 done
4441 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4442 esac
4444 $ac_path_EGREP_found && break 3
4445 done
4446 done
4447 done
4448 IFS=$as_save_IFS
4449 if test -z "$ac_cv_path_EGREP"; then
4450 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4452 else
4453 ac_cv_path_EGREP=$EGREP
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4459 $as_echo "$ac_cv_path_EGREP" >&6; }
4460 EGREP="$ac_cv_path_EGREP"
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4464 $as_echo_n "checking for ANSI C header files... " >&6; }
4465 if ${ac_cv_header_stdc+:} false; then :
4466 $as_echo_n "(cached) " >&6
4467 else
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4470 #include <stdlib.h>
4471 #include <stdarg.h>
4472 #include <string.h>
4473 #include <float.h>
4476 main ()
4480 return 0;
4482 _ACEOF
4483 if ac_fn_c_try_compile "$LINENO"; then :
4484 ac_cv_header_stdc=yes
4485 else
4486 ac_cv_header_stdc=no
4488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4490 if test $ac_cv_header_stdc = yes; then
4491 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4494 #include <string.h>
4496 _ACEOF
4497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4498 $EGREP "memchr" >/dev/null 2>&1; then :
4500 else
4501 ac_cv_header_stdc=no
4503 rm -f conftest*
4507 if test $ac_cv_header_stdc = yes; then
4508 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4511 #include <stdlib.h>
4513 _ACEOF
4514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4515 $EGREP "free" >/dev/null 2>&1; then :
4517 else
4518 ac_cv_header_stdc=no
4520 rm -f conftest*
4524 if test $ac_cv_header_stdc = yes; then
4525 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4526 if test "$cross_compiling" = yes; then :
4528 else
4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4531 #include <ctype.h>
4532 #include <stdlib.h>
4533 #if ((' ' & 0x0FF) == 0x020)
4534 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4535 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4536 #else
4537 # define ISLOWER(c) \
4538 (('a' <= (c) && (c) <= 'i') \
4539 || ('j' <= (c) && (c) <= 'r') \
4540 || ('s' <= (c) && (c) <= 'z'))
4541 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4542 #endif
4544 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4546 main ()
4548 int i;
4549 for (i = 0; i < 256; i++)
4550 if (XOR (islower (i), ISLOWER (i))
4551 || toupper (i) != TOUPPER (i))
4552 return 2;
4553 return 0;
4555 _ACEOF
4556 if ac_fn_c_try_run "$LINENO"; then :
4558 else
4559 ac_cv_header_stdc=no
4561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4562 conftest.$ac_objext conftest.beam conftest.$ac_ext
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4568 $as_echo "$ac_cv_header_stdc" >&6; }
4569 if test $ac_cv_header_stdc = yes; then
4571 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4575 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4576 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4577 inttypes.h stdint.h unistd.h
4578 do :
4579 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4580 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4582 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4583 cat >>confdefs.h <<_ACEOF
4584 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4585 _ACEOF
4589 done
4593 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4594 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4595 MINIX=yes
4596 else
4597 MINIX=
4601 if test "$MINIX" = yes; then
4603 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4606 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4609 $as_echo "#define _MINIX 1" >>confdefs.h
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4615 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4616 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4617 $as_echo_n "(cached) " >&6
4618 else
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4622 # define __EXTENSIONS__ 1
4623 $ac_includes_default
4625 main ()
4629 return 0;
4631 _ACEOF
4632 if ac_fn_c_try_compile "$LINENO"; then :
4633 ac_cv_safe_to_define___extensions__=yes
4634 else
4635 ac_cv_safe_to_define___extensions__=no
4637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4640 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4641 test $ac_cv_safe_to_define___extensions__ = yes &&
4642 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4644 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4646 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4648 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4650 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4653 ac_ext=c
4654 ac_cpp='$CPP $CPPFLAGS'
4655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4658 if test -n "$ac_tool_prefix"; then
4659 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4660 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4662 $as_echo_n "checking for $ac_word... " >&6; }
4663 if ${ac_cv_prog_CC+:} false; then :
4664 $as_echo_n "(cached) " >&6
4665 else
4666 if test -n "$CC"; then
4667 ac_cv_prog_CC="$CC" # Let the user override the test.
4668 else
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 break 2
4680 done
4681 done
4682 IFS=$as_save_IFS
4686 CC=$ac_cv_prog_CC
4687 if test -n "$CC"; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4689 $as_echo "$CC" >&6; }
4690 else
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692 $as_echo "no" >&6; }
4697 if test -z "$ac_cv_prog_CC"; then
4698 ac_ct_CC=$CC
4699 # Extract the first word of "gcc", so it can be a program name with args.
4700 set dummy gcc; ac_word=$2
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4702 $as_echo_n "checking for $ac_word... " >&6; }
4703 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4704 $as_echo_n "(cached) " >&6
4705 else
4706 if test -n "$ac_ct_CC"; then
4707 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4708 else
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4712 IFS=$as_save_IFS
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4716 ac_cv_prog_ac_ct_CC="gcc"
4717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 break 2
4720 done
4721 done
4722 IFS=$as_save_IFS
4726 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4727 if test -n "$ac_ct_CC"; then
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4729 $as_echo "$ac_ct_CC" >&6; }
4730 else
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4732 $as_echo "no" >&6; }
4735 if test "x$ac_ct_CC" = x; then
4736 CC=""
4737 else
4738 case $cross_compiling:$ac_tool_warned in
4739 yes:)
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4742 ac_tool_warned=yes ;;
4743 esac
4744 CC=$ac_ct_CC
4746 else
4747 CC="$ac_cv_prog_CC"
4750 if test -z "$CC"; then
4751 if test -n "$ac_tool_prefix"; then
4752 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4753 set dummy ${ac_tool_prefix}cc; ac_word=$2
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4755 $as_echo_n "checking for $ac_word... " >&6; }
4756 if ${ac_cv_prog_CC+:} false; then :
4757 $as_echo_n "(cached) " >&6
4758 else
4759 if test -n "$CC"; then
4760 ac_cv_prog_CC="$CC" # Let the user override the test.
4761 else
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH
4765 IFS=$as_save_IFS
4766 test -z "$as_dir" && as_dir=.
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4769 ac_cv_prog_CC="${ac_tool_prefix}cc"
4770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4771 break 2
4773 done
4774 done
4775 IFS=$as_save_IFS
4779 CC=$ac_cv_prog_CC
4780 if test -n "$CC"; then
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4782 $as_echo "$CC" >&6; }
4783 else
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785 $as_echo "no" >&6; }
4791 if test -z "$CC"; then
4792 # Extract the first word of "cc", so it can be a program name with args.
4793 set dummy cc; ac_word=$2
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4795 $as_echo_n "checking for $ac_word... " >&6; }
4796 if ${ac_cv_prog_CC+:} false; then :
4797 $as_echo_n "(cached) " >&6
4798 else
4799 if test -n "$CC"; then
4800 ac_cv_prog_CC="$CC" # Let the user override the test.
4801 else
4802 ac_prog_rejected=no
4803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 for as_dir in $PATH
4806 IFS=$as_save_IFS
4807 test -z "$as_dir" && as_dir=.
4808 for ac_exec_ext in '' $ac_executable_extensions; do
4809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4810 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4811 ac_prog_rejected=yes
4812 continue
4814 ac_cv_prog_CC="cc"
4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 break 2
4818 done
4819 done
4820 IFS=$as_save_IFS
4822 if test $ac_prog_rejected = yes; then
4823 # We found a bogon in the path, so make sure we never use it.
4824 set dummy $ac_cv_prog_CC
4825 shift
4826 if test $# != 0; then
4827 # We chose a different compiler from the bogus one.
4828 # However, it has the same basename, so the bogon will be chosen
4829 # first if we set CC to just the basename; use the full file name.
4830 shift
4831 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4836 CC=$ac_cv_prog_CC
4837 if test -n "$CC"; then
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4839 $as_echo "$CC" >&6; }
4840 else
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842 $as_echo "no" >&6; }
4847 if test -z "$CC"; then
4848 if test -n "$ac_tool_prefix"; then
4849 for ac_prog in cl.exe
4851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4852 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if ${ac_cv_prog_CC+:} false; then :
4856 $as_echo_n "(cached) " >&6
4857 else
4858 if test -n "$CC"; then
4859 ac_cv_prog_CC="$CC" # Let the user override the test.
4860 else
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4868 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 break 2
4872 done
4873 done
4874 IFS=$as_save_IFS
4878 CC=$ac_cv_prog_CC
4879 if test -n "$CC"; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4881 $as_echo "$CC" >&6; }
4882 else
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4888 test -n "$CC" && break
4889 done
4891 if test -z "$CC"; then
4892 ac_ct_CC=$CC
4893 for ac_prog in cl.exe
4895 # Extract the first word of "$ac_prog", so it can be a program name with args.
4896 set dummy $ac_prog; ac_word=$2
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898 $as_echo_n "checking for $ac_word... " >&6; }
4899 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4900 $as_echo_n "(cached) " >&6
4901 else
4902 if test -n "$ac_ct_CC"; then
4903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4912 ac_cv_prog_ac_ct_CC="$ac_prog"
4913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 break 2
4916 done
4917 done
4918 IFS=$as_save_IFS
4922 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4923 if test -n "$ac_ct_CC"; then
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4925 $as_echo "$ac_ct_CC" >&6; }
4926 else
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928 $as_echo "no" >&6; }
4932 test -n "$ac_ct_CC" && break
4933 done
4935 if test "x$ac_ct_CC" = x; then
4936 CC=""
4937 else
4938 case $cross_compiling:$ac_tool_warned in
4939 yes:)
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4942 ac_tool_warned=yes ;;
4943 esac
4944 CC=$ac_ct_CC
4951 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4953 as_fn_error $? "no acceptable C compiler found in \$PATH
4954 See \`config.log' for more details" "$LINENO" 5; }
4956 # Provide some information about the compiler.
4957 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4958 set X $ac_compile
4959 ac_compiler=$2
4960 for ac_option in --version -v -V -qversion; do
4961 { { ac_try="$ac_compiler $ac_option >&5"
4962 case "(($ac_try" in
4963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964 *) ac_try_echo=$ac_try;;
4965 esac
4966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4967 $as_echo "$ac_try_echo"; } >&5
4968 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4969 ac_status=$?
4970 if test -s conftest.err; then
4971 sed '10a\
4972 ... rest of stderr output deleted ...
4973 10q' conftest.err >conftest.er1
4974 cat conftest.er1 >&5
4976 rm -f conftest.er1 conftest.err
4977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4978 test $ac_status = 0; }
4979 done
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4982 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4983 if ${ac_cv_c_compiler_gnu+:} false; then :
4984 $as_echo_n "(cached) " >&6
4985 else
4986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h. */
4990 main ()
4992 #ifndef __GNUC__
4993 choke me
4994 #endif
4997 return 0;
4999 _ACEOF
5000 if ac_fn_c_try_compile "$LINENO"; then :
5001 ac_compiler_gnu=yes
5002 else
5003 ac_compiler_gnu=no
5005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5006 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5010 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5011 if test $ac_compiler_gnu = yes; then
5012 GCC=yes
5013 else
5014 GCC=
5016 ac_test_CFLAGS=${CFLAGS+set}
5017 ac_save_CFLAGS=$CFLAGS
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5019 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5020 if ${ac_cv_prog_cc_g+:} false; then :
5021 $as_echo_n "(cached) " >&6
5022 else
5023 ac_save_c_werror_flag=$ac_c_werror_flag
5024 ac_c_werror_flag=yes
5025 ac_cv_prog_cc_g=no
5026 CFLAGS="-g"
5027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028 /* end confdefs.h. */
5031 main ()
5035 return 0;
5037 _ACEOF
5038 if ac_fn_c_try_compile "$LINENO"; then :
5039 ac_cv_prog_cc_g=yes
5040 else
5041 CFLAGS=""
5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043 /* end confdefs.h. */
5046 main ()
5050 return 0;
5052 _ACEOF
5053 if ac_fn_c_try_compile "$LINENO"; then :
5055 else
5056 ac_c_werror_flag=$ac_save_c_werror_flag
5057 CFLAGS="-g"
5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059 /* end confdefs.h. */
5062 main ()
5066 return 0;
5068 _ACEOF
5069 if ac_fn_c_try_compile "$LINENO"; then :
5070 ac_cv_prog_cc_g=yes
5072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5077 ac_c_werror_flag=$ac_save_c_werror_flag
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5080 $as_echo "$ac_cv_prog_cc_g" >&6; }
5081 if test "$ac_test_CFLAGS" = set; then
5082 CFLAGS=$ac_save_CFLAGS
5083 elif test $ac_cv_prog_cc_g = yes; then
5084 if test "$GCC" = yes; then
5085 CFLAGS="-g -O2"
5086 else
5087 CFLAGS="-g"
5089 else
5090 if test "$GCC" = yes; then
5091 CFLAGS="-O2"
5092 else
5093 CFLAGS=
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5097 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5098 if ${ac_cv_prog_cc_c89+:} false; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 ac_cv_prog_cc_c89=no
5102 ac_save_CC=$CC
5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104 /* end confdefs.h. */
5105 #include <stdarg.h>
5106 #include <stdio.h>
5107 struct stat;
5108 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5109 struct buf { int x; };
5110 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5111 static char *e (p, i)
5112 char **p;
5113 int i;
5115 return p[i];
5117 static char *f (char * (*g) (char **, int), char **p, ...)
5119 char *s;
5120 va_list v;
5121 va_start (v,p);
5122 s = g (p, va_arg (v,int));
5123 va_end (v);
5124 return s;
5127 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5128 function prototypes and stuff, but not '\xHH' hex character constants.
5129 These don't provoke an error unfortunately, instead are silently treated
5130 as 'x'. The following induces an error, until -std is added to get
5131 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5132 array size at least. It's necessary to write '\x00'==0 to get something
5133 that's true only with -std. */
5134 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5136 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5137 inside strings and character constants. */
5138 #define FOO(x) 'x'
5139 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5141 int test (int i, double x);
5142 struct s1 {int (*f) (int a);};
5143 struct s2 {int (*f) (double a);};
5144 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5145 int argc;
5146 char **argv;
5148 main ()
5150 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5152 return 0;
5154 _ACEOF
5155 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5156 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5158 CC="$ac_save_CC $ac_arg"
5159 if ac_fn_c_try_compile "$LINENO"; then :
5160 ac_cv_prog_cc_c89=$ac_arg
5162 rm -f core conftest.err conftest.$ac_objext
5163 test "x$ac_cv_prog_cc_c89" != "xno" && break
5164 done
5165 rm -f conftest.$ac_ext
5166 CC=$ac_save_CC
5169 # AC_CACHE_VAL
5170 case "x$ac_cv_prog_cc_c89" in
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5173 $as_echo "none needed" >&6; } ;;
5174 xno)
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5176 $as_echo "unsupported" >&6; } ;;
5178 CC="$CC $ac_cv_prog_cc_c89"
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5180 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5181 esac
5182 if test "x$ac_cv_prog_cc_c89" != xno; then :
5186 ac_ext=c
5187 ac_cpp='$CPP $CPPFLAGS'
5188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5192 ac_ext=c
5193 ac_cpp='$CPP $CPPFLAGS'
5194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5198 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5199 if ${am_cv_prog_cc_c_o+:} false; then :
5200 $as_echo_n "(cached) " >&6
5201 else
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h. */
5206 main ()
5210 return 0;
5212 _ACEOF
5213 # Make sure it works both with $CC and with simple cc.
5214 # Following AC_PROG_CC_C_O, we do the test twice because some
5215 # compilers refuse to overwrite an existing .o file with -o,
5216 # though they will create one.
5217 am_cv_prog_cc_c_o=yes
5218 for am_i in 1 2; do
5219 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5220 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5221 ac_status=$?
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } \
5224 && test -f conftest2.$ac_objext; then
5225 : OK
5226 else
5227 am_cv_prog_cc_c_o=no
5228 break
5230 done
5231 rm -f core conftest*
5232 unset am_i
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5235 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5236 if test "$am_cv_prog_cc_c_o" != yes; then
5237 # Losing compiler, so override with the script.
5238 # FIXME: It is wrong to rewrite CC.
5239 # But if we don't then we get into trouble of one sort or another.
5240 # A longer-term fix would be to have automake use am__CC in this case,
5241 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5242 CC="$am_aux_dir/compile $CC"
5244 ac_ext=c
5245 ac_cpp='$CPP $CPPFLAGS'
5246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5251 depcc="$CC" am_compiler_list=
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5254 $as_echo_n "checking dependency style of $depcc... " >&6; }
5255 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5256 $as_echo_n "(cached) " >&6
5257 else
5258 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5259 # We make a subdir and do the tests there. Otherwise we can end up
5260 # making bogus files that we don't know about and never remove. For
5261 # instance it was reported that on HP-UX the gcc test will end up
5262 # making a dummy file named 'D' -- because '-MD' means "put the output
5263 # in D".
5264 rm -rf conftest.dir
5265 mkdir conftest.dir
5266 # Copy depcomp to subdir because otherwise we won't find it if we're
5267 # using a relative directory.
5268 cp "$am_depcomp" conftest.dir
5269 cd conftest.dir
5270 # We will build objects and dependencies in a subdirectory because
5271 # it helps to detect inapplicable dependency modes. For instance
5272 # both Tru64's cc and ICC support -MD to output dependencies as a
5273 # side effect of compilation, but ICC will put the dependencies in
5274 # the current directory while Tru64 will put them in the object
5275 # directory.
5276 mkdir sub
5278 am_cv_CC_dependencies_compiler_type=none
5279 if test "$am_compiler_list" = ""; then
5280 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5282 am__universal=false
5283 case " $depcc " in #(
5284 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5285 esac
5287 for depmode in $am_compiler_list; do
5288 # Setup a source with many dependencies, because some compilers
5289 # like to wrap large dependency lists on column 80 (with \), and
5290 # we should not choose a depcomp mode which is confused by this.
5292 # We need to recreate these files for each test, as the compiler may
5293 # overwrite some of them when testing with obscure command lines.
5294 # This happens at least with the AIX C compiler.
5295 : > sub/conftest.c
5296 for i in 1 2 3 4 5 6; do
5297 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5298 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5299 # Solaris 10 /bin/sh.
5300 echo '/* dummy */' > sub/conftst$i.h
5301 done
5302 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5304 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5305 # mode. It turns out that the SunPro C++ compiler does not properly
5306 # handle '-M -o', and we need to detect this. Also, some Intel
5307 # versions had trouble with output in subdirs.
5308 am__obj=sub/conftest.${OBJEXT-o}
5309 am__minus_obj="-o $am__obj"
5310 case $depmode in
5311 gcc)
5312 # This depmode causes a compiler race in universal mode.
5313 test "$am__universal" = false || continue
5315 nosideeffect)
5316 # After this tag, mechanisms are not by side-effect, so they'll
5317 # only be used when explicitly requested.
5318 if test "x$enable_dependency_tracking" = xyes; then
5319 continue
5320 else
5321 break
5324 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5325 # This compiler won't grok '-c -o', but also, the minuso test has
5326 # not run yet. These depmodes are late enough in the game, and
5327 # so weak that their functioning should not be impacted.
5328 am__obj=conftest.${OBJEXT-o}
5329 am__minus_obj=
5331 none) break ;;
5332 esac
5333 if depmode=$depmode \
5334 source=sub/conftest.c object=$am__obj \
5335 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5336 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5337 >/dev/null 2>conftest.err &&
5338 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5339 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5340 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5341 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5342 # icc doesn't choke on unknown options, it will just issue warnings
5343 # or remarks (even with -Werror). So we grep stderr for any message
5344 # that says an option was ignored or not supported.
5345 # When given -MP, icc 7.0 and 7.1 complain thusly:
5346 # icc: Command line warning: ignoring option '-M'; no argument required
5347 # The diagnosis changed in icc 8.0:
5348 # icc: Command line remark: option '-MP' not supported
5349 if (grep 'ignoring option' conftest.err ||
5350 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5351 am_cv_CC_dependencies_compiler_type=$depmode
5352 break
5355 done
5357 cd ..
5358 rm -rf conftest.dir
5359 else
5360 am_cv_CC_dependencies_compiler_type=none
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5365 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5366 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5369 test "x$enable_dependency_tracking" != xno \
5370 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5371 am__fastdepCC_TRUE=
5372 am__fastdepCC_FALSE='#'
5373 else
5374 am__fastdepCC_TRUE='#'
5375 am__fastdepCC_FALSE=
5379 # Check whether --enable-largefile was given.
5380 if test "${enable_largefile+set}" = set; then :
5381 enableval=$enable_largefile;
5384 if test "$enable_largefile" != no; then
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5387 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5388 if ${ac_cv_sys_largefile_CC+:} false; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 ac_cv_sys_largefile_CC=no
5392 if test "$GCC" != yes; then
5393 ac_save_CC=$CC
5394 while :; do
5395 # IRIX 6.2 and later do not support large files by default,
5396 # so use the C compiler's -n32 option if that helps.
5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398 /* end confdefs.h. */
5399 #include <sys/types.h>
5400 /* Check that off_t can represent 2**63 - 1 correctly.
5401 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5402 since some C++ compilers masquerading as C compilers
5403 incorrectly reject 9223372036854775807. */
5404 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5405 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5406 && LARGE_OFF_T % 2147483647 == 1)
5407 ? 1 : -1];
5409 main ()
5413 return 0;
5415 _ACEOF
5416 if ac_fn_c_try_compile "$LINENO"; then :
5417 break
5419 rm -f core conftest.err conftest.$ac_objext
5420 CC="$CC -n32"
5421 if ac_fn_c_try_compile "$LINENO"; then :
5422 ac_cv_sys_largefile_CC=' -n32'; break
5424 rm -f core conftest.err conftest.$ac_objext
5425 break
5426 done
5427 CC=$ac_save_CC
5428 rm -f conftest.$ac_ext
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5432 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5433 if test "$ac_cv_sys_largefile_CC" != no; then
5434 CC=$CC$ac_cv_sys_largefile_CC
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5438 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5439 if ${ac_cv_sys_file_offset_bits+:} false; then :
5440 $as_echo_n "(cached) " >&6
5441 else
5442 while :; do
5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444 /* end confdefs.h. */
5445 #include <sys/types.h>
5446 /* Check that off_t can represent 2**63 - 1 correctly.
5447 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5448 since some C++ compilers masquerading as C compilers
5449 incorrectly reject 9223372036854775807. */
5450 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5451 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5452 && LARGE_OFF_T % 2147483647 == 1)
5453 ? 1 : -1];
5455 main ()
5459 return 0;
5461 _ACEOF
5462 if ac_fn_c_try_compile "$LINENO"; then :
5463 ac_cv_sys_file_offset_bits=no; break
5465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467 /* end confdefs.h. */
5468 #define _FILE_OFFSET_BITS 64
5469 #include <sys/types.h>
5470 /* Check that off_t can represent 2**63 - 1 correctly.
5471 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5472 since some C++ compilers masquerading as C compilers
5473 incorrectly reject 9223372036854775807. */
5474 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5475 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5476 && LARGE_OFF_T % 2147483647 == 1)
5477 ? 1 : -1];
5479 main ()
5483 return 0;
5485 _ACEOF
5486 if ac_fn_c_try_compile "$LINENO"; then :
5487 ac_cv_sys_file_offset_bits=64; break
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490 ac_cv_sys_file_offset_bits=unknown
5491 break
5492 done
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5495 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5496 case $ac_cv_sys_file_offset_bits in #(
5497 no | unknown) ;;
5499 cat >>confdefs.h <<_ACEOF
5500 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5501 _ACEOF
5503 esac
5504 rm -rf conftest*
5505 if test $ac_cv_sys_file_offset_bits = unknown; then
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5507 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5508 if ${ac_cv_sys_large_files+:} false; then :
5509 $as_echo_n "(cached) " >&6
5510 else
5511 while :; do
5512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513 /* end confdefs.h. */
5514 #include <sys/types.h>
5515 /* Check that off_t can represent 2**63 - 1 correctly.
5516 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5517 since some C++ compilers masquerading as C compilers
5518 incorrectly reject 9223372036854775807. */
5519 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5520 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5521 && LARGE_OFF_T % 2147483647 == 1)
5522 ? 1 : -1];
5524 main ()
5528 return 0;
5530 _ACEOF
5531 if ac_fn_c_try_compile "$LINENO"; then :
5532 ac_cv_sys_large_files=no; break
5534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536 /* end confdefs.h. */
5537 #define _LARGE_FILES 1
5538 #include <sys/types.h>
5539 /* Check that off_t can represent 2**63 - 1 correctly.
5540 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5541 since some C++ compilers masquerading as C compilers
5542 incorrectly reject 9223372036854775807. */
5543 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5544 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5545 && LARGE_OFF_T % 2147483647 == 1)
5546 ? 1 : -1];
5548 main ()
5552 return 0;
5554 _ACEOF
5555 if ac_fn_c_try_compile "$LINENO"; then :
5556 ac_cv_sys_large_files=1; break
5558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5559 ac_cv_sys_large_files=unknown
5560 break
5561 done
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5564 $as_echo "$ac_cv_sys_large_files" >&6; }
5565 case $ac_cv_sys_large_files in #(
5566 no | unknown) ;;
5568 cat >>confdefs.h <<_ACEOF
5569 #define _LARGE_FILES $ac_cv_sys_large_files
5570 _ACEOF
5572 esac
5573 rm -rf conftest*
5579 ac_ext=c
5580 ac_cpp='$CPP $CPPFLAGS'
5581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5585 ac_lto_plugin_warn_cflags=
5586 save_CFLAGS="$CFLAGS"
5587 for real_option in -Wall; do
5588 # Do the check with the no- prefix removed since gcc silently
5589 # accepts any -Wno-* option on purpose
5590 case $real_option in
5591 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
5592 *) option=$real_option ;;
5593 esac
5594 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5597 $as_echo_n "checking whether $CC supports $option... " >&6; }
5598 if eval \${$as_acx_Woption+:} false; then :
5599 $as_echo_n "(cached) " >&6
5600 else
5601 CFLAGS="$option"
5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h. */
5606 main ()
5610 return 0;
5612 _ACEOF
5613 if ac_fn_c_try_compile "$LINENO"; then :
5614 eval "$as_acx_Woption=yes"
5615 else
5616 eval "$as_acx_Woption=no"
5618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5621 eval ac_res=\$$as_acx_Woption
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5623 $as_echo "$ac_res" >&6; }
5624 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5625 ac_lto_plugin_warn_cflags="$ac_lto_plugin_warn_cflags${ac_lto_plugin_warn_cflags:+ }$real_option"
5627 done
5628 CFLAGS="$save_CFLAGS"
5629 ac_ext=c
5630 ac_cpp='$CPP $CPPFLAGS'
5631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5637 # Check whether -static-libgcc is supported.
5638 saved_LDFLAGS="$LDFLAGS"
5639 LDFLAGS="$LDFLAGS -static-libgcc"
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -static-libgcc" >&5
5641 $as_echo_n "checking for -static-libgcc... " >&6; }
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5645 int main() {}
5646 _ACEOF
5647 if ac_fn_c_try_link "$LINENO"; then :
5648 have_static_libgcc=yes
5649 else
5650 have_static_libgcc=no
5652 rm -f core conftest.err conftest.$ac_objext \
5653 conftest$ac_exeext conftest.$ac_ext
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_static_libgcc" >&5
5655 $as_echo "$have_static_libgcc" >&6; };
5656 LDFLAGS="$saved_LDFLAGS"
5657 # Need -Wc to get it through libtool.
5658 if test "x$have_static_libgcc" = xyes; then
5659 ac_lto_plugin_ldflags="-Wc,-static-libgcc"
5663 if test x"$host_subdir" = x.; then
5664 gcc_build_dir=../gcc
5665 else
5666 gcc_build_dir=../../$host_subdir/gcc
5670 # Used for constructing correct paths for offload compilers.
5671 accel_dir_suffix=
5672 real_target_noncanonical=${target_noncanonical}
5673 if test x"$enable_as_accelerator_for" != x; then
5674 accel_dir_suffix=/accel/${target_noncanonical}
5675 real_target_noncanonical=${enable_as_accelerator_for}
5680 # Determine what GCC version number to use in filesystem paths.
5682 get_gcc_base_ver="cat"
5684 # Check whether --with-gcc-major-version-only was given.
5685 if test "${with_gcc_major_version_only+set}" = set; then :
5686 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
5687 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
5695 case `pwd` in
5696 *\ * | *\ *)
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5698 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5699 esac
5703 macro_version='2.2.7a'
5704 macro_revision='1.3134'
5718 ltmain="$ac_aux_dir/ltmain.sh"
5720 # Backslashify metacharacters that are still active within
5721 # double-quoted strings.
5722 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5724 # Same as above, but do not quote variable references.
5725 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5727 # Sed substitution to delay expansion of an escaped shell variable in a
5728 # double_quote_subst'ed string.
5729 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5731 # Sed substitution to delay expansion of an escaped single quote.
5732 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5734 # Sed substitution to avoid accidental globbing in evaled expressions
5735 no_glob_subst='s/\*/\\\*/g'
5737 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5738 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5739 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5742 $as_echo_n "checking how to print strings... " >&6; }
5743 # Test print first, because it will be a builtin if present.
5744 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5745 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5746 ECHO='print -r --'
5747 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5748 ECHO='printf %s\n'
5749 else
5750 # Use this function as a fallback that always works.
5751 func_fallback_echo ()
5753 eval 'cat <<_LTECHO_EOF
5755 _LTECHO_EOF'
5757 ECHO='func_fallback_echo'
5760 # func_echo_all arg...
5761 # Invoke $ECHO with all args, space-separated.
5762 func_echo_all ()
5764 $ECHO ""
5767 case "$ECHO" in
5768 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5769 $as_echo "printf" >&6; } ;;
5770 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5771 $as_echo "print -r" >&6; } ;;
5772 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5773 $as_echo "cat" >&6; } ;;
5774 esac
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5790 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5791 if ${ac_cv_path_SED+:} false; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5795 for ac_i in 1 2 3 4 5 6 7; do
5796 ac_script="$ac_script$as_nl$ac_script"
5797 done
5798 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5799 { ac_script=; unset ac_script;}
5800 if test -z "$SED"; then
5801 ac_path_SED_found=false
5802 # Loop through the user's path and test for each of PROGNAME-LIST
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_prog in sed gsed; do
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5811 as_fn_executable_p "$ac_path_SED" || continue
5812 # Check for GNU ac_path_SED and select it if it is found.
5813 # Check for GNU $ac_path_SED
5814 case `"$ac_path_SED" --version 2>&1` in
5815 *GNU*)
5816 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5818 ac_count=0
5819 $as_echo_n 0123456789 >"conftest.in"
5820 while :
5822 cat "conftest.in" "conftest.in" >"conftest.tmp"
5823 mv "conftest.tmp" "conftest.in"
5824 cp "conftest.in" "conftest.nl"
5825 $as_echo '' >> "conftest.nl"
5826 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5827 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5828 as_fn_arith $ac_count + 1 && ac_count=$as_val
5829 if test $ac_count -gt ${ac_path_SED_max-0}; then
5830 # Best one so far, save it but keep looking for a better one
5831 ac_cv_path_SED="$ac_path_SED"
5832 ac_path_SED_max=$ac_count
5834 # 10*(2^10) chars as input seems more than enough
5835 test $ac_count -gt 10 && break
5836 done
5837 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5838 esac
5840 $ac_path_SED_found && break 3
5841 done
5842 done
5843 done
5844 IFS=$as_save_IFS
5845 if test -z "$ac_cv_path_SED"; then
5846 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5848 else
5849 ac_cv_path_SED=$SED
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5854 $as_echo "$ac_cv_path_SED" >&6; }
5855 SED="$ac_cv_path_SED"
5856 rm -f conftest.sed
5858 test -z "$SED" && SED=sed
5859 Xsed="$SED -e 1s/^X//"
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5872 $as_echo_n "checking for fgrep... " >&6; }
5873 if ${ac_cv_path_FGREP+:} false; then :
5874 $as_echo_n "(cached) " >&6
5875 else
5876 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5877 then ac_cv_path_FGREP="$GREP -F"
5878 else
5879 if test -z "$FGREP"; then
5880 ac_path_FGREP_found=false
5881 # Loop through the user's path and test for each of PROGNAME-LIST
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5885 IFS=$as_save_IFS
5886 test -z "$as_dir" && as_dir=.
5887 for ac_prog in fgrep; do
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5890 as_fn_executable_p "$ac_path_FGREP" || continue
5891 # Check for GNU ac_path_FGREP and select it if it is found.
5892 # Check for GNU $ac_path_FGREP
5893 case `"$ac_path_FGREP" --version 2>&1` in
5894 *GNU*)
5895 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5897 ac_count=0
5898 $as_echo_n 0123456789 >"conftest.in"
5899 while :
5901 cat "conftest.in" "conftest.in" >"conftest.tmp"
5902 mv "conftest.tmp" "conftest.in"
5903 cp "conftest.in" "conftest.nl"
5904 $as_echo 'FGREP' >> "conftest.nl"
5905 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5906 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5907 as_fn_arith $ac_count + 1 && ac_count=$as_val
5908 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5909 # Best one so far, save it but keep looking for a better one
5910 ac_cv_path_FGREP="$ac_path_FGREP"
5911 ac_path_FGREP_max=$ac_count
5913 # 10*(2^10) chars as input seems more than enough
5914 test $ac_count -gt 10 && break
5915 done
5916 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5917 esac
5919 $ac_path_FGREP_found && break 3
5920 done
5921 done
5922 done
5923 IFS=$as_save_IFS
5924 if test -z "$ac_cv_path_FGREP"; then
5925 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5927 else
5928 ac_cv_path_FGREP=$FGREP
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5934 $as_echo "$ac_cv_path_FGREP" >&6; }
5935 FGREP="$ac_cv_path_FGREP"
5938 test -z "$GREP" && GREP=grep
5958 # Check whether --with-gnu-ld was given.
5959 if test "${with_gnu_ld+set}" = set; then :
5960 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5961 else
5962 with_gnu_ld=no
5965 ac_prog=ld
5966 if test "$GCC" = yes; then
5967 # Check if gcc -print-prog-name=ld gives a path.
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5969 $as_echo_n "checking for ld used by $CC... " >&6; }
5970 case $host in
5971 *-*-mingw*)
5972 # gcc leaves a trailing carriage return which upsets mingw
5973 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5975 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5976 esac
5977 case $ac_prog in
5978 # Accept absolute paths.
5979 [\\/]* | ?:[\\/]*)
5980 re_direlt='/[^/][^/]*/\.\./'
5981 # Canonicalize the pathname of ld
5982 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5983 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5984 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5985 done
5986 test -z "$LD" && LD="$ac_prog"
5989 # If it fails, then pretend we aren't using GCC.
5990 ac_prog=ld
5993 # If it is relative, then search for the first ld in PATH.
5994 with_gnu_ld=unknown
5996 esac
5997 elif test "$with_gnu_ld" = yes; then
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5999 $as_echo_n "checking for GNU ld... " >&6; }
6000 else
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6002 $as_echo_n "checking for non-GNU ld... " >&6; }
6004 if ${lt_cv_path_LD+:} false; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6007 if test -z "$LD"; then
6008 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6009 for ac_dir in $PATH; do
6010 IFS="$lt_save_ifs"
6011 test -z "$ac_dir" && ac_dir=.
6012 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6013 lt_cv_path_LD="$ac_dir/$ac_prog"
6014 # Check to see if the program is GNU ld. I'd rather use --version,
6015 # but apparently some variants of GNU ld only accept -v.
6016 # Break only if it was the GNU/non-GNU ld that we prefer.
6017 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6018 *GNU* | *'with BFD'*)
6019 test "$with_gnu_ld" != no && break
6022 test "$with_gnu_ld" != yes && break
6024 esac
6026 done
6027 IFS="$lt_save_ifs"
6028 else
6029 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6033 LD="$lt_cv_path_LD"
6034 if test -n "$LD"; then
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6036 $as_echo "$LD" >&6; }
6037 else
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039 $as_echo "no" >&6; }
6041 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6043 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6044 if ${lt_cv_prog_gnu_ld+:} false; then :
6045 $as_echo_n "(cached) " >&6
6046 else
6047 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6048 case `$LD -v 2>&1 </dev/null` in
6049 *GNU* | *'with BFD'*)
6050 lt_cv_prog_gnu_ld=yes
6053 lt_cv_prog_gnu_ld=no
6055 esac
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6058 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6059 with_gnu_ld=$lt_cv_prog_gnu_ld
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6070 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6071 if ${lt_cv_path_NM+:} false; then :
6072 $as_echo_n "(cached) " >&6
6073 else
6074 if test -n "$NM"; then
6075 # Let the user override the test.
6076 lt_cv_path_NM="$NM"
6077 else
6078 lt_nm_to_check="${ac_tool_prefix}nm"
6079 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6080 lt_nm_to_check="$lt_nm_to_check nm"
6082 for lt_tmp_nm in $lt_nm_to_check; do
6083 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6084 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6085 IFS="$lt_save_ifs"
6086 test -z "$ac_dir" && ac_dir=.
6087 tmp_nm="$ac_dir/$lt_tmp_nm"
6088 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6089 # Check to see if the nm accepts a BSD-compat flag.
6090 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6091 # nm: unknown option "B" ignored
6092 # Tru64's nm complains that /dev/null is an invalid object file
6093 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6094 */dev/null* | *'Invalid file or object type'*)
6095 lt_cv_path_NM="$tmp_nm -B"
6096 break
6099 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6100 */dev/null*)
6101 lt_cv_path_NM="$tmp_nm -p"
6102 break
6105 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6106 continue # so that we can try to find one that supports BSD flags
6108 esac
6110 esac
6112 done
6113 IFS="$lt_save_ifs"
6114 done
6115 : ${lt_cv_path_NM=no}
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6119 $as_echo "$lt_cv_path_NM" >&6; }
6120 if test "$lt_cv_path_NM" != "no"; then
6121 NM="$lt_cv_path_NM"
6122 else
6123 # Didn't find any BSD compatible name lister, look for dumpbin.
6124 if test -n "$DUMPBIN"; then :
6125 # Let the user override the test.
6126 else
6127 if test -n "$ac_tool_prefix"; then
6128 for ac_prog in dumpbin "link -dump"
6130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133 $as_echo_n "checking for $ac_word... " >&6; }
6134 if ${ac_cv_prog_DUMPBIN+:} false; then :
6135 $as_echo_n "(cached) " >&6
6136 else
6137 if test -n "$DUMPBIN"; then
6138 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6139 else
6140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 for as_dir in $PATH
6143 IFS=$as_save_IFS
6144 test -z "$as_dir" && as_dir=.
6145 for ac_exec_ext in '' $ac_executable_extensions; do
6146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6147 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6149 break 2
6151 done
6152 done
6153 IFS=$as_save_IFS
6157 DUMPBIN=$ac_cv_prog_DUMPBIN
6158 if test -n "$DUMPBIN"; then
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6160 $as_echo "$DUMPBIN" >&6; }
6161 else
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6163 $as_echo "no" >&6; }
6167 test -n "$DUMPBIN" && break
6168 done
6170 if test -z "$DUMPBIN"; then
6171 ac_ct_DUMPBIN=$DUMPBIN
6172 for ac_prog in dumpbin "link -dump"
6174 # Extract the first word of "$ac_prog", so it can be a program name with args.
6175 set dummy $ac_prog; ac_word=$2
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6177 $as_echo_n "checking for $ac_word... " >&6; }
6178 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6179 $as_echo_n "(cached) " >&6
6180 else
6181 if test -n "$ac_ct_DUMPBIN"; then
6182 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6183 else
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185 for as_dir in $PATH
6187 IFS=$as_save_IFS
6188 test -z "$as_dir" && as_dir=.
6189 for ac_exec_ext in '' $ac_executable_extensions; do
6190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6191 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6193 break 2
6195 done
6196 done
6197 IFS=$as_save_IFS
6201 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6202 if test -n "$ac_ct_DUMPBIN"; then
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6204 $as_echo "$ac_ct_DUMPBIN" >&6; }
6205 else
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6207 $as_echo "no" >&6; }
6211 test -n "$ac_ct_DUMPBIN" && break
6212 done
6214 if test "x$ac_ct_DUMPBIN" = x; then
6215 DUMPBIN=":"
6216 else
6217 case $cross_compiling:$ac_tool_warned in
6218 yes:)
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6221 ac_tool_warned=yes ;;
6222 esac
6223 DUMPBIN=$ac_ct_DUMPBIN
6227 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6228 *COFF*)
6229 DUMPBIN="$DUMPBIN -symbols"
6232 DUMPBIN=:
6234 esac
6237 if test "$DUMPBIN" != ":"; then
6238 NM="$DUMPBIN"
6241 test -z "$NM" && NM=nm
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6249 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6250 if ${lt_cv_nm_interface+:} false; then :
6251 $as_echo_n "(cached) " >&6
6252 else
6253 lt_cv_nm_interface="BSD nm"
6254 echo "int some_variable = 0;" > conftest.$ac_ext
6255 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6256 (eval "$ac_compile" 2>conftest.err)
6257 cat conftest.err >&5
6258 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6259 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6260 cat conftest.err >&5
6261 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6262 cat conftest.out >&5
6263 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6264 lt_cv_nm_interface="MS dumpbin"
6266 rm -f conftest*
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6269 $as_echo "$lt_cv_nm_interface" >&6; }
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6272 $as_echo_n "checking whether ln -s works... " >&6; }
6273 LN_S=$as_ln_s
6274 if test "$LN_S" = "ln -s"; then
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6276 $as_echo "yes" >&6; }
6277 else
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6279 $as_echo "no, using $LN_S" >&6; }
6282 # find the maximum length of command line arguments
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6284 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6285 if ${lt_cv_sys_max_cmd_len+:} false; then :
6286 $as_echo_n "(cached) " >&6
6287 else
6289 teststring="ABCD"
6291 case $build_os in
6292 msdosdjgpp*)
6293 # On DJGPP, this test can blow up pretty badly due to problems in libc
6294 # (any single argument exceeding 2000 bytes causes a buffer overrun
6295 # during glob expansion). Even if it were fixed, the result of this
6296 # check would be larger than it should be.
6297 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6300 gnu*)
6301 # Under GNU Hurd, this test is not required because there is
6302 # no limit to the length of command line arguments.
6303 # Libtool will interpret -1 as no limit whatsoever
6304 lt_cv_sys_max_cmd_len=-1;
6307 cygwin* | mingw* | cegcc*)
6308 # On Win9x/ME, this test blows up -- it succeeds, but takes
6309 # about 5 minutes as the teststring grows exponentially.
6310 # Worse, since 9x/ME are not pre-emptively multitasking,
6311 # you end up with a "frozen" computer, even though with patience
6312 # the test eventually succeeds (with a max line length of 256k).
6313 # Instead, let's just punt: use the minimum linelength reported by
6314 # all of the supported platforms: 8192 (on NT/2K/XP).
6315 lt_cv_sys_max_cmd_len=8192;
6318 mint*)
6319 # On MiNT this can take a long time and run out of memory.
6320 lt_cv_sys_max_cmd_len=8192;
6323 amigaos*)
6324 # On AmigaOS with pdksh, this test takes hours, literally.
6325 # So we just punt and use a minimum line length of 8192.
6326 lt_cv_sys_max_cmd_len=8192;
6329 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6330 # This has been around since 386BSD, at least. Likely further.
6331 if test -x /sbin/sysctl; then
6332 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6333 elif test -x /usr/sbin/sysctl; then
6334 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6335 else
6336 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6338 # And add a safety zone
6339 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6340 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6343 interix*)
6344 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6345 lt_cv_sys_max_cmd_len=196608
6348 osf*)
6349 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6350 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6351 # nice to cause kernel panics so lets avoid the loop below.
6352 # First set a reasonable default.
6353 lt_cv_sys_max_cmd_len=16384
6355 if test -x /sbin/sysconfig; then
6356 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6357 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6358 esac
6361 sco3.2v5*)
6362 lt_cv_sys_max_cmd_len=102400
6364 sysv5* | sco5v6* | sysv4.2uw2*)
6365 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6366 if test -n "$kargmax"; then
6367 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6368 else
6369 lt_cv_sys_max_cmd_len=32768
6373 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6374 if test -n "$lt_cv_sys_max_cmd_len"; then
6375 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6376 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6377 else
6378 # Make teststring a little bigger before we do anything with it.
6379 # a 1K string should be a reasonable start.
6380 for i in 1 2 3 4 5 6 7 8 ; do
6381 teststring=$teststring$teststring
6382 done
6383 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6384 # If test is not a shell built-in, we'll probably end up computing a
6385 # maximum length that is only half of the actual maximum length, but
6386 # we can't tell.
6387 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6388 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6389 test $i != 17 # 1/2 MB should be enough
6391 i=`expr $i + 1`
6392 teststring=$teststring$teststring
6393 done
6394 # Only check the string length outside the loop.
6395 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6396 teststring=
6397 # Add a significant safety factor because C++ compilers can tack on
6398 # massive amounts of additional arguments before passing them to the
6399 # linker. It appears as though 1/2 is a usable value.
6400 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6403 esac
6407 if test -n $lt_cv_sys_max_cmd_len ; then
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6409 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6410 else
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6412 $as_echo "none" >&6; }
6414 max_cmd_len=$lt_cv_sys_max_cmd_len
6421 : ${CP="cp -f"}
6422 : ${MV="mv -f"}
6423 : ${RM="rm -f"}
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6426 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6427 # Try some XSI features
6428 xsi_shell=no
6429 ( _lt_dummy="a/b/c"
6430 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6431 = c,a/b,, \
6432 && eval 'test $(( 1 + 1 )) -eq 2 \
6433 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6434 && xsi_shell=yes
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6436 $as_echo "$xsi_shell" >&6; }
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6440 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6441 lt_shell_append=no
6442 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6443 >/dev/null 2>&1 \
6444 && lt_shell_append=yes
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6446 $as_echo "$lt_shell_append" >&6; }
6449 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6450 lt_unset=unset
6451 else
6452 lt_unset=false
6459 # test EBCDIC or ASCII
6460 case `echo X|tr X '\101'` in
6461 A) # ASCII based system
6462 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6463 lt_SP2NL='tr \040 \012'
6464 lt_NL2SP='tr \015\012 \040\040'
6466 *) # EBCDIC based system
6467 lt_SP2NL='tr \100 \n'
6468 lt_NL2SP='tr \r\n \100\100'
6470 esac
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6481 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6482 if ${lt_cv_ld_reload_flag+:} false; then :
6483 $as_echo_n "(cached) " >&6
6484 else
6485 lt_cv_ld_reload_flag='-r'
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6488 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6489 reload_flag=$lt_cv_ld_reload_flag
6490 case $reload_flag in
6491 "" | " "*) ;;
6492 *) reload_flag=" $reload_flag" ;;
6493 esac
6494 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6495 case $host_os in
6496 darwin*)
6497 if test "$GCC" = yes; then
6498 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6499 else
6500 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6503 esac
6513 if test -n "$ac_tool_prefix"; then
6514 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6515 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517 $as_echo_n "checking for $ac_word... " >&6; }
6518 if ${ac_cv_prog_OBJDUMP+:} false; then :
6519 $as_echo_n "(cached) " >&6
6520 else
6521 if test -n "$OBJDUMP"; then
6522 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6523 else
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 for as_dir in $PATH
6527 IFS=$as_save_IFS
6528 test -z "$as_dir" && as_dir=.
6529 for ac_exec_ext in '' $ac_executable_extensions; do
6530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6531 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6533 break 2
6535 done
6536 done
6537 IFS=$as_save_IFS
6541 OBJDUMP=$ac_cv_prog_OBJDUMP
6542 if test -n "$OBJDUMP"; then
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6544 $as_echo "$OBJDUMP" >&6; }
6545 else
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547 $as_echo "no" >&6; }
6552 if test -z "$ac_cv_prog_OBJDUMP"; then
6553 ac_ct_OBJDUMP=$OBJDUMP
6554 # Extract the first word of "objdump", so it can be a program name with args.
6555 set dummy objdump; ac_word=$2
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6557 $as_echo_n "checking for $ac_word... " >&6; }
6558 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6559 $as_echo_n "(cached) " >&6
6560 else
6561 if test -n "$ac_ct_OBJDUMP"; then
6562 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6563 else
6564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565 for as_dir in $PATH
6567 IFS=$as_save_IFS
6568 test -z "$as_dir" && as_dir=.
6569 for ac_exec_ext in '' $ac_executable_extensions; do
6570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6571 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6573 break 2
6575 done
6576 done
6577 IFS=$as_save_IFS
6581 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6582 if test -n "$ac_ct_OBJDUMP"; then
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6584 $as_echo "$ac_ct_OBJDUMP" >&6; }
6585 else
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6587 $as_echo "no" >&6; }
6590 if test "x$ac_ct_OBJDUMP" = x; then
6591 OBJDUMP="false"
6592 else
6593 case $cross_compiling:$ac_tool_warned in
6594 yes:)
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6597 ac_tool_warned=yes ;;
6598 esac
6599 OBJDUMP=$ac_ct_OBJDUMP
6601 else
6602 OBJDUMP="$ac_cv_prog_OBJDUMP"
6605 test -z "$OBJDUMP" && OBJDUMP=objdump
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6616 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6617 if ${lt_cv_deplibs_check_method+:} false; then :
6618 $as_echo_n "(cached) " >&6
6619 else
6620 lt_cv_file_magic_cmd='$MAGIC_CMD'
6621 lt_cv_file_magic_test_file=
6622 lt_cv_deplibs_check_method='unknown'
6623 # Need to set the preceding variable on all platforms that support
6624 # interlibrary dependencies.
6625 # 'none' -- dependencies not supported.
6626 # `unknown' -- same as none, but documents that we really don't know.
6627 # 'pass_all' -- all dependencies passed with no checks.
6628 # 'test_compile' -- check by making test program.
6629 # 'file_magic [[regex]]' -- check by looking for files in library path
6630 # which responds to the $file_magic_cmd with a given extended regex.
6631 # If you have `file' or equivalent on your system and you're not sure
6632 # whether `pass_all' will *always* work, you probably want this one.
6634 case $host_os in
6635 aix[4-9]*)
6636 lt_cv_deplibs_check_method=pass_all
6639 beos*)
6640 lt_cv_deplibs_check_method=pass_all
6643 bsdi[45]*)
6644 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6645 lt_cv_file_magic_cmd='/usr/bin/file -L'
6646 lt_cv_file_magic_test_file=/shlib/libc.so
6649 cygwin*)
6650 # func_win32_libid is a shell function defined in ltmain.sh
6651 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6652 lt_cv_file_magic_cmd='func_win32_libid'
6655 mingw* | pw32*)
6656 # Base MSYS/MinGW do not provide the 'file' command needed by
6657 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6658 # unless we find 'file', for example because we are cross-compiling.
6659 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6660 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6661 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6662 lt_cv_file_magic_cmd='func_win32_libid'
6663 else
6664 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6665 lt_cv_file_magic_cmd='$OBJDUMP -f'
6669 cegcc*)
6670 # use the weaker test based on 'objdump'. See mingw*.
6671 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6672 lt_cv_file_magic_cmd='$OBJDUMP -f'
6675 darwin* | rhapsody*)
6676 lt_cv_deplibs_check_method=pass_all
6679 freebsd* | dragonfly*)
6680 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6681 case $host_cpu in
6682 i*86 )
6683 # Not sure whether the presence of OpenBSD here was a mistake.
6684 # Let's accept both of them until this is cleared up.
6685 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6686 lt_cv_file_magic_cmd=/usr/bin/file
6687 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6689 esac
6690 else
6691 lt_cv_deplibs_check_method=pass_all
6695 gnu*)
6696 lt_cv_deplibs_check_method=pass_all
6699 haiku*)
6700 lt_cv_deplibs_check_method=pass_all
6703 hpux10.20* | hpux11*)
6704 lt_cv_file_magic_cmd=/usr/bin/file
6705 case $host_cpu in
6706 ia64*)
6707 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6708 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6710 hppa*64*)
6711 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]'
6712 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6715 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6716 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6718 esac
6721 interix[3-9]*)
6722 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6723 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6726 irix5* | irix6* | nonstopux*)
6727 case $LD in
6728 *-32|*"-32 ") libmagic=32-bit;;
6729 *-n32|*"-n32 ") libmagic=N32;;
6730 *-64|*"-64 ") libmagic=64-bit;;
6731 *) libmagic=never-match;;
6732 esac
6733 lt_cv_deplibs_check_method=pass_all
6736 # This must be Linux ELF.
6737 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6738 lt_cv_deplibs_check_method=pass_all
6741 netbsd*)
6742 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6743 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6744 else
6745 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6749 newos6*)
6750 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6751 lt_cv_file_magic_cmd=/usr/bin/file
6752 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6755 *nto* | *qnx*)
6756 lt_cv_deplibs_check_method=pass_all
6759 openbsd*)
6760 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6761 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6762 else
6763 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6767 osf3* | osf4* | osf5*)
6768 lt_cv_deplibs_check_method=pass_all
6771 rdos*)
6772 lt_cv_deplibs_check_method=pass_all
6775 solaris*)
6776 lt_cv_deplibs_check_method=pass_all
6779 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6780 lt_cv_deplibs_check_method=pass_all
6783 sysv4 | sysv4.3*)
6784 case $host_vendor in
6785 motorola)
6786 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]'
6787 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6789 ncr)
6790 lt_cv_deplibs_check_method=pass_all
6792 sequent)
6793 lt_cv_file_magic_cmd='/bin/file'
6794 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6796 sni)
6797 lt_cv_file_magic_cmd='/bin/file'
6798 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6799 lt_cv_file_magic_test_file=/lib/libc.so
6801 siemens)
6802 lt_cv_deplibs_check_method=pass_all
6805 lt_cv_deplibs_check_method=pass_all
6807 esac
6810 tpf*)
6811 lt_cv_deplibs_check_method=pass_all
6813 esac
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6817 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6818 file_magic_cmd=$lt_cv_file_magic_cmd
6819 deplibs_check_method=$lt_cv_deplibs_check_method
6820 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6833 if test -n "$ac_tool_prefix"; then
6834 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6835 set dummy ${ac_tool_prefix}ar; ac_word=$2
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 $as_echo_n "checking for $ac_word... " >&6; }
6838 if ${ac_cv_prog_AR+:} false; then :
6839 $as_echo_n "(cached) " >&6
6840 else
6841 if test -n "$AR"; then
6842 ac_cv_prog_AR="$AR" # Let the user override the test.
6843 else
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 for as_dir in $PATH
6847 IFS=$as_save_IFS
6848 test -z "$as_dir" && as_dir=.
6849 for ac_exec_ext in '' $ac_executable_extensions; do
6850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6851 ac_cv_prog_AR="${ac_tool_prefix}ar"
6852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6853 break 2
6855 done
6856 done
6857 IFS=$as_save_IFS
6861 AR=$ac_cv_prog_AR
6862 if test -n "$AR"; then
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6864 $as_echo "$AR" >&6; }
6865 else
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867 $as_echo "no" >&6; }
6872 if test -z "$ac_cv_prog_AR"; then
6873 ac_ct_AR=$AR
6874 # Extract the first word of "ar", so it can be a program name with args.
6875 set dummy ar; ac_word=$2
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877 $as_echo_n "checking for $ac_word... " >&6; }
6878 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6879 $as_echo_n "(cached) " >&6
6880 else
6881 if test -n "$ac_ct_AR"; then
6882 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6883 else
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 for as_dir in $PATH
6887 IFS=$as_save_IFS
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6891 ac_cv_prog_ac_ct_AR="ar"
6892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 break 2
6895 done
6896 done
6897 IFS=$as_save_IFS
6901 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6902 if test -n "$ac_ct_AR"; then
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6904 $as_echo "$ac_ct_AR" >&6; }
6905 else
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907 $as_echo "no" >&6; }
6910 if test "x$ac_ct_AR" = x; then
6911 AR="false"
6912 else
6913 case $cross_compiling:$ac_tool_warned in
6914 yes:)
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6917 ac_tool_warned=yes ;;
6918 esac
6919 AR=$ac_ct_AR
6921 else
6922 AR="$ac_cv_prog_AR"
6925 test -z "$AR" && AR=ar
6926 test -z "$AR_FLAGS" && AR_FLAGS=cru
6938 if test -n "$ac_tool_prefix"; then
6939 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6940 set dummy ${ac_tool_prefix}strip; ac_word=$2
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942 $as_echo_n "checking for $ac_word... " >&6; }
6943 if ${ac_cv_prog_STRIP+:} false; then :
6944 $as_echo_n "(cached) " >&6
6945 else
6946 if test -n "$STRIP"; then
6947 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6948 else
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 for as_dir in $PATH
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6956 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 break 2
6960 done
6961 done
6962 IFS=$as_save_IFS
6966 STRIP=$ac_cv_prog_STRIP
6967 if test -n "$STRIP"; then
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6969 $as_echo "$STRIP" >&6; }
6970 else
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972 $as_echo "no" >&6; }
6977 if test -z "$ac_cv_prog_STRIP"; then
6978 ac_ct_STRIP=$STRIP
6979 # Extract the first word of "strip", so it can be a program name with args.
6980 set dummy strip; ac_word=$2
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6982 $as_echo_n "checking for $ac_word... " >&6; }
6983 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6984 $as_echo_n "(cached) " >&6
6985 else
6986 if test -n "$ac_ct_STRIP"; then
6987 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6988 else
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 for as_dir in $PATH
6992 IFS=$as_save_IFS
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6996 ac_cv_prog_ac_ct_STRIP="strip"
6997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 break 2
7000 done
7001 done
7002 IFS=$as_save_IFS
7006 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7007 if test -n "$ac_ct_STRIP"; then
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7009 $as_echo "$ac_ct_STRIP" >&6; }
7010 else
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7012 $as_echo "no" >&6; }
7015 if test "x$ac_ct_STRIP" = x; then
7016 STRIP=":"
7017 else
7018 case $cross_compiling:$ac_tool_warned in
7019 yes:)
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7022 ac_tool_warned=yes ;;
7023 esac
7024 STRIP=$ac_ct_STRIP
7026 else
7027 STRIP="$ac_cv_prog_STRIP"
7030 test -z "$STRIP" && STRIP=:
7037 if test -n "$ac_tool_prefix"; then
7038 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7039 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7041 $as_echo_n "checking for $ac_word... " >&6; }
7042 if ${ac_cv_prog_RANLIB+:} false; then :
7043 $as_echo_n "(cached) " >&6
7044 else
7045 if test -n "$RANLIB"; then
7046 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7047 else
7048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 for as_dir in $PATH
7051 IFS=$as_save_IFS
7052 test -z "$as_dir" && as_dir=.
7053 for ac_exec_ext in '' $ac_executable_extensions; do
7054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7055 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7057 break 2
7059 done
7060 done
7061 IFS=$as_save_IFS
7065 RANLIB=$ac_cv_prog_RANLIB
7066 if test -n "$RANLIB"; then
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7068 $as_echo "$RANLIB" >&6; }
7069 else
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7071 $as_echo "no" >&6; }
7076 if test -z "$ac_cv_prog_RANLIB"; then
7077 ac_ct_RANLIB=$RANLIB
7078 # Extract the first word of "ranlib", so it can be a program name with args.
7079 set dummy ranlib; ac_word=$2
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7081 $as_echo_n "checking for $ac_word... " >&6; }
7082 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7083 $as_echo_n "(cached) " >&6
7084 else
7085 if test -n "$ac_ct_RANLIB"; then
7086 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7087 else
7088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089 for as_dir in $PATH
7091 IFS=$as_save_IFS
7092 test -z "$as_dir" && as_dir=.
7093 for ac_exec_ext in '' $ac_executable_extensions; do
7094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7095 ac_cv_prog_ac_ct_RANLIB="ranlib"
7096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7097 break 2
7099 done
7100 done
7101 IFS=$as_save_IFS
7105 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7106 if test -n "$ac_ct_RANLIB"; then
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7108 $as_echo "$ac_ct_RANLIB" >&6; }
7109 else
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111 $as_echo "no" >&6; }
7114 if test "x$ac_ct_RANLIB" = x; then
7115 RANLIB=":"
7116 else
7117 case $cross_compiling:$ac_tool_warned in
7118 yes:)
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7121 ac_tool_warned=yes ;;
7122 esac
7123 RANLIB=$ac_ct_RANLIB
7125 else
7126 RANLIB="$ac_cv_prog_RANLIB"
7129 test -z "$RANLIB" && RANLIB=:
7136 # Determine commands to create old-style static archives.
7137 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7138 old_postinstall_cmds='chmod 644 $oldlib'
7139 old_postuninstall_cmds=
7141 if test -n "$RANLIB"; then
7142 case $host_os in
7143 openbsd*)
7144 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7147 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7149 esac
7150 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7153 case $host_os in
7154 darwin*)
7155 lock_old_archive_extraction=yes ;;
7157 lock_old_archive_extraction=no ;;
7158 esac
7198 # If no C compiler was specified, use CC.
7199 LTCC=${LTCC-"$CC"}
7201 # If no C compiler flags were specified, use CFLAGS.
7202 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7204 # Allow CC to be a program name with arguments.
7205 compiler=$CC
7208 # Check for command to grab the raw symbol name followed by C symbol from nm.
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7210 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7211 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7212 $as_echo_n "(cached) " >&6
7213 else
7215 # These are sane defaults that work on at least a few old systems.
7216 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7218 # Character class describing NM global symbol codes.
7219 symcode='[BCDEGRST]'
7221 # Regexp to match symbols that can be accessed directly from C.
7222 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7224 # Define system-specific variables.
7225 case $host_os in
7226 aix*)
7227 symcode='[BCDT]'
7229 cygwin* | mingw* | pw32* | cegcc*)
7230 symcode='[ABCDGISTW]'
7232 hpux*)
7233 if test "$host_cpu" = ia64; then
7234 symcode='[ABCDEGRST]'
7237 irix* | nonstopux*)
7238 symcode='[BCDEGRST]'
7240 osf*)
7241 symcode='[BCDEGQRST]'
7243 solaris*)
7244 symcode='[BDRT]'
7246 sco3.2v5*)
7247 symcode='[DT]'
7249 sysv4.2uw2*)
7250 symcode='[DT]'
7252 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7253 symcode='[ABDT]'
7255 sysv4)
7256 symcode='[DFNSTU]'
7258 esac
7260 # If we're using GNU nm, then use its standard symbol codes.
7261 case `$NM -V 2>&1` in
7262 *GNU* | *'with BFD'*)
7263 symcode='[ABCDGIRSTW]' ;;
7264 esac
7266 # Transform an extracted symbol line into a proper C declaration.
7267 # Some systems (esp. on ia64) link data and code symbols differently,
7268 # so use this general approach.
7269 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7271 # Transform an extracted symbol line into symbol name and symbol address
7272 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7273 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'"
7275 # Handle CRLF in mingw tool chain
7276 opt_cr=
7277 case $build_os in
7278 mingw*)
7279 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7281 esac
7283 # Try without a prefix underscore, then with it.
7284 for ac_symprfx in "" "_"; do
7286 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7287 symxfrm="\\1 $ac_symprfx\\2 \\2"
7289 # Write the raw and C identifiers.
7290 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7291 # Fake it for dumpbin and say T for any non-static function
7292 # and D for any global variable.
7293 # Also find C++ and __fastcall symbols from MSVC++,
7294 # which start with @ or ?.
7295 lt_cv_sys_global_symbol_pipe="$AWK '"\
7296 " {last_section=section; section=\$ 3};"\
7297 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7298 " \$ 0!~/External *\|/{next};"\
7299 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7300 " {if(hide[section]) next};"\
7301 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7302 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7303 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7304 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7305 " ' prfx=^$ac_symprfx"
7306 else
7307 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7310 # Check to see that the pipe works correctly.
7311 pipe_works=no
7313 rm -f conftest*
7314 cat > conftest.$ac_ext <<_LT_EOF
7315 #ifdef __cplusplus
7316 extern "C" {
7317 #endif
7318 char nm_test_var;
7319 void nm_test_func(void);
7320 void nm_test_func(void){}
7321 #ifdef __cplusplus
7323 #endif
7324 int main(){nm_test_var='a';nm_test_func();return(0);}
7325 _LT_EOF
7327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7328 (eval $ac_compile) 2>&5
7329 ac_status=$?
7330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7331 test $ac_status = 0; }; then
7332 # Now try to grab the symbols.
7333 nlist=conftest.nm
7334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7335 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7336 ac_status=$?
7337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7338 test $ac_status = 0; } && test -s "$nlist"; then
7339 # Try sorting and uniquifying the output.
7340 if sort "$nlist" | uniq > "$nlist"T; then
7341 mv -f "$nlist"T "$nlist"
7342 else
7343 rm -f "$nlist"T
7346 # Make sure that we snagged all the symbols we need.
7347 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7348 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7349 cat <<_LT_EOF > conftest.$ac_ext
7350 #ifdef __cplusplus
7351 extern "C" {
7352 #endif
7354 _LT_EOF
7355 # Now generate the symbol file.
7356 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7358 cat <<_LT_EOF >> conftest.$ac_ext
7360 /* The mapping between symbol names and symbols. */
7361 const struct {
7362 const char *name;
7363 void *address;
7365 lt__PROGRAM__LTX_preloaded_symbols[] =
7367 { "@PROGRAM@", (void *) 0 },
7368 _LT_EOF
7369 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7370 cat <<\_LT_EOF >> conftest.$ac_ext
7371 {0, (void *) 0}
7374 /* This works around a problem in FreeBSD linker */
7375 #ifdef FREEBSD_WORKAROUND
7376 static const void *lt_preloaded_setup() {
7377 return lt__PROGRAM__LTX_preloaded_symbols;
7379 #endif
7381 #ifdef __cplusplus
7383 #endif
7384 _LT_EOF
7385 # Now try linking the two files.
7386 mv conftest.$ac_objext conftstm.$ac_objext
7387 lt_save_LIBS="$LIBS"
7388 lt_save_CFLAGS="$CFLAGS"
7389 LIBS="conftstm.$ac_objext"
7390 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7392 (eval $ac_link) 2>&5
7393 ac_status=$?
7394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7395 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7396 pipe_works=yes
7398 LIBS="$lt_save_LIBS"
7399 CFLAGS="$lt_save_CFLAGS"
7400 else
7401 echo "cannot find nm_test_func in $nlist" >&5
7403 else
7404 echo "cannot find nm_test_var in $nlist" >&5
7406 else
7407 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7409 else
7410 echo "$progname: failed program was:" >&5
7411 cat conftest.$ac_ext >&5
7413 rm -rf conftest* conftst*
7415 # Do not use the global_symbol_pipe unless it works.
7416 if test "$pipe_works" = yes; then
7417 break
7418 else
7419 lt_cv_sys_global_symbol_pipe=
7421 done
7425 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7426 lt_cv_sys_global_symbol_to_cdecl=
7428 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7430 $as_echo "failed" >&6; }
7431 else
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7433 $as_echo "ok" >&6; }
7457 # Check whether --enable-libtool-lock was given.
7458 if test "${enable_libtool_lock+set}" = set; then :
7459 enableval=$enable_libtool_lock;
7462 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7464 # Some flags need to be propagated to the compiler or linker for good
7465 # libtool support.
7466 case $host in
7467 ia64-*-hpux*)
7468 # Find out which ABI we are using.
7469 echo 'int i;' > conftest.$ac_ext
7470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7471 (eval $ac_compile) 2>&5
7472 ac_status=$?
7473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7474 test $ac_status = 0; }; then
7475 case `/usr/bin/file conftest.$ac_objext` in
7476 *ELF-32*)
7477 HPUX_IA64_MODE="32"
7479 *ELF-64*)
7480 HPUX_IA64_MODE="64"
7482 esac
7484 rm -rf conftest*
7486 *-*-irix6*)
7487 # Find out which ABI we are using.
7488 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7490 (eval $ac_compile) 2>&5
7491 ac_status=$?
7492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7493 test $ac_status = 0; }; then
7494 if test "$lt_cv_prog_gnu_ld" = yes; then
7495 case `/usr/bin/file conftest.$ac_objext` in
7496 *32-bit*)
7497 LD="${LD-ld} -melf32bsmip"
7499 *N32*)
7500 LD="${LD-ld} -melf32bmipn32"
7502 *64-bit*)
7503 LD="${LD-ld} -melf64bmip"
7505 esac
7506 else
7507 case `/usr/bin/file conftest.$ac_objext` in
7508 *32-bit*)
7509 LD="${LD-ld} -32"
7511 *N32*)
7512 LD="${LD-ld} -n32"
7514 *64-bit*)
7515 LD="${LD-ld} -64"
7517 esac
7520 rm -rf conftest*
7523 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7524 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7525 # Find out which ABI we are using.
7526 echo 'int i;' > conftest.$ac_ext
7527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7528 (eval $ac_compile) 2>&5
7529 ac_status=$?
7530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7531 test $ac_status = 0; }; then
7532 case `/usr/bin/file conftest.o` in
7533 *32-bit*)
7534 case $host in
7535 x86_64-*kfreebsd*-gnu)
7536 LD="${LD-ld} -m elf_i386_fbsd"
7538 x86_64-*linux*)
7539 case `/usr/bin/file conftest.o` in
7540 *x86-64*)
7541 LD="${LD-ld} -m elf32_x86_64"
7544 LD="${LD-ld} -m elf_i386"
7546 esac
7548 powerpc64le-*linux*)
7549 LD="${LD-ld} -m elf32lppclinux"
7551 powerpc64-*linux*)
7552 LD="${LD-ld} -m elf32ppclinux"
7554 s390x-*linux*)
7555 LD="${LD-ld} -m elf_s390"
7557 sparc64-*linux*)
7558 LD="${LD-ld} -m elf32_sparc"
7560 esac
7562 *64-bit*)
7563 case $host in
7564 x86_64-*kfreebsd*-gnu)
7565 LD="${LD-ld} -m elf_x86_64_fbsd"
7567 x86_64-*linux*)
7568 LD="${LD-ld} -m elf_x86_64"
7570 powerpcle-*linux*)
7571 LD="${LD-ld} -m elf64lppc"
7573 powerpc-*linux*)
7574 LD="${LD-ld} -m elf64ppc"
7576 s390*-*linux*|s390*-*tpf*)
7577 LD="${LD-ld} -m elf64_s390"
7579 sparc*-*linux*)
7580 LD="${LD-ld} -m elf64_sparc"
7582 esac
7584 esac
7586 rm -rf conftest*
7589 *-*-sco3.2v5*)
7590 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7591 SAVE_CFLAGS="$CFLAGS"
7592 CFLAGS="$CFLAGS -belf"
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7594 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7595 if ${lt_cv_cc_needs_belf+:} false; then :
7596 $as_echo_n "(cached) " >&6
7597 else
7598 ac_ext=c
7599 ac_cpp='$CPP $CPPFLAGS'
7600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h. */
7608 main ()
7612 return 0;
7614 _ACEOF
7615 if ac_fn_c_try_link "$LINENO"; then :
7616 lt_cv_cc_needs_belf=yes
7617 else
7618 lt_cv_cc_needs_belf=no
7620 rm -f core conftest.err conftest.$ac_objext \
7621 conftest$ac_exeext conftest.$ac_ext
7622 ac_ext=c
7623 ac_cpp='$CPP $CPPFLAGS'
7624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7630 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7631 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7632 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7633 CFLAGS="$SAVE_CFLAGS"
7636 sparc*-*solaris*)
7637 # Find out which ABI we are using.
7638 echo 'int i;' > conftest.$ac_ext
7639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7640 (eval $ac_compile) 2>&5
7641 ac_status=$?
7642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7643 test $ac_status = 0; }; then
7644 case `/usr/bin/file conftest.o` in
7645 *64-bit*)
7646 case $lt_cv_prog_gnu_ld in
7647 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7649 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7650 LD="${LD-ld} -64"
7653 esac
7655 esac
7657 rm -rf conftest*
7659 esac
7661 need_locks="$enable_libtool_lock"
7664 case $host_os in
7665 rhapsody* | darwin*)
7666 if test -n "$ac_tool_prefix"; then
7667 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7668 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7670 $as_echo_n "checking for $ac_word... " >&6; }
7671 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7672 $as_echo_n "(cached) " >&6
7673 else
7674 if test -n "$DSYMUTIL"; then
7675 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7676 else
7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 for as_dir in $PATH
7680 IFS=$as_save_IFS
7681 test -z "$as_dir" && as_dir=.
7682 for ac_exec_ext in '' $ac_executable_extensions; do
7683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7684 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7686 break 2
7688 done
7689 done
7690 IFS=$as_save_IFS
7694 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7695 if test -n "$DSYMUTIL"; then
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7697 $as_echo "$DSYMUTIL" >&6; }
7698 else
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7700 $as_echo "no" >&6; }
7705 if test -z "$ac_cv_prog_DSYMUTIL"; then
7706 ac_ct_DSYMUTIL=$DSYMUTIL
7707 # Extract the first word of "dsymutil", so it can be a program name with args.
7708 set dummy dsymutil; ac_word=$2
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7710 $as_echo_n "checking for $ac_word... " >&6; }
7711 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7712 $as_echo_n "(cached) " >&6
7713 else
7714 if test -n "$ac_ct_DSYMUTIL"; then
7715 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7716 else
7717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718 for as_dir in $PATH
7720 IFS=$as_save_IFS
7721 test -z "$as_dir" && as_dir=.
7722 for ac_exec_ext in '' $ac_executable_extensions; do
7723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7724 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7726 break 2
7728 done
7729 done
7730 IFS=$as_save_IFS
7734 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7735 if test -n "$ac_ct_DSYMUTIL"; then
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7737 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7738 else
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740 $as_echo "no" >&6; }
7743 if test "x$ac_ct_DSYMUTIL" = x; then
7744 DSYMUTIL=":"
7745 else
7746 case $cross_compiling:$ac_tool_warned in
7747 yes:)
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7750 ac_tool_warned=yes ;;
7751 esac
7752 DSYMUTIL=$ac_ct_DSYMUTIL
7754 else
7755 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7758 if test -n "$ac_tool_prefix"; then
7759 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7760 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762 $as_echo_n "checking for $ac_word... " >&6; }
7763 if ${ac_cv_prog_NMEDIT+:} false; then :
7764 $as_echo_n "(cached) " >&6
7765 else
7766 if test -n "$NMEDIT"; then
7767 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7768 else
7769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770 for as_dir in $PATH
7772 IFS=$as_save_IFS
7773 test -z "$as_dir" && as_dir=.
7774 for ac_exec_ext in '' $ac_executable_extensions; do
7775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7776 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7778 break 2
7780 done
7781 done
7782 IFS=$as_save_IFS
7786 NMEDIT=$ac_cv_prog_NMEDIT
7787 if test -n "$NMEDIT"; then
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7789 $as_echo "$NMEDIT" >&6; }
7790 else
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792 $as_echo "no" >&6; }
7797 if test -z "$ac_cv_prog_NMEDIT"; then
7798 ac_ct_NMEDIT=$NMEDIT
7799 # Extract the first word of "nmedit", so it can be a program name with args.
7800 set dummy nmedit; ac_word=$2
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7802 $as_echo_n "checking for $ac_word... " >&6; }
7803 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7804 $as_echo_n "(cached) " >&6
7805 else
7806 if test -n "$ac_ct_NMEDIT"; then
7807 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7808 else
7809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 for as_dir in $PATH
7812 IFS=$as_save_IFS
7813 test -z "$as_dir" && as_dir=.
7814 for ac_exec_ext in '' $ac_executable_extensions; do
7815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7816 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7818 break 2
7820 done
7821 done
7822 IFS=$as_save_IFS
7826 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7827 if test -n "$ac_ct_NMEDIT"; then
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7829 $as_echo "$ac_ct_NMEDIT" >&6; }
7830 else
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832 $as_echo "no" >&6; }
7835 if test "x$ac_ct_NMEDIT" = x; then
7836 NMEDIT=":"
7837 else
7838 case $cross_compiling:$ac_tool_warned in
7839 yes:)
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7842 ac_tool_warned=yes ;;
7843 esac
7844 NMEDIT=$ac_ct_NMEDIT
7846 else
7847 NMEDIT="$ac_cv_prog_NMEDIT"
7850 if test -n "$ac_tool_prefix"; then
7851 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7852 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7854 $as_echo_n "checking for $ac_word... " >&6; }
7855 if ${ac_cv_prog_LIPO+:} false; then :
7856 $as_echo_n "(cached) " >&6
7857 else
7858 if test -n "$LIPO"; then
7859 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7860 else
7861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862 for as_dir in $PATH
7864 IFS=$as_save_IFS
7865 test -z "$as_dir" && as_dir=.
7866 for ac_exec_ext in '' $ac_executable_extensions; do
7867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7868 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7870 break 2
7872 done
7873 done
7874 IFS=$as_save_IFS
7878 LIPO=$ac_cv_prog_LIPO
7879 if test -n "$LIPO"; then
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7881 $as_echo "$LIPO" >&6; }
7882 else
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884 $as_echo "no" >&6; }
7889 if test -z "$ac_cv_prog_LIPO"; then
7890 ac_ct_LIPO=$LIPO
7891 # Extract the first word of "lipo", so it can be a program name with args.
7892 set dummy lipo; ac_word=$2
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7894 $as_echo_n "checking for $ac_word... " >&6; }
7895 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7896 $as_echo_n "(cached) " >&6
7897 else
7898 if test -n "$ac_ct_LIPO"; then
7899 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7900 else
7901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902 for as_dir in $PATH
7904 IFS=$as_save_IFS
7905 test -z "$as_dir" && as_dir=.
7906 for ac_exec_ext in '' $ac_executable_extensions; do
7907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7908 ac_cv_prog_ac_ct_LIPO="lipo"
7909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7910 break 2
7912 done
7913 done
7914 IFS=$as_save_IFS
7918 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7919 if test -n "$ac_ct_LIPO"; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7921 $as_echo "$ac_ct_LIPO" >&6; }
7922 else
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7924 $as_echo "no" >&6; }
7927 if test "x$ac_ct_LIPO" = x; then
7928 LIPO=":"
7929 else
7930 case $cross_compiling:$ac_tool_warned in
7931 yes:)
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7934 ac_tool_warned=yes ;;
7935 esac
7936 LIPO=$ac_ct_LIPO
7938 else
7939 LIPO="$ac_cv_prog_LIPO"
7942 if test -n "$ac_tool_prefix"; then
7943 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7944 set dummy ${ac_tool_prefix}otool; ac_word=$2
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946 $as_echo_n "checking for $ac_word... " >&6; }
7947 if ${ac_cv_prog_OTOOL+:} false; then :
7948 $as_echo_n "(cached) " >&6
7949 else
7950 if test -n "$OTOOL"; then
7951 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7952 else
7953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954 for as_dir in $PATH
7956 IFS=$as_save_IFS
7957 test -z "$as_dir" && as_dir=.
7958 for ac_exec_ext in '' $ac_executable_extensions; do
7959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7960 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7962 break 2
7964 done
7965 done
7966 IFS=$as_save_IFS
7970 OTOOL=$ac_cv_prog_OTOOL
7971 if test -n "$OTOOL"; then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7973 $as_echo "$OTOOL" >&6; }
7974 else
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7981 if test -z "$ac_cv_prog_OTOOL"; then
7982 ac_ct_OTOOL=$OTOOL
7983 # Extract the first word of "otool", so it can be a program name with args.
7984 set dummy otool; ac_word=$2
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7986 $as_echo_n "checking for $ac_word... " >&6; }
7987 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7988 $as_echo_n "(cached) " >&6
7989 else
7990 if test -n "$ac_ct_OTOOL"; then
7991 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7992 else
7993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994 for as_dir in $PATH
7996 IFS=$as_save_IFS
7997 test -z "$as_dir" && as_dir=.
7998 for ac_exec_ext in '' $ac_executable_extensions; do
7999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8000 ac_cv_prog_ac_ct_OTOOL="otool"
8001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8002 break 2
8004 done
8005 done
8006 IFS=$as_save_IFS
8010 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8011 if test -n "$ac_ct_OTOOL"; then
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8013 $as_echo "$ac_ct_OTOOL" >&6; }
8014 else
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016 $as_echo "no" >&6; }
8019 if test "x$ac_ct_OTOOL" = x; then
8020 OTOOL=":"
8021 else
8022 case $cross_compiling:$ac_tool_warned in
8023 yes:)
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8026 ac_tool_warned=yes ;;
8027 esac
8028 OTOOL=$ac_ct_OTOOL
8030 else
8031 OTOOL="$ac_cv_prog_OTOOL"
8034 if test -n "$ac_tool_prefix"; then
8035 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8036 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8038 $as_echo_n "checking for $ac_word... " >&6; }
8039 if ${ac_cv_prog_OTOOL64+:} false; then :
8040 $as_echo_n "(cached) " >&6
8041 else
8042 if test -n "$OTOOL64"; then
8043 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8044 else
8045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 for as_dir in $PATH
8048 IFS=$as_save_IFS
8049 test -z "$as_dir" && as_dir=.
8050 for ac_exec_ext in '' $ac_executable_extensions; do
8051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8052 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8054 break 2
8056 done
8057 done
8058 IFS=$as_save_IFS
8062 OTOOL64=$ac_cv_prog_OTOOL64
8063 if test -n "$OTOOL64"; then
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8065 $as_echo "$OTOOL64" >&6; }
8066 else
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8068 $as_echo "no" >&6; }
8073 if test -z "$ac_cv_prog_OTOOL64"; then
8074 ac_ct_OTOOL64=$OTOOL64
8075 # Extract the first word of "otool64", so it can be a program name with args.
8076 set dummy otool64; ac_word=$2
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8078 $as_echo_n "checking for $ac_word... " >&6; }
8079 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8080 $as_echo_n "(cached) " >&6
8081 else
8082 if test -n "$ac_ct_OTOOL64"; then
8083 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8084 else
8085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086 for as_dir in $PATH
8088 IFS=$as_save_IFS
8089 test -z "$as_dir" && as_dir=.
8090 for ac_exec_ext in '' $ac_executable_extensions; do
8091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8092 ac_cv_prog_ac_ct_OTOOL64="otool64"
8093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8094 break 2
8096 done
8097 done
8098 IFS=$as_save_IFS
8102 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8103 if test -n "$ac_ct_OTOOL64"; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8105 $as_echo "$ac_ct_OTOOL64" >&6; }
8106 else
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108 $as_echo "no" >&6; }
8111 if test "x$ac_ct_OTOOL64" = x; then
8112 OTOOL64=":"
8113 else
8114 case $cross_compiling:$ac_tool_warned in
8115 yes:)
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8118 ac_tool_warned=yes ;;
8119 esac
8120 OTOOL64=$ac_ct_OTOOL64
8122 else
8123 OTOOL64="$ac_cv_prog_OTOOL64"
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8153 $as_echo_n "checking for -single_module linker flag... " >&6; }
8154 if ${lt_cv_apple_cc_single_mod+:} false; then :
8155 $as_echo_n "(cached) " >&6
8156 else
8157 lt_cv_apple_cc_single_mod=no
8158 if test -z "${LT_MULTI_MODULE}"; then
8159 # By default we will add the -single_module flag. You can override
8160 # by either setting the environment variable LT_MULTI_MODULE
8161 # non-empty at configure time, or by adding -multi_module to the
8162 # link flags.
8163 rm -rf libconftest.dylib*
8164 echo "int foo(void){return 1;}" > conftest.c
8165 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8166 -dynamiclib -Wl,-single_module conftest.c" >&5
8167 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8168 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8169 _lt_result=$?
8170 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8171 lt_cv_apple_cc_single_mod=yes
8172 else
8173 cat conftest.err >&5
8175 rm -rf libconftest.dylib*
8176 rm -f conftest.*
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8180 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8182 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8183 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8184 $as_echo_n "(cached) " >&6
8185 else
8186 lt_cv_ld_exported_symbols_list=no
8187 save_LDFLAGS=$LDFLAGS
8188 echo "_main" > conftest.sym
8189 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8191 /* end confdefs.h. */
8194 main ()
8198 return 0;
8200 _ACEOF
8201 if ac_fn_c_try_link "$LINENO"; then :
8202 lt_cv_ld_exported_symbols_list=yes
8203 else
8204 lt_cv_ld_exported_symbols_list=no
8206 rm -f core conftest.err conftest.$ac_objext \
8207 conftest$ac_exeext conftest.$ac_ext
8208 LDFLAGS="$save_LDFLAGS"
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8212 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8214 $as_echo_n "checking for -force_load linker flag... " >&6; }
8215 if ${lt_cv_ld_force_load+:} false; then :
8216 $as_echo_n "(cached) " >&6
8217 else
8218 lt_cv_ld_force_load=no
8219 cat > conftest.c << _LT_EOF
8220 int forced_loaded() { return 2;}
8221 _LT_EOF
8222 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8223 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8224 echo "$AR cru libconftest.a conftest.o" >&5
8225 $AR cru libconftest.a conftest.o 2>&5
8226 cat > conftest.c << _LT_EOF
8227 int main() { return 0;}
8228 _LT_EOF
8229 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8230 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8231 _lt_result=$?
8232 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8233 lt_cv_ld_force_load=yes
8234 else
8235 cat conftest.err >&5
8237 rm -f conftest.err libconftest.a conftest conftest.c
8238 rm -rf conftest.dSYM
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8242 $as_echo "$lt_cv_ld_force_load" >&6; }
8243 case $host_os in
8244 rhapsody* | darwin1.[012])
8245 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8246 darwin1.*)
8247 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8248 darwin*) # darwin 5.x on
8249 # if running on 10.5 or later, the deployment target defaults
8250 # to the OS version, if on x86, and 10.4, the deployment
8251 # target defaults to 10.4. Don't you love it?
8252 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8253 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8254 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8255 10.[012][,.]*)
8256 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8257 10.*)
8258 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8259 esac
8261 esac
8262 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8263 _lt_dar_single_mod='$single_module'
8265 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8266 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8267 else
8268 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8270 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8271 _lt_dsymutil='~$DSYMUTIL $lib || :'
8272 else
8273 _lt_dsymutil=
8276 esac
8278 for ac_header in dlfcn.h
8279 do :
8280 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8282 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8283 cat >>confdefs.h <<_ACEOF
8284 #define HAVE_DLFCN_H 1
8285 _ACEOF
8289 done
8295 # Set options
8299 enable_dlopen=no
8302 enable_win32_dll=no
8305 # Check whether --enable-shared was given.
8306 if test "${enable_shared+set}" = set; then :
8307 enableval=$enable_shared; p=${PACKAGE-default}
8308 case $enableval in
8309 yes) enable_shared=yes ;;
8310 no) enable_shared=no ;;
8312 enable_shared=no
8313 # Look at the argument we got. We use all the common list separators.
8314 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8315 for pkg in $enableval; do
8316 IFS="$lt_save_ifs"
8317 if test "X$pkg" = "X$p"; then
8318 enable_shared=yes
8320 done
8321 IFS="$lt_save_ifs"
8323 esac
8324 else
8325 enable_shared=yes
8336 # Check whether --enable-static was given.
8337 if test "${enable_static+set}" = set; then :
8338 enableval=$enable_static; p=${PACKAGE-default}
8339 case $enableval in
8340 yes) enable_static=yes ;;
8341 no) enable_static=no ;;
8343 enable_static=no
8344 # Look at the argument we got. We use all the common list separators.
8345 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8346 for pkg in $enableval; do
8347 IFS="$lt_save_ifs"
8348 if test "X$pkg" = "X$p"; then
8349 enable_static=yes
8351 done
8352 IFS="$lt_save_ifs"
8354 esac
8355 else
8356 enable_static=yes
8368 # Check whether --with-pic was given.
8369 if test "${with_pic+set}" = set; then :
8370 withval=$with_pic; pic_mode="$withval"
8371 else
8372 pic_mode=default
8376 test -z "$pic_mode" && pic_mode=default
8384 # Check whether --enable-fast-install was given.
8385 if test "${enable_fast_install+set}" = set; then :
8386 enableval=$enable_fast_install; p=${PACKAGE-default}
8387 case $enableval in
8388 yes) enable_fast_install=yes ;;
8389 no) enable_fast_install=no ;;
8391 enable_fast_install=no
8392 # Look at the argument we got. We use all the common list separators.
8393 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8394 for pkg in $enableval; do
8395 IFS="$lt_save_ifs"
8396 if test "X$pkg" = "X$p"; then
8397 enable_fast_install=yes
8399 done
8400 IFS="$lt_save_ifs"
8402 esac
8403 else
8404 enable_fast_install=yes
8417 # This can be used to rebuild libtool when needed
8418 LIBTOOL_DEPS="$ltmain"
8420 # Always use our own libtool.
8421 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8448 test -z "$LN_S" && LN_S="ln -s"
8463 if test -n "${ZSH_VERSION+set}" ; then
8464 setopt NO_GLOB_SUBST
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8468 $as_echo_n "checking for objdir... " >&6; }
8469 if ${lt_cv_objdir+:} false; then :
8470 $as_echo_n "(cached) " >&6
8471 else
8472 rm -f .libs 2>/dev/null
8473 mkdir .libs 2>/dev/null
8474 if test -d .libs; then
8475 lt_cv_objdir=.libs
8476 else
8477 # MS-DOS does not allow filenames that begin with a dot.
8478 lt_cv_objdir=_libs
8480 rmdir .libs 2>/dev/null
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8483 $as_echo "$lt_cv_objdir" >&6; }
8484 objdir=$lt_cv_objdir
8490 cat >>confdefs.h <<_ACEOF
8491 #define LT_OBJDIR "$lt_cv_objdir/"
8492 _ACEOF
8497 case $host_os in
8498 aix3*)
8499 # AIX sometimes has problems with the GCC collect2 program. For some
8500 # reason, if we set the COLLECT_NAMES environment variable, the problems
8501 # vanish in a puff of smoke.
8502 if test "X${COLLECT_NAMES+set}" != Xset; then
8503 COLLECT_NAMES=
8504 export COLLECT_NAMES
8507 esac
8509 # Global variables:
8510 ofile=libtool
8511 can_build_shared=yes
8513 # All known linkers require a `.a' archive for static linking (except MSVC,
8514 # which needs '.lib').
8515 libext=a
8517 with_gnu_ld="$lt_cv_prog_gnu_ld"
8519 old_CC="$CC"
8520 old_CFLAGS="$CFLAGS"
8522 # Set sane defaults for various variables
8523 test -z "$CC" && CC=cc
8524 test -z "$LTCC" && LTCC=$CC
8525 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8526 test -z "$LD" && LD=ld
8527 test -z "$ac_objext" && ac_objext=o
8529 for cc_temp in $compiler""; do
8530 case $cc_temp in
8531 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8532 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8533 \-*) ;;
8534 *) break;;
8535 esac
8536 done
8537 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8540 # Only perform the check for file, if the check method requires it
8541 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8542 case $deplibs_check_method in
8543 file_magic*)
8544 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8546 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8547 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8548 $as_echo_n "(cached) " >&6
8549 else
8550 case $MAGIC_CMD in
8551 [\\/*] | ?:[\\/]*)
8552 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8555 lt_save_MAGIC_CMD="$MAGIC_CMD"
8556 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8557 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8558 for ac_dir in $ac_dummy; do
8559 IFS="$lt_save_ifs"
8560 test -z "$ac_dir" && ac_dir=.
8561 if test -f $ac_dir/${ac_tool_prefix}file; then
8562 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8563 if test -n "$file_magic_test_file"; then
8564 case $deplibs_check_method in
8565 "file_magic "*)
8566 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8567 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8568 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8569 $EGREP "$file_magic_regex" > /dev/null; then
8571 else
8572 cat <<_LT_EOF 1>&2
8574 *** Warning: the command libtool uses to detect shared libraries,
8575 *** $file_magic_cmd, produces output that libtool cannot recognize.
8576 *** The result is that libtool may fail to recognize shared libraries
8577 *** as such. This will affect the creation of libtool libraries that
8578 *** depend on shared libraries, but programs linked with such libtool
8579 *** libraries will work regardless of this problem. Nevertheless, you
8580 *** may want to report the problem to your system manager and/or to
8581 *** bug-libtool@gnu.org
8583 _LT_EOF
8584 fi ;;
8585 esac
8587 break
8589 done
8590 IFS="$lt_save_ifs"
8591 MAGIC_CMD="$lt_save_MAGIC_CMD"
8593 esac
8596 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8597 if test -n "$MAGIC_CMD"; then
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8599 $as_echo "$MAGIC_CMD" >&6; }
8600 else
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8602 $as_echo "no" >&6; }
8609 if test -z "$lt_cv_path_MAGIC_CMD"; then
8610 if test -n "$ac_tool_prefix"; then
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8612 $as_echo_n "checking for file... " >&6; }
8613 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8614 $as_echo_n "(cached) " >&6
8615 else
8616 case $MAGIC_CMD in
8617 [\\/*] | ?:[\\/]*)
8618 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8621 lt_save_MAGIC_CMD="$MAGIC_CMD"
8622 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8623 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8624 for ac_dir in $ac_dummy; do
8625 IFS="$lt_save_ifs"
8626 test -z "$ac_dir" && ac_dir=.
8627 if test -f $ac_dir/file; then
8628 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8629 if test -n "$file_magic_test_file"; then
8630 case $deplibs_check_method in
8631 "file_magic "*)
8632 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8633 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8634 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8635 $EGREP "$file_magic_regex" > /dev/null; then
8637 else
8638 cat <<_LT_EOF 1>&2
8640 *** Warning: the command libtool uses to detect shared libraries,
8641 *** $file_magic_cmd, produces output that libtool cannot recognize.
8642 *** The result is that libtool may fail to recognize shared libraries
8643 *** as such. This will affect the creation of libtool libraries that
8644 *** depend on shared libraries, but programs linked with such libtool
8645 *** libraries will work regardless of this problem. Nevertheless, you
8646 *** may want to report the problem to your system manager and/or to
8647 *** bug-libtool@gnu.org
8649 _LT_EOF
8650 fi ;;
8651 esac
8653 break
8655 done
8656 IFS="$lt_save_ifs"
8657 MAGIC_CMD="$lt_save_MAGIC_CMD"
8659 esac
8662 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8663 if test -n "$MAGIC_CMD"; then
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8665 $as_echo "$MAGIC_CMD" >&6; }
8666 else
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8668 $as_echo "no" >&6; }
8672 else
8673 MAGIC_CMD=:
8679 esac
8681 # Use C for the default configuration in the libtool script
8683 lt_save_CC="$CC"
8684 ac_ext=c
8685 ac_cpp='$CPP $CPPFLAGS'
8686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8691 # Source file extension for C test sources.
8692 ac_ext=c
8694 # Object file extension for compiled C test sources.
8695 objext=o
8696 objext=$objext
8698 # Code to be used in simple compile tests
8699 lt_simple_compile_test_code="int some_variable = 0;"
8701 # Code to be used in simple link tests
8702 lt_simple_link_test_code='int main(){return(0);}'
8710 # If no C compiler was specified, use CC.
8711 LTCC=${LTCC-"$CC"}
8713 # If no C compiler flags were specified, use CFLAGS.
8714 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8716 # Allow CC to be a program name with arguments.
8717 compiler=$CC
8719 # Save the default compiler, since it gets overwritten when the other
8720 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8721 compiler_DEFAULT=$CC
8723 # save warnings/boilerplate of simple test code
8724 ac_outfile=conftest.$ac_objext
8725 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8726 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8727 _lt_compiler_boilerplate=`cat conftest.err`
8728 $RM conftest*
8730 ac_outfile=conftest.$ac_objext
8731 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8732 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8733 _lt_linker_boilerplate=`cat conftest.err`
8734 $RM -r conftest*
8737 ## CAVEAT EMPTOR:
8738 ## There is no encapsulation within the following macros, do not change
8739 ## the running order or otherwise move them around unless you know exactly
8740 ## what you are doing...
8741 if test -n "$compiler"; then
8743 lt_prog_compiler_no_builtin_flag=
8745 if test "$GCC" = yes; then
8746 case $cc_basename in
8747 nvcc*)
8748 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8750 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8751 esac
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8754 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8755 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8756 $as_echo_n "(cached) " >&6
8757 else
8758 lt_cv_prog_compiler_rtti_exceptions=no
8759 ac_outfile=conftest.$ac_objext
8760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8761 lt_compiler_flag="-fno-rtti -fno-exceptions"
8762 # Insert the option either (1) after the last *FLAGS variable, or
8763 # (2) before a word containing "conftest.", or (3) at the end.
8764 # Note that $ac_compile itself does not contain backslashes and begins
8765 # with a dollar sign (not a hyphen), so the echo should work correctly.
8766 # The option is referenced via a variable to avoid confusing sed.
8767 lt_compile=`echo "$ac_compile" | $SED \
8768 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8769 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8770 -e 's:$: $lt_compiler_flag:'`
8771 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8772 (eval "$lt_compile" 2>conftest.err)
8773 ac_status=$?
8774 cat conftest.err >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 if (exit $ac_status) && test -s "$ac_outfile"; then
8777 # The compiler can only warn and ignore the option if not recognized
8778 # So say no if there are warnings other than the usual output.
8779 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8780 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8781 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8782 lt_cv_prog_compiler_rtti_exceptions=yes
8785 $RM conftest*
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8789 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8791 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8792 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8793 else
8804 lt_prog_compiler_wl=
8805 lt_prog_compiler_pic=
8806 lt_prog_compiler_static=
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8809 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8811 if test "$GCC" = yes; then
8812 lt_prog_compiler_wl='-Wl,'
8813 lt_prog_compiler_static='-static'
8815 case $host_os in
8816 aix*)
8817 # All AIX code is PIC.
8818 if test "$host_cpu" = ia64; then
8819 # AIX 5 now supports IA64 processor
8820 lt_prog_compiler_static='-Bstatic'
8822 lt_prog_compiler_pic='-fPIC'
8825 amigaos*)
8826 case $host_cpu in
8827 powerpc)
8828 # see comment about AmigaOS4 .so support
8829 lt_prog_compiler_pic='-fPIC'
8831 m68k)
8832 # FIXME: we need at least 68020 code to build shared libraries, but
8833 # adding the `-m68020' flag to GCC prevents building anything better,
8834 # like `-m68040'.
8835 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8837 esac
8840 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8841 # PIC is the default for these OSes.
8844 mingw* | cygwin* | pw32* | os2* | cegcc*)
8845 # This hack is so that the source file can tell whether it is being
8846 # built for inclusion in a dll (and should export symbols for example).
8847 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8848 # (--disable-auto-import) libraries
8849 lt_prog_compiler_pic='-DDLL_EXPORT'
8852 darwin* | rhapsody*)
8853 # PIC is the default on this platform
8854 # Common symbols not allowed in MH_DYLIB files
8855 lt_prog_compiler_pic='-fno-common'
8858 haiku*)
8859 # PIC is the default for Haiku.
8860 # The "-static" flag exists, but is broken.
8861 lt_prog_compiler_static=
8864 hpux*)
8865 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8866 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8867 # sets the default TLS model and affects inlining.
8868 case $host_cpu in
8869 hppa*64*)
8870 # +Z the default
8873 lt_prog_compiler_pic='-fPIC'
8875 esac
8878 interix[3-9]*)
8879 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8880 # Instead, we relocate shared libraries at runtime.
8883 msdosdjgpp*)
8884 # Just because we use GCC doesn't mean we suddenly get shared libraries
8885 # on systems that don't support them.
8886 lt_prog_compiler_can_build_shared=no
8887 enable_shared=no
8890 *nto* | *qnx*)
8891 # QNX uses GNU C++, but need to define -shared option too, otherwise
8892 # it will coredump.
8893 lt_prog_compiler_pic='-fPIC -shared'
8896 sysv4*MP*)
8897 if test -d /usr/nec; then
8898 lt_prog_compiler_pic=-Kconform_pic
8903 lt_prog_compiler_pic='-fPIC'
8905 esac
8907 case $cc_basename in
8908 nvcc*) # Cuda Compiler Driver 2.2
8909 lt_prog_compiler_wl='-Xlinker '
8910 lt_prog_compiler_pic='-Xcompiler -fPIC'
8912 esac
8913 else
8914 # PORTME Check for flag to pass linker flags through the system compiler.
8915 case $host_os in
8916 aix*)
8917 lt_prog_compiler_wl='-Wl,'
8918 if test "$host_cpu" = ia64; then
8919 # AIX 5 now supports IA64 processor
8920 lt_prog_compiler_static='-Bstatic'
8921 else
8922 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8926 mingw* | cygwin* | pw32* | os2* | cegcc*)
8927 # This hack is so that the source file can tell whether it is being
8928 # built for inclusion in a dll (and should export symbols for example).
8929 lt_prog_compiler_pic='-DDLL_EXPORT'
8932 hpux9* | hpux10* | hpux11*)
8933 lt_prog_compiler_wl='-Wl,'
8934 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8935 # not for PA HP-UX.
8936 case $host_cpu in
8937 hppa*64*|ia64*)
8938 # +Z the default
8941 lt_prog_compiler_pic='+Z'
8943 esac
8944 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8945 lt_prog_compiler_static='${wl}-a ${wl}archive'
8948 irix5* | irix6* | nonstopux*)
8949 lt_prog_compiler_wl='-Wl,'
8950 # PIC (with -KPIC) is the default.
8951 lt_prog_compiler_static='-non_shared'
8954 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8955 case $cc_basename in
8956 # old Intel for x86_64 which still supported -KPIC.
8957 ecc*)
8958 lt_prog_compiler_wl='-Wl,'
8959 lt_prog_compiler_pic='-KPIC'
8960 lt_prog_compiler_static='-static'
8962 # icc used to be incompatible with GCC.
8963 # ICC 10 doesn't accept -KPIC any more.
8964 icc* | ifort*)
8965 lt_prog_compiler_wl='-Wl,'
8966 lt_prog_compiler_pic='-fPIC'
8967 lt_prog_compiler_static='-static'
8969 # Lahey Fortran 8.1.
8970 lf95*)
8971 lt_prog_compiler_wl='-Wl,'
8972 lt_prog_compiler_pic='--shared'
8973 lt_prog_compiler_static='--static'
8975 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8976 # Portland Group compilers (*not* the Pentium gcc compiler,
8977 # which looks to be a dead project)
8978 lt_prog_compiler_wl='-Wl,'
8979 lt_prog_compiler_pic='-fpic'
8980 lt_prog_compiler_static='-Bstatic'
8982 ccc*)
8983 lt_prog_compiler_wl='-Wl,'
8984 # All Alpha code is PIC.
8985 lt_prog_compiler_static='-non_shared'
8987 xl* | bgxl* | bgf* | mpixl*)
8988 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8989 lt_prog_compiler_wl='-Wl,'
8990 lt_prog_compiler_pic='-qpic'
8991 lt_prog_compiler_static='-qstaticlink'
8994 case `$CC -V 2>&1 | sed 5q` in
8995 *Sun\ F* | *Sun*Fortran*)
8996 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8997 lt_prog_compiler_pic='-KPIC'
8998 lt_prog_compiler_static='-Bstatic'
8999 lt_prog_compiler_wl=''
9001 *Sun\ C*)
9002 # Sun C 5.9
9003 lt_prog_compiler_pic='-KPIC'
9004 lt_prog_compiler_static='-Bstatic'
9005 lt_prog_compiler_wl='-Wl,'
9007 esac
9009 esac
9012 newsos6)
9013 lt_prog_compiler_pic='-KPIC'
9014 lt_prog_compiler_static='-Bstatic'
9017 *nto* | *qnx*)
9018 # QNX uses GNU C++, but need to define -shared option too, otherwise
9019 # it will coredump.
9020 lt_prog_compiler_pic='-fPIC -shared'
9023 osf3* | osf4* | osf5*)
9024 lt_prog_compiler_wl='-Wl,'
9025 # All OSF/1 code is PIC.
9026 lt_prog_compiler_static='-non_shared'
9029 rdos*)
9030 lt_prog_compiler_static='-non_shared'
9033 solaris*)
9034 lt_prog_compiler_pic='-KPIC'
9035 lt_prog_compiler_static='-Bstatic'
9036 case $cc_basename in
9037 f77* | f90* | f95*)
9038 lt_prog_compiler_wl='-Qoption ld ';;
9040 lt_prog_compiler_wl='-Wl,';;
9041 esac
9044 sunos4*)
9045 lt_prog_compiler_wl='-Qoption ld '
9046 lt_prog_compiler_pic='-PIC'
9047 lt_prog_compiler_static='-Bstatic'
9050 sysv4 | sysv4.2uw2* | sysv4.3*)
9051 lt_prog_compiler_wl='-Wl,'
9052 lt_prog_compiler_pic='-KPIC'
9053 lt_prog_compiler_static='-Bstatic'
9056 sysv4*MP*)
9057 if test -d /usr/nec ;then
9058 lt_prog_compiler_pic='-Kconform_pic'
9059 lt_prog_compiler_static='-Bstatic'
9063 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9064 lt_prog_compiler_wl='-Wl,'
9065 lt_prog_compiler_pic='-KPIC'
9066 lt_prog_compiler_static='-Bstatic'
9069 unicos*)
9070 lt_prog_compiler_wl='-Wl,'
9071 lt_prog_compiler_can_build_shared=no
9074 uts4*)
9075 lt_prog_compiler_pic='-pic'
9076 lt_prog_compiler_static='-Bstatic'
9080 lt_prog_compiler_can_build_shared=no
9082 esac
9085 case $host_os in
9086 # For platforms which do not support PIC, -DPIC is meaningless:
9087 *djgpp*)
9088 lt_prog_compiler_pic=
9091 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9093 esac
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9095 $as_echo "$lt_prog_compiler_pic" >&6; }
9103 # Check to make sure the PIC flag actually works.
9105 if test -n "$lt_prog_compiler_pic"; then
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9107 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9108 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9109 $as_echo_n "(cached) " >&6
9110 else
9111 lt_cv_prog_compiler_pic_works=no
9112 ac_outfile=conftest.$ac_objext
9113 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9114 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9115 # Insert the option either (1) after the last *FLAGS variable, or
9116 # (2) before a word containing "conftest.", or (3) at the end.
9117 # Note that $ac_compile itself does not contain backslashes and begins
9118 # with a dollar sign (not a hyphen), so the echo should work correctly.
9119 # The option is referenced via a variable to avoid confusing sed.
9120 lt_compile=`echo "$ac_compile" | $SED \
9121 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9123 -e 's:$: $lt_compiler_flag:'`
9124 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9125 (eval "$lt_compile" 2>conftest.err)
9126 ac_status=$?
9127 cat conftest.err >&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 if (exit $ac_status) && test -s "$ac_outfile"; then
9130 # The compiler can only warn and ignore the option if not recognized
9131 # So say no if there are warnings other than the usual output.
9132 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9133 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9134 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9135 lt_cv_prog_compiler_pic_works=yes
9138 $RM conftest*
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9142 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9144 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9145 case $lt_prog_compiler_pic in
9146 "" | " "*) ;;
9147 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9148 esac
9149 else
9150 lt_prog_compiler_pic=
9151 lt_prog_compiler_can_build_shared=no
9162 # Check to make sure the static flag actually works.
9164 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9166 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9167 if ${lt_cv_prog_compiler_static_works+:} false; then :
9168 $as_echo_n "(cached) " >&6
9169 else
9170 lt_cv_prog_compiler_static_works=no
9171 save_LDFLAGS="$LDFLAGS"
9172 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9173 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9174 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9175 # The linker can only warn and ignore the option if not recognized
9176 # So say no if there are warnings
9177 if test -s conftest.err; then
9178 # Append any errors to the config.log.
9179 cat conftest.err 1>&5
9180 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9181 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9182 if diff conftest.exp conftest.er2 >/dev/null; then
9183 lt_cv_prog_compiler_static_works=yes
9185 else
9186 lt_cv_prog_compiler_static_works=yes
9189 $RM -r conftest*
9190 LDFLAGS="$save_LDFLAGS"
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9194 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9196 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9198 else
9199 lt_prog_compiler_static=
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9209 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9210 if ${lt_cv_prog_compiler_c_o+:} false; then :
9211 $as_echo_n "(cached) " >&6
9212 else
9213 lt_cv_prog_compiler_c_o=no
9214 $RM -r conftest 2>/dev/null
9215 mkdir conftest
9216 cd conftest
9217 mkdir out
9218 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9220 lt_compiler_flag="-o out/conftest2.$ac_objext"
9221 # Insert the option either (1) after the last *FLAGS variable, or
9222 # (2) before a word containing "conftest.", or (3) at the end.
9223 # Note that $ac_compile itself does not contain backslashes and begins
9224 # with a dollar sign (not a hyphen), so the echo should work correctly.
9225 lt_compile=`echo "$ac_compile" | $SED \
9226 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9227 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9228 -e 's:$: $lt_compiler_flag:'`
9229 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9230 (eval "$lt_compile" 2>out/conftest.err)
9231 ac_status=$?
9232 cat out/conftest.err >&5
9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9235 then
9236 # The compiler can only warn and ignore the option if not recognized
9237 # So say no if there are warnings
9238 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9239 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9240 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9241 lt_cv_prog_compiler_c_o=yes
9244 chmod u+w . 2>&5
9245 $RM conftest*
9246 # SGI C++ compiler will create directory out/ii_files/ for
9247 # template instantiation
9248 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9249 $RM out/* && rmdir out
9250 cd ..
9251 $RM -r conftest
9252 $RM conftest*
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9256 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9264 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9265 if ${lt_cv_prog_compiler_c_o+:} false; then :
9266 $as_echo_n "(cached) " >&6
9267 else
9268 lt_cv_prog_compiler_c_o=no
9269 $RM -r conftest 2>/dev/null
9270 mkdir conftest
9271 cd conftest
9272 mkdir out
9273 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9275 lt_compiler_flag="-o out/conftest2.$ac_objext"
9276 # Insert the option either (1) after the last *FLAGS variable, or
9277 # (2) before a word containing "conftest.", or (3) at the end.
9278 # Note that $ac_compile itself does not contain backslashes and begins
9279 # with a dollar sign (not a hyphen), so the echo should work correctly.
9280 lt_compile=`echo "$ac_compile" | $SED \
9281 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9282 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9283 -e 's:$: $lt_compiler_flag:'`
9284 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9285 (eval "$lt_compile" 2>out/conftest.err)
9286 ac_status=$?
9287 cat out/conftest.err >&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9290 then
9291 # The compiler can only warn and ignore the option if not recognized
9292 # So say no if there are warnings
9293 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9294 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9295 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9296 lt_cv_prog_compiler_c_o=yes
9299 chmod u+w . 2>&5
9300 $RM conftest*
9301 # SGI C++ compiler will create directory out/ii_files/ for
9302 # template instantiation
9303 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9304 $RM out/* && rmdir out
9305 cd ..
9306 $RM -r conftest
9307 $RM conftest*
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9311 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9316 hard_links="nottested"
9317 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9318 # do not overwrite the value of need_locks provided by the user
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9320 $as_echo_n "checking if we can lock with hard links... " >&6; }
9321 hard_links=yes
9322 $RM conftest*
9323 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9324 touch conftest.a
9325 ln conftest.a conftest.b 2>&5 || hard_links=no
9326 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9328 $as_echo "$hard_links" >&6; }
9329 if test "$hard_links" = no; then
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9331 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9332 need_locks=warn
9334 else
9335 need_locks=no
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9344 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9346 runpath_var=
9347 allow_undefined_flag=
9348 always_export_symbols=no
9349 archive_cmds=
9350 archive_expsym_cmds=
9351 compiler_needs_object=no
9352 enable_shared_with_static_runtimes=no
9353 export_dynamic_flag_spec=
9354 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9355 hardcode_automatic=no
9356 hardcode_direct=no
9357 hardcode_direct_absolute=no
9358 hardcode_libdir_flag_spec=
9359 hardcode_libdir_flag_spec_ld=
9360 hardcode_libdir_separator=
9361 hardcode_minus_L=no
9362 hardcode_shlibpath_var=unsupported
9363 inherit_rpath=no
9364 link_all_deplibs=unknown
9365 module_cmds=
9366 module_expsym_cmds=
9367 old_archive_from_new_cmds=
9368 old_archive_from_expsyms_cmds=
9369 thread_safe_flag_spec=
9370 whole_archive_flag_spec=
9371 # include_expsyms should be a list of space-separated symbols to be *always*
9372 # included in the symbol list
9373 include_expsyms=
9374 # exclude_expsyms can be an extended regexp of symbols to exclude
9375 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9376 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9377 # as well as any symbol that contains `d'.
9378 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9379 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9380 # platforms (ab)use it in PIC code, but their linkers get confused if
9381 # the symbol is explicitly referenced. Since portable code cannot
9382 # rely on this symbol name, it's probably fine to never include it in
9383 # preloaded symbol tables.
9384 # Exclude shared library initialization/finalization symbols.
9385 extract_expsyms_cmds=
9387 case $host_os in
9388 cygwin* | mingw* | pw32* | cegcc*)
9389 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9390 # When not using gcc, we currently assume that we are using
9391 # Microsoft Visual C++.
9392 if test "$GCC" != yes; then
9393 with_gnu_ld=no
9396 interix*)
9397 # we just hope/assume this is gcc and not c89 (= MSVC++)
9398 with_gnu_ld=yes
9400 openbsd*)
9401 with_gnu_ld=no
9403 esac
9405 ld_shlibs=yes
9407 # On some targets, GNU ld is compatible enough with the native linker
9408 # that we're better off using the native interface for both.
9409 lt_use_gnu_ld_interface=no
9410 if test "$with_gnu_ld" = yes; then
9411 case $host_os in
9412 aix*)
9413 # The AIX port of GNU ld has always aspired to compatibility
9414 # with the native linker. However, as the warning in the GNU ld
9415 # block says, versions before 2.19.5* couldn't really create working
9416 # shared libraries, regardless of the interface used.
9417 case `$LD -v 2>&1` in
9418 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9419 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9420 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9422 lt_use_gnu_ld_interface=yes
9424 esac
9427 lt_use_gnu_ld_interface=yes
9429 esac
9432 if test "$lt_use_gnu_ld_interface" = yes; then
9433 # If archive_cmds runs LD, not CC, wlarc should be empty
9434 wlarc='${wl}'
9436 # Set some defaults for GNU ld with shared library support. These
9437 # are reset later if shared libraries are not supported. Putting them
9438 # here allows them to be overridden if necessary.
9439 runpath_var=LD_RUN_PATH
9440 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9441 export_dynamic_flag_spec='${wl}--export-dynamic'
9442 # ancient GNU ld didn't support --whole-archive et. al.
9443 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9444 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9445 else
9446 whole_archive_flag_spec=
9448 supports_anon_versioning=no
9449 case `$LD -v 2>&1` in
9450 *GNU\ gold*) supports_anon_versioning=yes ;;
9451 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9452 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9453 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9454 *\ 2.11.*) ;; # other 2.11 versions
9455 *) supports_anon_versioning=yes ;;
9456 esac
9458 # See if GNU ld supports shared libraries.
9459 case $host_os in
9460 aix[3-9]*)
9461 # On AIX/PPC, the GNU linker is very broken
9462 if test "$host_cpu" != ia64; then
9463 ld_shlibs=no
9464 cat <<_LT_EOF 1>&2
9466 *** Warning: the GNU linker, at least up to release 2.19, is reported
9467 *** to be unable to reliably create shared libraries on AIX.
9468 *** Therefore, libtool is disabling shared libraries support. If you
9469 *** really care for shared libraries, you may want to install binutils
9470 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9471 *** You will then need to restart the configuration process.
9473 _LT_EOF
9477 amigaos*)
9478 case $host_cpu in
9479 powerpc)
9480 # see comment about AmigaOS4 .so support
9481 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9482 archive_expsym_cmds=''
9484 m68k)
9485 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)'
9486 hardcode_libdir_flag_spec='-L$libdir'
9487 hardcode_minus_L=yes
9489 esac
9492 beos*)
9493 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9494 allow_undefined_flag=unsupported
9495 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9496 # support --undefined. This deserves some investigation. FIXME
9497 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9498 else
9499 ld_shlibs=no
9503 cygwin* | mingw* | pw32* | cegcc*)
9504 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9505 # as there is no search path for DLLs.
9506 hardcode_libdir_flag_spec='-L$libdir'
9507 export_dynamic_flag_spec='${wl}--export-all-symbols'
9508 allow_undefined_flag=unsupported
9509 always_export_symbols=no
9510 enable_shared_with_static_runtimes=yes
9511 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9513 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9514 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9515 # If the export-symbols file already is a .def file (1st line
9516 # is EXPORTS), use it as is; otherwise, prepend...
9517 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9518 cp $export_symbols $output_objdir/$soname.def;
9519 else
9520 echo EXPORTS > $output_objdir/$soname.def;
9521 cat $export_symbols >> $output_objdir/$soname.def;
9523 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9524 else
9525 ld_shlibs=no
9529 haiku*)
9530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9531 link_all_deplibs=yes
9534 interix[3-9]*)
9535 hardcode_direct=no
9536 hardcode_shlibpath_var=no
9537 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9538 export_dynamic_flag_spec='${wl}-E'
9539 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9540 # Instead, shared libraries are loaded at an image base (0x10000000 by
9541 # default) and relocated if they conflict, which is a slow very memory
9542 # consuming and fragmenting process. To avoid this, we pick a random,
9543 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9544 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9545 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9546 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'
9549 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9550 tmp_diet=no
9551 if test "$host_os" = linux-dietlibc; then
9552 case $cc_basename in
9553 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9554 esac
9556 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9557 && test "$tmp_diet" = no
9558 then
9559 tmp_addflag=' $pic_flag'
9560 tmp_sharedflag='-shared'
9561 case $cc_basename,$host_cpu in
9562 pgcc*) # Portland Group C compiler
9563 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'
9564 tmp_addflag=' $pic_flag'
9566 pgf77* | pgf90* | pgf95* | pgfortran*)
9567 # Portland Group f77 and f90 compilers
9568 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'
9569 tmp_addflag=' $pic_flag -Mnomain' ;;
9570 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9571 tmp_addflag=' -i_dynamic' ;;
9572 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9573 tmp_addflag=' -i_dynamic -nofor_main' ;;
9574 ifc* | ifort*) # Intel Fortran compiler
9575 tmp_addflag=' -nofor_main' ;;
9576 lf95*) # Lahey Fortran 8.1
9577 whole_archive_flag_spec=
9578 tmp_sharedflag='--shared' ;;
9579 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9580 tmp_sharedflag='-qmkshrobj'
9581 tmp_addflag= ;;
9582 nvcc*) # Cuda Compiler Driver 2.2
9583 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'
9584 compiler_needs_object=yes
9586 esac
9587 case `$CC -V 2>&1 | sed 5q` in
9588 *Sun\ C*) # Sun C 5.9
9589 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'
9590 compiler_needs_object=yes
9591 tmp_sharedflag='-G' ;;
9592 *Sun\ F*) # Sun Fortran 8.3
9593 tmp_sharedflag='-G' ;;
9594 esac
9595 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9597 if test "x$supports_anon_versioning" = xyes; then
9598 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9599 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9600 echo "local: *; };" >> $output_objdir/$libname.ver~
9601 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9604 case $cc_basename in
9605 xlf* | bgf* | bgxlf* | mpixlf*)
9606 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9607 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9608 hardcode_libdir_flag_spec=
9609 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9610 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9611 if test "x$supports_anon_versioning" = xyes; then
9612 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9613 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9614 echo "local: *; };" >> $output_objdir/$libname.ver~
9615 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9618 esac
9619 else
9620 ld_shlibs=no
9624 netbsd*)
9625 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9626 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9627 wlarc=
9628 else
9629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9630 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9634 solaris*)
9635 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9636 ld_shlibs=no
9637 cat <<_LT_EOF 1>&2
9639 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9640 *** create shared libraries on Solaris systems. Therefore, libtool
9641 *** is disabling shared libraries support. We urge you to upgrade GNU
9642 *** binutils to release 2.9.1 or newer. Another option is to modify
9643 *** your PATH or compiler configuration so that the native linker is
9644 *** used, and then restart.
9646 _LT_EOF
9647 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9649 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9650 else
9651 ld_shlibs=no
9655 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9656 case `$LD -v 2>&1` in
9657 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9658 ld_shlibs=no
9659 cat <<_LT_EOF 1>&2
9661 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9662 *** reliably create shared libraries on SCO systems. Therefore, libtool
9663 *** is disabling shared libraries support. We urge you to upgrade GNU
9664 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9665 *** your PATH or compiler configuration so that the native linker is
9666 *** used, and then restart.
9668 _LT_EOF
9671 # For security reasons, it is highly recommended that you always
9672 # use absolute paths for naming shared libraries, and exclude the
9673 # DT_RUNPATH tag from executables and libraries. But doing so
9674 # requires that you compile everything twice, which is a pain.
9675 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9676 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9678 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9679 else
9680 ld_shlibs=no
9683 esac
9686 sunos4*)
9687 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9688 wlarc=
9689 hardcode_direct=yes
9690 hardcode_shlibpath_var=no
9694 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9695 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9696 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9697 else
9698 ld_shlibs=no
9701 esac
9703 if test "$ld_shlibs" = no; then
9704 runpath_var=
9705 hardcode_libdir_flag_spec=
9706 export_dynamic_flag_spec=
9707 whole_archive_flag_spec=
9709 else
9710 # PORTME fill in a description of your system's linker (not GNU ld)
9711 case $host_os in
9712 aix3*)
9713 allow_undefined_flag=unsupported
9714 always_export_symbols=yes
9715 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'
9716 # Note: this linker hardcodes the directories in LIBPATH if there
9717 # are no directories specified by -L.
9718 hardcode_minus_L=yes
9719 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9720 # Neither direct hardcoding nor static linking is supported with a
9721 # broken collect2.
9722 hardcode_direct=unsupported
9726 aix[4-9]*)
9727 if test "$host_cpu" = ia64; then
9728 # On IA64, the linker does run time linking by default, so we don't
9729 # have to do anything special.
9730 aix_use_runtimelinking=no
9731 exp_sym_flag='-Bexport'
9732 no_entry_flag=""
9733 else
9734 # If we're using GNU nm, then we don't want the "-C" option.
9735 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9736 # Also, AIX nm treats weak defined symbols like other global
9737 # defined symbols, whereas GNU nm marks them as "W".
9738 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9739 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'
9740 else
9741 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'
9743 aix_use_runtimelinking=no
9745 # Test if we are trying to use run time linking or normal
9746 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9747 # need to do runtime linking.
9748 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9749 for ld_flag in $LDFLAGS; do
9750 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9751 aix_use_runtimelinking=yes
9752 break
9754 done
9756 esac
9758 exp_sym_flag='-bexport'
9759 no_entry_flag='-bnoentry'
9762 # When large executables or shared objects are built, AIX ld can
9763 # have problems creating the table of contents. If linking a library
9764 # or program results in "error TOC overflow" add -mminimal-toc to
9765 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9766 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9768 archive_cmds=''
9769 hardcode_direct=yes
9770 hardcode_direct_absolute=yes
9771 hardcode_libdir_separator=':'
9772 link_all_deplibs=yes
9773 file_list_spec='${wl}-f,'
9775 if test "$GCC" = yes; then
9776 case $host_os in aix4.[012]|aix4.[012].*)
9777 # We only want to do this on AIX 4.2 and lower, the check
9778 # below for broken collect2 doesn't work under 4.3+
9779 collect2name=`${CC} -print-prog-name=collect2`
9780 if test -f "$collect2name" &&
9781 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9782 then
9783 # We have reworked collect2
9785 else
9786 # We have old collect2
9787 hardcode_direct=unsupported
9788 # It fails to find uninstalled libraries when the uninstalled
9789 # path is not listed in the libpath. Setting hardcode_minus_L
9790 # to unsupported forces relinking
9791 hardcode_minus_L=yes
9792 hardcode_libdir_flag_spec='-L$libdir'
9793 hardcode_libdir_separator=
9796 esac
9797 shared_flag='-shared'
9798 if test "$aix_use_runtimelinking" = yes; then
9799 shared_flag="$shared_flag "'${wl}-G'
9801 else
9802 # not using gcc
9803 if test "$host_cpu" = ia64; then
9804 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9805 # chokes on -Wl,-G. The following line is correct:
9806 shared_flag='-G'
9807 else
9808 if test "$aix_use_runtimelinking" = yes; then
9809 shared_flag='${wl}-G'
9810 else
9811 shared_flag='${wl}-bM:SRE'
9816 export_dynamic_flag_spec='${wl}-bexpall'
9817 # It seems that -bexpall does not export symbols beginning with
9818 # underscore (_), so it is better to generate a list of symbols to export.
9819 always_export_symbols=yes
9820 if test "$aix_use_runtimelinking" = yes; then
9821 # Warning - without using the other runtime loading flags (-brtl),
9822 # -berok will link without error, but may produce a broken library.
9823 allow_undefined_flag='-berok'
9824 # Determine the default libpath from the value encoded in an
9825 # empty executable.
9826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9827 /* end confdefs.h. */
9830 main ()
9834 return 0;
9836 _ACEOF
9837 if ac_fn_c_try_link "$LINENO"; then :
9839 lt_aix_libpath_sed='
9840 /Import File Strings/,/^$/ {
9841 /^0/ {
9842 s/^0 *\(.*\)$/\1/
9846 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9847 # Check for a 64-bit object if we didn't find anything.
9848 if test -z "$aix_libpath"; then
9849 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9852 rm -f core conftest.err conftest.$ac_objext \
9853 conftest$ac_exeext conftest.$ac_ext
9854 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9856 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9857 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"
9858 else
9859 if test "$host_cpu" = ia64; then
9860 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9861 allow_undefined_flag="-z nodefs"
9862 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"
9863 else
9864 # Determine the default libpath from the value encoded in an
9865 # empty executable.
9866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9867 /* end confdefs.h. */
9870 main ()
9874 return 0;
9876 _ACEOF
9877 if ac_fn_c_try_link "$LINENO"; then :
9879 lt_aix_libpath_sed='
9880 /Import File Strings/,/^$/ {
9881 /^0/ {
9882 s/^0 *\(.*\)$/\1/
9886 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9887 # Check for a 64-bit object if we didn't find anything.
9888 if test -z "$aix_libpath"; then
9889 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9892 rm -f core conftest.err conftest.$ac_objext \
9893 conftest$ac_exeext conftest.$ac_ext
9894 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9896 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9897 # Warning - without using the other run time loading flags,
9898 # -berok will link without error, but may produce a broken library.
9899 no_undefined_flag=' ${wl}-bernotok'
9900 allow_undefined_flag=' ${wl}-berok'
9901 if test "$with_gnu_ld" = yes; then
9902 # We only use this code for GNU lds that support --whole-archive.
9903 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9904 else
9905 # Exported symbols can be pulled into shared objects from archives
9906 whole_archive_flag_spec='$convenience'
9908 archive_cmds_need_lc=yes
9909 # This is similar to how AIX traditionally builds its shared libraries.
9910 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'
9915 amigaos*)
9916 case $host_cpu in
9917 powerpc)
9918 # see comment about AmigaOS4 .so support
9919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9920 archive_expsym_cmds=''
9922 m68k)
9923 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)'
9924 hardcode_libdir_flag_spec='-L$libdir'
9925 hardcode_minus_L=yes
9927 esac
9930 bsdi[45]*)
9931 export_dynamic_flag_spec=-rdynamic
9934 cygwin* | mingw* | pw32* | cegcc*)
9935 # When not using gcc, we currently assume that we are using
9936 # Microsoft Visual C++.
9937 # hardcode_libdir_flag_spec is actually meaningless, as there is
9938 # no search path for DLLs.
9939 hardcode_libdir_flag_spec=' '
9940 allow_undefined_flag=unsupported
9941 # Tell ltmain to make .lib files, not .a files.
9942 libext=lib
9943 # Tell ltmain to make .dll files, not .so files.
9944 shrext_cmds=".dll"
9945 # FIXME: Setting linknames here is a bad hack.
9946 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9947 # The linker will automatically build a .lib file if we build a DLL.
9948 old_archive_from_new_cmds='true'
9949 # FIXME: Should let the user specify the lib program.
9950 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9951 fix_srcfile_path='`cygpath -w "$srcfile"`'
9952 enable_shared_with_static_runtimes=yes
9955 darwin* | rhapsody*)
9958 archive_cmds_need_lc=no
9959 hardcode_direct=no
9960 hardcode_automatic=yes
9961 hardcode_shlibpath_var=unsupported
9962 if test "$lt_cv_ld_force_load" = "yes"; then
9963 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\"`'
9964 else
9965 whole_archive_flag_spec=''
9967 link_all_deplibs=yes
9968 allow_undefined_flag="$_lt_dar_allow_undefined"
9969 case $cc_basename in
9970 ifort*) _lt_dar_can_shared=yes ;;
9971 *) _lt_dar_can_shared=$GCC ;;
9972 esac
9973 if test "$_lt_dar_can_shared" = "yes"; then
9974 output_verbose_link_cmd=func_echo_all
9975 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9976 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9977 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}"
9978 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}"
9980 else
9981 ld_shlibs=no
9986 dgux*)
9987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9988 hardcode_libdir_flag_spec='-L$libdir'
9989 hardcode_shlibpath_var=no
9992 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9993 # support. Future versions do this automatically, but an explicit c++rt0.o
9994 # does not break anything, and helps significantly (at the cost of a little
9995 # extra space).
9996 freebsd2.2*)
9997 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9998 hardcode_libdir_flag_spec='-R$libdir'
9999 hardcode_direct=yes
10000 hardcode_shlibpath_var=no
10003 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10004 freebsd2.*)
10005 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10006 hardcode_direct=yes
10007 hardcode_minus_L=yes
10008 hardcode_shlibpath_var=no
10011 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10012 freebsd* | dragonfly*)
10013 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10014 hardcode_libdir_flag_spec='-R$libdir'
10015 hardcode_direct=yes
10016 hardcode_shlibpath_var=no
10019 hpux9*)
10020 if test "$GCC" = yes; then
10021 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'
10022 else
10023 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'
10025 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10026 hardcode_libdir_separator=:
10027 hardcode_direct=yes
10029 # hardcode_minus_L: Not really in the search PATH,
10030 # but as the default location of the library.
10031 hardcode_minus_L=yes
10032 export_dynamic_flag_spec='${wl}-E'
10035 hpux10*)
10036 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10037 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10038 else
10039 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10041 if test "$with_gnu_ld" = no; then
10042 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10043 hardcode_libdir_flag_spec_ld='+b $libdir'
10044 hardcode_libdir_separator=:
10045 hardcode_direct=yes
10046 hardcode_direct_absolute=yes
10047 export_dynamic_flag_spec='${wl}-E'
10048 # hardcode_minus_L: Not really in the search PATH,
10049 # but as the default location of the library.
10050 hardcode_minus_L=yes
10054 hpux11*)
10055 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10056 case $host_cpu in
10057 hppa*64*)
10058 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10060 ia64*)
10061 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10064 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10066 esac
10067 else
10068 case $host_cpu in
10069 hppa*64*)
10070 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10072 ia64*)
10073 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10077 # Older versions of the 11.00 compiler do not understand -b yet
10078 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10080 $as_echo_n "checking if $CC understands -b... " >&6; }
10081 if ${lt_cv_prog_compiler__b+:} false; then :
10082 $as_echo_n "(cached) " >&6
10083 else
10084 lt_cv_prog_compiler__b=no
10085 save_LDFLAGS="$LDFLAGS"
10086 LDFLAGS="$LDFLAGS -b"
10087 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10088 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10089 # The linker can only warn and ignore the option if not recognized
10090 # So say no if there are warnings
10091 if test -s conftest.err; then
10092 # Append any errors to the config.log.
10093 cat conftest.err 1>&5
10094 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10095 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10096 if diff conftest.exp conftest.er2 >/dev/null; then
10097 lt_cv_prog_compiler__b=yes
10099 else
10100 lt_cv_prog_compiler__b=yes
10103 $RM -r conftest*
10104 LDFLAGS="$save_LDFLAGS"
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10108 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10110 if test x"$lt_cv_prog_compiler__b" = xyes; then
10111 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10112 else
10113 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10117 esac
10119 if test "$with_gnu_ld" = no; then
10120 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10121 hardcode_libdir_separator=:
10123 case $host_cpu in
10124 hppa*64*|ia64*)
10125 hardcode_direct=no
10126 hardcode_shlibpath_var=no
10129 hardcode_direct=yes
10130 hardcode_direct_absolute=yes
10131 export_dynamic_flag_spec='${wl}-E'
10133 # hardcode_minus_L: Not really in the search PATH,
10134 # but as the default location of the library.
10135 hardcode_minus_L=yes
10137 esac
10141 irix5* | irix6* | nonstopux*)
10142 if test "$GCC" = yes; then
10143 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'
10144 # Try to use the -exported_symbol ld option, if it does not
10145 # work, assume that -exports_file does not work either and
10146 # implicitly export all symbols.
10147 save_LDFLAGS="$LDFLAGS"
10148 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10150 /* end confdefs.h. */
10151 int foo(void) {}
10152 _ACEOF
10153 if ac_fn_c_try_link "$LINENO"; then :
10154 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'
10157 rm -f core conftest.err conftest.$ac_objext \
10158 conftest$ac_exeext conftest.$ac_ext
10159 LDFLAGS="$save_LDFLAGS"
10160 else
10161 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'
10162 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'
10164 archive_cmds_need_lc='no'
10165 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10166 hardcode_libdir_separator=:
10167 inherit_rpath=yes
10168 link_all_deplibs=yes
10171 netbsd*)
10172 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10173 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10174 else
10175 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10177 hardcode_libdir_flag_spec='-R$libdir'
10178 hardcode_direct=yes
10179 hardcode_shlibpath_var=no
10182 newsos6)
10183 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10184 hardcode_direct=yes
10185 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10186 hardcode_libdir_separator=:
10187 hardcode_shlibpath_var=no
10190 *nto* | *qnx*)
10193 openbsd*)
10194 if test -f /usr/libexec/ld.so; then
10195 hardcode_direct=yes
10196 hardcode_shlibpath_var=no
10197 hardcode_direct_absolute=yes
10198 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10199 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10200 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10201 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10202 export_dynamic_flag_spec='${wl}-E'
10203 else
10204 case $host_os in
10205 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10206 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10207 hardcode_libdir_flag_spec='-R$libdir'
10210 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10211 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10213 esac
10215 else
10216 ld_shlibs=no
10220 os2*)
10221 hardcode_libdir_flag_spec='-L$libdir'
10222 hardcode_minus_L=yes
10223 allow_undefined_flag=unsupported
10224 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'
10225 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10228 osf3*)
10229 if test "$GCC" = yes; then
10230 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10231 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'
10232 else
10233 allow_undefined_flag=' -expect_unresolved \*'
10234 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'
10236 archive_cmds_need_lc='no'
10237 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10238 hardcode_libdir_separator=:
10241 osf4* | osf5*) # as osf3* with the addition of -msym flag
10242 if test "$GCC" = yes; then
10243 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10244 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'
10245 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10246 else
10247 allow_undefined_flag=' -expect_unresolved \*'
10248 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'
10249 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~
10250 $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'
10252 # Both c and cxx compiler support -rpath directly
10253 hardcode_libdir_flag_spec='-rpath $libdir'
10255 archive_cmds_need_lc='no'
10256 hardcode_libdir_separator=:
10259 solaris*)
10260 no_undefined_flag=' -z defs'
10261 if test "$GCC" = yes; then
10262 wlarc='${wl}'
10263 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10264 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10265 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10266 else
10267 case `$CC -V 2>&1` in
10268 *"Compilers 5.0"*)
10269 wlarc=''
10270 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10271 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10272 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10275 wlarc='${wl}'
10276 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10277 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10278 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10280 esac
10282 hardcode_libdir_flag_spec='-R$libdir'
10283 hardcode_shlibpath_var=no
10284 case $host_os in
10285 solaris2.[0-5] | solaris2.[0-5].*) ;;
10287 # The compiler driver will combine and reorder linker options,
10288 # but understands `-z linker_flag'. GCC discards it without `$wl',
10289 # but is careful enough not to reorder.
10290 # Supported since Solaris 2.6 (maybe 2.5.1?)
10291 if test "$GCC" = yes; then
10292 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10293 else
10294 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10297 esac
10298 link_all_deplibs=yes
10301 sunos4*)
10302 if test "x$host_vendor" = xsequent; then
10303 # Use $CC to link under sequent, because it throws in some extra .o
10304 # files that make .init and .fini sections work.
10305 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10306 else
10307 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10309 hardcode_libdir_flag_spec='-L$libdir'
10310 hardcode_direct=yes
10311 hardcode_minus_L=yes
10312 hardcode_shlibpath_var=no
10315 sysv4)
10316 case $host_vendor in
10317 sni)
10318 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10319 hardcode_direct=yes # is this really true???
10321 siemens)
10322 ## LD is ld it makes a PLAMLIB
10323 ## CC just makes a GrossModule.
10324 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10325 reload_cmds='$CC -r -o $output$reload_objs'
10326 hardcode_direct=no
10328 motorola)
10329 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10330 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10332 esac
10333 runpath_var='LD_RUN_PATH'
10334 hardcode_shlibpath_var=no
10337 sysv4.3*)
10338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10339 hardcode_shlibpath_var=no
10340 export_dynamic_flag_spec='-Bexport'
10343 sysv4*MP*)
10344 if test -d /usr/nec; then
10345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10346 hardcode_shlibpath_var=no
10347 runpath_var=LD_RUN_PATH
10348 hardcode_runpath_var=yes
10349 ld_shlibs=yes
10353 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10354 no_undefined_flag='${wl}-z,text'
10355 archive_cmds_need_lc=no
10356 hardcode_shlibpath_var=no
10357 runpath_var='LD_RUN_PATH'
10359 if test "$GCC" = yes; then
10360 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10361 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10362 else
10363 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10364 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10368 sysv5* | sco3.2v5* | sco5v6*)
10369 # Note: We can NOT use -z defs as we might desire, because we do not
10370 # link with -lc, and that would cause any symbols used from libc to
10371 # always be unresolved, which means just about no library would
10372 # ever link correctly. If we're not using GNU ld we use -z text
10373 # though, which does catch some bad symbols but isn't as heavy-handed
10374 # as -z defs.
10375 no_undefined_flag='${wl}-z,text'
10376 allow_undefined_flag='${wl}-z,nodefs'
10377 archive_cmds_need_lc=no
10378 hardcode_shlibpath_var=no
10379 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10380 hardcode_libdir_separator=':'
10381 link_all_deplibs=yes
10382 export_dynamic_flag_spec='${wl}-Bexport'
10383 runpath_var='LD_RUN_PATH'
10385 if test "$GCC" = yes; then
10386 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10387 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10388 else
10389 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10390 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10394 uts4*)
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
10401 ld_shlibs=no
10403 esac
10405 if test x$host_vendor = xsni; then
10406 case $host in
10407 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10408 export_dynamic_flag_spec='${wl}-Blargedynsym'
10410 esac
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10415 $as_echo "$ld_shlibs" >&6; }
10416 test "$ld_shlibs" = no && can_build_shared=no
10418 with_gnu_ld=$with_gnu_ld
10435 # Do we need to explicitly link libc?
10437 case "x$archive_cmds_need_lc" in
10438 x|xyes)
10439 # Assume -lc should be added
10440 archive_cmds_need_lc=yes
10442 if test "$enable_shared" = yes && test "$GCC" = yes; then
10443 case $archive_cmds in
10444 *'~'*)
10445 # FIXME: we may have to deal with multi-command sequences.
10447 '$CC '*)
10448 # Test whether the compiler implicitly links with -lc since on some
10449 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10450 # to ld, don't add -lc before -lgcc.
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10452 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10453 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10454 $as_echo_n "(cached) " >&6
10455 else
10456 $RM conftest*
10457 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10459 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10460 (eval $ac_compile) 2>&5
10461 ac_status=$?
10462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10463 test $ac_status = 0; } 2>conftest.err; then
10464 soname=conftest
10465 lib=conftest
10466 libobjs=conftest.$ac_objext
10467 deplibs=
10468 wl=$lt_prog_compiler_wl
10469 pic_flag=$lt_prog_compiler_pic
10470 compiler_flags=-v
10471 linker_flags=-v
10472 verstring=
10473 output_objdir=.
10474 libname=conftest
10475 lt_save_allow_undefined_flag=$allow_undefined_flag
10476 allow_undefined_flag=
10477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10478 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10479 ac_status=$?
10480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10481 test $ac_status = 0; }
10482 then
10483 lt_cv_archive_cmds_need_lc=no
10484 else
10485 lt_cv_archive_cmds_need_lc=yes
10487 allow_undefined_flag=$lt_save_allow_undefined_flag
10488 else
10489 cat conftest.err 1>&5
10491 $RM conftest*
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10495 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10496 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10498 esac
10501 esac
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10660 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10662 if test "$GCC" = yes; then
10663 case $host_os in
10664 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10665 *) lt_awk_arg="/^libraries:/" ;;
10666 esac
10667 case $host_os in
10668 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10669 *) lt_sed_strip_eq="s,=/,/,g" ;;
10670 esac
10671 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10672 case $lt_search_path_spec in
10673 *\;*)
10674 # if the path contains ";" then we assume it to be the separator
10675 # otherwise default to the standard path separator (i.e. ":") - it is
10676 # assumed that no part of a normal pathname contains ";" but that should
10677 # okay in the real world where ";" in dirpaths is itself problematic.
10678 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10681 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10683 esac
10684 # Ok, now we have the path, separated by spaces, we can step through it
10685 # and add multilib dir if necessary.
10686 lt_tmp_lt_search_path_spec=
10687 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10688 for lt_sys_path in $lt_search_path_spec; do
10689 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10690 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10691 else
10692 test -d "$lt_sys_path" && \
10693 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10695 done
10696 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10697 BEGIN {RS=" "; FS="/|\n";} {
10698 lt_foo="";
10699 lt_count=0;
10700 for (lt_i = NF; lt_i > 0; lt_i--) {
10701 if ($lt_i != "" && $lt_i != ".") {
10702 if ($lt_i == "..") {
10703 lt_count++;
10704 } else {
10705 if (lt_count == 0) {
10706 lt_foo="/" $lt_i lt_foo;
10707 } else {
10708 lt_count--;
10713 if (lt_foo != "") { lt_freq[lt_foo]++; }
10714 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10716 # AWK program above erroneously prepends '/' to C:/dos/paths
10717 # for these hosts.
10718 case $host_os in
10719 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10720 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10721 esac
10722 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10723 else
10724 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10726 library_names_spec=
10727 libname_spec='lib$name'
10728 soname_spec=
10729 shrext_cmds=".so"
10730 postinstall_cmds=
10731 postuninstall_cmds=
10732 finish_cmds=
10733 finish_eval=
10734 shlibpath_var=
10735 shlibpath_overrides_runpath=unknown
10736 version_type=none
10737 dynamic_linker="$host_os ld.so"
10738 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10739 need_lib_prefix=unknown
10740 hardcode_into_libs=no
10742 # when you set need_version to no, make sure it does not cause -set_version
10743 # flags to be left without arguments
10744 need_version=unknown
10746 case $host_os in
10747 aix3*)
10748 version_type=linux
10749 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10750 shlibpath_var=LIBPATH
10752 # AIX 3 has no versioning support, so we append a major version to the name.
10753 soname_spec='${libname}${release}${shared_ext}$major'
10756 aix[4-9]*)
10757 version_type=linux
10758 need_lib_prefix=no
10759 need_version=no
10760 hardcode_into_libs=yes
10761 if test "$host_cpu" = ia64; then
10762 # AIX 5 supports IA64
10763 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10764 shlibpath_var=LD_LIBRARY_PATH
10765 else
10766 # With GCC up to 2.95.x, collect2 would create an import file
10767 # for dependence libraries. The import file would start with
10768 # the line `#! .'. This would cause the generated library to
10769 # depend on `.', always an invalid library. This was fixed in
10770 # development snapshots of GCC prior to 3.0.
10771 case $host_os in
10772 aix4 | aix4.[01] | aix4.[01].*)
10773 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10774 echo ' yes '
10775 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10777 else
10778 can_build_shared=no
10781 esac
10782 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10783 # soname into executable. Probably we can add versioning support to
10784 # collect2, so additional links can be useful in future.
10785 if test "$aix_use_runtimelinking" = yes; then
10786 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10787 # instead of lib<name>.a to let people know that these are not
10788 # typical AIX shared libraries.
10789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10790 else
10791 # We preserve .a as extension for shared libraries through AIX4.2
10792 # and later when we are not doing run time linking.
10793 library_names_spec='${libname}${release}.a $libname.a'
10794 soname_spec='${libname}${release}${shared_ext}$major'
10796 shlibpath_var=LIBPATH
10800 amigaos*)
10801 case $host_cpu in
10802 powerpc)
10803 # Since July 2007 AmigaOS4 officially supports .so libraries.
10804 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10807 m68k)
10808 library_names_spec='$libname.ixlibrary $libname.a'
10809 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10810 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'
10812 esac
10815 beos*)
10816 library_names_spec='${libname}${shared_ext}'
10817 dynamic_linker="$host_os ld.so"
10818 shlibpath_var=LIBRARY_PATH
10821 bsdi[45]*)
10822 version_type=linux
10823 need_version=no
10824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10825 soname_spec='${libname}${release}${shared_ext}$major'
10826 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10827 shlibpath_var=LD_LIBRARY_PATH
10828 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10829 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10830 # the default ld.so.conf also contains /usr/contrib/lib and
10831 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10832 # libtool to hard-code these into programs
10835 cygwin* | mingw* | pw32* | cegcc*)
10836 version_type=windows
10837 shrext_cmds=".dll"
10838 need_version=no
10839 need_lib_prefix=no
10841 case $GCC,$host_os in
10842 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10843 library_names_spec='$libname.dll.a'
10844 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10845 postinstall_cmds='base_file=`basename \${file}`~
10846 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10847 dldir=$destdir/`dirname \$dlpath`~
10848 test -d \$dldir || mkdir -p \$dldir~
10849 $install_prog $dir/$dlname \$dldir/$dlname~
10850 chmod a+x \$dldir/$dlname~
10851 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10852 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10854 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10855 dlpath=$dir/\$dldll~
10856 $RM \$dlpath'
10857 shlibpath_overrides_runpath=yes
10859 case $host_os in
10860 cygwin*)
10861 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10862 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10864 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10866 mingw* | cegcc*)
10867 # MinGW DLLs use traditional 'lib' prefix
10868 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10870 pw32*)
10871 # pw32 DLLs use 'pw' prefix rather than 'lib'
10872 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10874 esac
10878 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10880 esac
10881 dynamic_linker='Win32 ld.exe'
10882 # FIXME: first we should search . and the directory the executable is in
10883 shlibpath_var=PATH
10886 darwin* | rhapsody*)
10887 dynamic_linker="$host_os dyld"
10888 version_type=darwin
10889 need_lib_prefix=no
10890 need_version=no
10891 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10892 soname_spec='${libname}${release}${major}$shared_ext'
10893 shlibpath_overrides_runpath=yes
10894 shlibpath_var=DYLD_LIBRARY_PATH
10895 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10897 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10898 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10901 dgux*)
10902 version_type=linux
10903 need_lib_prefix=no
10904 need_version=no
10905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10906 soname_spec='${libname}${release}${shared_ext}$major'
10907 shlibpath_var=LD_LIBRARY_PATH
10910 freebsd* | dragonfly*)
10911 # DragonFly does not have aout. When/if they implement a new
10912 # versioning mechanism, adjust this.
10913 if test -x /usr/bin/objformat; then
10914 objformat=`/usr/bin/objformat`
10915 else
10916 case $host_os in
10917 freebsd[23].*) objformat=aout ;;
10918 *) objformat=elf ;;
10919 esac
10921 version_type=freebsd-$objformat
10922 case $version_type in
10923 freebsd-elf*)
10924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10925 need_version=no
10926 need_lib_prefix=no
10928 freebsd-*)
10929 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10930 need_version=yes
10932 esac
10933 shlibpath_var=LD_LIBRARY_PATH
10934 case $host_os in
10935 freebsd2.*)
10936 shlibpath_overrides_runpath=yes
10938 freebsd3.[01]* | freebsdelf3.[01]*)
10939 shlibpath_overrides_runpath=yes
10940 hardcode_into_libs=yes
10942 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10943 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10944 shlibpath_overrides_runpath=no
10945 hardcode_into_libs=yes
10947 *) # from 4.6 on, and DragonFly
10948 shlibpath_overrides_runpath=yes
10949 hardcode_into_libs=yes
10951 esac
10954 gnu*)
10955 version_type=linux
10956 need_lib_prefix=no
10957 need_version=no
10958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10959 soname_spec='${libname}${release}${shared_ext}$major'
10960 shlibpath_var=LD_LIBRARY_PATH
10961 hardcode_into_libs=yes
10964 haiku*)
10965 version_type=linux
10966 need_lib_prefix=no
10967 need_version=no
10968 dynamic_linker="$host_os runtime_loader"
10969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10970 soname_spec='${libname}${release}${shared_ext}$major'
10971 shlibpath_var=LIBRARY_PATH
10972 shlibpath_overrides_runpath=yes
10973 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10974 hardcode_into_libs=yes
10977 hpux9* | hpux10* | hpux11*)
10978 # Give a soname corresponding to the major version so that dld.sl refuses to
10979 # link against other versions.
10980 version_type=sunos
10981 need_lib_prefix=no
10982 need_version=no
10983 case $host_cpu in
10984 ia64*)
10985 shrext_cmds='.so'
10986 hardcode_into_libs=yes
10987 dynamic_linker="$host_os dld.so"
10988 shlibpath_var=LD_LIBRARY_PATH
10989 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10991 soname_spec='${libname}${release}${shared_ext}$major'
10992 if test "X$HPUX_IA64_MODE" = X32; then
10993 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10994 else
10995 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10997 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10999 hppa*64*)
11000 shrext_cmds='.sl'
11001 hardcode_into_libs=yes
11002 dynamic_linker="$host_os dld.sl"
11003 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11004 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11006 soname_spec='${libname}${release}${shared_ext}$major'
11007 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11008 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11011 shrext_cmds='.sl'
11012 dynamic_linker="$host_os dld.sl"
11013 shlibpath_var=SHLIB_PATH
11014 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11016 soname_spec='${libname}${release}${shared_ext}$major'
11018 esac
11019 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11020 postinstall_cmds='chmod 555 $lib'
11021 # or fails outright, so override atomically:
11022 install_override_mode=555
11025 interix[3-9]*)
11026 version_type=linux
11027 need_lib_prefix=no
11028 need_version=no
11029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11030 soname_spec='${libname}${release}${shared_ext}$major'
11031 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11032 shlibpath_var=LD_LIBRARY_PATH
11033 shlibpath_overrides_runpath=no
11034 hardcode_into_libs=yes
11037 irix5* | irix6* | nonstopux*)
11038 case $host_os in
11039 nonstopux*) version_type=nonstopux ;;
11041 if test "$lt_cv_prog_gnu_ld" = yes; then
11042 version_type=linux
11043 else
11044 version_type=irix
11045 fi ;;
11046 esac
11047 need_lib_prefix=no
11048 need_version=no
11049 soname_spec='${libname}${release}${shared_ext}$major'
11050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11051 case $host_os in
11052 irix5* | nonstopux*)
11053 libsuff= shlibsuff=
11056 case $LD in # libtool.m4 will add one of these switches to LD
11057 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11058 libsuff= shlibsuff= libmagic=32-bit;;
11059 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11060 libsuff=32 shlibsuff=N32 libmagic=N32;;
11061 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11062 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11063 *) libsuff= shlibsuff= libmagic=never-match;;
11064 esac
11066 esac
11067 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11068 shlibpath_overrides_runpath=no
11069 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11070 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11071 hardcode_into_libs=yes
11074 # No shared lib support for Linux oldld, aout, or coff.
11075 linux*oldld* | linux*aout* | linux*coff*)
11076 dynamic_linker=no
11079 # This must be Linux ELF.
11081 # uclinux* changes (here and below) have been submitted to the libtool
11082 # project, but have not yet been accepted: they are GCC-local changes
11083 # for the time being. (See
11084 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11085 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
11086 version_type=linux
11087 need_lib_prefix=no
11088 need_version=no
11089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11090 soname_spec='${libname}${release}${shared_ext}$major'
11091 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11092 shlibpath_var=LD_LIBRARY_PATH
11093 shlibpath_overrides_runpath=no
11095 # Some binutils ld are patched to set DT_RUNPATH
11096 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11097 $as_echo_n "(cached) " >&6
11098 else
11099 lt_cv_shlibpath_overrides_runpath=no
11100 save_LDFLAGS=$LDFLAGS
11101 save_libdir=$libdir
11102 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11103 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11105 /* end confdefs.h. */
11108 main ()
11112 return 0;
11114 _ACEOF
11115 if ac_fn_c_try_link "$LINENO"; then :
11116 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11117 lt_cv_shlibpath_overrides_runpath=yes
11120 rm -f core conftest.err conftest.$ac_objext \
11121 conftest$ac_exeext conftest.$ac_ext
11122 LDFLAGS=$save_LDFLAGS
11123 libdir=$save_libdir
11127 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11129 # This implies no fast_install, which is unacceptable.
11130 # Some rework will be needed to allow for fast_install
11131 # before this can be enabled.
11132 hardcode_into_libs=yes
11134 # Append ld.so.conf contents to the search path
11135 if test -f /etc/ld.so.conf; then
11136 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' ' '`
11137 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11140 # We used to test for /lib/ld.so.1 and disable shared libraries on
11141 # powerpc, because MkLinux only supported shared libraries with the
11142 # GNU dynamic linker. Since this was broken with cross compilers,
11143 # most powerpc-linux boxes support dynamic linking these days and
11144 # people can always --disable-shared, the test was removed, and we
11145 # assume the GNU/Linux dynamic linker is in use.
11146 dynamic_linker='GNU/Linux ld.so'
11149 netbsd*)
11150 version_type=sunos
11151 need_lib_prefix=no
11152 need_version=no
11153 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11156 dynamic_linker='NetBSD (a.out) ld.so'
11157 else
11158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11159 soname_spec='${libname}${release}${shared_ext}$major'
11160 dynamic_linker='NetBSD ld.elf_so'
11162 shlibpath_var=LD_LIBRARY_PATH
11163 shlibpath_overrides_runpath=yes
11164 hardcode_into_libs=yes
11167 newsos6)
11168 version_type=linux
11169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11170 shlibpath_var=LD_LIBRARY_PATH
11171 shlibpath_overrides_runpath=yes
11174 *nto* | *qnx*)
11175 version_type=qnx
11176 need_lib_prefix=no
11177 need_version=no
11178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11179 soname_spec='${libname}${release}${shared_ext}$major'
11180 shlibpath_var=LD_LIBRARY_PATH
11181 shlibpath_overrides_runpath=no
11182 hardcode_into_libs=yes
11183 dynamic_linker='ldqnx.so'
11186 openbsd*)
11187 version_type=sunos
11188 sys_lib_dlsearch_path_spec="/usr/lib"
11189 need_lib_prefix=no
11190 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11191 case $host_os in
11192 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11193 *) need_version=no ;;
11194 esac
11195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11196 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11197 shlibpath_var=LD_LIBRARY_PATH
11198 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11199 case $host_os in
11200 openbsd2.[89] | openbsd2.[89].*)
11201 shlibpath_overrides_runpath=no
11204 shlibpath_overrides_runpath=yes
11206 esac
11207 else
11208 shlibpath_overrides_runpath=yes
11212 os2*)
11213 libname_spec='$name'
11214 shrext_cmds=".dll"
11215 need_lib_prefix=no
11216 library_names_spec='$libname${shared_ext} $libname.a'
11217 dynamic_linker='OS/2 ld.exe'
11218 shlibpath_var=LIBPATH
11221 osf3* | osf4* | osf5*)
11222 version_type=osf
11223 need_lib_prefix=no
11224 need_version=no
11225 soname_spec='${libname}${release}${shared_ext}$major'
11226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11227 shlibpath_var=LD_LIBRARY_PATH
11228 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11229 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11232 rdos*)
11233 dynamic_linker=no
11236 solaris*)
11237 version_type=linux
11238 need_lib_prefix=no
11239 need_version=no
11240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11241 soname_spec='${libname}${release}${shared_ext}$major'
11242 shlibpath_var=LD_LIBRARY_PATH
11243 shlibpath_overrides_runpath=yes
11244 hardcode_into_libs=yes
11245 # ldd complains unless libraries are executable
11246 postinstall_cmds='chmod +x $lib'
11249 sunos4*)
11250 version_type=sunos
11251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11252 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11253 shlibpath_var=LD_LIBRARY_PATH
11254 shlibpath_overrides_runpath=yes
11255 if test "$with_gnu_ld" = yes; then
11256 need_lib_prefix=no
11258 need_version=yes
11261 sysv4 | sysv4.3*)
11262 version_type=linux
11263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11264 soname_spec='${libname}${release}${shared_ext}$major'
11265 shlibpath_var=LD_LIBRARY_PATH
11266 case $host_vendor in
11267 sni)
11268 shlibpath_overrides_runpath=no
11269 need_lib_prefix=no
11270 runpath_var=LD_RUN_PATH
11272 siemens)
11273 need_lib_prefix=no
11275 motorola)
11276 need_lib_prefix=no
11277 need_version=no
11278 shlibpath_overrides_runpath=no
11279 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11281 esac
11284 sysv4*MP*)
11285 if test -d /usr/nec ;then
11286 version_type=linux
11287 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11288 soname_spec='$libname${shared_ext}.$major'
11289 shlibpath_var=LD_LIBRARY_PATH
11293 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11294 version_type=freebsd-elf
11295 need_lib_prefix=no
11296 need_version=no
11297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11298 soname_spec='${libname}${release}${shared_ext}$major'
11299 shlibpath_var=LD_LIBRARY_PATH
11300 shlibpath_overrides_runpath=yes
11301 hardcode_into_libs=yes
11302 if test "$with_gnu_ld" = yes; then
11303 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11304 else
11305 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11306 case $host_os in
11307 sco3.2v5*)
11308 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11310 esac
11312 sys_lib_dlsearch_path_spec='/usr/lib'
11315 tpf*)
11316 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11317 version_type=linux
11318 need_lib_prefix=no
11319 need_version=no
11320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11321 shlibpath_var=LD_LIBRARY_PATH
11322 shlibpath_overrides_runpath=no
11323 hardcode_into_libs=yes
11326 uts4*)
11327 version_type=linux
11328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11329 soname_spec='${libname}${release}${shared_ext}$major'
11330 shlibpath_var=LD_LIBRARY_PATH
11334 dynamic_linker=no
11336 esac
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11338 $as_echo "$dynamic_linker" >&6; }
11339 test "$dynamic_linker" = no && can_build_shared=no
11341 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11342 if test "$GCC" = yes; then
11343 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11346 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11347 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11349 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11350 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11445 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11446 hardcode_action=
11447 if test -n "$hardcode_libdir_flag_spec" ||
11448 test -n "$runpath_var" ||
11449 test "X$hardcode_automatic" = "Xyes" ; then
11451 # We can hardcode non-existent directories.
11452 if test "$hardcode_direct" != no &&
11453 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11454 # have to relink, otherwise we might link with an installed library
11455 # when we should be linking with a yet-to-be-installed one
11456 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11457 test "$hardcode_minus_L" != no; then
11458 # Linking always hardcodes the temporary library directory.
11459 hardcode_action=relink
11460 else
11461 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11462 hardcode_action=immediate
11464 else
11465 # We cannot hardcode anything, or else we can only hardcode existing
11466 # directories.
11467 hardcode_action=unsupported
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11470 $as_echo "$hardcode_action" >&6; }
11472 if test "$hardcode_action" = relink ||
11473 test "$inherit_rpath" = yes; then
11474 # Fast installation is not supported
11475 enable_fast_install=no
11476 elif test "$shlibpath_overrides_runpath" = yes ||
11477 test "$enable_shared" = no; then
11478 # Fast installation is not necessary
11479 enable_fast_install=needless
11487 if test "x$enable_dlopen" != xyes; then
11488 enable_dlopen=unknown
11489 enable_dlopen_self=unknown
11490 enable_dlopen_self_static=unknown
11491 else
11492 lt_cv_dlopen=no
11493 lt_cv_dlopen_libs=
11495 case $host_os in
11496 beos*)
11497 lt_cv_dlopen="load_add_on"
11498 lt_cv_dlopen_libs=
11499 lt_cv_dlopen_self=yes
11502 mingw* | pw32* | cegcc*)
11503 lt_cv_dlopen="LoadLibrary"
11504 lt_cv_dlopen_libs=
11507 cygwin*)
11508 lt_cv_dlopen="dlopen"
11509 lt_cv_dlopen_libs=
11512 darwin*)
11513 # if libdl is installed we need to link against it
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11515 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11516 if ${ac_cv_lib_dl_dlopen+:} false; then :
11517 $as_echo_n "(cached) " >&6
11518 else
11519 ac_check_lib_save_LIBS=$LIBS
11520 LIBS="-ldl $LIBS"
11521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11522 /* end confdefs.h. */
11524 /* Override any GCC internal prototype to avoid an error.
11525 Use char because int might match the return type of a GCC
11526 builtin and then its argument prototype would still apply. */
11527 #ifdef __cplusplus
11528 extern "C"
11529 #endif
11530 char dlopen ();
11532 main ()
11534 return dlopen ();
11536 return 0;
11538 _ACEOF
11539 if ac_fn_c_try_link "$LINENO"; then :
11540 ac_cv_lib_dl_dlopen=yes
11541 else
11542 ac_cv_lib_dl_dlopen=no
11544 rm -f core conftest.err conftest.$ac_objext \
11545 conftest$ac_exeext conftest.$ac_ext
11546 LIBS=$ac_check_lib_save_LIBS
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11549 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11550 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11551 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11552 else
11554 lt_cv_dlopen="dyld"
11555 lt_cv_dlopen_libs=
11556 lt_cv_dlopen_self=yes
11563 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11564 if test "x$ac_cv_func_shl_load" = xyes; then :
11565 lt_cv_dlopen="shl_load"
11566 else
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11568 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11569 if ${ac_cv_lib_dld_shl_load+:} false; then :
11570 $as_echo_n "(cached) " >&6
11571 else
11572 ac_check_lib_save_LIBS=$LIBS
11573 LIBS="-ldld $LIBS"
11574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11575 /* end confdefs.h. */
11577 /* Override any GCC internal prototype to avoid an error.
11578 Use char because int might match the return type of a GCC
11579 builtin and then its argument prototype would still apply. */
11580 #ifdef __cplusplus
11581 extern "C"
11582 #endif
11583 char shl_load ();
11585 main ()
11587 return shl_load ();
11589 return 0;
11591 _ACEOF
11592 if ac_fn_c_try_link "$LINENO"; then :
11593 ac_cv_lib_dld_shl_load=yes
11594 else
11595 ac_cv_lib_dld_shl_load=no
11597 rm -f core conftest.err conftest.$ac_objext \
11598 conftest$ac_exeext conftest.$ac_ext
11599 LIBS=$ac_check_lib_save_LIBS
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11602 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11603 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11604 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11605 else
11606 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11607 if test "x$ac_cv_func_dlopen" = xyes; then :
11608 lt_cv_dlopen="dlopen"
11609 else
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11611 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11612 if ${ac_cv_lib_dl_dlopen+:} false; then :
11613 $as_echo_n "(cached) " >&6
11614 else
11615 ac_check_lib_save_LIBS=$LIBS
11616 LIBS="-ldl $LIBS"
11617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11618 /* end confdefs.h. */
11620 /* Override any GCC internal prototype to avoid an error.
11621 Use char because int might match the return type of a GCC
11622 builtin and then its argument prototype would still apply. */
11623 #ifdef __cplusplus
11624 extern "C"
11625 #endif
11626 char dlopen ();
11628 main ()
11630 return dlopen ();
11632 return 0;
11634 _ACEOF
11635 if ac_fn_c_try_link "$LINENO"; then :
11636 ac_cv_lib_dl_dlopen=yes
11637 else
11638 ac_cv_lib_dl_dlopen=no
11640 rm -f core conftest.err conftest.$ac_objext \
11641 conftest$ac_exeext conftest.$ac_ext
11642 LIBS=$ac_check_lib_save_LIBS
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11645 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11646 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11647 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11648 else
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11650 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11651 if ${ac_cv_lib_svld_dlopen+:} false; then :
11652 $as_echo_n "(cached) " >&6
11653 else
11654 ac_check_lib_save_LIBS=$LIBS
11655 LIBS="-lsvld $LIBS"
11656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11657 /* end confdefs.h. */
11659 /* Override any GCC internal prototype to avoid an error.
11660 Use char because int might match the return type of a GCC
11661 builtin and then its argument prototype would still apply. */
11662 #ifdef __cplusplus
11663 extern "C"
11664 #endif
11665 char dlopen ();
11667 main ()
11669 return dlopen ();
11671 return 0;
11673 _ACEOF
11674 if ac_fn_c_try_link "$LINENO"; then :
11675 ac_cv_lib_svld_dlopen=yes
11676 else
11677 ac_cv_lib_svld_dlopen=no
11679 rm -f core conftest.err conftest.$ac_objext \
11680 conftest$ac_exeext conftest.$ac_ext
11681 LIBS=$ac_check_lib_save_LIBS
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11684 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11685 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11686 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11687 else
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11689 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11690 if ${ac_cv_lib_dld_dld_link+:} false; then :
11691 $as_echo_n "(cached) " >&6
11692 else
11693 ac_check_lib_save_LIBS=$LIBS
11694 LIBS="-ldld $LIBS"
11695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11696 /* end confdefs.h. */
11698 /* Override any GCC internal prototype to avoid an error.
11699 Use char because int might match the return type of a GCC
11700 builtin and then its argument prototype would still apply. */
11701 #ifdef __cplusplus
11702 extern "C"
11703 #endif
11704 char dld_link ();
11706 main ()
11708 return dld_link ();
11710 return 0;
11712 _ACEOF
11713 if ac_fn_c_try_link "$LINENO"; then :
11714 ac_cv_lib_dld_dld_link=yes
11715 else
11716 ac_cv_lib_dld_dld_link=no
11718 rm -f core conftest.err conftest.$ac_objext \
11719 conftest$ac_exeext conftest.$ac_ext
11720 LIBS=$ac_check_lib_save_LIBS
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11723 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11724 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11725 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11744 esac
11746 if test "x$lt_cv_dlopen" != xno; then
11747 enable_dlopen=yes
11748 else
11749 enable_dlopen=no
11752 case $lt_cv_dlopen in
11753 dlopen)
11754 save_CPPFLAGS="$CPPFLAGS"
11755 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11757 save_LDFLAGS="$LDFLAGS"
11758 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11760 save_LIBS="$LIBS"
11761 LIBS="$lt_cv_dlopen_libs $LIBS"
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11764 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11765 if ${lt_cv_dlopen_self+:} false; then :
11766 $as_echo_n "(cached) " >&6
11767 else
11768 if test "$cross_compiling" = yes; then :
11769 lt_cv_dlopen_self=cross
11770 else
11771 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11772 lt_status=$lt_dlunknown
11773 cat > conftest.$ac_ext <<_LT_EOF
11774 #line 11774 "configure"
11775 #include "confdefs.h"
11777 #if HAVE_DLFCN_H
11778 #include <dlfcn.h>
11779 #endif
11781 #include <stdio.h>
11783 #ifdef RTLD_GLOBAL
11784 # define LT_DLGLOBAL RTLD_GLOBAL
11785 #else
11786 # ifdef DL_GLOBAL
11787 # define LT_DLGLOBAL DL_GLOBAL
11788 # else
11789 # define LT_DLGLOBAL 0
11790 # endif
11791 #endif
11793 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11794 find out it does not work in some platform. */
11795 #ifndef LT_DLLAZY_OR_NOW
11796 # ifdef RTLD_LAZY
11797 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11798 # else
11799 # ifdef DL_LAZY
11800 # define LT_DLLAZY_OR_NOW DL_LAZY
11801 # else
11802 # ifdef RTLD_NOW
11803 # define LT_DLLAZY_OR_NOW RTLD_NOW
11804 # else
11805 # ifdef DL_NOW
11806 # define LT_DLLAZY_OR_NOW DL_NOW
11807 # else
11808 # define LT_DLLAZY_OR_NOW 0
11809 # endif
11810 # endif
11811 # endif
11812 # endif
11813 #endif
11815 /* When -fvisbility=hidden is used, assume the code has been annotated
11816 correspondingly for the symbols needed. */
11817 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11818 void fnord () __attribute__((visibility("default")));
11819 #endif
11821 void fnord () { int i=42; }
11822 int main ()
11824 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11825 int status = $lt_dlunknown;
11827 if (self)
11829 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11830 else
11832 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11833 else puts (dlerror ());
11835 /* dlclose (self); */
11837 else
11838 puts (dlerror ());
11840 return status;
11842 _LT_EOF
11843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11844 (eval $ac_link) 2>&5
11845 ac_status=$?
11846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11847 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11848 (./conftest; exit; ) >&5 2>/dev/null
11849 lt_status=$?
11850 case x$lt_status in
11851 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11852 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11853 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11854 esac
11855 else :
11856 # compilation failed
11857 lt_cv_dlopen_self=no
11860 rm -fr conftest*
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11865 $as_echo "$lt_cv_dlopen_self" >&6; }
11867 if test "x$lt_cv_dlopen_self" = xyes; then
11868 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11870 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11871 if ${lt_cv_dlopen_self_static+:} false; then :
11872 $as_echo_n "(cached) " >&6
11873 else
11874 if test "$cross_compiling" = yes; then :
11875 lt_cv_dlopen_self_static=cross
11876 else
11877 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11878 lt_status=$lt_dlunknown
11879 cat > conftest.$ac_ext <<_LT_EOF
11880 #line 11880 "configure"
11881 #include "confdefs.h"
11883 #if HAVE_DLFCN_H
11884 #include <dlfcn.h>
11885 #endif
11887 #include <stdio.h>
11889 #ifdef RTLD_GLOBAL
11890 # define LT_DLGLOBAL RTLD_GLOBAL
11891 #else
11892 # ifdef DL_GLOBAL
11893 # define LT_DLGLOBAL DL_GLOBAL
11894 # else
11895 # define LT_DLGLOBAL 0
11896 # endif
11897 #endif
11899 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11900 find out it does not work in some platform. */
11901 #ifndef LT_DLLAZY_OR_NOW
11902 # ifdef RTLD_LAZY
11903 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11904 # else
11905 # ifdef DL_LAZY
11906 # define LT_DLLAZY_OR_NOW DL_LAZY
11907 # else
11908 # ifdef RTLD_NOW
11909 # define LT_DLLAZY_OR_NOW RTLD_NOW
11910 # else
11911 # ifdef DL_NOW
11912 # define LT_DLLAZY_OR_NOW DL_NOW
11913 # else
11914 # define LT_DLLAZY_OR_NOW 0
11915 # endif
11916 # endif
11917 # endif
11918 # endif
11919 #endif
11921 /* When -fvisbility=hidden is used, assume the code has been annotated
11922 correspondingly for the symbols needed. */
11923 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11924 void fnord () __attribute__((visibility("default")));
11925 #endif
11927 void fnord () { int i=42; }
11928 int main ()
11930 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11931 int status = $lt_dlunknown;
11933 if (self)
11935 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11936 else
11938 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11939 else puts (dlerror ());
11941 /* dlclose (self); */
11943 else
11944 puts (dlerror ());
11946 return status;
11948 _LT_EOF
11949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11950 (eval $ac_link) 2>&5
11951 ac_status=$?
11952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11953 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11954 (./conftest; exit; ) >&5 2>/dev/null
11955 lt_status=$?
11956 case x$lt_status in
11957 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11958 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11959 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11960 esac
11961 else :
11962 # compilation failed
11963 lt_cv_dlopen_self_static=no
11966 rm -fr conftest*
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11971 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11974 CPPFLAGS="$save_CPPFLAGS"
11975 LDFLAGS="$save_LDFLAGS"
11976 LIBS="$save_LIBS"
11978 esac
11980 case $lt_cv_dlopen_self in
11981 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11982 *) enable_dlopen_self=unknown ;;
11983 esac
11985 case $lt_cv_dlopen_self_static in
11986 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11987 *) enable_dlopen_self_static=unknown ;;
11988 esac
12007 striplib=
12008 old_striplib=
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12010 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12011 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12012 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12013 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12015 $as_echo "yes" >&6; }
12016 else
12017 # FIXME - insert some real tests, host_os isn't really good enough
12018 case $host_os in
12019 darwin*)
12020 if test -n "$STRIP" ; then
12021 striplib="$STRIP -x"
12022 old_striplib="$STRIP -S"
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12024 $as_echo "yes" >&6; }
12025 else
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12027 $as_echo "no" >&6; }
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12032 $as_echo "no" >&6; }
12034 esac
12048 # Report which library types will actually be built
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12050 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12052 $as_echo "$can_build_shared" >&6; }
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12055 $as_echo_n "checking whether to build shared libraries... " >&6; }
12056 test "$can_build_shared" = "no" && enable_shared=no
12058 # On AIX, shared libraries and static libraries use the same namespace, and
12059 # are all built from PIC.
12060 case $host_os in
12061 aix3*)
12062 test "$enable_shared" = yes && enable_static=no
12063 if test -n "$RANLIB"; then
12064 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12065 postinstall_cmds='$RANLIB $lib'
12069 aix[4-9]*)
12070 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12071 test "$enable_shared" = yes && enable_static=no
12074 esac
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12076 $as_echo "$enable_shared" >&6; }
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12079 $as_echo_n "checking whether to build static libraries... " >&6; }
12080 # Make sure either enable_shared or enable_static is yes.
12081 test "$enable_shared" = yes || enable_static=yes
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12083 $as_echo "$enable_static" >&6; }
12089 ac_ext=c
12090 ac_cpp='$CPP $CPPFLAGS'
12091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12095 CC="$lt_save_CC"
12109 ac_config_commands="$ac_config_commands libtool"
12114 # Only expand once:
12120 case $host in
12121 *-cygwin* | *-mingw*)
12122 # 'host' will be top-level target in the case of a target lib,
12123 # we must compare to with_cross_host to decide if this is a native
12124 # or cross-compiler and select where to install dlls appropriately.
12125 if test -n "$with_cross_host" &&
12126 test x"$with_cross_host" != x"no"; then
12127 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12128 else
12129 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12133 lt_host_flags=
12135 esac
12140 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
12141 case $ac_cv_c_int64_t in #(
12142 no|yes) ;; #(
12145 cat >>confdefs.h <<_ACEOF
12146 #define int64_t $ac_cv_c_int64_t
12147 _ACEOF
12149 esac
12151 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
12152 case $ac_cv_c_uint64_t in #(
12153 no|yes) ;; #(
12156 $as_echo "#define _UINT64_T 1" >>confdefs.h
12159 cat >>confdefs.h <<_ACEOF
12160 #define uint64_t $ac_cv_c_uint64_t
12161 _ACEOF
12163 esac
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12166 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12167 if ${ac_cv_header_sys_wait_h+:} false; then :
12168 $as_echo_n "(cached) " >&6
12169 else
12170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12171 /* end confdefs.h. */
12172 #include <sys/types.h>
12173 #include <sys/wait.h>
12174 #ifndef WEXITSTATUS
12175 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12176 #endif
12177 #ifndef WIFEXITED
12178 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12179 #endif
12182 main ()
12184 int s;
12185 wait (&s);
12186 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12188 return 0;
12190 _ACEOF
12191 if ac_fn_c_try_compile "$LINENO"; then :
12192 ac_cv_header_sys_wait_h=yes
12193 else
12194 ac_cv_header_sys_wait_h=no
12196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12199 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12200 if test $ac_cv_header_sys_wait_h = yes; then
12202 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12206 ac_config_files="$ac_config_files Makefile"
12208 ac_config_headers="$ac_config_headers config.h"
12210 cat >confcache <<\_ACEOF
12211 # This file is a shell script that caches the results of configure
12212 # tests run on this system so they can be shared between configure
12213 # scripts and configure runs, see configure's option --config-cache.
12214 # It is not useful on other systems. If it contains results you don't
12215 # want to keep, you may remove or edit it.
12217 # config.status only pays attention to the cache file if you give it
12218 # the --recheck option to rerun configure.
12220 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12221 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12222 # following values.
12224 _ACEOF
12226 # The following way of writing the cache mishandles newlines in values,
12227 # but we know of no workaround that is simple, portable, and efficient.
12228 # So, we kill variables containing newlines.
12229 # Ultrix sh set writes to stderr and can't be redirected directly,
12230 # and sets the high bit in the cache file unless we assign to the vars.
12232 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12233 eval ac_val=\$$ac_var
12234 case $ac_val in #(
12235 *${as_nl}*)
12236 case $ac_var in #(
12237 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12238 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12239 esac
12240 case $ac_var in #(
12241 _ | IFS | as_nl) ;; #(
12242 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12243 *) { eval $ac_var=; unset $ac_var;} ;;
12244 esac ;;
12245 esac
12246 done
12248 (set) 2>&1 |
12249 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12250 *${as_nl}ac_space=\ *)
12251 # `set' does not quote correctly, so add quotes: double-quote
12252 # substitution turns \\\\ into \\, and sed turns \\ into \.
12253 sed -n \
12254 "s/'/'\\\\''/g;
12255 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12256 ;; #(
12258 # `set' quotes correctly as required by POSIX, so do not add quotes.
12259 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12261 esac |
12262 sort
12264 sed '
12265 /^ac_cv_env_/b end
12266 t clear
12267 :clear
12268 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12269 t end
12270 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12271 :end' >>confcache
12272 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12273 if test -w "$cache_file"; then
12274 if test "x$cache_file" != "x/dev/null"; then
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12276 $as_echo "$as_me: updating cache $cache_file" >&6;}
12277 if test ! -f "$cache_file" || test -h "$cache_file"; then
12278 cat confcache >"$cache_file"
12279 else
12280 case $cache_file in #(
12281 */* | ?:*)
12282 mv -f confcache "$cache_file"$$ &&
12283 mv -f "$cache_file"$$ "$cache_file" ;; #(
12285 mv -f confcache "$cache_file" ;;
12286 esac
12289 else
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12291 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12294 rm -f confcache
12296 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12297 # Let make expand exec_prefix.
12298 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12300 DEFS=-DHAVE_CONFIG_H
12302 ac_libobjs=
12303 ac_ltlibobjs=
12305 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12306 # 1. Remove the extension, and $U if already installed.
12307 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12308 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12309 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12310 # will be set to the directory where LIBOBJS objects are built.
12311 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12312 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12313 done
12314 LIBOBJS=$ac_libobjs
12316 LTLIBOBJS=$ac_ltlibobjs
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12320 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12321 if test -n "$am_sleep_pid"; then
12322 # Hide warnings about reused PIDs.
12323 wait $am_sleep_pid 2>/dev/null
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12326 $as_echo "done" >&6; }
12327 if test -n "$EXEEXT"; then
12328 am__EXEEXT_TRUE=
12329 am__EXEEXT_FALSE='#'
12330 else
12331 am__EXEEXT_TRUE='#'
12332 am__EXEEXT_FALSE=
12335 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12336 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12339 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12340 as_fn_error $? "conditional \"AMDEP\" was never defined.
12341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12343 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12344 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12347 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12348 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12352 : "${CONFIG_STATUS=./config.status}"
12353 ac_write_fail=0
12354 ac_clean_files_save=$ac_clean_files
12355 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12357 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12358 as_write_fail=0
12359 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12360 #! $SHELL
12361 # Generated by $as_me.
12362 # Run this file to recreate the current configuration.
12363 # Compiler output produced by configure, useful for debugging
12364 # configure, is in config.log if it exists.
12366 debug=false
12367 ac_cs_recheck=false
12368 ac_cs_silent=false
12370 SHELL=\${CONFIG_SHELL-$SHELL}
12371 export SHELL
12372 _ASEOF
12373 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12374 ## -------------------- ##
12375 ## M4sh Initialization. ##
12376 ## -------------------- ##
12378 # Be more Bourne compatible
12379 DUALCASE=1; export DUALCASE # for MKS sh
12380 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12381 emulate sh
12382 NULLCMD=:
12383 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12384 # is contrary to our usage. Disable this feature.
12385 alias -g '${1+"$@"}'='"$@"'
12386 setopt NO_GLOB_SUBST
12387 else
12388 case `(set -o) 2>/dev/null` in #(
12389 *posix*) :
12390 set -o posix ;; #(
12391 *) :
12393 esac
12397 as_nl='
12399 export as_nl
12400 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12401 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12402 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12403 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12404 # Prefer a ksh shell builtin over an external printf program on Solaris,
12405 # but without wasting forks for bash or zsh.
12406 if test -z "$BASH_VERSION$ZSH_VERSION" \
12407 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12408 as_echo='print -r --'
12409 as_echo_n='print -rn --'
12410 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12411 as_echo='printf %s\n'
12412 as_echo_n='printf %s'
12413 else
12414 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12415 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12416 as_echo_n='/usr/ucb/echo -n'
12417 else
12418 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12419 as_echo_n_body='eval
12420 arg=$1;
12421 case $arg in #(
12422 *"$as_nl"*)
12423 expr "X$arg" : "X\\(.*\\)$as_nl";
12424 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12425 esac;
12426 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12428 export as_echo_n_body
12429 as_echo_n='sh -c $as_echo_n_body as_echo'
12431 export as_echo_body
12432 as_echo='sh -c $as_echo_body as_echo'
12435 # The user is always right.
12436 if test "${PATH_SEPARATOR+set}" != set; then
12437 PATH_SEPARATOR=:
12438 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12439 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12440 PATH_SEPARATOR=';'
12445 # IFS
12446 # We need space, tab and new line, in precisely that order. Quoting is
12447 # there to prevent editors from complaining about space-tab.
12448 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12449 # splitting by setting IFS to empty value.)
12450 IFS=" "" $as_nl"
12452 # Find who we are. Look in the path if we contain no directory separator.
12453 as_myself=
12454 case $0 in #((
12455 *[\\/]* ) as_myself=$0 ;;
12456 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12457 for as_dir in $PATH
12459 IFS=$as_save_IFS
12460 test -z "$as_dir" && as_dir=.
12461 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12462 done
12463 IFS=$as_save_IFS
12466 esac
12467 # We did not find ourselves, most probably we were run as `sh COMMAND'
12468 # in which case we are not to be found in the path.
12469 if test "x$as_myself" = x; then
12470 as_myself=$0
12472 if test ! -f "$as_myself"; then
12473 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12474 exit 1
12477 # Unset variables that we do not need and which cause bugs (e.g. in
12478 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12479 # suppresses any "Segmentation fault" message there. '((' could
12480 # trigger a bug in pdksh 5.2.14.
12481 for as_var in BASH_ENV ENV MAIL MAILPATH
12482 do eval test x\${$as_var+set} = xset \
12483 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12484 done
12485 PS1='$ '
12486 PS2='> '
12487 PS4='+ '
12489 # NLS nuisances.
12490 LC_ALL=C
12491 export LC_ALL
12492 LANGUAGE=C
12493 export LANGUAGE
12495 # CDPATH.
12496 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12499 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12500 # ----------------------------------------
12501 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12502 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12503 # script with STATUS, using 1 if that was 0.
12504 as_fn_error ()
12506 as_status=$1; test $as_status -eq 0 && as_status=1
12507 if test "$4"; then
12508 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12509 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12511 $as_echo "$as_me: error: $2" >&2
12512 as_fn_exit $as_status
12513 } # as_fn_error
12516 # as_fn_set_status STATUS
12517 # -----------------------
12518 # Set $? to STATUS, without forking.
12519 as_fn_set_status ()
12521 return $1
12522 } # as_fn_set_status
12524 # as_fn_exit STATUS
12525 # -----------------
12526 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12527 as_fn_exit ()
12529 set +e
12530 as_fn_set_status $1
12531 exit $1
12532 } # as_fn_exit
12534 # as_fn_unset VAR
12535 # ---------------
12536 # Portably unset VAR.
12537 as_fn_unset ()
12539 { eval $1=; unset $1;}
12541 as_unset=as_fn_unset
12542 # as_fn_append VAR VALUE
12543 # ----------------------
12544 # Append the text in VALUE to the end of the definition contained in VAR. Take
12545 # advantage of any shell optimizations that allow amortized linear growth over
12546 # repeated appends, instead of the typical quadratic growth present in naive
12547 # implementations.
12548 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12549 eval 'as_fn_append ()
12551 eval $1+=\$2
12553 else
12554 as_fn_append ()
12556 eval $1=\$$1\$2
12558 fi # as_fn_append
12560 # as_fn_arith ARG...
12561 # ------------------
12562 # Perform arithmetic evaluation on the ARGs, and store the result in the
12563 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12564 # must be portable across $(()) and expr.
12565 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12566 eval 'as_fn_arith ()
12568 as_val=$(( $* ))
12570 else
12571 as_fn_arith ()
12573 as_val=`expr "$@" || test $? -eq 1`
12575 fi # as_fn_arith
12578 if expr a : '\(a\)' >/dev/null 2>&1 &&
12579 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12580 as_expr=expr
12581 else
12582 as_expr=false
12585 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12586 as_basename=basename
12587 else
12588 as_basename=false
12591 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12592 as_dirname=dirname
12593 else
12594 as_dirname=false
12597 as_me=`$as_basename -- "$0" ||
12598 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12599 X"$0" : 'X\(//\)$' \| \
12600 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12601 $as_echo X/"$0" |
12602 sed '/^.*\/\([^/][^/]*\)\/*$/{
12603 s//\1/
12606 /^X\/\(\/\/\)$/{
12607 s//\1/
12610 /^X\/\(\/\).*/{
12611 s//\1/
12614 s/.*/./; q'`
12616 # Avoid depending upon Character Ranges.
12617 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12618 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12619 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12620 as_cr_digits='0123456789'
12621 as_cr_alnum=$as_cr_Letters$as_cr_digits
12623 ECHO_C= ECHO_N= ECHO_T=
12624 case `echo -n x` in #(((((
12625 -n*)
12626 case `echo 'xy\c'` in
12627 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12628 xy) ECHO_C='\c';;
12629 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12630 ECHO_T=' ';;
12631 esac;;
12633 ECHO_N='-n';;
12634 esac
12636 rm -f conf$$ conf$$.exe conf$$.file
12637 if test -d conf$$.dir; then
12638 rm -f conf$$.dir/conf$$.file
12639 else
12640 rm -f conf$$.dir
12641 mkdir conf$$.dir 2>/dev/null
12643 if (echo >conf$$.file) 2>/dev/null; then
12644 if ln -s conf$$.file conf$$ 2>/dev/null; then
12645 as_ln_s='ln -s'
12646 # ... but there are two gotchas:
12647 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12648 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12649 # In both cases, we have to default to `cp -pR'.
12650 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12651 as_ln_s='cp -pR'
12652 elif ln conf$$.file conf$$ 2>/dev/null; then
12653 as_ln_s=ln
12654 else
12655 as_ln_s='cp -pR'
12657 else
12658 as_ln_s='cp -pR'
12660 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12661 rmdir conf$$.dir 2>/dev/null
12664 # as_fn_mkdir_p
12665 # -------------
12666 # Create "$as_dir" as a directory, including parents if necessary.
12667 as_fn_mkdir_p ()
12670 case $as_dir in #(
12671 -*) as_dir=./$as_dir;;
12672 esac
12673 test -d "$as_dir" || eval $as_mkdir_p || {
12674 as_dirs=
12675 while :; do
12676 case $as_dir in #(
12677 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12678 *) as_qdir=$as_dir;;
12679 esac
12680 as_dirs="'$as_qdir' $as_dirs"
12681 as_dir=`$as_dirname -- "$as_dir" ||
12682 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12683 X"$as_dir" : 'X\(//\)[^/]' \| \
12684 X"$as_dir" : 'X\(//\)$' \| \
12685 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12686 $as_echo X"$as_dir" |
12687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12688 s//\1/
12691 /^X\(\/\/\)[^/].*/{
12692 s//\1/
12695 /^X\(\/\/\)$/{
12696 s//\1/
12699 /^X\(\/\).*/{
12700 s//\1/
12703 s/.*/./; q'`
12704 test -d "$as_dir" && break
12705 done
12706 test -z "$as_dirs" || eval "mkdir $as_dirs"
12707 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12710 } # as_fn_mkdir_p
12711 if mkdir -p . 2>/dev/null; then
12712 as_mkdir_p='mkdir -p "$as_dir"'
12713 else
12714 test -d ./-p && rmdir ./-p
12715 as_mkdir_p=false
12719 # as_fn_executable_p FILE
12720 # -----------------------
12721 # Test if FILE is an executable regular file.
12722 as_fn_executable_p ()
12724 test -f "$1" && test -x "$1"
12725 } # as_fn_executable_p
12726 as_test_x='test -x'
12727 as_executable_p=as_fn_executable_p
12729 # Sed expression to map a string onto a valid CPP name.
12730 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12732 # Sed expression to map a string onto a valid variable name.
12733 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12736 exec 6>&1
12737 ## ----------------------------------- ##
12738 ## Main body of $CONFIG_STATUS script. ##
12739 ## ----------------------------------- ##
12740 _ASEOF
12741 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12744 # Save the log message, to keep $0 and so on meaningful, and to
12745 # report actual input values of CONFIG_FILES etc. instead of their
12746 # values after options handling.
12747 ac_log="
12748 This file was extended by LTO plugin for ld $as_me 0.1, which was
12749 generated by GNU Autoconf 2.69. Invocation command line was
12751 CONFIG_FILES = $CONFIG_FILES
12752 CONFIG_HEADERS = $CONFIG_HEADERS
12753 CONFIG_LINKS = $CONFIG_LINKS
12754 CONFIG_COMMANDS = $CONFIG_COMMANDS
12755 $ $0 $@
12757 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12760 _ACEOF
12762 case $ac_config_files in *"
12763 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12764 esac
12766 case $ac_config_headers in *"
12767 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12768 esac
12771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12772 # Files that config.status was made for.
12773 config_files="$ac_config_files"
12774 config_headers="$ac_config_headers"
12775 config_commands="$ac_config_commands"
12777 _ACEOF
12779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12780 ac_cs_usage="\
12781 \`$as_me' instantiates files and other configuration actions
12782 from templates according to the current configuration. Unless the files
12783 and actions are specified as TAGs, all are instantiated by default.
12785 Usage: $0 [OPTION]... [TAG]...
12787 -h, --help print this help, then exit
12788 -V, --version print version number and configuration settings, then exit
12789 --config print configuration, then exit
12790 -q, --quiet, --silent
12791 do not print progress messages
12792 -d, --debug don't remove temporary files
12793 --recheck update $as_me by reconfiguring in the same conditions
12794 --file=FILE[:TEMPLATE]
12795 instantiate the configuration file FILE
12796 --header=FILE[:TEMPLATE]
12797 instantiate the configuration header FILE
12799 Configuration files:
12800 $config_files
12802 Configuration headers:
12803 $config_headers
12805 Configuration commands:
12806 $config_commands
12808 Report bugs to the package provider."
12810 _ACEOF
12811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12812 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12813 ac_cs_version="\\
12814 LTO plugin for ld config.status 0.1
12815 configured by $0, generated by GNU Autoconf 2.69,
12816 with options \\"\$ac_cs_config\\"
12818 Copyright (C) 2012 Free Software Foundation, Inc.
12819 This config.status script is free software; the Free Software Foundation
12820 gives unlimited permission to copy, distribute and modify it."
12822 ac_pwd='$ac_pwd'
12823 srcdir='$srcdir'
12824 INSTALL='$INSTALL'
12825 MKDIR_P='$MKDIR_P'
12826 AWK='$AWK'
12827 test -n "\$AWK" || AWK=awk
12828 _ACEOF
12830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12831 # The default lists apply if the user does not specify any file.
12832 ac_need_defaults=:
12833 while test $# != 0
12835 case $1 in
12836 --*=?*)
12837 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12838 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12839 ac_shift=:
12841 --*=)
12842 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12843 ac_optarg=
12844 ac_shift=:
12847 ac_option=$1
12848 ac_optarg=$2
12849 ac_shift=shift
12851 esac
12853 case $ac_option in
12854 # Handling of the options.
12855 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12856 ac_cs_recheck=: ;;
12857 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12858 $as_echo "$ac_cs_version"; exit ;;
12859 --config | --confi | --conf | --con | --co | --c )
12860 $as_echo "$ac_cs_config"; exit ;;
12861 --debug | --debu | --deb | --de | --d | -d )
12862 debug=: ;;
12863 --file | --fil | --fi | --f )
12864 $ac_shift
12865 case $ac_optarg in
12866 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12867 '') as_fn_error $? "missing file argument" ;;
12868 esac
12869 as_fn_append CONFIG_FILES " '$ac_optarg'"
12870 ac_need_defaults=false;;
12871 --header | --heade | --head | --hea )
12872 $ac_shift
12873 case $ac_optarg in
12874 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12875 esac
12876 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12877 ac_need_defaults=false;;
12878 --he | --h)
12879 # Conflict between --help and --header
12880 as_fn_error $? "ambiguous option: \`$1'
12881 Try \`$0 --help' for more information.";;
12882 --help | --hel | -h )
12883 $as_echo "$ac_cs_usage"; exit ;;
12884 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12885 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12886 ac_cs_silent=: ;;
12888 # This is an error.
12889 -*) as_fn_error $? "unrecognized option: \`$1'
12890 Try \`$0 --help' for more information." ;;
12892 *) as_fn_append ac_config_targets " $1"
12893 ac_need_defaults=false ;;
12895 esac
12896 shift
12897 done
12899 ac_configure_extra_args=
12901 if $ac_cs_silent; then
12902 exec 6>/dev/null
12903 ac_configure_extra_args="$ac_configure_extra_args --silent"
12906 _ACEOF
12907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12908 if \$ac_cs_recheck; then
12909 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12910 shift
12911 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12912 CONFIG_SHELL='$SHELL'
12913 export CONFIG_SHELL
12914 exec "\$@"
12917 _ACEOF
12918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12919 exec 5>>config.log
12921 echo
12922 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12923 ## Running $as_me. ##
12924 _ASBOX
12925 $as_echo "$ac_log"
12926 } >&5
12928 _ACEOF
12929 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12931 # INIT-COMMANDS
12933 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12936 # The HP-UX ksh and POSIX shell print the target directory to stdout
12937 # if CDPATH is set.
12938 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12940 sed_quote_subst='$sed_quote_subst'
12941 double_quote_subst='$double_quote_subst'
12942 delay_variable_subst='$delay_variable_subst'
12943 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12944 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12945 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12946 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12947 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12948 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12949 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12950 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12951 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12952 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12953 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12954 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12955 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12956 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12957 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12958 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12959 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12960 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12961 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12962 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12963 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12964 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12965 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12966 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12967 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12968 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12969 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12970 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12971 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12972 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12973 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12974 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12975 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12976 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12977 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12978 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12979 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12980 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12981 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12982 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12983 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12984 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12985 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12986 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12987 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12988 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12989 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12990 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12991 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"`'
12992 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12993 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12994 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12995 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12996 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12997 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12998 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12999 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13000 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13001 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13002 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13003 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13004 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13005 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13006 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13007 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13008 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13009 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13010 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13011 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13012 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13013 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13014 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13015 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13016 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13017 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13018 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13019 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13020 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13021 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13022 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13023 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13024 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13025 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13026 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13027 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13028 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13029 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13030 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13031 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13032 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13033 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13034 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13035 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13036 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13037 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13038 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13039 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13040 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13041 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13042 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13043 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13044 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13045 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13046 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13047 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13048 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13049 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13050 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13051 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13052 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13053 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13054 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13055 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13056 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13057 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13058 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13059 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13060 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13061 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13062 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13064 LTCC='$LTCC'
13065 LTCFLAGS='$LTCFLAGS'
13066 compiler='$compiler_DEFAULT'
13068 # A function that is used when there is no print builtin or printf.
13069 func_fallback_echo ()
13071 eval 'cat <<_LTECHO_EOF
13073 _LTECHO_EOF'
13076 # Quote evaled strings.
13077 for var in SHELL \
13078 ECHO \
13079 SED \
13080 GREP \
13081 EGREP \
13082 FGREP \
13083 LD \
13084 NM \
13085 LN_S \
13086 lt_SP2NL \
13087 lt_NL2SP \
13088 reload_flag \
13089 OBJDUMP \
13090 deplibs_check_method \
13091 file_magic_cmd \
13092 AR \
13093 AR_FLAGS \
13094 STRIP \
13095 RANLIB \
13096 CC \
13097 CFLAGS \
13098 compiler \
13099 lt_cv_sys_global_symbol_pipe \
13100 lt_cv_sys_global_symbol_to_cdecl \
13101 lt_cv_sys_global_symbol_to_c_name_address \
13102 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13103 lt_prog_compiler_no_builtin_flag \
13104 lt_prog_compiler_wl \
13105 lt_prog_compiler_pic \
13106 lt_prog_compiler_static \
13107 lt_cv_prog_compiler_c_o \
13108 need_locks \
13109 DSYMUTIL \
13110 NMEDIT \
13111 LIPO \
13112 OTOOL \
13113 OTOOL64 \
13114 shrext_cmds \
13115 export_dynamic_flag_spec \
13116 whole_archive_flag_spec \
13117 compiler_needs_object \
13118 with_gnu_ld \
13119 allow_undefined_flag \
13120 no_undefined_flag \
13121 hardcode_libdir_flag_spec \
13122 hardcode_libdir_flag_spec_ld \
13123 hardcode_libdir_separator \
13124 fix_srcfile_path \
13125 exclude_expsyms \
13126 include_expsyms \
13127 file_list_spec \
13128 variables_saved_for_relink \
13129 libname_spec \
13130 library_names_spec \
13131 soname_spec \
13132 install_override_mode \
13133 finish_eval \
13134 old_striplib \
13135 striplib; do
13136 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13137 *[\\\\\\\`\\"\\\$]*)
13138 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13141 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13143 esac
13144 done
13146 # Double-quote double-evaled strings.
13147 for var in reload_cmds \
13148 old_postinstall_cmds \
13149 old_postuninstall_cmds \
13150 old_archive_cmds \
13151 extract_expsyms_cmds \
13152 old_archive_from_new_cmds \
13153 old_archive_from_expsyms_cmds \
13154 archive_cmds \
13155 archive_expsym_cmds \
13156 module_cmds \
13157 module_expsym_cmds \
13158 export_symbols_cmds \
13159 prelink_cmds \
13160 postinstall_cmds \
13161 postuninstall_cmds \
13162 finish_cmds \
13163 sys_lib_search_path_spec \
13164 sys_lib_dlsearch_path_spec; do
13165 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13166 *[\\\\\\\`\\"\\\$]*)
13167 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13170 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13172 esac
13173 done
13175 ac_aux_dir='$ac_aux_dir'
13176 xsi_shell='$xsi_shell'
13177 lt_shell_append='$lt_shell_append'
13179 # See if we are running on zsh, and set the options which allow our
13180 # commands through without removal of \ escapes INIT.
13181 if test -n "\${ZSH_VERSION+set}" ; then
13182 setopt NO_GLOB_SUBST
13186 PACKAGE='$PACKAGE'
13187 VERSION='$VERSION'
13188 TIMESTAMP='$TIMESTAMP'
13189 RM='$RM'
13190 ofile='$ofile'
13195 _ACEOF
13197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13199 # Handling of arguments.
13200 for ac_config_target in $ac_config_targets
13202 case $ac_config_target in
13203 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13204 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13205 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13206 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13208 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13209 esac
13210 done
13213 # If the user did not use the arguments to specify the items to instantiate,
13214 # then the envvar interface is used. Set only those that are not.
13215 # We use the long form for the default assignment because of an extremely
13216 # bizarre bug on SunOS 4.1.3.
13217 if $ac_need_defaults; then
13218 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13219 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13220 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13223 # Have a temporary directory for convenience. Make it in the build tree
13224 # simply because there is no reason against having it here, and in addition,
13225 # creating and moving files from /tmp can sometimes cause problems.
13226 # Hook for its removal unless debugging.
13227 # Note that there is a small window in which the directory will not be cleaned:
13228 # after its creation but before its name has been assigned to `$tmp'.
13229 $debug ||
13231 tmp= ac_tmp=
13232 trap 'exit_status=$?
13233 : "${ac_tmp:=$tmp}"
13234 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13236 trap 'as_fn_exit 1' 1 2 13 15
13238 # Create a (secure) tmp directory for tmp files.
13241 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13242 test -d "$tmp"
13243 } ||
13245 tmp=./conf$$-$RANDOM
13246 (umask 077 && mkdir "$tmp")
13247 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13248 ac_tmp=$tmp
13250 # Set up the scripts for CONFIG_FILES section.
13251 # No need to generate them if there are no CONFIG_FILES.
13252 # This happens for instance with `./config.status config.h'.
13253 if test -n "$CONFIG_FILES"; then
13256 ac_cr=`echo X | tr X '\015'`
13257 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13258 # But we know of no other shell where ac_cr would be empty at this
13259 # point, so we can use a bashism as a fallback.
13260 if test "x$ac_cr" = x; then
13261 eval ac_cr=\$\'\\r\'
13263 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13264 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13265 ac_cs_awk_cr='\\r'
13266 else
13267 ac_cs_awk_cr=$ac_cr
13270 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13271 _ACEOF
13275 echo "cat >conf$$subs.awk <<_ACEOF" &&
13276 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13277 echo "_ACEOF"
13278 } >conf$$subs.sh ||
13279 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13280 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13281 ac_delim='%!_!# '
13282 for ac_last_try in false false false false false :; do
13283 . ./conf$$subs.sh ||
13284 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13286 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13287 if test $ac_delim_n = $ac_delim_num; then
13288 break
13289 elif $ac_last_try; then
13290 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13291 else
13292 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13294 done
13295 rm -f conf$$subs.sh
13297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13298 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13299 _ACEOF
13300 sed -n '
13302 s/^/S["/; s/!.*/"]=/
13305 s/^[^!]*!//
13306 :repl
13307 t repl
13308 s/'"$ac_delim"'$//
13309 t delim
13312 s/\(.\{148\}\)..*/\1/
13313 t more1
13314 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13317 b repl
13318 :more1
13319 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13322 s/.\{148\}//
13323 t nl
13324 :delim
13326 s/\(.\{148\}\)..*/\1/
13327 t more2
13328 s/["\\]/\\&/g; s/^/"/; s/$/"/
13331 :more2
13332 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13335 s/.\{148\}//
13336 t delim
13337 ' <conf$$subs.awk | sed '
13338 /^[^""]/{
13340 s/\n//
13342 ' >>$CONFIG_STATUS || ac_write_fail=1
13343 rm -f conf$$subs.awk
13344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13345 _ACAWK
13346 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13347 for (key in S) S_is_set[key] = 1
13348 FS = "\a"
13352 line = $ 0
13353 nfields = split(line, field, "@")
13354 substed = 0
13355 len = length(field[1])
13356 for (i = 2; i < nfields; i++) {
13357 key = field[i]
13358 keylen = length(key)
13359 if (S_is_set[key]) {
13360 value = S[key]
13361 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13362 len += length(value) + length(field[++i])
13363 substed = 1
13364 } else
13365 len += 1 + keylen
13368 print line
13371 _ACAWK
13372 _ACEOF
13373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13374 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13375 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13376 else
13378 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13379 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13380 _ACEOF
13382 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13383 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13384 # trailing colons and then remove the whole line if VPATH becomes empty
13385 # (actually we leave an empty line to preserve line numbers).
13386 if test "x$srcdir" = x.; then
13387 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13389 s///
13390 s/^/:/
13391 s/[ ]*$/:/
13392 s/:\$(srcdir):/:/g
13393 s/:\${srcdir}:/:/g
13394 s/:@srcdir@:/:/g
13395 s/^:*//
13396 s/:*$//
13398 s/\(=[ ]*\).*/\1/
13400 s/\n//
13401 s/^[^=]*=[ ]*$//
13405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13406 fi # test -n "$CONFIG_FILES"
13408 # Set up the scripts for CONFIG_HEADERS section.
13409 # No need to generate them if there are no CONFIG_HEADERS.
13410 # This happens for instance with `./config.status Makefile'.
13411 if test -n "$CONFIG_HEADERS"; then
13412 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13413 BEGIN {
13414 _ACEOF
13416 # Transform confdefs.h into an awk script `defines.awk', embedded as
13417 # here-document in config.status, that substitutes the proper values into
13418 # config.h.in to produce config.h.
13420 # Create a delimiter string that does not exist in confdefs.h, to ease
13421 # handling of long lines.
13422 ac_delim='%!_!# '
13423 for ac_last_try in false false :; do
13424 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13425 if test -z "$ac_tt"; then
13426 break
13427 elif $ac_last_try; then
13428 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13429 else
13430 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13432 done
13434 # For the awk script, D is an array of macro values keyed by name,
13435 # likewise P contains macro parameters if any. Preserve backslash
13436 # newline sequences.
13438 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13439 sed -n '
13440 s/.\{148\}/&'"$ac_delim"'/g
13441 t rset
13442 :rset
13443 s/^[ ]*#[ ]*define[ ][ ]*/ /
13444 t def
13446 :def
13447 s/\\$//
13448 t bsnl
13449 s/["\\]/\\&/g
13450 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13451 D["\1"]=" \3"/p
13452 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13454 :bsnl
13455 s/["\\]/\\&/g
13456 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13457 D["\1"]=" \3\\\\\\n"\\/p
13458 t cont
13459 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13460 t cont
13462 :cont
13464 s/.\{148\}/&'"$ac_delim"'/g
13465 t clear
13466 :clear
13467 s/\\$//
13468 t bsnlc
13469 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13471 :bsnlc
13472 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13473 b cont
13474 ' <confdefs.h | sed '
13475 s/'"$ac_delim"'/"\\\
13476 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13479 for (key in D) D_is_set[key] = 1
13480 FS = "\a"
13482 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13483 line = \$ 0
13484 split(line, arg, " ")
13485 if (arg[1] == "#") {
13486 defundef = arg[2]
13487 mac1 = arg[3]
13488 } else {
13489 defundef = substr(arg[1], 2)
13490 mac1 = arg[2]
13492 split(mac1, mac2, "(") #)
13493 macro = mac2[1]
13494 prefix = substr(line, 1, index(line, defundef) - 1)
13495 if (D_is_set[macro]) {
13496 # Preserve the white space surrounding the "#".
13497 print prefix "define", macro P[macro] D[macro]
13498 next
13499 } else {
13500 # Replace #undef with comments. This is necessary, for example,
13501 # in the case of _POSIX_SOURCE, which is predefined and required
13502 # on some systems where configure will not decide to define it.
13503 if (defundef == "undef") {
13504 print "/*", prefix defundef, macro, "*/"
13505 next
13509 { print }
13510 _ACAWK
13511 _ACEOF
13512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13513 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13514 fi # test -n "$CONFIG_HEADERS"
13517 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13518 shift
13519 for ac_tag
13521 case $ac_tag in
13522 :[FHLC]) ac_mode=$ac_tag; continue;;
13523 esac
13524 case $ac_mode$ac_tag in
13525 :[FHL]*:*);;
13526 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13527 :[FH]-) ac_tag=-:-;;
13528 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13529 esac
13530 ac_save_IFS=$IFS
13531 IFS=:
13532 set x $ac_tag
13533 IFS=$ac_save_IFS
13534 shift
13535 ac_file=$1
13536 shift
13538 case $ac_mode in
13539 :L) ac_source=$1;;
13540 :[FH])
13541 ac_file_inputs=
13542 for ac_f
13544 case $ac_f in
13545 -) ac_f="$ac_tmp/stdin";;
13546 *) # Look for the file first in the build tree, then in the source tree
13547 # (if the path is not absolute). The absolute path cannot be DOS-style,
13548 # because $ac_f cannot contain `:'.
13549 test -f "$ac_f" ||
13550 case $ac_f in
13551 [\\/$]*) false;;
13552 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13553 esac ||
13554 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13555 esac
13556 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13557 as_fn_append ac_file_inputs " '$ac_f'"
13558 done
13560 # Let's still pretend it is `configure' which instantiates (i.e., don't
13561 # use $as_me), people would be surprised to read:
13562 # /* config.h. Generated by config.status. */
13563 configure_input='Generated from '`
13564 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13565 `' by configure.'
13566 if test x"$ac_file" != x-; then
13567 configure_input="$ac_file. $configure_input"
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13569 $as_echo "$as_me: creating $ac_file" >&6;}
13571 # Neutralize special characters interpreted by sed in replacement strings.
13572 case $configure_input in #(
13573 *\&* | *\|* | *\\* )
13574 ac_sed_conf_input=`$as_echo "$configure_input" |
13575 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13576 *) ac_sed_conf_input=$configure_input;;
13577 esac
13579 case $ac_tag in
13580 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13581 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13582 esac
13584 esac
13586 ac_dir=`$as_dirname -- "$ac_file" ||
13587 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13588 X"$ac_file" : 'X\(//\)[^/]' \| \
13589 X"$ac_file" : 'X\(//\)$' \| \
13590 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13591 $as_echo X"$ac_file" |
13592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13593 s//\1/
13596 /^X\(\/\/\)[^/].*/{
13597 s//\1/
13600 /^X\(\/\/\)$/{
13601 s//\1/
13604 /^X\(\/\).*/{
13605 s//\1/
13608 s/.*/./; q'`
13609 as_dir="$ac_dir"; as_fn_mkdir_p
13610 ac_builddir=.
13612 case "$ac_dir" in
13613 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13615 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13616 # A ".." for each directory in $ac_dir_suffix.
13617 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13618 case $ac_top_builddir_sub in
13619 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13620 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13621 esac ;;
13622 esac
13623 ac_abs_top_builddir=$ac_pwd
13624 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13625 # for backward compatibility:
13626 ac_top_builddir=$ac_top_build_prefix
13628 case $srcdir in
13629 .) # We are building in place.
13630 ac_srcdir=.
13631 ac_top_srcdir=$ac_top_builddir_sub
13632 ac_abs_top_srcdir=$ac_pwd ;;
13633 [\\/]* | ?:[\\/]* ) # Absolute name.
13634 ac_srcdir=$srcdir$ac_dir_suffix;
13635 ac_top_srcdir=$srcdir
13636 ac_abs_top_srcdir=$srcdir ;;
13637 *) # Relative name.
13638 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13639 ac_top_srcdir=$ac_top_build_prefix$srcdir
13640 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13641 esac
13642 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13645 case $ac_mode in
13648 # CONFIG_FILE
13651 case $INSTALL in
13652 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13653 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13654 esac
13655 ac_MKDIR_P=$MKDIR_P
13656 case $MKDIR_P in
13657 [\\/$]* | ?:[\\/]* ) ;;
13658 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13659 esac
13660 _ACEOF
13662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13663 # If the template does not know about datarootdir, expand it.
13664 # FIXME: This hack should be removed a few years after 2.60.
13665 ac_datarootdir_hack=; ac_datarootdir_seen=
13666 ac_sed_dataroot='
13667 /datarootdir/ {
13671 /@datadir@/p
13672 /@docdir@/p
13673 /@infodir@/p
13674 /@localedir@/p
13675 /@mandir@/p'
13676 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13677 *datarootdir*) ac_datarootdir_seen=yes;;
13678 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13680 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13681 _ACEOF
13682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13683 ac_datarootdir_hack='
13684 s&@datadir@&$datadir&g
13685 s&@docdir@&$docdir&g
13686 s&@infodir@&$infodir&g
13687 s&@localedir@&$localedir&g
13688 s&@mandir@&$mandir&g
13689 s&\\\${datarootdir}&$datarootdir&g' ;;
13690 esac
13691 _ACEOF
13693 # Neutralize VPATH when `$srcdir' = `.'.
13694 # Shell code in configure.ac might set extrasub.
13695 # FIXME: do we really want to maintain this feature?
13696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13697 ac_sed_extra="$ac_vpsub
13698 $extrasub
13699 _ACEOF
13700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13702 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13703 s|@configure_input@|$ac_sed_conf_input|;t t
13704 s&@top_builddir@&$ac_top_builddir_sub&;t t
13705 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13706 s&@srcdir@&$ac_srcdir&;t t
13707 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13708 s&@top_srcdir@&$ac_top_srcdir&;t t
13709 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13710 s&@builddir@&$ac_builddir&;t t
13711 s&@abs_builddir@&$ac_abs_builddir&;t t
13712 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13713 s&@INSTALL@&$ac_INSTALL&;t t
13714 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13715 $ac_datarootdir_hack
13717 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13718 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13720 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13721 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13722 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13723 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13725 which seems to be undefined. Please make sure it is defined" >&5
13726 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13727 which seems to be undefined. Please make sure it is defined" >&2;}
13729 rm -f "$ac_tmp/stdin"
13730 case $ac_file in
13731 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13732 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13733 esac \
13734 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13738 # CONFIG_HEADER
13740 if test x"$ac_file" != x-; then
13742 $as_echo "/* $configure_input */" \
13743 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13744 } >"$ac_tmp/config.h" \
13745 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13746 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13748 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13749 else
13750 rm -f "$ac_file"
13751 mv "$ac_tmp/config.h" "$ac_file" \
13752 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13754 else
13755 $as_echo "/* $configure_input */" \
13756 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13757 || as_fn_error $? "could not create -" "$LINENO" 5
13759 # Compute "$ac_file"'s index in $config_headers.
13760 _am_arg="$ac_file"
13761 _am_stamp_count=1
13762 for _am_header in $config_headers :; do
13763 case $_am_header in
13764 $_am_arg | $_am_arg:* )
13765 break ;;
13767 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13768 esac
13769 done
13770 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13771 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13772 X"$_am_arg" : 'X\(//\)[^/]' \| \
13773 X"$_am_arg" : 'X\(//\)$' \| \
13774 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13775 $as_echo X"$_am_arg" |
13776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13777 s//\1/
13780 /^X\(\/\/\)[^/].*/{
13781 s//\1/
13784 /^X\(\/\/\)$/{
13785 s//\1/
13788 /^X\(\/\).*/{
13789 s//\1/
13792 s/.*/./; q'`/stamp-h$_am_stamp_count
13795 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13796 $as_echo "$as_me: executing $ac_file commands" >&6;}
13798 esac
13801 case $ac_file$ac_mode in
13802 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13803 # Older Autoconf quotes --file arguments for eval, but not when files
13804 # are listed without --file. Let's play safe and only enable the eval
13805 # if we detect the quoting.
13806 case $CONFIG_FILES in
13807 *\'*) eval set x "$CONFIG_FILES" ;;
13808 *) set x $CONFIG_FILES ;;
13809 esac
13810 shift
13811 for mf
13813 # Strip MF so we end up with the name of the file.
13814 mf=`echo "$mf" | sed -e 's/:.*$//'`
13815 # Check whether this is an Automake generated Makefile or not.
13816 # We used to match only the files named 'Makefile.in', but
13817 # some people rename them; so instead we look at the file content.
13818 # Grep'ing the first line is not enough: some people post-process
13819 # each Makefile.in and add a new line on top of each file to say so.
13820 # Grep'ing the whole file is not good either: AIX grep has a line
13821 # limit of 2048, but all sed's we know have understand at least 4000.
13822 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13823 dirpart=`$as_dirname -- "$mf" ||
13824 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13825 X"$mf" : 'X\(//\)[^/]' \| \
13826 X"$mf" : 'X\(//\)$' \| \
13827 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13828 $as_echo X"$mf" |
13829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13830 s//\1/
13833 /^X\(\/\/\)[^/].*/{
13834 s//\1/
13837 /^X\(\/\/\)$/{
13838 s//\1/
13841 /^X\(\/\).*/{
13842 s//\1/
13845 s/.*/./; q'`
13846 else
13847 continue
13849 # Extract the definition of DEPDIR, am__include, and am__quote
13850 # from the Makefile without running 'make'.
13851 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13852 test -z "$DEPDIR" && continue
13853 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13854 test -z "$am__include" && continue
13855 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13856 # Find all dependency output files, they are included files with
13857 # $(DEPDIR) in their names. We invoke sed twice because it is the
13858 # simplest approach to changing $(DEPDIR) to its actual value in the
13859 # expansion.
13860 for file in `sed -n "
13861 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13862 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13863 # Make sure the directory exists.
13864 test -f "$dirpart/$file" && continue
13865 fdir=`$as_dirname -- "$file" ||
13866 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13867 X"$file" : 'X\(//\)[^/]' \| \
13868 X"$file" : 'X\(//\)$' \| \
13869 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13870 $as_echo X"$file" |
13871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13872 s//\1/
13875 /^X\(\/\/\)[^/].*/{
13876 s//\1/
13879 /^X\(\/\/\)$/{
13880 s//\1/
13883 /^X\(\/\).*/{
13884 s//\1/
13887 s/.*/./; q'`
13888 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13889 # echo "creating $dirpart/$file"
13890 echo '# dummy' > "$dirpart/$file"
13891 done
13892 done
13895 "libtool":C)
13897 # See if we are running on zsh, and set the options which allow our
13898 # commands through without removal of \ escapes.
13899 if test -n "${ZSH_VERSION+set}" ; then
13900 setopt NO_GLOB_SUBST
13903 cfgfile="${ofile}T"
13904 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13905 $RM "$cfgfile"
13907 cat <<_LT_EOF >> "$cfgfile"
13908 #! $SHELL
13910 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13911 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13912 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13913 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13915 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13916 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
13917 # Written by Gordon Matzigkeit, 1996
13919 # This file is part of GNU Libtool.
13921 # GNU Libtool is free software; you can redistribute it and/or
13922 # modify it under the terms of the GNU General Public License as
13923 # published by the Free Software Foundation; either version 2 of
13924 # the License, or (at your option) any later version.
13926 # As a special exception to the GNU General Public License,
13927 # if you distribute this file as part of a program or library that
13928 # is built using GNU Libtool, you may include this file under the
13929 # same distribution terms that you use for the rest of that program.
13931 # GNU Libtool is distributed in the hope that it will be useful,
13932 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13933 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13934 # GNU General Public License for more details.
13936 # You should have received a copy of the GNU General Public License
13937 # along with GNU Libtool; see the file COPYING. If not, a copy
13938 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13939 # obtained by writing to the Free Software Foundation, Inc.,
13940 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13943 # The names of the tagged configurations supported by this script.
13944 available_tags=""
13946 # ### BEGIN LIBTOOL CONFIG
13948 # Which release of libtool.m4 was used?
13949 macro_version=$macro_version
13950 macro_revision=$macro_revision
13952 # Whether or not to build shared libraries.
13953 build_libtool_libs=$enable_shared
13955 # Whether or not to build static libraries.
13956 build_old_libs=$enable_static
13958 # What type of objects to build.
13959 pic_mode=$pic_mode
13961 # Whether or not to optimize for fast installation.
13962 fast_install=$enable_fast_install
13964 # Shell to use when invoking shell scripts.
13965 SHELL=$lt_SHELL
13967 # An echo program that protects backslashes.
13968 ECHO=$lt_ECHO
13970 # The host system.
13971 host_alias=$host_alias
13972 host=$host
13973 host_os=$host_os
13975 # The build system.
13976 build_alias=$build_alias
13977 build=$build
13978 build_os=$build_os
13980 # A sed program that does not truncate output.
13981 SED=$lt_SED
13983 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13984 Xsed="\$SED -e 1s/^X//"
13986 # A grep program that handles long lines.
13987 GREP=$lt_GREP
13989 # An ERE matcher.
13990 EGREP=$lt_EGREP
13992 # A literal string matcher.
13993 FGREP=$lt_FGREP
13995 # A BSD- or MS-compatible name lister.
13996 NM=$lt_NM
13998 # Whether we need soft or hard links.
13999 LN_S=$lt_LN_S
14001 # What is the maximum length of a command?
14002 max_cmd_len=$max_cmd_len
14004 # Object file suffix (normally "o").
14005 objext=$ac_objext
14007 # Executable file suffix (normally "").
14008 exeext=$exeext
14010 # whether the shell understands "unset".
14011 lt_unset=$lt_unset
14013 # turn spaces into newlines.
14014 SP2NL=$lt_lt_SP2NL
14016 # turn newlines into spaces.
14017 NL2SP=$lt_lt_NL2SP
14019 # An object symbol dumper.
14020 OBJDUMP=$lt_OBJDUMP
14022 # Method to check whether dependent libraries are shared objects.
14023 deplibs_check_method=$lt_deplibs_check_method
14025 # Command to use when deplibs_check_method == "file_magic".
14026 file_magic_cmd=$lt_file_magic_cmd
14028 # The archiver.
14029 AR=$lt_AR
14030 AR_FLAGS=$lt_AR_FLAGS
14032 # A symbol stripping program.
14033 STRIP=$lt_STRIP
14035 # Commands used to install an old-style archive.
14036 RANLIB=$lt_RANLIB
14037 old_postinstall_cmds=$lt_old_postinstall_cmds
14038 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14040 # Whether to use a lock for old archive extraction.
14041 lock_old_archive_extraction=$lock_old_archive_extraction
14043 # A C compiler.
14044 LTCC=$lt_CC
14046 # LTCC compiler flags.
14047 LTCFLAGS=$lt_CFLAGS
14049 # Take the output of nm and produce a listing of raw symbols and C names.
14050 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14052 # Transform the output of nm in a proper C declaration.
14053 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14055 # Transform the output of nm in a C name address pair.
14056 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14058 # Transform the output of nm in a C name address pair when lib prefix is needed.
14059 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14061 # The name of the directory that contains temporary libtool files.
14062 objdir=$objdir
14064 # Used to examine libraries when file_magic_cmd begins with "file".
14065 MAGIC_CMD=$MAGIC_CMD
14067 # Must we lock files when doing compilation?
14068 need_locks=$lt_need_locks
14070 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14071 DSYMUTIL=$lt_DSYMUTIL
14073 # Tool to change global to local symbols on Mac OS X.
14074 NMEDIT=$lt_NMEDIT
14076 # Tool to manipulate fat objects and archives on Mac OS X.
14077 LIPO=$lt_LIPO
14079 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14080 OTOOL=$lt_OTOOL
14082 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14083 OTOOL64=$lt_OTOOL64
14085 # Old archive suffix (normally "a").
14086 libext=$libext
14088 # Shared library suffix (normally ".so").
14089 shrext_cmds=$lt_shrext_cmds
14091 # The commands to extract the exported symbol list from a shared archive.
14092 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14094 # Variables whose values should be saved in libtool wrapper scripts and
14095 # restored at link time.
14096 variables_saved_for_relink=$lt_variables_saved_for_relink
14098 # Do we need the "lib" prefix for modules?
14099 need_lib_prefix=$need_lib_prefix
14101 # Do we need a version for libraries?
14102 need_version=$need_version
14104 # Library versioning type.
14105 version_type=$version_type
14107 # Shared library runtime path variable.
14108 runpath_var=$runpath_var
14110 # Shared library path variable.
14111 shlibpath_var=$shlibpath_var
14113 # Is shlibpath searched before the hard-coded library search path?
14114 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14116 # Format of library name prefix.
14117 libname_spec=$lt_libname_spec
14119 # List of archive names. First name is the real one, the rest are links.
14120 # The last name is the one that the linker finds with -lNAME
14121 library_names_spec=$lt_library_names_spec
14123 # The coded name of the library, if different from the real name.
14124 soname_spec=$lt_soname_spec
14126 # Permission mode override for installation of shared libraries.
14127 install_override_mode=$lt_install_override_mode
14129 # Command to use after installation of a shared archive.
14130 postinstall_cmds=$lt_postinstall_cmds
14132 # Command to use after uninstallation of a shared archive.
14133 postuninstall_cmds=$lt_postuninstall_cmds
14135 # Commands used to finish a libtool library installation in a directory.
14136 finish_cmds=$lt_finish_cmds
14138 # As "finish_cmds", except a single script fragment to be evaled but
14139 # not shown.
14140 finish_eval=$lt_finish_eval
14142 # Whether we should hardcode library paths into libraries.
14143 hardcode_into_libs=$hardcode_into_libs
14145 # Compile-time system search path for libraries.
14146 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14148 # Run-time system search path for libraries.
14149 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14151 # Whether dlopen is supported.
14152 dlopen_support=$enable_dlopen
14154 # Whether dlopen of programs is supported.
14155 dlopen_self=$enable_dlopen_self
14157 # Whether dlopen of statically linked programs is supported.
14158 dlopen_self_static=$enable_dlopen_self_static
14160 # Commands to strip libraries.
14161 old_striplib=$lt_old_striplib
14162 striplib=$lt_striplib
14165 # The linker used to build libraries.
14166 LD=$lt_LD
14168 # How to create reloadable object files.
14169 reload_flag=$lt_reload_flag
14170 reload_cmds=$lt_reload_cmds
14172 # Commands used to build an old-style archive.
14173 old_archive_cmds=$lt_old_archive_cmds
14175 # A language specific compiler.
14176 CC=$lt_compiler
14178 # Is the compiler the GNU compiler?
14179 with_gcc=$GCC
14181 # Compiler flag to turn off builtin functions.
14182 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14184 # How to pass a linker flag through the compiler.
14185 wl=$lt_lt_prog_compiler_wl
14187 # Additional compiler flags for building library objects.
14188 pic_flag=$lt_lt_prog_compiler_pic
14190 # Compiler flag to prevent dynamic linking.
14191 link_static_flag=$lt_lt_prog_compiler_static
14193 # Does compiler simultaneously support -c and -o options?
14194 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14196 # Whether or not to add -lc for building shared libraries.
14197 build_libtool_need_lc=$archive_cmds_need_lc
14199 # Whether or not to disallow shared libs when runtime libs are static.
14200 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14202 # Compiler flag to allow reflexive dlopens.
14203 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14205 # Compiler flag to generate shared objects directly from archives.
14206 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14208 # Whether the compiler copes with passing no objects directly.
14209 compiler_needs_object=$lt_compiler_needs_object
14211 # Create an old-style archive from a shared archive.
14212 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14214 # Create a temporary old-style archive to link instead of a shared archive.
14215 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14217 # Commands used to build a shared archive.
14218 archive_cmds=$lt_archive_cmds
14219 archive_expsym_cmds=$lt_archive_expsym_cmds
14221 # Commands used to build a loadable module if different from building
14222 # a shared archive.
14223 module_cmds=$lt_module_cmds
14224 module_expsym_cmds=$lt_module_expsym_cmds
14226 # Whether we are building with GNU ld or not.
14227 with_gnu_ld=$lt_with_gnu_ld
14229 # Flag that allows shared libraries with undefined symbols to be built.
14230 allow_undefined_flag=$lt_allow_undefined_flag
14232 # Flag that enforces no undefined symbols.
14233 no_undefined_flag=$lt_no_undefined_flag
14235 # Flag to hardcode \$libdir into a binary during linking.
14236 # This must work even if \$libdir does not exist
14237 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14239 # If ld is used when linking, flag to hardcode \$libdir into a binary
14240 # during linking. This must work even if \$libdir does not exist.
14241 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14243 # Whether we need a single "-rpath" flag with a separated argument.
14244 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14246 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14247 # DIR into the resulting binary.
14248 hardcode_direct=$hardcode_direct
14250 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14251 # DIR into the resulting binary and the resulting library dependency is
14252 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14253 # library is relocated.
14254 hardcode_direct_absolute=$hardcode_direct_absolute
14256 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14257 # into the resulting binary.
14258 hardcode_minus_L=$hardcode_minus_L
14260 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14261 # into the resulting binary.
14262 hardcode_shlibpath_var=$hardcode_shlibpath_var
14264 # Set to "yes" if building a shared library automatically hardcodes DIR
14265 # into the library and all subsequent libraries and executables linked
14266 # against it.
14267 hardcode_automatic=$hardcode_automatic
14269 # Set to yes if linker adds runtime paths of dependent libraries
14270 # to runtime path list.
14271 inherit_rpath=$inherit_rpath
14273 # Whether libtool must link a program against all its dependency libraries.
14274 link_all_deplibs=$link_all_deplibs
14276 # Fix the shell variable \$srcfile for the compiler.
14277 fix_srcfile_path=$lt_fix_srcfile_path
14279 # Set to "yes" if exported symbols are required.
14280 always_export_symbols=$always_export_symbols
14282 # The commands to list exported symbols.
14283 export_symbols_cmds=$lt_export_symbols_cmds
14285 # Symbols that should not be listed in the preloaded symbols.
14286 exclude_expsyms=$lt_exclude_expsyms
14288 # Symbols that must always be exported.
14289 include_expsyms=$lt_include_expsyms
14291 # Commands necessary for linking programs (against libraries) with templates.
14292 prelink_cmds=$lt_prelink_cmds
14294 # Specify filename containing input files.
14295 file_list_spec=$lt_file_list_spec
14297 # How to hardcode a shared library path into an executable.
14298 hardcode_action=$hardcode_action
14300 # ### END LIBTOOL CONFIG
14302 _LT_EOF
14304 case $host_os in
14305 aix3*)
14306 cat <<\_LT_EOF >> "$cfgfile"
14307 # AIX sometimes has problems with the GCC collect2 program. For some
14308 # reason, if we set the COLLECT_NAMES environment variable, the problems
14309 # vanish in a puff of smoke.
14310 if test "X${COLLECT_NAMES+set}" != Xset; then
14311 COLLECT_NAMES=
14312 export COLLECT_NAMES
14314 _LT_EOF
14316 esac
14319 ltmain="$ac_aux_dir/ltmain.sh"
14322 # We use sed instead of cat because bash on DJGPP gets confused if
14323 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14324 # text mode, it properly converts lines to CR/LF. This bash problem
14325 # is reportedly fixed, but why not run on old versions too?
14326 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14327 || (rm -f "$cfgfile"; exit 1)
14329 case $xsi_shell in
14330 yes)
14331 cat << \_LT_EOF >> "$cfgfile"
14333 # func_dirname file append nondir_replacement
14334 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14335 # otherwise set result to NONDIR_REPLACEMENT.
14336 func_dirname ()
14338 case ${1} in
14339 */*) func_dirname_result="${1%/*}${2}" ;;
14340 * ) func_dirname_result="${3}" ;;
14341 esac
14344 # func_basename file
14345 func_basename ()
14347 func_basename_result="${1##*/}"
14350 # func_dirname_and_basename file append nondir_replacement
14351 # perform func_basename and func_dirname in a single function
14352 # call:
14353 # dirname: Compute the dirname of FILE. If nonempty,
14354 # add APPEND to the result, otherwise set result
14355 # to NONDIR_REPLACEMENT.
14356 # value returned in "$func_dirname_result"
14357 # basename: Compute filename of FILE.
14358 # value retuned in "$func_basename_result"
14359 # Implementation must be kept synchronized with func_dirname
14360 # and func_basename. For efficiency, we do not delegate to
14361 # those functions but instead duplicate the functionality here.
14362 func_dirname_and_basename ()
14364 case ${1} in
14365 */*) func_dirname_result="${1%/*}${2}" ;;
14366 * ) func_dirname_result="${3}" ;;
14367 esac
14368 func_basename_result="${1##*/}"
14371 # func_stripname prefix suffix name
14372 # strip PREFIX and SUFFIX off of NAME.
14373 # PREFIX and SUFFIX must not contain globbing or regex special
14374 # characters, hashes, percent signs, but SUFFIX may contain a leading
14375 # dot (in which case that matches only a dot).
14376 func_stripname ()
14378 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14379 # positional parameters, so assign one to ordinary parameter first.
14380 func_stripname_result=${3}
14381 func_stripname_result=${func_stripname_result#"${1}"}
14382 func_stripname_result=${func_stripname_result%"${2}"}
14385 # func_opt_split
14386 func_opt_split ()
14388 func_opt_split_opt=${1%%=*}
14389 func_opt_split_arg=${1#*=}
14392 # func_lo2o object
14393 func_lo2o ()
14395 case ${1} in
14396 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14397 *) func_lo2o_result=${1} ;;
14398 esac
14401 # func_xform libobj-or-source
14402 func_xform ()
14404 func_xform_result=${1%.*}.lo
14407 # func_arith arithmetic-term...
14408 func_arith ()
14410 func_arith_result=$(( $* ))
14413 # func_len string
14414 # STRING may not start with a hyphen.
14415 func_len ()
14417 func_len_result=${#1}
14420 _LT_EOF
14422 *) # Bourne compatible functions.
14423 cat << \_LT_EOF >> "$cfgfile"
14425 # func_dirname file append nondir_replacement
14426 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14427 # otherwise set result to NONDIR_REPLACEMENT.
14428 func_dirname ()
14430 # Extract subdirectory from the argument.
14431 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14432 if test "X$func_dirname_result" = "X${1}"; then
14433 func_dirname_result="${3}"
14434 else
14435 func_dirname_result="$func_dirname_result${2}"
14439 # func_basename file
14440 func_basename ()
14442 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14446 # func_stripname prefix suffix name
14447 # strip PREFIX and SUFFIX off of NAME.
14448 # PREFIX and SUFFIX must not contain globbing or regex special
14449 # characters, hashes, percent signs, but SUFFIX may contain a leading
14450 # dot (in which case that matches only a dot).
14451 # func_strip_suffix prefix name
14452 func_stripname ()
14454 case ${2} in
14455 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14456 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14457 esac
14460 # sed scripts:
14461 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14462 my_sed_long_arg='1s/^-[^=]*=//'
14464 # func_opt_split
14465 func_opt_split ()
14467 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14468 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14471 # func_lo2o object
14472 func_lo2o ()
14474 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14477 # func_xform libobj-or-source
14478 func_xform ()
14480 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14483 # func_arith arithmetic-term...
14484 func_arith ()
14486 func_arith_result=`expr "$@"`
14489 # func_len string
14490 # STRING may not start with a hyphen.
14491 func_len ()
14493 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14496 _LT_EOF
14497 esac
14499 case $lt_shell_append in
14500 yes)
14501 cat << \_LT_EOF >> "$cfgfile"
14503 # func_append var value
14504 # Append VALUE to the end of shell variable VAR.
14505 func_append ()
14507 eval "$1+=\$2"
14509 _LT_EOF
14512 cat << \_LT_EOF >> "$cfgfile"
14514 # func_append var value
14515 # Append VALUE to the end of shell variable VAR.
14516 func_append ()
14518 eval "$1=\$$1\$2"
14521 _LT_EOF
14523 esac
14526 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14527 || (rm -f "$cfgfile"; exit 1)
14529 mv -f "$cfgfile" "$ofile" ||
14530 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14531 chmod +x "$ofile"
14535 esac
14536 done # for ac_tag
14539 as_fn_exit 0
14540 _ACEOF
14541 ac_clean_files=$ac_clean_files_save
14543 test $ac_write_fail = 0 ||
14544 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14547 # configure is writing to config.log, and then calls config.status.
14548 # config.status does its own redirection, appending to config.log.
14549 # Unfortunately, on DOS this fails, as config.log is still kept open
14550 # by configure, so config.status won't be able to write to it; its
14551 # output is simply discarded. So we exec the FD to /dev/null,
14552 # effectively closing config.log, so it can be properly (re)opened and
14553 # appended to by config.status. When coming back to configure, we
14554 # need to make the FD available again.
14555 if test "$no_create" != yes; then
14556 ac_cs_success=:
14557 ac_config_status_args=
14558 test "$silent" = yes &&
14559 ac_config_status_args="$ac_config_status_args --quiet"
14560 exec 5>/dev/null
14561 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14562 exec 5>>config.log
14563 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14564 # would make configure fail if this is the last instruction.
14565 $ac_cs_success || as_fn_exit 1
14567 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14569 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}