Daily bump.
[official-gcc.git] / zlib / configure
blob9308866a636f7ea9e6a1ed0affe977f1f11ce3dc
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for zlib 1.1.4.
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
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || 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='zlib'
589 PACKAGE_TARNAME='zlib'
590 PACKAGE_VERSION='1.1.4'
591 PACKAGE_STRING='zlib 1.1.4'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 ac_unique_file="zlib.h"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 ac_header_list=
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 PICFLAG
638 enable_host_pie
639 enable_host_shared
640 TARGET_LIBRARY_FALSE
641 TARGET_LIBRARY_TRUE
642 toolexeclibdir
643 toolexecdir
645 OTOOL64
646 OTOOL
647 LIPO
648 NMEDIT
649 DSYMUTIL
650 RANLIB
652 OBJDUMP
653 LN_S
655 ac_ct_DUMPBIN
656 DUMPBIN
658 FGREP
659 EGREP
660 GREP
662 LIBTOOL
663 CET_FLAGS
664 am__fastdepCC_FALSE
665 am__fastdepCC_TRUE
666 CCDEPMODE
667 am__nodep
668 AMDEPBACKSLASH
669 AMDEP_FALSE
670 AMDEP_TRUE
671 am__quote
672 am__include
673 DEPDIR
674 OBJEXT
675 EXEEXT
676 ac_ct_CC
677 CPPFLAGS
678 LDFLAGS
679 CFLAGS
681 COMPPATH
682 MAINT
683 MAINTAINER_MODE_FALSE
684 MAINTAINER_MODE_TRUE
685 AM_BACKSLASH
686 AM_DEFAULT_VERBOSITY
687 AM_DEFAULT_V
688 AM_V
689 am__untar
690 am__tar
691 AMTAR
692 am__leading_dot
693 SET_MAKE
695 mkdir_p
696 MKDIR_P
697 INSTALL_STRIP_PROGRAM
698 STRIP
699 install_sh
700 MAKEINFO
701 AUTOHEADER
702 AUTOMAKE
703 AUTOCONF
704 ACLOCAL
705 VERSION
706 PACKAGE
707 CYGPATH_W
708 am__isrc
709 INSTALL_DATA
710 INSTALL_SCRIPT
711 INSTALL_PROGRAM
712 mkinstalldirs
713 target_os
714 target_vendor
715 target_cpu
716 target
717 host_os
718 host_vendor
719 host_cpu
720 host
721 build_os
722 build_vendor
723 build_cpu
724 build
725 multi_basedir
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 enable_multilib
768 enable_silent_rules
769 enable_maintainer_mode
770 with_target_subdir
771 with_cross_host
772 with_system_zlib
773 enable_dependency_tracking
774 enable_cet
775 enable_shared
776 enable_static
777 with_pic
778 enable_fast_install
779 with_gnu_ld
780 enable_libtool_lock
781 with_toolexeclibdir
782 enable_host_shared
783 enable_host_pie
785 ac_precious_vars='build_alias
786 host_alias
787 target_alias
789 CPPFLAGS'
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 zlib 1.1.4 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/zlib]
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 zlib 1.1.4:";;
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-multilib build many library versions (default)
1410 --enable-silent-rules less verbose build output (undo: "make V=1")
1411 --disable-silent-rules verbose build output (undo: "make V=0")
1412 --enable-maintainer-mode
1413 enable make rules and dependencies not useful (and
1414 sometimes confusing) to the casual installer
1415 --enable-dependency-tracking
1416 do not reject slow dependency extractors
1417 --disable-dependency-tracking
1418 speeds up one-time build
1419 --enable-cet enable Intel CET in target libraries [default=auto]
1420 --enable-shared[=PKGS] build shared libraries [default=yes]
1421 --enable-static[=PKGS] build static libraries [default=yes]
1422 --enable-fast-install[=PKGS]
1423 optimize for fast installation [default=yes]
1424 --disable-libtool-lock avoid locking (might break parallel builds)
1425 --enable-host-shared build host code as shared libraries
1426 --enable-host-pie build host code as PIE
1428 Optional Packages:
1429 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1430 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1431 --with-target-subdir=SUBDIR
1432 configuring in a subdirectory
1433 --with-cross-host=HOST configuring with a cross compiler
1434 --with-system-zlib use installed libz
1435 --with-pic try to use only PIC/non-PIC objects [default=use
1436 both]
1437 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1438 --with-toolexeclibdir=DIR
1439 install libraries built with a cross compiler within
1442 Some influential environment variables:
1443 CC C compiler command
1444 CFLAGS C compiler flags
1445 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1446 nonstandard directory <lib dir>
1447 LIBS libraries to pass to the linker, e.g. -l<library>
1448 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1449 you have headers in a nonstandard directory <include dir>
1450 CPP C preprocessor
1452 Use these variables to override the choices made by `configure' or to help
1453 it to find libraries and programs with nonstandard names/locations.
1455 Report bugs to the package provider.
1456 _ACEOF
1457 ac_status=$?
1460 if test "$ac_init_help" = "recursive"; then
1461 # If there are subdirs, report their specific --help.
1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1463 test -d "$ac_dir" ||
1464 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1465 continue
1466 ac_builddir=.
1468 case "$ac_dir" in
1469 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1472 # A ".." for each directory in $ac_dir_suffix.
1473 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1474 case $ac_top_builddir_sub in
1475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477 esac ;;
1478 esac
1479 ac_abs_top_builddir=$ac_pwd
1480 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1481 # for backward compatibility:
1482 ac_top_builddir=$ac_top_build_prefix
1484 case $srcdir in
1485 .) # We are building in place.
1486 ac_srcdir=.
1487 ac_top_srcdir=$ac_top_builddir_sub
1488 ac_abs_top_srcdir=$ac_pwd ;;
1489 [\\/]* | ?:[\\/]* ) # Absolute name.
1490 ac_srcdir=$srcdir$ac_dir_suffix;
1491 ac_top_srcdir=$srcdir
1492 ac_abs_top_srcdir=$srcdir ;;
1493 *) # Relative name.
1494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1495 ac_top_srcdir=$ac_top_build_prefix$srcdir
1496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1497 esac
1498 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500 cd "$ac_dir" || { ac_status=$?; continue; }
1501 # Check for guested configure.
1502 if test -f "$ac_srcdir/configure.gnu"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1505 elif test -f "$ac_srcdir/configure"; then
1506 echo &&
1507 $SHELL "$ac_srcdir/configure" --help=recursive
1508 else
1509 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1510 fi || ac_status=$?
1511 cd "$ac_pwd" || { ac_status=$?; break; }
1512 done
1515 test -n "$ac_init_help" && exit $ac_status
1516 if $ac_init_version; then
1517 cat <<\_ACEOF
1518 zlib configure 1.1.4
1519 generated by GNU Autoconf 2.69
1521 Copyright (C) 2012 Free Software Foundation, Inc.
1522 This configure script is free software; the Free Software Foundation
1523 gives unlimited permission to copy, distribute and modify it.
1524 _ACEOF
1525 exit
1528 ## ------------------------ ##
1529 ## Autoconf initialization. ##
1530 ## ------------------------ ##
1532 # ac_fn_c_try_compile LINENO
1533 # --------------------------
1534 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1535 ac_fn_c_try_compile ()
1537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538 rm -f conftest.$ac_objext
1539 if { { ac_try="$ac_compile"
1540 case "(($ac_try" in
1541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542 *) ac_try_echo=$ac_try;;
1543 esac
1544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545 $as_echo "$ac_try_echo"; } >&5
1546 (eval "$ac_compile") 2>conftest.err
1547 ac_status=$?
1548 if test -s conftest.err; then
1549 grep -v '^ *+' conftest.err >conftest.er1
1550 cat conftest.er1 >&5
1551 mv -f conftest.er1 conftest.err
1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554 test $ac_status = 0; } && {
1555 test -z "$ac_c_werror_flag" ||
1556 test ! -s conftest.err
1557 } && test -s conftest.$ac_objext; then :
1558 ac_retval=0
1559 else
1560 $as_echo "$as_me: failed program was:" >&5
1561 sed 's/^/| /' conftest.$ac_ext >&5
1563 ac_retval=1
1565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1566 as_fn_set_status $ac_retval
1568 } # ac_fn_c_try_compile
1570 # ac_fn_c_try_link LINENO
1571 # -----------------------
1572 # Try to link conftest.$ac_ext, and return whether this succeeded.
1573 ac_fn_c_try_link ()
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 rm -f conftest.$ac_objext conftest$ac_exeext
1577 if { { ac_try="$ac_link"
1578 case "(($ac_try" in
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1581 esac
1582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583 $as_echo "$ac_try_echo"; } >&5
1584 (eval "$ac_link") 2>conftest.err
1585 ac_status=$?
1586 if test -s conftest.err; then
1587 grep -v '^ *+' conftest.err >conftest.er1
1588 cat conftest.er1 >&5
1589 mv -f conftest.er1 conftest.err
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } && {
1593 test -z "$ac_c_werror_flag" ||
1594 test ! -s conftest.err
1595 } && test -s conftest$ac_exeext && {
1596 test "$cross_compiling" = yes ||
1597 test -x conftest$ac_exeext
1598 }; then :
1599 ac_retval=0
1600 else
1601 $as_echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.$ac_ext >&5
1604 ac_retval=1
1606 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1607 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1608 # interfere with the next link command; also delete a directory that is
1609 # left behind by Apple's compiler. We do this before executing the actions.
1610 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612 as_fn_set_status $ac_retval
1614 } # ac_fn_c_try_link
1616 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1617 # -------------------------------------------------------
1618 # Tests whether HEADER exists and can be compiled using the include files in
1619 # INCLUDES, setting the cache variable VAR accordingly.
1620 ac_fn_c_check_header_compile ()
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1624 $as_echo_n "checking for $2... " >&6; }
1625 if eval \${$3+:} false; then :
1626 $as_echo_n "(cached) " >&6
1627 else
1628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1629 /* end confdefs.h. */
1631 #include <$2>
1632 _ACEOF
1633 if ac_fn_c_try_compile "$LINENO"; then :
1634 eval "$3=yes"
1635 else
1636 eval "$3=no"
1638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1640 eval ac_res=\$$3
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1642 $as_echo "$ac_res" >&6; }
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 } # ac_fn_c_check_header_compile
1647 # ac_fn_c_try_cpp LINENO
1648 # ----------------------
1649 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1650 ac_fn_c_try_cpp ()
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 if { { ac_try="$ac_cpp conftest.$ac_ext"
1654 case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1661 ac_status=$?
1662 if test -s conftest.err; then
1663 grep -v '^ *+' conftest.err >conftest.er1
1664 cat conftest.er1 >&5
1665 mv -f conftest.er1 conftest.err
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } > conftest.i && {
1669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1670 test ! -s conftest.err
1671 }; then :
1672 ac_retval=0
1673 else
1674 $as_echo "$as_me: failed program was:" >&5
1675 sed 's/^/| /' conftest.$ac_ext >&5
1677 ac_retval=1
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680 as_fn_set_status $ac_retval
1682 } # ac_fn_c_try_cpp
1684 # ac_fn_c_try_run LINENO
1685 # ----------------------
1686 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1687 # that executables *can* be run.
1688 ac_fn_c_try_run ()
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 if { { ac_try="$ac_link"
1692 case "(($ac_try" in
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1695 esac
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 $as_echo "$ac_try_echo"; } >&5
1698 (eval "$ac_link") 2>&5
1699 ac_status=$?
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1702 { { case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_try") 2>&5
1709 ac_status=$?
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; }; }; then :
1712 ac_retval=0
1713 else
1714 $as_echo "$as_me: program exited with status $ac_status" >&5
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1718 ac_retval=$ac_status
1720 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
1724 } # ac_fn_c_try_run
1726 # ac_fn_c_check_func LINENO FUNC VAR
1727 # ----------------------------------
1728 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1729 ac_fn_c_check_func ()
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733 $as_echo_n "checking for $2... " >&6; }
1734 if eval \${$3+:} false; then :
1735 $as_echo_n "(cached) " >&6
1736 else
1737 if test x$gcc_no_link = xyes; then
1738 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h. */
1742 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1744 #define $2 innocuous_$2
1746 /* System header to define __stub macros and hopefully few prototypes,
1747 which can conflict with char $2 (); below.
1748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1749 <limits.h> exists even on freestanding compilers. */
1751 #ifdef __STDC__
1752 # include <limits.h>
1753 #else
1754 # include <assert.h>
1755 #endif
1757 #undef $2
1759 /* Override any GCC internal prototype to avoid an error.
1760 Use char because int might match the return type of a GCC
1761 builtin and then its argument prototype would still apply. */
1762 #ifdef __cplusplus
1763 extern "C"
1764 #endif
1765 char $2 ();
1766 /* The GNU C library defines this for functions which it implements
1767 to always fail with ENOSYS. Some functions are actually named
1768 something starting with __ and the normal name is an alias. */
1769 #if defined __stub_$2 || defined __stub___$2
1770 choke me
1771 #endif
1774 main ()
1776 return $2 ();
1778 return 0;
1780 _ACEOF
1781 if ac_fn_c_try_link "$LINENO"; then :
1782 eval "$3=yes"
1783 else
1784 eval "$3=no"
1786 rm -f core conftest.err conftest.$ac_objext \
1787 conftest$ac_exeext conftest.$ac_ext
1789 eval ac_res=\$$3
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791 $as_echo "$ac_res" >&6; }
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794 } # ac_fn_c_check_func
1796 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1797 # -------------------------------------------------------
1798 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1799 # the include files in INCLUDES and setting the cache variable VAR
1800 # accordingly.
1801 ac_fn_c_check_header_mongrel ()
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 if eval \${$3+:} false; then :
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1806 $as_echo_n "checking for $2... " >&6; }
1807 if eval \${$3+:} false; then :
1808 $as_echo_n "(cached) " >&6
1810 eval ac_res=\$$3
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812 $as_echo "$ac_res" >&6; }
1813 else
1814 # Is the header compilable?
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1816 $as_echo_n "checking $2 usability... " >&6; }
1817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818 /* end confdefs.h. */
1820 #include <$2>
1821 _ACEOF
1822 if ac_fn_c_try_compile "$LINENO"; then :
1823 ac_header_compiler=yes
1824 else
1825 ac_header_compiler=no
1827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1829 $as_echo "$ac_header_compiler" >&6; }
1831 # Is the header present?
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1833 $as_echo_n "checking $2 presence... " >&6; }
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h. */
1836 #include <$2>
1837 _ACEOF
1838 if ac_fn_c_try_cpp "$LINENO"; then :
1839 ac_header_preproc=yes
1840 else
1841 ac_header_preproc=no
1843 rm -f conftest.err conftest.i conftest.$ac_ext
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1845 $as_echo "$ac_header_preproc" >&6; }
1847 # So? What about this header?
1848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1849 yes:no: )
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1851 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1853 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1855 no:yes:* )
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1857 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1859 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1861 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1863 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1865 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1867 esac
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if eval \${$3+:} false; then :
1871 $as_echo_n "(cached) " >&6
1872 else
1873 eval "$3=\$ac_header_compiler"
1875 eval ac_res=\$$3
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 } # ac_fn_c_check_header_mongrel
1882 cat >config.log <<_ACEOF
1883 This file contains any messages produced by compilers while
1884 running configure, to aid debugging if configure makes a mistake.
1886 It was created by zlib $as_me 1.1.4, which was
1887 generated by GNU Autoconf 2.69. Invocation command line was
1889 $ $0 $@
1891 _ACEOF
1892 exec 5>>config.log
1894 cat <<_ASUNAME
1895 ## --------- ##
1896 ## Platform. ##
1897 ## --------- ##
1899 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1900 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1901 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1902 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1903 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1905 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1906 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1908 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1909 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1910 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1911 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1912 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1913 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1914 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1916 _ASUNAME
1918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919 for as_dir in $PATH
1921 IFS=$as_save_IFS
1922 test -z "$as_dir" && as_dir=.
1923 $as_echo "PATH: $as_dir"
1924 done
1925 IFS=$as_save_IFS
1927 } >&5
1929 cat >&5 <<_ACEOF
1932 ## ----------- ##
1933 ## Core tests. ##
1934 ## ----------- ##
1936 _ACEOF
1939 # Keep a trace of the command line.
1940 # Strip out --no-create and --no-recursion so they do not pile up.
1941 # Strip out --silent because we don't want to record it for future runs.
1942 # Also quote any args containing shell meta-characters.
1943 # Make two passes to allow for proper duplicate-argument suppression.
1944 ac_configure_args=
1945 ac_configure_args0=
1946 ac_configure_args1=
1947 ac_must_keep_next=false
1948 for ac_pass in 1 2
1950 for ac_arg
1952 case $ac_arg in
1953 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1954 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1955 | -silent | --silent | --silen | --sile | --sil)
1956 continue ;;
1957 *\'*)
1958 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1959 esac
1960 case $ac_pass in
1961 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1963 as_fn_append ac_configure_args1 " '$ac_arg'"
1964 if test $ac_must_keep_next = true; then
1965 ac_must_keep_next=false # Got value, back to normal.
1966 else
1967 case $ac_arg in
1968 *=* | --config-cache | -C | -disable-* | --disable-* \
1969 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1970 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1971 | -with-* | --with-* | -without-* | --without-* | --x)
1972 case "$ac_configure_args0 " in
1973 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1974 esac
1976 -* ) ac_must_keep_next=true ;;
1977 esac
1979 as_fn_append ac_configure_args " '$ac_arg'"
1981 esac
1982 done
1983 done
1984 { ac_configure_args0=; unset ac_configure_args0;}
1985 { ac_configure_args1=; unset ac_configure_args1;}
1987 # When interrupted or exit'd, cleanup temporary files, and complete
1988 # config.log. We remove comments because anyway the quotes in there
1989 # would cause problems or look ugly.
1990 # WARNING: Use '\'' to represent an apostrophe within the trap.
1991 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1992 trap 'exit_status=$?
1993 # Save into config.log some information that might help in debugging.
1995 echo
1997 $as_echo "## ---------------- ##
1998 ## Cache variables. ##
1999 ## ---------------- ##"
2000 echo
2001 # The following way of writing the cache mishandles newlines in values,
2003 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2004 eval ac_val=\$$ac_var
2005 case $ac_val in #(
2006 *${as_nl}*)
2007 case $ac_var in #(
2008 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2009 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2010 esac
2011 case $ac_var in #(
2012 _ | IFS | as_nl) ;; #(
2013 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2014 *) { eval $ac_var=; unset $ac_var;} ;;
2015 esac ;;
2016 esac
2017 done
2018 (set) 2>&1 |
2019 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2020 *${as_nl}ac_space=\ *)
2021 sed -n \
2022 "s/'\''/'\''\\\\'\'''\''/g;
2023 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2024 ;; #(
2026 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2028 esac |
2029 sort
2031 echo
2033 $as_echo "## ----------------- ##
2034 ## Output variables. ##
2035 ## ----------------- ##"
2036 echo
2037 for ac_var in $ac_subst_vars
2039 eval ac_val=\$$ac_var
2040 case $ac_val in
2041 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2042 esac
2043 $as_echo "$ac_var='\''$ac_val'\''"
2044 done | sort
2045 echo
2047 if test -n "$ac_subst_files"; then
2048 $as_echo "## ------------------- ##
2049 ## File substitutions. ##
2050 ## ------------------- ##"
2051 echo
2052 for ac_var in $ac_subst_files
2054 eval ac_val=\$$ac_var
2055 case $ac_val in
2056 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2057 esac
2058 $as_echo "$ac_var='\''$ac_val'\''"
2059 done | sort
2060 echo
2063 if test -s confdefs.h; then
2064 $as_echo "## ----------- ##
2065 ## confdefs.h. ##
2066 ## ----------- ##"
2067 echo
2068 cat confdefs.h
2069 echo
2071 test "$ac_signal" != 0 &&
2072 $as_echo "$as_me: caught signal $ac_signal"
2073 $as_echo "$as_me: exit $exit_status"
2074 } >&5
2075 rm -f core *.core core.conftest.* &&
2076 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2077 exit $exit_status
2079 for ac_signal in 1 2 13 15; do
2080 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2081 done
2082 ac_signal=0
2084 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2085 rm -f -r conftest* confdefs.h
2087 $as_echo "/* confdefs.h */" > confdefs.h
2089 # Predefined preprocessor variables.
2091 cat >>confdefs.h <<_ACEOF
2092 #define PACKAGE_NAME "$PACKAGE_NAME"
2093 _ACEOF
2095 cat >>confdefs.h <<_ACEOF
2096 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2097 _ACEOF
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2101 _ACEOF
2103 cat >>confdefs.h <<_ACEOF
2104 #define PACKAGE_STRING "$PACKAGE_STRING"
2105 _ACEOF
2107 cat >>confdefs.h <<_ACEOF
2108 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2109 _ACEOF
2111 cat >>confdefs.h <<_ACEOF
2112 #define PACKAGE_URL "$PACKAGE_URL"
2113 _ACEOF
2116 # Let the site file select an alternate cache file if it wants to.
2117 # Prefer an explicitly selected file to automatically selected ones.
2118 ac_site_file1=NONE
2119 ac_site_file2=NONE
2120 if test -n "$CONFIG_SITE"; then
2121 # We do not want a PATH search for config.site.
2122 case $CONFIG_SITE in #((
2123 -*) ac_site_file1=./$CONFIG_SITE;;
2124 */*) ac_site_file1=$CONFIG_SITE;;
2125 *) ac_site_file1=./$CONFIG_SITE;;
2126 esac
2127 elif test "x$prefix" != xNONE; then
2128 ac_site_file1=$prefix/share/config.site
2129 ac_site_file2=$prefix/etc/config.site
2130 else
2131 ac_site_file1=$ac_default_prefix/share/config.site
2132 ac_site_file2=$ac_default_prefix/etc/config.site
2134 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2136 test "x$ac_site_file" = xNONE && continue
2137 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2139 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2140 sed 's/^/| /' "$ac_site_file" >&5
2141 . "$ac_site_file" \
2142 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2144 as_fn_error $? "failed to load site script $ac_site_file
2145 See \`config.log' for more details" "$LINENO" 5; }
2147 done
2149 if test -r "$cache_file"; then
2150 # Some versions of bash will fail to source /dev/null (special files
2151 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2152 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2154 $as_echo "$as_me: loading cache $cache_file" >&6;}
2155 case $cache_file in
2156 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2157 *) . "./$cache_file";;
2158 esac
2160 else
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2162 $as_echo "$as_me: creating cache $cache_file" >&6;}
2163 >$cache_file
2166 as_fn_append ac_header_list " stdlib.h"
2167 as_fn_append ac_header_list " unistd.h"
2168 as_fn_append ac_header_list " sys/param.h"
2169 # Check that the precious variables saved in the cache have kept the same
2170 # value.
2171 ac_cache_corrupted=false
2172 for ac_var in $ac_precious_vars; do
2173 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2174 eval ac_new_set=\$ac_env_${ac_var}_set
2175 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2176 eval ac_new_val=\$ac_env_${ac_var}_value
2177 case $ac_old_set,$ac_new_set in
2178 set,)
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2180 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2181 ac_cache_corrupted=: ;;
2182 ,set)
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2184 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2185 ac_cache_corrupted=: ;;
2186 ,);;
2188 if test "x$ac_old_val" != "x$ac_new_val"; then
2189 # differences in whitespace do not lead to failure.
2190 ac_old_val_w=`echo x $ac_old_val`
2191 ac_new_val_w=`echo x $ac_new_val`
2192 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2194 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2195 ac_cache_corrupted=:
2196 else
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2198 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2199 eval $ac_var=\$ac_old_val
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2202 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2204 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2205 fi;;
2206 esac
2207 # Pass precious variables to config.status.
2208 if test "$ac_new_set" = set; then
2209 case $ac_new_val in
2210 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2211 *) ac_arg=$ac_var=$ac_new_val ;;
2212 esac
2213 case " $ac_configure_args " in
2214 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2215 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2216 esac
2218 done
2219 if $ac_cache_corrupted; then
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2223 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2224 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2226 ## -------------------- ##
2227 ## Main body of script. ##
2228 ## -------------------- ##
2230 ac_ext=c
2231 ac_cpp='$CPP $CPPFLAGS'
2232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2242 if test -n "${with_target_subdir}"; then
2243 # Default to --enable-multilib
2244 # Check whether --enable-multilib was given.
2245 if test "${enable_multilib+set}" = set; then :
2246 enableval=$enable_multilib; case "$enableval" in
2247 yes) multilib=yes ;;
2248 no) multilib=no ;;
2249 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2250 esac
2251 else
2252 multilib=yes
2256 # We may get other options which we leave undocumented:
2257 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2258 # See config-ml.in if you want the gory details.
2260 if test "$srcdir" = "."; then
2261 if test "$with_target_subdir" != "."; then
2262 multi_basedir="$srcdir/$with_multisrctop../.."
2263 else
2264 multi_basedir="$srcdir/$with_multisrctop.."
2266 else
2267 multi_basedir="$srcdir/.."
2271 # Even if the default multilib is not a cross compilation,
2272 # it may be that some of the other multilibs are.
2273 if test $cross_compiling = no && test $multilib = yes \
2274 && test "x${with_multisubdir}" != x ; then
2275 cross_compiling=maybe
2278 ac_config_commands="$ac_config_commands default-1"
2282 ac_aux_dir=
2283 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2284 if test -f "$ac_dir/install-sh"; then
2285 ac_aux_dir=$ac_dir
2286 ac_install_sh="$ac_aux_dir/install-sh -c"
2287 break
2288 elif test -f "$ac_dir/install.sh"; then
2289 ac_aux_dir=$ac_dir
2290 ac_install_sh="$ac_aux_dir/install.sh -c"
2291 break
2292 elif test -f "$ac_dir/shtool"; then
2293 ac_aux_dir=$ac_dir
2294 ac_install_sh="$ac_aux_dir/shtool install -c"
2295 break
2297 done
2298 if test -z "$ac_aux_dir"; then
2299 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2302 # These three variables are undocumented and unsupported,
2303 # and are intended to be withdrawn in a future Autoconf release.
2304 # They can cause serious problems if a builder's source tree is in a directory
2305 # whose full name contains unusual characters.
2306 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2307 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2308 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2311 # Make sure we can run config.sub.
2312 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2313 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2316 $as_echo_n "checking build system type... " >&6; }
2317 if ${ac_cv_build+:} false; then :
2318 $as_echo_n "(cached) " >&6
2319 else
2320 ac_build_alias=$build_alias
2321 test "x$ac_build_alias" = x &&
2322 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2323 test "x$ac_build_alias" = x &&
2324 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2325 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2326 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2330 $as_echo "$ac_cv_build" >&6; }
2331 case $ac_cv_build in
2332 *-*-*) ;;
2333 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2334 esac
2335 build=$ac_cv_build
2336 ac_save_IFS=$IFS; IFS='-'
2337 set x $ac_cv_build
2338 shift
2339 build_cpu=$1
2340 build_vendor=$2
2341 shift; shift
2342 # Remember, the first character of IFS is used to create $*,
2343 # except with old shells:
2344 build_os=$*
2345 IFS=$ac_save_IFS
2346 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2350 $as_echo_n "checking host system type... " >&6; }
2351 if ${ac_cv_host+:} false; then :
2352 $as_echo_n "(cached) " >&6
2353 else
2354 if test "x$host_alias" = x; then
2355 ac_cv_host=$ac_cv_build
2356 else
2357 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2358 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2363 $as_echo "$ac_cv_host" >&6; }
2364 case $ac_cv_host in
2365 *-*-*) ;;
2366 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2367 esac
2368 host=$ac_cv_host
2369 ac_save_IFS=$IFS; IFS='-'
2370 set x $ac_cv_host
2371 shift
2372 host_cpu=$1
2373 host_vendor=$2
2374 shift; shift
2375 # Remember, the first character of IFS is used to create $*,
2376 # except with old shells:
2377 host_os=$*
2378 IFS=$ac_save_IFS
2379 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2383 $as_echo_n "checking target system type... " >&6; }
2384 if ${ac_cv_target+:} false; then :
2385 $as_echo_n "(cached) " >&6
2386 else
2387 if test "x$target_alias" = x; then
2388 ac_cv_target=$ac_cv_host
2389 else
2390 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2391 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2396 $as_echo "$ac_cv_target" >&6; }
2397 case $ac_cv_target in
2398 *-*-*) ;;
2399 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2400 esac
2401 target=$ac_cv_target
2402 ac_save_IFS=$IFS; IFS='-'
2403 set x $ac_cv_target
2404 shift
2405 target_cpu=$1
2406 target_vendor=$2
2407 shift; shift
2408 # Remember, the first character of IFS is used to create $*,
2409 # except with old shells:
2410 target_os=$*
2411 IFS=$ac_save_IFS
2412 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2415 # The aliases save the names the user supplied, while $host etc.
2416 # will get canonicalized.
2417 test -n "$target_alias" &&
2418 test "$program_prefix$program_suffix$program_transform_name" = \
2419 NONENONEs,x,x, &&
2420 program_prefix=${target_alias}-
2423 # This works around an automake problem.
2424 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
2427 am__api_version='1.15'
2429 # Find a good install program. We prefer a C program (faster),
2430 # so one script is as good as another. But avoid the broken or
2431 # incompatible versions:
2432 # SysV /etc/install, /usr/sbin/install
2433 # SunOS /usr/etc/install
2434 # IRIX /sbin/install
2435 # AIX /bin/install
2436 # AmigaOS /C/install, which installs bootblocks on floppy discs
2437 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2438 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2439 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2440 # OS/2's system install, which has a completely different semantic
2441 # ./install, which can be erroneously created by make from ./install.sh.
2442 # Reject install programs that cannot install multiple files.
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2444 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2445 if test -z "$INSTALL"; then
2446 if ${ac_cv_path_install+:} false; then :
2447 $as_echo_n "(cached) " >&6
2448 else
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 for as_dir in $PATH
2452 IFS=$as_save_IFS
2453 test -z "$as_dir" && as_dir=.
2454 # Account for people who put trailing slashes in PATH elements.
2455 case $as_dir/ in #((
2456 ./ | .// | /[cC]/* | \
2457 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2458 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2459 /usr/ucb/* ) ;;
2461 # OSF1 and SCO ODT 3.0 have their own names for install.
2462 # Don't use installbsd from OSF since it installs stuff as root
2463 # by default.
2464 for ac_prog in ginstall scoinst install; do
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2467 if test $ac_prog = install &&
2468 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2469 # AIX install. It has an incompatible calling convention.
2471 elif test $ac_prog = install &&
2472 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2473 # program-specific install script used by HP pwplus--don't use.
2475 else
2476 rm -rf conftest.one conftest.two conftest.dir
2477 echo one > conftest.one
2478 echo two > conftest.two
2479 mkdir conftest.dir
2480 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2481 test -s conftest.one && test -s conftest.two &&
2482 test -s conftest.dir/conftest.one &&
2483 test -s conftest.dir/conftest.two
2484 then
2485 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2486 break 3
2490 done
2491 done
2493 esac
2495 done
2496 IFS=$as_save_IFS
2498 rm -rf conftest.one conftest.two conftest.dir
2501 if test "${ac_cv_path_install+set}" = set; then
2502 INSTALL=$ac_cv_path_install
2503 else
2504 # As a last resort, use the slow shell script. Don't cache a
2505 # value for INSTALL within a source directory, because that will
2506 # break other packages using the cache if that directory is
2507 # removed, or if the value is a relative name.
2508 INSTALL=$ac_install_sh
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2512 $as_echo "$INSTALL" >&6; }
2514 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2515 # It thinks the first close brace ends the variable substitution.
2516 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2518 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2520 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2523 $as_echo_n "checking whether build environment is sane... " >&6; }
2524 # Reject unsafe characters in $srcdir or the absolute working directory
2525 # name. Accept space and tab only in the latter.
2526 am_lf='
2528 case `pwd` in
2529 *[\\\"\#\$\&\'\`$am_lf]*)
2530 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2531 esac
2532 case $srcdir in
2533 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2534 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2535 esac
2537 # Do 'set' in a subshell so we don't clobber the current shell's
2538 # arguments. Must try -L first in case configure is actually a
2539 # symlink; some systems play weird games with the mod time of symlinks
2540 # (eg FreeBSD returns the mod time of the symlink's containing
2541 # directory).
2542 if (
2543 am_has_slept=no
2544 for am_try in 1 2; do
2545 echo "timestamp, slept: $am_has_slept" > conftest.file
2546 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2547 if test "$*" = "X"; then
2548 # -L didn't work.
2549 set X `ls -t "$srcdir/configure" conftest.file`
2551 if test "$*" != "X $srcdir/configure conftest.file" \
2552 && test "$*" != "X conftest.file $srcdir/configure"; then
2554 # If neither matched, then we have a broken ls. This can happen
2555 # if, for instance, CONFIG_SHELL is bash and it inherits a
2556 # broken ls alias from the environment. This has actually
2557 # happened. Such a system could not be considered "sane".
2558 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2559 alias in your environment" "$LINENO" 5
2561 if test "$2" = conftest.file || test $am_try -eq 2; then
2562 break
2564 # Just in case.
2565 sleep 1
2566 am_has_slept=yes
2567 done
2568 test "$2" = conftest.file
2570 then
2571 # Ok.
2573 else
2574 as_fn_error $? "newly created file is older than distributed files!
2575 Check your system clock" "$LINENO" 5
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2578 $as_echo "yes" >&6; }
2579 # If we didn't sleep, we still need to ensure time stamps of config.status and
2580 # generated files are strictly newer.
2581 am_sleep_pid=
2582 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2583 ( sleep 1 ) &
2584 am_sleep_pid=$!
2587 rm -f conftest.file
2589 test "$program_prefix" != NONE &&
2590 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2591 # Use a double $ so make ignores it.
2592 test "$program_suffix" != NONE &&
2593 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2594 # Double any \ or $.
2595 # By default was `s,x,x', remove it if useless.
2596 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2597 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2599 # Expand $ac_aux_dir to an absolute path.
2600 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2602 if test x"${MISSING+set}" != xset; then
2603 case $am_aux_dir in
2604 *\ * | *\ *)
2605 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2607 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2608 esac
2610 # Use eval to expand $SHELL
2611 if eval "$MISSING --is-lightweight"; then
2612 am_missing_run="$MISSING "
2613 else
2614 am_missing_run=
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2616 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2619 if test x"${install_sh+set}" != xset; then
2620 case $am_aux_dir in
2621 *\ * | *\ *)
2622 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2624 install_sh="\${SHELL} $am_aux_dir/install-sh"
2625 esac
2628 # Installed binaries are usually stripped using 'strip' when the user
2629 # run "make install-strip". However 'strip' might not be the right
2630 # tool to use in cross-compilation environments, therefore Automake
2631 # will honor the 'STRIP' environment variable to overrule this program.
2632 if test "$cross_compiling" != no; then
2633 if test -n "$ac_tool_prefix"; then
2634 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2635 set dummy ${ac_tool_prefix}strip; ac_word=$2
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2637 $as_echo_n "checking for $ac_word... " >&6; }
2638 if ${ac_cv_prog_STRIP+:} false; then :
2639 $as_echo_n "(cached) " >&6
2640 else
2641 if test -n "$STRIP"; then
2642 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2643 else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH
2647 IFS=$as_save_IFS
2648 test -z "$as_dir" && as_dir=.
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2651 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 break 2
2655 done
2656 done
2657 IFS=$as_save_IFS
2661 STRIP=$ac_cv_prog_STRIP
2662 if test -n "$STRIP"; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2664 $as_echo "$STRIP" >&6; }
2665 else
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667 $as_echo "no" >&6; }
2672 if test -z "$ac_cv_prog_STRIP"; then
2673 ac_ct_STRIP=$STRIP
2674 # Extract the first word of "strip", so it can be a program name with args.
2675 set dummy strip; ac_word=$2
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677 $as_echo_n "checking for $ac_word... " >&6; }
2678 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2679 $as_echo_n "(cached) " >&6
2680 else
2681 if test -n "$ac_ct_STRIP"; then
2682 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691 ac_cv_prog_ac_ct_STRIP="strip"
2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2695 done
2696 done
2697 IFS=$as_save_IFS
2701 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2702 if test -n "$ac_ct_STRIP"; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2704 $as_echo "$ac_ct_STRIP" >&6; }
2705 else
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707 $as_echo "no" >&6; }
2710 if test "x$ac_ct_STRIP" = x; then
2711 STRIP=":"
2712 else
2713 case $cross_compiling:$ac_tool_warned in
2714 yes:)
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2717 ac_tool_warned=yes ;;
2718 esac
2719 STRIP=$ac_ct_STRIP
2721 else
2722 STRIP="$ac_cv_prog_STRIP"
2726 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2729 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2730 if test -z "$MKDIR_P"; then
2731 if ${ac_cv_path_mkdir+:} false; then :
2732 $as_echo_n "(cached) " >&6
2733 else
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_prog in mkdir gmkdir; do
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2742 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2743 'mkdir (GNU coreutils) '* | \
2744 'mkdir (coreutils) '* | \
2745 'mkdir (fileutils) '4.1*)
2746 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2747 break 3;;
2748 esac
2749 done
2750 done
2751 done
2752 IFS=$as_save_IFS
2756 test -d ./--version && rmdir ./--version
2757 if test "${ac_cv_path_mkdir+set}" = set; then
2758 MKDIR_P="$ac_cv_path_mkdir -p"
2759 else
2760 # As a last resort, use the slow shell script. Don't cache a
2761 # value for MKDIR_P within a source directory, because that will
2762 # break other packages using the cache if that directory is
2763 # removed, or if the value is a relative name.
2764 MKDIR_P="$ac_install_sh -d"
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2768 $as_echo "$MKDIR_P" >&6; }
2770 for ac_prog in gawk mawk nawk awk
2772 # Extract the first word of "$ac_prog", so it can be a program name with args.
2773 set dummy $ac_prog; ac_word=$2
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2775 $as_echo_n "checking for $ac_word... " >&6; }
2776 if ${ac_cv_prog_AWK+:} false; then :
2777 $as_echo_n "(cached) " >&6
2778 else
2779 if test -n "$AWK"; then
2780 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2781 else
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 for as_dir in $PATH
2785 IFS=$as_save_IFS
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2789 ac_cv_prog_AWK="$ac_prog"
2790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 break 2
2793 done
2794 done
2795 IFS=$as_save_IFS
2799 AWK=$ac_cv_prog_AWK
2800 if test -n "$AWK"; then
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2802 $as_echo "$AWK" >&6; }
2803 else
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805 $as_echo "no" >&6; }
2809 test -n "$AWK" && break
2810 done
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2813 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2814 set x ${MAKE-make}
2815 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2816 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2817 $as_echo_n "(cached) " >&6
2818 else
2819 cat >conftest.make <<\_ACEOF
2820 SHELL = /bin/sh
2821 all:
2822 @echo '@@@%%%=$(MAKE)=@@@%%%'
2823 _ACEOF
2824 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2825 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2826 *@@@%%%=?*=@@@%%%*)
2827 eval ac_cv_prog_make_${ac_make}_set=yes;;
2829 eval ac_cv_prog_make_${ac_make}_set=no;;
2830 esac
2831 rm -f conftest.make
2833 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2835 $as_echo "yes" >&6; }
2836 SET_MAKE=
2837 else
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2840 SET_MAKE="MAKE=${MAKE-make}"
2843 rm -rf .tst 2>/dev/null
2844 mkdir .tst 2>/dev/null
2845 if test -d .tst; then
2846 am__leading_dot=.
2847 else
2848 am__leading_dot=_
2850 rmdir .tst 2>/dev/null
2852 # Check whether --enable-silent-rules was given.
2853 if test "${enable_silent_rules+set}" = set; then :
2854 enableval=$enable_silent_rules;
2857 case $enable_silent_rules in # (((
2858 yes) AM_DEFAULT_VERBOSITY=0;;
2859 no) AM_DEFAULT_VERBOSITY=1;;
2860 *) AM_DEFAULT_VERBOSITY=1;;
2861 esac
2862 am_make=${MAKE-make}
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2864 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2865 if ${am_cv_make_support_nested_variables+:} false; then :
2866 $as_echo_n "(cached) " >&6
2867 else
2868 if $as_echo 'TRUE=$(BAR$(V))
2869 BAR0=false
2870 BAR1=true
2872 am__doit:
2873 @$(TRUE)
2874 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2875 am_cv_make_support_nested_variables=yes
2876 else
2877 am_cv_make_support_nested_variables=no
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2881 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2882 if test $am_cv_make_support_nested_variables = yes; then
2883 AM_V='$(V)'
2884 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2885 else
2886 AM_V=$AM_DEFAULT_VERBOSITY
2887 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2889 AM_BACKSLASH='\'
2891 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2892 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2893 # is not polluted with repeated "-I."
2894 am__isrc=' -I$(srcdir)'
2895 # test to see if srcdir already configured
2896 if test -f $srcdir/config.status; then
2897 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2901 # test whether we have cygpath
2902 if test -z "$CYGPATH_W"; then
2903 if (cygpath --version) >/dev/null 2>/dev/null; then
2904 CYGPATH_W='cygpath -w'
2905 else
2906 CYGPATH_W=echo
2911 # Define the identity of the package.
2912 PACKAGE='zlib'
2913 VERSION='1.1.4'
2916 cat >>confdefs.h <<_ACEOF
2917 #define PACKAGE "$PACKAGE"
2918 _ACEOF
2921 cat >>confdefs.h <<_ACEOF
2922 #define VERSION "$VERSION"
2923 _ACEOF
2925 # Some tools Automake needs.
2927 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2930 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2933 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2936 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2939 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2941 # For better backward compatibility. To be removed once Automake 1.9.x
2942 # dies out for good. For more background, see:
2943 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2944 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2945 mkdir_p='$(MKDIR_P)'
2947 # We need awk for the "check" target (and possibly the TAP driver). The
2948 # system "awk" is bad on some platforms.
2949 # Always define AMTAR for backward compatibility. Yes, it's still used
2950 # in the wild :-( We should find a proper way to deprecate it ...
2951 AMTAR='$${TAR-tar}'
2954 # We'll loop over all known methods to create a tar archive until one works.
2955 _am_tools='gnutar pax cpio none'
2957 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2964 # POSIX will say in a future version that running "rm -f" with no argument
2965 # is OK; and we want to be able to make that assumption in our Makefile
2966 # recipes. So use an aggressive probe to check that the usage we want is
2967 # actually supported "in the wild" to an acceptable degree.
2968 # See automake bug#10828.
2969 # To make any issue more visible, cause the running configure to be aborted
2970 # by default if the 'rm' program in use doesn't match our expectations; the
2971 # user can still override this though.
2972 if rm -f && rm -fr && rm -rf; then : OK; else
2973 cat >&2 <<'END'
2974 Oops!
2976 Your 'rm' program seems unable to run without file operands specified
2977 on the command line, even when the '-f' option is present. This is contrary
2978 to the behaviour of most rm programs out there, and not conforming with
2979 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2981 Please tell bug-automake@gnu.org about your system, including the value
2982 of your $PATH and any error possibly output before this message. This
2983 can help us improve future automake versions.
2986 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2987 echo 'Configuration will proceed anyway, since you have set the' >&2
2988 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2989 echo >&2
2990 else
2991 cat >&2 <<'END'
2992 Aborting the configuration process, to ensure you take notice of the issue.
2994 You can download and install GNU coreutils to get an 'rm' implementation
2995 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2997 If you want to complete the configuration process using your problematic
2998 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2999 to "yes", and re-run configure.
3002 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3009 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3010 # Check whether --enable-maintainer-mode was given.
3011 if test "${enable_maintainer_mode+set}" = set; then :
3012 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3013 else
3014 USE_MAINTAINER_MODE=no
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3018 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3019 if test $USE_MAINTAINER_MODE = yes; then
3020 MAINTAINER_MODE_TRUE=
3021 MAINTAINER_MODE_FALSE='#'
3022 else
3023 MAINTAINER_MODE_TRUE='#'
3024 MAINTAINER_MODE_FALSE=
3027 MAINT=$MAINTAINER_MODE_TRUE
3032 # Check whether --with-target-subdir was given.
3033 if test "${with_target_subdir+set}" = set; then :
3034 withval=$with_target_subdir;
3038 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
3039 COMPPATH=.
3040 else
3041 COMPPATH=..
3046 # Check whether --with-cross-host was given.
3047 if test "${with_cross_host+set}" = set; then :
3048 withval=$with_cross_host;
3052 # Check whether --enable-multilib was given.
3053 if test "${enable_multilib+set}" = set; then :
3054 enableval=$enable_multilib; case "${enableval}" in
3055 yes) multilib=yes ;;
3056 no) multilib=no ;;
3057 *) as_fn_error $? "bad value ${enableval} for multilib option" "$LINENO" 5 ;;
3058 esac
3059 else
3060 test -z "$with_target_subdir" && multilib=no || multilib=yes
3064 # Check whether --with-system-zlib was given.
3065 if test "${with_system_zlib+set}" = set; then :
3066 withval=$with_system_zlib;
3070 # Make sure we don't test executables when making cross-tools.
3073 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3074 # We must force CC to /not/ be precious variables; otherwise
3075 # the wrong, non-multilib-adjusted value will be used in multilibs.
3076 # As a side effect, we have to subst CFLAGS ourselves.
3080 ac_ext=c
3081 ac_cpp='$CPP $CPPFLAGS'
3082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3085 if test -n "$ac_tool_prefix"; then
3086 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3087 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if ${ac_cv_prog_CC+:} false; then :
3091 $as_echo_n "(cached) " >&6
3092 else
3093 if test -n "$CC"; then
3094 ac_cv_prog_CC="$CC" # Let the user override the test.
3095 else
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 for as_dir in $PATH
3099 IFS=$as_save_IFS
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3103 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 break 2
3107 done
3108 done
3109 IFS=$as_save_IFS
3113 CC=$ac_cv_prog_CC
3114 if test -n "$CC"; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3116 $as_echo "$CC" >&6; }
3117 else
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119 $as_echo "no" >&6; }
3124 if test -z "$ac_cv_prog_CC"; then
3125 ac_ct_CC=$CC
3126 # Extract the first word of "gcc", so it can be a program name with args.
3127 set dummy gcc; ac_word=$2
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129 $as_echo_n "checking for $ac_word... " >&6; }
3130 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3131 $as_echo_n "(cached) " >&6
3132 else
3133 if test -n "$ac_ct_CC"; then
3134 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3135 else
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 for as_dir in $PATH
3139 IFS=$as_save_IFS
3140 test -z "$as_dir" && as_dir=.
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3143 ac_cv_prog_ac_ct_CC="gcc"
3144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145 break 2
3147 done
3148 done
3149 IFS=$as_save_IFS
3153 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3154 if test -n "$ac_ct_CC"; then
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3156 $as_echo "$ac_ct_CC" >&6; }
3157 else
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3162 if test "x$ac_ct_CC" = x; then
3163 CC=""
3164 else
3165 case $cross_compiling:$ac_tool_warned in
3166 yes:)
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3169 ac_tool_warned=yes ;;
3170 esac
3171 CC=$ac_ct_CC
3173 else
3174 CC="$ac_cv_prog_CC"
3177 if test -z "$CC"; then
3178 if test -n "$ac_tool_prefix"; then
3179 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3180 set dummy ${ac_tool_prefix}cc; ac_word=$2
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3182 $as_echo_n "checking for $ac_word... " >&6; }
3183 if ${ac_cv_prog_CC+:} false; then :
3184 $as_echo_n "(cached) " >&6
3185 else
3186 if test -n "$CC"; then
3187 ac_cv_prog_CC="$CC" # Let the user override the test.
3188 else
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 for as_dir in $PATH
3192 IFS=$as_save_IFS
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3196 ac_cv_prog_CC="${ac_tool_prefix}cc"
3197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 break 2
3200 done
3201 done
3202 IFS=$as_save_IFS
3206 CC=$ac_cv_prog_CC
3207 if test -n "$CC"; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3209 $as_echo "$CC" >&6; }
3210 else
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3212 $as_echo "no" >&6; }
3218 if test -z "$CC"; then
3219 # Extract the first word of "cc", so it can be a program name with args.
3220 set dummy cc; ac_word=$2
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222 $as_echo_n "checking for $ac_word... " >&6; }
3223 if ${ac_cv_prog_CC+:} false; then :
3224 $as_echo_n "(cached) " >&6
3225 else
3226 if test -n "$CC"; then
3227 ac_cv_prog_CC="$CC" # Let the user override the test.
3228 else
3229 ac_prog_rejected=no
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH
3233 IFS=$as_save_IFS
3234 test -z "$as_dir" && as_dir=.
3235 for ac_exec_ext in '' $ac_executable_extensions; do
3236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3237 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3238 ac_prog_rejected=yes
3239 continue
3241 ac_cv_prog_CC="cc"
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
3249 if test $ac_prog_rejected = yes; then
3250 # We found a bogon in the path, so make sure we never use it.
3251 set dummy $ac_cv_prog_CC
3252 shift
3253 if test $# != 0; then
3254 # We chose a different compiler from the bogus one.
3255 # However, it has the same basename, so the bogon will be chosen
3256 # first if we set CC to just the basename; use the full file name.
3257 shift
3258 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3263 CC=$ac_cv_prog_CC
3264 if test -n "$CC"; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3266 $as_echo "$CC" >&6; }
3267 else
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3274 if test -z "$CC"; then
3275 if test -n "$ac_tool_prefix"; then
3276 for ac_prog in cl.exe
3278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3279 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281 $as_echo_n "checking for $ac_word... " >&6; }
3282 if ${ac_cv_prog_CC+:} false; then :
3283 $as_echo_n "(cached) " >&6
3284 else
3285 if test -n "$CC"; then
3286 ac_cv_prog_CC="$CC" # Let the user override the test.
3287 else
3288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289 for as_dir in $PATH
3291 IFS=$as_save_IFS
3292 test -z "$as_dir" && as_dir=.
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3295 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 break 2
3299 done
3300 done
3301 IFS=$as_save_IFS
3305 CC=$ac_cv_prog_CC
3306 if test -n "$CC"; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3308 $as_echo "$CC" >&6; }
3309 else
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 $as_echo "no" >&6; }
3315 test -n "$CC" && break
3316 done
3318 if test -z "$CC"; then
3319 ac_ct_CC=$CC
3320 for ac_prog in cl.exe
3322 # Extract the first word of "$ac_prog", so it can be a program name with args.
3323 set dummy $ac_prog; ac_word=$2
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3325 $as_echo_n "checking for $ac_word... " >&6; }
3326 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3327 $as_echo_n "(cached) " >&6
3328 else
3329 if test -n "$ac_ct_CC"; then
3330 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3331 else
3332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3333 for as_dir in $PATH
3335 IFS=$as_save_IFS
3336 test -z "$as_dir" && as_dir=.
3337 for ac_exec_ext in '' $ac_executable_extensions; do
3338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3339 ac_cv_prog_ac_ct_CC="$ac_prog"
3340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3341 break 2
3343 done
3344 done
3345 IFS=$as_save_IFS
3349 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3350 if test -n "$ac_ct_CC"; then
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3352 $as_echo "$ac_ct_CC" >&6; }
3353 else
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355 $as_echo "no" >&6; }
3359 test -n "$ac_ct_CC" && break
3360 done
3362 if test "x$ac_ct_CC" = x; then
3363 CC=""
3364 else
3365 case $cross_compiling:$ac_tool_warned in
3366 yes:)
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3369 ac_tool_warned=yes ;;
3370 esac
3371 CC=$ac_ct_CC
3378 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3380 as_fn_error $? "no acceptable C compiler found in \$PATH
3381 See \`config.log' for more details" "$LINENO" 5; }
3383 # Provide some information about the compiler.
3384 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3385 set X $ac_compile
3386 ac_compiler=$2
3387 for ac_option in --version -v -V -qversion; do
3388 { { ac_try="$ac_compiler $ac_option >&5"
3389 case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3392 esac
3393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394 $as_echo "$ac_try_echo"; } >&5
3395 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3396 ac_status=$?
3397 if test -s conftest.err; then
3398 sed '10a\
3399 ... rest of stderr output deleted ...
3400 10q' conftest.err >conftest.er1
3401 cat conftest.er1 >&5
3403 rm -f conftest.er1 conftest.err
3404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3405 test $ac_status = 0; }
3406 done
3408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409 /* end confdefs.h. */
3410 #include <stdio.h>
3412 main ()
3414 printf ("hello world\n");
3416 return 0;
3418 _ACEOF
3419 # FIXME: Cleanup?
3420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3421 (eval $ac_link) 2>&5
3422 ac_status=$?
3423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3424 test $ac_status = 0; }; then :
3425 gcc_no_link=no
3426 else
3427 gcc_no_link=yes
3429 if test x$gcc_no_link = xyes; then
3430 # Setting cross_compile will disable run tests; it will
3431 # also disable AC_CHECK_FILE but that's generally
3432 # correct if we can't link.
3433 cross_compiling=yes
3434 EXEEXT=
3435 else
3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h. */
3440 main ()
3444 return 0;
3446 _ACEOF
3447 ac_clean_files_save=$ac_clean_files
3448 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3449 # Try to create an executable without -o first, disregard a.out.
3450 # It will help us diagnose broken compilers, and finding out an intuition
3451 # of exeext.
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3453 $as_echo_n "checking whether the C compiler works... " >&6; }
3454 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3456 # The possible output files:
3457 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3459 ac_rmfiles=
3460 for ac_file in $ac_files
3462 case $ac_file in
3463 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3464 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3465 esac
3466 done
3467 rm -f $ac_rmfiles
3469 if { { ac_try="$ac_link_default"
3470 case "(($ac_try" in
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3473 esac
3474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3475 $as_echo "$ac_try_echo"; } >&5
3476 (eval "$ac_link_default") 2>&5
3477 ac_status=$?
3478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3479 test $ac_status = 0; }; then :
3480 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3481 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3482 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3483 # so that the user can short-circuit this test for compilers unknown to
3484 # Autoconf.
3485 for ac_file in $ac_files ''
3487 test -f "$ac_file" || continue
3488 case $ac_file in
3489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3491 [ab].out )
3492 # We found the default executable, but exeext='' is most
3493 # certainly right.
3494 break;;
3495 *.* )
3496 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3497 then :; else
3498 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3500 # We set ac_cv_exeext here because the later test for it is not
3501 # safe: cross compilers may not add the suffix if given an `-o'
3502 # argument, so we may need to know it at that point already.
3503 # Even if this section looks crufty: it has the advantage of
3504 # actually working.
3505 break;;
3507 break;;
3508 esac
3509 done
3510 test "$ac_cv_exeext" = no && ac_cv_exeext=
3512 else
3513 ac_file=''
3515 if test -z "$ac_file"; then :
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3517 $as_echo "no" >&6; }
3518 $as_echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523 as_fn_error 77 "C compiler cannot create executables
3524 See \`config.log' for more details" "$LINENO" 5; }
3525 else
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3527 $as_echo "yes" >&6; }
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3530 $as_echo_n "checking for C compiler default output file name... " >&6; }
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3532 $as_echo "$ac_file" >&6; }
3533 ac_exeext=$ac_cv_exeext
3535 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3536 ac_clean_files=$ac_clean_files_save
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3538 $as_echo_n "checking for suffix of executables... " >&6; }
3539 if { { ac_try="$ac_link"
3540 case "(($ac_try" in
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3543 esac
3544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3545 $as_echo "$ac_try_echo"; } >&5
3546 (eval "$ac_link") 2>&5
3547 ac_status=$?
3548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3549 test $ac_status = 0; }; then :
3550 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3551 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3552 # work properly (i.e., refer to `conftest.exe'), while it won't with
3553 # `rm'.
3554 for ac_file in conftest.exe conftest conftest.*; do
3555 test -f "$ac_file" || continue
3556 case $ac_file in
3557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3558 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3559 break;;
3560 * ) break;;
3561 esac
3562 done
3563 else
3564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3566 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3567 See \`config.log' for more details" "$LINENO" 5; }
3569 rm -f conftest conftest$ac_cv_exeext
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3571 $as_echo "$ac_cv_exeext" >&6; }
3573 rm -f conftest.$ac_ext
3574 EXEEXT=$ac_cv_exeext
3575 ac_exeext=$EXEEXT
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3578 #include <stdio.h>
3580 main ()
3582 FILE *f = fopen ("conftest.out", "w");
3583 return ferror (f) || fclose (f) != 0;
3586 return 0;
3588 _ACEOF
3589 ac_clean_files="$ac_clean_files conftest.out"
3590 # Check that the compiler produces executables we can run. If not, either
3591 # the compiler is broken, or we cross compile.
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3593 $as_echo_n "checking whether we are cross compiling... " >&6; }
3594 if test "$cross_compiling" != yes; then
3595 { { ac_try="$ac_link"
3596 case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3599 esac
3600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3601 $as_echo "$ac_try_echo"; } >&5
3602 (eval "$ac_link") 2>&5
3603 ac_status=$?
3604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3605 test $ac_status = 0; }
3606 if { ac_try='./conftest$ac_cv_exeext'
3607 { { case "(($ac_try" in
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3610 esac
3611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612 $as_echo "$ac_try_echo"; } >&5
3613 (eval "$ac_try") 2>&5
3614 ac_status=$?
3615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3616 test $ac_status = 0; }; }; then
3617 cross_compiling=no
3618 else
3619 if test "$cross_compiling" = maybe; then
3620 cross_compiling=yes
3621 else
3622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3624 as_fn_error $? "cannot run C compiled programs.
3625 If you meant to cross compile, use \`--host'.
3626 See \`config.log' for more details" "$LINENO" 5; }
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3631 $as_echo "$cross_compiling" >&6; }
3633 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3634 ac_clean_files=$ac_clean_files_save
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3637 $as_echo_n "checking for suffix of object files... " >&6; }
3638 if ${ac_cv_objext+:} false; then :
3639 $as_echo_n "(cached) " >&6
3640 else
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h. */
3645 main ()
3649 return 0;
3651 _ACEOF
3652 rm -f conftest.o conftest.obj
3653 if { { ac_try="$ac_compile"
3654 case "(($ac_try" in
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3657 esac
3658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3659 $as_echo "$ac_try_echo"; } >&5
3660 (eval "$ac_compile") 2>&5
3661 ac_status=$?
3662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663 test $ac_status = 0; }; then :
3664 for ac_file in conftest.o conftest.obj 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 ) ;;
3668 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3669 break;;
3670 esac
3671 done
3672 else
3673 $as_echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.$ac_ext >&5
3676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3678 as_fn_error $? "cannot compute suffix of object files: cannot compile
3679 See \`config.log' for more details" "$LINENO" 5; }
3681 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3684 $as_echo "$ac_cv_objext" >&6; }
3685 OBJEXT=$ac_cv_objext
3686 ac_objext=$OBJEXT
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3688 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3689 if ${ac_cv_c_compiler_gnu+:} false; then :
3690 $as_echo_n "(cached) " >&6
3691 else
3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693 /* end confdefs.h. */
3696 main ()
3698 #ifndef __GNUC__
3699 choke me
3700 #endif
3703 return 0;
3705 _ACEOF
3706 if ac_fn_c_try_compile "$LINENO"; then :
3707 ac_compiler_gnu=yes
3708 else
3709 ac_compiler_gnu=no
3711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3712 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3716 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3717 if test $ac_compiler_gnu = yes; then
3718 GCC=yes
3719 else
3720 GCC=
3722 ac_test_CFLAGS=${CFLAGS+set}
3723 ac_save_CFLAGS=$CFLAGS
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3725 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3726 if ${ac_cv_prog_cc_g+:} false; then :
3727 $as_echo_n "(cached) " >&6
3728 else
3729 ac_save_c_werror_flag=$ac_c_werror_flag
3730 ac_c_werror_flag=yes
3731 ac_cv_prog_cc_g=no
3732 CFLAGS="-g"
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h. */
3737 main ()
3741 return 0;
3743 _ACEOF
3744 if ac_fn_c_try_compile "$LINENO"; then :
3745 ac_cv_prog_cc_g=yes
3746 else
3747 CFLAGS=""
3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 /* end confdefs.h. */
3752 main ()
3756 return 0;
3758 _ACEOF
3759 if ac_fn_c_try_compile "$LINENO"; then :
3761 else
3762 ac_c_werror_flag=$ac_save_c_werror_flag
3763 CFLAGS="-g"
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3768 main ()
3772 return 0;
3774 _ACEOF
3775 if ac_fn_c_try_compile "$LINENO"; then :
3776 ac_cv_prog_cc_g=yes
3778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3783 ac_c_werror_flag=$ac_save_c_werror_flag
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3786 $as_echo "$ac_cv_prog_cc_g" >&6; }
3787 if test "$ac_test_CFLAGS" = set; then
3788 CFLAGS=$ac_save_CFLAGS
3789 elif test $ac_cv_prog_cc_g = yes; then
3790 if test "$GCC" = yes; then
3791 CFLAGS="-g -O2"
3792 else
3793 CFLAGS="-g"
3795 else
3796 if test "$GCC" = yes; then
3797 CFLAGS="-O2"
3798 else
3799 CFLAGS=
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3803 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3804 if ${ac_cv_prog_cc_c89+:} false; then :
3805 $as_echo_n "(cached) " >&6
3806 else
3807 ac_cv_prog_cc_c89=no
3808 ac_save_CC=$CC
3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h. */
3811 #include <stdarg.h>
3812 #include <stdio.h>
3813 struct stat;
3814 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3815 struct buf { int x; };
3816 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3817 static char *e (p, i)
3818 char **p;
3819 int i;
3821 return p[i];
3823 static char *f (char * (*g) (char **, int), char **p, ...)
3825 char *s;
3826 va_list v;
3827 va_start (v,p);
3828 s = g (p, va_arg (v,int));
3829 va_end (v);
3830 return s;
3833 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3834 function prototypes and stuff, but not '\xHH' hex character constants.
3835 These don't provoke an error unfortunately, instead are silently treated
3836 as 'x'. The following induces an error, until -std is added to get
3837 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3838 array size at least. It's necessary to write '\x00'==0 to get something
3839 that's true only with -std. */
3840 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3842 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3843 inside strings and character constants. */
3844 #define FOO(x) 'x'
3845 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3847 int test (int i, double x);
3848 struct s1 {int (*f) (int a);};
3849 struct s2 {int (*f) (double a);};
3850 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3851 int argc;
3852 char **argv;
3854 main ()
3856 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3858 return 0;
3860 _ACEOF
3861 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3862 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3864 CC="$ac_save_CC $ac_arg"
3865 if ac_fn_c_try_compile "$LINENO"; then :
3866 ac_cv_prog_cc_c89=$ac_arg
3868 rm -f core conftest.err conftest.$ac_objext
3869 test "x$ac_cv_prog_cc_c89" != "xno" && break
3870 done
3871 rm -f conftest.$ac_ext
3872 CC=$ac_save_CC
3875 # AC_CACHE_VAL
3876 case "x$ac_cv_prog_cc_c89" in
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3879 $as_echo "none needed" >&6; } ;;
3880 xno)
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3882 $as_echo "unsupported" >&6; } ;;
3884 CC="$CC $ac_cv_prog_cc_c89"
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3886 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3887 esac
3888 if test "x$ac_cv_prog_cc_c89" != xno; then :
3892 ac_ext=c
3893 ac_cpp='$CPP $CPPFLAGS'
3894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3898 ac_ext=c
3899 ac_cpp='$CPP $CPPFLAGS'
3900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3904 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3905 if ${am_cv_prog_cc_c_o+:} false; then :
3906 $as_echo_n "(cached) " >&6
3907 else
3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h. */
3912 main ()
3916 return 0;
3918 _ACEOF
3919 # Make sure it works both with $CC and with simple cc.
3920 # Following AC_PROG_CC_C_O, we do the test twice because some
3921 # compilers refuse to overwrite an existing .o file with -o,
3922 # though they will create one.
3923 am_cv_prog_cc_c_o=yes
3924 for am_i in 1 2; do
3925 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3926 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3927 ac_status=$?
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); } \
3930 && test -f conftest2.$ac_objext; then
3931 : OK
3932 else
3933 am_cv_prog_cc_c_o=no
3934 break
3936 done
3937 rm -f core conftest*
3938 unset am_i
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3941 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3942 if test "$am_cv_prog_cc_c_o" != yes; then
3943 # Losing compiler, so override with the script.
3944 # FIXME: It is wrong to rewrite CC.
3945 # But if we don't then we get into trouble of one sort or another.
3946 # A longer-term fix would be to have automake use am__CC in this case,
3947 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3948 CC="$am_aux_dir/compile $CC"
3950 ac_ext=c
3951 ac_cpp='$CPP $CPPFLAGS'
3952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3956 DEPDIR="${am__leading_dot}deps"
3958 ac_config_commands="$ac_config_commands depfiles"
3961 am_make=${MAKE-make}
3962 cat > confinc << 'END'
3963 am__doit:
3964 @echo this is the am__doit target
3965 .PHONY: am__doit
3967 # If we don't find an include directive, just comment out the code.
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3969 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3970 am__include="#"
3971 am__quote=
3972 _am_result=none
3973 # First try GNU make style include.
3974 echo "include confinc" > confmf
3975 # Ignore all kinds of additional output from 'make'.
3976 case `$am_make -s -f confmf 2> /dev/null` in #(
3977 *the\ am__doit\ target*)
3978 am__include=include
3979 am__quote=
3980 _am_result=GNU
3982 esac
3983 # Now try BSD make style include.
3984 if test "$am__include" = "#"; then
3985 echo '.include "confinc"' > confmf
3986 case `$am_make -s -f confmf 2> /dev/null` in #(
3987 *the\ am__doit\ target*)
3988 am__include=.include
3989 am__quote="\""
3990 _am_result=BSD
3992 esac
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3997 $as_echo "$_am_result" >&6; }
3998 rm -f confinc confmf
4000 # Check whether --enable-dependency-tracking was given.
4001 if test "${enable_dependency_tracking+set}" = set; then :
4002 enableval=$enable_dependency_tracking;
4005 if test "x$enable_dependency_tracking" != xno; then
4006 am_depcomp="$ac_aux_dir/depcomp"
4007 AMDEPBACKSLASH='\'
4008 am__nodep='_no'
4010 if test "x$enable_dependency_tracking" != xno; then
4011 AMDEP_TRUE=
4012 AMDEP_FALSE='#'
4013 else
4014 AMDEP_TRUE='#'
4015 AMDEP_FALSE=
4020 depcc="$CC" am_compiler_list=
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4023 $as_echo_n "checking dependency style of $depcc... " >&6; }
4024 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4025 $as_echo_n "(cached) " >&6
4026 else
4027 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4028 # We make a subdir and do the tests there. Otherwise we can end up
4029 # making bogus files that we don't know about and never remove. For
4030 # instance it was reported that on HP-UX the gcc test will end up
4031 # making a dummy file named 'D' -- because '-MD' means "put the output
4032 # in D".
4033 rm -rf conftest.dir
4034 mkdir conftest.dir
4035 # Copy depcomp to subdir because otherwise we won't find it if we're
4036 # using a relative directory.
4037 cp "$am_depcomp" conftest.dir
4038 cd conftest.dir
4039 # We will build objects and dependencies in a subdirectory because
4040 # it helps to detect inapplicable dependency modes. For instance
4041 # both Tru64's cc and ICC support -MD to output dependencies as a
4042 # side effect of compilation, but ICC will put the dependencies in
4043 # the current directory while Tru64 will put them in the object
4044 # directory.
4045 mkdir sub
4047 am_cv_CC_dependencies_compiler_type=none
4048 if test "$am_compiler_list" = ""; then
4049 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4051 am__universal=false
4052 case " $depcc " in #(
4053 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4054 esac
4056 for depmode in $am_compiler_list; do
4057 # Setup a source with many dependencies, because some compilers
4058 # like to wrap large dependency lists on column 80 (with \), and
4059 # we should not choose a depcomp mode which is confused by this.
4061 # We need to recreate these files for each test, as the compiler may
4062 # overwrite some of them when testing with obscure command lines.
4063 # This happens at least with the AIX C compiler.
4064 : > sub/conftest.c
4065 for i in 1 2 3 4 5 6; do
4066 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4067 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4068 # Solaris 10 /bin/sh.
4069 echo '/* dummy */' > sub/conftst$i.h
4070 done
4071 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4073 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4074 # mode. It turns out that the SunPro C++ compiler does not properly
4075 # handle '-M -o', and we need to detect this. Also, some Intel
4076 # versions had trouble with output in subdirs.
4077 am__obj=sub/conftest.${OBJEXT-o}
4078 am__minus_obj="-o $am__obj"
4079 case $depmode in
4080 gcc)
4081 # This depmode causes a compiler race in universal mode.
4082 test "$am__universal" = false || continue
4084 nosideeffect)
4085 # After this tag, mechanisms are not by side-effect, so they'll
4086 # only be used when explicitly requested.
4087 if test "x$enable_dependency_tracking" = xyes; then
4088 continue
4089 else
4090 break
4093 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4094 # This compiler won't grok '-c -o', but also, the minuso test has
4095 # not run yet. These depmodes are late enough in the game, and
4096 # so weak that their functioning should not be impacted.
4097 am__obj=conftest.${OBJEXT-o}
4098 am__minus_obj=
4100 none) break ;;
4101 esac
4102 if depmode=$depmode \
4103 source=sub/conftest.c object=$am__obj \
4104 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4105 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4106 >/dev/null 2>conftest.err &&
4107 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4108 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4109 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4110 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4111 # icc doesn't choke on unknown options, it will just issue warnings
4112 # or remarks (even with -Werror). So we grep stderr for any message
4113 # that says an option was ignored or not supported.
4114 # When given -MP, icc 7.0 and 7.1 complain thusly:
4115 # icc: Command line warning: ignoring option '-M'; no argument required
4116 # The diagnosis changed in icc 8.0:
4117 # icc: Command line remark: option '-MP' not supported
4118 if (grep 'ignoring option' conftest.err ||
4119 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4120 am_cv_CC_dependencies_compiler_type=$depmode
4121 break
4124 done
4126 cd ..
4127 rm -rf conftest.dir
4128 else
4129 am_cv_CC_dependencies_compiler_type=none
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4134 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4135 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4138 test "x$enable_dependency_tracking" != xno \
4139 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4140 am__fastdepCC_TRUE=
4141 am__fastdepCC_FALSE='#'
4142 else
4143 am__fastdepCC_TRUE='#'
4144 am__fastdepCC_FALSE=
4152 # Add CET specific flags if CET is enabled
4154 # Check whether --enable-cet was given.
4155 if test "${enable_cet+set}" = set; then :
4156 enableval=$enable_cet;
4157 case "$enableval" in
4158 yes|no|auto) ;;
4159 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
4160 esac
4162 else
4163 enable_cet=auto
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
4168 $as_echo_n "checking for CET support... " >&6; }
4170 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
4171 case "$host" in
4172 i[34567]86-*-linux* | x86_64-*-linux*)
4173 case "$enable_cet" in
4174 auto)
4175 # Check if target supports multi-byte NOPs
4176 # and if compiler and assembler support CET insn.
4177 cet_save_CFLAGS="$CFLAGS"
4178 CFLAGS="$CFLAGS -fcf-protection"
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h. */
4183 main ()
4186 #if !defined(__SSE2__)
4187 #error target does not support multi-byte NOPs
4188 #else
4189 asm ("setssbsy");
4190 #endif
4193 return 0;
4195 _ACEOF
4196 if ac_fn_c_try_compile "$LINENO"; then :
4197 enable_cet=yes
4198 else
4199 enable_cet=no
4201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202 CFLAGS="$cet_save_CFLAGS"
4204 yes)
4205 # Check if assembler supports CET.
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4210 main ()
4212 asm ("setssbsy");
4214 return 0;
4216 _ACEOF
4217 if ac_fn_c_try_compile "$LINENO"; then :
4219 else
4220 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
4222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4224 esac
4227 enable_cet=no
4229 esac
4230 if test x$enable_cet = xyes; then
4231 CET_FLAGS="-fcf-protection -mshstk"
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4233 $as_echo "yes" >&6; }
4234 else
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4236 $as_echo "no" >&6; }
4241 case `pwd` in
4242 *\ * | *\ *)
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4244 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4245 esac
4249 macro_version='2.2.7a'
4250 macro_revision='1.3134'
4264 ltmain="$ac_aux_dir/ltmain.sh"
4266 # Backslashify metacharacters that are still active within
4267 # double-quoted strings.
4268 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4270 # Same as above, but do not quote variable references.
4271 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4273 # Sed substitution to delay expansion of an escaped shell variable in a
4274 # double_quote_subst'ed string.
4275 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4277 # Sed substitution to delay expansion of an escaped single quote.
4278 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4280 # Sed substitution to avoid accidental globbing in evaled expressions
4281 no_glob_subst='s/\*/\\\*/g'
4283 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4284 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4285 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4288 $as_echo_n "checking how to print strings... " >&6; }
4289 # Test print first, because it will be a builtin if present.
4290 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4291 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4292 ECHO='print -r --'
4293 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4294 ECHO='printf %s\n'
4295 else
4296 # Use this function as a fallback that always works.
4297 func_fallback_echo ()
4299 eval 'cat <<_LTECHO_EOF
4301 _LTECHO_EOF'
4303 ECHO='func_fallback_echo'
4306 # func_echo_all arg...
4307 # Invoke $ECHO with all args, space-separated.
4308 func_echo_all ()
4310 $ECHO ""
4313 case "$ECHO" in
4314 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4315 $as_echo "printf" >&6; } ;;
4316 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4317 $as_echo "print -r" >&6; } ;;
4318 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4319 $as_echo "cat" >&6; } ;;
4320 esac
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4336 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4337 if ${ac_cv_path_SED+:} false; then :
4338 $as_echo_n "(cached) " >&6
4339 else
4340 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4341 for ac_i in 1 2 3 4 5 6 7; do
4342 ac_script="$ac_script$as_nl$ac_script"
4343 done
4344 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4345 { ac_script=; unset ac_script;}
4346 if test -z "$SED"; then
4347 ac_path_SED_found=false
4348 # Loop through the user's path and test for each of PROGNAME-LIST
4349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350 for as_dir in $PATH
4352 IFS=$as_save_IFS
4353 test -z "$as_dir" && as_dir=.
4354 for ac_prog in sed gsed; do
4355 for ac_exec_ext in '' $ac_executable_extensions; do
4356 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4357 as_fn_executable_p "$ac_path_SED" || continue
4358 # Check for GNU ac_path_SED and select it if it is found.
4359 # Check for GNU $ac_path_SED
4360 case `"$ac_path_SED" --version 2>&1` in
4361 *GNU*)
4362 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4364 ac_count=0
4365 $as_echo_n 0123456789 >"conftest.in"
4366 while :
4368 cat "conftest.in" "conftest.in" >"conftest.tmp"
4369 mv "conftest.tmp" "conftest.in"
4370 cp "conftest.in" "conftest.nl"
4371 $as_echo '' >> "conftest.nl"
4372 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4373 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4374 as_fn_arith $ac_count + 1 && ac_count=$as_val
4375 if test $ac_count -gt ${ac_path_SED_max-0}; then
4376 # Best one so far, save it but keep looking for a better one
4377 ac_cv_path_SED="$ac_path_SED"
4378 ac_path_SED_max=$ac_count
4380 # 10*(2^10) chars as input seems more than enough
4381 test $ac_count -gt 10 && break
4382 done
4383 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4384 esac
4386 $ac_path_SED_found && break 3
4387 done
4388 done
4389 done
4390 IFS=$as_save_IFS
4391 if test -z "$ac_cv_path_SED"; then
4392 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4394 else
4395 ac_cv_path_SED=$SED
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4400 $as_echo "$ac_cv_path_SED" >&6; }
4401 SED="$ac_cv_path_SED"
4402 rm -f conftest.sed
4404 test -z "$SED" && SED=sed
4405 Xsed="$SED -e 1s/^X//"
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4418 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4419 if ${ac_cv_path_GREP+:} false; then :
4420 $as_echo_n "(cached) " >&6
4421 else
4422 if test -z "$GREP"; then
4423 ac_path_GREP_found=false
4424 # Loop through the user's path and test for each of PROGNAME-LIST
4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4428 IFS=$as_save_IFS
4429 test -z "$as_dir" && as_dir=.
4430 for ac_prog in grep ggrep; do
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4433 as_fn_executable_p "$ac_path_GREP" || continue
4434 # Check for GNU ac_path_GREP and select it if it is found.
4435 # Check for GNU $ac_path_GREP
4436 case `"$ac_path_GREP" --version 2>&1` in
4437 *GNU*)
4438 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4440 ac_count=0
4441 $as_echo_n 0123456789 >"conftest.in"
4442 while :
4444 cat "conftest.in" "conftest.in" >"conftest.tmp"
4445 mv "conftest.tmp" "conftest.in"
4446 cp "conftest.in" "conftest.nl"
4447 $as_echo 'GREP' >> "conftest.nl"
4448 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4449 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4450 as_fn_arith $ac_count + 1 && ac_count=$as_val
4451 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4452 # Best one so far, save it but keep looking for a better one
4453 ac_cv_path_GREP="$ac_path_GREP"
4454 ac_path_GREP_max=$ac_count
4456 # 10*(2^10) chars as input seems more than enough
4457 test $ac_count -gt 10 && break
4458 done
4459 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4460 esac
4462 $ac_path_GREP_found && break 3
4463 done
4464 done
4465 done
4466 IFS=$as_save_IFS
4467 if test -z "$ac_cv_path_GREP"; then
4468 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4470 else
4471 ac_cv_path_GREP=$GREP
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4476 $as_echo "$ac_cv_path_GREP" >&6; }
4477 GREP="$ac_cv_path_GREP"
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4481 $as_echo_n "checking for egrep... " >&6; }
4482 if ${ac_cv_path_EGREP+:} false; then :
4483 $as_echo_n "(cached) " >&6
4484 else
4485 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4486 then ac_cv_path_EGREP="$GREP -E"
4487 else
4488 if test -z "$EGREP"; then
4489 ac_path_EGREP_found=false
4490 # Loop through the user's path and test for each of PROGNAME-LIST
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4494 IFS=$as_save_IFS
4495 test -z "$as_dir" && as_dir=.
4496 for ac_prog in egrep; do
4497 for ac_exec_ext in '' $ac_executable_extensions; do
4498 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4499 as_fn_executable_p "$ac_path_EGREP" || continue
4500 # Check for GNU ac_path_EGREP and select it if it is found.
4501 # Check for GNU $ac_path_EGREP
4502 case `"$ac_path_EGREP" --version 2>&1` in
4503 *GNU*)
4504 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4506 ac_count=0
4507 $as_echo_n 0123456789 >"conftest.in"
4508 while :
4510 cat "conftest.in" "conftest.in" >"conftest.tmp"
4511 mv "conftest.tmp" "conftest.in"
4512 cp "conftest.in" "conftest.nl"
4513 $as_echo 'EGREP' >> "conftest.nl"
4514 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4515 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4516 as_fn_arith $ac_count + 1 && ac_count=$as_val
4517 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4518 # Best one so far, save it but keep looking for a better one
4519 ac_cv_path_EGREP="$ac_path_EGREP"
4520 ac_path_EGREP_max=$ac_count
4522 # 10*(2^10) chars as input seems more than enough
4523 test $ac_count -gt 10 && break
4524 done
4525 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4526 esac
4528 $ac_path_EGREP_found && break 3
4529 done
4530 done
4531 done
4532 IFS=$as_save_IFS
4533 if test -z "$ac_cv_path_EGREP"; then
4534 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4536 else
4537 ac_cv_path_EGREP=$EGREP
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4543 $as_echo "$ac_cv_path_EGREP" >&6; }
4544 EGREP="$ac_cv_path_EGREP"
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4548 $as_echo_n "checking for fgrep... " >&6; }
4549 if ${ac_cv_path_FGREP+:} false; then :
4550 $as_echo_n "(cached) " >&6
4551 else
4552 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4553 then ac_cv_path_FGREP="$GREP -F"
4554 else
4555 if test -z "$FGREP"; then
4556 ac_path_FGREP_found=false
4557 # Loop through the user's path and test for each of PROGNAME-LIST
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4561 IFS=$as_save_IFS
4562 test -z "$as_dir" && as_dir=.
4563 for ac_prog in fgrep; do
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4566 as_fn_executable_p "$ac_path_FGREP" || continue
4567 # Check for GNU ac_path_FGREP and select it if it is found.
4568 # Check for GNU $ac_path_FGREP
4569 case `"$ac_path_FGREP" --version 2>&1` in
4570 *GNU*)
4571 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4573 ac_count=0
4574 $as_echo_n 0123456789 >"conftest.in"
4575 while :
4577 cat "conftest.in" "conftest.in" >"conftest.tmp"
4578 mv "conftest.tmp" "conftest.in"
4579 cp "conftest.in" "conftest.nl"
4580 $as_echo 'FGREP' >> "conftest.nl"
4581 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4582 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4583 as_fn_arith $ac_count + 1 && ac_count=$as_val
4584 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4585 # Best one so far, save it but keep looking for a better one
4586 ac_cv_path_FGREP="$ac_path_FGREP"
4587 ac_path_FGREP_max=$ac_count
4589 # 10*(2^10) chars as input seems more than enough
4590 test $ac_count -gt 10 && break
4591 done
4592 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4593 esac
4595 $ac_path_FGREP_found && break 3
4596 done
4597 done
4598 done
4599 IFS=$as_save_IFS
4600 if test -z "$ac_cv_path_FGREP"; then
4601 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4603 else
4604 ac_cv_path_FGREP=$FGREP
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4610 $as_echo "$ac_cv_path_FGREP" >&6; }
4611 FGREP="$ac_cv_path_FGREP"
4614 test -z "$GREP" && GREP=grep
4634 # Check whether --with-gnu-ld was given.
4635 if test "${with_gnu_ld+set}" = set; then :
4636 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4637 else
4638 with_gnu_ld=no
4641 ac_prog=ld
4642 if test "$GCC" = yes; then
4643 # Check if gcc -print-prog-name=ld gives a path.
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4645 $as_echo_n "checking for ld used by $CC... " >&6; }
4646 case $host in
4647 *-*-mingw*)
4648 # gcc leaves a trailing carriage return which upsets mingw
4649 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4651 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4652 esac
4653 case $ac_prog in
4654 # Accept absolute paths.
4655 [\\/]* | ?:[\\/]*)
4656 re_direlt='/[^/][^/]*/\.\./'
4657 # Canonicalize the pathname of ld
4658 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4659 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4660 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4661 done
4662 test -z "$LD" && LD="$ac_prog"
4665 # If it fails, then pretend we aren't using GCC.
4666 ac_prog=ld
4669 # If it is relative, then search for the first ld in PATH.
4670 with_gnu_ld=unknown
4672 esac
4673 elif test "$with_gnu_ld" = yes; then
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4675 $as_echo_n "checking for GNU ld... " >&6; }
4676 else
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4678 $as_echo_n "checking for non-GNU ld... " >&6; }
4680 if ${lt_cv_path_LD+:} false; then :
4681 $as_echo_n "(cached) " >&6
4682 else
4683 if test -z "$LD"; then
4684 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4685 for ac_dir in $PATH; do
4686 IFS="$lt_save_ifs"
4687 test -z "$ac_dir" && ac_dir=.
4688 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4689 lt_cv_path_LD="$ac_dir/$ac_prog"
4690 # Check to see if the program is GNU ld. I'd rather use --version,
4691 # but apparently some variants of GNU ld only accept -v.
4692 # Break only if it was the GNU/non-GNU ld that we prefer.
4693 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4694 *GNU* | *'with BFD'*)
4695 test "$with_gnu_ld" != no && break
4698 test "$with_gnu_ld" != yes && break
4700 esac
4702 done
4703 IFS="$lt_save_ifs"
4704 else
4705 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4709 LD="$lt_cv_path_LD"
4710 if test -n "$LD"; then
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4712 $as_echo "$LD" >&6; }
4713 else
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715 $as_echo "no" >&6; }
4717 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4719 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4720 if ${lt_cv_prog_gnu_ld+:} false; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4724 case `$LD -v 2>&1 </dev/null` in
4725 *GNU* | *'with BFD'*)
4726 lt_cv_prog_gnu_ld=yes
4729 lt_cv_prog_gnu_ld=no
4731 esac
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4734 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4735 with_gnu_ld=$lt_cv_prog_gnu_ld
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4746 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4747 if ${lt_cv_path_NM+:} false; then :
4748 $as_echo_n "(cached) " >&6
4749 else
4750 if test -n "$NM"; then
4751 # Let the user override the test.
4752 lt_cv_path_NM="$NM"
4753 else
4754 lt_nm_to_check="${ac_tool_prefix}nm"
4755 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4756 lt_nm_to_check="$lt_nm_to_check nm"
4758 for lt_tmp_nm in $lt_nm_to_check; do
4759 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4760 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4761 IFS="$lt_save_ifs"
4762 test -z "$ac_dir" && ac_dir=.
4763 tmp_nm="$ac_dir/$lt_tmp_nm"
4764 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4765 # Check to see if the nm accepts a BSD-compat flag.
4766 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4767 # nm: unknown option "B" ignored
4768 # Tru64's nm complains that /dev/null is an invalid object file
4769 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4770 */dev/null* | *'Invalid file or object type'*)
4771 lt_cv_path_NM="$tmp_nm -B"
4772 break
4775 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4776 */dev/null*)
4777 lt_cv_path_NM="$tmp_nm -p"
4778 break
4781 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4782 continue # so that we can try to find one that supports BSD flags
4784 esac
4786 esac
4788 done
4789 IFS="$lt_save_ifs"
4790 done
4791 : ${lt_cv_path_NM=no}
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4795 $as_echo "$lt_cv_path_NM" >&6; }
4796 if test "$lt_cv_path_NM" != "no"; then
4797 NM="$lt_cv_path_NM"
4798 else
4799 # Didn't find any BSD compatible name lister, look for dumpbin.
4800 if test -n "$DUMPBIN"; then :
4801 # Let the user override the test.
4802 else
4803 if test -n "$ac_tool_prefix"; then
4804 for ac_prog in dumpbin "link -dump"
4806 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4807 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4809 $as_echo_n "checking for $ac_word... " >&6; }
4810 if ${ac_cv_prog_DUMPBIN+:} false; then :
4811 $as_echo_n "(cached) " >&6
4812 else
4813 if test -n "$DUMPBIN"; then
4814 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4815 else
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 for as_dir in $PATH
4819 IFS=$as_save_IFS
4820 test -z "$as_dir" && as_dir=.
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4823 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4825 break 2
4827 done
4828 done
4829 IFS=$as_save_IFS
4833 DUMPBIN=$ac_cv_prog_DUMPBIN
4834 if test -n "$DUMPBIN"; then
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4836 $as_echo "$DUMPBIN" >&6; }
4837 else
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4839 $as_echo "no" >&6; }
4843 test -n "$DUMPBIN" && break
4844 done
4846 if test -z "$DUMPBIN"; then
4847 ac_ct_DUMPBIN=$DUMPBIN
4848 for ac_prog in dumpbin "link -dump"
4850 # Extract the first word of "$ac_prog", so it can be a program name with args.
4851 set dummy $ac_prog; ac_word=$2
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4853 $as_echo_n "checking for $ac_word... " >&6; }
4854 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4855 $as_echo_n "(cached) " >&6
4856 else
4857 if test -n "$ac_ct_DUMPBIN"; then
4858 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4859 else
4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861 for as_dir in $PATH
4863 IFS=$as_save_IFS
4864 test -z "$as_dir" && as_dir=.
4865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4867 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4869 break 2
4871 done
4872 done
4873 IFS=$as_save_IFS
4877 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4878 if test -n "$ac_ct_DUMPBIN"; then
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4880 $as_echo "$ac_ct_DUMPBIN" >&6; }
4881 else
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883 $as_echo "no" >&6; }
4887 test -n "$ac_ct_DUMPBIN" && break
4888 done
4890 if test "x$ac_ct_DUMPBIN" = x; then
4891 DUMPBIN=":"
4892 else
4893 case $cross_compiling:$ac_tool_warned in
4894 yes:)
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4897 ac_tool_warned=yes ;;
4898 esac
4899 DUMPBIN=$ac_ct_DUMPBIN
4903 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4904 *COFF*)
4905 DUMPBIN="$DUMPBIN -symbols"
4908 DUMPBIN=:
4910 esac
4913 if test "$DUMPBIN" != ":"; then
4914 NM="$DUMPBIN"
4917 test -z "$NM" && NM=nm
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4925 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4926 if ${lt_cv_nm_interface+:} false; then :
4927 $as_echo_n "(cached) " >&6
4928 else
4929 lt_cv_nm_interface="BSD nm"
4930 echo "int some_variable = 0;" > conftest.$ac_ext
4931 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4932 (eval "$ac_compile" 2>conftest.err)
4933 cat conftest.err >&5
4934 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4935 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4936 cat conftest.err >&5
4937 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4938 cat conftest.out >&5
4939 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4940 lt_cv_nm_interface="MS dumpbin"
4942 rm -f conftest*
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4945 $as_echo "$lt_cv_nm_interface" >&6; }
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4948 $as_echo_n "checking whether ln -s works... " >&6; }
4949 LN_S=$as_ln_s
4950 if test "$LN_S" = "ln -s"; then
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4952 $as_echo "yes" >&6; }
4953 else
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4955 $as_echo "no, using $LN_S" >&6; }
4958 # find the maximum length of command line arguments
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4960 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4961 if ${lt_cv_sys_max_cmd_len+:} false; then :
4962 $as_echo_n "(cached) " >&6
4963 else
4965 teststring="ABCD"
4967 case $build_os in
4968 msdosdjgpp*)
4969 # On DJGPP, this test can blow up pretty badly due to problems in libc
4970 # (any single argument exceeding 2000 bytes causes a buffer overrun
4971 # during glob expansion). Even if it were fixed, the result of this
4972 # check would be larger than it should be.
4973 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4976 gnu*)
4977 # Under GNU Hurd, this test is not required because there is
4978 # no limit to the length of command line arguments.
4979 # Libtool will interpret -1 as no limit whatsoever
4980 lt_cv_sys_max_cmd_len=-1;
4983 cygwin* | mingw* | cegcc*)
4984 # On Win9x/ME, this test blows up -- it succeeds, but takes
4985 # about 5 minutes as the teststring grows exponentially.
4986 # Worse, since 9x/ME are not pre-emptively multitasking,
4987 # you end up with a "frozen" computer, even though with patience
4988 # the test eventually succeeds (with a max line length of 256k).
4989 # Instead, let's just punt: use the minimum linelength reported by
4990 # all of the supported platforms: 8192 (on NT/2K/XP).
4991 lt_cv_sys_max_cmd_len=8192;
4994 mint*)
4995 # On MiNT this can take a long time and run out of memory.
4996 lt_cv_sys_max_cmd_len=8192;
4999 amigaos*)
5000 # On AmigaOS with pdksh, this test takes hours, literally.
5001 # So we just punt and use a minimum line length of 8192.
5002 lt_cv_sys_max_cmd_len=8192;
5005 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5006 # This has been around since 386BSD, at least. Likely further.
5007 if test -x /sbin/sysctl; then
5008 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5009 elif test -x /usr/sbin/sysctl; then
5010 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5011 else
5012 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5014 # And add a safety zone
5015 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5016 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5019 interix*)
5020 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5021 lt_cv_sys_max_cmd_len=196608
5024 osf*)
5025 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5026 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5027 # nice to cause kernel panics so lets avoid the loop below.
5028 # First set a reasonable default.
5029 lt_cv_sys_max_cmd_len=16384
5031 if test -x /sbin/sysconfig; then
5032 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5033 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5034 esac
5037 sco3.2v5*)
5038 lt_cv_sys_max_cmd_len=102400
5040 sysv5* | sco5v6* | sysv4.2uw2*)
5041 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5042 if test -n "$kargmax"; then
5043 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5044 else
5045 lt_cv_sys_max_cmd_len=32768
5049 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5050 if test -n "$lt_cv_sys_max_cmd_len"; then
5051 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5052 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5053 else
5054 # Make teststring a little bigger before we do anything with it.
5055 # a 1K string should be a reasonable start.
5056 for i in 1 2 3 4 5 6 7 8 ; do
5057 teststring=$teststring$teststring
5058 done
5059 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5060 # If test is not a shell built-in, we'll probably end up computing a
5061 # maximum length that is only half of the actual maximum length, but
5062 # we can't tell.
5063 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5064 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5065 test $i != 17 # 1/2 MB should be enough
5067 i=`expr $i + 1`
5068 teststring=$teststring$teststring
5069 done
5070 # Only check the string length outside the loop.
5071 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5072 teststring=
5073 # Add a significant safety factor because C++ compilers can tack on
5074 # massive amounts of additional arguments before passing them to the
5075 # linker. It appears as though 1/2 is a usable value.
5076 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5079 esac
5083 if test -n $lt_cv_sys_max_cmd_len ; then
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5085 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5086 else
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5088 $as_echo "none" >&6; }
5090 max_cmd_len=$lt_cv_sys_max_cmd_len
5097 : ${CP="cp -f"}
5098 : ${MV="mv -f"}
5099 : ${RM="rm -f"}
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5102 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5103 # Try some XSI features
5104 xsi_shell=no
5105 ( _lt_dummy="a/b/c"
5106 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5107 = c,a/b,, \
5108 && eval 'test $(( 1 + 1 )) -eq 2 \
5109 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5110 && xsi_shell=yes
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5112 $as_echo "$xsi_shell" >&6; }
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5116 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5117 lt_shell_append=no
5118 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5119 >/dev/null 2>&1 \
5120 && lt_shell_append=yes
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5122 $as_echo "$lt_shell_append" >&6; }
5125 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5126 lt_unset=unset
5127 else
5128 lt_unset=false
5135 # test EBCDIC or ASCII
5136 case `echo X|tr X '\101'` in
5137 A) # ASCII based system
5138 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5139 lt_SP2NL='tr \040 \012'
5140 lt_NL2SP='tr \015\012 \040\040'
5142 *) # EBCDIC based system
5143 lt_SP2NL='tr \100 \n'
5144 lt_NL2SP='tr \r\n \100\100'
5146 esac
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5157 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5158 if ${lt_cv_ld_reload_flag+:} false; then :
5159 $as_echo_n "(cached) " >&6
5160 else
5161 lt_cv_ld_reload_flag='-r'
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5164 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5165 reload_flag=$lt_cv_ld_reload_flag
5166 case $reload_flag in
5167 "" | " "*) ;;
5168 *) reload_flag=" $reload_flag" ;;
5169 esac
5170 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5171 case $host_os in
5172 darwin*)
5173 if test "$GCC" = yes; then
5174 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5175 else
5176 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5179 esac
5189 if test -n "$ac_tool_prefix"; then
5190 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5191 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5193 $as_echo_n "checking for $ac_word... " >&6; }
5194 if ${ac_cv_prog_OBJDUMP+:} false; then :
5195 $as_echo_n "(cached) " >&6
5196 else
5197 if test -n "$OBJDUMP"; then
5198 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5199 else
5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 for as_dir in $PATH
5203 IFS=$as_save_IFS
5204 test -z "$as_dir" && as_dir=.
5205 for ac_exec_ext in '' $ac_executable_extensions; do
5206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5207 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 break 2
5211 done
5212 done
5213 IFS=$as_save_IFS
5217 OBJDUMP=$ac_cv_prog_OBJDUMP
5218 if test -n "$OBJDUMP"; then
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5220 $as_echo "$OBJDUMP" >&6; }
5221 else
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223 $as_echo "no" >&6; }
5228 if test -z "$ac_cv_prog_OBJDUMP"; then
5229 ac_ct_OBJDUMP=$OBJDUMP
5230 # Extract the first word of "objdump", so it can be a program name with args.
5231 set dummy objdump; ac_word=$2
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5233 $as_echo_n "checking for $ac_word... " >&6; }
5234 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5235 $as_echo_n "(cached) " >&6
5236 else
5237 if test -n "$ac_ct_OBJDUMP"; then
5238 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5239 else
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 for as_dir in $PATH
5243 IFS=$as_save_IFS
5244 test -z "$as_dir" && as_dir=.
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5247 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5249 break 2
5251 done
5252 done
5253 IFS=$as_save_IFS
5257 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5258 if test -n "$ac_ct_OBJDUMP"; then
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5260 $as_echo "$ac_ct_OBJDUMP" >&6; }
5261 else
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5263 $as_echo "no" >&6; }
5266 if test "x$ac_ct_OBJDUMP" = x; then
5267 OBJDUMP="false"
5268 else
5269 case $cross_compiling:$ac_tool_warned in
5270 yes:)
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5273 ac_tool_warned=yes ;;
5274 esac
5275 OBJDUMP=$ac_ct_OBJDUMP
5277 else
5278 OBJDUMP="$ac_cv_prog_OBJDUMP"
5281 test -z "$OBJDUMP" && OBJDUMP=objdump
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5292 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5293 if ${lt_cv_deplibs_check_method+:} false; then :
5294 $as_echo_n "(cached) " >&6
5295 else
5296 lt_cv_file_magic_cmd='$MAGIC_CMD'
5297 lt_cv_file_magic_test_file=
5298 lt_cv_deplibs_check_method='unknown'
5299 # Need to set the preceding variable on all platforms that support
5300 # interlibrary dependencies.
5301 # 'none' -- dependencies not supported.
5302 # `unknown' -- same as none, but documents that we really don't know.
5303 # 'pass_all' -- all dependencies passed with no checks.
5304 # 'test_compile' -- check by making test program.
5305 # 'file_magic [[regex]]' -- check by looking for files in library path
5306 # which responds to the $file_magic_cmd with a given extended regex.
5307 # If you have `file' or equivalent on your system and you're not sure
5308 # whether `pass_all' will *always* work, you probably want this one.
5310 case $host_os in
5311 aix[4-9]*)
5312 lt_cv_deplibs_check_method=pass_all
5315 beos*)
5316 lt_cv_deplibs_check_method=pass_all
5319 bsdi[45]*)
5320 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5321 lt_cv_file_magic_cmd='/usr/bin/file -L'
5322 lt_cv_file_magic_test_file=/shlib/libc.so
5325 cygwin*)
5326 # func_win32_libid is a shell function defined in ltmain.sh
5327 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5328 lt_cv_file_magic_cmd='func_win32_libid'
5331 mingw* | pw32*)
5332 # Base MSYS/MinGW do not provide the 'file' command needed by
5333 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5334 # unless we find 'file', for example because we are cross-compiling.
5335 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5336 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5337 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5338 lt_cv_file_magic_cmd='func_win32_libid'
5339 else
5340 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5341 lt_cv_file_magic_cmd='$OBJDUMP -f'
5345 cegcc*)
5346 # use the weaker test based on 'objdump'. See mingw*.
5347 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5348 lt_cv_file_magic_cmd='$OBJDUMP -f'
5351 darwin* | rhapsody*)
5352 lt_cv_deplibs_check_method=pass_all
5355 freebsd* | dragonfly*)
5356 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5357 case $host_cpu in
5358 i*86 )
5359 # Not sure whether the presence of OpenBSD here was a mistake.
5360 # Let's accept both of them until this is cleared up.
5361 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5362 lt_cv_file_magic_cmd=/usr/bin/file
5363 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5365 esac
5366 else
5367 lt_cv_deplibs_check_method=pass_all
5371 gnu*)
5372 lt_cv_deplibs_check_method=pass_all
5375 haiku*)
5376 lt_cv_deplibs_check_method=pass_all
5379 hpux10.20* | hpux11*)
5380 lt_cv_file_magic_cmd=/usr/bin/file
5381 case $host_cpu in
5382 ia64*)
5383 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5384 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5386 hppa*64*)
5387 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]'
5388 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5391 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5392 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5394 esac
5397 interix[3-9]*)
5398 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5399 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5402 irix5* | irix6* | nonstopux*)
5403 case $LD in
5404 *-32|*"-32 ") libmagic=32-bit;;
5405 *-n32|*"-n32 ") libmagic=N32;;
5406 *-64|*"-64 ") libmagic=64-bit;;
5407 *) libmagic=never-match;;
5408 esac
5409 lt_cv_deplibs_check_method=pass_all
5412 # This must be Linux ELF.
5413 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
5414 lt_cv_deplibs_check_method=pass_all
5417 netbsd*)
5418 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5419 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5420 else
5421 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5425 newos6*)
5426 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5427 lt_cv_file_magic_cmd=/usr/bin/file
5428 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5431 *nto* | *qnx*)
5432 lt_cv_deplibs_check_method=pass_all
5435 openbsd*)
5436 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5437 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5438 else
5439 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5443 osf3* | osf4* | osf5*)
5444 lt_cv_deplibs_check_method=pass_all
5447 rdos*)
5448 lt_cv_deplibs_check_method=pass_all
5451 solaris*)
5452 lt_cv_deplibs_check_method=pass_all
5455 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5456 lt_cv_deplibs_check_method=pass_all
5459 sysv4 | sysv4.3*)
5460 case $host_vendor in
5461 motorola)
5462 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]'
5463 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5465 ncr)
5466 lt_cv_deplibs_check_method=pass_all
5468 sequent)
5469 lt_cv_file_magic_cmd='/bin/file'
5470 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5472 sni)
5473 lt_cv_file_magic_cmd='/bin/file'
5474 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5475 lt_cv_file_magic_test_file=/lib/libc.so
5477 siemens)
5478 lt_cv_deplibs_check_method=pass_all
5481 lt_cv_deplibs_check_method=pass_all
5483 esac
5486 tpf*)
5487 lt_cv_deplibs_check_method=pass_all
5489 vxworks*)
5490 # Assume VxWorks cross toolchains are built on Linux, possibly
5491 # as canadian for Windows hosts.
5492 lt_cv_deplibs_check_method=pass_all
5494 esac
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5498 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5499 file_magic_cmd=$lt_cv_file_magic_cmd
5500 deplibs_check_method=$lt_cv_deplibs_check_method
5501 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5514 if test -n "$ac_tool_prefix"; then
5515 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5516 set dummy ${ac_tool_prefix}ar; ac_word=$2
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518 $as_echo_n "checking for $ac_word... " >&6; }
5519 if ${ac_cv_prog_AR+:} false; then :
5520 $as_echo_n "(cached) " >&6
5521 else
5522 if test -n "$AR"; then
5523 ac_cv_prog_AR="$AR" # Let the user override the test.
5524 else
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 for as_dir in $PATH
5528 IFS=$as_save_IFS
5529 test -z "$as_dir" && as_dir=.
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5532 ac_cv_prog_AR="${ac_tool_prefix}ar"
5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5534 break 2
5536 done
5537 done
5538 IFS=$as_save_IFS
5542 AR=$ac_cv_prog_AR
5543 if test -n "$AR"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5545 $as_echo "$AR" >&6; }
5546 else
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 $as_echo "no" >&6; }
5553 if test -z "$ac_cv_prog_AR"; then
5554 ac_ct_AR=$AR
5555 # Extract the first word of "ar", so it can be a program name with args.
5556 set dummy ar; ac_word=$2
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5558 $as_echo_n "checking for $ac_word... " >&6; }
5559 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5560 $as_echo_n "(cached) " >&6
5561 else
5562 if test -n "$ac_ct_AR"; then
5563 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5564 else
5565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566 for as_dir in $PATH
5568 IFS=$as_save_IFS
5569 test -z "$as_dir" && as_dir=.
5570 for ac_exec_ext in '' $ac_executable_extensions; do
5571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5572 ac_cv_prog_ac_ct_AR="ar"
5573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5574 break 2
5576 done
5577 done
5578 IFS=$as_save_IFS
5582 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5583 if test -n "$ac_ct_AR"; then
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5585 $as_echo "$ac_ct_AR" >&6; }
5586 else
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588 $as_echo "no" >&6; }
5591 if test "x$ac_ct_AR" = x; then
5592 AR="false"
5593 else
5594 case $cross_compiling:$ac_tool_warned in
5595 yes:)
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5598 ac_tool_warned=yes ;;
5599 esac
5600 AR=$ac_ct_AR
5602 else
5603 AR="$ac_cv_prog_AR"
5606 test -z "$AR" && AR=ar
5607 test -z "$AR_FLAGS" && AR_FLAGS=cru
5619 if test -n "$ac_tool_prefix"; then
5620 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5621 set dummy ${ac_tool_prefix}strip; ac_word=$2
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5623 $as_echo_n "checking for $ac_word... " >&6; }
5624 if ${ac_cv_prog_STRIP+:} false; then :
5625 $as_echo_n "(cached) " >&6
5626 else
5627 if test -n "$STRIP"; then
5628 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5629 else
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH
5633 IFS=$as_save_IFS
5634 test -z "$as_dir" && as_dir=.
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5637 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5639 break 2
5641 done
5642 done
5643 IFS=$as_save_IFS
5647 STRIP=$ac_cv_prog_STRIP
5648 if test -n "$STRIP"; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5650 $as_echo "$STRIP" >&6; }
5651 else
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653 $as_echo "no" >&6; }
5658 if test -z "$ac_cv_prog_STRIP"; then
5659 ac_ct_STRIP=$STRIP
5660 # Extract the first word of "strip", so it can be a program name with args.
5661 set dummy strip; ac_word=$2
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5663 $as_echo_n "checking for $ac_word... " >&6; }
5664 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5665 $as_echo_n "(cached) " >&6
5666 else
5667 if test -n "$ac_ct_STRIP"; then
5668 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5669 else
5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671 for as_dir in $PATH
5673 IFS=$as_save_IFS
5674 test -z "$as_dir" && as_dir=.
5675 for ac_exec_ext in '' $ac_executable_extensions; do
5676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5677 ac_cv_prog_ac_ct_STRIP="strip"
5678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5679 break 2
5681 done
5682 done
5683 IFS=$as_save_IFS
5687 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5688 if test -n "$ac_ct_STRIP"; then
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5690 $as_echo "$ac_ct_STRIP" >&6; }
5691 else
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693 $as_echo "no" >&6; }
5696 if test "x$ac_ct_STRIP" = x; then
5697 STRIP=":"
5698 else
5699 case $cross_compiling:$ac_tool_warned in
5700 yes:)
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5703 ac_tool_warned=yes ;;
5704 esac
5705 STRIP=$ac_ct_STRIP
5707 else
5708 STRIP="$ac_cv_prog_STRIP"
5711 test -z "$STRIP" && STRIP=:
5718 if test -n "$ac_tool_prefix"; then
5719 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5720 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5722 $as_echo_n "checking for $ac_word... " >&6; }
5723 if ${ac_cv_prog_RANLIB+:} false; then :
5724 $as_echo_n "(cached) " >&6
5725 else
5726 if test -n "$RANLIB"; then
5727 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5728 else
5729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 for as_dir in $PATH
5732 IFS=$as_save_IFS
5733 test -z "$as_dir" && as_dir=.
5734 for ac_exec_ext in '' $ac_executable_extensions; do
5735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5736 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5738 break 2
5740 done
5741 done
5742 IFS=$as_save_IFS
5746 RANLIB=$ac_cv_prog_RANLIB
5747 if test -n "$RANLIB"; then
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5749 $as_echo "$RANLIB" >&6; }
5750 else
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752 $as_echo "no" >&6; }
5757 if test -z "$ac_cv_prog_RANLIB"; then
5758 ac_ct_RANLIB=$RANLIB
5759 # Extract the first word of "ranlib", so it can be a program name with args.
5760 set dummy ranlib; ac_word=$2
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762 $as_echo_n "checking for $ac_word... " >&6; }
5763 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5764 $as_echo_n "(cached) " >&6
5765 else
5766 if test -n "$ac_ct_RANLIB"; then
5767 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5768 else
5769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 for as_dir in $PATH
5772 IFS=$as_save_IFS
5773 test -z "$as_dir" && as_dir=.
5774 for ac_exec_ext in '' $ac_executable_extensions; do
5775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5776 ac_cv_prog_ac_ct_RANLIB="ranlib"
5777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 break 2
5780 done
5781 done
5782 IFS=$as_save_IFS
5786 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5787 if test -n "$ac_ct_RANLIB"; then
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5789 $as_echo "$ac_ct_RANLIB" >&6; }
5790 else
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792 $as_echo "no" >&6; }
5795 if test "x$ac_ct_RANLIB" = x; then
5796 RANLIB=":"
5797 else
5798 case $cross_compiling:$ac_tool_warned in
5799 yes:)
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5802 ac_tool_warned=yes ;;
5803 esac
5804 RANLIB=$ac_ct_RANLIB
5806 else
5807 RANLIB="$ac_cv_prog_RANLIB"
5810 test -z "$RANLIB" && RANLIB=:
5817 # Determine commands to create old-style static archives.
5818 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5819 old_postinstall_cmds='chmod 644 $oldlib'
5820 old_postuninstall_cmds=
5822 if test -n "$RANLIB"; then
5823 case $host_os in
5824 openbsd*)
5825 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5828 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5830 esac
5831 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5834 case $host_os in
5835 darwin*)
5836 lock_old_archive_extraction=yes ;;
5838 lock_old_archive_extraction=no ;;
5839 esac
5879 # If no C compiler was specified, use CC.
5880 LTCC=${LTCC-"$CC"}
5882 # If no C compiler flags were specified, use CFLAGS.
5883 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5885 # Allow CC to be a program name with arguments.
5886 compiler=$CC
5889 # Check for command to grab the raw symbol name followed by C symbol from nm.
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5891 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5892 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5893 $as_echo_n "(cached) " >&6
5894 else
5896 # These are sane defaults that work on at least a few old systems.
5897 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5899 # Character class describing NM global symbol codes.
5900 symcode='[BCDEGRST]'
5902 # Regexp to match symbols that can be accessed directly from C.
5903 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5905 # Define system-specific variables.
5906 case $host_os in
5907 aix*)
5908 symcode='[BCDT]'
5910 cygwin* | mingw* | pw32* | cegcc*)
5911 symcode='[ABCDGISTW]'
5913 hpux*)
5914 if test "$host_cpu" = ia64; then
5915 symcode='[ABCDEGRST]'
5918 irix* | nonstopux*)
5919 symcode='[BCDEGRST]'
5921 osf*)
5922 symcode='[BCDEGQRST]'
5924 solaris*)
5925 symcode='[BDRT]'
5927 sco3.2v5*)
5928 symcode='[DT]'
5930 sysv4.2uw2*)
5931 symcode='[DT]'
5933 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5934 symcode='[ABDT]'
5936 sysv4)
5937 symcode='[DFNSTU]'
5939 esac
5941 # If we're using GNU nm, then use its standard symbol codes.
5942 case `$NM -V 2>&1` in
5943 *GNU* | *'with BFD'*)
5944 symcode='[ABCDGIRSTW]' ;;
5945 esac
5947 # Transform an extracted symbol line into a proper C declaration.
5948 # Some systems (esp. on ia64) link data and code symbols differently,
5949 # so use this general approach.
5950 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5952 # Transform an extracted symbol line into symbol name and symbol address
5953 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5954 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'"
5956 # Handle CRLF in mingw tool chain
5957 opt_cr=
5958 case $build_os in
5959 mingw*)
5960 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5962 esac
5964 # Try without a prefix underscore, then with it.
5965 for ac_symprfx in "" "_"; do
5967 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5968 symxfrm="\\1 $ac_symprfx\\2 \\2"
5970 # Write the raw and C identifiers.
5971 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5972 # Fake it for dumpbin and say T for any non-static function
5973 # and D for any global variable.
5974 # Also find C++ and __fastcall symbols from MSVC++,
5975 # which start with @ or ?.
5976 lt_cv_sys_global_symbol_pipe="$AWK '"\
5977 " {last_section=section; section=\$ 3};"\
5978 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5979 " \$ 0!~/External *\|/{next};"\
5980 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5981 " {if(hide[section]) next};"\
5982 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5983 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5984 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5985 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5986 " ' prfx=^$ac_symprfx"
5987 else
5988 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5991 # Check to see that the pipe works correctly.
5992 pipe_works=no
5994 rm -f conftest*
5995 cat > conftest.$ac_ext <<_LT_EOF
5996 #ifdef __cplusplus
5997 extern "C" {
5998 #endif
5999 char nm_test_var;
6000 void nm_test_func(void);
6001 void nm_test_func(void){}
6002 #ifdef __cplusplus
6004 #endif
6005 int main(){nm_test_var='a';nm_test_func();return(0);}
6006 _LT_EOF
6008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6009 (eval $ac_compile) 2>&5
6010 ac_status=$?
6011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6012 test $ac_status = 0; }; then
6013 # Now try to grab the symbols.
6014 nlist=conftest.nm
6015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6016 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6017 ac_status=$?
6018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6019 test $ac_status = 0; } && test -s "$nlist"; then
6020 # Try sorting and uniquifying the output.
6021 if sort "$nlist" | uniq > "$nlist"T; then
6022 mv -f "$nlist"T "$nlist"
6023 else
6024 rm -f "$nlist"T
6027 # Make sure that we snagged all the symbols we need.
6028 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6029 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6030 cat <<_LT_EOF > conftest.$ac_ext
6031 #ifdef __cplusplus
6032 extern "C" {
6033 #endif
6035 _LT_EOF
6036 # Now generate the symbol file.
6037 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6039 cat <<_LT_EOF >> conftest.$ac_ext
6041 /* The mapping between symbol names and symbols. */
6042 const struct {
6043 const char *name;
6044 void *address;
6046 lt__PROGRAM__LTX_preloaded_symbols[] =
6048 { "@PROGRAM@", (void *) 0 },
6049 _LT_EOF
6050 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6051 cat <<\_LT_EOF >> conftest.$ac_ext
6052 {0, (void *) 0}
6055 /* This works around a problem in FreeBSD linker */
6056 #ifdef FREEBSD_WORKAROUND
6057 static const void *lt_preloaded_setup() {
6058 return lt__PROGRAM__LTX_preloaded_symbols;
6060 #endif
6062 #ifdef __cplusplus
6064 #endif
6065 _LT_EOF
6066 # Now try linking the two files.
6067 mv conftest.$ac_objext conftstm.$ac_objext
6068 lt_save_LIBS="$LIBS"
6069 lt_save_CFLAGS="$CFLAGS"
6070 LIBS="conftstm.$ac_objext"
6071 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6073 (eval $ac_link) 2>&5
6074 ac_status=$?
6075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6076 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6077 pipe_works=yes
6079 LIBS="$lt_save_LIBS"
6080 CFLAGS="$lt_save_CFLAGS"
6081 else
6082 echo "cannot find nm_test_func in $nlist" >&5
6084 else
6085 echo "cannot find nm_test_var in $nlist" >&5
6087 else
6088 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6090 else
6091 echo "$progname: failed program was:" >&5
6092 cat conftest.$ac_ext >&5
6094 rm -rf conftest* conftst*
6096 # Do not use the global_symbol_pipe unless it works.
6097 if test "$pipe_works" = yes; then
6098 break
6099 else
6100 lt_cv_sys_global_symbol_pipe=
6102 done
6106 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6107 lt_cv_sys_global_symbol_to_cdecl=
6109 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6111 $as_echo "failed" >&6; }
6112 else
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6114 $as_echo "ok" >&6; }
6138 # Check whether --enable-libtool-lock was given.
6139 if test "${enable_libtool_lock+set}" = set; then :
6140 enableval=$enable_libtool_lock;
6143 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6145 # Some flags need to be propagated to the compiler or linker for good
6146 # libtool support.
6147 case $host in
6148 ia64-*-hpux*)
6149 # Find out which ABI we are using.
6150 echo 'int i;' > conftest.$ac_ext
6151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6152 (eval $ac_compile) 2>&5
6153 ac_status=$?
6154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6155 test $ac_status = 0; }; then
6156 case `/usr/bin/file conftest.$ac_objext` in
6157 *ELF-32*)
6158 HPUX_IA64_MODE="32"
6160 *ELF-64*)
6161 HPUX_IA64_MODE="64"
6163 esac
6165 rm -rf conftest*
6167 *-*-irix6*)
6168 # Find out which ABI we are using.
6169 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6171 (eval $ac_compile) 2>&5
6172 ac_status=$?
6173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6174 test $ac_status = 0; }; then
6175 if test "$lt_cv_prog_gnu_ld" = yes; then
6176 case `/usr/bin/file conftest.$ac_objext` in
6177 *32-bit*)
6178 LD="${LD-ld} -melf32bsmip"
6180 *N32*)
6181 LD="${LD-ld} -melf32bmipn32"
6183 *64-bit*)
6184 LD="${LD-ld} -melf64bmip"
6186 esac
6187 else
6188 case `/usr/bin/file conftest.$ac_objext` in
6189 *32-bit*)
6190 LD="${LD-ld} -32"
6192 *N32*)
6193 LD="${LD-ld} -n32"
6195 *64-bit*)
6196 LD="${LD-ld} -64"
6198 esac
6201 rm -rf conftest*
6204 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6205 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6206 # Find out which ABI we are using.
6207 echo 'int i;' > conftest.$ac_ext
6208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6209 (eval $ac_compile) 2>&5
6210 ac_status=$?
6211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6212 test $ac_status = 0; }; then
6213 case `/usr/bin/file conftest.o` in
6214 *32-bit*)
6215 case $host in
6216 x86_64-*kfreebsd*-gnu)
6217 LD="${LD-ld} -m elf_i386_fbsd"
6219 x86_64-*linux*)
6220 case `/usr/bin/file conftest.o` in
6221 *x86-64*)
6222 LD="${LD-ld} -m elf32_x86_64"
6225 LD="${LD-ld} -m elf_i386"
6227 esac
6229 powerpc64le-*linux*)
6230 LD="${LD-ld} -m elf32lppclinux"
6232 powerpc64-*linux*)
6233 LD="${LD-ld} -m elf32ppclinux"
6235 s390x-*linux*)
6236 LD="${LD-ld} -m elf_s390"
6238 sparc64-*linux*)
6239 LD="${LD-ld} -m elf32_sparc"
6241 esac
6243 *64-bit*)
6244 case $host in
6245 x86_64-*kfreebsd*-gnu)
6246 LD="${LD-ld} -m elf_x86_64_fbsd"
6248 x86_64-*linux*)
6249 LD="${LD-ld} -m elf_x86_64"
6251 powerpcle-*linux*)
6252 LD="${LD-ld} -m elf64lppc"
6254 powerpc-*linux*)
6255 LD="${LD-ld} -m elf64ppc"
6257 s390*-*linux*|s390*-*tpf*)
6258 LD="${LD-ld} -m elf64_s390"
6260 sparc*-*linux*)
6261 LD="${LD-ld} -m elf64_sparc"
6263 esac
6265 esac
6267 rm -rf conftest*
6270 *-*-sco3.2v5*)
6271 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6272 SAVE_CFLAGS="$CFLAGS"
6273 CFLAGS="$CFLAGS -belf"
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6275 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6276 if ${lt_cv_cc_needs_belf+:} false; then :
6277 $as_echo_n "(cached) " >&6
6278 else
6279 ac_ext=c
6280 ac_cpp='$CPP $CPPFLAGS'
6281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6285 if test x$gcc_no_link = xyes; then
6286 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6289 /* end confdefs.h. */
6292 main ()
6296 return 0;
6298 _ACEOF
6299 if ac_fn_c_try_link "$LINENO"; then :
6300 lt_cv_cc_needs_belf=yes
6301 else
6302 lt_cv_cc_needs_belf=no
6304 rm -f core conftest.err conftest.$ac_objext \
6305 conftest$ac_exeext conftest.$ac_ext
6306 ac_ext=c
6307 ac_cpp='$CPP $CPPFLAGS'
6308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6314 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6315 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6316 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6317 CFLAGS="$SAVE_CFLAGS"
6320 sparc*-*solaris*)
6321 # Find out which ABI we are using.
6322 echo 'int i;' > conftest.$ac_ext
6323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6324 (eval $ac_compile) 2>&5
6325 ac_status=$?
6326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6327 test $ac_status = 0; }; then
6328 case `/usr/bin/file conftest.o` in
6329 *64-bit*)
6330 case $lt_cv_prog_gnu_ld in
6331 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6333 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6334 LD="${LD-ld} -64"
6337 esac
6339 esac
6341 rm -rf conftest*
6343 esac
6345 need_locks="$enable_libtool_lock"
6348 case $host_os in
6349 rhapsody* | darwin*)
6350 if test -n "$ac_tool_prefix"; then
6351 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6352 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6354 $as_echo_n "checking for $ac_word... " >&6; }
6355 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6356 $as_echo_n "(cached) " >&6
6357 else
6358 if test -n "$DSYMUTIL"; then
6359 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6360 else
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 for as_dir in $PATH
6364 IFS=$as_save_IFS
6365 test -z "$as_dir" && as_dir=.
6366 for ac_exec_ext in '' $ac_executable_extensions; do
6367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6368 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6370 break 2
6372 done
6373 done
6374 IFS=$as_save_IFS
6378 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6379 if test -n "$DSYMUTIL"; then
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6381 $as_echo "$DSYMUTIL" >&6; }
6382 else
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6384 $as_echo "no" >&6; }
6389 if test -z "$ac_cv_prog_DSYMUTIL"; then
6390 ac_ct_DSYMUTIL=$DSYMUTIL
6391 # Extract the first word of "dsymutil", so it can be a program name with args.
6392 set dummy dsymutil; ac_word=$2
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6394 $as_echo_n "checking for $ac_word... " >&6; }
6395 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6396 $as_echo_n "(cached) " >&6
6397 else
6398 if test -n "$ac_ct_DSYMUTIL"; then
6399 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6400 else
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 for as_dir in $PATH
6404 IFS=$as_save_IFS
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6408 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 break 2
6412 done
6413 done
6414 IFS=$as_save_IFS
6418 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6419 if test -n "$ac_ct_DSYMUTIL"; then
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6421 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6422 else
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424 $as_echo "no" >&6; }
6427 if test "x$ac_ct_DSYMUTIL" = x; then
6428 DSYMUTIL=":"
6429 else
6430 case $cross_compiling:$ac_tool_warned in
6431 yes:)
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6434 ac_tool_warned=yes ;;
6435 esac
6436 DSYMUTIL=$ac_ct_DSYMUTIL
6438 else
6439 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6442 if test -n "$ac_tool_prefix"; then
6443 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6444 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if ${ac_cv_prog_NMEDIT+:} false; then :
6448 $as_echo_n "(cached) " >&6
6449 else
6450 if test -n "$NMEDIT"; then
6451 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6452 else
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 for as_dir in $PATH
6456 IFS=$as_save_IFS
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6460 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6462 break 2
6464 done
6465 done
6466 IFS=$as_save_IFS
6470 NMEDIT=$ac_cv_prog_NMEDIT
6471 if test -n "$NMEDIT"; then
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6473 $as_echo "$NMEDIT" >&6; }
6474 else
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476 $as_echo "no" >&6; }
6481 if test -z "$ac_cv_prog_NMEDIT"; then
6482 ac_ct_NMEDIT=$NMEDIT
6483 # Extract the first word of "nmedit", so it can be a program name with args.
6484 set dummy nmedit; ac_word=$2
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6486 $as_echo_n "checking for $ac_word... " >&6; }
6487 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6488 $as_echo_n "(cached) " >&6
6489 else
6490 if test -n "$ac_ct_NMEDIT"; then
6491 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6492 else
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 for as_dir in $PATH
6496 IFS=$as_save_IFS
6497 test -z "$as_dir" && as_dir=.
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6500 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 break 2
6504 done
6505 done
6506 IFS=$as_save_IFS
6510 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6511 if test -n "$ac_ct_NMEDIT"; then
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6513 $as_echo "$ac_ct_NMEDIT" >&6; }
6514 else
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516 $as_echo "no" >&6; }
6519 if test "x$ac_ct_NMEDIT" = x; then
6520 NMEDIT=":"
6521 else
6522 case $cross_compiling:$ac_tool_warned in
6523 yes:)
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6526 ac_tool_warned=yes ;;
6527 esac
6528 NMEDIT=$ac_ct_NMEDIT
6530 else
6531 NMEDIT="$ac_cv_prog_NMEDIT"
6534 if test -n "$ac_tool_prefix"; then
6535 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6536 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6538 $as_echo_n "checking for $ac_word... " >&6; }
6539 if ${ac_cv_prog_LIPO+:} false; then :
6540 $as_echo_n "(cached) " >&6
6541 else
6542 if test -n "$LIPO"; then
6543 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6544 else
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 for as_dir in $PATH
6548 IFS=$as_save_IFS
6549 test -z "$as_dir" && as_dir=.
6550 for ac_exec_ext in '' $ac_executable_extensions; do
6551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6552 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6554 break 2
6556 done
6557 done
6558 IFS=$as_save_IFS
6562 LIPO=$ac_cv_prog_LIPO
6563 if test -n "$LIPO"; then
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6565 $as_echo "$LIPO" >&6; }
6566 else
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568 $as_echo "no" >&6; }
6573 if test -z "$ac_cv_prog_LIPO"; then
6574 ac_ct_LIPO=$LIPO
6575 # Extract the first word of "lipo", so it can be a program name with args.
6576 set dummy lipo; ac_word=$2
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6578 $as_echo_n "checking for $ac_word... " >&6; }
6579 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6580 $as_echo_n "(cached) " >&6
6581 else
6582 if test -n "$ac_ct_LIPO"; then
6583 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6584 else
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 for as_dir in $PATH
6588 IFS=$as_save_IFS
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6592 ac_cv_prog_ac_ct_LIPO="lipo"
6593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6594 break 2
6596 done
6597 done
6598 IFS=$as_save_IFS
6602 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6603 if test -n "$ac_ct_LIPO"; then
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6605 $as_echo "$ac_ct_LIPO" >&6; }
6606 else
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608 $as_echo "no" >&6; }
6611 if test "x$ac_ct_LIPO" = x; then
6612 LIPO=":"
6613 else
6614 case $cross_compiling:$ac_tool_warned in
6615 yes:)
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6618 ac_tool_warned=yes ;;
6619 esac
6620 LIPO=$ac_ct_LIPO
6622 else
6623 LIPO="$ac_cv_prog_LIPO"
6626 if test -n "$ac_tool_prefix"; then
6627 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6628 set dummy ${ac_tool_prefix}otool; ac_word=$2
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630 $as_echo_n "checking for $ac_word... " >&6; }
6631 if ${ac_cv_prog_OTOOL+:} false; then :
6632 $as_echo_n "(cached) " >&6
6633 else
6634 if test -n "$OTOOL"; then
6635 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6636 else
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 for as_dir in $PATH
6640 IFS=$as_save_IFS
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6644 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6646 break 2
6648 done
6649 done
6650 IFS=$as_save_IFS
6654 OTOOL=$ac_cv_prog_OTOOL
6655 if test -n "$OTOOL"; then
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6657 $as_echo "$OTOOL" >&6; }
6658 else
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660 $as_echo "no" >&6; }
6665 if test -z "$ac_cv_prog_OTOOL"; then
6666 ac_ct_OTOOL=$OTOOL
6667 # Extract the first word of "otool", so it can be a program name with args.
6668 set dummy otool; ac_word=$2
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670 $as_echo_n "checking for $ac_word... " >&6; }
6671 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6672 $as_echo_n "(cached) " >&6
6673 else
6674 if test -n "$ac_ct_OTOOL"; then
6675 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6676 else
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 for as_dir in $PATH
6680 IFS=$as_save_IFS
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6684 ac_cv_prog_ac_ct_OTOOL="otool"
6685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 break 2
6688 done
6689 done
6690 IFS=$as_save_IFS
6694 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6695 if test -n "$ac_ct_OTOOL"; then
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6697 $as_echo "$ac_ct_OTOOL" >&6; }
6698 else
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700 $as_echo "no" >&6; }
6703 if test "x$ac_ct_OTOOL" = x; then
6704 OTOOL=":"
6705 else
6706 case $cross_compiling:$ac_tool_warned in
6707 yes:)
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6710 ac_tool_warned=yes ;;
6711 esac
6712 OTOOL=$ac_ct_OTOOL
6714 else
6715 OTOOL="$ac_cv_prog_OTOOL"
6718 if test -n "$ac_tool_prefix"; then
6719 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6720 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722 $as_echo_n "checking for $ac_word... " >&6; }
6723 if ${ac_cv_prog_OTOOL64+:} false; then :
6724 $as_echo_n "(cached) " >&6
6725 else
6726 if test -n "$OTOOL64"; then
6727 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6728 else
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 for as_dir in $PATH
6732 IFS=$as_save_IFS
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6736 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 break 2
6740 done
6741 done
6742 IFS=$as_save_IFS
6746 OTOOL64=$ac_cv_prog_OTOOL64
6747 if test -n "$OTOOL64"; then
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6749 $as_echo "$OTOOL64" >&6; }
6750 else
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752 $as_echo "no" >&6; }
6757 if test -z "$ac_cv_prog_OTOOL64"; then
6758 ac_ct_OTOOL64=$OTOOL64
6759 # Extract the first word of "otool64", so it can be a program name with args.
6760 set dummy otool64; ac_word=$2
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6762 $as_echo_n "checking for $ac_word... " >&6; }
6763 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6764 $as_echo_n "(cached) " >&6
6765 else
6766 if test -n "$ac_ct_OTOOL64"; then
6767 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6768 else
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 for as_dir in $PATH
6772 IFS=$as_save_IFS
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
6775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6776 ac_cv_prog_ac_ct_OTOOL64="otool64"
6777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 break 2
6780 done
6781 done
6782 IFS=$as_save_IFS
6786 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6787 if test -n "$ac_ct_OTOOL64"; then
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6789 $as_echo "$ac_ct_OTOOL64" >&6; }
6790 else
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6792 $as_echo "no" >&6; }
6795 if test "x$ac_ct_OTOOL64" = x; then
6796 OTOOL64=":"
6797 else
6798 case $cross_compiling:$ac_tool_warned in
6799 yes:)
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6802 ac_tool_warned=yes ;;
6803 esac
6804 OTOOL64=$ac_ct_OTOOL64
6806 else
6807 OTOOL64="$ac_cv_prog_OTOOL64"
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6837 $as_echo_n "checking for -single_module linker flag... " >&6; }
6838 if ${lt_cv_apple_cc_single_mod+:} false; then :
6839 $as_echo_n "(cached) " >&6
6840 else
6841 lt_cv_apple_cc_single_mod=no
6842 if test -z "${LT_MULTI_MODULE}"; then
6843 # By default we will add the -single_module flag. You can override
6844 # by either setting the environment variable LT_MULTI_MODULE
6845 # non-empty at configure time, or by adding -multi_module to the
6846 # link flags.
6847 rm -rf libconftest.dylib*
6848 echo "int foo(void){return 1;}" > conftest.c
6849 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6850 -dynamiclib -Wl,-single_module conftest.c" >&5
6851 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6852 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6853 _lt_result=$?
6854 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6855 lt_cv_apple_cc_single_mod=yes
6856 else
6857 cat conftest.err >&5
6859 rm -rf libconftest.dylib*
6860 rm -f conftest.*
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6864 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6866 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6867 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6868 $as_echo_n "(cached) " >&6
6869 else
6870 lt_cv_ld_exported_symbols_list=no
6871 save_LDFLAGS=$LDFLAGS
6872 echo "_main" > conftest.sym
6873 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6874 if test x$gcc_no_link = xyes; then
6875 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h. */
6881 main ()
6885 return 0;
6887 _ACEOF
6888 if ac_fn_c_try_link "$LINENO"; then :
6889 lt_cv_ld_exported_symbols_list=yes
6890 else
6891 lt_cv_ld_exported_symbols_list=no
6893 rm -f core conftest.err conftest.$ac_objext \
6894 conftest$ac_exeext conftest.$ac_ext
6895 LDFLAGS="$save_LDFLAGS"
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6899 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6901 $as_echo_n "checking for -force_load linker flag... " >&6; }
6902 if ${lt_cv_ld_force_load+:} false; then :
6903 $as_echo_n "(cached) " >&6
6904 else
6905 lt_cv_ld_force_load=no
6906 cat > conftest.c << _LT_EOF
6907 int forced_loaded() { return 2;}
6908 _LT_EOF
6909 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6910 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6911 echo "$AR cru libconftest.a conftest.o" >&5
6912 $AR cru libconftest.a conftest.o 2>&5
6913 cat > conftest.c << _LT_EOF
6914 int main() { return 0;}
6915 _LT_EOF
6916 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6917 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6918 _lt_result=$?
6919 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6920 lt_cv_ld_force_load=yes
6921 else
6922 cat conftest.err >&5
6924 rm -f conftest.err libconftest.a conftest conftest.c
6925 rm -rf conftest.dSYM
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6929 $as_echo "$lt_cv_ld_force_load" >&6; }
6930 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
6931 # build without first building modern cctools / linker.
6932 case $host_cpu-$host_os in
6933 *-rhapsody* | *-darwin1.[012])
6934 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6935 *-darwin1.*)
6936 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6937 *-darwin*)
6938 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
6939 # deployment target is forced to an earlier version.
6940 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
6941 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
6943 10.[012][,.]*)
6944 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6948 esac
6950 esac
6951 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6952 _lt_dar_single_mod='$single_module'
6954 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6955 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6956 else
6957 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6959 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6960 _lt_dsymutil='~$DSYMUTIL $lib || :'
6961 else
6962 _lt_dsymutil=
6965 esac
6967 ac_ext=c
6968 ac_cpp='$CPP $CPPFLAGS'
6969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6973 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6974 # On Suns, sometimes $CPP names a directory.
6975 if test -n "$CPP" && test -d "$CPP"; then
6976 CPP=
6978 if test -z "$CPP"; then
6979 if ${ac_cv_prog_CPP+:} false; then :
6980 $as_echo_n "(cached) " >&6
6981 else
6982 # Double quotes because CPP needs to be expanded
6983 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6985 ac_preproc_ok=false
6986 for ac_c_preproc_warn_flag in '' yes
6988 # Use a header file that comes with gcc, so configuring glibc
6989 # with a fresh cross-compiler works.
6990 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6991 # <limits.h> exists even on freestanding compilers.
6992 # On the NeXT, cc -E runs the code through the compiler's parser,
6993 # not just through cpp. "Syntax error" is here to catch this case.
6994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6995 /* end confdefs.h. */
6996 #ifdef __STDC__
6997 # include <limits.h>
6998 #else
6999 # include <assert.h>
7000 #endif
7001 Syntax error
7002 _ACEOF
7003 if ac_fn_c_try_cpp "$LINENO"; then :
7005 else
7006 # Broken: fails on valid input.
7007 continue
7009 rm -f conftest.err conftest.i conftest.$ac_ext
7011 # OK, works on sane cases. Now check whether nonexistent headers
7012 # can be detected and how.
7013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7014 /* end confdefs.h. */
7015 #include <ac_nonexistent.h>
7016 _ACEOF
7017 if ac_fn_c_try_cpp "$LINENO"; then :
7018 # Broken: success on invalid input.
7019 continue
7020 else
7021 # Passes both tests.
7022 ac_preproc_ok=:
7023 break
7025 rm -f conftest.err conftest.i conftest.$ac_ext
7027 done
7028 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7029 rm -f conftest.i conftest.err conftest.$ac_ext
7030 if $ac_preproc_ok; then :
7031 break
7034 done
7035 ac_cv_prog_CPP=$CPP
7038 CPP=$ac_cv_prog_CPP
7039 else
7040 ac_cv_prog_CPP=$CPP
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7043 $as_echo "$CPP" >&6; }
7044 ac_preproc_ok=false
7045 for ac_c_preproc_warn_flag in '' yes
7047 # Use a header file that comes with gcc, so configuring glibc
7048 # with a fresh cross-compiler works.
7049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7050 # <limits.h> exists even on freestanding compilers.
7051 # On the NeXT, cc -E runs the code through the compiler's parser,
7052 # not just through cpp. "Syntax error" is here to catch this case.
7053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054 /* end confdefs.h. */
7055 #ifdef __STDC__
7056 # include <limits.h>
7057 #else
7058 # include <assert.h>
7059 #endif
7060 Syntax error
7061 _ACEOF
7062 if ac_fn_c_try_cpp "$LINENO"; then :
7064 else
7065 # Broken: fails on valid input.
7066 continue
7068 rm -f conftest.err conftest.i conftest.$ac_ext
7070 # OK, works on sane cases. Now check whether nonexistent headers
7071 # can be detected and how.
7072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7073 /* end confdefs.h. */
7074 #include <ac_nonexistent.h>
7075 _ACEOF
7076 if ac_fn_c_try_cpp "$LINENO"; then :
7077 # Broken: success on invalid input.
7078 continue
7079 else
7080 # Passes both tests.
7081 ac_preproc_ok=:
7082 break
7084 rm -f conftest.err conftest.i conftest.$ac_ext
7086 done
7087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7088 rm -f conftest.i conftest.err conftest.$ac_ext
7089 if $ac_preproc_ok; then :
7091 else
7092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7094 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7095 See \`config.log' for more details" "$LINENO" 5; }
7098 ac_ext=c
7099 ac_cpp='$CPP $CPPFLAGS'
7100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7106 $as_echo_n "checking for ANSI C header files... " >&6; }
7107 if ${ac_cv_header_stdc+:} false; then :
7108 $as_echo_n "(cached) " >&6
7109 else
7110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7111 /* end confdefs.h. */
7112 #include <stdlib.h>
7113 #include <stdarg.h>
7114 #include <string.h>
7115 #include <float.h>
7118 main ()
7122 return 0;
7124 _ACEOF
7125 if ac_fn_c_try_compile "$LINENO"; then :
7126 ac_cv_header_stdc=yes
7127 else
7128 ac_cv_header_stdc=no
7130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7132 if test $ac_cv_header_stdc = yes; then
7133 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135 /* end confdefs.h. */
7136 #include <string.h>
7138 _ACEOF
7139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7140 $EGREP "memchr" >/dev/null 2>&1; then :
7142 else
7143 ac_cv_header_stdc=no
7145 rm -f conftest*
7149 if test $ac_cv_header_stdc = yes; then
7150 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152 /* end confdefs.h. */
7153 #include <stdlib.h>
7155 _ACEOF
7156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7157 $EGREP "free" >/dev/null 2>&1; then :
7159 else
7160 ac_cv_header_stdc=no
7162 rm -f conftest*
7166 if test $ac_cv_header_stdc = yes; then
7167 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7168 if test "$cross_compiling" = yes; then :
7170 else
7171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172 /* end confdefs.h. */
7173 #include <ctype.h>
7174 #include <stdlib.h>
7175 #if ((' ' & 0x0FF) == 0x020)
7176 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7177 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7178 #else
7179 # define ISLOWER(c) \
7180 (('a' <= (c) && (c) <= 'i') \
7181 || ('j' <= (c) && (c) <= 'r') \
7182 || ('s' <= (c) && (c) <= 'z'))
7183 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7184 #endif
7186 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7188 main ()
7190 int i;
7191 for (i = 0; i < 256; i++)
7192 if (XOR (islower (i), ISLOWER (i))
7193 || toupper (i) != TOUPPER (i))
7194 return 2;
7195 return 0;
7197 _ACEOF
7198 if ac_fn_c_try_run "$LINENO"; then :
7200 else
7201 ac_cv_header_stdc=no
7203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7204 conftest.$ac_objext conftest.beam conftest.$ac_ext
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7210 $as_echo "$ac_cv_header_stdc" >&6; }
7211 if test $ac_cv_header_stdc = yes; then
7213 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7217 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7218 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7219 inttypes.h stdint.h unistd.h
7220 do :
7221 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7222 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7224 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7225 cat >>confdefs.h <<_ACEOF
7226 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7227 _ACEOF
7231 done
7234 for ac_header in dlfcn.h
7235 do :
7236 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7238 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7239 cat >>confdefs.h <<_ACEOF
7240 #define HAVE_DLFCN_H 1
7241 _ACEOF
7245 done
7251 # Set options
7255 enable_dlopen=no
7258 enable_win32_dll=no
7261 # Check whether --enable-shared was given.
7262 if test "${enable_shared+set}" = set; then :
7263 enableval=$enable_shared; p=${PACKAGE-default}
7264 case $enableval in
7265 yes) enable_shared=yes ;;
7266 no) enable_shared=no ;;
7268 enable_shared=no
7269 # Look at the argument we got. We use all the common list separators.
7270 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7271 for pkg in $enableval; do
7272 IFS="$lt_save_ifs"
7273 if test "X$pkg" = "X$p"; then
7274 enable_shared=yes
7276 done
7277 IFS="$lt_save_ifs"
7279 esac
7280 else
7281 enable_shared=yes
7292 # Check whether --enable-static was given.
7293 if test "${enable_static+set}" = set; then :
7294 enableval=$enable_static; p=${PACKAGE-default}
7295 case $enableval in
7296 yes) enable_static=yes ;;
7297 no) enable_static=no ;;
7299 enable_static=no
7300 # Look at the argument we got. We use all the common list separators.
7301 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7302 for pkg in $enableval; do
7303 IFS="$lt_save_ifs"
7304 if test "X$pkg" = "X$p"; then
7305 enable_static=yes
7307 done
7308 IFS="$lt_save_ifs"
7310 esac
7311 else
7312 enable_static=yes
7324 # Check whether --with-pic was given.
7325 if test "${with_pic+set}" = set; then :
7326 withval=$with_pic; pic_mode="$withval"
7327 else
7328 pic_mode=default
7332 test -z "$pic_mode" && pic_mode=default
7340 # Check whether --enable-fast-install was given.
7341 if test "${enable_fast_install+set}" = set; then :
7342 enableval=$enable_fast_install; p=${PACKAGE-default}
7343 case $enableval in
7344 yes) enable_fast_install=yes ;;
7345 no) enable_fast_install=no ;;
7347 enable_fast_install=no
7348 # Look at the argument we got. We use all the common list separators.
7349 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7350 for pkg in $enableval; do
7351 IFS="$lt_save_ifs"
7352 if test "X$pkg" = "X$p"; then
7353 enable_fast_install=yes
7355 done
7356 IFS="$lt_save_ifs"
7358 esac
7359 else
7360 enable_fast_install=yes
7373 # This can be used to rebuild libtool when needed
7374 LIBTOOL_DEPS="$ltmain"
7376 # Always use our own libtool.
7377 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7404 test -z "$LN_S" && LN_S="ln -s"
7419 if test -n "${ZSH_VERSION+set}" ; then
7420 setopt NO_GLOB_SUBST
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7424 $as_echo_n "checking for objdir... " >&6; }
7425 if ${lt_cv_objdir+:} false; then :
7426 $as_echo_n "(cached) " >&6
7427 else
7428 rm -f .libs 2>/dev/null
7429 mkdir .libs 2>/dev/null
7430 if test -d .libs; then
7431 lt_cv_objdir=.libs
7432 else
7433 # MS-DOS does not allow filenames that begin with a dot.
7434 lt_cv_objdir=_libs
7436 rmdir .libs 2>/dev/null
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7439 $as_echo "$lt_cv_objdir" >&6; }
7440 objdir=$lt_cv_objdir
7446 cat >>confdefs.h <<_ACEOF
7447 #define LT_OBJDIR "$lt_cv_objdir/"
7448 _ACEOF
7453 case $host_os in
7454 aix3*)
7455 # AIX sometimes has problems with the GCC collect2 program. For some
7456 # reason, if we set the COLLECT_NAMES environment variable, the problems
7457 # vanish in a puff of smoke.
7458 if test "X${COLLECT_NAMES+set}" != Xset; then
7459 COLLECT_NAMES=
7460 export COLLECT_NAMES
7463 esac
7465 # Global variables:
7466 ofile=libtool
7467 can_build_shared=yes
7469 # All known linkers require a `.a' archive for static linking (except MSVC,
7470 # which needs '.lib').
7471 libext=a
7473 with_gnu_ld="$lt_cv_prog_gnu_ld"
7475 old_CC="$CC"
7476 old_CFLAGS="$CFLAGS"
7478 # Set sane defaults for various variables
7479 test -z "$CC" && CC=cc
7480 test -z "$LTCC" && LTCC=$CC
7481 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7482 test -z "$LD" && LD=ld
7483 test -z "$ac_objext" && ac_objext=o
7485 for cc_temp in $compiler""; do
7486 case $cc_temp in
7487 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7488 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7489 \-*) ;;
7490 *) break;;
7491 esac
7492 done
7493 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7496 # Only perform the check for file, if the check method requires it
7497 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7498 case $deplibs_check_method in
7499 file_magic*)
7500 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7502 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7503 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7504 $as_echo_n "(cached) " >&6
7505 else
7506 case $MAGIC_CMD in
7507 [\\/*] | ?:[\\/]*)
7508 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7511 lt_save_MAGIC_CMD="$MAGIC_CMD"
7512 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7513 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7514 for ac_dir in $ac_dummy; do
7515 IFS="$lt_save_ifs"
7516 test -z "$ac_dir" && ac_dir=.
7517 if test -f $ac_dir/${ac_tool_prefix}file; then
7518 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7519 if test -n "$file_magic_test_file"; then
7520 case $deplibs_check_method in
7521 "file_magic "*)
7522 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7523 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7524 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7525 $EGREP "$file_magic_regex" > /dev/null; then
7527 else
7528 cat <<_LT_EOF 1>&2
7530 *** Warning: the command libtool uses to detect shared libraries,
7531 *** $file_magic_cmd, produces output that libtool cannot recognize.
7532 *** The result is that libtool may fail to recognize shared libraries
7533 *** as such. This will affect the creation of libtool libraries that
7534 *** depend on shared libraries, but programs linked with such libtool
7535 *** libraries will work regardless of this problem. Nevertheless, you
7536 *** may want to report the problem to your system manager and/or to
7537 *** bug-libtool@gnu.org
7539 _LT_EOF
7540 fi ;;
7541 esac
7543 break
7545 done
7546 IFS="$lt_save_ifs"
7547 MAGIC_CMD="$lt_save_MAGIC_CMD"
7549 esac
7552 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7553 if test -n "$MAGIC_CMD"; then
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7555 $as_echo "$MAGIC_CMD" >&6; }
7556 else
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558 $as_echo "no" >&6; }
7565 if test -z "$lt_cv_path_MAGIC_CMD"; then
7566 if test -n "$ac_tool_prefix"; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7568 $as_echo_n "checking for file... " >&6; }
7569 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7570 $as_echo_n "(cached) " >&6
7571 else
7572 case $MAGIC_CMD in
7573 [\\/*] | ?:[\\/]*)
7574 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7577 lt_save_MAGIC_CMD="$MAGIC_CMD"
7578 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7579 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7580 for ac_dir in $ac_dummy; do
7581 IFS="$lt_save_ifs"
7582 test -z "$ac_dir" && ac_dir=.
7583 if test -f $ac_dir/file; then
7584 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7585 if test -n "$file_magic_test_file"; then
7586 case $deplibs_check_method in
7587 "file_magic "*)
7588 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7589 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7590 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7591 $EGREP "$file_magic_regex" > /dev/null; then
7593 else
7594 cat <<_LT_EOF 1>&2
7596 *** Warning: the command libtool uses to detect shared libraries,
7597 *** $file_magic_cmd, produces output that libtool cannot recognize.
7598 *** The result is that libtool may fail to recognize shared libraries
7599 *** as such. This will affect the creation of libtool libraries that
7600 *** depend on shared libraries, but programs linked with such libtool
7601 *** libraries will work regardless of this problem. Nevertheless, you
7602 *** may want to report the problem to your system manager and/or to
7603 *** bug-libtool@gnu.org
7605 _LT_EOF
7606 fi ;;
7607 esac
7609 break
7611 done
7612 IFS="$lt_save_ifs"
7613 MAGIC_CMD="$lt_save_MAGIC_CMD"
7615 esac
7618 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7619 if test -n "$MAGIC_CMD"; then
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7621 $as_echo "$MAGIC_CMD" >&6; }
7622 else
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624 $as_echo "no" >&6; }
7628 else
7629 MAGIC_CMD=:
7635 esac
7637 # Use C for the default configuration in the libtool script
7639 lt_save_CC="$CC"
7640 ac_ext=c
7641 ac_cpp='$CPP $CPPFLAGS'
7642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7647 # Source file extension for C test sources.
7648 ac_ext=c
7650 # Object file extension for compiled C test sources.
7651 objext=o
7652 objext=$objext
7654 # Code to be used in simple compile tests
7655 lt_simple_compile_test_code="int some_variable = 0;"
7657 # Code to be used in simple link tests
7658 lt_simple_link_test_code='int main(){return(0);}'
7666 # If no C compiler was specified, use CC.
7667 LTCC=${LTCC-"$CC"}
7669 # If no C compiler flags were specified, use CFLAGS.
7670 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7672 # Allow CC to be a program name with arguments.
7673 compiler=$CC
7675 # Save the default compiler, since it gets overwritten when the other
7676 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7677 compiler_DEFAULT=$CC
7679 # save warnings/boilerplate of simple test code
7680 ac_outfile=conftest.$ac_objext
7681 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7682 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7683 _lt_compiler_boilerplate=`cat conftest.err`
7684 $RM conftest*
7686 ac_outfile=conftest.$ac_objext
7687 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7688 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7689 _lt_linker_boilerplate=`cat conftest.err`
7690 $RM -r conftest*
7693 ## CAVEAT EMPTOR:
7694 ## There is no encapsulation within the following macros, do not change
7695 ## the running order or otherwise move them around unless you know exactly
7696 ## what you are doing...
7697 if test -n "$compiler"; then
7699 lt_prog_compiler_no_builtin_flag=
7701 if test "$GCC" = yes; then
7702 case $cc_basename in
7703 nvcc*)
7704 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7706 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7707 esac
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7710 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7711 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7712 $as_echo_n "(cached) " >&6
7713 else
7714 lt_cv_prog_compiler_rtti_exceptions=no
7715 ac_outfile=conftest.$ac_objext
7716 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7717 lt_compiler_flag="-fno-rtti -fno-exceptions"
7718 # Insert the option either (1) after the last *FLAGS variable, or
7719 # (2) before a word containing "conftest.", or (3) at the end.
7720 # Note that $ac_compile itself does not contain backslashes and begins
7721 # with a dollar sign (not a hyphen), so the echo should work correctly.
7722 # The option is referenced via a variable to avoid confusing sed.
7723 lt_compile=`echo "$ac_compile" | $SED \
7724 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7726 -e 's:$: $lt_compiler_flag:'`
7727 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7728 (eval "$lt_compile" 2>conftest.err)
7729 ac_status=$?
7730 cat conftest.err >&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 if (exit $ac_status) && test -s "$ac_outfile"; then
7733 # The compiler can only warn and ignore the option if not recognized
7734 # So say no if there are warnings other than the usual output.
7735 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7736 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7737 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7738 lt_cv_prog_compiler_rtti_exceptions=yes
7741 $RM conftest*
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7745 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7747 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7748 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7749 else
7760 lt_prog_compiler_wl=
7761 lt_prog_compiler_pic=
7762 lt_prog_compiler_static=
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7765 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7767 if test "$GCC" = yes; then
7768 lt_prog_compiler_wl='-Wl,'
7769 lt_prog_compiler_static='-static'
7771 case $host_os in
7772 aix*)
7773 # All AIX code is PIC.
7774 if test "$host_cpu" = ia64; then
7775 # AIX 5 now supports IA64 processor
7776 lt_prog_compiler_static='-Bstatic'
7778 lt_prog_compiler_pic='-fPIC'
7781 amigaos*)
7782 case $host_cpu in
7783 powerpc)
7784 # see comment about AmigaOS4 .so support
7785 lt_prog_compiler_pic='-fPIC'
7787 m68k)
7788 # FIXME: we need at least 68020 code to build shared libraries, but
7789 # adding the `-m68020' flag to GCC prevents building anything better,
7790 # like `-m68040'.
7791 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7793 esac
7796 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7797 # PIC is the default for these OSes.
7800 mingw* | cygwin* | pw32* | os2* | cegcc*)
7801 # This hack is so that the source file can tell whether it is being
7802 # built for inclusion in a dll (and should export symbols for example).
7803 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7804 # (--disable-auto-import) libraries
7805 lt_prog_compiler_pic='-DDLL_EXPORT'
7808 darwin* | rhapsody*)
7809 # PIC is the default on this platform
7810 # Common symbols not allowed in MH_DYLIB files
7811 lt_prog_compiler_pic='-fno-common'
7814 haiku*)
7815 # PIC is the default for Haiku.
7816 # The "-static" flag exists, but is broken.
7817 lt_prog_compiler_static=
7820 hpux*)
7821 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7822 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7823 # sets the default TLS model and affects inlining.
7824 case $host_cpu in
7825 hppa*64*)
7826 # +Z the default
7829 lt_prog_compiler_pic='-fPIC'
7831 esac
7834 interix[3-9]*)
7835 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7836 # Instead, we relocate shared libraries at runtime.
7839 msdosdjgpp*)
7840 # Just because we use GCC doesn't mean we suddenly get shared libraries
7841 # on systems that don't support them.
7842 lt_prog_compiler_can_build_shared=no
7843 enable_shared=no
7846 *nto* | *qnx*)
7847 # QNX uses GNU C++, but need to define -shared option too, otherwise
7848 # it will coredump.
7849 lt_prog_compiler_pic='-fPIC -shared'
7852 sysv4*MP*)
7853 if test -d /usr/nec; then
7854 lt_prog_compiler_pic=-Kconform_pic
7859 lt_prog_compiler_pic='-fPIC'
7861 esac
7863 case $cc_basename in
7864 nvcc*) # Cuda Compiler Driver 2.2
7865 lt_prog_compiler_wl='-Xlinker '
7866 lt_prog_compiler_pic='-Xcompiler -fPIC'
7868 esac
7869 else
7870 # PORTME Check for flag to pass linker flags through the system compiler.
7871 case $host_os in
7872 aix*)
7873 lt_prog_compiler_wl='-Wl,'
7874 if test "$host_cpu" = ia64; then
7875 # AIX 5 now supports IA64 processor
7876 lt_prog_compiler_static='-Bstatic'
7877 else
7878 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7882 mingw* | cygwin* | pw32* | os2* | cegcc*)
7883 # This hack is so that the source file can tell whether it is being
7884 # built for inclusion in a dll (and should export symbols for example).
7885 lt_prog_compiler_pic='-DDLL_EXPORT'
7888 hpux9* | hpux10* | hpux11*)
7889 lt_prog_compiler_wl='-Wl,'
7890 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7891 # not for PA HP-UX.
7892 case $host_cpu in
7893 hppa*64*|ia64*)
7894 # +Z the default
7897 lt_prog_compiler_pic='+Z'
7899 esac
7900 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7901 lt_prog_compiler_static='${wl}-a ${wl}archive'
7904 irix5* | irix6* | nonstopux*)
7905 lt_prog_compiler_wl='-Wl,'
7906 # PIC (with -KPIC) is the default.
7907 lt_prog_compiler_static='-non_shared'
7910 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7911 case $cc_basename in
7912 # old Intel for x86_64 which still supported -KPIC.
7913 ecc*)
7914 lt_prog_compiler_wl='-Wl,'
7915 lt_prog_compiler_pic='-KPIC'
7916 lt_prog_compiler_static='-static'
7918 # icc used to be incompatible with GCC.
7919 # ICC 10 doesn't accept -KPIC any more.
7920 icc* | ifort*)
7921 lt_prog_compiler_wl='-Wl,'
7922 lt_prog_compiler_pic='-fPIC'
7923 lt_prog_compiler_static='-static'
7925 # Lahey Fortran 8.1.
7926 lf95*)
7927 lt_prog_compiler_wl='-Wl,'
7928 lt_prog_compiler_pic='--shared'
7929 lt_prog_compiler_static='--static'
7931 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7932 # Portland Group compilers (*not* the Pentium gcc compiler,
7933 # which looks to be a dead project)
7934 lt_prog_compiler_wl='-Wl,'
7935 lt_prog_compiler_pic='-fpic'
7936 lt_prog_compiler_static='-Bstatic'
7938 ccc*)
7939 lt_prog_compiler_wl='-Wl,'
7940 # All Alpha code is PIC.
7941 lt_prog_compiler_static='-non_shared'
7943 xl* | bgxl* | bgf* | mpixl*)
7944 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7945 lt_prog_compiler_wl='-Wl,'
7946 lt_prog_compiler_pic='-qpic'
7947 lt_prog_compiler_static='-qstaticlink'
7950 case `$CC -V 2>&1 | sed 5q` in
7951 *Sun\ F* | *Sun*Fortran*)
7952 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7953 lt_prog_compiler_pic='-KPIC'
7954 lt_prog_compiler_static='-Bstatic'
7955 lt_prog_compiler_wl=''
7957 *Sun\ C*)
7958 # Sun C 5.9
7959 lt_prog_compiler_pic='-KPIC'
7960 lt_prog_compiler_static='-Bstatic'
7961 lt_prog_compiler_wl='-Wl,'
7963 esac
7965 esac
7968 newsos6)
7969 lt_prog_compiler_pic='-KPIC'
7970 lt_prog_compiler_static='-Bstatic'
7973 *nto* | *qnx*)
7974 # QNX uses GNU C++, but need to define -shared option too, otherwise
7975 # it will coredump.
7976 lt_prog_compiler_pic='-fPIC -shared'
7979 osf3* | osf4* | osf5*)
7980 lt_prog_compiler_wl='-Wl,'
7981 # All OSF/1 code is PIC.
7982 lt_prog_compiler_static='-non_shared'
7985 rdos*)
7986 lt_prog_compiler_static='-non_shared'
7989 solaris*)
7990 lt_prog_compiler_pic='-KPIC'
7991 lt_prog_compiler_static='-Bstatic'
7992 case $cc_basename in
7993 f77* | f90* | f95*)
7994 lt_prog_compiler_wl='-Qoption ld ';;
7996 lt_prog_compiler_wl='-Wl,';;
7997 esac
8000 sunos4*)
8001 lt_prog_compiler_wl='-Qoption ld '
8002 lt_prog_compiler_pic='-PIC'
8003 lt_prog_compiler_static='-Bstatic'
8006 sysv4 | sysv4.2uw2* | sysv4.3*)
8007 lt_prog_compiler_wl='-Wl,'
8008 lt_prog_compiler_pic='-KPIC'
8009 lt_prog_compiler_static='-Bstatic'
8012 sysv4*MP*)
8013 if test -d /usr/nec ;then
8014 lt_prog_compiler_pic='-Kconform_pic'
8015 lt_prog_compiler_static='-Bstatic'
8019 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8020 lt_prog_compiler_wl='-Wl,'
8021 lt_prog_compiler_pic='-KPIC'
8022 lt_prog_compiler_static='-Bstatic'
8025 unicos*)
8026 lt_prog_compiler_wl='-Wl,'
8027 lt_prog_compiler_can_build_shared=no
8030 uts4*)
8031 lt_prog_compiler_pic='-pic'
8032 lt_prog_compiler_static='-Bstatic'
8036 lt_prog_compiler_can_build_shared=no
8038 esac
8041 case $host_os in
8042 # For platforms which do not support PIC, -DPIC is meaningless:
8043 *djgpp*)
8044 lt_prog_compiler_pic=
8047 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8049 esac
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8051 $as_echo "$lt_prog_compiler_pic" >&6; }
8059 # Check to make sure the PIC flag actually works.
8061 if test -n "$lt_prog_compiler_pic"; then
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8063 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8064 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8065 $as_echo_n "(cached) " >&6
8066 else
8067 lt_cv_prog_compiler_pic_works=no
8068 ac_outfile=conftest.$ac_objext
8069 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8070 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8071 # Insert the option either (1) after the last *FLAGS variable, or
8072 # (2) before a word containing "conftest.", or (3) at the end.
8073 # Note that $ac_compile itself does not contain backslashes and begins
8074 # with a dollar sign (not a hyphen), so the echo should work correctly.
8075 # The option is referenced via a variable to avoid confusing sed.
8076 lt_compile=`echo "$ac_compile" | $SED \
8077 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8078 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8079 -e 's:$: $lt_compiler_flag:'`
8080 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8081 (eval "$lt_compile" 2>conftest.err)
8082 ac_status=$?
8083 cat conftest.err >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 if (exit $ac_status) && test -s "$ac_outfile"; then
8086 # The compiler can only warn and ignore the option if not recognized
8087 # So say no if there are warnings other than the usual output.
8088 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8089 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8090 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8091 lt_cv_prog_compiler_pic_works=yes
8094 $RM conftest*
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8098 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8100 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8101 case $lt_prog_compiler_pic in
8102 "" | " "*) ;;
8103 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8104 esac
8105 else
8106 lt_prog_compiler_pic=
8107 lt_prog_compiler_can_build_shared=no
8118 # Check to make sure the static flag actually works.
8120 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8122 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8123 if ${lt_cv_prog_compiler_static_works+:} false; then :
8124 $as_echo_n "(cached) " >&6
8125 else
8126 lt_cv_prog_compiler_static_works=no
8127 save_LDFLAGS="$LDFLAGS"
8128 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8129 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8130 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8131 # The linker can only warn and ignore the option if not recognized
8132 # So say no if there are warnings
8133 if test -s conftest.err; then
8134 # Append any errors to the config.log.
8135 cat conftest.err 1>&5
8136 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8137 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8138 if diff conftest.exp conftest.er2 >/dev/null; then
8139 lt_cv_prog_compiler_static_works=yes
8141 else
8142 lt_cv_prog_compiler_static_works=yes
8145 $RM -r conftest*
8146 LDFLAGS="$save_LDFLAGS"
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8150 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8152 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8154 else
8155 lt_prog_compiler_static=
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8165 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8166 if ${lt_cv_prog_compiler_c_o+:} false; then :
8167 $as_echo_n "(cached) " >&6
8168 else
8169 lt_cv_prog_compiler_c_o=no
8170 $RM -r conftest 2>/dev/null
8171 mkdir conftest
8172 cd conftest
8173 mkdir out
8174 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8176 lt_compiler_flag="-o out/conftest2.$ac_objext"
8177 # Insert the option either (1) after the last *FLAGS variable, or
8178 # (2) before a word containing "conftest.", or (3) at the end.
8179 # Note that $ac_compile itself does not contain backslashes and begins
8180 # with a dollar sign (not a hyphen), so the echo should work correctly.
8181 lt_compile=`echo "$ac_compile" | $SED \
8182 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8183 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8184 -e 's:$: $lt_compiler_flag:'`
8185 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8186 (eval "$lt_compile" 2>out/conftest.err)
8187 ac_status=$?
8188 cat out/conftest.err >&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8191 then
8192 # The compiler can only warn and ignore the option if not recognized
8193 # So say no if there are warnings
8194 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8195 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8196 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8197 lt_cv_prog_compiler_c_o=yes
8200 chmod u+w . 2>&5
8201 $RM conftest*
8202 # SGI C++ compiler will create directory out/ii_files/ for
8203 # template instantiation
8204 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8205 $RM out/* && rmdir out
8206 cd ..
8207 $RM -r conftest
8208 $RM conftest*
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8212 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8220 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8221 if ${lt_cv_prog_compiler_c_o+:} false; then :
8222 $as_echo_n "(cached) " >&6
8223 else
8224 lt_cv_prog_compiler_c_o=no
8225 $RM -r conftest 2>/dev/null
8226 mkdir conftest
8227 cd conftest
8228 mkdir out
8229 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8231 lt_compiler_flag="-o out/conftest2.$ac_objext"
8232 # Insert the option either (1) after the last *FLAGS variable, or
8233 # (2) before a word containing "conftest.", or (3) at the end.
8234 # Note that $ac_compile itself does not contain backslashes and begins
8235 # with a dollar sign (not a hyphen), so the echo should work correctly.
8236 lt_compile=`echo "$ac_compile" | $SED \
8237 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8238 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8239 -e 's:$: $lt_compiler_flag:'`
8240 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8241 (eval "$lt_compile" 2>out/conftest.err)
8242 ac_status=$?
8243 cat out/conftest.err >&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8246 then
8247 # The compiler can only warn and ignore the option if not recognized
8248 # So say no if there are warnings
8249 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8250 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8251 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8252 lt_cv_prog_compiler_c_o=yes
8255 chmod u+w . 2>&5
8256 $RM conftest*
8257 # SGI C++ compiler will create directory out/ii_files/ for
8258 # template instantiation
8259 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8260 $RM out/* && rmdir out
8261 cd ..
8262 $RM -r conftest
8263 $RM conftest*
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8267 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8272 hard_links="nottested"
8273 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8274 # do not overwrite the value of need_locks provided by the user
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8276 $as_echo_n "checking if we can lock with hard links... " >&6; }
8277 hard_links=yes
8278 $RM conftest*
8279 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8280 touch conftest.a
8281 ln conftest.a conftest.b 2>&5 || hard_links=no
8282 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8284 $as_echo "$hard_links" >&6; }
8285 if test "$hard_links" = no; then
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8287 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8288 need_locks=warn
8290 else
8291 need_locks=no
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8300 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8302 runpath_var=
8303 allow_undefined_flag=
8304 always_export_symbols=no
8305 archive_cmds=
8306 archive_expsym_cmds=
8307 compiler_needs_object=no
8308 enable_shared_with_static_runtimes=no
8309 export_dynamic_flag_spec=
8310 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8311 hardcode_automatic=no
8312 hardcode_direct=no
8313 hardcode_direct_absolute=no
8314 hardcode_libdir_flag_spec=
8315 hardcode_libdir_flag_spec_ld=
8316 hardcode_libdir_separator=
8317 hardcode_minus_L=no
8318 hardcode_shlibpath_var=unsupported
8319 inherit_rpath=no
8320 link_all_deplibs=unknown
8321 module_cmds=
8322 module_expsym_cmds=
8323 old_archive_from_new_cmds=
8324 old_archive_from_expsyms_cmds=
8325 thread_safe_flag_spec=
8326 whole_archive_flag_spec=
8327 # include_expsyms should be a list of space-separated symbols to be *always*
8328 # included in the symbol list
8329 include_expsyms=
8330 # exclude_expsyms can be an extended regexp of symbols to exclude
8331 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8332 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8333 # as well as any symbol that contains `d'.
8334 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8335 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8336 # platforms (ab)use it in PIC code, but their linkers get confused if
8337 # the symbol is explicitly referenced. Since portable code cannot
8338 # rely on this symbol name, it's probably fine to never include it in
8339 # preloaded symbol tables.
8340 # Exclude shared library initialization/finalization symbols.
8341 extract_expsyms_cmds=
8343 case $host_os in
8344 cygwin* | mingw* | pw32* | cegcc*)
8345 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8346 # When not using gcc, we currently assume that we are using
8347 # Microsoft Visual C++.
8348 if test "$GCC" != yes; then
8349 with_gnu_ld=no
8352 interix*)
8353 # we just hope/assume this is gcc and not c89 (= MSVC++)
8354 with_gnu_ld=yes
8356 openbsd*)
8357 with_gnu_ld=no
8359 esac
8361 ld_shlibs=yes
8363 # On some targets, GNU ld is compatible enough with the native linker
8364 # that we're better off using the native interface for both.
8365 lt_use_gnu_ld_interface=no
8366 if test "$with_gnu_ld" = yes; then
8367 case $host_os in
8368 aix*)
8369 # The AIX port of GNU ld has always aspired to compatibility
8370 # with the native linker. However, as the warning in the GNU ld
8371 # block says, versions before 2.19.5* couldn't really create working
8372 # shared libraries, regardless of the interface used.
8373 case `$LD -v 2>&1` in
8374 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8375 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8376 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8378 lt_use_gnu_ld_interface=yes
8380 esac
8383 lt_use_gnu_ld_interface=yes
8385 esac
8388 if test "$lt_use_gnu_ld_interface" = yes; then
8389 # If archive_cmds runs LD, not CC, wlarc should be empty
8390 wlarc='${wl}'
8392 # Set some defaults for GNU ld with shared library support. These
8393 # are reset later if shared libraries are not supported. Putting them
8394 # here allows them to be overridden if necessary.
8395 runpath_var=LD_RUN_PATH
8396 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8397 export_dynamic_flag_spec='${wl}--export-dynamic'
8398 # ancient GNU ld didn't support --whole-archive et. al.
8399 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8400 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8401 else
8402 whole_archive_flag_spec=
8404 supports_anon_versioning=no
8405 case `$LD -v 2>&1` in
8406 *GNU\ gold*) supports_anon_versioning=yes ;;
8407 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8408 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8409 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8410 *\ 2.11.*) ;; # other 2.11 versions
8411 *) supports_anon_versioning=yes ;;
8412 esac
8414 # See if GNU ld supports shared libraries.
8415 case $host_os in
8416 aix[3-9]*)
8417 # On AIX/PPC, the GNU linker is very broken
8418 if test "$host_cpu" != ia64; then
8419 ld_shlibs=no
8420 cat <<_LT_EOF 1>&2
8422 *** Warning: the GNU linker, at least up to release 2.19, is reported
8423 *** to be unable to reliably create shared libraries on AIX.
8424 *** Therefore, libtool is disabling shared libraries support. If you
8425 *** really care for shared libraries, you may want to install binutils
8426 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8427 *** You will then need to restart the configuration process.
8429 _LT_EOF
8433 amigaos*)
8434 case $host_cpu in
8435 powerpc)
8436 # see comment about AmigaOS4 .so support
8437 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8438 archive_expsym_cmds=''
8440 m68k)
8441 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)'
8442 hardcode_libdir_flag_spec='-L$libdir'
8443 hardcode_minus_L=yes
8445 esac
8448 beos*)
8449 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8450 allow_undefined_flag=unsupported
8451 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8452 # support --undefined. This deserves some investigation. FIXME
8453 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8454 else
8455 ld_shlibs=no
8459 cygwin* | mingw* | pw32* | cegcc*)
8460 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8461 # as there is no search path for DLLs.
8462 hardcode_libdir_flag_spec='-L$libdir'
8463 export_dynamic_flag_spec='${wl}--export-all-symbols'
8464 allow_undefined_flag=unsupported
8465 always_export_symbols=no
8466 enable_shared_with_static_runtimes=yes
8467 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8469 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8470 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8471 # If the export-symbols file already is a .def file (1st line
8472 # is EXPORTS), use it as is; otherwise, prepend...
8473 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8474 cp $export_symbols $output_objdir/$soname.def;
8475 else
8476 echo EXPORTS > $output_objdir/$soname.def;
8477 cat $export_symbols >> $output_objdir/$soname.def;
8479 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8480 else
8481 ld_shlibs=no
8485 haiku*)
8486 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8487 link_all_deplibs=yes
8490 interix[3-9]*)
8491 hardcode_direct=no
8492 hardcode_shlibpath_var=no
8493 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8494 export_dynamic_flag_spec='${wl}-E'
8495 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8496 # Instead, shared libraries are loaded at an image base (0x10000000 by
8497 # default) and relocated if they conflict, which is a slow very memory
8498 # consuming and fragmenting process. To avoid this, we pick a random,
8499 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8500 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8501 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8502 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'
8505 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
8506 tmp_diet=no
8507 if test "$host_os" = linux-dietlibc; then
8508 case $cc_basename in
8509 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8510 esac
8512 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8513 && test "$tmp_diet" = no
8514 then
8515 tmp_addflag=' $pic_flag'
8516 tmp_sharedflag='-shared'
8517 case $cc_basename,$host_cpu in
8518 pgcc*) # Portland Group C compiler
8519 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'
8520 tmp_addflag=' $pic_flag'
8522 pgf77* | pgf90* | pgf95* | pgfortran*)
8523 # Portland Group f77 and f90 compilers
8524 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'
8525 tmp_addflag=' $pic_flag -Mnomain' ;;
8526 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8527 tmp_addflag=' -i_dynamic' ;;
8528 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8529 tmp_addflag=' -i_dynamic -nofor_main' ;;
8530 ifc* | ifort*) # Intel Fortran compiler
8531 tmp_addflag=' -nofor_main' ;;
8532 lf95*) # Lahey Fortran 8.1
8533 whole_archive_flag_spec=
8534 tmp_sharedflag='--shared' ;;
8535 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8536 tmp_sharedflag='-qmkshrobj'
8537 tmp_addflag= ;;
8538 nvcc*) # Cuda Compiler Driver 2.2
8539 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'
8540 compiler_needs_object=yes
8542 esac
8543 case `$CC -V 2>&1 | sed 5q` in
8544 *Sun\ C*) # Sun C 5.9
8545 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'
8546 compiler_needs_object=yes
8547 tmp_sharedflag='-G' ;;
8548 *Sun\ F*) # Sun Fortran 8.3
8549 tmp_sharedflag='-G' ;;
8550 esac
8551 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8553 if test "x$supports_anon_versioning" = xyes; then
8554 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8555 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8556 echo "local: *; };" >> $output_objdir/$libname.ver~
8557 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8560 case $cc_basename in
8561 xlf* | bgf* | bgxlf* | mpixlf*)
8562 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8563 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8564 hardcode_libdir_flag_spec=
8565 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8566 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8567 if test "x$supports_anon_versioning" = xyes; then
8568 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8569 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8570 echo "local: *; };" >> $output_objdir/$libname.ver~
8571 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8574 esac
8575 else
8576 ld_shlibs=no
8580 netbsd*)
8581 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8582 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8583 wlarc=
8584 else
8585 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8586 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8590 solaris*)
8591 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8592 ld_shlibs=no
8593 cat <<_LT_EOF 1>&2
8595 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8596 *** create shared libraries on Solaris systems. Therefore, libtool
8597 *** is disabling shared libraries support. We urge you to upgrade GNU
8598 *** binutils to release 2.9.1 or newer. Another option is to modify
8599 *** your PATH or compiler configuration so that the native linker is
8600 *** used, and then restart.
8602 _LT_EOF
8603 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8604 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8605 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8606 else
8607 ld_shlibs=no
8611 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8612 case `$LD -v 2>&1` in
8613 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8614 ld_shlibs=no
8615 cat <<_LT_EOF 1>&2
8617 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8618 *** reliably create shared libraries on SCO systems. Therefore, libtool
8619 *** is disabling shared libraries support. We urge you to upgrade GNU
8620 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8621 *** your PATH or compiler configuration so that the native linker is
8622 *** used, and then restart.
8624 _LT_EOF
8627 # For security reasons, it is highly recommended that you always
8628 # use absolute paths for naming shared libraries, and exclude the
8629 # DT_RUNPATH tag from executables and libraries. But doing so
8630 # requires that you compile everything twice, which is a pain.
8631 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8632 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8633 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8634 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8635 else
8636 ld_shlibs=no
8639 esac
8642 sunos4*)
8643 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8644 wlarc=
8645 hardcode_direct=yes
8646 hardcode_shlibpath_var=no
8650 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8651 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8652 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8653 else
8654 ld_shlibs=no
8657 esac
8659 if test "$ld_shlibs" = no; then
8660 runpath_var=
8661 hardcode_libdir_flag_spec=
8662 export_dynamic_flag_spec=
8663 whole_archive_flag_spec=
8665 else
8666 # PORTME fill in a description of your system's linker (not GNU ld)
8667 case $host_os in
8668 aix3*)
8669 allow_undefined_flag=unsupported
8670 always_export_symbols=yes
8671 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'
8672 # Note: this linker hardcodes the directories in LIBPATH if there
8673 # are no directories specified by -L.
8674 hardcode_minus_L=yes
8675 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8676 # Neither direct hardcoding nor static linking is supported with a
8677 # broken collect2.
8678 hardcode_direct=unsupported
8682 aix[4-9]*)
8683 if test "$host_cpu" = ia64; then
8684 # On IA64, the linker does run time linking by default, so we don't
8685 # have to do anything special.
8686 aix_use_runtimelinking=no
8687 exp_sym_flag='-Bexport'
8688 no_entry_flag=""
8689 else
8690 # If we're using GNU nm, then we don't want the "-C" option.
8691 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8692 # Also, AIX nm treats weak defined symbols like other global
8693 # defined symbols, whereas GNU nm marks them as "W".
8694 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8695 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'
8696 else
8697 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'
8699 aix_use_runtimelinking=no
8701 # Test if we are trying to use run time linking or normal
8702 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8703 # need to do runtime linking.
8704 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8705 for ld_flag in $LDFLAGS; do
8706 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8707 aix_use_runtimelinking=yes
8708 break
8710 done
8712 esac
8714 exp_sym_flag='-bexport'
8715 no_entry_flag='-bnoentry'
8718 # When large executables or shared objects are built, AIX ld can
8719 # have problems creating the table of contents. If linking a library
8720 # or program results in "error TOC overflow" add -mminimal-toc to
8721 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8722 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8724 archive_cmds=''
8725 hardcode_direct=yes
8726 hardcode_direct_absolute=yes
8727 hardcode_libdir_separator=':'
8728 link_all_deplibs=yes
8729 file_list_spec='${wl}-f,'
8731 if test "$GCC" = yes; then
8732 case $host_os in aix4.[012]|aix4.[012].*)
8733 # We only want to do this on AIX 4.2 and lower, the check
8734 # below for broken collect2 doesn't work under 4.3+
8735 collect2name=`${CC} -print-prog-name=collect2`
8736 if test -f "$collect2name" &&
8737 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8738 then
8739 # We have reworked collect2
8741 else
8742 # We have old collect2
8743 hardcode_direct=unsupported
8744 # It fails to find uninstalled libraries when the uninstalled
8745 # path is not listed in the libpath. Setting hardcode_minus_L
8746 # to unsupported forces relinking
8747 hardcode_minus_L=yes
8748 hardcode_libdir_flag_spec='-L$libdir'
8749 hardcode_libdir_separator=
8752 esac
8753 shared_flag='-shared'
8754 if test "$aix_use_runtimelinking" = yes; then
8755 shared_flag="$shared_flag "'${wl}-G'
8757 else
8758 # not using gcc
8759 if test "$host_cpu" = ia64; then
8760 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8761 # chokes on -Wl,-G. The following line is correct:
8762 shared_flag='-G'
8763 else
8764 if test "$aix_use_runtimelinking" = yes; then
8765 shared_flag='${wl}-G'
8766 else
8767 shared_flag='${wl}-bM:SRE'
8772 export_dynamic_flag_spec='${wl}-bexpall'
8773 # It seems that -bexpall does not export symbols beginning with
8774 # underscore (_), so it is better to generate a list of symbols to export.
8775 always_export_symbols=yes
8776 if test "$aix_use_runtimelinking" = yes; then
8777 # Warning - without using the other runtime loading flags (-brtl),
8778 # -berok will link without error, but may produce a broken library.
8779 allow_undefined_flag='-berok'
8780 # Determine the default libpath from the value encoded in an
8781 # empty executable.
8782 if test x$gcc_no_link = xyes; then
8783 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8786 /* end confdefs.h. */
8789 main ()
8793 return 0;
8795 _ACEOF
8796 if ac_fn_c_try_link "$LINENO"; then :
8798 lt_aix_libpath_sed='
8799 /Import File Strings/,/^$/ {
8800 /^0/ {
8801 s/^0 *\(.*\)$/\1/
8805 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8806 # Check for a 64-bit object if we didn't find anything.
8807 if test -z "$aix_libpath"; then
8808 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8811 rm -f core conftest.err conftest.$ac_objext \
8812 conftest$ac_exeext conftest.$ac_ext
8813 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8815 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8816 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"
8817 else
8818 if test "$host_cpu" = ia64; then
8819 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8820 allow_undefined_flag="-z nodefs"
8821 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"
8822 else
8823 # Determine the default libpath from the value encoded in an
8824 # empty executable.
8825 if test x$gcc_no_link = xyes; then
8826 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8829 /* end confdefs.h. */
8832 main ()
8836 return 0;
8838 _ACEOF
8839 if ac_fn_c_try_link "$LINENO"; then :
8841 lt_aix_libpath_sed='
8842 /Import File Strings/,/^$/ {
8843 /^0/ {
8844 s/^0 *\(.*\)$/\1/
8848 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8849 # Check for a 64-bit object if we didn't find anything.
8850 if test -z "$aix_libpath"; then
8851 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8854 rm -f core conftest.err conftest.$ac_objext \
8855 conftest$ac_exeext conftest.$ac_ext
8856 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8858 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8859 # Warning - without using the other run time loading flags,
8860 # -berok will link without error, but may produce a broken library.
8861 no_undefined_flag=' ${wl}-bernotok'
8862 allow_undefined_flag=' ${wl}-berok'
8863 if test "$with_gnu_ld" = yes; then
8864 # We only use this code for GNU lds that support --whole-archive.
8865 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8866 else
8867 # Exported symbols can be pulled into shared objects from archives
8868 whole_archive_flag_spec='$convenience'
8870 archive_cmds_need_lc=yes
8871 # This is similar to how AIX traditionally builds its shared libraries.
8872 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'
8877 amigaos*)
8878 case $host_cpu in
8879 powerpc)
8880 # see comment about AmigaOS4 .so support
8881 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8882 archive_expsym_cmds=''
8884 m68k)
8885 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)'
8886 hardcode_libdir_flag_spec='-L$libdir'
8887 hardcode_minus_L=yes
8889 esac
8892 bsdi[45]*)
8893 export_dynamic_flag_spec=-rdynamic
8896 cygwin* | mingw* | pw32* | cegcc*)
8897 # When not using gcc, we currently assume that we are using
8898 # Microsoft Visual C++.
8899 # hardcode_libdir_flag_spec is actually meaningless, as there is
8900 # no search path for DLLs.
8901 hardcode_libdir_flag_spec=' '
8902 allow_undefined_flag=unsupported
8903 # Tell ltmain to make .lib files, not .a files.
8904 libext=lib
8905 # Tell ltmain to make .dll files, not .so files.
8906 shrext_cmds=".dll"
8907 # FIXME: Setting linknames here is a bad hack.
8908 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8909 # The linker will automatically build a .lib file if we build a DLL.
8910 old_archive_from_new_cmds='true'
8911 # FIXME: Should let the user specify the lib program.
8912 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8913 fix_srcfile_path='`cygpath -w "$srcfile"`'
8914 enable_shared_with_static_runtimes=yes
8917 darwin* | rhapsody*)
8920 archive_cmds_need_lc=no
8921 hardcode_direct=no
8922 hardcode_automatic=yes
8923 hardcode_shlibpath_var=unsupported
8924 if test "$lt_cv_ld_force_load" = "yes"; then
8925 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\"`'
8926 else
8927 whole_archive_flag_spec=''
8929 link_all_deplibs=yes
8930 allow_undefined_flag="$_lt_dar_allow_undefined"
8931 case $cc_basename in
8932 ifort*) _lt_dar_can_shared=yes ;;
8933 *) _lt_dar_can_shared=$GCC ;;
8934 esac
8935 if test "$_lt_dar_can_shared" = "yes"; then
8936 output_verbose_link_cmd=func_echo_all
8937 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8938 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8939 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}"
8940 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}"
8942 else
8943 ld_shlibs=no
8948 dgux*)
8949 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8950 hardcode_libdir_flag_spec='-L$libdir'
8951 hardcode_shlibpath_var=no
8954 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8955 # support. Future versions do this automatically, but an explicit c++rt0.o
8956 # does not break anything, and helps significantly (at the cost of a little
8957 # extra space).
8958 freebsd2.2*)
8959 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8960 hardcode_libdir_flag_spec='-R$libdir'
8961 hardcode_direct=yes
8962 hardcode_shlibpath_var=no
8965 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8966 freebsd2.*)
8967 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8968 hardcode_direct=yes
8969 hardcode_minus_L=yes
8970 hardcode_shlibpath_var=no
8973 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8974 freebsd* | dragonfly*)
8975 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8976 hardcode_libdir_flag_spec='-R$libdir'
8977 hardcode_direct=yes
8978 hardcode_shlibpath_var=no
8981 hpux9*)
8982 if test "$GCC" = yes; then
8983 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'
8984 else
8985 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'
8987 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8988 hardcode_libdir_separator=:
8989 hardcode_direct=yes
8991 # hardcode_minus_L: Not really in the search PATH,
8992 # but as the default location of the library.
8993 hardcode_minus_L=yes
8994 export_dynamic_flag_spec='${wl}-E'
8997 hpux10*)
8998 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8999 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9000 else
9001 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9003 if test "$with_gnu_ld" = no; then
9004 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9005 hardcode_libdir_flag_spec_ld='+b $libdir'
9006 hardcode_libdir_separator=:
9007 hardcode_direct=yes
9008 hardcode_direct_absolute=yes
9009 export_dynamic_flag_spec='${wl}-E'
9010 # hardcode_minus_L: Not really in the search PATH,
9011 # but as the default location of the library.
9012 hardcode_minus_L=yes
9016 hpux11*)
9017 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9018 case $host_cpu in
9019 hppa*64*)
9020 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9022 ia64*)
9023 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9026 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9028 esac
9029 else
9030 case $host_cpu in
9031 hppa*64*)
9032 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9034 ia64*)
9035 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9039 # Older versions of the 11.00 compiler do not understand -b yet
9040 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9042 $as_echo_n "checking if $CC understands -b... " >&6; }
9043 if ${lt_cv_prog_compiler__b+:} false; then :
9044 $as_echo_n "(cached) " >&6
9045 else
9046 lt_cv_prog_compiler__b=no
9047 save_LDFLAGS="$LDFLAGS"
9048 LDFLAGS="$LDFLAGS -b"
9049 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9050 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9051 # The linker can only warn and ignore the option if not recognized
9052 # So say no if there are warnings
9053 if test -s conftest.err; then
9054 # Append any errors to the config.log.
9055 cat conftest.err 1>&5
9056 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9057 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9058 if diff conftest.exp conftest.er2 >/dev/null; then
9059 lt_cv_prog_compiler__b=yes
9061 else
9062 lt_cv_prog_compiler__b=yes
9065 $RM -r conftest*
9066 LDFLAGS="$save_LDFLAGS"
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9070 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9072 if test x"$lt_cv_prog_compiler__b" = xyes; then
9073 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9074 else
9075 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9079 esac
9081 if test "$with_gnu_ld" = no; then
9082 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9083 hardcode_libdir_separator=:
9085 case $host_cpu in
9086 hppa*64*|ia64*)
9087 hardcode_direct=no
9088 hardcode_shlibpath_var=no
9091 hardcode_direct=yes
9092 hardcode_direct_absolute=yes
9093 export_dynamic_flag_spec='${wl}-E'
9095 # hardcode_minus_L: Not really in the search PATH,
9096 # but as the default location of the library.
9097 hardcode_minus_L=yes
9099 esac
9103 irix5* | irix6* | nonstopux*)
9104 if test "$GCC" = yes; then
9105 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'
9106 # Try to use the -exported_symbol ld option, if it does not
9107 # work, assume that -exports_file does not work either and
9108 # implicitly export all symbols.
9109 save_LDFLAGS="$LDFLAGS"
9110 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9111 if test x$gcc_no_link = xyes; then
9112 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9115 /* end confdefs.h. */
9116 int foo(void) {}
9117 _ACEOF
9118 if ac_fn_c_try_link "$LINENO"; then :
9119 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'
9122 rm -f core conftest.err conftest.$ac_objext \
9123 conftest$ac_exeext conftest.$ac_ext
9124 LDFLAGS="$save_LDFLAGS"
9125 else
9126 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'
9127 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'
9129 archive_cmds_need_lc='no'
9130 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9131 hardcode_libdir_separator=:
9132 inherit_rpath=yes
9133 link_all_deplibs=yes
9136 netbsd*)
9137 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9138 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9139 else
9140 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9142 hardcode_libdir_flag_spec='-R$libdir'
9143 hardcode_direct=yes
9144 hardcode_shlibpath_var=no
9147 newsos6)
9148 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9149 hardcode_direct=yes
9150 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9151 hardcode_libdir_separator=:
9152 hardcode_shlibpath_var=no
9155 *nto* | *qnx*)
9158 openbsd*)
9159 if test -f /usr/libexec/ld.so; then
9160 hardcode_direct=yes
9161 hardcode_shlibpath_var=no
9162 hardcode_direct_absolute=yes
9163 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9164 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9165 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9166 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9167 export_dynamic_flag_spec='${wl}-E'
9168 else
9169 case $host_os in
9170 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9171 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9172 hardcode_libdir_flag_spec='-R$libdir'
9175 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9176 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9178 esac
9180 else
9181 ld_shlibs=no
9185 os2*)
9186 hardcode_libdir_flag_spec='-L$libdir'
9187 hardcode_minus_L=yes
9188 allow_undefined_flag=unsupported
9189 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'
9190 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9193 osf3*)
9194 if test "$GCC" = yes; then
9195 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9196 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'
9197 else
9198 allow_undefined_flag=' -expect_unresolved \*'
9199 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'
9201 archive_cmds_need_lc='no'
9202 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9203 hardcode_libdir_separator=:
9206 osf4* | osf5*) # as osf3* with the addition of -msym flag
9207 if test "$GCC" = yes; then
9208 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9209 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'
9210 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9211 else
9212 allow_undefined_flag=' -expect_unresolved \*'
9213 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'
9214 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~
9215 $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'
9217 # Both c and cxx compiler support -rpath directly
9218 hardcode_libdir_flag_spec='-rpath $libdir'
9220 archive_cmds_need_lc='no'
9221 hardcode_libdir_separator=:
9224 solaris*)
9225 no_undefined_flag=' -z defs'
9226 if test "$GCC" = yes; then
9227 wlarc='${wl}'
9228 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9229 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9230 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9231 else
9232 case `$CC -V 2>&1` in
9233 *"Compilers 5.0"*)
9234 wlarc=''
9235 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9236 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9237 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9240 wlarc='${wl}'
9241 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9242 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9243 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9245 esac
9247 hardcode_libdir_flag_spec='-R$libdir'
9248 hardcode_shlibpath_var=no
9249 case $host_os in
9250 solaris2.[0-5] | solaris2.[0-5].*) ;;
9252 # The compiler driver will combine and reorder linker options,
9253 # but understands `-z linker_flag'. GCC discards it without `$wl',
9254 # but is careful enough not to reorder.
9255 # Supported since Solaris 2.6 (maybe 2.5.1?)
9256 if test "$GCC" = yes; then
9257 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9258 else
9259 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9262 esac
9263 link_all_deplibs=yes
9266 sunos4*)
9267 if test "x$host_vendor" = xsequent; then
9268 # Use $CC to link under sequent, because it throws in some extra .o
9269 # files that make .init and .fini sections work.
9270 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9271 else
9272 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9274 hardcode_libdir_flag_spec='-L$libdir'
9275 hardcode_direct=yes
9276 hardcode_minus_L=yes
9277 hardcode_shlibpath_var=no
9280 sysv4)
9281 case $host_vendor in
9282 sni)
9283 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9284 hardcode_direct=yes # is this really true???
9286 siemens)
9287 ## LD is ld it makes a PLAMLIB
9288 ## CC just makes a GrossModule.
9289 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9290 reload_cmds='$CC -r -o $output$reload_objs'
9291 hardcode_direct=no
9293 motorola)
9294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9295 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9297 esac
9298 runpath_var='LD_RUN_PATH'
9299 hardcode_shlibpath_var=no
9302 sysv4.3*)
9303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9304 hardcode_shlibpath_var=no
9305 export_dynamic_flag_spec='-Bexport'
9308 sysv4*MP*)
9309 if test -d /usr/nec; then
9310 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9311 hardcode_shlibpath_var=no
9312 runpath_var=LD_RUN_PATH
9313 hardcode_runpath_var=yes
9314 ld_shlibs=yes
9318 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9319 no_undefined_flag='${wl}-z,text'
9320 archive_cmds_need_lc=no
9321 hardcode_shlibpath_var=no
9322 runpath_var='LD_RUN_PATH'
9324 if test "$GCC" = yes; then
9325 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9326 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9327 else
9328 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9329 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9333 sysv5* | sco3.2v5* | sco5v6*)
9334 # Note: We can NOT use -z defs as we might desire, because we do not
9335 # link with -lc, and that would cause any symbols used from libc to
9336 # always be unresolved, which means just about no library would
9337 # ever link correctly. If we're not using GNU ld we use -z text
9338 # though, which does catch some bad symbols but isn't as heavy-handed
9339 # as -z defs.
9340 no_undefined_flag='${wl}-z,text'
9341 allow_undefined_flag='${wl}-z,nodefs'
9342 archive_cmds_need_lc=no
9343 hardcode_shlibpath_var=no
9344 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9345 hardcode_libdir_separator=':'
9346 link_all_deplibs=yes
9347 export_dynamic_flag_spec='${wl}-Bexport'
9348 runpath_var='LD_RUN_PATH'
9350 if test "$GCC" = yes; then
9351 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9352 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9353 else
9354 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9355 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9359 uts4*)
9360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9361 hardcode_libdir_flag_spec='-L$libdir'
9362 hardcode_shlibpath_var=no
9366 ld_shlibs=no
9368 esac
9370 if test x$host_vendor = xsni; then
9371 case $host in
9372 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9373 export_dynamic_flag_spec='${wl}-Blargedynsym'
9375 esac
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9380 $as_echo "$ld_shlibs" >&6; }
9381 test "$ld_shlibs" = no && can_build_shared=no
9383 with_gnu_ld=$with_gnu_ld
9400 # Do we need to explicitly link libc?
9402 case "x$archive_cmds_need_lc" in
9403 x|xyes)
9404 # Assume -lc should be added
9405 archive_cmds_need_lc=yes
9407 if test "$enable_shared" = yes && test "$GCC" = yes; then
9408 case $archive_cmds in
9409 *'~'*)
9410 # FIXME: we may have to deal with multi-command sequences.
9412 '$CC '*)
9413 # Test whether the compiler implicitly links with -lc since on some
9414 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9415 # to ld, don't add -lc before -lgcc.
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9417 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9418 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9419 $as_echo_n "(cached) " >&6
9420 else
9421 $RM conftest*
9422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9424 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9425 (eval $ac_compile) 2>&5
9426 ac_status=$?
9427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9428 test $ac_status = 0; } 2>conftest.err; then
9429 soname=conftest
9430 lib=conftest
9431 libobjs=conftest.$ac_objext
9432 deplibs=
9433 wl=$lt_prog_compiler_wl
9434 pic_flag=$lt_prog_compiler_pic
9435 compiler_flags=-v
9436 linker_flags=-v
9437 verstring=
9438 output_objdir=.
9439 libname=conftest
9440 lt_save_allow_undefined_flag=$allow_undefined_flag
9441 allow_undefined_flag=
9442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9443 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9444 ac_status=$?
9445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9446 test $ac_status = 0; }
9447 then
9448 lt_cv_archive_cmds_need_lc=no
9449 else
9450 lt_cv_archive_cmds_need_lc=yes
9452 allow_undefined_flag=$lt_save_allow_undefined_flag
9453 else
9454 cat conftest.err 1>&5
9456 $RM conftest*
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9460 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9461 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9463 esac
9466 esac
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9625 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9627 if test "$GCC" = yes; then
9628 case $host_os in
9629 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9630 *) lt_awk_arg="/^libraries:/" ;;
9631 esac
9632 case $host_os in
9633 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9634 *) lt_sed_strip_eq="s,=/,/,g" ;;
9635 esac
9636 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9637 case $lt_search_path_spec in
9638 *\;*)
9639 # if the path contains ";" then we assume it to be the separator
9640 # otherwise default to the standard path separator (i.e. ":") - it is
9641 # assumed that no part of a normal pathname contains ";" but that should
9642 # okay in the real world where ";" in dirpaths is itself problematic.
9643 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9646 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9648 esac
9649 # Ok, now we have the path, separated by spaces, we can step through it
9650 # and add multilib dir if necessary.
9651 lt_tmp_lt_search_path_spec=
9652 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9653 for lt_sys_path in $lt_search_path_spec; do
9654 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9655 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9656 else
9657 test -d "$lt_sys_path" && \
9658 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9660 done
9661 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9662 BEGIN {RS=" "; FS="/|\n";} {
9663 lt_foo="";
9664 lt_count=0;
9665 for (lt_i = NF; lt_i > 0; lt_i--) {
9666 if ($lt_i != "" && $lt_i != ".") {
9667 if ($lt_i == "..") {
9668 lt_count++;
9669 } else {
9670 if (lt_count == 0) {
9671 lt_foo="/" $lt_i lt_foo;
9672 } else {
9673 lt_count--;
9678 if (lt_foo != "") { lt_freq[lt_foo]++; }
9679 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9681 # AWK program above erroneously prepends '/' to C:/dos/paths
9682 # for these hosts.
9683 case $host_os in
9684 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9685 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9686 esac
9687 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9688 else
9689 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9691 library_names_spec=
9692 libname_spec='lib$name'
9693 soname_spec=
9694 shrext_cmds=".so"
9695 postinstall_cmds=
9696 postuninstall_cmds=
9697 finish_cmds=
9698 finish_eval=
9699 shlibpath_var=
9700 shlibpath_overrides_runpath=unknown
9701 version_type=none
9702 dynamic_linker="$host_os ld.so"
9703 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9704 need_lib_prefix=unknown
9705 hardcode_into_libs=no
9707 # when you set need_version to no, make sure it does not cause -set_version
9708 # flags to be left without arguments
9709 need_version=unknown
9711 case $host_os in
9712 aix3*)
9713 version_type=linux
9714 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9715 shlibpath_var=LIBPATH
9717 # AIX 3 has no versioning support, so we append a major version to the name.
9718 soname_spec='${libname}${release}${shared_ext}$major'
9721 aix[4-9]*)
9722 version_type=linux
9723 need_lib_prefix=no
9724 need_version=no
9725 hardcode_into_libs=yes
9726 if test "$host_cpu" = ia64; then
9727 # AIX 5 supports IA64
9728 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9729 shlibpath_var=LD_LIBRARY_PATH
9730 else
9731 # With GCC up to 2.95.x, collect2 would create an import file
9732 # for dependence libraries. The import file would start with
9733 # the line `#! .'. This would cause the generated library to
9734 # depend on `.', always an invalid library. This was fixed in
9735 # development snapshots of GCC prior to 3.0.
9736 case $host_os in
9737 aix4 | aix4.[01] | aix4.[01].*)
9738 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9739 echo ' yes '
9740 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9742 else
9743 can_build_shared=no
9746 esac
9747 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9748 # soname into executable. Probably we can add versioning support to
9749 # collect2, so additional links can be useful in future.
9750 if test "$aix_use_runtimelinking" = yes; then
9751 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9752 # instead of lib<name>.a to let people know that these are not
9753 # typical AIX shared libraries.
9754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9755 else
9756 # We preserve .a as extension for shared libraries through AIX4.2
9757 # and later when we are not doing run time linking.
9758 library_names_spec='${libname}${release}.a $libname.a'
9759 soname_spec='${libname}${release}${shared_ext}$major'
9761 shlibpath_var=LIBPATH
9765 amigaos*)
9766 case $host_cpu in
9767 powerpc)
9768 # Since July 2007 AmigaOS4 officially supports .so libraries.
9769 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9772 m68k)
9773 library_names_spec='$libname.ixlibrary $libname.a'
9774 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9775 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'
9777 esac
9780 beos*)
9781 library_names_spec='${libname}${shared_ext}'
9782 dynamic_linker="$host_os ld.so"
9783 shlibpath_var=LIBRARY_PATH
9786 bsdi[45]*)
9787 version_type=linux
9788 need_version=no
9789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9790 soname_spec='${libname}${release}${shared_ext}$major'
9791 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9792 shlibpath_var=LD_LIBRARY_PATH
9793 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9794 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9795 # the default ld.so.conf also contains /usr/contrib/lib and
9796 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9797 # libtool to hard-code these into programs
9800 cygwin* | mingw* | pw32* | cegcc*)
9801 version_type=windows
9802 shrext_cmds=".dll"
9803 need_version=no
9804 need_lib_prefix=no
9806 case $GCC,$host_os in
9807 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9808 library_names_spec='$libname.dll.a'
9809 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9810 postinstall_cmds='base_file=`basename \${file}`~
9811 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9812 dldir=$destdir/`dirname \$dlpath`~
9813 test -d \$dldir || mkdir -p \$dldir~
9814 $install_prog $dir/$dlname \$dldir/$dlname~
9815 chmod a+x \$dldir/$dlname~
9816 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9817 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9819 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9820 dlpath=$dir/\$dldll~
9821 $RM \$dlpath'
9822 shlibpath_overrides_runpath=yes
9824 case $host_os in
9825 cygwin*)
9826 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9827 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9829 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9831 mingw* | cegcc*)
9832 # MinGW DLLs use traditional 'lib' prefix
9833 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9835 pw32*)
9836 # pw32 DLLs use 'pw' prefix rather than 'lib'
9837 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9839 esac
9843 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9845 esac
9846 dynamic_linker='Win32 ld.exe'
9847 # FIXME: first we should search . and the directory the executable is in
9848 shlibpath_var=PATH
9851 darwin* | rhapsody*)
9852 dynamic_linker="$host_os dyld"
9853 version_type=darwin
9854 need_lib_prefix=no
9855 need_version=no
9856 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9857 soname_spec='${libname}${release}${major}$shared_ext'
9858 shlibpath_overrides_runpath=yes
9859 shlibpath_var=DYLD_LIBRARY_PATH
9860 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9862 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9863 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9866 dgux*)
9867 version_type=linux
9868 need_lib_prefix=no
9869 need_version=no
9870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9871 soname_spec='${libname}${release}${shared_ext}$major'
9872 shlibpath_var=LD_LIBRARY_PATH
9875 freebsd* | dragonfly*)
9876 # DragonFly does not have aout. When/if they implement a new
9877 # versioning mechanism, adjust this.
9878 if test -x /usr/bin/objformat; then
9879 objformat=`/usr/bin/objformat`
9880 else
9881 case $host_os in
9882 freebsd[23].*) objformat=aout ;;
9883 *) objformat=elf ;;
9884 esac
9886 version_type=freebsd-$objformat
9887 case $version_type in
9888 freebsd-elf*)
9889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9890 need_version=no
9891 need_lib_prefix=no
9893 freebsd-*)
9894 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9895 need_version=yes
9897 esac
9898 shlibpath_var=LD_LIBRARY_PATH
9899 case $host_os in
9900 freebsd2.*)
9901 shlibpath_overrides_runpath=yes
9903 freebsd3.[01]* | freebsdelf3.[01]*)
9904 shlibpath_overrides_runpath=yes
9905 hardcode_into_libs=yes
9907 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9908 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9909 shlibpath_overrides_runpath=no
9910 hardcode_into_libs=yes
9912 *) # from 4.6 on, and DragonFly
9913 shlibpath_overrides_runpath=yes
9914 hardcode_into_libs=yes
9916 esac
9919 haiku*)
9920 version_type=linux
9921 need_lib_prefix=no
9922 need_version=no
9923 dynamic_linker="$host_os runtime_loader"
9924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9925 soname_spec='${libname}${release}${shared_ext}$major'
9926 shlibpath_var=LIBRARY_PATH
9927 shlibpath_overrides_runpath=yes
9928 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9929 hardcode_into_libs=yes
9932 hpux9* | hpux10* | hpux11*)
9933 # Give a soname corresponding to the major version so that dld.sl refuses to
9934 # link against other versions.
9935 version_type=sunos
9936 need_lib_prefix=no
9937 need_version=no
9938 case $host_cpu in
9939 ia64*)
9940 shrext_cmds='.so'
9941 hardcode_into_libs=yes
9942 dynamic_linker="$host_os dld.so"
9943 shlibpath_var=LD_LIBRARY_PATH
9944 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9946 soname_spec='${libname}${release}${shared_ext}$major'
9947 if test "X$HPUX_IA64_MODE" = X32; then
9948 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9949 else
9950 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9952 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9954 hppa*64*)
9955 shrext_cmds='.sl'
9956 hardcode_into_libs=yes
9957 dynamic_linker="$host_os dld.sl"
9958 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9959 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9961 soname_spec='${libname}${release}${shared_ext}$major'
9962 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9963 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9966 shrext_cmds='.sl'
9967 dynamic_linker="$host_os dld.sl"
9968 shlibpath_var=SHLIB_PATH
9969 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9971 soname_spec='${libname}${release}${shared_ext}$major'
9973 esac
9974 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9975 postinstall_cmds='chmod 555 $lib'
9976 # or fails outright, so override atomically:
9977 install_override_mode=555
9980 interix[3-9]*)
9981 version_type=linux
9982 need_lib_prefix=no
9983 need_version=no
9984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9985 soname_spec='${libname}${release}${shared_ext}$major'
9986 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9987 shlibpath_var=LD_LIBRARY_PATH
9988 shlibpath_overrides_runpath=no
9989 hardcode_into_libs=yes
9992 irix5* | irix6* | nonstopux*)
9993 case $host_os in
9994 nonstopux*) version_type=nonstopux ;;
9996 if test "$lt_cv_prog_gnu_ld" = yes; then
9997 version_type=linux
9998 else
9999 version_type=irix
10000 fi ;;
10001 esac
10002 need_lib_prefix=no
10003 need_version=no
10004 soname_spec='${libname}${release}${shared_ext}$major'
10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10006 case $host_os in
10007 irix5* | nonstopux*)
10008 libsuff= shlibsuff=
10011 case $LD in # libtool.m4 will add one of these switches to LD
10012 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10013 libsuff= shlibsuff= libmagic=32-bit;;
10014 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10015 libsuff=32 shlibsuff=N32 libmagic=N32;;
10016 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10017 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10018 *) libsuff= shlibsuff= libmagic=never-match;;
10019 esac
10021 esac
10022 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10023 shlibpath_overrides_runpath=no
10024 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10025 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10026 hardcode_into_libs=yes
10029 # No shared lib support for Linux oldld, aout, or coff.
10030 linux*oldld* | linux*aout* | linux*coff*)
10031 dynamic_linker=no
10034 # This must be Linux ELF.
10036 # uclinux* changes (here and below) have been submitted to the libtool
10037 # project, but have not yet been accepted: they are GCC-local changes
10038 # for the time being. (See
10039 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10040 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10041 version_type=linux
10042 need_lib_prefix=no
10043 need_version=no
10044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10045 soname_spec='${libname}${release}${shared_ext}$major'
10046 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10047 shlibpath_var=LD_LIBRARY_PATH
10048 shlibpath_overrides_runpath=no
10050 # Some binutils ld are patched to set DT_RUNPATH
10051 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10052 $as_echo_n "(cached) " >&6
10053 else
10054 lt_cv_shlibpath_overrides_runpath=no
10055 save_LDFLAGS=$LDFLAGS
10056 save_libdir=$libdir
10057 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10058 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10059 if test x$gcc_no_link = xyes; then
10060 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10063 /* end confdefs.h. */
10066 main ()
10070 return 0;
10072 _ACEOF
10073 if ac_fn_c_try_link "$LINENO"; then :
10074 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10075 lt_cv_shlibpath_overrides_runpath=yes
10078 rm -f core conftest.err conftest.$ac_objext \
10079 conftest$ac_exeext conftest.$ac_ext
10080 LDFLAGS=$save_LDFLAGS
10081 libdir=$save_libdir
10085 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10087 # This implies no fast_install, which is unacceptable.
10088 # Some rework will be needed to allow for fast_install
10089 # before this can be enabled.
10090 hardcode_into_libs=yes
10092 # Append ld.so.conf contents to the search path
10093 if test -f /etc/ld.so.conf; then
10094 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' ' '`
10095 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10098 # We used to test for /lib/ld.so.1 and disable shared libraries on
10099 # powerpc, because MkLinux only supported shared libraries with the
10100 # GNU dynamic linker. Since this was broken with cross compilers,
10101 # most powerpc-linux boxes support dynamic linking these days and
10102 # people can always --disable-shared, the test was removed, and we
10103 # assume the GNU/Linux dynamic linker is in use.
10104 dynamic_linker='GNU/Linux ld.so'
10107 netbsd*)
10108 version_type=sunos
10109 need_lib_prefix=no
10110 need_version=no
10111 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10114 dynamic_linker='NetBSD (a.out) ld.so'
10115 else
10116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10117 soname_spec='${libname}${release}${shared_ext}$major'
10118 dynamic_linker='NetBSD ld.elf_so'
10120 shlibpath_var=LD_LIBRARY_PATH
10121 shlibpath_overrides_runpath=yes
10122 hardcode_into_libs=yes
10125 newsos6)
10126 version_type=linux
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10128 shlibpath_var=LD_LIBRARY_PATH
10129 shlibpath_overrides_runpath=yes
10132 *nto* | *qnx*)
10133 version_type=qnx
10134 need_lib_prefix=no
10135 need_version=no
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137 soname_spec='${libname}${release}${shared_ext}$major'
10138 shlibpath_var=LD_LIBRARY_PATH
10139 shlibpath_overrides_runpath=no
10140 hardcode_into_libs=yes
10141 dynamic_linker='ldqnx.so'
10144 openbsd*)
10145 version_type=sunos
10146 sys_lib_dlsearch_path_spec="/usr/lib"
10147 need_lib_prefix=no
10148 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10149 case $host_os in
10150 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10151 *) need_version=no ;;
10152 esac
10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10154 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10155 shlibpath_var=LD_LIBRARY_PATH
10156 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10157 case $host_os in
10158 openbsd2.[89] | openbsd2.[89].*)
10159 shlibpath_overrides_runpath=no
10162 shlibpath_overrides_runpath=yes
10164 esac
10165 else
10166 shlibpath_overrides_runpath=yes
10170 os2*)
10171 libname_spec='$name'
10172 shrext_cmds=".dll"
10173 need_lib_prefix=no
10174 library_names_spec='$libname${shared_ext} $libname.a'
10175 dynamic_linker='OS/2 ld.exe'
10176 shlibpath_var=LIBPATH
10179 osf3* | osf4* | osf5*)
10180 version_type=osf
10181 need_lib_prefix=no
10182 need_version=no
10183 soname_spec='${libname}${release}${shared_ext}$major'
10184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10185 shlibpath_var=LD_LIBRARY_PATH
10186 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10187 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10190 rdos*)
10191 dynamic_linker=no
10194 solaris*)
10195 version_type=linux
10196 need_lib_prefix=no
10197 need_version=no
10198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10199 soname_spec='${libname}${release}${shared_ext}$major'
10200 shlibpath_var=LD_LIBRARY_PATH
10201 shlibpath_overrides_runpath=yes
10202 hardcode_into_libs=yes
10203 # ldd complains unless libraries are executable
10204 postinstall_cmds='chmod +x $lib'
10207 sunos4*)
10208 version_type=sunos
10209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10210 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10211 shlibpath_var=LD_LIBRARY_PATH
10212 shlibpath_overrides_runpath=yes
10213 if test "$with_gnu_ld" = yes; then
10214 need_lib_prefix=no
10216 need_version=yes
10219 sysv4 | sysv4.3*)
10220 version_type=linux
10221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10222 soname_spec='${libname}${release}${shared_ext}$major'
10223 shlibpath_var=LD_LIBRARY_PATH
10224 case $host_vendor in
10225 sni)
10226 shlibpath_overrides_runpath=no
10227 need_lib_prefix=no
10228 runpath_var=LD_RUN_PATH
10230 siemens)
10231 need_lib_prefix=no
10233 motorola)
10234 need_lib_prefix=no
10235 need_version=no
10236 shlibpath_overrides_runpath=no
10237 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10239 esac
10242 sysv4*MP*)
10243 if test -d /usr/nec ;then
10244 version_type=linux
10245 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10246 soname_spec='$libname${shared_ext}.$major'
10247 shlibpath_var=LD_LIBRARY_PATH
10251 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10252 version_type=freebsd-elf
10253 need_lib_prefix=no
10254 need_version=no
10255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10256 soname_spec='${libname}${release}${shared_ext}$major'
10257 shlibpath_var=LD_LIBRARY_PATH
10258 shlibpath_overrides_runpath=yes
10259 hardcode_into_libs=yes
10260 if test "$with_gnu_ld" = yes; then
10261 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10262 else
10263 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10264 case $host_os in
10265 sco3.2v5*)
10266 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10268 esac
10270 sys_lib_dlsearch_path_spec='/usr/lib'
10273 tpf*)
10274 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10275 version_type=linux
10276 need_lib_prefix=no
10277 need_version=no
10278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10279 shlibpath_var=LD_LIBRARY_PATH
10280 shlibpath_overrides_runpath=no
10281 hardcode_into_libs=yes
10284 uts4*)
10285 version_type=linux
10286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10287 soname_spec='${libname}${release}${shared_ext}$major'
10288 shlibpath_var=LD_LIBRARY_PATH
10291 # Shared libraries for VwWorks, >= 7 only at this stage
10292 # and (fpic) still incompatible with "large" code models
10293 # in a few configurations. Only for RTP mode in any case,
10294 # and upon explicit request at configure time.
10295 vxworks7*)
10296 dynamic_linker=no
10297 case ${with_multisubdir}-${enable_shared} in
10298 *large*)
10300 *mrtp*-yes)
10301 version_type=linux
10302 need_lib_prefix=no
10303 need_version=no
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10305 soname_spec='${libname}${release}${shared_ext}$major'
10306 dynamic_linker="$host_os module_loader"
10308 esac
10311 dynamic_linker=no
10313 esac
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10315 $as_echo "$dynamic_linker" >&6; }
10316 test "$dynamic_linker" = no && can_build_shared=no
10318 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10319 if test "$GCC" = yes; then
10320 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10323 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10324 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10326 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10327 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10422 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10423 hardcode_action=
10424 if test -n "$hardcode_libdir_flag_spec" ||
10425 test -n "$runpath_var" ||
10426 test "X$hardcode_automatic" = "Xyes" ; then
10428 # We can hardcode non-existent directories.
10429 if test "$hardcode_direct" != no &&
10430 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10431 # have to relink, otherwise we might link with an installed library
10432 # when we should be linking with a yet-to-be-installed one
10433 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10434 test "$hardcode_minus_L" != no; then
10435 # Linking always hardcodes the temporary library directory.
10436 hardcode_action=relink
10437 else
10438 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10439 hardcode_action=immediate
10441 else
10442 # We cannot hardcode anything, or else we can only hardcode existing
10443 # directories.
10444 hardcode_action=unsupported
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10447 $as_echo "$hardcode_action" >&6; }
10449 if test "$hardcode_action" = relink ||
10450 test "$inherit_rpath" = yes; then
10451 # Fast installation is not supported
10452 enable_fast_install=no
10453 elif test "$shlibpath_overrides_runpath" = yes ||
10454 test "$enable_shared" = no; then
10455 # Fast installation is not necessary
10456 enable_fast_install=needless
10464 if test "x$enable_dlopen" != xyes; then
10465 enable_dlopen=unknown
10466 enable_dlopen_self=unknown
10467 enable_dlopen_self_static=unknown
10468 else
10469 lt_cv_dlopen=no
10470 lt_cv_dlopen_libs=
10472 case $host_os in
10473 beos*)
10474 lt_cv_dlopen="load_add_on"
10475 lt_cv_dlopen_libs=
10476 lt_cv_dlopen_self=yes
10479 mingw* | pw32* | cegcc*)
10480 lt_cv_dlopen="LoadLibrary"
10481 lt_cv_dlopen_libs=
10484 cygwin*)
10485 lt_cv_dlopen="dlopen"
10486 lt_cv_dlopen_libs=
10489 darwin*)
10490 # if libdl is installed we need to link against it
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10492 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10493 if ${ac_cv_lib_dl_dlopen+:} false; then :
10494 $as_echo_n "(cached) " >&6
10495 else
10496 ac_check_lib_save_LIBS=$LIBS
10497 LIBS="-ldl $LIBS"
10498 if test x$gcc_no_link = xyes; then
10499 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10502 /* end confdefs.h. */
10504 /* Override any GCC internal prototype to avoid an error.
10505 Use char because int might match the return type of a GCC
10506 builtin and then its argument prototype would still apply. */
10507 #ifdef __cplusplus
10508 extern "C"
10509 #endif
10510 char dlopen ();
10512 main ()
10514 return dlopen ();
10516 return 0;
10518 _ACEOF
10519 if ac_fn_c_try_link "$LINENO"; then :
10520 ac_cv_lib_dl_dlopen=yes
10521 else
10522 ac_cv_lib_dl_dlopen=no
10524 rm -f core conftest.err conftest.$ac_objext \
10525 conftest$ac_exeext conftest.$ac_ext
10526 LIBS=$ac_check_lib_save_LIBS
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10529 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10530 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10531 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10532 else
10534 lt_cv_dlopen="dyld"
10535 lt_cv_dlopen_libs=
10536 lt_cv_dlopen_self=yes
10543 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10544 if test "x$ac_cv_func_shl_load" = xyes; then :
10545 lt_cv_dlopen="shl_load"
10546 else
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10548 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10549 if ${ac_cv_lib_dld_shl_load+:} false; then :
10550 $as_echo_n "(cached) " >&6
10551 else
10552 ac_check_lib_save_LIBS=$LIBS
10553 LIBS="-ldld $LIBS"
10554 if test x$gcc_no_link = xyes; then
10555 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10558 /* end confdefs.h. */
10560 /* Override any GCC internal prototype to avoid an error.
10561 Use char because int might match the return type of a GCC
10562 builtin and then its argument prototype would still apply. */
10563 #ifdef __cplusplus
10564 extern "C"
10565 #endif
10566 char shl_load ();
10568 main ()
10570 return shl_load ();
10572 return 0;
10574 _ACEOF
10575 if ac_fn_c_try_link "$LINENO"; then :
10576 ac_cv_lib_dld_shl_load=yes
10577 else
10578 ac_cv_lib_dld_shl_load=no
10580 rm -f core conftest.err conftest.$ac_objext \
10581 conftest$ac_exeext conftest.$ac_ext
10582 LIBS=$ac_check_lib_save_LIBS
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10585 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10586 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10587 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10588 else
10589 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10590 if test "x$ac_cv_func_dlopen" = xyes; then :
10591 lt_cv_dlopen="dlopen"
10592 else
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10594 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10595 if ${ac_cv_lib_dl_dlopen+:} false; then :
10596 $as_echo_n "(cached) " >&6
10597 else
10598 ac_check_lib_save_LIBS=$LIBS
10599 LIBS="-ldl $LIBS"
10600 if test x$gcc_no_link = xyes; then
10601 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10604 /* end confdefs.h. */
10606 /* Override any GCC internal prototype to avoid an error.
10607 Use char because int might match the return type of a GCC
10608 builtin and then its argument prototype would still apply. */
10609 #ifdef __cplusplus
10610 extern "C"
10611 #endif
10612 char dlopen ();
10614 main ()
10616 return dlopen ();
10618 return 0;
10620 _ACEOF
10621 if ac_fn_c_try_link "$LINENO"; then :
10622 ac_cv_lib_dl_dlopen=yes
10623 else
10624 ac_cv_lib_dl_dlopen=no
10626 rm -f core conftest.err conftest.$ac_objext \
10627 conftest$ac_exeext conftest.$ac_ext
10628 LIBS=$ac_check_lib_save_LIBS
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10631 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10632 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10633 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10634 else
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10636 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10637 if ${ac_cv_lib_svld_dlopen+:} false; then :
10638 $as_echo_n "(cached) " >&6
10639 else
10640 ac_check_lib_save_LIBS=$LIBS
10641 LIBS="-lsvld $LIBS"
10642 if test x$gcc_no_link = xyes; then
10643 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10646 /* end confdefs.h. */
10648 /* Override any GCC internal prototype to avoid an error.
10649 Use char because int might match the return type of a GCC
10650 builtin and then its argument prototype would still apply. */
10651 #ifdef __cplusplus
10652 extern "C"
10653 #endif
10654 char dlopen ();
10656 main ()
10658 return dlopen ();
10660 return 0;
10662 _ACEOF
10663 if ac_fn_c_try_link "$LINENO"; then :
10664 ac_cv_lib_svld_dlopen=yes
10665 else
10666 ac_cv_lib_svld_dlopen=no
10668 rm -f core conftest.err conftest.$ac_objext \
10669 conftest$ac_exeext conftest.$ac_ext
10670 LIBS=$ac_check_lib_save_LIBS
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10673 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10674 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10675 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10676 else
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10678 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10679 if ${ac_cv_lib_dld_dld_link+:} false; then :
10680 $as_echo_n "(cached) " >&6
10681 else
10682 ac_check_lib_save_LIBS=$LIBS
10683 LIBS="-ldld $LIBS"
10684 if test x$gcc_no_link = xyes; then
10685 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10688 /* end confdefs.h. */
10690 /* Override any GCC internal prototype to avoid an error.
10691 Use char because int might match the return type of a GCC
10692 builtin and then its argument prototype would still apply. */
10693 #ifdef __cplusplus
10694 extern "C"
10695 #endif
10696 char dld_link ();
10698 main ()
10700 return dld_link ();
10702 return 0;
10704 _ACEOF
10705 if ac_fn_c_try_link "$LINENO"; then :
10706 ac_cv_lib_dld_dld_link=yes
10707 else
10708 ac_cv_lib_dld_dld_link=no
10710 rm -f core conftest.err conftest.$ac_objext \
10711 conftest$ac_exeext conftest.$ac_ext
10712 LIBS=$ac_check_lib_save_LIBS
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10715 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10716 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10717 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10736 esac
10738 if test "x$lt_cv_dlopen" != xno; then
10739 enable_dlopen=yes
10740 else
10741 enable_dlopen=no
10744 case $lt_cv_dlopen in
10745 dlopen)
10746 save_CPPFLAGS="$CPPFLAGS"
10747 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10749 save_LDFLAGS="$LDFLAGS"
10750 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10752 save_LIBS="$LIBS"
10753 LIBS="$lt_cv_dlopen_libs $LIBS"
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10756 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10757 if ${lt_cv_dlopen_self+:} false; then :
10758 $as_echo_n "(cached) " >&6
10759 else
10760 if test "$cross_compiling" = yes; then :
10761 lt_cv_dlopen_self=cross
10762 else
10763 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10764 lt_status=$lt_dlunknown
10765 cat > conftest.$ac_ext <<_LT_EOF
10766 #line 10766 "configure"
10767 #include "confdefs.h"
10769 #if HAVE_DLFCN_H
10770 #include <dlfcn.h>
10771 #endif
10773 #include <stdio.h>
10775 #ifdef RTLD_GLOBAL
10776 # define LT_DLGLOBAL RTLD_GLOBAL
10777 #else
10778 # ifdef DL_GLOBAL
10779 # define LT_DLGLOBAL DL_GLOBAL
10780 # else
10781 # define LT_DLGLOBAL 0
10782 # endif
10783 #endif
10785 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10786 find out it does not work in some platform. */
10787 #ifndef LT_DLLAZY_OR_NOW
10788 # ifdef RTLD_LAZY
10789 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10790 # else
10791 # ifdef DL_LAZY
10792 # define LT_DLLAZY_OR_NOW DL_LAZY
10793 # else
10794 # ifdef RTLD_NOW
10795 # define LT_DLLAZY_OR_NOW RTLD_NOW
10796 # else
10797 # ifdef DL_NOW
10798 # define LT_DLLAZY_OR_NOW DL_NOW
10799 # else
10800 # define LT_DLLAZY_OR_NOW 0
10801 # endif
10802 # endif
10803 # endif
10804 # endif
10805 #endif
10807 /* When -fvisbility=hidden is used, assume the code has been annotated
10808 correspondingly for the symbols needed. */
10809 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10810 void fnord () __attribute__((visibility("default")));
10811 #endif
10813 void fnord () { int i=42; }
10814 int main ()
10816 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10817 int status = $lt_dlunknown;
10819 if (self)
10821 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10822 else
10824 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10825 else puts (dlerror ());
10827 /* dlclose (self); */
10829 else
10830 puts (dlerror ());
10832 return status;
10834 _LT_EOF
10835 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10836 (eval $ac_link) 2>&5
10837 ac_status=$?
10838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10839 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10840 (./conftest; exit; ) >&5 2>/dev/null
10841 lt_status=$?
10842 case x$lt_status in
10843 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10844 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10845 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10846 esac
10847 else :
10848 # compilation failed
10849 lt_cv_dlopen_self=no
10852 rm -fr conftest*
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10857 $as_echo "$lt_cv_dlopen_self" >&6; }
10859 if test "x$lt_cv_dlopen_self" = xyes; then
10860 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10862 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10863 if ${lt_cv_dlopen_self_static+:} false; then :
10864 $as_echo_n "(cached) " >&6
10865 else
10866 if test "$cross_compiling" = yes; then :
10867 lt_cv_dlopen_self_static=cross
10868 else
10869 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10870 lt_status=$lt_dlunknown
10871 cat > conftest.$ac_ext <<_LT_EOF
10872 #line 10872 "configure"
10873 #include "confdefs.h"
10875 #if HAVE_DLFCN_H
10876 #include <dlfcn.h>
10877 #endif
10879 #include <stdio.h>
10881 #ifdef RTLD_GLOBAL
10882 # define LT_DLGLOBAL RTLD_GLOBAL
10883 #else
10884 # ifdef DL_GLOBAL
10885 # define LT_DLGLOBAL DL_GLOBAL
10886 # else
10887 # define LT_DLGLOBAL 0
10888 # endif
10889 #endif
10891 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10892 find out it does not work in some platform. */
10893 #ifndef LT_DLLAZY_OR_NOW
10894 # ifdef RTLD_LAZY
10895 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10896 # else
10897 # ifdef DL_LAZY
10898 # define LT_DLLAZY_OR_NOW DL_LAZY
10899 # else
10900 # ifdef RTLD_NOW
10901 # define LT_DLLAZY_OR_NOW RTLD_NOW
10902 # else
10903 # ifdef DL_NOW
10904 # define LT_DLLAZY_OR_NOW DL_NOW
10905 # else
10906 # define LT_DLLAZY_OR_NOW 0
10907 # endif
10908 # endif
10909 # endif
10910 # endif
10911 #endif
10913 /* When -fvisbility=hidden is used, assume the code has been annotated
10914 correspondingly for the symbols needed. */
10915 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10916 void fnord () __attribute__((visibility("default")));
10917 #endif
10919 void fnord () { int i=42; }
10920 int main ()
10922 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10923 int status = $lt_dlunknown;
10925 if (self)
10927 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10928 else
10930 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10931 else puts (dlerror ());
10933 /* dlclose (self); */
10935 else
10936 puts (dlerror ());
10938 return status;
10940 _LT_EOF
10941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10942 (eval $ac_link) 2>&5
10943 ac_status=$?
10944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10945 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10946 (./conftest; exit; ) >&5 2>/dev/null
10947 lt_status=$?
10948 case x$lt_status in
10949 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10950 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10951 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10952 esac
10953 else :
10954 # compilation failed
10955 lt_cv_dlopen_self_static=no
10958 rm -fr conftest*
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10963 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10966 CPPFLAGS="$save_CPPFLAGS"
10967 LDFLAGS="$save_LDFLAGS"
10968 LIBS="$save_LIBS"
10970 esac
10972 case $lt_cv_dlopen_self in
10973 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10974 *) enable_dlopen_self=unknown ;;
10975 esac
10977 case $lt_cv_dlopen_self_static in
10978 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10979 *) enable_dlopen_self_static=unknown ;;
10980 esac
10999 striplib=
11000 old_striplib=
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11002 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11003 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11004 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11005 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11007 $as_echo "yes" >&6; }
11008 else
11009 # FIXME - insert some real tests, host_os isn't really good enough
11010 case $host_os in
11011 darwin*)
11012 if test -n "$STRIP" ; then
11013 striplib="$STRIP -x"
11014 old_striplib="$STRIP -S"
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11016 $as_echo "yes" >&6; }
11017 else
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11019 $as_echo "no" >&6; }
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11024 $as_echo "no" >&6; }
11026 esac
11040 # Report which library types will actually be built
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11042 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11044 $as_echo "$can_build_shared" >&6; }
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11047 $as_echo_n "checking whether to build shared libraries... " >&6; }
11048 test "$can_build_shared" = "no" && enable_shared=no
11050 # On AIX, shared libraries and static libraries use the same namespace, and
11051 # are all built from PIC.
11052 case $host_os in
11053 aix3*)
11054 test "$enable_shared" = yes && enable_static=no
11055 if test -n "$RANLIB"; then
11056 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11057 postinstall_cmds='$RANLIB $lib'
11061 aix[4-9]*)
11062 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11063 test "$enable_shared" = yes && enable_static=no
11066 esac
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11068 $as_echo "$enable_shared" >&6; }
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11071 $as_echo_n "checking whether to build static libraries... " >&6; }
11072 # Make sure either enable_shared or enable_static is yes.
11073 test "$enable_shared" = yes || enable_static=yes
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11075 $as_echo "$enable_static" >&6; }
11081 ac_ext=c
11082 ac_cpp='$CPP $CPPFLAGS'
11083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11087 CC="$lt_save_CC"
11101 ac_config_commands="$ac_config_commands libtool"
11106 # Only expand once:
11110 # Find CPP now so that any conditional tests below won't do it and
11111 # thereby make the resulting definitions conditional.
11112 ac_ext=c
11113 ac_cpp='$CPP $CPPFLAGS'
11114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11118 $as_echo_n "checking how to run the C preprocessor... " >&6; }
11119 # On Suns, sometimes $CPP names a directory.
11120 if test -n "$CPP" && test -d "$CPP"; then
11121 CPP=
11123 if test -z "$CPP"; then
11124 if ${ac_cv_prog_CPP+:} false; then :
11125 $as_echo_n "(cached) " >&6
11126 else
11127 # Double quotes because CPP needs to be expanded
11128 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11130 ac_preproc_ok=false
11131 for ac_c_preproc_warn_flag in '' yes
11133 # Use a header file that comes with gcc, so configuring glibc
11134 # with a fresh cross-compiler works.
11135 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11136 # <limits.h> exists even on freestanding compilers.
11137 # On the NeXT, cc -E runs the code through the compiler's parser,
11138 # not just through cpp. "Syntax error" is here to catch this case.
11139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11140 /* end confdefs.h. */
11141 #ifdef __STDC__
11142 # include <limits.h>
11143 #else
11144 # include <assert.h>
11145 #endif
11146 Syntax error
11147 _ACEOF
11148 if ac_fn_c_try_cpp "$LINENO"; then :
11150 else
11151 # Broken: fails on valid input.
11152 continue
11154 rm -f conftest.err conftest.i conftest.$ac_ext
11156 # OK, works on sane cases. Now check whether nonexistent headers
11157 # can be detected and how.
11158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11159 /* end confdefs.h. */
11160 #include <ac_nonexistent.h>
11161 _ACEOF
11162 if ac_fn_c_try_cpp "$LINENO"; then :
11163 # Broken: success on invalid input.
11164 continue
11165 else
11166 # Passes both tests.
11167 ac_preproc_ok=:
11168 break
11170 rm -f conftest.err conftest.i conftest.$ac_ext
11172 done
11173 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11174 rm -f conftest.i conftest.err conftest.$ac_ext
11175 if $ac_preproc_ok; then :
11176 break
11179 done
11180 ac_cv_prog_CPP=$CPP
11183 CPP=$ac_cv_prog_CPP
11184 else
11185 ac_cv_prog_CPP=$CPP
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11188 $as_echo "$CPP" >&6; }
11189 ac_preproc_ok=false
11190 for ac_c_preproc_warn_flag in '' yes
11192 # Use a header file that comes with gcc, so configuring glibc
11193 # with a fresh cross-compiler works.
11194 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11195 # <limits.h> exists even on freestanding compilers.
11196 # On the NeXT, cc -E runs the code through the compiler's parser,
11197 # not just through cpp. "Syntax error" is here to catch this case.
11198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11199 /* end confdefs.h. */
11200 #ifdef __STDC__
11201 # include <limits.h>
11202 #else
11203 # include <assert.h>
11204 #endif
11205 Syntax error
11206 _ACEOF
11207 if ac_fn_c_try_cpp "$LINENO"; then :
11209 else
11210 # Broken: fails on valid input.
11211 continue
11213 rm -f conftest.err conftest.i conftest.$ac_ext
11215 # OK, works on sane cases. Now check whether nonexistent headers
11216 # can be detected and how.
11217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11218 /* end confdefs.h. */
11219 #include <ac_nonexistent.h>
11220 _ACEOF
11221 if ac_fn_c_try_cpp "$LINENO"; then :
11222 # Broken: success on invalid input.
11223 continue
11224 else
11225 # Passes both tests.
11226 ac_preproc_ok=:
11227 break
11229 rm -f conftest.err conftest.i conftest.$ac_ext
11231 done
11232 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11233 rm -f conftest.i conftest.err conftest.$ac_ext
11234 if $ac_preproc_ok; then :
11236 else
11237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11239 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
11240 See \`config.log' for more details" "$LINENO" 5; }
11243 ac_ext=c
11244 ac_cpp='$CPP $CPPFLAGS'
11245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11250 if test -n "$with_cross_host"; then
11251 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
11252 # may not work correctly, because the compiler may not be able to
11253 # link executables.
11255 # We assume newlib. This lets us hard-code the functions we know
11256 # we'll have.
11257 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
11259 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
11261 else
11262 if test x$gcc_no_link = xyes; then
11263 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
11264 ac_cv_func_mmap_fixed_mapped=no
11267 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
11271 for ac_header in $ac_header_list
11272 do :
11273 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11274 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
11276 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11277 cat >>confdefs.h <<_ACEOF
11278 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11279 _ACEOF
11283 done
11292 for ac_func in getpagesize
11293 do :
11294 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11295 if test "x$ac_cv_func_getpagesize" = xyes; then :
11296 cat >>confdefs.h <<_ACEOF
11297 #define HAVE_GETPAGESIZE 1
11298 _ACEOF
11301 done
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
11304 $as_echo_n "checking for working mmap... " >&6; }
11305 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
11306 $as_echo_n "(cached) " >&6
11307 else
11308 if test "$cross_compiling" = yes; then :
11309 ac_cv_func_mmap_fixed_mapped=no
11310 else
11311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11312 /* end confdefs.h. */
11313 $ac_includes_default
11314 /* malloc might have been renamed as rpl_malloc. */
11315 #undef malloc
11317 /* Thanks to Mike Haertel and Jim Avera for this test.
11318 Here is a matrix of mmap possibilities:
11319 mmap private not fixed
11320 mmap private fixed at somewhere currently unmapped
11321 mmap private fixed at somewhere already mapped
11322 mmap shared not fixed
11323 mmap shared fixed at somewhere currently unmapped
11324 mmap shared fixed at somewhere already mapped
11325 For private mappings, we should verify that changes cannot be read()
11326 back from the file, nor mmap's back from the file at a different
11327 address. (There have been systems where private was not correctly
11328 implemented like the infamous i386 svr4.0, and systems where the
11329 VM page cache was not coherent with the file system buffer cache
11330 like early versions of FreeBSD and possibly contemporary NetBSD.)
11331 For shared mappings, we should conversely verify that changes get
11332 propagated back to all the places they're supposed to be.
11334 Grep wants private fixed already mapped.
11335 The main things grep needs to know about mmap are:
11336 * does it exist and is it safe to write into the mmap'd area
11337 * how to use it (BSD variants) */
11339 #include <fcntl.h>
11340 #include <sys/mman.h>
11342 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11343 char *malloc ();
11344 #endif
11346 /* This mess was copied from the GNU getpagesize.h. */
11347 #ifndef HAVE_GETPAGESIZE
11348 # ifdef _SC_PAGESIZE
11349 # define getpagesize() sysconf(_SC_PAGESIZE)
11350 # else /* no _SC_PAGESIZE */
11351 # ifdef HAVE_SYS_PARAM_H
11352 # include <sys/param.h>
11353 # ifdef EXEC_PAGESIZE
11354 # define getpagesize() EXEC_PAGESIZE
11355 # else /* no EXEC_PAGESIZE */
11356 # ifdef NBPG
11357 # define getpagesize() NBPG * CLSIZE
11358 # ifndef CLSIZE
11359 # define CLSIZE 1
11360 # endif /* no CLSIZE */
11361 # else /* no NBPG */
11362 # ifdef NBPC
11363 # define getpagesize() NBPC
11364 # else /* no NBPC */
11365 # ifdef PAGESIZE
11366 # define getpagesize() PAGESIZE
11367 # endif /* PAGESIZE */
11368 # endif /* no NBPC */
11369 # endif /* no NBPG */
11370 # endif /* no EXEC_PAGESIZE */
11371 # else /* no HAVE_SYS_PARAM_H */
11372 # define getpagesize() 8192 /* punt totally */
11373 # endif /* no HAVE_SYS_PARAM_H */
11374 # endif /* no _SC_PAGESIZE */
11376 #endif /* no HAVE_GETPAGESIZE */
11379 main ()
11381 char *data, *data2, *data3;
11382 const char *cdata2;
11383 int i, pagesize;
11384 int fd, fd2;
11386 pagesize = getpagesize ();
11388 /* First, make a file with some known garbage in it. */
11389 data = (char *) malloc (pagesize);
11390 if (!data)
11391 return 1;
11392 for (i = 0; i < pagesize; ++i)
11393 *(data + i) = rand ();
11394 umask (0);
11395 fd = creat ("conftest.mmap", 0600);
11396 if (fd < 0)
11397 return 2;
11398 if (write (fd, data, pagesize) != pagesize)
11399 return 3;
11400 close (fd);
11402 /* Next, check that the tail of a page is zero-filled. File must have
11403 non-zero length, otherwise we risk SIGBUS for entire page. */
11404 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
11405 if (fd2 < 0)
11406 return 4;
11407 cdata2 = "";
11408 if (write (fd2, cdata2, 1) != 1)
11409 return 5;
11410 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
11411 if (data2 == MAP_FAILED)
11412 return 6;
11413 for (i = 0; i < pagesize; ++i)
11414 if (*(data2 + i))
11415 return 7;
11416 close (fd2);
11417 if (munmap (data2, pagesize))
11418 return 8;
11420 /* Next, try to mmap the file at a fixed address which already has
11421 something else allocated at it. If we can, also make sure that
11422 we see the same garbage. */
11423 fd = open ("conftest.mmap", O_RDWR);
11424 if (fd < 0)
11425 return 9;
11426 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11427 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11428 return 10;
11429 for (i = 0; i < pagesize; ++i)
11430 if (*(data + i) != *(data2 + i))
11431 return 11;
11433 /* Finally, make sure that changes to the mapped area do not
11434 percolate back to the file as seen by read(). (This is a bug on
11435 some variants of i386 svr4.0.) */
11436 for (i = 0; i < pagesize; ++i)
11437 *(data2 + i) = *(data2 + i) + 1;
11438 data3 = (char *) malloc (pagesize);
11439 if (!data3)
11440 return 12;
11441 if (read (fd, data3, pagesize) != pagesize)
11442 return 13;
11443 for (i = 0; i < pagesize; ++i)
11444 if (*(data + i) != *(data3 + i))
11445 return 14;
11446 close (fd);
11447 return 0;
11449 _ACEOF
11450 if ac_fn_c_try_run "$LINENO"; then :
11451 ac_cv_func_mmap_fixed_mapped=yes
11452 else
11453 ac_cv_func_mmap_fixed_mapped=no
11455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11456 conftest.$ac_objext conftest.beam conftest.$ac_ext
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11461 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11462 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11464 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11467 rm -f conftest.mmap conftest.txt
11470 for ac_func in memcpy strerror
11471 do :
11472 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11473 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11474 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11475 cat >>confdefs.h <<_ACEOF
11476 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11477 _ACEOF
11480 done
11484 for ac_header in unistd.h
11485 do :
11486 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
11487 if test "x$ac_cv_header_unistd_h" = xyes; then :
11488 cat >>confdefs.h <<_ACEOF
11489 #define HAVE_UNISTD_H 1
11490 _ACEOF
11494 done
11498 # Check whether --with-toolexeclibdir was given.
11499 if test "${with_toolexeclibdir+set}" = set; then :
11500 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
11504 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
11506 esac
11507 else
11508 with_toolexeclibdir=no
11513 if test -n "$with_cross_host" &&
11514 test x"$with_cross_host" != x"no"; then
11515 toolexecdir='$(exec_prefix)/$(target_alias)'
11516 case ${with_toolexeclibdir} in
11518 toolexeclibdir='$(toolexecdir)/lib'
11521 toolexeclibdir=${with_toolexeclibdir}
11523 esac
11524 else
11525 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11526 toolexeclibdir='$(libdir)'
11528 if test "$GCC" = yes && $CC -print-multi-os-directory > /dev/null 2>&1; then
11529 multiosdir=/`$CC -print-multi-os-directory`
11530 case $multiosdir in
11531 /.) multiosdir= ;; # Avoid trailing /.
11532 esac
11533 else
11534 multiosdir=
11536 toolexeclibdir=${toolexeclibdir}${multiosdir}
11540 if test -n "$with_target_subdir"; then
11541 TARGET_LIBRARY_TRUE=
11542 TARGET_LIBRARY_FALSE='#'
11543 else
11544 TARGET_LIBRARY_TRUE='#'
11545 TARGET_LIBRARY_FALSE=
11549 if test "${multilib}" = "yes"; then
11550 multilib_arg="--enable-multilib"
11551 else
11552 multilib_arg=
11555 # Enable --enable-host-shared.
11556 # Check whether --enable-host-shared was given.
11557 if test "${enable_host_shared+set}" = set; then :
11558 enableval=$enable_host_shared;
11563 # Enable --enable-host-pie.
11564 # Check whether --enable-host-pie was given.
11565 if test "${enable_host_pie+set}" = set; then :
11566 enableval=$enable_host_pie;
11571 if test x$enable_host_shared = xyes; then
11572 PICFLAG=-fPIC
11573 elif test x$enable_host_pie = xyes; then
11574 PICFLAG=-fPIE
11575 else
11576 PICFLAG=
11580 ac_config_files="$ac_config_files Makefile"
11582 cat >confcache <<\_ACEOF
11583 # This file is a shell script that caches the results of configure
11584 # tests run on this system so they can be shared between configure
11585 # scripts and configure runs, see configure's option --config-cache.
11586 # It is not useful on other systems. If it contains results you don't
11587 # want to keep, you may remove or edit it.
11589 # config.status only pays attention to the cache file if you give it
11590 # the --recheck option to rerun configure.
11592 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11593 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11594 # following values.
11596 _ACEOF
11598 # The following way of writing the cache mishandles newlines in values,
11599 # but we know of no workaround that is simple, portable, and efficient.
11600 # So, we kill variables containing newlines.
11601 # Ultrix sh set writes to stderr and can't be redirected directly,
11602 # and sets the high bit in the cache file unless we assign to the vars.
11604 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11605 eval ac_val=\$$ac_var
11606 case $ac_val in #(
11607 *${as_nl}*)
11608 case $ac_var in #(
11609 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11610 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11611 esac
11612 case $ac_var in #(
11613 _ | IFS | as_nl) ;; #(
11614 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11615 *) { eval $ac_var=; unset $ac_var;} ;;
11616 esac ;;
11617 esac
11618 done
11620 (set) 2>&1 |
11621 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11622 *${as_nl}ac_space=\ *)
11623 # `set' does not quote correctly, so add quotes: double-quote
11624 # substitution turns \\\\ into \\, and sed turns \\ into \.
11625 sed -n \
11626 "s/'/'\\\\''/g;
11627 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11628 ;; #(
11630 # `set' quotes correctly as required by POSIX, so do not add quotes.
11631 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11633 esac |
11634 sort
11636 sed '
11637 /^ac_cv_env_/b end
11638 t clear
11639 :clear
11640 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11641 t end
11642 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11643 :end' >>confcache
11644 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11645 if test -w "$cache_file"; then
11646 if test "x$cache_file" != "x/dev/null"; then
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11648 $as_echo "$as_me: updating cache $cache_file" >&6;}
11649 if test ! -f "$cache_file" || test -h "$cache_file"; then
11650 cat confcache >"$cache_file"
11651 else
11652 case $cache_file in #(
11653 */* | ?:*)
11654 mv -f confcache "$cache_file"$$ &&
11655 mv -f "$cache_file"$$ "$cache_file" ;; #(
11657 mv -f confcache "$cache_file" ;;
11658 esac
11661 else
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11663 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11666 rm -f confcache
11668 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11669 # Let make expand exec_prefix.
11670 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11672 # Transform confdefs.h into DEFS.
11673 # Protect against shell expansion while executing Makefile rules.
11674 # Protect against Makefile macro expansion.
11676 # If the first sed substitution is executed (which looks for macros that
11677 # take arguments), then branch to the quote section. Otherwise,
11678 # look for a macro that doesn't take arguments.
11679 ac_script='
11680 :mline
11681 /\\$/{
11683 s,\\\n,,
11684 b mline
11686 t clear
11687 :clear
11688 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11689 t quote
11690 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11691 t quote
11692 b any
11693 :quote
11694 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11695 s/\[/\\&/g
11696 s/\]/\\&/g
11697 s/\$/$$/g
11699 :any
11702 s/^\n//
11703 s/\n/ /g
11707 DEFS=`sed -n "$ac_script" confdefs.h`
11710 ac_libobjs=
11711 ac_ltlibobjs=
11713 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11714 # 1. Remove the extension, and $U if already installed.
11715 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11716 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11717 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11718 # will be set to the directory where LIBOBJS objects are built.
11719 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11720 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11721 done
11722 LIBOBJS=$ac_libobjs
11724 LTLIBOBJS=$ac_ltlibobjs
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11728 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11729 if test -n "$am_sleep_pid"; then
11730 # Hide warnings about reused PIDs.
11731 wait $am_sleep_pid 2>/dev/null
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11734 $as_echo "done" >&6; }
11735 if test -n "$EXEEXT"; then
11736 am__EXEEXT_TRUE=
11737 am__EXEEXT_FALSE='#'
11738 else
11739 am__EXEEXT_TRUE='#'
11740 am__EXEEXT_FALSE=
11743 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11744 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11745 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11747 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11748 as_fn_error $? "conditional \"AMDEP\" was never defined.
11749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11751 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11752 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11753 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11755 if test -z "${TARGET_LIBRARY_TRUE}" && test -z "${TARGET_LIBRARY_FALSE}"; then
11756 as_fn_error $? "conditional \"TARGET_LIBRARY\" was never defined.
11757 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11760 : "${CONFIG_STATUS=./config.status}"
11761 ac_write_fail=0
11762 ac_clean_files_save=$ac_clean_files
11763 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11765 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11766 as_write_fail=0
11767 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11768 #! $SHELL
11769 # Generated by $as_me.
11770 # Run this file to recreate the current configuration.
11771 # Compiler output produced by configure, useful for debugging
11772 # configure, is in config.log if it exists.
11774 debug=false
11775 ac_cs_recheck=false
11776 ac_cs_silent=false
11778 SHELL=\${CONFIG_SHELL-$SHELL}
11779 export SHELL
11780 _ASEOF
11781 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11782 ## -------------------- ##
11783 ## M4sh Initialization. ##
11784 ## -------------------- ##
11786 # Be more Bourne compatible
11787 DUALCASE=1; export DUALCASE # for MKS sh
11788 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11789 emulate sh
11790 NULLCMD=:
11791 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11792 # is contrary to our usage. Disable this feature.
11793 alias -g '${1+"$@"}'='"$@"'
11794 setopt NO_GLOB_SUBST
11795 else
11796 case `(set -o) 2>/dev/null` in #(
11797 *posix*) :
11798 set -o posix ;; #(
11799 *) :
11801 esac
11805 as_nl='
11807 export as_nl
11808 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11809 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11810 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11811 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11812 # Prefer a ksh shell builtin over an external printf program on Solaris,
11813 # but without wasting forks for bash or zsh.
11814 if test -z "$BASH_VERSION$ZSH_VERSION" \
11815 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11816 as_echo='print -r --'
11817 as_echo_n='print -rn --'
11818 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11819 as_echo='printf %s\n'
11820 as_echo_n='printf %s'
11821 else
11822 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11823 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11824 as_echo_n='/usr/ucb/echo -n'
11825 else
11826 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11827 as_echo_n_body='eval
11828 arg=$1;
11829 case $arg in #(
11830 *"$as_nl"*)
11831 expr "X$arg" : "X\\(.*\\)$as_nl";
11832 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11833 esac;
11834 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11836 export as_echo_n_body
11837 as_echo_n='sh -c $as_echo_n_body as_echo'
11839 export as_echo_body
11840 as_echo='sh -c $as_echo_body as_echo'
11843 # The user is always right.
11844 if test "${PATH_SEPARATOR+set}" != set; then
11845 PATH_SEPARATOR=:
11846 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11847 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11848 PATH_SEPARATOR=';'
11853 # IFS
11854 # We need space, tab and new line, in precisely that order. Quoting is
11855 # there to prevent editors from complaining about space-tab.
11856 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11857 # splitting by setting IFS to empty value.)
11858 IFS=" "" $as_nl"
11860 # Find who we are. Look in the path if we contain no directory separator.
11861 as_myself=
11862 case $0 in #((
11863 *[\\/]* ) as_myself=$0 ;;
11864 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11865 for as_dir in $PATH
11867 IFS=$as_save_IFS
11868 test -z "$as_dir" && as_dir=.
11869 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11870 done
11871 IFS=$as_save_IFS
11874 esac
11875 # We did not find ourselves, most probably we were run as `sh COMMAND'
11876 # in which case we are not to be found in the path.
11877 if test "x$as_myself" = x; then
11878 as_myself=$0
11880 if test ! -f "$as_myself"; then
11881 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11882 exit 1
11885 # Unset variables that we do not need and which cause bugs (e.g. in
11886 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11887 # suppresses any "Segmentation fault" message there. '((' could
11888 # trigger a bug in pdksh 5.2.14.
11889 for as_var in BASH_ENV ENV MAIL MAILPATH
11890 do eval test x\${$as_var+set} = xset \
11891 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11892 done
11893 PS1='$ '
11894 PS2='> '
11895 PS4='+ '
11897 # NLS nuisances.
11898 LC_ALL=C
11899 export LC_ALL
11900 LANGUAGE=C
11901 export LANGUAGE
11903 # CDPATH.
11904 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11907 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11908 # ----------------------------------------
11909 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11910 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11911 # script with STATUS, using 1 if that was 0.
11912 as_fn_error ()
11914 as_status=$1; test $as_status -eq 0 && as_status=1
11915 if test "$4"; then
11916 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11917 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11919 $as_echo "$as_me: error: $2" >&2
11920 as_fn_exit $as_status
11921 } # as_fn_error
11924 # as_fn_set_status STATUS
11925 # -----------------------
11926 # Set $? to STATUS, without forking.
11927 as_fn_set_status ()
11929 return $1
11930 } # as_fn_set_status
11932 # as_fn_exit STATUS
11933 # -----------------
11934 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11935 as_fn_exit ()
11937 set +e
11938 as_fn_set_status $1
11939 exit $1
11940 } # as_fn_exit
11942 # as_fn_unset VAR
11943 # ---------------
11944 # Portably unset VAR.
11945 as_fn_unset ()
11947 { eval $1=; unset $1;}
11949 as_unset=as_fn_unset
11950 # as_fn_append VAR VALUE
11951 # ----------------------
11952 # Append the text in VALUE to the end of the definition contained in VAR. Take
11953 # advantage of any shell optimizations that allow amortized linear growth over
11954 # repeated appends, instead of the typical quadratic growth present in naive
11955 # implementations.
11956 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11957 eval 'as_fn_append ()
11959 eval $1+=\$2
11961 else
11962 as_fn_append ()
11964 eval $1=\$$1\$2
11966 fi # as_fn_append
11968 # as_fn_arith ARG...
11969 # ------------------
11970 # Perform arithmetic evaluation on the ARGs, and store the result in the
11971 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11972 # must be portable across $(()) and expr.
11973 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11974 eval 'as_fn_arith ()
11976 as_val=$(( $* ))
11978 else
11979 as_fn_arith ()
11981 as_val=`expr "$@" || test $? -eq 1`
11983 fi # as_fn_arith
11986 if expr a : '\(a\)' >/dev/null 2>&1 &&
11987 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11988 as_expr=expr
11989 else
11990 as_expr=false
11993 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11994 as_basename=basename
11995 else
11996 as_basename=false
11999 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12000 as_dirname=dirname
12001 else
12002 as_dirname=false
12005 as_me=`$as_basename -- "$0" ||
12006 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12007 X"$0" : 'X\(//\)$' \| \
12008 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12009 $as_echo X/"$0" |
12010 sed '/^.*\/\([^/][^/]*\)\/*$/{
12011 s//\1/
12014 /^X\/\(\/\/\)$/{
12015 s//\1/
12018 /^X\/\(\/\).*/{
12019 s//\1/
12022 s/.*/./; q'`
12024 # Avoid depending upon Character Ranges.
12025 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12026 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12027 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12028 as_cr_digits='0123456789'
12029 as_cr_alnum=$as_cr_Letters$as_cr_digits
12031 ECHO_C= ECHO_N= ECHO_T=
12032 case `echo -n x` in #(((((
12033 -n*)
12034 case `echo 'xy\c'` in
12035 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12036 xy) ECHO_C='\c';;
12037 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12038 ECHO_T=' ';;
12039 esac;;
12041 ECHO_N='-n';;
12042 esac
12044 rm -f conf$$ conf$$.exe conf$$.file
12045 if test -d conf$$.dir; then
12046 rm -f conf$$.dir/conf$$.file
12047 else
12048 rm -f conf$$.dir
12049 mkdir conf$$.dir 2>/dev/null
12051 if (echo >conf$$.file) 2>/dev/null; then
12052 if ln -s conf$$.file conf$$ 2>/dev/null; then
12053 as_ln_s='ln -s'
12054 # ... but there are two gotchas:
12055 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12056 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12057 # In both cases, we have to default to `cp -pR'.
12058 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12059 as_ln_s='cp -pR'
12060 elif ln conf$$.file conf$$ 2>/dev/null; then
12061 as_ln_s=ln
12062 else
12063 as_ln_s='cp -pR'
12065 else
12066 as_ln_s='cp -pR'
12068 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12069 rmdir conf$$.dir 2>/dev/null
12072 # as_fn_mkdir_p
12073 # -------------
12074 # Create "$as_dir" as a directory, including parents if necessary.
12075 as_fn_mkdir_p ()
12078 case $as_dir in #(
12079 -*) as_dir=./$as_dir;;
12080 esac
12081 test -d "$as_dir" || eval $as_mkdir_p || {
12082 as_dirs=
12083 while :; do
12084 case $as_dir in #(
12085 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12086 *) as_qdir=$as_dir;;
12087 esac
12088 as_dirs="'$as_qdir' $as_dirs"
12089 as_dir=`$as_dirname -- "$as_dir" ||
12090 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12091 X"$as_dir" : 'X\(//\)[^/]' \| \
12092 X"$as_dir" : 'X\(//\)$' \| \
12093 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12094 $as_echo X"$as_dir" |
12095 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12096 s//\1/
12099 /^X\(\/\/\)[^/].*/{
12100 s//\1/
12103 /^X\(\/\/\)$/{
12104 s//\1/
12107 /^X\(\/\).*/{
12108 s//\1/
12111 s/.*/./; q'`
12112 test -d "$as_dir" && break
12113 done
12114 test -z "$as_dirs" || eval "mkdir $as_dirs"
12115 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12118 } # as_fn_mkdir_p
12119 if mkdir -p . 2>/dev/null; then
12120 as_mkdir_p='mkdir -p "$as_dir"'
12121 else
12122 test -d ./-p && rmdir ./-p
12123 as_mkdir_p=false
12127 # as_fn_executable_p FILE
12128 # -----------------------
12129 # Test if FILE is an executable regular file.
12130 as_fn_executable_p ()
12132 test -f "$1" && test -x "$1"
12133 } # as_fn_executable_p
12134 as_test_x='test -x'
12135 as_executable_p=as_fn_executable_p
12137 # Sed expression to map a string onto a valid CPP name.
12138 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12140 # Sed expression to map a string onto a valid variable name.
12141 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12144 exec 6>&1
12145 ## ----------------------------------- ##
12146 ## Main body of $CONFIG_STATUS script. ##
12147 ## ----------------------------------- ##
12148 _ASEOF
12149 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12152 # Save the log message, to keep $0 and so on meaningful, and to
12153 # report actual input values of CONFIG_FILES etc. instead of their
12154 # values after options handling.
12155 ac_log="
12156 This file was extended by zlib $as_me 1.1.4, which was
12157 generated by GNU Autoconf 2.69. Invocation command line was
12159 CONFIG_FILES = $CONFIG_FILES
12160 CONFIG_HEADERS = $CONFIG_HEADERS
12161 CONFIG_LINKS = $CONFIG_LINKS
12162 CONFIG_COMMANDS = $CONFIG_COMMANDS
12163 $ $0 $@
12165 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12168 _ACEOF
12170 case $ac_config_files in *"
12171 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12172 esac
12176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12177 # Files that config.status was made for.
12178 config_files="$ac_config_files"
12179 config_commands="$ac_config_commands"
12181 _ACEOF
12183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12184 ac_cs_usage="\
12185 \`$as_me' instantiates files and other configuration actions
12186 from templates according to the current configuration. Unless the files
12187 and actions are specified as TAGs, all are instantiated by default.
12189 Usage: $0 [OPTION]... [TAG]...
12191 -h, --help print this help, then exit
12192 -V, --version print version number and configuration settings, then exit
12193 --config print configuration, then exit
12194 -q, --quiet, --silent
12195 do not print progress messages
12196 -d, --debug don't remove temporary files
12197 --recheck update $as_me by reconfiguring in the same conditions
12198 --file=FILE[:TEMPLATE]
12199 instantiate the configuration file FILE
12201 Configuration files:
12202 $config_files
12204 Configuration commands:
12205 $config_commands
12207 Report bugs to the package provider."
12209 _ACEOF
12210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12211 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12212 ac_cs_version="\\
12213 zlib config.status 1.1.4
12214 configured by $0, generated by GNU Autoconf 2.69,
12215 with options \\"\$ac_cs_config\\"
12217 Copyright (C) 2012 Free Software Foundation, Inc.
12218 This config.status script is free software; the Free Software Foundation
12219 gives unlimited permission to copy, distribute and modify it."
12221 ac_pwd='$ac_pwd'
12222 srcdir='$srcdir'
12223 INSTALL='$INSTALL'
12224 MKDIR_P='$MKDIR_P'
12225 AWK='$AWK'
12226 test -n "\$AWK" || AWK=awk
12227 _ACEOF
12229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12230 # The default lists apply if the user does not specify any file.
12231 ac_need_defaults=:
12232 while test $# != 0
12234 case $1 in
12235 --*=?*)
12236 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12237 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12238 ac_shift=:
12240 --*=)
12241 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12242 ac_optarg=
12243 ac_shift=:
12246 ac_option=$1
12247 ac_optarg=$2
12248 ac_shift=shift
12250 esac
12252 case $ac_option in
12253 # Handling of the options.
12254 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12255 ac_cs_recheck=: ;;
12256 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12257 $as_echo "$ac_cs_version"; exit ;;
12258 --config | --confi | --conf | --con | --co | --c )
12259 $as_echo "$ac_cs_config"; exit ;;
12260 --debug | --debu | --deb | --de | --d | -d )
12261 debug=: ;;
12262 --file | --fil | --fi | --f )
12263 $ac_shift
12264 case $ac_optarg in
12265 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12266 '') as_fn_error $? "missing file argument" ;;
12267 esac
12268 as_fn_append CONFIG_FILES " '$ac_optarg'"
12269 ac_need_defaults=false;;
12270 --he | --h | --help | --hel | -h )
12271 $as_echo "$ac_cs_usage"; exit ;;
12272 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12273 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12274 ac_cs_silent=: ;;
12276 # This is an error.
12277 -*) as_fn_error $? "unrecognized option: \`$1'
12278 Try \`$0 --help' for more information." ;;
12280 *) as_fn_append ac_config_targets " $1"
12281 ac_need_defaults=false ;;
12283 esac
12284 shift
12285 done
12287 ac_configure_extra_args=
12289 if $ac_cs_silent; then
12290 exec 6>/dev/null
12291 ac_configure_extra_args="$ac_configure_extra_args --silent"
12294 _ACEOF
12295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12296 if \$ac_cs_recheck; then
12297 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12298 shift
12299 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12300 CONFIG_SHELL='$SHELL'
12301 export CONFIG_SHELL
12302 exec "\$@"
12305 _ACEOF
12306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12307 exec 5>>config.log
12309 echo
12310 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12311 ## Running $as_me. ##
12312 _ASBOX
12313 $as_echo "$ac_log"
12314 } >&5
12316 _ACEOF
12317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12319 # INIT-COMMANDS
12322 srcdir="$srcdir"
12323 host="$host"
12324 target="$target"
12325 with_multisubdir="$with_multisubdir"
12326 with_multisrctop="$with_multisrctop"
12327 with_target_subdir="$with_target_subdir"
12328 ac_configure_args="${multilib_arg} ${ac_configure_args}"
12329 multi_basedir="$multi_basedir"
12330 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12331 CC="$CC"
12332 CXX="$CXX"
12333 GFORTRAN="$GFORTRAN"
12334 GDC="$GDC"
12335 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12338 # The HP-UX ksh and POSIX shell print the target directory to stdout
12339 # if CDPATH is set.
12340 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12342 sed_quote_subst='$sed_quote_subst'
12343 double_quote_subst='$double_quote_subst'
12344 delay_variable_subst='$delay_variable_subst'
12345 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12346 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12347 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12348 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12349 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12350 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12351 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12352 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12353 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12354 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12355 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12356 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12357 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12358 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12359 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12360 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12361 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12362 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12363 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12364 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12365 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12366 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12367 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12368 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12369 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12370 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12371 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12372 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12373 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12374 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12375 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12376 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12377 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12378 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12379 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12380 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12381 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12382 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12383 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12384 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12385 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12386 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12387 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12388 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12389 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12390 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12391 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12392 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12393 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"`'
12394 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12395 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12396 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12397 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12398 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12399 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12400 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12401 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12402 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12403 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12404 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12405 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12406 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12407 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12408 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12409 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12410 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12411 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12412 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12413 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12414 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12415 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12416 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12417 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12418 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12419 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12420 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12421 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12422 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12423 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12424 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12425 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12426 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12427 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12428 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12429 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12430 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12431 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12432 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12433 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12434 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12435 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12436 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12437 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12438 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12439 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12440 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12441 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12442 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12443 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12444 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12445 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12446 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12447 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12448 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12449 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12450 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12451 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12452 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12453 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12454 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12455 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12456 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12457 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12458 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12459 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12460 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12461 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12462 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12463 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12464 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12466 LTCC='$LTCC'
12467 LTCFLAGS='$LTCFLAGS'
12468 compiler='$compiler_DEFAULT'
12470 # A function that is used when there is no print builtin or printf.
12471 func_fallback_echo ()
12473 eval 'cat <<_LTECHO_EOF
12475 _LTECHO_EOF'
12478 # Quote evaled strings.
12479 for var in SHELL \
12480 ECHO \
12481 SED \
12482 GREP \
12483 EGREP \
12484 FGREP \
12485 LD \
12486 NM \
12487 LN_S \
12488 lt_SP2NL \
12489 lt_NL2SP \
12490 reload_flag \
12491 OBJDUMP \
12492 deplibs_check_method \
12493 file_magic_cmd \
12494 AR \
12495 AR_FLAGS \
12496 STRIP \
12497 RANLIB \
12498 CC \
12499 CFLAGS \
12500 compiler \
12501 lt_cv_sys_global_symbol_pipe \
12502 lt_cv_sys_global_symbol_to_cdecl \
12503 lt_cv_sys_global_symbol_to_c_name_address \
12504 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12505 lt_prog_compiler_no_builtin_flag \
12506 lt_prog_compiler_wl \
12507 lt_prog_compiler_pic \
12508 lt_prog_compiler_static \
12509 lt_cv_prog_compiler_c_o \
12510 need_locks \
12511 DSYMUTIL \
12512 NMEDIT \
12513 LIPO \
12514 OTOOL \
12515 OTOOL64 \
12516 shrext_cmds \
12517 export_dynamic_flag_spec \
12518 whole_archive_flag_spec \
12519 compiler_needs_object \
12520 with_gnu_ld \
12521 allow_undefined_flag \
12522 no_undefined_flag \
12523 hardcode_libdir_flag_spec \
12524 hardcode_libdir_flag_spec_ld \
12525 hardcode_libdir_separator \
12526 fix_srcfile_path \
12527 exclude_expsyms \
12528 include_expsyms \
12529 file_list_spec \
12530 variables_saved_for_relink \
12531 libname_spec \
12532 library_names_spec \
12533 soname_spec \
12534 install_override_mode \
12535 finish_eval \
12536 old_striplib \
12537 striplib; do
12538 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12539 *[\\\\\\\`\\"\\\$]*)
12540 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12543 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12545 esac
12546 done
12548 # Double-quote double-evaled strings.
12549 for var in reload_cmds \
12550 old_postinstall_cmds \
12551 old_postuninstall_cmds \
12552 old_archive_cmds \
12553 extract_expsyms_cmds \
12554 old_archive_from_new_cmds \
12555 old_archive_from_expsyms_cmds \
12556 archive_cmds \
12557 archive_expsym_cmds \
12558 module_cmds \
12559 module_expsym_cmds \
12560 export_symbols_cmds \
12561 prelink_cmds \
12562 postinstall_cmds \
12563 postuninstall_cmds \
12564 finish_cmds \
12565 sys_lib_search_path_spec \
12566 sys_lib_dlsearch_path_spec; do
12567 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12568 *[\\\\\\\`\\"\\\$]*)
12569 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12572 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12574 esac
12575 done
12577 ac_aux_dir='$ac_aux_dir'
12578 xsi_shell='$xsi_shell'
12579 lt_shell_append='$lt_shell_append'
12581 # See if we are running on zsh, and set the options which allow our
12582 # commands through without removal of \ escapes INIT.
12583 if test -n "\${ZSH_VERSION+set}" ; then
12584 setopt NO_GLOB_SUBST
12588 PACKAGE='$PACKAGE'
12589 VERSION='$VERSION'
12590 TIMESTAMP='$TIMESTAMP'
12591 RM='$RM'
12592 ofile='$ofile'
12597 _ACEOF
12599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12601 # Handling of arguments.
12602 for ac_config_target in $ac_config_targets
12604 case $ac_config_target in
12605 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12606 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12607 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12608 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12610 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12611 esac
12612 done
12615 # If the user did not use the arguments to specify the items to instantiate,
12616 # then the envvar interface is used. Set only those that are not.
12617 # We use the long form for the default assignment because of an extremely
12618 # bizarre bug on SunOS 4.1.3.
12619 if $ac_need_defaults; then
12620 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12621 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12624 # Have a temporary directory for convenience. Make it in the build tree
12625 # simply because there is no reason against having it here, and in addition,
12626 # creating and moving files from /tmp can sometimes cause problems.
12627 # Hook for its removal unless debugging.
12628 # Note that there is a small window in which the directory will not be cleaned:
12629 # after its creation but before its name has been assigned to `$tmp'.
12630 $debug ||
12632 tmp= ac_tmp=
12633 trap 'exit_status=$?
12634 : "${ac_tmp:=$tmp}"
12635 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12637 trap 'as_fn_exit 1' 1 2 13 15
12639 # Create a (secure) tmp directory for tmp files.
12642 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12643 test -d "$tmp"
12644 } ||
12646 tmp=./conf$$-$RANDOM
12647 (umask 077 && mkdir "$tmp")
12648 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12649 ac_tmp=$tmp
12651 # Set up the scripts for CONFIG_FILES section.
12652 # No need to generate them if there are no CONFIG_FILES.
12653 # This happens for instance with `./config.status config.h'.
12654 if test -n "$CONFIG_FILES"; then
12657 ac_cr=`echo X | tr X '\015'`
12658 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12659 # But we know of no other shell where ac_cr would be empty at this
12660 # point, so we can use a bashism as a fallback.
12661 if test "x$ac_cr" = x; then
12662 eval ac_cr=\$\'\\r\'
12664 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12665 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12666 ac_cs_awk_cr='\\r'
12667 else
12668 ac_cs_awk_cr=$ac_cr
12671 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12672 _ACEOF
12676 echo "cat >conf$$subs.awk <<_ACEOF" &&
12677 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12678 echo "_ACEOF"
12679 } >conf$$subs.sh ||
12680 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12681 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12682 ac_delim='%!_!# '
12683 for ac_last_try in false false false false false :; do
12684 . ./conf$$subs.sh ||
12685 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12687 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12688 if test $ac_delim_n = $ac_delim_num; then
12689 break
12690 elif $ac_last_try; then
12691 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12692 else
12693 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12695 done
12696 rm -f conf$$subs.sh
12698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12699 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12700 _ACEOF
12701 sed -n '
12703 s/^/S["/; s/!.*/"]=/
12706 s/^[^!]*!//
12707 :repl
12708 t repl
12709 s/'"$ac_delim"'$//
12710 t delim
12713 s/\(.\{148\}\)..*/\1/
12714 t more1
12715 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12718 b repl
12719 :more1
12720 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12723 s/.\{148\}//
12724 t nl
12725 :delim
12727 s/\(.\{148\}\)..*/\1/
12728 t more2
12729 s/["\\]/\\&/g; s/^/"/; s/$/"/
12732 :more2
12733 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12736 s/.\{148\}//
12737 t delim
12738 ' <conf$$subs.awk | sed '
12739 /^[^""]/{
12741 s/\n//
12743 ' >>$CONFIG_STATUS || ac_write_fail=1
12744 rm -f conf$$subs.awk
12745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12746 _ACAWK
12747 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12748 for (key in S) S_is_set[key] = 1
12749 FS = "\a"
12753 line = $ 0
12754 nfields = split(line, field, "@")
12755 substed = 0
12756 len = length(field[1])
12757 for (i = 2; i < nfields; i++) {
12758 key = field[i]
12759 keylen = length(key)
12760 if (S_is_set[key]) {
12761 value = S[key]
12762 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12763 len += length(value) + length(field[++i])
12764 substed = 1
12765 } else
12766 len += 1 + keylen
12769 print line
12772 _ACAWK
12773 _ACEOF
12774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12775 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12776 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12777 else
12779 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12780 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12781 _ACEOF
12783 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12784 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12785 # trailing colons and then remove the whole line if VPATH becomes empty
12786 # (actually we leave an empty line to preserve line numbers).
12787 if test "x$srcdir" = x.; then
12788 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12790 s///
12791 s/^/:/
12792 s/[ ]*$/:/
12793 s/:\$(srcdir):/:/g
12794 s/:\${srcdir}:/:/g
12795 s/:@srcdir@:/:/g
12796 s/^:*//
12797 s/:*$//
12799 s/\(=[ ]*\).*/\1/
12801 s/\n//
12802 s/^[^=]*=[ ]*$//
12806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12807 fi # test -n "$CONFIG_FILES"
12810 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12811 shift
12812 for ac_tag
12814 case $ac_tag in
12815 :[FHLC]) ac_mode=$ac_tag; continue;;
12816 esac
12817 case $ac_mode$ac_tag in
12818 :[FHL]*:*);;
12819 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12820 :[FH]-) ac_tag=-:-;;
12821 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12822 esac
12823 ac_save_IFS=$IFS
12824 IFS=:
12825 set x $ac_tag
12826 IFS=$ac_save_IFS
12827 shift
12828 ac_file=$1
12829 shift
12831 case $ac_mode in
12832 :L) ac_source=$1;;
12833 :[FH])
12834 ac_file_inputs=
12835 for ac_f
12837 case $ac_f in
12838 -) ac_f="$ac_tmp/stdin";;
12839 *) # Look for the file first in the build tree, then in the source tree
12840 # (if the path is not absolute). The absolute path cannot be DOS-style,
12841 # because $ac_f cannot contain `:'.
12842 test -f "$ac_f" ||
12843 case $ac_f in
12844 [\\/$]*) false;;
12845 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12846 esac ||
12847 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12848 esac
12849 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12850 as_fn_append ac_file_inputs " '$ac_f'"
12851 done
12853 # Let's still pretend it is `configure' which instantiates (i.e., don't
12854 # use $as_me), people would be surprised to read:
12855 # /* config.h. Generated by config.status. */
12856 configure_input='Generated from '`
12857 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12858 `' by configure.'
12859 if test x"$ac_file" != x-; then
12860 configure_input="$ac_file. $configure_input"
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12862 $as_echo "$as_me: creating $ac_file" >&6;}
12864 # Neutralize special characters interpreted by sed in replacement strings.
12865 case $configure_input in #(
12866 *\&* | *\|* | *\\* )
12867 ac_sed_conf_input=`$as_echo "$configure_input" |
12868 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12869 *) ac_sed_conf_input=$configure_input;;
12870 esac
12872 case $ac_tag in
12873 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12874 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12875 esac
12877 esac
12879 ac_dir=`$as_dirname -- "$ac_file" ||
12880 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12881 X"$ac_file" : 'X\(//\)[^/]' \| \
12882 X"$ac_file" : 'X\(//\)$' \| \
12883 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12884 $as_echo X"$ac_file" |
12885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12886 s//\1/
12889 /^X\(\/\/\)[^/].*/{
12890 s//\1/
12893 /^X\(\/\/\)$/{
12894 s//\1/
12897 /^X\(\/\).*/{
12898 s//\1/
12901 s/.*/./; q'`
12902 as_dir="$ac_dir"; as_fn_mkdir_p
12903 ac_builddir=.
12905 case "$ac_dir" in
12906 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12908 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12909 # A ".." for each directory in $ac_dir_suffix.
12910 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12911 case $ac_top_builddir_sub in
12912 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12913 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12914 esac ;;
12915 esac
12916 ac_abs_top_builddir=$ac_pwd
12917 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12918 # for backward compatibility:
12919 ac_top_builddir=$ac_top_build_prefix
12921 case $srcdir in
12922 .) # We are building in place.
12923 ac_srcdir=.
12924 ac_top_srcdir=$ac_top_builddir_sub
12925 ac_abs_top_srcdir=$ac_pwd ;;
12926 [\\/]* | ?:[\\/]* ) # Absolute name.
12927 ac_srcdir=$srcdir$ac_dir_suffix;
12928 ac_top_srcdir=$srcdir
12929 ac_abs_top_srcdir=$srcdir ;;
12930 *) # Relative name.
12931 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12932 ac_top_srcdir=$ac_top_build_prefix$srcdir
12933 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12934 esac
12935 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12938 case $ac_mode in
12941 # CONFIG_FILE
12944 case $INSTALL in
12945 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12946 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12947 esac
12948 ac_MKDIR_P=$MKDIR_P
12949 case $MKDIR_P in
12950 [\\/$]* | ?:[\\/]* ) ;;
12951 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12952 esac
12953 _ACEOF
12955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12956 # If the template does not know about datarootdir, expand it.
12957 # FIXME: This hack should be removed a few years after 2.60.
12958 ac_datarootdir_hack=; ac_datarootdir_seen=
12959 ac_sed_dataroot='
12960 /datarootdir/ {
12964 /@datadir@/p
12965 /@docdir@/p
12966 /@infodir@/p
12967 /@localedir@/p
12968 /@mandir@/p'
12969 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12970 *datarootdir*) ac_datarootdir_seen=yes;;
12971 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12973 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12974 _ACEOF
12975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12976 ac_datarootdir_hack='
12977 s&@datadir@&$datadir&g
12978 s&@docdir@&$docdir&g
12979 s&@infodir@&$infodir&g
12980 s&@localedir@&$localedir&g
12981 s&@mandir@&$mandir&g
12982 s&\\\${datarootdir}&$datarootdir&g' ;;
12983 esac
12984 _ACEOF
12986 # Neutralize VPATH when `$srcdir' = `.'.
12987 # Shell code in configure.ac might set extrasub.
12988 # FIXME: do we really want to maintain this feature?
12989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12990 ac_sed_extra="$ac_vpsub
12991 $extrasub
12992 _ACEOF
12993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12995 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12996 s|@configure_input@|$ac_sed_conf_input|;t t
12997 s&@top_builddir@&$ac_top_builddir_sub&;t t
12998 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12999 s&@srcdir@&$ac_srcdir&;t t
13000 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13001 s&@top_srcdir@&$ac_top_srcdir&;t t
13002 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13003 s&@builddir@&$ac_builddir&;t t
13004 s&@abs_builddir@&$ac_abs_builddir&;t t
13005 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13006 s&@INSTALL@&$ac_INSTALL&;t t
13007 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13008 $ac_datarootdir_hack
13010 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13011 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13013 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13014 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13015 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13016 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13018 which seems to be undefined. Please make sure it is defined" >&5
13019 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13020 which seems to be undefined. Please make sure it is defined" >&2;}
13022 rm -f "$ac_tmp/stdin"
13023 case $ac_file in
13024 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13025 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13026 esac \
13027 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13031 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13032 $as_echo "$as_me: executing $ac_file commands" >&6;}
13034 esac
13037 case $ac_file$ac_mode in
13038 "default-1":C)
13039 # Only add multilib support code if we just rebuilt the top-level
13040 # Makefile.
13041 case " $CONFIG_FILES " in
13042 *" Makefile "*)
13043 ac_file=Makefile . ${multi_basedir}/config-ml.in
13045 esac ;;
13046 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13047 # Older Autoconf quotes --file arguments for eval, but not when files
13048 # are listed without --file. Let's play safe and only enable the eval
13049 # if we detect the quoting.
13050 case $CONFIG_FILES in
13051 *\'*) eval set x "$CONFIG_FILES" ;;
13052 *) set x $CONFIG_FILES ;;
13053 esac
13054 shift
13055 for mf
13057 # Strip MF so we end up with the name of the file.
13058 mf=`echo "$mf" | sed -e 's/:.*$//'`
13059 # Check whether this is an Automake generated Makefile or not.
13060 # We used to match only the files named 'Makefile.in', but
13061 # some people rename them; so instead we look at the file content.
13062 # Grep'ing the first line is not enough: some people post-process
13063 # each Makefile.in and add a new line on top of each file to say so.
13064 # Grep'ing the whole file is not good either: AIX grep has a line
13065 # limit of 2048, but all sed's we know have understand at least 4000.
13066 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13067 dirpart=`$as_dirname -- "$mf" ||
13068 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13069 X"$mf" : 'X\(//\)[^/]' \| \
13070 X"$mf" : 'X\(//\)$' \| \
13071 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13072 $as_echo X"$mf" |
13073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13074 s//\1/
13077 /^X\(\/\/\)[^/].*/{
13078 s//\1/
13081 /^X\(\/\/\)$/{
13082 s//\1/
13085 /^X\(\/\).*/{
13086 s//\1/
13089 s/.*/./; q'`
13090 else
13091 continue
13093 # Extract the definition of DEPDIR, am__include, and am__quote
13094 # from the Makefile without running 'make'.
13095 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13096 test -z "$DEPDIR" && continue
13097 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13098 test -z "$am__include" && continue
13099 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13100 # Find all dependency output files, they are included files with
13101 # $(DEPDIR) in their names. We invoke sed twice because it is the
13102 # simplest approach to changing $(DEPDIR) to its actual value in the
13103 # expansion.
13104 for file in `sed -n "
13105 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13106 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13107 # Make sure the directory exists.
13108 test -f "$dirpart/$file" && continue
13109 fdir=`$as_dirname -- "$file" ||
13110 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13111 X"$file" : 'X\(//\)[^/]' \| \
13112 X"$file" : 'X\(//\)$' \| \
13113 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13114 $as_echo X"$file" |
13115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13116 s//\1/
13119 /^X\(\/\/\)[^/].*/{
13120 s//\1/
13123 /^X\(\/\/\)$/{
13124 s//\1/
13127 /^X\(\/\).*/{
13128 s//\1/
13131 s/.*/./; q'`
13132 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13133 # echo "creating $dirpart/$file"
13134 echo '# dummy' > "$dirpart/$file"
13135 done
13136 done
13139 "libtool":C)
13141 # See if we are running on zsh, and set the options which allow our
13142 # commands through without removal of \ escapes.
13143 if test -n "${ZSH_VERSION+set}" ; then
13144 setopt NO_GLOB_SUBST
13147 cfgfile="${ofile}T"
13148 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13149 $RM "$cfgfile"
13151 cat <<_LT_EOF >> "$cfgfile"
13152 #! $SHELL
13154 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13155 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13156 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13157 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13159 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13160 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
13161 # Written by Gordon Matzigkeit, 1996
13163 # This file is part of GNU Libtool.
13165 # GNU Libtool is free software; you can redistribute it and/or
13166 # modify it under the terms of the GNU General Public License as
13167 # published by the Free Software Foundation; either version 2 of
13168 # the License, or (at your option) any later version.
13170 # As a special exception to the GNU General Public License,
13171 # if you distribute this file as part of a program or library that
13172 # is built using GNU Libtool, you may include this file under the
13173 # same distribution terms that you use for the rest of that program.
13175 # GNU Libtool is distributed in the hope that it will be useful,
13176 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13177 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13178 # GNU General Public License for more details.
13180 # You should have received a copy of the GNU General Public License
13181 # along with GNU Libtool; see the file COPYING. If not, a copy
13182 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13183 # obtained by writing to the Free Software Foundation, Inc.,
13184 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13187 # The names of the tagged configurations supported by this script.
13188 available_tags=""
13190 # ### BEGIN LIBTOOL CONFIG
13192 # Which release of libtool.m4 was used?
13193 macro_version=$macro_version
13194 macro_revision=$macro_revision
13196 # Whether or not to build shared libraries.
13197 build_libtool_libs=$enable_shared
13199 # Whether or not to build static libraries.
13200 build_old_libs=$enable_static
13202 # What type of objects to build.
13203 pic_mode=$pic_mode
13205 # Whether or not to optimize for fast installation.
13206 fast_install=$enable_fast_install
13208 # Shell to use when invoking shell scripts.
13209 SHELL=$lt_SHELL
13211 # An echo program that protects backslashes.
13212 ECHO=$lt_ECHO
13214 # The host system.
13215 host_alias=$host_alias
13216 host=$host
13217 host_os=$host_os
13219 # The build system.
13220 build_alias=$build_alias
13221 build=$build
13222 build_os=$build_os
13224 # A sed program that does not truncate output.
13225 SED=$lt_SED
13227 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13228 Xsed="\$SED -e 1s/^X//"
13230 # A grep program that handles long lines.
13231 GREP=$lt_GREP
13233 # An ERE matcher.
13234 EGREP=$lt_EGREP
13236 # A literal string matcher.
13237 FGREP=$lt_FGREP
13239 # A BSD- or MS-compatible name lister.
13240 NM=$lt_NM
13242 # Whether we need soft or hard links.
13243 LN_S=$lt_LN_S
13245 # What is the maximum length of a command?
13246 max_cmd_len=$max_cmd_len
13248 # Object file suffix (normally "o").
13249 objext=$ac_objext
13251 # Executable file suffix (normally "").
13252 exeext=$exeext
13254 # whether the shell understands "unset".
13255 lt_unset=$lt_unset
13257 # turn spaces into newlines.
13258 SP2NL=$lt_lt_SP2NL
13260 # turn newlines into spaces.
13261 NL2SP=$lt_lt_NL2SP
13263 # An object symbol dumper.
13264 OBJDUMP=$lt_OBJDUMP
13266 # Method to check whether dependent libraries are shared objects.
13267 deplibs_check_method=$lt_deplibs_check_method
13269 # Command to use when deplibs_check_method == "file_magic".
13270 file_magic_cmd=$lt_file_magic_cmd
13272 # The archiver.
13273 AR=$lt_AR
13274 AR_FLAGS=$lt_AR_FLAGS
13276 # A symbol stripping program.
13277 STRIP=$lt_STRIP
13279 # Commands used to install an old-style archive.
13280 RANLIB=$lt_RANLIB
13281 old_postinstall_cmds=$lt_old_postinstall_cmds
13282 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13284 # Whether to use a lock for old archive extraction.
13285 lock_old_archive_extraction=$lock_old_archive_extraction
13287 # A C compiler.
13288 LTCC=$lt_CC
13290 # LTCC compiler flags.
13291 LTCFLAGS=$lt_CFLAGS
13293 # Take the output of nm and produce a listing of raw symbols and C names.
13294 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13296 # Transform the output of nm in a proper C declaration.
13297 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13299 # Transform the output of nm in a C name address pair.
13300 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13302 # Transform the output of nm in a C name address pair when lib prefix is needed.
13303 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13305 # The name of the directory that contains temporary libtool files.
13306 objdir=$objdir
13308 # Used to examine libraries when file_magic_cmd begins with "file".
13309 MAGIC_CMD=$MAGIC_CMD
13311 # Must we lock files when doing compilation?
13312 need_locks=$lt_need_locks
13314 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13315 DSYMUTIL=$lt_DSYMUTIL
13317 # Tool to change global to local symbols on Mac OS X.
13318 NMEDIT=$lt_NMEDIT
13320 # Tool to manipulate fat objects and archives on Mac OS X.
13321 LIPO=$lt_LIPO
13323 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13324 OTOOL=$lt_OTOOL
13326 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13327 OTOOL64=$lt_OTOOL64
13329 # Old archive suffix (normally "a").
13330 libext=$libext
13332 # Shared library suffix (normally ".so").
13333 shrext_cmds=$lt_shrext_cmds
13335 # The commands to extract the exported symbol list from a shared archive.
13336 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13338 # Variables whose values should be saved in libtool wrapper scripts and
13339 # restored at link time.
13340 variables_saved_for_relink=$lt_variables_saved_for_relink
13342 # Do we need the "lib" prefix for modules?
13343 need_lib_prefix=$need_lib_prefix
13345 # Do we need a version for libraries?
13346 need_version=$need_version
13348 # Library versioning type.
13349 version_type=$version_type
13351 # Shared library runtime path variable.
13352 runpath_var=$runpath_var
13354 # Shared library path variable.
13355 shlibpath_var=$shlibpath_var
13357 # Is shlibpath searched before the hard-coded library search path?
13358 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13360 # Format of library name prefix.
13361 libname_spec=$lt_libname_spec
13363 # List of archive names. First name is the real one, the rest are links.
13364 # The last name is the one that the linker finds with -lNAME
13365 library_names_spec=$lt_library_names_spec
13367 # The coded name of the library, if different from the real name.
13368 soname_spec=$lt_soname_spec
13370 # Permission mode override for installation of shared libraries.
13371 install_override_mode=$lt_install_override_mode
13373 # Command to use after installation of a shared archive.
13374 postinstall_cmds=$lt_postinstall_cmds
13376 # Command to use after uninstallation of a shared archive.
13377 postuninstall_cmds=$lt_postuninstall_cmds
13379 # Commands used to finish a libtool library installation in a directory.
13380 finish_cmds=$lt_finish_cmds
13382 # As "finish_cmds", except a single script fragment to be evaled but
13383 # not shown.
13384 finish_eval=$lt_finish_eval
13386 # Whether we should hardcode library paths into libraries.
13387 hardcode_into_libs=$hardcode_into_libs
13389 # Compile-time system search path for libraries.
13390 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13392 # Run-time system search path for libraries.
13393 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13395 # Whether dlopen is supported.
13396 dlopen_support=$enable_dlopen
13398 # Whether dlopen of programs is supported.
13399 dlopen_self=$enable_dlopen_self
13401 # Whether dlopen of statically linked programs is supported.
13402 dlopen_self_static=$enable_dlopen_self_static
13404 # Commands to strip libraries.
13405 old_striplib=$lt_old_striplib
13406 striplib=$lt_striplib
13409 # The linker used to build libraries.
13410 LD=$lt_LD
13412 # How to create reloadable object files.
13413 reload_flag=$lt_reload_flag
13414 reload_cmds=$lt_reload_cmds
13416 # Commands used to build an old-style archive.
13417 old_archive_cmds=$lt_old_archive_cmds
13419 # A language specific compiler.
13420 CC=$lt_compiler
13422 # Is the compiler the GNU compiler?
13423 with_gcc=$GCC
13425 # Compiler flag to turn off builtin functions.
13426 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13428 # How to pass a linker flag through the compiler.
13429 wl=$lt_lt_prog_compiler_wl
13431 # Additional compiler flags for building library objects.
13432 pic_flag=$lt_lt_prog_compiler_pic
13434 # Compiler flag to prevent dynamic linking.
13435 link_static_flag=$lt_lt_prog_compiler_static
13437 # Does compiler simultaneously support -c and -o options?
13438 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13440 # Whether or not to add -lc for building shared libraries.
13441 build_libtool_need_lc=$archive_cmds_need_lc
13443 # Whether or not to disallow shared libs when runtime libs are static.
13444 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13446 # Compiler flag to allow reflexive dlopens.
13447 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13449 # Compiler flag to generate shared objects directly from archives.
13450 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13452 # Whether the compiler copes with passing no objects directly.
13453 compiler_needs_object=$lt_compiler_needs_object
13455 # Create an old-style archive from a shared archive.
13456 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13458 # Create a temporary old-style archive to link instead of a shared archive.
13459 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13461 # Commands used to build a shared archive.
13462 archive_cmds=$lt_archive_cmds
13463 archive_expsym_cmds=$lt_archive_expsym_cmds
13465 # Commands used to build a loadable module if different from building
13466 # a shared archive.
13467 module_cmds=$lt_module_cmds
13468 module_expsym_cmds=$lt_module_expsym_cmds
13470 # Whether we are building with GNU ld or not.
13471 with_gnu_ld=$lt_with_gnu_ld
13473 # Flag that allows shared libraries with undefined symbols to be built.
13474 allow_undefined_flag=$lt_allow_undefined_flag
13476 # Flag that enforces no undefined symbols.
13477 no_undefined_flag=$lt_no_undefined_flag
13479 # Flag to hardcode \$libdir into a binary during linking.
13480 # This must work even if \$libdir does not exist
13481 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13483 # If ld is used when linking, flag to hardcode \$libdir into a binary
13484 # during linking. This must work even if \$libdir does not exist.
13485 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13487 # Whether we need a single "-rpath" flag with a separated argument.
13488 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13490 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13491 # DIR into the resulting binary.
13492 hardcode_direct=$hardcode_direct
13494 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13495 # DIR into the resulting binary and the resulting library dependency is
13496 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13497 # library is relocated.
13498 hardcode_direct_absolute=$hardcode_direct_absolute
13500 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13501 # into the resulting binary.
13502 hardcode_minus_L=$hardcode_minus_L
13504 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13505 # into the resulting binary.
13506 hardcode_shlibpath_var=$hardcode_shlibpath_var
13508 # Set to "yes" if building a shared library automatically hardcodes DIR
13509 # into the library and all subsequent libraries and executables linked
13510 # against it.
13511 hardcode_automatic=$hardcode_automatic
13513 # Set to yes if linker adds runtime paths of dependent libraries
13514 # to runtime path list.
13515 inherit_rpath=$inherit_rpath
13517 # Whether libtool must link a program against all its dependency libraries.
13518 link_all_deplibs=$link_all_deplibs
13520 # Fix the shell variable \$srcfile for the compiler.
13521 fix_srcfile_path=$lt_fix_srcfile_path
13523 # Set to "yes" if exported symbols are required.
13524 always_export_symbols=$always_export_symbols
13526 # The commands to list exported symbols.
13527 export_symbols_cmds=$lt_export_symbols_cmds
13529 # Symbols that should not be listed in the preloaded symbols.
13530 exclude_expsyms=$lt_exclude_expsyms
13532 # Symbols that must always be exported.
13533 include_expsyms=$lt_include_expsyms
13535 # Commands necessary for linking programs (against libraries) with templates.
13536 prelink_cmds=$lt_prelink_cmds
13538 # Specify filename containing input files.
13539 file_list_spec=$lt_file_list_spec
13541 # How to hardcode a shared library path into an executable.
13542 hardcode_action=$hardcode_action
13544 # ### END LIBTOOL CONFIG
13546 _LT_EOF
13548 case $host_os in
13549 aix3*)
13550 cat <<\_LT_EOF >> "$cfgfile"
13551 # AIX sometimes has problems with the GCC collect2 program. For some
13552 # reason, if we set the COLLECT_NAMES environment variable, the problems
13553 # vanish in a puff of smoke.
13554 if test "X${COLLECT_NAMES+set}" != Xset; then
13555 COLLECT_NAMES=
13556 export COLLECT_NAMES
13558 _LT_EOF
13560 esac
13563 ltmain="$ac_aux_dir/ltmain.sh"
13566 # We use sed instead of cat because bash on DJGPP gets confused if
13567 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13568 # text mode, it properly converts lines to CR/LF. This bash problem
13569 # is reportedly fixed, but why not run on old versions too?
13570 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13571 || (rm -f "$cfgfile"; exit 1)
13573 case $xsi_shell in
13574 yes)
13575 cat << \_LT_EOF >> "$cfgfile"
13577 # func_dirname file append nondir_replacement
13578 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13579 # otherwise set result to NONDIR_REPLACEMENT.
13580 func_dirname ()
13582 case ${1} in
13583 */*) func_dirname_result="${1%/*}${2}" ;;
13584 * ) func_dirname_result="${3}" ;;
13585 esac
13588 # func_basename file
13589 func_basename ()
13591 func_basename_result="${1##*/}"
13594 # func_dirname_and_basename file append nondir_replacement
13595 # perform func_basename and func_dirname in a single function
13596 # call:
13597 # dirname: Compute the dirname of FILE. If nonempty,
13598 # add APPEND to the result, otherwise set result
13599 # to NONDIR_REPLACEMENT.
13600 # value returned in "$func_dirname_result"
13601 # basename: Compute filename of FILE.
13602 # value retuned in "$func_basename_result"
13603 # Implementation must be kept synchronized with func_dirname
13604 # and func_basename. For efficiency, we do not delegate to
13605 # those functions but instead duplicate the functionality here.
13606 func_dirname_and_basename ()
13608 case ${1} in
13609 */*) func_dirname_result="${1%/*}${2}" ;;
13610 * ) func_dirname_result="${3}" ;;
13611 esac
13612 func_basename_result="${1##*/}"
13615 # func_stripname prefix suffix name
13616 # strip PREFIX and SUFFIX off of NAME.
13617 # PREFIX and SUFFIX must not contain globbing or regex special
13618 # characters, hashes, percent signs, but SUFFIX may contain a leading
13619 # dot (in which case that matches only a dot).
13620 func_stripname ()
13622 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13623 # positional parameters, so assign one to ordinary parameter first.
13624 func_stripname_result=${3}
13625 func_stripname_result=${func_stripname_result#"${1}"}
13626 func_stripname_result=${func_stripname_result%"${2}"}
13629 # func_opt_split
13630 func_opt_split ()
13632 func_opt_split_opt=${1%%=*}
13633 func_opt_split_arg=${1#*=}
13636 # func_lo2o object
13637 func_lo2o ()
13639 case ${1} in
13640 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13641 *) func_lo2o_result=${1} ;;
13642 esac
13645 # func_xform libobj-or-source
13646 func_xform ()
13648 func_xform_result=${1%.*}.lo
13651 # func_arith arithmetic-term...
13652 func_arith ()
13654 func_arith_result=$(( $* ))
13657 # func_len string
13658 # STRING may not start with a hyphen.
13659 func_len ()
13661 func_len_result=${#1}
13664 _LT_EOF
13666 *) # Bourne compatible functions.
13667 cat << \_LT_EOF >> "$cfgfile"
13669 # func_dirname file append nondir_replacement
13670 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13671 # otherwise set result to NONDIR_REPLACEMENT.
13672 func_dirname ()
13674 # Extract subdirectory from the argument.
13675 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13676 if test "X$func_dirname_result" = "X${1}"; then
13677 func_dirname_result="${3}"
13678 else
13679 func_dirname_result="$func_dirname_result${2}"
13683 # func_basename file
13684 func_basename ()
13686 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13690 # func_stripname prefix suffix name
13691 # strip PREFIX and SUFFIX off of NAME.
13692 # PREFIX and SUFFIX must not contain globbing or regex special
13693 # characters, hashes, percent signs, but SUFFIX may contain a leading
13694 # dot (in which case that matches only a dot).
13695 # func_strip_suffix prefix name
13696 func_stripname ()
13698 case ${2} in
13699 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13700 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13701 esac
13704 # sed scripts:
13705 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13706 my_sed_long_arg='1s/^-[^=]*=//'
13708 # func_opt_split
13709 func_opt_split ()
13711 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13712 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13715 # func_lo2o object
13716 func_lo2o ()
13718 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13721 # func_xform libobj-or-source
13722 func_xform ()
13724 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13727 # func_arith arithmetic-term...
13728 func_arith ()
13730 func_arith_result=`expr "$@"`
13733 # func_len string
13734 # STRING may not start with a hyphen.
13735 func_len ()
13737 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13740 _LT_EOF
13741 esac
13743 case $lt_shell_append in
13744 yes)
13745 cat << \_LT_EOF >> "$cfgfile"
13747 # func_append var value
13748 # Append VALUE to the end of shell variable VAR.
13749 func_append ()
13751 eval "$1+=\$2"
13753 _LT_EOF
13756 cat << \_LT_EOF >> "$cfgfile"
13758 # func_append var value
13759 # Append VALUE to the end of shell variable VAR.
13760 func_append ()
13762 eval "$1=\$$1\$2"
13765 _LT_EOF
13767 esac
13770 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13771 || (rm -f "$cfgfile"; exit 1)
13773 mv -f "$cfgfile" "$ofile" ||
13774 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13775 chmod +x "$ofile"
13779 esac
13780 done # for ac_tag
13783 as_fn_exit 0
13784 _ACEOF
13785 ac_clean_files=$ac_clean_files_save
13787 test $ac_write_fail = 0 ||
13788 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13791 # configure is writing to config.log, and then calls config.status.
13792 # config.status does its own redirection, appending to config.log.
13793 # Unfortunately, on DOS this fails, as config.log is still kept open
13794 # by configure, so config.status won't be able to write to it; its
13795 # output is simply discarded. So we exec the FD to /dev/null,
13796 # effectively closing config.log, so it can be properly (re)opened and
13797 # appended to by config.status. When coming back to configure, we
13798 # need to make the FD available again.
13799 if test "$no_create" != yes; then
13800 ac_cs_success=:
13801 ac_config_status_args=
13802 test "$silent" = yes &&
13803 ac_config_status_args="$ac_config_status_args --quiet"
13804 exec 5>/dev/null
13805 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13806 exec 5>>config.log
13807 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13808 # would make configure fail if this is the last instruction.
13809 $ac_cs_success || as_fn_exit 1
13811 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13813 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}