hppa: Always enable PIE on 64-bit target
[official-gcc.git] / libobjc / configure
blob68172549137a17b593f3486a444c92414fcd252f
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for package-unused version-unused.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
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='package-unused'
589 PACKAGE_TARNAME='libobjc'
590 PACKAGE_VERSION='version-unused'
591 PACKAGE_STRING='package-unused version-unused'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 ac_unique_file="objc/objc.h"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 ac_subst_vars='LTLIBOBJS
633 LIBOBJS
634 get_gcc_base_ver
635 OBJC_BOEHM_GC_LIBS
636 OBJC_BOEHM_GC_INCLUDES
637 OBJC_BOEHM_GC
638 OBJC_GCFLAGS
639 extra_ldflags_libobjc
640 ENABLE_DARWIN_AT_RPATH_FALSE
641 ENABLE_DARWIN_AT_RPATH_TRUE
642 SET_MAKE
644 OTOOL64
645 OTOOL
646 LIPO
647 NMEDIT
648 DSYMUTIL
650 STRIP
651 LN_S
653 ac_ct_DUMPBIN
654 DUMPBIN
656 FGREP
657 EGREP
658 GREP
660 LIBTOOL
661 OBJDUMP
662 DLLTOOL
663 MAINT
664 MAINTAINER_MODE_FALSE
665 MAINTAINER_MODE_TRUE
666 INSTALL_DATA
667 INSTALL_SCRIPT
668 INSTALL_PROGRAM
669 RANLIB
672 XCFLAGS
673 lt_host_flags
674 OBJEXT
675 EXEEXT
676 ac_ct_CC
677 CPPFLAGS
678 LDFLAGS
679 CFLAGS
681 libsuffix
682 includedirname
683 toolexeclibdir
684 toolexecdir
685 glibcpp_srcdir
686 target_noncanonical
687 target_os
688 target_vendor
689 target_cpu
690 target
691 host_os
692 host_vendor
693 host_cpu
694 host
695 multi_basedir
696 VERSION
697 target_subdir
698 host_subdir
699 build_subdir
700 build_libsubdir
701 build_os
702 build_vendor
703 build_cpu
704 build
705 target_alias
706 host_alias
707 build_alias
708 LIBS
709 ECHO_T
710 ECHO_N
711 ECHO_C
712 DEFS
713 mandir
714 localedir
715 libdir
716 psdir
717 pdfdir
718 dvidir
719 htmldir
720 infodir
721 docdir
722 oldincludedir
723 includedir
724 localstatedir
725 sharedstatedir
726 sysconfdir
727 datadir
728 datarootdir
729 libexecdir
730 sbindir
731 bindir
732 program_transform_name
733 prefix
734 exec_prefix
735 PACKAGE_URL
736 PACKAGE_BUGREPORT
737 PACKAGE_STRING
738 PACKAGE_VERSION
739 PACKAGE_TARNAME
740 PACKAGE_NAME
741 PATH_SEPARATOR
742 SHELL'
743 ac_subst_files=''
744 ac_user_opts='
745 enable_option_checking
746 with_build_libsubdir
747 with_target_subdir
748 with_cross_host
749 enable_version_specific_runtime_libs
750 enable_multilib
751 with_toolexeclibdir
752 enable_cet
753 enable_maintainer_mode
754 enable_shared
755 enable_static
756 with_pic
757 enable_fast_install
758 with_gnu_ld
759 enable_libtool_lock
760 enable_darwin_at_rpath
761 enable_tls
762 enable_objc_gc
763 with_target_bdw_gc
764 with_target_bdw_gc_include
765 with_target_bdw_gc_lib
766 with_gcc_major_version_only
768 ac_precious_vars='build_alias
769 host_alias
770 target_alias
772 CPPFLAGS'
775 # Initialize some variables set by options.
776 ac_init_help=
777 ac_init_version=false
778 ac_unrecognized_opts=
779 ac_unrecognized_sep=
780 # The variables have the same names as the options, with
781 # dashes changed to underlines.
782 cache_file=/dev/null
783 exec_prefix=NONE
784 no_create=
785 no_recursion=
786 prefix=NONE
787 program_prefix=NONE
788 program_suffix=NONE
789 program_transform_name=s,x,x,
790 silent=
791 site=
792 srcdir=
793 verbose=
794 x_includes=NONE
795 x_libraries=NONE
797 # Installation directory options.
798 # These are left unexpanded so users can "make install exec_prefix=/foo"
799 # and all the variables that are supposed to be based on exec_prefix
800 # by default will actually change.
801 # Use braces instead of parens because sh, perl, etc. also accept them.
802 # (The list follows the same order as the GNU Coding Standards.)
803 bindir='${exec_prefix}/bin'
804 sbindir='${exec_prefix}/sbin'
805 libexecdir='${exec_prefix}/libexec'
806 datarootdir='${prefix}/share'
807 datadir='${datarootdir}'
808 sysconfdir='${prefix}/etc'
809 sharedstatedir='${prefix}/com'
810 localstatedir='${prefix}/var'
811 includedir='${prefix}/include'
812 oldincludedir='/usr/include'
813 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
814 infodir='${datarootdir}/info'
815 htmldir='${docdir}'
816 dvidir='${docdir}'
817 pdfdir='${docdir}'
818 psdir='${docdir}'
819 libdir='${exec_prefix}/lib'
820 localedir='${datarootdir}/locale'
821 mandir='${datarootdir}/man'
823 ac_prev=
824 ac_dashdash=
825 for ac_option
827 # If the previous option needs an argument, assign it.
828 if test -n "$ac_prev"; then
829 eval $ac_prev=\$ac_option
830 ac_prev=
831 continue
834 case $ac_option in
835 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
836 *=) ac_optarg= ;;
837 *) ac_optarg=yes ;;
838 esac
840 # Accept the important Cygnus configure options, so we can diagnose typos.
842 case $ac_dashdash$ac_option in
844 ac_dashdash=yes ;;
846 -bindir | --bindir | --bindi | --bind | --bin | --bi)
847 ac_prev=bindir ;;
848 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
849 bindir=$ac_optarg ;;
851 -build | --build | --buil | --bui | --bu)
852 ac_prev=build_alias ;;
853 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
854 build_alias=$ac_optarg ;;
856 -cache-file | --cache-file | --cache-fil | --cache-fi \
857 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
858 ac_prev=cache_file ;;
859 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
860 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
861 cache_file=$ac_optarg ;;
863 --config-cache | -C)
864 cache_file=config.cache ;;
866 -datadir | --datadir | --datadi | --datad)
867 ac_prev=datadir ;;
868 -datadir=* | --datadir=* | --datadi=* | --datad=*)
869 datadir=$ac_optarg ;;
871 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
872 | --dataroo | --dataro | --datar)
873 ac_prev=datarootdir ;;
874 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
875 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
876 datarootdir=$ac_optarg ;;
878 -disable-* | --disable-*)
879 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
882 as_fn_error $? "invalid feature name: $ac_useropt"
883 ac_useropt_orig=$ac_useropt
884 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
885 case $ac_user_opts in
887 "enable_$ac_useropt"
888 "*) ;;
889 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
890 ac_unrecognized_sep=', ';;
891 esac
892 eval enable_$ac_useropt=no ;;
894 -docdir | --docdir | --docdi | --doc | --do)
895 ac_prev=docdir ;;
896 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
897 docdir=$ac_optarg ;;
899 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
900 ac_prev=dvidir ;;
901 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
902 dvidir=$ac_optarg ;;
904 -enable-* | --enable-*)
905 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908 as_fn_error $? "invalid feature name: $ac_useropt"
909 ac_useropt_orig=$ac_useropt
910 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
911 case $ac_user_opts in
913 "enable_$ac_useropt"
914 "*) ;;
915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
916 ac_unrecognized_sep=', ';;
917 esac
918 eval enable_$ac_useropt=\$ac_optarg ;;
920 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
921 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
922 | --exec | --exe | --ex)
923 ac_prev=exec_prefix ;;
924 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
925 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
926 | --exec=* | --exe=* | --ex=*)
927 exec_prefix=$ac_optarg ;;
929 -gas | --gas | --ga | --g)
930 # Obsolete; use --with-gas.
931 with_gas=yes ;;
933 -help | --help | --hel | --he | -h)
934 ac_init_help=long ;;
935 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
936 ac_init_help=recursive ;;
937 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
938 ac_init_help=short ;;
940 -host | --host | --hos | --ho)
941 ac_prev=host_alias ;;
942 -host=* | --host=* | --hos=* | --ho=*)
943 host_alias=$ac_optarg ;;
945 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
946 ac_prev=htmldir ;;
947 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
948 | --ht=*)
949 htmldir=$ac_optarg ;;
951 -includedir | --includedir | --includedi | --included | --include \
952 | --includ | --inclu | --incl | --inc)
953 ac_prev=includedir ;;
954 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
955 | --includ=* | --inclu=* | --incl=* | --inc=*)
956 includedir=$ac_optarg ;;
958 -infodir | --infodir | --infodi | --infod | --info | --inf)
959 ac_prev=infodir ;;
960 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
961 infodir=$ac_optarg ;;
963 -libdir | --libdir | --libdi | --libd)
964 ac_prev=libdir ;;
965 -libdir=* | --libdir=* | --libdi=* | --libd=*)
966 libdir=$ac_optarg ;;
968 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
969 | --libexe | --libex | --libe)
970 ac_prev=libexecdir ;;
971 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
972 | --libexe=* | --libex=* | --libe=*)
973 libexecdir=$ac_optarg ;;
975 -localedir | --localedir | --localedi | --localed | --locale)
976 ac_prev=localedir ;;
977 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
978 localedir=$ac_optarg ;;
980 -localstatedir | --localstatedir | --localstatedi | --localstated \
981 | --localstate | --localstat | --localsta | --localst | --locals)
982 ac_prev=localstatedir ;;
983 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
984 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
985 localstatedir=$ac_optarg ;;
987 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
988 ac_prev=mandir ;;
989 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
990 mandir=$ac_optarg ;;
992 -nfp | --nfp | --nf)
993 # Obsolete; use --without-fp.
994 with_fp=no ;;
996 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
997 | --no-cr | --no-c | -n)
998 no_create=yes ;;
1000 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1001 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1002 no_recursion=yes ;;
1004 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1005 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1006 | --oldin | --oldi | --old | --ol | --o)
1007 ac_prev=oldincludedir ;;
1008 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1009 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1010 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1011 oldincludedir=$ac_optarg ;;
1013 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1014 ac_prev=prefix ;;
1015 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1016 prefix=$ac_optarg ;;
1018 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1019 | --program-pre | --program-pr | --program-p)
1020 ac_prev=program_prefix ;;
1021 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1022 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1023 program_prefix=$ac_optarg ;;
1025 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1026 | --program-suf | --program-su | --program-s)
1027 ac_prev=program_suffix ;;
1028 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1029 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1030 program_suffix=$ac_optarg ;;
1032 -program-transform-name | --program-transform-name \
1033 | --program-transform-nam | --program-transform-na \
1034 | --program-transform-n | --program-transform- \
1035 | --program-transform | --program-transfor \
1036 | --program-transfo | --program-transf \
1037 | --program-trans | --program-tran \
1038 | --progr-tra | --program-tr | --program-t)
1039 ac_prev=program_transform_name ;;
1040 -program-transform-name=* | --program-transform-name=* \
1041 | --program-transform-nam=* | --program-transform-na=* \
1042 | --program-transform-n=* | --program-transform-=* \
1043 | --program-transform=* | --program-transfor=* \
1044 | --program-transfo=* | --program-transf=* \
1045 | --program-trans=* | --program-tran=* \
1046 | --progr-tra=* | --program-tr=* | --program-t=*)
1047 program_transform_name=$ac_optarg ;;
1049 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1050 ac_prev=pdfdir ;;
1051 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1052 pdfdir=$ac_optarg ;;
1054 -psdir | --psdir | --psdi | --psd | --ps)
1055 ac_prev=psdir ;;
1056 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1057 psdir=$ac_optarg ;;
1059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060 | -silent | --silent | --silen | --sile | --sil)
1061 silent=yes ;;
1063 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1064 ac_prev=sbindir ;;
1065 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1066 | --sbi=* | --sb=*)
1067 sbindir=$ac_optarg ;;
1069 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1070 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1071 | --sharedst | --shareds | --shared | --share | --shar \
1072 | --sha | --sh)
1073 ac_prev=sharedstatedir ;;
1074 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1075 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1076 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1077 | --sha=* | --sh=*)
1078 sharedstatedir=$ac_optarg ;;
1080 -site | --site | --sit)
1081 ac_prev=site ;;
1082 -site=* | --site=* | --sit=*)
1083 site=$ac_optarg ;;
1085 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1086 ac_prev=srcdir ;;
1087 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1088 srcdir=$ac_optarg ;;
1090 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1091 | --syscon | --sysco | --sysc | --sys | --sy)
1092 ac_prev=sysconfdir ;;
1093 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1094 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1095 sysconfdir=$ac_optarg ;;
1097 -target | --target | --targe | --targ | --tar | --ta | --t)
1098 ac_prev=target_alias ;;
1099 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1100 target_alias=$ac_optarg ;;
1102 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1103 verbose=yes ;;
1105 -version | --version | --versio | --versi | --vers | -V)
1106 ac_init_version=: ;;
1108 -with-* | --with-*)
1109 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112 as_fn_error $? "invalid package name: $ac_useropt"
1113 ac_useropt_orig=$ac_useropt
1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115 case $ac_user_opts in
1117 "with_$ac_useropt"
1118 "*) ;;
1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1120 ac_unrecognized_sep=', ';;
1121 esac
1122 eval with_$ac_useropt=\$ac_optarg ;;
1124 -without-* | --without-*)
1125 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1126 # Reject names that are not valid shell variable names.
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128 as_fn_error $? "invalid package name: $ac_useropt"
1129 ac_useropt_orig=$ac_useropt
1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1133 "with_$ac_useropt"
1134 "*) ;;
1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1136 ac_unrecognized_sep=', ';;
1137 esac
1138 eval with_$ac_useropt=no ;;
1140 --x)
1141 # Obsolete; use --with-x.
1142 with_x=yes ;;
1144 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1145 | --x-incl | --x-inc | --x-in | --x-i)
1146 ac_prev=x_includes ;;
1147 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1148 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1149 x_includes=$ac_optarg ;;
1151 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1152 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1153 ac_prev=x_libraries ;;
1154 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1155 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1156 x_libraries=$ac_optarg ;;
1158 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1159 Try \`$0 --help' for more information"
1162 *=*)
1163 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1164 # Reject names that are not valid shell variable names.
1165 case $ac_envvar in #(
1166 '' | [0-9]* | *[!_$as_cr_alnum]* )
1167 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1168 esac
1169 eval $ac_envvar=\$ac_optarg
1170 export $ac_envvar ;;
1173 # FIXME: should be removed in autoconf 3.0.
1174 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1175 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1176 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1177 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1180 esac
1181 done
1183 if test -n "$ac_prev"; then
1184 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1185 as_fn_error $? "missing argument to $ac_option"
1188 if test -n "$ac_unrecognized_opts"; then
1189 case $enable_option_checking in
1190 no) ;;
1191 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1192 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1193 esac
1196 # Check all directory arguments for consistency.
1197 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1198 datadir sysconfdir sharedstatedir localstatedir includedir \
1199 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1200 libdir localedir mandir
1202 eval ac_val=\$$ac_var
1203 # Remove trailing slashes.
1204 case $ac_val in
1205 */ )
1206 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1207 eval $ac_var=\$ac_val;;
1208 esac
1209 # Be sure to have absolute directory names.
1210 case $ac_val in
1211 [\\/$]* | ?:[\\/]* ) continue;;
1212 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1213 esac
1214 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1215 done
1217 # There might be people who depend on the old broken behavior: `$host'
1218 # used to hold the argument of --host etc.
1219 # FIXME: To remove some day.
1220 build=$build_alias
1221 host=$host_alias
1222 target=$target_alias
1224 # FIXME: To remove some day.
1225 if test "x$host_alias" != x; then
1226 if test "x$build_alias" = x; then
1227 cross_compiling=maybe
1228 elif test "x$build_alias" != "x$host_alias"; then
1229 cross_compiling=yes
1233 ac_tool_prefix=
1234 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236 test "$silent" = yes && exec 6>/dev/null
1239 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240 ac_ls_di=`ls -di .` &&
1241 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1242 as_fn_error $? "working directory cannot be determined"
1243 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1244 as_fn_error $? "pwd does not report name of working directory"
1247 # Find the source files, if location was not specified.
1248 if test -z "$srcdir"; then
1249 ac_srcdir_defaulted=yes
1250 # Try the directory containing this script, then the parent directory.
1251 ac_confdir=`$as_dirname -- "$as_myself" ||
1252 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1253 X"$as_myself" : 'X\(//\)[^/]' \| \
1254 X"$as_myself" : 'X\(//\)$' \| \
1255 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1256 $as_echo X"$as_myself" |
1257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1258 s//\1/
1261 /^X\(\/\/\)[^/].*/{
1262 s//\1/
1265 /^X\(\/\/\)$/{
1266 s//\1/
1269 /^X\(\/\).*/{
1270 s//\1/
1273 s/.*/./; q'`
1274 srcdir=$ac_confdir
1275 if test ! -r "$srcdir/$ac_unique_file"; then
1276 srcdir=..
1278 else
1279 ac_srcdir_defaulted=no
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1282 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1283 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1285 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1286 ac_abs_confdir=`(
1287 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1288 pwd)`
1289 # When building in place, set srcdir=.
1290 if test "$ac_abs_confdir" = "$ac_pwd"; then
1291 srcdir=.
1293 # Remove unnecessary trailing slashes from srcdir.
1294 # Double slashes in file names in object file debugging info
1295 # mess up M-x gdb in Emacs.
1296 case $srcdir in
1297 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1298 esac
1299 for ac_var in $ac_precious_vars; do
1300 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_env_${ac_var}_value=\$${ac_var}
1302 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1303 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1304 done
1307 # Report the --help message.
1309 if test "$ac_init_help" = "long"; then
1310 # Omit some internal or obsolete options to make the list less imposing.
1311 # This message is too long to be a string in the A/UX 3.1 sh.
1312 cat <<_ACEOF
1313 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1315 Usage: $0 [OPTION]... [VAR=VALUE]...
1317 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1318 VAR=VALUE. See below for descriptions of some of the useful variables.
1320 Defaults for the options are specified in brackets.
1322 Configuration:
1323 -h, --help display this help and exit
1324 --help=short display options specific to this package
1325 --help=recursive display the short help of all the included packages
1326 -V, --version display version information and exit
1327 -q, --quiet, --silent do not print \`checking ...' messages
1328 --cache-file=FILE cache test results in FILE [disabled]
1329 -C, --config-cache alias for \`--cache-file=config.cache'
1330 -n, --no-create do not create output files
1331 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1333 Installation directories:
1334 --prefix=PREFIX install architecture-independent files in PREFIX
1335 [$ac_default_prefix]
1336 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1337 [PREFIX]
1339 By default, \`make install' will install all the files in
1340 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1341 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1342 for instance \`--prefix=\$HOME'.
1344 For better control, use the options below.
1346 Fine tuning of the installation directories:
1347 --bindir=DIR user executables [EPREFIX/bin]
1348 --sbindir=DIR system admin executables [EPREFIX/sbin]
1349 --libexecdir=DIR program executables [EPREFIX/libexec]
1350 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1351 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1352 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1353 --libdir=DIR object code libraries [EPREFIX/lib]
1354 --includedir=DIR C header files [PREFIX/include]
1355 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1356 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1357 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1358 --infodir=DIR info documentation [DATAROOTDIR/info]
1359 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1360 --mandir=DIR man documentation [DATAROOTDIR/man]
1361 --docdir=DIR documentation root [DATAROOTDIR/doc/libobjc]
1362 --htmldir=DIR html documentation [DOCDIR]
1363 --dvidir=DIR dvi documentation [DOCDIR]
1364 --pdfdir=DIR pdf documentation [DOCDIR]
1365 --psdir=DIR ps documentation [DOCDIR]
1366 _ACEOF
1368 cat <<\_ACEOF
1370 System types:
1371 --build=BUILD configure for building on BUILD [guessed]
1372 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1373 --target=TARGET configure for building compilers for TARGET [HOST]
1374 _ACEOF
1377 if test -n "$ac_init_help"; then
1378 case $ac_init_help in
1379 short | recursive ) echo "Configuration of package-unused version-unused:";;
1380 esac
1381 cat <<\_ACEOF
1383 Optional Features:
1384 --disable-option-checking ignore unrecognized --enable/--with options
1385 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1386 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1387 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1388 --enable-multilib build many library versions (default)
1389 --enable-cet enable Intel CET in target libraries [default=auto]
1390 --enable-maintainer-mode
1391 enable make rules and dependencies not useful (and
1392 sometimes confusing) to the casual installer
1393 --enable-shared[=PKGS] build shared libraries [default=yes]
1394 --enable-static[=PKGS] build static libraries [default=yes]
1395 --enable-fast-install[=PKGS]
1396 optimize for fast installation [default=yes]
1397 --disable-libtool-lock avoid locking (might break parallel builds)
1398 --enable-darwin-at-rpath
1399 install libraries with @rpath/library-name, requires
1400 rpaths to be added to executables
1401 --enable-tls Use thread-local storage [default=yes]
1402 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1403 Objective-C runtime
1405 Optional Packages:
1406 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1407 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1408 --with-build-libsubdir=DIR Directory where to find libraries for build system
1409 --with-target-subdir=SUBDIR
1410 configuring in a subdirectory
1411 --with-cross-host=HOST configuring with a cross compiler
1412 --with-toolexeclibdir=DIR
1413 install libraries built with a cross compiler within
1415 --with-pic try to use only PIC/non-PIC objects [default=use
1416 both]
1417 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1418 --with-target-bdw-gc=PATHLIST
1419 specify prefix directory for installed bdw-gc
1420 package. Equivalent to
1421 --with-target-bdw-gc-include=PATH/include plus
1422 --with-target-bdw-gc-lib=PATH/lib
1423 --with-target-bdw-gc-include=PATHLIST
1424 specify directories for installed bdw-gc include
1425 files
1426 --with-target-bdw-gc-lib=PATHLIST
1427 specify directories for installed bdw-gc library
1428 --with-gcc-major-version-only
1429 use only GCC major number in filesystem paths
1431 Some influential environment variables:
1432 CC C compiler command
1433 CFLAGS C compiler flags
1434 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1435 nonstandard directory <lib dir>
1436 LIBS libraries to pass to the linker, e.g. -l<library>
1437 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1438 you have headers in a nonstandard directory <include dir>
1439 CPP C preprocessor
1441 Use these variables to override the choices made by `configure' or to help
1442 it to find libraries and programs with nonstandard names/locations.
1444 Report bugs to the package provider.
1445 _ACEOF
1446 ac_status=$?
1449 if test "$ac_init_help" = "recursive"; then
1450 # If there are subdirs, report their specific --help.
1451 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1452 test -d "$ac_dir" ||
1453 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1454 continue
1455 ac_builddir=.
1457 case "$ac_dir" in
1458 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1461 # A ".." for each directory in $ac_dir_suffix.
1462 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1463 case $ac_top_builddir_sub in
1464 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1466 esac ;;
1467 esac
1468 ac_abs_top_builddir=$ac_pwd
1469 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1470 # for backward compatibility:
1471 ac_top_builddir=$ac_top_build_prefix
1473 case $srcdir in
1474 .) # We are building in place.
1475 ac_srcdir=.
1476 ac_top_srcdir=$ac_top_builddir_sub
1477 ac_abs_top_srcdir=$ac_pwd ;;
1478 [\\/]* | ?:[\\/]* ) # Absolute name.
1479 ac_srcdir=$srcdir$ac_dir_suffix;
1480 ac_top_srcdir=$srcdir
1481 ac_abs_top_srcdir=$srcdir ;;
1482 *) # Relative name.
1483 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1484 ac_top_srcdir=$ac_top_build_prefix$srcdir
1485 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1486 esac
1487 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1489 cd "$ac_dir" || { ac_status=$?; continue; }
1490 # Check for guested configure.
1491 if test -f "$ac_srcdir/configure.gnu"; then
1492 echo &&
1493 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1494 elif test -f "$ac_srcdir/configure"; then
1495 echo &&
1496 $SHELL "$ac_srcdir/configure" --help=recursive
1497 else
1498 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1499 fi || ac_status=$?
1500 cd "$ac_pwd" || { ac_status=$?; break; }
1501 done
1504 test -n "$ac_init_help" && exit $ac_status
1505 if $ac_init_version; then
1506 cat <<\_ACEOF
1507 package-unused configure version-unused
1508 generated by GNU Autoconf 2.69
1510 Copyright (C) 2012 Free Software Foundation, Inc.
1511 This configure script is free software; the Free Software Foundation
1512 gives unlimited permission to copy, distribute and modify it.
1513 _ACEOF
1514 exit
1517 ## ------------------------ ##
1518 ## Autoconf initialization. ##
1519 ## ------------------------ ##
1521 # ac_fn_c_try_compile LINENO
1522 # --------------------------
1523 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1524 ac_fn_c_try_compile ()
1526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527 rm -f conftest.$ac_objext
1528 if { { ac_try="$ac_compile"
1529 case "(($ac_try" in
1530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1531 *) ac_try_echo=$ac_try;;
1532 esac
1533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1534 $as_echo "$ac_try_echo"; } >&5
1535 (eval "$ac_compile") 2>conftest.err
1536 ac_status=$?
1537 if test -s conftest.err; then
1538 grep -v '^ *+' conftest.err >conftest.er1
1539 cat conftest.er1 >&5
1540 mv -f conftest.er1 conftest.err
1542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1543 test $ac_status = 0; } && {
1544 test -z "$ac_c_werror_flag" ||
1545 test ! -s conftest.err
1546 } && test -s conftest.$ac_objext; then :
1547 ac_retval=0
1548 else
1549 $as_echo "$as_me: failed program was:" >&5
1550 sed 's/^/| /' conftest.$ac_ext >&5
1552 ac_retval=1
1554 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1555 as_fn_set_status $ac_retval
1557 } # ac_fn_c_try_compile
1559 # ac_fn_c_try_link LINENO
1560 # -----------------------
1561 # Try to link conftest.$ac_ext, and return whether this succeeded.
1562 ac_fn_c_try_link ()
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 rm -f conftest.$ac_objext conftest$ac_exeext
1566 if { { ac_try="$ac_link"
1567 case "(($ac_try" in
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1570 esac
1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 $as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_link") 2>conftest.err
1574 ac_status=$?
1575 if test -s conftest.err; then
1576 grep -v '^ *+' conftest.err >conftest.er1
1577 cat conftest.er1 >&5
1578 mv -f conftest.er1 conftest.err
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } && {
1582 test -z "$ac_c_werror_flag" ||
1583 test ! -s conftest.err
1584 } && test -s conftest$ac_exeext && {
1585 test "$cross_compiling" = yes ||
1586 test -x conftest$ac_exeext
1587 }; then :
1588 ac_retval=0
1589 else
1590 $as_echo "$as_me: failed program was:" >&5
1591 sed 's/^/| /' conftest.$ac_ext >&5
1593 ac_retval=1
1595 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1596 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1597 # interfere with the next link command; also delete a directory that is
1598 # left behind by Apple's compiler. We do this before executing the actions.
1599 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601 as_fn_set_status $ac_retval
1603 } # ac_fn_c_try_link
1605 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1606 # -------------------------------------------------------
1607 # Tests whether HEADER exists and can be compiled using the include files in
1608 # INCLUDES, setting the cache variable VAR accordingly.
1609 ac_fn_c_check_header_compile ()
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1613 $as_echo_n "checking for $2... " >&6; }
1614 if eval \${$3+:} false; then :
1615 $as_echo_n "(cached) " >&6
1616 else
1617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1618 /* end confdefs.h. */
1620 #include <$2>
1621 _ACEOF
1622 if ac_fn_c_try_compile "$LINENO"; then :
1623 eval "$3=yes"
1624 else
1625 eval "$3=no"
1627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1629 eval ac_res=\$$3
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631 $as_echo "$ac_res" >&6; }
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634 } # ac_fn_c_check_header_compile
1636 # ac_fn_c_try_cpp LINENO
1637 # ----------------------
1638 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_cpp ()
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 if { { ac_try="$ac_cpp conftest.$ac_ext"
1643 case "(($ac_try" in
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1650 ac_status=$?
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } > conftest.i && {
1658 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1659 test ! -s conftest.err
1660 }; then :
1661 ac_retval=0
1662 else
1663 $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1666 ac_retval=1
1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669 as_fn_set_status $ac_retval
1671 } # ac_fn_c_try_cpp
1673 # ac_fn_c_try_run LINENO
1674 # ----------------------
1675 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1676 # that executables *can* be run.
1677 ac_fn_c_try_run ()
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 if { { ac_try="$ac_link"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_link") 2>&5
1688 ac_status=$?
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1691 { { case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_try") 2>&5
1698 ac_status=$?
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; }; }; then :
1701 ac_retval=0
1702 else
1703 $as_echo "$as_me: program exited with status $ac_status" >&5
1704 $as_echo "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1707 ac_retval=$ac_status
1709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 as_fn_set_status $ac_retval
1713 } # ac_fn_c_try_run
1715 # ac_fn_c_check_func LINENO FUNC VAR
1716 # ----------------------------------
1717 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1718 ac_fn_c_check_func ()
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722 $as_echo_n "checking for $2... " >&6; }
1723 if eval \${$3+:} false; then :
1724 $as_echo_n "(cached) " >&6
1725 else
1726 if test x$gcc_no_link = xyes; then
1727 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730 /* end confdefs.h. */
1731 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1733 #define $2 innocuous_$2
1735 /* System header to define __stub macros and hopefully few prototypes,
1736 which can conflict with char $2 (); below.
1737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1738 <limits.h> exists even on freestanding compilers. */
1740 #ifdef __STDC__
1741 # include <limits.h>
1742 #else
1743 # include <assert.h>
1744 #endif
1746 #undef $2
1748 /* Override any GCC internal prototype to avoid an error.
1749 Use char because int might match the return type of a GCC
1750 builtin and then its argument prototype would still apply. */
1751 #ifdef __cplusplus
1752 extern "C"
1753 #endif
1754 char $2 ();
1755 /* The GNU C library defines this for functions which it implements
1756 to always fail with ENOSYS. Some functions are actually named
1757 something starting with __ and the normal name is an alias. */
1758 #if defined __stub_$2 || defined __stub___$2
1759 choke me
1760 #endif
1763 main ()
1765 return $2 ();
1767 return 0;
1769 _ACEOF
1770 if ac_fn_c_try_link "$LINENO"; then :
1771 eval "$3=yes"
1772 else
1773 eval "$3=no"
1775 rm -f core conftest.err conftest.$ac_objext \
1776 conftest$ac_exeext conftest.$ac_ext
1778 eval ac_res=\$$3
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780 $as_echo "$ac_res" >&6; }
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783 } # ac_fn_c_check_func
1785 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1786 # -------------------------------------------------------
1787 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1788 # the include files in INCLUDES and setting the cache variable VAR
1789 # accordingly.
1790 ac_fn_c_check_header_mongrel ()
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 if eval \${$3+:} false; then :
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 $as_echo_n "checking for $2... " >&6; }
1796 if eval \${$3+:} false; then :
1797 $as_echo_n "(cached) " >&6
1799 eval ac_res=\$$3
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 $as_echo "$ac_res" >&6; }
1802 else
1803 # Is the header compilable?
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1805 $as_echo_n "checking $2 usability... " >&6; }
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h. */
1809 #include <$2>
1810 _ACEOF
1811 if ac_fn_c_try_compile "$LINENO"; then :
1812 ac_header_compiler=yes
1813 else
1814 ac_header_compiler=no
1816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1818 $as_echo "$ac_header_compiler" >&6; }
1820 # Is the header present?
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1822 $as_echo_n "checking $2 presence... " >&6; }
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1825 #include <$2>
1826 _ACEOF
1827 if ac_fn_c_try_cpp "$LINENO"; then :
1828 ac_header_preproc=yes
1829 else
1830 ac_header_preproc=no
1832 rm -f conftest.err conftest.i conftest.$ac_ext
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1834 $as_echo "$ac_header_preproc" >&6; }
1836 # So? What about this header?
1837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1838 yes:no: )
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1840 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1844 no:yes:* )
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1846 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1848 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1850 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1852 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1854 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1856 esac
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if eval \${$3+:} false; then :
1860 $as_echo_n "(cached) " >&6
1861 else
1862 eval "$3=\$ac_header_compiler"
1864 eval ac_res=\$$3
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870 } # ac_fn_c_check_header_mongrel
1871 cat >config.log <<_ACEOF
1872 This file contains any messages produced by compilers while
1873 running configure, to aid debugging if configure makes a mistake.
1875 It was created by package-unused $as_me version-unused, which was
1876 generated by GNU Autoconf 2.69. Invocation command line was
1878 $ $0 $@
1880 _ACEOF
1881 exec 5>>config.log
1883 cat <<_ASUNAME
1884 ## --------- ##
1885 ## Platform. ##
1886 ## --------- ##
1888 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1889 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1890 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1891 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1892 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1894 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1895 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1897 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1898 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1899 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1900 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1901 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1902 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1903 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1905 _ASUNAME
1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908 for as_dir in $PATH
1910 IFS=$as_save_IFS
1911 test -z "$as_dir" && as_dir=.
1912 $as_echo "PATH: $as_dir"
1913 done
1914 IFS=$as_save_IFS
1916 } >&5
1918 cat >&5 <<_ACEOF
1921 ## ----------- ##
1922 ## Core tests. ##
1923 ## ----------- ##
1925 _ACEOF
1928 # Keep a trace of the command line.
1929 # Strip out --no-create and --no-recursion so they do not pile up.
1930 # Strip out --silent because we don't want to record it for future runs.
1931 # Also quote any args containing shell meta-characters.
1932 # Make two passes to allow for proper duplicate-argument suppression.
1933 ac_configure_args=
1934 ac_configure_args0=
1935 ac_configure_args1=
1936 ac_must_keep_next=false
1937 for ac_pass in 1 2
1939 for ac_arg
1941 case $ac_arg in
1942 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1943 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1944 | -silent | --silent | --silen | --sile | --sil)
1945 continue ;;
1946 *\'*)
1947 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1948 esac
1949 case $ac_pass in
1950 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1952 as_fn_append ac_configure_args1 " '$ac_arg'"
1953 if test $ac_must_keep_next = true; then
1954 ac_must_keep_next=false # Got value, back to normal.
1955 else
1956 case $ac_arg in
1957 *=* | --config-cache | -C | -disable-* | --disable-* \
1958 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1959 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1960 | -with-* | --with-* | -without-* | --without-* | --x)
1961 case "$ac_configure_args0 " in
1962 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1963 esac
1965 -* ) ac_must_keep_next=true ;;
1966 esac
1968 as_fn_append ac_configure_args " '$ac_arg'"
1970 esac
1971 done
1972 done
1973 { ac_configure_args0=; unset ac_configure_args0;}
1974 { ac_configure_args1=; unset ac_configure_args1;}
1976 # When interrupted or exit'd, cleanup temporary files, and complete
1977 # config.log. We remove comments because anyway the quotes in there
1978 # would cause problems or look ugly.
1979 # WARNING: Use '\'' to represent an apostrophe within the trap.
1980 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1981 trap 'exit_status=$?
1982 # Save into config.log some information that might help in debugging.
1984 echo
1986 $as_echo "## ---------------- ##
1987 ## Cache variables. ##
1988 ## ---------------- ##"
1989 echo
1990 # The following way of writing the cache mishandles newlines in values,
1992 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1993 eval ac_val=\$$ac_var
1994 case $ac_val in #(
1995 *${as_nl}*)
1996 case $ac_var in #(
1997 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1998 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1999 esac
2000 case $ac_var in #(
2001 _ | IFS | as_nl) ;; #(
2002 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2003 *) { eval $ac_var=; unset $ac_var;} ;;
2004 esac ;;
2005 esac
2006 done
2007 (set) 2>&1 |
2008 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2009 *${as_nl}ac_space=\ *)
2010 sed -n \
2011 "s/'\''/'\''\\\\'\'''\''/g;
2012 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2013 ;; #(
2015 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2017 esac |
2018 sort
2020 echo
2022 $as_echo "## ----------------- ##
2023 ## Output variables. ##
2024 ## ----------------- ##"
2025 echo
2026 for ac_var in $ac_subst_vars
2028 eval ac_val=\$$ac_var
2029 case $ac_val in
2030 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2031 esac
2032 $as_echo "$ac_var='\''$ac_val'\''"
2033 done | sort
2034 echo
2036 if test -n "$ac_subst_files"; then
2037 $as_echo "## ------------------- ##
2038 ## File substitutions. ##
2039 ## ------------------- ##"
2040 echo
2041 for ac_var in $ac_subst_files
2043 eval ac_val=\$$ac_var
2044 case $ac_val in
2045 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2046 esac
2047 $as_echo "$ac_var='\''$ac_val'\''"
2048 done | sort
2049 echo
2052 if test -s confdefs.h; then
2053 $as_echo "## ----------- ##
2054 ## confdefs.h. ##
2055 ## ----------- ##"
2056 echo
2057 cat confdefs.h
2058 echo
2060 test "$ac_signal" != 0 &&
2061 $as_echo "$as_me: caught signal $ac_signal"
2062 $as_echo "$as_me: exit $exit_status"
2063 } >&5
2064 rm -f core *.core core.conftest.* &&
2065 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2066 exit $exit_status
2068 for ac_signal in 1 2 13 15; do
2069 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2070 done
2071 ac_signal=0
2073 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2074 rm -f -r conftest* confdefs.h
2076 $as_echo "/* confdefs.h */" > confdefs.h
2078 # Predefined preprocessor variables.
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_NAME "$PACKAGE_NAME"
2082 _ACEOF
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2086 _ACEOF
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2090 _ACEOF
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_STRING "$PACKAGE_STRING"
2094 _ACEOF
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2098 _ACEOF
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_URL "$PACKAGE_URL"
2102 _ACEOF
2105 # Let the site file select an alternate cache file if it wants to.
2106 # Prefer an explicitly selected file to automatically selected ones.
2107 ac_site_file1=NONE
2108 ac_site_file2=NONE
2109 if test -n "$CONFIG_SITE"; then
2110 # We do not want a PATH search for config.site.
2111 case $CONFIG_SITE in #((
2112 -*) ac_site_file1=./$CONFIG_SITE;;
2113 */*) ac_site_file1=$CONFIG_SITE;;
2114 *) ac_site_file1=./$CONFIG_SITE;;
2115 esac
2116 elif test "x$prefix" != xNONE; then
2117 ac_site_file1=$prefix/share/config.site
2118 ac_site_file2=$prefix/etc/config.site
2119 else
2120 ac_site_file1=$ac_default_prefix/share/config.site
2121 ac_site_file2=$ac_default_prefix/etc/config.site
2123 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2125 test "x$ac_site_file" = xNONE && continue
2126 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2128 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2129 sed 's/^/| /' "$ac_site_file" >&5
2130 . "$ac_site_file" \
2131 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2133 as_fn_error $? "failed to load site script $ac_site_file
2134 See \`config.log' for more details" "$LINENO" 5; }
2136 done
2138 if test -r "$cache_file"; then
2139 # Some versions of bash will fail to source /dev/null (special files
2140 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2141 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2143 $as_echo "$as_me: loading cache $cache_file" >&6;}
2144 case $cache_file in
2145 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2146 *) . "./$cache_file";;
2147 esac
2149 else
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2151 $as_echo "$as_me: creating cache $cache_file" >&6;}
2152 >$cache_file
2155 # Check that the precious variables saved in the cache have kept the same
2156 # value.
2157 ac_cache_corrupted=false
2158 for ac_var in $ac_precious_vars; do
2159 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2160 eval ac_new_set=\$ac_env_${ac_var}_set
2161 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2162 eval ac_new_val=\$ac_env_${ac_var}_value
2163 case $ac_old_set,$ac_new_set in
2164 set,)
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2166 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2167 ac_cache_corrupted=: ;;
2168 ,set)
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2170 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2171 ac_cache_corrupted=: ;;
2172 ,);;
2174 if test "x$ac_old_val" != "x$ac_new_val"; then
2175 # differences in whitespace do not lead to failure.
2176 ac_old_val_w=`echo x $ac_old_val`
2177 ac_new_val_w=`echo x $ac_new_val`
2178 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2180 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2181 ac_cache_corrupted=:
2182 else
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2184 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2185 eval $ac_var=\$ac_old_val
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2188 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2190 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2191 fi;;
2192 esac
2193 # Pass precious variables to config.status.
2194 if test "$ac_new_set" = set; then
2195 case $ac_new_val in
2196 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2197 *) ac_arg=$ac_var=$ac_new_val ;;
2198 esac
2199 case " $ac_configure_args " in
2200 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2201 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2202 esac
2204 done
2205 if $ac_cache_corrupted; then
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2209 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2210 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2212 ## -------------------- ##
2213 ## Main body of script. ##
2214 ## -------------------- ##
2216 ac_ext=c
2217 ac_cpp='$CPP $CPPFLAGS'
2218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2228 ac_aux_dir=
2229 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2230 if test -f "$ac_dir/install-sh"; then
2231 ac_aux_dir=$ac_dir
2232 ac_install_sh="$ac_aux_dir/install-sh -c"
2233 break
2234 elif test -f "$ac_dir/install.sh"; then
2235 ac_aux_dir=$ac_dir
2236 ac_install_sh="$ac_aux_dir/install.sh -c"
2237 break
2238 elif test -f "$ac_dir/shtool"; then
2239 ac_aux_dir=$ac_dir
2240 ac_install_sh="$ac_aux_dir/shtool install -c"
2241 break
2243 done
2244 if test -z "$ac_aux_dir"; then
2245 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2248 # These three variables are undocumented and unsupported,
2249 # and are intended to be withdrawn in a future Autoconf release.
2250 # They can cause serious problems if a builder's source tree is in a directory
2251 # whose full name contains unusual characters.
2252 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2253 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2254 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2257 # Make sure we can run config.sub.
2258 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2259 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2262 $as_echo_n "checking build system type... " >&6; }
2263 if ${ac_cv_build+:} false; then :
2264 $as_echo_n "(cached) " >&6
2265 else
2266 ac_build_alias=$build_alias
2267 test "x$ac_build_alias" = x &&
2268 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2269 test "x$ac_build_alias" = x &&
2270 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2271 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2272 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2276 $as_echo "$ac_cv_build" >&6; }
2277 case $ac_cv_build in
2278 *-*-*) ;;
2279 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2280 esac
2281 build=$ac_cv_build
2282 ac_save_IFS=$IFS; IFS='-'
2283 set x $ac_cv_build
2284 shift
2285 build_cpu=$1
2286 build_vendor=$2
2287 shift; shift
2288 # Remember, the first character of IFS is used to create $*,
2289 # except with old shells:
2290 build_os=$*
2291 IFS=$ac_save_IFS
2292 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2295 case ${build_alias} in
2296 "") build_noncanonical=${build} ;;
2297 *) build_noncanonical=${build_alias} ;;
2298 esac
2300 case ${host_alias} in
2301 "") host_noncanonical=${build_noncanonical} ;;
2302 *) host_noncanonical=${host_alias} ;;
2303 esac
2305 case ${target_alias} in
2306 "") target_noncanonical=${host_noncanonical} ;;
2307 *) target_noncanonical=${target_alias} ;;
2308 esac
2311 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2312 # have matching libraries, they should use host libraries: Makefile.tpl
2313 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2314 # However, they still use the build modules, because the corresponding
2315 # host modules (e.g. bison) are only built for the host when bootstrap
2316 # finishes. So:
2317 # - build_subdir is where we find build modules, and never changes.
2318 # - build_libsubdir is where we find build libraries, and can be overridden.
2320 # Prefix 'build-' so this never conflicts with target_subdir.
2321 build_subdir="build-${build_noncanonical}"
2323 # Check whether --with-build-libsubdir was given.
2324 if test "${with_build_libsubdir+set}" = set; then :
2325 withval=$with_build_libsubdir; build_libsubdir="$withval"
2326 else
2327 build_libsubdir="$build_subdir"
2330 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2331 if ( test $srcdir = . && test -d gcc ) \
2332 || test -d $srcdir/../host-${host_noncanonical}; then
2333 host_subdir="host-${host_noncanonical}"
2334 else
2335 host_subdir=.
2337 # No prefix.
2338 target_subdir=${target_noncanonical}
2341 # We need the following definitions because AC_PROG_LIBTOOL relies on them
2342 PACKAGE=libobjc
2343 # Version is pulled out to make it a bit easier to change using sed.
2344 VERSION=4:0:0
2347 # This works around the fact that libtool configuration may change LD
2348 # for this particular configuration, but some shells, instead of
2349 # keeping the changes in LD private, export them just because LD is
2350 # exported.
2351 ORIGINAL_LD_FOR_MULTILIBS=$LD
2353 # -------
2354 # Options
2355 # -------
2357 # We use these options to decide which functions to include.
2359 # Check whether --with-target-subdir was given.
2360 if test "${with_target_subdir+set}" = set; then :
2361 withval=$with_target_subdir;
2365 # Check whether --with-cross-host was given.
2366 if test "${with_cross_host+set}" = set; then :
2367 withval=$with_cross_host;
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2372 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2373 # Check whether --enable-version-specific-runtime-libs was given.
2374 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2375 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2376 yes) version_specific_libs=yes ;;
2377 no) version_specific_libs=no ;;
2378 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2379 esac
2380 else
2381 version_specific_libs=no
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2385 $as_echo "$version_specific_libs" >&6; }
2387 # -----------
2388 # Directories
2389 # -----------
2391 # Find the rest of the source tree framework.
2392 # Default to --enable-multilib
2393 # Check whether --enable-multilib was given.
2394 if test "${enable_multilib+set}" = set; then :
2395 enableval=$enable_multilib; case "$enableval" in
2396 yes) multilib=yes ;;
2397 no) multilib=no ;;
2398 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2399 esac
2400 else
2401 multilib=yes
2405 # We may get other options which we leave undocumented:
2406 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2407 # See config-ml.in if you want the gory details.
2409 if test "$srcdir" = "."; then
2410 if test "$with_target_subdir" != "."; then
2411 multi_basedir="$srcdir/$with_multisrctop../.."
2412 else
2413 multi_basedir="$srcdir/$with_multisrctop.."
2415 else
2416 multi_basedir="$srcdir/.."
2420 # Even if the default multilib is not a cross compilation,
2421 # it may be that some of the other multilibs are.
2422 if test $cross_compiling = no && test $multilib = yes \
2423 && test "x${with_multisubdir}" != x ; then
2424 cross_compiling=maybe
2427 ac_config_commands="$ac_config_commands default-1"
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2431 $as_echo_n "checking host system type... " >&6; }
2432 if ${ac_cv_host+:} false; then :
2433 $as_echo_n "(cached) " >&6
2434 else
2435 if test "x$host_alias" = x; then
2436 ac_cv_host=$ac_cv_build
2437 else
2438 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2439 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2444 $as_echo "$ac_cv_host" >&6; }
2445 case $ac_cv_host in
2446 *-*-*) ;;
2447 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2448 esac
2449 host=$ac_cv_host
2450 ac_save_IFS=$IFS; IFS='-'
2451 set x $ac_cv_host
2452 shift
2453 host_cpu=$1
2454 host_vendor=$2
2455 shift; shift
2456 # Remember, the first character of IFS is used to create $*,
2457 # except with old shells:
2458 host_os=$*
2459 IFS=$ac_save_IFS
2460 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2464 $as_echo_n "checking target system type... " >&6; }
2465 if ${ac_cv_target+:} false; then :
2466 $as_echo_n "(cached) " >&6
2467 else
2468 if test "x$target_alias" = x; then
2469 ac_cv_target=$ac_cv_host
2470 else
2471 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2472 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2477 $as_echo "$ac_cv_target" >&6; }
2478 case $ac_cv_target in
2479 *-*-*) ;;
2480 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2481 esac
2482 target=$ac_cv_target
2483 ac_save_IFS=$IFS; IFS='-'
2484 set x $ac_cv_target
2485 shift
2486 target_cpu=$1
2487 target_vendor=$2
2488 shift; shift
2489 # Remember, the first character of IFS is used to create $*,
2490 # except with old shells:
2491 target_os=$*
2492 IFS=$ac_save_IFS
2493 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2496 # The aliases save the names the user supplied, while $host etc.
2497 # will get canonicalized.
2498 test -n "$target_alias" &&
2499 test "$program_prefix$program_suffix$program_transform_name" = \
2500 NONENONEs,x,x, &&
2501 program_prefix=${target_alias}-
2506 # Export source directory.
2507 # These need to be absolute paths, yet at the same time need to
2508 # canonicalize only relative paths, because then amd will not unmount
2509 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
2510 case $srcdir in
2511 \\/$* | ?:\\/*) glibcpp_srcdir=${srcdir} ;;
2512 *) glibcpp_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
2513 esac
2517 # Check whether --with-toolexeclibdir was given.
2518 if test "${with_toolexeclibdir+set}" = set; then :
2519 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
2523 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
2525 esac
2526 else
2527 with_toolexeclibdir=no
2532 # Calculate toolexeclibdir
2533 # Also toolexecdir, though it's only used in toolexeclibdir
2534 case ${version_specific_libs} in
2535 yes)
2536 # Need the gcc compiler version to know where to install libraries
2537 # and header files if --enable-version-specific-runtime-libs option
2538 # is selected.
2539 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
2540 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
2543 if test -n "$with_cross_host" &&
2544 test x"$with_cross_host" != x"no"; then
2545 # Install a library built with a cross compiler in tooldir, not libdir.
2546 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
2547 case ${with_toolexeclibdir} in
2549 toolexeclibdir='$(toolexecdir)/lib'
2552 toolexeclibdir=${with_toolexeclibdir}
2554 esac
2555 else
2556 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
2557 toolexeclibdir='$(libdir)'
2559 multi_os_directory=`$CC -print-multi-os-directory`
2560 case $multi_os_directory in
2561 .) ;; # Avoid trailing /.
2562 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
2563 esac
2565 esac
2569 # Figure out if we want to name the include directory and the
2570 # library name changes differently.
2571 includedirname=include
2572 libsuffix=
2573 case "${host}" in
2574 *-darwin*)
2575 # Darwin is the only target so far that needs a different include directory.
2576 includedirname=include-gnu-runtime
2577 libsuffix=-gnu
2579 esac
2583 ac_config_headers="$ac_config_headers config.h"
2586 # --------
2587 # Programs
2588 # --------
2592 # We must force CC to /not/ be a precious variable; otherwise
2593 # the wrong, non-multilib-adjusted value will be used in multilibs.
2594 # As a side effect, we have to subst CFLAGS ourselves.
2597 ac_ext=c
2598 ac_cpp='$CPP $CPPFLAGS'
2599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2602 if test -n "$ac_tool_prefix"; then
2603 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2604 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2606 $as_echo_n "checking for $ac_word... " >&6; }
2607 if ${ac_cv_prog_CC+:} false; then :
2608 $as_echo_n "(cached) " >&6
2609 else
2610 if test -n "$CC"; then
2611 ac_cv_prog_CC="$CC" # Let the user override the test.
2612 else
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 for as_dir in $PATH
2616 IFS=$as_save_IFS
2617 test -z "$as_dir" && as_dir=.
2618 for ac_exec_ext in '' $ac_executable_extensions; do
2619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2620 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2622 break 2
2624 done
2625 done
2626 IFS=$as_save_IFS
2630 CC=$ac_cv_prog_CC
2631 if test -n "$CC"; then
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2633 $as_echo "$CC" >&6; }
2634 else
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636 $as_echo "no" >&6; }
2641 if test -z "$ac_cv_prog_CC"; then
2642 ac_ct_CC=$CC
2643 # Extract the first word of "gcc", so it can be a program name with args.
2644 set dummy gcc; ac_word=$2
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2646 $as_echo_n "checking for $ac_word... " >&6; }
2647 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2648 $as_echo_n "(cached) " >&6
2649 else
2650 if test -n "$ac_ct_CC"; then
2651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2656 IFS=$as_save_IFS
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2660 ac_cv_prog_ac_ct_CC="gcc"
2661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 break 2
2664 done
2665 done
2666 IFS=$as_save_IFS
2670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2671 if test -n "$ac_ct_CC"; then
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2673 $as_echo "$ac_ct_CC" >&6; }
2674 else
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676 $as_echo "no" >&6; }
2679 if test "x$ac_ct_CC" = x; then
2680 CC=""
2681 else
2682 case $cross_compiling:$ac_tool_warned in
2683 yes:)
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2686 ac_tool_warned=yes ;;
2687 esac
2688 CC=$ac_ct_CC
2690 else
2691 CC="$ac_cv_prog_CC"
2694 if test -z "$CC"; then
2695 if test -n "$ac_tool_prefix"; then
2696 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2697 set dummy ${ac_tool_prefix}cc; ac_word=$2
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2699 $as_echo_n "checking for $ac_word... " >&6; }
2700 if ${ac_cv_prog_CC+:} false; then :
2701 $as_echo_n "(cached) " >&6
2702 else
2703 if test -n "$CC"; then
2704 ac_cv_prog_CC="$CC" # Let the user override the test.
2705 else
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH
2709 IFS=$as_save_IFS
2710 test -z "$as_dir" && as_dir=.
2711 for ac_exec_ext in '' $ac_executable_extensions; do
2712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2713 ac_cv_prog_CC="${ac_tool_prefix}cc"
2714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2715 break 2
2717 done
2718 done
2719 IFS=$as_save_IFS
2723 CC=$ac_cv_prog_CC
2724 if test -n "$CC"; then
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2726 $as_echo "$CC" >&6; }
2727 else
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729 $as_echo "no" >&6; }
2735 if test -z "$CC"; then
2736 # Extract the first word of "cc", so it can be a program name with args.
2737 set dummy cc; ac_word=$2
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2739 $as_echo_n "checking for $ac_word... " >&6; }
2740 if ${ac_cv_prog_CC+:} false; then :
2741 $as_echo_n "(cached) " >&6
2742 else
2743 if test -n "$CC"; then
2744 ac_cv_prog_CC="$CC" # Let the user override the test.
2745 else
2746 ac_prog_rejected=no
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 for as_dir in $PATH
2750 IFS=$as_save_IFS
2751 test -z "$as_dir" && as_dir=.
2752 for ac_exec_ext in '' $ac_executable_extensions; do
2753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2754 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2755 ac_prog_rejected=yes
2756 continue
2758 ac_cv_prog_CC="cc"
2759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2760 break 2
2762 done
2763 done
2764 IFS=$as_save_IFS
2766 if test $ac_prog_rejected = yes; then
2767 # We found a bogon in the path, so make sure we never use it.
2768 set dummy $ac_cv_prog_CC
2769 shift
2770 if test $# != 0; then
2771 # We chose a different compiler from the bogus one.
2772 # However, it has the same basename, so the bogon will be chosen
2773 # first if we set CC to just the basename; use the full file name.
2774 shift
2775 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2780 CC=$ac_cv_prog_CC
2781 if test -n "$CC"; then
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2783 $as_echo "$CC" >&6; }
2784 else
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2786 $as_echo "no" >&6; }
2791 if test -z "$CC"; then
2792 if test -n "$ac_tool_prefix"; then
2793 for ac_prog in cl.exe
2795 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798 $as_echo_n "checking for $ac_word... " >&6; }
2799 if ${ac_cv_prog_CC+:} false; then :
2800 $as_echo_n "(cached) " >&6
2801 else
2802 if test -n "$CC"; then
2803 ac_cv_prog_CC="$CC" # Let the user override the test.
2804 else
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH
2808 IFS=$as_save_IFS
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2812 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2814 break 2
2816 done
2817 done
2818 IFS=$as_save_IFS
2822 CC=$ac_cv_prog_CC
2823 if test -n "$CC"; then
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2825 $as_echo "$CC" >&6; }
2826 else
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828 $as_echo "no" >&6; }
2832 test -n "$CC" && break
2833 done
2835 if test -z "$CC"; then
2836 ac_ct_CC=$CC
2837 for ac_prog in cl.exe
2839 # Extract the first word of "$ac_prog", so it can be a program name with args.
2840 set dummy $ac_prog; ac_word=$2
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842 $as_echo_n "checking for $ac_word... " >&6; }
2843 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2844 $as_echo_n "(cached) " >&6
2845 else
2846 if test -n "$ac_ct_CC"; then
2847 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2848 else
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 for as_dir in $PATH
2852 IFS=$as_save_IFS
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2856 ac_cv_prog_ac_ct_CC="$ac_prog"
2857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858 break 2
2860 done
2861 done
2862 IFS=$as_save_IFS
2866 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2867 if test -n "$ac_ct_CC"; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2869 $as_echo "$ac_ct_CC" >&6; }
2870 else
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872 $as_echo "no" >&6; }
2876 test -n "$ac_ct_CC" && break
2877 done
2879 if test "x$ac_ct_CC" = x; then
2880 CC=""
2881 else
2882 case $cross_compiling:$ac_tool_warned in
2883 yes:)
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2885 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2886 ac_tool_warned=yes ;;
2887 esac
2888 CC=$ac_ct_CC
2895 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2897 as_fn_error $? "no acceptable C compiler found in \$PATH
2898 See \`config.log' for more details" "$LINENO" 5; }
2900 # Provide some information about the compiler.
2901 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2902 set X $ac_compile
2903 ac_compiler=$2
2904 for ac_option in --version -v -V -qversion; do
2905 { { ac_try="$ac_compiler $ac_option >&5"
2906 case "(($ac_try" in
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2909 esac
2910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2911 $as_echo "$ac_try_echo"; } >&5
2912 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2913 ac_status=$?
2914 if test -s conftest.err; then
2915 sed '10a\
2916 ... rest of stderr output deleted ...
2917 10q' conftest.err >conftest.er1
2918 cat conftest.er1 >&5
2920 rm -f conftest.er1 conftest.err
2921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2922 test $ac_status = 0; }
2923 done
2925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2926 /* end confdefs.h. */
2927 #include <stdio.h>
2929 main ()
2931 printf ("hello world\n");
2933 return 0;
2935 _ACEOF
2936 # FIXME: Cleanup?
2937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
2938 (eval $ac_link) 2>&5
2939 ac_status=$?
2940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2941 test $ac_status = 0; }; then :
2942 gcc_no_link=no
2943 else
2944 gcc_no_link=yes
2946 if test x$gcc_no_link = xyes; then
2947 # Setting cross_compile will disable run tests; it will
2948 # also disable AC_CHECK_FILE but that's generally
2949 # correct if we can't link.
2950 cross_compiling=yes
2951 EXEEXT=
2952 else
2953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2954 /* end confdefs.h. */
2957 main ()
2961 return 0;
2963 _ACEOF
2964 ac_clean_files_save=$ac_clean_files
2965 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2966 # Try to create an executable without -o first, disregard a.out.
2967 # It will help us diagnose broken compilers, and finding out an intuition
2968 # of exeext.
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2970 $as_echo_n "checking whether the C compiler works... " >&6; }
2971 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2973 # The possible output files:
2974 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2976 ac_rmfiles=
2977 for ac_file in $ac_files
2979 case $ac_file in
2980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2981 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2982 esac
2983 done
2984 rm -f $ac_rmfiles
2986 if { { ac_try="$ac_link_default"
2987 case "(($ac_try" in
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2990 esac
2991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2992 $as_echo "$ac_try_echo"; } >&5
2993 (eval "$ac_link_default") 2>&5
2994 ac_status=$?
2995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2996 test $ac_status = 0; }; then :
2997 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2998 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2999 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3000 # so that the user can short-circuit this test for compilers unknown to
3001 # Autoconf.
3002 for ac_file in $ac_files ''
3004 test -f "$ac_file" || continue
3005 case $ac_file in
3006 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3008 [ab].out )
3009 # We found the default executable, but exeext='' is most
3010 # certainly right.
3011 break;;
3012 *.* )
3013 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3014 then :; else
3015 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3017 # We set ac_cv_exeext here because the later test for it is not
3018 # safe: cross compilers may not add the suffix if given an `-o'
3019 # argument, so we may need to know it at that point already.
3020 # Even if this section looks crufty: it has the advantage of
3021 # actually working.
3022 break;;
3024 break;;
3025 esac
3026 done
3027 test "$ac_cv_exeext" = no && ac_cv_exeext=
3029 else
3030 ac_file=''
3032 if test -z "$ac_file"; then :
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 $as_echo "no" >&6; }
3035 $as_echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3038 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3040 as_fn_error 77 "C compiler cannot create executables
3041 See \`config.log' for more details" "$LINENO" 5; }
3042 else
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3044 $as_echo "yes" >&6; }
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3047 $as_echo_n "checking for C compiler default output file name... " >&6; }
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3049 $as_echo "$ac_file" >&6; }
3050 ac_exeext=$ac_cv_exeext
3052 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3053 ac_clean_files=$ac_clean_files_save
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3055 $as_echo_n "checking for suffix of executables... " >&6; }
3056 if { { ac_try="$ac_link"
3057 case "(($ac_try" in
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3060 esac
3061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3062 $as_echo "$ac_try_echo"; } >&5
3063 (eval "$ac_link") 2>&5
3064 ac_status=$?
3065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3066 test $ac_status = 0; }; then :
3067 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3068 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3069 # work properly (i.e., refer to `conftest.exe'), while it won't with
3070 # `rm'.
3071 for ac_file in conftest.exe conftest conftest.*; do
3072 test -f "$ac_file" || continue
3073 case $ac_file in
3074 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3075 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3076 break;;
3077 * ) break;;
3078 esac
3079 done
3080 else
3081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3083 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3084 See \`config.log' for more details" "$LINENO" 5; }
3086 rm -f conftest conftest$ac_cv_exeext
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3088 $as_echo "$ac_cv_exeext" >&6; }
3090 rm -f conftest.$ac_ext
3091 EXEEXT=$ac_cv_exeext
3092 ac_exeext=$EXEEXT
3093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3094 /* end confdefs.h. */
3095 #include <stdio.h>
3097 main ()
3099 FILE *f = fopen ("conftest.out", "w");
3100 return ferror (f) || fclose (f) != 0;
3103 return 0;
3105 _ACEOF
3106 ac_clean_files="$ac_clean_files conftest.out"
3107 # Check that the compiler produces executables we can run. If not, either
3108 # the compiler is broken, or we cross compile.
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3110 $as_echo_n "checking whether we are cross compiling... " >&6; }
3111 if test "$cross_compiling" != yes; then
3112 { { ac_try="$ac_link"
3113 case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3116 esac
3117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3118 $as_echo "$ac_try_echo"; } >&5
3119 (eval "$ac_link") 2>&5
3120 ac_status=$?
3121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3122 test $ac_status = 0; }
3123 if { ac_try='./conftest$ac_cv_exeext'
3124 { { case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127 esac
3128 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3129 $as_echo "$ac_try_echo"; } >&5
3130 (eval "$ac_try") 2>&5
3131 ac_status=$?
3132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3133 test $ac_status = 0; }; }; then
3134 cross_compiling=no
3135 else
3136 if test "$cross_compiling" = maybe; then
3137 cross_compiling=yes
3138 else
3139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3141 as_fn_error $? "cannot run C compiled programs.
3142 If you meant to cross compile, use \`--host'.
3143 See \`config.log' for more details" "$LINENO" 5; }
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3148 $as_echo "$cross_compiling" >&6; }
3150 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3151 ac_clean_files=$ac_clean_files_save
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3154 $as_echo_n "checking for suffix of object files... " >&6; }
3155 if ${ac_cv_objext+:} false; then :
3156 $as_echo_n "(cached) " >&6
3157 else
3158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3159 /* end confdefs.h. */
3162 main ()
3166 return 0;
3168 _ACEOF
3169 rm -f conftest.o conftest.obj
3170 if { { ac_try="$ac_compile"
3171 case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3174 esac
3175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3176 $as_echo "$ac_try_echo"; } >&5
3177 (eval "$ac_compile") 2>&5
3178 ac_status=$?
3179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3180 test $ac_status = 0; }; then :
3181 for ac_file in conftest.o conftest.obj conftest.*; do
3182 test -f "$ac_file" || continue;
3183 case $ac_file in
3184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3185 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3186 break;;
3187 esac
3188 done
3189 else
3190 $as_echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3195 as_fn_error $? "cannot compute suffix of object files: cannot compile
3196 See \`config.log' for more details" "$LINENO" 5; }
3198 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3201 $as_echo "$ac_cv_objext" >&6; }
3202 OBJEXT=$ac_cv_objext
3203 ac_objext=$OBJEXT
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3205 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3206 if ${ac_cv_c_compiler_gnu+:} false; then :
3207 $as_echo_n "(cached) " >&6
3208 else
3209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3210 /* end confdefs.h. */
3213 main ()
3215 #ifndef __GNUC__
3216 choke me
3217 #endif
3220 return 0;
3222 _ACEOF
3223 if ac_fn_c_try_compile "$LINENO"; then :
3224 ac_compiler_gnu=yes
3225 else
3226 ac_compiler_gnu=no
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3233 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3234 if test $ac_compiler_gnu = yes; then
3235 GCC=yes
3236 else
3237 GCC=
3239 ac_test_CFLAGS=${CFLAGS+set}
3240 ac_save_CFLAGS=$CFLAGS
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3242 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3243 if ${ac_cv_prog_cc_g+:} false; then :
3244 $as_echo_n "(cached) " >&6
3245 else
3246 ac_save_c_werror_flag=$ac_c_werror_flag
3247 ac_c_werror_flag=yes
3248 ac_cv_prog_cc_g=no
3249 CFLAGS="-g"
3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251 /* end confdefs.h. */
3254 main ()
3258 return 0;
3260 _ACEOF
3261 if ac_fn_c_try_compile "$LINENO"; then :
3262 ac_cv_prog_cc_g=yes
3263 else
3264 CFLAGS=""
3265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3266 /* end confdefs.h. */
3269 main ()
3273 return 0;
3275 _ACEOF
3276 if ac_fn_c_try_compile "$LINENO"; then :
3278 else
3279 ac_c_werror_flag=$ac_save_c_werror_flag
3280 CFLAGS="-g"
3281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3282 /* end confdefs.h. */
3285 main ()
3289 return 0;
3291 _ACEOF
3292 if ac_fn_c_try_compile "$LINENO"; then :
3293 ac_cv_prog_cc_g=yes
3295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3300 ac_c_werror_flag=$ac_save_c_werror_flag
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3303 $as_echo "$ac_cv_prog_cc_g" >&6; }
3304 if test "$ac_test_CFLAGS" = set; then
3305 CFLAGS=$ac_save_CFLAGS
3306 elif test $ac_cv_prog_cc_g = yes; then
3307 if test "$GCC" = yes; then
3308 CFLAGS="-g -O2"
3309 else
3310 CFLAGS="-g"
3312 else
3313 if test "$GCC" = yes; then
3314 CFLAGS="-O2"
3315 else
3316 CFLAGS=
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3320 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3321 if ${ac_cv_prog_cc_c89+:} false; then :
3322 $as_echo_n "(cached) " >&6
3323 else
3324 ac_cv_prog_cc_c89=no
3325 ac_save_CC=$CC
3326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327 /* end confdefs.h. */
3328 #include <stdarg.h>
3329 #include <stdio.h>
3330 struct stat;
3331 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3332 struct buf { int x; };
3333 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3334 static char *e (p, i)
3335 char **p;
3336 int i;
3338 return p[i];
3340 static char *f (char * (*g) (char **, int), char **p, ...)
3342 char *s;
3343 va_list v;
3344 va_start (v,p);
3345 s = g (p, va_arg (v,int));
3346 va_end (v);
3347 return s;
3350 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3351 function prototypes and stuff, but not '\xHH' hex character constants.
3352 These don't provoke an error unfortunately, instead are silently treated
3353 as 'x'. The following induces an error, until -std is added to get
3354 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3355 array size at least. It's necessary to write '\x00'==0 to get something
3356 that's true only with -std. */
3357 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3359 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3360 inside strings and character constants. */
3361 #define FOO(x) 'x'
3362 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3364 int test (int i, double x);
3365 struct s1 {int (*f) (int a);};
3366 struct s2 {int (*f) (double a);};
3367 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3368 int argc;
3369 char **argv;
3371 main ()
3373 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3375 return 0;
3377 _ACEOF
3378 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3379 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3381 CC="$ac_save_CC $ac_arg"
3382 if ac_fn_c_try_compile "$LINENO"; then :
3383 ac_cv_prog_cc_c89=$ac_arg
3385 rm -f core conftest.err conftest.$ac_objext
3386 test "x$ac_cv_prog_cc_c89" != "xno" && break
3387 done
3388 rm -f conftest.$ac_ext
3389 CC=$ac_save_CC
3392 # AC_CACHE_VAL
3393 case "x$ac_cv_prog_cc_c89" in
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3396 $as_echo "none needed" >&6; } ;;
3397 xno)
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3399 $as_echo "unsupported" >&6; } ;;
3401 CC="$CC $ac_cv_prog_cc_c89"
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3403 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3404 esac
3405 if test "x$ac_cv_prog_cc_c89" != xno; then :
3409 ac_ext=c
3410 ac_cpp='$CPP $CPPFLAGS'
3411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3417 # extra LD Flags which are required for targets
3421 case $host in
3422 *-cygwin* | *-mingw*)
3423 # 'host' will be top-level target in the case of a target lib,
3424 # we must compare to with_cross_host to decide if this is a native
3425 # or cross-compiler and select where to install dlls appropriately.
3426 if test -n "$with_cross_host" &&
3427 test x"$with_cross_host" != x"no"; then
3428 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
3429 else
3430 lt_host_flags='-no-undefined -bindir "$(bindir)"';
3434 lt_host_flags=
3436 esac
3441 # Add CET specific flags if CET is enabled
3443 # Check whether --enable-cet was given.
3444 if test "${enable_cet+set}" = set; then :
3445 enableval=$enable_cet;
3446 case "$enableval" in
3447 yes|no|auto) ;;
3448 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
3449 esac
3451 else
3452 enable_cet=auto
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
3457 $as_echo_n "checking for CET support... " >&6; }
3459 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
3460 case "$host" in
3461 i[34567]86-*-linux* | x86_64-*-linux*)
3462 case "$enable_cet" in
3463 auto)
3464 # Check if target supports multi-byte NOPs
3465 # and if compiler and assembler support CET insn.
3466 cet_save_CFLAGS="$CFLAGS"
3467 CFLAGS="$CFLAGS -fcf-protection"
3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h. */
3472 main ()
3475 #if !defined(__SSE2__)
3476 #error target does not support multi-byte NOPs
3477 #else
3478 asm ("setssbsy");
3479 #endif
3482 return 0;
3484 _ACEOF
3485 if ac_fn_c_try_compile "$LINENO"; then :
3486 enable_cet=yes
3487 else
3488 enable_cet=no
3490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3491 CFLAGS="$cet_save_CFLAGS"
3493 yes)
3494 # Check if assembler supports CET.
3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496 /* end confdefs.h. */
3499 main ()
3501 asm ("setssbsy");
3503 return 0;
3505 _ACEOF
3506 if ac_fn_c_try_compile "$LINENO"; then :
3508 else
3509 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
3511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513 esac
3516 enable_cet=no
3518 esac
3519 if test x$enable_cet = xyes; then
3520 CET_FLAGS="-fcf-protection -mshstk"
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3522 $as_echo "yes" >&6; }
3523 else
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525 $as_echo "no" >&6; }
3528 XCFLAGS="$XCFLAGS $CET_FLAGS"
3533 if test -n "$ac_tool_prefix"; then
3534 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3535 set dummy ${ac_tool_prefix}as; ac_word=$2
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3537 $as_echo_n "checking for $ac_word... " >&6; }
3538 if ${ac_cv_prog_AS+:} false; then :
3539 $as_echo_n "(cached) " >&6
3540 else
3541 if test -n "$AS"; then
3542 ac_cv_prog_AS="$AS" # Let the user override the test.
3543 else
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH
3547 IFS=$as_save_IFS
3548 test -z "$as_dir" && as_dir=.
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3551 ac_cv_prog_AS="${ac_tool_prefix}as"
3552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3553 break 2
3555 done
3556 done
3557 IFS=$as_save_IFS
3561 AS=$ac_cv_prog_AS
3562 if test -n "$AS"; then
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3564 $as_echo "$AS" >&6; }
3565 else
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 $as_echo "no" >&6; }
3572 if test -z "$ac_cv_prog_AS"; then
3573 ac_ct_AS=$AS
3574 # Extract the first word of "as", so it can be a program name with args.
3575 set dummy as; ac_word=$2
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3577 $as_echo_n "checking for $ac_word... " >&6; }
3578 if ${ac_cv_prog_ac_ct_AS+:} false; then :
3579 $as_echo_n "(cached) " >&6
3580 else
3581 if test -n "$ac_ct_AS"; then
3582 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3583 else
3584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 for as_dir in $PATH
3587 IFS=$as_save_IFS
3588 test -z "$as_dir" && as_dir=.
3589 for ac_exec_ext in '' $ac_executable_extensions; do
3590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3591 ac_cv_prog_ac_ct_AS="as"
3592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3593 break 2
3595 done
3596 done
3597 IFS=$as_save_IFS
3601 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3602 if test -n "$ac_ct_AS"; then
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3604 $as_echo "$ac_ct_AS" >&6; }
3605 else
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607 $as_echo "no" >&6; }
3610 if test "x$ac_ct_AS" = x; then
3611 AS=""
3612 else
3613 case $cross_compiling:$ac_tool_warned in
3614 yes:)
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3617 ac_tool_warned=yes ;;
3618 esac
3619 AS=$ac_ct_AS
3621 else
3622 AS="$ac_cv_prog_AS"
3625 if test -n "$ac_tool_prefix"; then
3626 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3627 set dummy ${ac_tool_prefix}ar; ac_word=$2
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629 $as_echo_n "checking for $ac_word... " >&6; }
3630 if ${ac_cv_prog_AR+:} false; then :
3631 $as_echo_n "(cached) " >&6
3632 else
3633 if test -n "$AR"; then
3634 ac_cv_prog_AR="$AR" # Let the user override the test.
3635 else
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 for as_dir in $PATH
3639 IFS=$as_save_IFS
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3643 ac_cv_prog_AR="${ac_tool_prefix}ar"
3644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3645 break 2
3647 done
3648 done
3649 IFS=$as_save_IFS
3653 AR=$ac_cv_prog_AR
3654 if test -n "$AR"; then
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3656 $as_echo "$AR" >&6; }
3657 else
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3664 if test -z "$ac_cv_prog_AR"; then
3665 ac_ct_AR=$AR
3666 # Extract the first word of "ar", so it can be a program name with args.
3667 set dummy ar; ac_word=$2
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3669 $as_echo_n "checking for $ac_word... " >&6; }
3670 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3671 $as_echo_n "(cached) " >&6
3672 else
3673 if test -n "$ac_ct_AR"; then
3674 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3675 else
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH
3679 IFS=$as_save_IFS
3680 test -z "$as_dir" && as_dir=.
3681 for ac_exec_ext in '' $ac_executable_extensions; do
3682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3683 ac_cv_prog_ac_ct_AR="ar"
3684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3685 break 2
3687 done
3688 done
3689 IFS=$as_save_IFS
3693 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3694 if test -n "$ac_ct_AR"; then
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3696 $as_echo "$ac_ct_AR" >&6; }
3697 else
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3699 $as_echo "no" >&6; }
3702 if test "x$ac_ct_AR" = x; then
3703 AR=""
3704 else
3705 case $cross_compiling:$ac_tool_warned in
3706 yes:)
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3709 ac_tool_warned=yes ;;
3710 esac
3711 AR=$ac_ct_AR
3713 else
3714 AR="$ac_cv_prog_AR"
3717 if test -n "$ac_tool_prefix"; then
3718 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3719 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3721 $as_echo_n "checking for $ac_word... " >&6; }
3722 if ${ac_cv_prog_RANLIB+:} false; then :
3723 $as_echo_n "(cached) " >&6
3724 else
3725 if test -n "$RANLIB"; then
3726 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3727 else
3728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3729 for as_dir in $PATH
3731 IFS=$as_save_IFS
3732 test -z "$as_dir" && as_dir=.
3733 for ac_exec_ext in '' $ac_executable_extensions; do
3734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3735 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3737 break 2
3739 done
3740 done
3741 IFS=$as_save_IFS
3745 RANLIB=$ac_cv_prog_RANLIB
3746 if test -n "$RANLIB"; then
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3748 $as_echo "$RANLIB" >&6; }
3749 else
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3751 $as_echo "no" >&6; }
3756 if test -z "$ac_cv_prog_RANLIB"; then
3757 ac_ct_RANLIB=$RANLIB
3758 # Extract the first word of "ranlib", so it can be a program name with args.
3759 set dummy ranlib; ac_word=$2
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3761 $as_echo_n "checking for $ac_word... " >&6; }
3762 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3763 $as_echo_n "(cached) " >&6
3764 else
3765 if test -n "$ac_ct_RANLIB"; then
3766 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3767 else
3768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769 for as_dir in $PATH
3771 IFS=$as_save_IFS
3772 test -z "$as_dir" && as_dir=.
3773 for ac_exec_ext in '' $ac_executable_extensions; do
3774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3775 ac_cv_prog_ac_ct_RANLIB="ranlib"
3776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3777 break 2
3779 done
3780 done
3781 IFS=$as_save_IFS
3785 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3786 if test -n "$ac_ct_RANLIB"; then
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3788 $as_echo "$ac_ct_RANLIB" >&6; }
3789 else
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3791 $as_echo "no" >&6; }
3794 if test "x$ac_ct_RANLIB" = x; then
3795 RANLIB=":"
3796 else
3797 case $cross_compiling:$ac_tool_warned in
3798 yes:)
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3801 ac_tool_warned=yes ;;
3802 esac
3803 RANLIB=$ac_ct_RANLIB
3805 else
3806 RANLIB="$ac_cv_prog_RANLIB"
3809 # Find a good install program. We prefer a C program (faster),
3810 # so one script is as good as another. But avoid the broken or
3811 # incompatible versions:
3812 # SysV /etc/install, /usr/sbin/install
3813 # SunOS /usr/etc/install
3814 # IRIX /sbin/install
3815 # AIX /bin/install
3816 # AmigaOS /C/install, which installs bootblocks on floppy discs
3817 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3818 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3819 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3820 # OS/2's system install, which has a completely different semantic
3821 # ./install, which can be erroneously created by make from ./install.sh.
3822 # Reject install programs that cannot install multiple files.
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3824 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3825 if test -z "$INSTALL"; then
3826 if ${ac_cv_path_install+:} false; then :
3827 $as_echo_n "(cached) " >&6
3828 else
3829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830 for as_dir in $PATH
3832 IFS=$as_save_IFS
3833 test -z "$as_dir" && as_dir=.
3834 # Account for people who put trailing slashes in PATH elements.
3835 case $as_dir/ in #((
3836 ./ | .// | /[cC]/* | \
3837 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3838 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3839 /usr/ucb/* ) ;;
3841 # OSF1 and SCO ODT 3.0 have their own names for install.
3842 # Don't use installbsd from OSF since it installs stuff as root
3843 # by default.
3844 for ac_prog in ginstall scoinst install; do
3845 for ac_exec_ext in '' $ac_executable_extensions; do
3846 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3847 if test $ac_prog = install &&
3848 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3849 # AIX install. It has an incompatible calling convention.
3851 elif test $ac_prog = install &&
3852 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3853 # program-specific install script used by HP pwplus--don't use.
3855 else
3856 rm -rf conftest.one conftest.two conftest.dir
3857 echo one > conftest.one
3858 echo two > conftest.two
3859 mkdir conftest.dir
3860 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3861 test -s conftest.one && test -s conftest.two &&
3862 test -s conftest.dir/conftest.one &&
3863 test -s conftest.dir/conftest.two
3864 then
3865 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3866 break 3
3870 done
3871 done
3873 esac
3875 done
3876 IFS=$as_save_IFS
3878 rm -rf conftest.one conftest.two conftest.dir
3881 if test "${ac_cv_path_install+set}" = set; then
3882 INSTALL=$ac_cv_path_install
3883 else
3884 # As a last resort, use the slow shell script. Don't cache a
3885 # value for INSTALL within a source directory, because that will
3886 # break other packages using the cache if that directory is
3887 # removed, or if the value is a relative name.
3888 INSTALL=$ac_install_sh
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3892 $as_echo "$INSTALL" >&6; }
3894 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3895 # It thinks the first close brace ends the variable substitution.
3896 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3898 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3900 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3905 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3906 # Check whether --enable-maintainer-mode was given.
3907 if test "${enable_maintainer_mode+set}" = set; then :
3908 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3909 else
3910 USE_MAINTAINER_MODE=no
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3914 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3915 if test $USE_MAINTAINER_MODE = yes; then
3916 MAINTAINER_MODE_TRUE=
3917 MAINTAINER_MODE_FALSE='#'
3918 else
3919 MAINTAINER_MODE_TRUE='#'
3920 MAINTAINER_MODE_FALSE=
3923 MAINT=$MAINTAINER_MODE_TRUE
3927 # Enable Win32 DLL on MS Windows - FIXME
3928 enable_win32_dll=yes
3930 case $host in
3931 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
3932 if test -n "$ac_tool_prefix"; then
3933 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3934 set dummy ${ac_tool_prefix}as; ac_word=$2
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3936 $as_echo_n "checking for $ac_word... " >&6; }
3937 if ${ac_cv_prog_AS+:} false; then :
3938 $as_echo_n "(cached) " >&6
3939 else
3940 if test -n "$AS"; then
3941 ac_cv_prog_AS="$AS" # Let the user override the test.
3942 else
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 for as_dir in $PATH
3946 IFS=$as_save_IFS
3947 test -z "$as_dir" && as_dir=.
3948 for ac_exec_ext in '' $ac_executable_extensions; do
3949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3950 ac_cv_prog_AS="${ac_tool_prefix}as"
3951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3952 break 2
3954 done
3955 done
3956 IFS=$as_save_IFS
3960 AS=$ac_cv_prog_AS
3961 if test -n "$AS"; then
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3963 $as_echo "$AS" >&6; }
3964 else
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966 $as_echo "no" >&6; }
3971 if test -z "$ac_cv_prog_AS"; then
3972 ac_ct_AS=$AS
3973 # Extract the first word of "as", so it can be a program name with args.
3974 set dummy as; ac_word=$2
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3976 $as_echo_n "checking for $ac_word... " >&6; }
3977 if ${ac_cv_prog_ac_ct_AS+:} false; then :
3978 $as_echo_n "(cached) " >&6
3979 else
3980 if test -n "$ac_ct_AS"; then
3981 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3982 else
3983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984 for as_dir in $PATH
3986 IFS=$as_save_IFS
3987 test -z "$as_dir" && as_dir=.
3988 for ac_exec_ext in '' $ac_executable_extensions; do
3989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3990 ac_cv_prog_ac_ct_AS="as"
3991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3992 break 2
3994 done
3995 done
3996 IFS=$as_save_IFS
4000 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4001 if test -n "$ac_ct_AS"; then
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4003 $as_echo "$ac_ct_AS" >&6; }
4004 else
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4006 $as_echo "no" >&6; }
4009 if test "x$ac_ct_AS" = x; then
4010 AS="false"
4011 else
4012 case $cross_compiling:$ac_tool_warned in
4013 yes:)
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4016 ac_tool_warned=yes ;;
4017 esac
4018 AS=$ac_ct_AS
4020 else
4021 AS="$ac_cv_prog_AS"
4024 if test -n "$ac_tool_prefix"; then
4025 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4026 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4028 $as_echo_n "checking for $ac_word... " >&6; }
4029 if ${ac_cv_prog_DLLTOOL+:} false; then :
4030 $as_echo_n "(cached) " >&6
4031 else
4032 if test -n "$DLLTOOL"; then
4033 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4034 else
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 for as_dir in $PATH
4038 IFS=$as_save_IFS
4039 test -z "$as_dir" && as_dir=.
4040 for ac_exec_ext in '' $ac_executable_extensions; do
4041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4042 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4044 break 2
4046 done
4047 done
4048 IFS=$as_save_IFS
4052 DLLTOOL=$ac_cv_prog_DLLTOOL
4053 if test -n "$DLLTOOL"; then
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4055 $as_echo "$DLLTOOL" >&6; }
4056 else
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4058 $as_echo "no" >&6; }
4063 if test -z "$ac_cv_prog_DLLTOOL"; then
4064 ac_ct_DLLTOOL=$DLLTOOL
4065 # Extract the first word of "dlltool", so it can be a program name with args.
4066 set dummy dlltool; ac_word=$2
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4068 $as_echo_n "checking for $ac_word... " >&6; }
4069 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4070 $as_echo_n "(cached) " >&6
4071 else
4072 if test -n "$ac_ct_DLLTOOL"; then
4073 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4074 else
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 for as_dir in $PATH
4078 IFS=$as_save_IFS
4079 test -z "$as_dir" && as_dir=.
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4082 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4084 break 2
4086 done
4087 done
4088 IFS=$as_save_IFS
4092 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4093 if test -n "$ac_ct_DLLTOOL"; then
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4095 $as_echo "$ac_ct_DLLTOOL" >&6; }
4096 else
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098 $as_echo "no" >&6; }
4101 if test "x$ac_ct_DLLTOOL" = x; then
4102 DLLTOOL="false"
4103 else
4104 case $cross_compiling:$ac_tool_warned in
4105 yes:)
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4108 ac_tool_warned=yes ;;
4109 esac
4110 DLLTOOL=$ac_ct_DLLTOOL
4112 else
4113 DLLTOOL="$ac_cv_prog_DLLTOOL"
4116 if test -n "$ac_tool_prefix"; then
4117 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4118 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4120 $as_echo_n "checking for $ac_word... " >&6; }
4121 if ${ac_cv_prog_OBJDUMP+:} false; then :
4122 $as_echo_n "(cached) " >&6
4123 else
4124 if test -n "$OBJDUMP"; then
4125 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4126 else
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4130 IFS=$as_save_IFS
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4136 break 2
4138 done
4139 done
4140 IFS=$as_save_IFS
4144 OBJDUMP=$ac_cv_prog_OBJDUMP
4145 if test -n "$OBJDUMP"; then
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4147 $as_echo "$OBJDUMP" >&6; }
4148 else
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4150 $as_echo "no" >&6; }
4155 if test -z "$ac_cv_prog_OBJDUMP"; then
4156 ac_ct_OBJDUMP=$OBJDUMP
4157 # Extract the first word of "objdump", so it can be a program name with args.
4158 set dummy objdump; ac_word=$2
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4160 $as_echo_n "checking for $ac_word... " >&6; }
4161 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4162 $as_echo_n "(cached) " >&6
4163 else
4164 if test -n "$ac_ct_OBJDUMP"; then
4165 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4166 else
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 for as_dir in $PATH
4170 IFS=$as_save_IFS
4171 test -z "$as_dir" && as_dir=.
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4174 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4176 break 2
4178 done
4179 done
4180 IFS=$as_save_IFS
4184 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4185 if test -n "$ac_ct_OBJDUMP"; then
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4187 $as_echo "$ac_ct_OBJDUMP" >&6; }
4188 else
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4190 $as_echo "no" >&6; }
4193 if test "x$ac_ct_OBJDUMP" = x; then
4194 OBJDUMP="false"
4195 else
4196 case $cross_compiling:$ac_tool_warned in
4197 yes:)
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4200 ac_tool_warned=yes ;;
4201 esac
4202 OBJDUMP=$ac_ct_OBJDUMP
4204 else
4205 OBJDUMP="$ac_cv_prog_OBJDUMP"
4209 esac
4211 test -z "$AS" && AS=as
4217 test -z "$DLLTOOL" && DLLTOOL=dlltool
4223 test -z "$OBJDUMP" && OBJDUMP=objdump
4232 case `pwd` in
4233 *\ * | *\ *)
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4235 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4236 esac
4240 macro_version='2.2.7a'
4241 macro_revision='1.3134'
4255 ltmain="$ac_aux_dir/ltmain.sh"
4257 # Backslashify metacharacters that are still active within
4258 # double-quoted strings.
4259 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4261 # Same as above, but do not quote variable references.
4262 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4264 # Sed substitution to delay expansion of an escaped shell variable in a
4265 # double_quote_subst'ed string.
4266 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4268 # Sed substitution to delay expansion of an escaped single quote.
4269 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4271 # Sed substitution to avoid accidental globbing in evaled expressions
4272 no_glob_subst='s/\*/\\\*/g'
4274 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4275 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4276 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4279 $as_echo_n "checking how to print strings... " >&6; }
4280 # Test print first, because it will be a builtin if present.
4281 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4282 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4283 ECHO='print -r --'
4284 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4285 ECHO='printf %s\n'
4286 else
4287 # Use this function as a fallback that always works.
4288 func_fallback_echo ()
4290 eval 'cat <<_LTECHO_EOF
4292 _LTECHO_EOF'
4294 ECHO='func_fallback_echo'
4297 # func_echo_all arg...
4298 # Invoke $ECHO with all args, space-separated.
4299 func_echo_all ()
4301 $ECHO ""
4304 case "$ECHO" in
4305 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4306 $as_echo "printf" >&6; } ;;
4307 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4308 $as_echo "print -r" >&6; } ;;
4309 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4310 $as_echo "cat" >&6; } ;;
4311 esac
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4327 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4328 if ${ac_cv_path_SED+:} false; then :
4329 $as_echo_n "(cached) " >&6
4330 else
4331 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4332 for ac_i in 1 2 3 4 5 6 7; do
4333 ac_script="$ac_script$as_nl$ac_script"
4334 done
4335 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4336 { ac_script=; unset ac_script;}
4337 if test -z "$SED"; then
4338 ac_path_SED_found=false
4339 # Loop through the user's path and test for each of PROGNAME-LIST
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 for as_dir in $PATH
4343 IFS=$as_save_IFS
4344 test -z "$as_dir" && as_dir=.
4345 for ac_prog in sed gsed; do
4346 for ac_exec_ext in '' $ac_executable_extensions; do
4347 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4348 as_fn_executable_p "$ac_path_SED" || continue
4349 # Check for GNU ac_path_SED and select it if it is found.
4350 # Check for GNU $ac_path_SED
4351 case `"$ac_path_SED" --version 2>&1` in
4352 *GNU*)
4353 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4355 ac_count=0
4356 $as_echo_n 0123456789 >"conftest.in"
4357 while :
4359 cat "conftest.in" "conftest.in" >"conftest.tmp"
4360 mv "conftest.tmp" "conftest.in"
4361 cp "conftest.in" "conftest.nl"
4362 $as_echo '' >> "conftest.nl"
4363 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4364 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4365 as_fn_arith $ac_count + 1 && ac_count=$as_val
4366 if test $ac_count -gt ${ac_path_SED_max-0}; then
4367 # Best one so far, save it but keep looking for a better one
4368 ac_cv_path_SED="$ac_path_SED"
4369 ac_path_SED_max=$ac_count
4371 # 10*(2^10) chars as input seems more than enough
4372 test $ac_count -gt 10 && break
4373 done
4374 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4375 esac
4377 $ac_path_SED_found && break 3
4378 done
4379 done
4380 done
4381 IFS=$as_save_IFS
4382 if test -z "$ac_cv_path_SED"; then
4383 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4385 else
4386 ac_cv_path_SED=$SED
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4391 $as_echo "$ac_cv_path_SED" >&6; }
4392 SED="$ac_cv_path_SED"
4393 rm -f conftest.sed
4395 test -z "$SED" && SED=sed
4396 Xsed="$SED -e 1s/^X//"
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4409 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4410 if ${ac_cv_path_GREP+:} false; then :
4411 $as_echo_n "(cached) " >&6
4412 else
4413 if test -z "$GREP"; then
4414 ac_path_GREP_found=false
4415 # Loop through the user's path and test for each of PROGNAME-LIST
4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4419 IFS=$as_save_IFS
4420 test -z "$as_dir" && as_dir=.
4421 for ac_prog in grep ggrep; do
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4424 as_fn_executable_p "$ac_path_GREP" || continue
4425 # Check for GNU ac_path_GREP and select it if it is found.
4426 # Check for GNU $ac_path_GREP
4427 case `"$ac_path_GREP" --version 2>&1` in
4428 *GNU*)
4429 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4431 ac_count=0
4432 $as_echo_n 0123456789 >"conftest.in"
4433 while :
4435 cat "conftest.in" "conftest.in" >"conftest.tmp"
4436 mv "conftest.tmp" "conftest.in"
4437 cp "conftest.in" "conftest.nl"
4438 $as_echo 'GREP' >> "conftest.nl"
4439 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4440 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4441 as_fn_arith $ac_count + 1 && ac_count=$as_val
4442 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4443 # Best one so far, save it but keep looking for a better one
4444 ac_cv_path_GREP="$ac_path_GREP"
4445 ac_path_GREP_max=$ac_count
4447 # 10*(2^10) chars as input seems more than enough
4448 test $ac_count -gt 10 && break
4449 done
4450 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4451 esac
4453 $ac_path_GREP_found && break 3
4454 done
4455 done
4456 done
4457 IFS=$as_save_IFS
4458 if test -z "$ac_cv_path_GREP"; then
4459 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4461 else
4462 ac_cv_path_GREP=$GREP
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4467 $as_echo "$ac_cv_path_GREP" >&6; }
4468 GREP="$ac_cv_path_GREP"
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4472 $as_echo_n "checking for egrep... " >&6; }
4473 if ${ac_cv_path_EGREP+:} false; then :
4474 $as_echo_n "(cached) " >&6
4475 else
4476 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4477 then ac_cv_path_EGREP="$GREP -E"
4478 else
4479 if test -z "$EGREP"; then
4480 ac_path_EGREP_found=false
4481 # Loop through the user's path and test for each of PROGNAME-LIST
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4485 IFS=$as_save_IFS
4486 test -z "$as_dir" && as_dir=.
4487 for ac_prog in egrep; do
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4490 as_fn_executable_p "$ac_path_EGREP" || continue
4491 # Check for GNU ac_path_EGREP and select it if it is found.
4492 # Check for GNU $ac_path_EGREP
4493 case `"$ac_path_EGREP" --version 2>&1` in
4494 *GNU*)
4495 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4497 ac_count=0
4498 $as_echo_n 0123456789 >"conftest.in"
4499 while :
4501 cat "conftest.in" "conftest.in" >"conftest.tmp"
4502 mv "conftest.tmp" "conftest.in"
4503 cp "conftest.in" "conftest.nl"
4504 $as_echo 'EGREP' >> "conftest.nl"
4505 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4506 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4507 as_fn_arith $ac_count + 1 && ac_count=$as_val
4508 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4509 # Best one so far, save it but keep looking for a better one
4510 ac_cv_path_EGREP="$ac_path_EGREP"
4511 ac_path_EGREP_max=$ac_count
4513 # 10*(2^10) chars as input seems more than enough
4514 test $ac_count -gt 10 && break
4515 done
4516 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4517 esac
4519 $ac_path_EGREP_found && break 3
4520 done
4521 done
4522 done
4523 IFS=$as_save_IFS
4524 if test -z "$ac_cv_path_EGREP"; then
4525 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4527 else
4528 ac_cv_path_EGREP=$EGREP
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4534 $as_echo "$ac_cv_path_EGREP" >&6; }
4535 EGREP="$ac_cv_path_EGREP"
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4539 $as_echo_n "checking for fgrep... " >&6; }
4540 if ${ac_cv_path_FGREP+:} false; then :
4541 $as_echo_n "(cached) " >&6
4542 else
4543 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4544 then ac_cv_path_FGREP="$GREP -F"
4545 else
4546 if test -z "$FGREP"; then
4547 ac_path_FGREP_found=false
4548 # Loop through the user's path and test for each of PROGNAME-LIST
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4552 IFS=$as_save_IFS
4553 test -z "$as_dir" && as_dir=.
4554 for ac_prog in fgrep; do
4555 for ac_exec_ext in '' $ac_executable_extensions; do
4556 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4557 as_fn_executable_p "$ac_path_FGREP" || continue
4558 # Check for GNU ac_path_FGREP and select it if it is found.
4559 # Check for GNU $ac_path_FGREP
4560 case `"$ac_path_FGREP" --version 2>&1` in
4561 *GNU*)
4562 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4564 ac_count=0
4565 $as_echo_n 0123456789 >"conftest.in"
4566 while :
4568 cat "conftest.in" "conftest.in" >"conftest.tmp"
4569 mv "conftest.tmp" "conftest.in"
4570 cp "conftest.in" "conftest.nl"
4571 $as_echo 'FGREP' >> "conftest.nl"
4572 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4573 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4574 as_fn_arith $ac_count + 1 && ac_count=$as_val
4575 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4576 # Best one so far, save it but keep looking for a better one
4577 ac_cv_path_FGREP="$ac_path_FGREP"
4578 ac_path_FGREP_max=$ac_count
4580 # 10*(2^10) chars as input seems more than enough
4581 test $ac_count -gt 10 && break
4582 done
4583 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4584 esac
4586 $ac_path_FGREP_found && break 3
4587 done
4588 done
4589 done
4590 IFS=$as_save_IFS
4591 if test -z "$ac_cv_path_FGREP"; then
4592 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4594 else
4595 ac_cv_path_FGREP=$FGREP
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4601 $as_echo "$ac_cv_path_FGREP" >&6; }
4602 FGREP="$ac_cv_path_FGREP"
4605 test -z "$GREP" && GREP=grep
4625 # Check whether --with-gnu-ld was given.
4626 if test "${with_gnu_ld+set}" = set; then :
4627 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4628 else
4629 with_gnu_ld=no
4632 ac_prog=ld
4633 if test "$GCC" = yes; then
4634 # Check if gcc -print-prog-name=ld gives a path.
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4636 $as_echo_n "checking for ld used by $CC... " >&6; }
4637 case $host in
4638 *-*-mingw*)
4639 # gcc leaves a trailing carriage return which upsets mingw
4640 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4642 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4643 esac
4644 case $ac_prog in
4645 # Accept absolute paths.
4646 [\\/]* | ?:[\\/]*)
4647 re_direlt='/[^/][^/]*/\.\./'
4648 # Canonicalize the pathname of ld
4649 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4650 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4651 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4652 done
4653 test -z "$LD" && LD="$ac_prog"
4656 # If it fails, then pretend we aren't using GCC.
4657 ac_prog=ld
4660 # If it is relative, then search for the first ld in PATH.
4661 with_gnu_ld=unknown
4663 esac
4664 elif test "$with_gnu_ld" = yes; then
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4666 $as_echo_n "checking for GNU ld... " >&6; }
4667 else
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4669 $as_echo_n "checking for non-GNU ld... " >&6; }
4671 if ${lt_cv_path_LD+:} false; then :
4672 $as_echo_n "(cached) " >&6
4673 else
4674 if test -z "$LD"; then
4675 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4676 for ac_dir in $PATH; do
4677 IFS="$lt_save_ifs"
4678 test -z "$ac_dir" && ac_dir=.
4679 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4680 lt_cv_path_LD="$ac_dir/$ac_prog"
4681 # Check to see if the program is GNU ld. I'd rather use --version,
4682 # but apparently some variants of GNU ld only accept -v.
4683 # Break only if it was the GNU/non-GNU ld that we prefer.
4684 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4685 *GNU* | *'with BFD'*)
4686 test "$with_gnu_ld" != no && break
4689 test "$with_gnu_ld" != yes && break
4691 esac
4693 done
4694 IFS="$lt_save_ifs"
4695 else
4696 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4700 LD="$lt_cv_path_LD"
4701 if test -n "$LD"; then
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4703 $as_echo "$LD" >&6; }
4704 else
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4706 $as_echo "no" >&6; }
4708 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4710 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4711 if ${lt_cv_prog_gnu_ld+:} false; then :
4712 $as_echo_n "(cached) " >&6
4713 else
4714 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4715 case `$LD -v 2>&1 </dev/null` in
4716 *GNU* | *'with BFD'*)
4717 lt_cv_prog_gnu_ld=yes
4720 lt_cv_prog_gnu_ld=no
4722 esac
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4725 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4726 with_gnu_ld=$lt_cv_prog_gnu_ld
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4737 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4738 if ${lt_cv_path_NM+:} false; then :
4739 $as_echo_n "(cached) " >&6
4740 else
4741 if test -n "$NM"; then
4742 # Let the user override the nm to test.
4743 lt_nm_to_check="$NM"
4744 else
4745 lt_nm_to_check="${ac_tool_prefix}nm"
4746 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4747 lt_nm_to_check="$lt_nm_to_check nm"
4750 for lt_tmp_nm in "$lt_nm_to_check"; do
4751 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4752 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4753 IFS="$lt_save_ifs"
4754 test -z "$ac_dir" && ac_dir=.
4755 # Strip out any user-provided options from the nm to test twice,
4756 # the first time to test to see if nm (rather than its options) has
4757 # an explicit path, the second time to yield a file which can be
4758 # nm'ed itself.
4759 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
4760 case "$tmp_nm_path" in
4761 */*|*\\*) tmp_nm="$lt_tmp_nm";;
4762 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
4763 esac
4764 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
4765 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
4766 # Check to see if the nm accepts a BSD-compat flag.
4767 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4768 # nm: unknown option "B" ignored
4769 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
4770 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
4771 break
4774 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
4775 *$tmp_nm*)
4776 lt_cv_path_NM="$tmp_nm -p"
4777 break
4780 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4781 continue # so that we can try to find one that supports BSD flags
4783 esac
4785 esac
4787 done
4788 IFS="$lt_save_ifs"
4789 done
4790 : ${lt_cv_path_NM=no}
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4793 $as_echo "$lt_cv_path_NM" >&6; }
4794 if test "$lt_cv_path_NM" != "no"; then
4795 NM="$lt_cv_path_NM"
4796 else
4797 # Didn't find any BSD compatible name lister, look for dumpbin.
4798 if test -n "$DUMPBIN"; then :
4799 # Let the user override the test.
4800 else
4801 if test -n "$ac_tool_prefix"; then
4802 for ac_prog in dumpbin "link -dump"
4804 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4805 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807 $as_echo_n "checking for $ac_word... " >&6; }
4808 if ${ac_cv_prog_DUMPBIN+:} false; then :
4809 $as_echo_n "(cached) " >&6
4810 else
4811 if test -n "$DUMPBIN"; then
4812 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4813 else
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 for as_dir in $PATH
4817 IFS=$as_save_IFS
4818 test -z "$as_dir" && as_dir=.
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4821 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4823 break 2
4825 done
4826 done
4827 IFS=$as_save_IFS
4831 DUMPBIN=$ac_cv_prog_DUMPBIN
4832 if test -n "$DUMPBIN"; then
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4834 $as_echo "$DUMPBIN" >&6; }
4835 else
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4837 $as_echo "no" >&6; }
4841 test -n "$DUMPBIN" && break
4842 done
4844 if test -z "$DUMPBIN"; then
4845 ac_ct_DUMPBIN=$DUMPBIN
4846 for ac_prog in dumpbin "link -dump"
4848 # Extract the first word of "$ac_prog", so it can be a program name with args.
4849 set dummy $ac_prog; ac_word=$2
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4851 $as_echo_n "checking for $ac_word... " >&6; }
4852 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4853 $as_echo_n "(cached) " >&6
4854 else
4855 if test -n "$ac_ct_DUMPBIN"; then
4856 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4857 else
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 for as_dir in $PATH
4861 IFS=$as_save_IFS
4862 test -z "$as_dir" && as_dir=.
4863 for ac_exec_ext in '' $ac_executable_extensions; do
4864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4865 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 break 2
4869 done
4870 done
4871 IFS=$as_save_IFS
4875 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4876 if test -n "$ac_ct_DUMPBIN"; then
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4878 $as_echo "$ac_ct_DUMPBIN" >&6; }
4879 else
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4881 $as_echo "no" >&6; }
4885 test -n "$ac_ct_DUMPBIN" && break
4886 done
4888 if test "x$ac_ct_DUMPBIN" = x; then
4889 DUMPBIN=":"
4890 else
4891 case $cross_compiling:$ac_tool_warned in
4892 yes:)
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4895 ac_tool_warned=yes ;;
4896 esac
4897 DUMPBIN=$ac_ct_DUMPBIN
4901 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4902 *COFF*)
4903 DUMPBIN="$DUMPBIN -symbols"
4906 DUMPBIN=:
4908 esac
4911 if test "$DUMPBIN" != ":"; then
4912 NM="$DUMPBIN"
4915 test -z "$NM" && NM=nm
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4923 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4924 if ${lt_cv_nm_interface+:} false; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 lt_cv_nm_interface="BSD nm"
4928 echo "int some_variable = 0;" > conftest.$ac_ext
4929 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4930 (eval "$ac_compile" 2>conftest.err)
4931 cat conftest.err >&5
4932 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4933 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4934 cat conftest.err >&5
4935 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4936 cat conftest.out >&5
4937 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4938 lt_cv_nm_interface="MS dumpbin"
4940 rm -f conftest*
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4943 $as_echo "$lt_cv_nm_interface" >&6; }
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4946 $as_echo_n "checking whether ln -s works... " >&6; }
4947 LN_S=$as_ln_s
4948 if test "$LN_S" = "ln -s"; then
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4950 $as_echo "yes" >&6; }
4951 else
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4953 $as_echo "no, using $LN_S" >&6; }
4956 # find the maximum length of command line arguments
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4958 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4959 if ${lt_cv_sys_max_cmd_len+:} false; then :
4960 $as_echo_n "(cached) " >&6
4961 else
4963 teststring="ABCD"
4965 case $build_os in
4966 msdosdjgpp*)
4967 # On DJGPP, this test can blow up pretty badly due to problems in libc
4968 # (any single argument exceeding 2000 bytes causes a buffer overrun
4969 # during glob expansion). Even if it were fixed, the result of this
4970 # check would be larger than it should be.
4971 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4974 gnu*)
4975 # Under GNU Hurd, this test is not required because there is
4976 # no limit to the length of command line arguments.
4977 # Libtool will interpret -1 as no limit whatsoever
4978 lt_cv_sys_max_cmd_len=-1;
4981 cygwin* | mingw* | cegcc*)
4982 # On Win9x/ME, this test blows up -- it succeeds, but takes
4983 # about 5 minutes as the teststring grows exponentially.
4984 # Worse, since 9x/ME are not pre-emptively multitasking,
4985 # you end up with a "frozen" computer, even though with patience
4986 # the test eventually succeeds (with a max line length of 256k).
4987 # Instead, let's just punt: use the minimum linelength reported by
4988 # all of the supported platforms: 8192 (on NT/2K/XP).
4989 lt_cv_sys_max_cmd_len=8192;
4992 mint*)
4993 # On MiNT this can take a long time and run out of memory.
4994 lt_cv_sys_max_cmd_len=8192;
4997 amigaos*)
4998 # On AmigaOS with pdksh, this test takes hours, literally.
4999 # So we just punt and use a minimum line length of 8192.
5000 lt_cv_sys_max_cmd_len=8192;
5003 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5004 # This has been around since 386BSD, at least. Likely further.
5005 if test -x /sbin/sysctl; then
5006 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5007 elif test -x /usr/sbin/sysctl; then
5008 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5009 else
5010 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5012 # And add a safety zone
5013 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5014 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5017 interix*)
5018 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5019 lt_cv_sys_max_cmd_len=196608
5022 osf*)
5023 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5024 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5025 # nice to cause kernel panics so lets avoid the loop below.
5026 # First set a reasonable default.
5027 lt_cv_sys_max_cmd_len=16384
5029 if test -x /sbin/sysconfig; then
5030 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5031 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5032 esac
5035 sco3.2v5*)
5036 lt_cv_sys_max_cmd_len=102400
5038 sysv5* | sco5v6* | sysv4.2uw2*)
5039 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5040 if test -n "$kargmax"; then
5041 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5042 else
5043 lt_cv_sys_max_cmd_len=32768
5047 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5048 if test -n "$lt_cv_sys_max_cmd_len"; then
5049 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5050 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5051 else
5052 # Make teststring a little bigger before we do anything with it.
5053 # a 1K string should be a reasonable start.
5054 for i in 1 2 3 4 5 6 7 8 ; do
5055 teststring=$teststring$teststring
5056 done
5057 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5058 # If test is not a shell built-in, we'll probably end up computing a
5059 # maximum length that is only half of the actual maximum length, but
5060 # we can't tell.
5061 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5062 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5063 test $i != 17 # 1/2 MB should be enough
5065 i=`expr $i + 1`
5066 teststring=$teststring$teststring
5067 done
5068 # Only check the string length outside the loop.
5069 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5070 teststring=
5071 # Add a significant safety factor because C++ compilers can tack on
5072 # massive amounts of additional arguments before passing them to the
5073 # linker. It appears as though 1/2 is a usable value.
5074 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5077 esac
5081 if test -n $lt_cv_sys_max_cmd_len ; then
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5083 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5084 else
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5086 $as_echo "none" >&6; }
5088 max_cmd_len=$lt_cv_sys_max_cmd_len
5095 : ${CP="cp -f"}
5096 : ${MV="mv -f"}
5097 : ${RM="rm -f"}
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5100 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5101 # Try some XSI features
5102 xsi_shell=no
5103 ( _lt_dummy="a/b/c"
5104 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5105 = c,a/b,, \
5106 && eval 'test $(( 1 + 1 )) -eq 2 \
5107 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5108 && xsi_shell=yes
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5110 $as_echo "$xsi_shell" >&6; }
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5114 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5115 lt_shell_append=no
5116 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5117 >/dev/null 2>&1 \
5118 && lt_shell_append=yes
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5120 $as_echo "$lt_shell_append" >&6; }
5123 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5124 lt_unset=unset
5125 else
5126 lt_unset=false
5133 # test EBCDIC or ASCII
5134 case `echo X|tr X '\101'` in
5135 A) # ASCII based system
5136 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5137 lt_SP2NL='tr \040 \012'
5138 lt_NL2SP='tr \015\012 \040\040'
5140 *) # EBCDIC based system
5141 lt_SP2NL='tr \100 \n'
5142 lt_NL2SP='tr \r\n \100\100'
5144 esac
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5155 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5156 if ${lt_cv_ld_reload_flag+:} false; then :
5157 $as_echo_n "(cached) " >&6
5158 else
5159 lt_cv_ld_reload_flag='-r'
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5162 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5163 reload_flag=$lt_cv_ld_reload_flag
5164 case $reload_flag in
5165 "" | " "*) ;;
5166 *) reload_flag=" $reload_flag" ;;
5167 esac
5168 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5169 case $host_os in
5170 darwin*)
5171 if test "$GCC" = yes; then
5172 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5173 else
5174 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5177 esac
5187 if test -n "$ac_tool_prefix"; then
5188 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5189 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5191 $as_echo_n "checking for $ac_word... " >&6; }
5192 if ${ac_cv_prog_OBJDUMP+:} false; then :
5193 $as_echo_n "(cached) " >&6
5194 else
5195 if test -n "$OBJDUMP"; then
5196 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5197 else
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 for as_dir in $PATH
5201 IFS=$as_save_IFS
5202 test -z "$as_dir" && as_dir=.
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5205 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 break 2
5209 done
5210 done
5211 IFS=$as_save_IFS
5215 OBJDUMP=$ac_cv_prog_OBJDUMP
5216 if test -n "$OBJDUMP"; then
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5218 $as_echo "$OBJDUMP" >&6; }
5219 else
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221 $as_echo "no" >&6; }
5226 if test -z "$ac_cv_prog_OBJDUMP"; then
5227 ac_ct_OBJDUMP=$OBJDUMP
5228 # Extract the first word of "objdump", so it can be a program name with args.
5229 set dummy objdump; ac_word=$2
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5231 $as_echo_n "checking for $ac_word... " >&6; }
5232 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5233 $as_echo_n "(cached) " >&6
5234 else
5235 if test -n "$ac_ct_OBJDUMP"; then
5236 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5237 else
5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239 for as_dir in $PATH
5241 IFS=$as_save_IFS
5242 test -z "$as_dir" && as_dir=.
5243 for ac_exec_ext in '' $ac_executable_extensions; do
5244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5245 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5247 break 2
5249 done
5250 done
5251 IFS=$as_save_IFS
5255 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5256 if test -n "$ac_ct_OBJDUMP"; then
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5258 $as_echo "$ac_ct_OBJDUMP" >&6; }
5259 else
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5261 $as_echo "no" >&6; }
5264 if test "x$ac_ct_OBJDUMP" = x; then
5265 OBJDUMP="false"
5266 else
5267 case $cross_compiling:$ac_tool_warned in
5268 yes:)
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5271 ac_tool_warned=yes ;;
5272 esac
5273 OBJDUMP=$ac_ct_OBJDUMP
5275 else
5276 OBJDUMP="$ac_cv_prog_OBJDUMP"
5279 test -z "$OBJDUMP" && OBJDUMP=objdump
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5287 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5288 if ${lt_cv_deplibs_check_method+:} false; then :
5289 $as_echo_n "(cached) " >&6
5290 else
5291 lt_cv_file_magic_cmd='$MAGIC_CMD'
5292 lt_cv_file_magic_test_file=
5293 lt_cv_deplibs_check_method='unknown'
5294 # Need to set the preceding variable on all platforms that support
5295 # interlibrary dependencies.
5296 # 'none' -- dependencies not supported.
5297 # `unknown' -- same as none, but documents that we really don't know.
5298 # 'pass_all' -- all dependencies passed with no checks.
5299 # 'test_compile' -- check by making test program.
5300 # 'file_magic [[regex]]' -- check by looking for files in library path
5301 # which responds to the $file_magic_cmd with a given extended regex.
5302 # If you have `file' or equivalent on your system and you're not sure
5303 # whether `pass_all' will *always* work, you probably want this one.
5305 case $host_os in
5306 aix[4-9]*)
5307 lt_cv_deplibs_check_method=pass_all
5310 beos*)
5311 lt_cv_deplibs_check_method=pass_all
5314 bsdi[45]*)
5315 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5316 lt_cv_file_magic_cmd='/usr/bin/file -L'
5317 lt_cv_file_magic_test_file=/shlib/libc.so
5320 cygwin*)
5321 # func_win32_libid is a shell function defined in ltmain.sh
5322 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5323 lt_cv_file_magic_cmd='func_win32_libid'
5326 mingw* | pw32*)
5327 # Base MSYS/MinGW do not provide the 'file' command needed by
5328 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5329 # unless we find 'file', for example because we are cross-compiling.
5330 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5331 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5332 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5333 lt_cv_file_magic_cmd='func_win32_libid'
5334 else
5335 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5336 lt_cv_file_magic_cmd='$OBJDUMP -f'
5340 cegcc*)
5341 # use the weaker test based on 'objdump'. See mingw*.
5342 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5343 lt_cv_file_magic_cmd='$OBJDUMP -f'
5346 darwin* | rhapsody*)
5347 lt_cv_deplibs_check_method=pass_all
5350 freebsd* | dragonfly*)
5351 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5352 case $host_cpu in
5353 i*86 )
5354 # Not sure whether the presence of OpenBSD here was a mistake.
5355 # Let's accept both of them until this is cleared up.
5356 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5357 lt_cv_file_magic_cmd=/usr/bin/file
5358 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5360 esac
5361 else
5362 lt_cv_deplibs_check_method=pass_all
5366 gnu*)
5367 lt_cv_deplibs_check_method=pass_all
5370 haiku*)
5371 lt_cv_deplibs_check_method=pass_all
5374 hpux10.20* | hpux11*)
5375 lt_cv_file_magic_cmd=/usr/bin/file
5376 case $host_cpu in
5377 ia64*)
5378 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5379 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5381 hppa*64*)
5382 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]'
5383 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5386 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5387 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5389 esac
5392 interix[3-9]*)
5393 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5394 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5397 irix5* | irix6* | nonstopux*)
5398 case $LD in
5399 *-32|*"-32 ") libmagic=32-bit;;
5400 *-n32|*"-n32 ") libmagic=N32;;
5401 *-64|*"-64 ") libmagic=64-bit;;
5402 *) libmagic=never-match;;
5403 esac
5404 lt_cv_deplibs_check_method=pass_all
5407 # This must be Linux ELF.
5408 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
5409 lt_cv_deplibs_check_method=pass_all
5412 netbsd*)
5413 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5414 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5415 else
5416 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5420 newos6*)
5421 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5422 lt_cv_file_magic_cmd=/usr/bin/file
5423 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5426 *nto* | *qnx*)
5427 lt_cv_deplibs_check_method=pass_all
5430 openbsd*)
5431 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5432 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5433 else
5434 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5438 osf3* | osf4* | osf5*)
5439 lt_cv_deplibs_check_method=pass_all
5442 rdos*)
5443 lt_cv_deplibs_check_method=pass_all
5446 solaris*)
5447 lt_cv_deplibs_check_method=pass_all
5450 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5451 lt_cv_deplibs_check_method=pass_all
5454 sysv4 | sysv4.3*)
5455 case $host_vendor in
5456 motorola)
5457 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]'
5458 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5460 ncr)
5461 lt_cv_deplibs_check_method=pass_all
5463 sequent)
5464 lt_cv_file_magic_cmd='/bin/file'
5465 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5467 sni)
5468 lt_cv_file_magic_cmd='/bin/file'
5469 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5470 lt_cv_file_magic_test_file=/lib/libc.so
5472 siemens)
5473 lt_cv_deplibs_check_method=pass_all
5476 lt_cv_deplibs_check_method=pass_all
5478 esac
5481 tpf*)
5482 lt_cv_deplibs_check_method=pass_all
5484 vxworks*)
5485 # Assume VxWorks cross toolchains are built on Linux, possibly
5486 # as canadian for Windows hosts.
5487 lt_cv_deplibs_check_method=pass_all
5489 esac
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5493 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5494 file_magic_cmd=$lt_cv_file_magic_cmd
5495 deplibs_check_method=$lt_cv_deplibs_check_method
5496 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5509 plugin_option=
5510 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
5511 for plugin in $plugin_names; do
5512 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
5513 if test x$plugin_so = x$plugin; then
5514 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
5516 if test x$plugin_so != x$plugin; then
5517 plugin_option="--plugin $plugin_so"
5518 break
5520 done
5522 if test -n "$ac_tool_prefix"; then
5523 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5524 set dummy ${ac_tool_prefix}ar; ac_word=$2
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5526 $as_echo_n "checking for $ac_word... " >&6; }
5527 if ${ac_cv_prog_AR+:} false; then :
5528 $as_echo_n "(cached) " >&6
5529 else
5530 if test -n "$AR"; then
5531 ac_cv_prog_AR="$AR" # Let the user override the test.
5532 else
5533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534 for as_dir in $PATH
5536 IFS=$as_save_IFS
5537 test -z "$as_dir" && as_dir=.
5538 for ac_exec_ext in '' $ac_executable_extensions; do
5539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5540 ac_cv_prog_AR="${ac_tool_prefix}ar"
5541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5542 break 2
5544 done
5545 done
5546 IFS=$as_save_IFS
5550 AR=$ac_cv_prog_AR
5551 if test -n "$AR"; then
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5553 $as_echo "$AR" >&6; }
5554 else
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556 $as_echo "no" >&6; }
5561 if test -z "$ac_cv_prog_AR"; then
5562 ac_ct_AR=$AR
5563 # Extract the first word of "ar", so it can be a program name with args.
5564 set dummy ar; ac_word=$2
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5566 $as_echo_n "checking for $ac_word... " >&6; }
5567 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5568 $as_echo_n "(cached) " >&6
5569 else
5570 if test -n "$ac_ct_AR"; then
5571 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5572 else
5573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574 for as_dir in $PATH
5576 IFS=$as_save_IFS
5577 test -z "$as_dir" && as_dir=.
5578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5580 ac_cv_prog_ac_ct_AR="ar"
5581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5582 break 2
5584 done
5585 done
5586 IFS=$as_save_IFS
5590 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5591 if test -n "$ac_ct_AR"; then
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5593 $as_echo "$ac_ct_AR" >&6; }
5594 else
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596 $as_echo "no" >&6; }
5599 if test "x$ac_ct_AR" = x; then
5600 AR="false"
5601 else
5602 case $cross_compiling:$ac_tool_warned in
5603 yes:)
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5606 ac_tool_warned=yes ;;
5607 esac
5608 AR=$ac_ct_AR
5610 else
5611 AR="$ac_cv_prog_AR"
5614 test -z "$AR" && AR=ar
5615 if test -n "$plugin_option"; then
5616 if $AR --help 2>&1 | grep -q "\--plugin"; then
5617 touch conftest.c
5618 $AR $plugin_option rc conftest.a conftest.c
5619 if test "$?" != 0; then
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
5621 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
5622 else
5623 AR="$AR $plugin_option"
5625 rm -f conftest.*
5628 test -z "$AR_FLAGS" && AR_FLAGS=cru
5640 if test -n "$ac_tool_prefix"; then
5641 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5642 set dummy ${ac_tool_prefix}strip; ac_word=$2
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5644 $as_echo_n "checking for $ac_word... " >&6; }
5645 if ${ac_cv_prog_STRIP+:} false; then :
5646 $as_echo_n "(cached) " >&6
5647 else
5648 if test -n "$STRIP"; then
5649 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5650 else
5651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 for as_dir in $PATH
5654 IFS=$as_save_IFS
5655 test -z "$as_dir" && as_dir=.
5656 for ac_exec_ext in '' $ac_executable_extensions; do
5657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5658 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5660 break 2
5662 done
5663 done
5664 IFS=$as_save_IFS
5668 STRIP=$ac_cv_prog_STRIP
5669 if test -n "$STRIP"; then
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5671 $as_echo "$STRIP" >&6; }
5672 else
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674 $as_echo "no" >&6; }
5679 if test -z "$ac_cv_prog_STRIP"; then
5680 ac_ct_STRIP=$STRIP
5681 # Extract the first word of "strip", so it can be a program name with args.
5682 set dummy strip; ac_word=$2
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684 $as_echo_n "checking for $ac_word... " >&6; }
5685 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5686 $as_echo_n "(cached) " >&6
5687 else
5688 if test -n "$ac_ct_STRIP"; then
5689 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5690 else
5691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692 for as_dir in $PATH
5694 IFS=$as_save_IFS
5695 test -z "$as_dir" && as_dir=.
5696 for ac_exec_ext in '' $ac_executable_extensions; do
5697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5698 ac_cv_prog_ac_ct_STRIP="strip"
5699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5700 break 2
5702 done
5703 done
5704 IFS=$as_save_IFS
5708 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5709 if test -n "$ac_ct_STRIP"; then
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5711 $as_echo "$ac_ct_STRIP" >&6; }
5712 else
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714 $as_echo "no" >&6; }
5717 if test "x$ac_ct_STRIP" = x; then
5718 STRIP=":"
5719 else
5720 case $cross_compiling:$ac_tool_warned in
5721 yes:)
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5724 ac_tool_warned=yes ;;
5725 esac
5726 STRIP=$ac_ct_STRIP
5728 else
5729 STRIP="$ac_cv_prog_STRIP"
5732 test -z "$STRIP" && STRIP=:
5739 if test -n "$ac_tool_prefix"; then
5740 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5741 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5743 $as_echo_n "checking for $ac_word... " >&6; }
5744 if ${ac_cv_prog_RANLIB+:} false; then :
5745 $as_echo_n "(cached) " >&6
5746 else
5747 if test -n "$RANLIB"; then
5748 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5749 else
5750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 for as_dir in $PATH
5753 IFS=$as_save_IFS
5754 test -z "$as_dir" && as_dir=.
5755 for ac_exec_ext in '' $ac_executable_extensions; do
5756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5757 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5759 break 2
5761 done
5762 done
5763 IFS=$as_save_IFS
5767 RANLIB=$ac_cv_prog_RANLIB
5768 if test -n "$RANLIB"; then
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5770 $as_echo "$RANLIB" >&6; }
5771 else
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773 $as_echo "no" >&6; }
5778 if test -z "$ac_cv_prog_RANLIB"; then
5779 ac_ct_RANLIB=$RANLIB
5780 # Extract the first word of "ranlib", so it can be a program name with args.
5781 set dummy ranlib; ac_word=$2
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5783 $as_echo_n "checking for $ac_word... " >&6; }
5784 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5785 $as_echo_n "(cached) " >&6
5786 else
5787 if test -n "$ac_ct_RANLIB"; then
5788 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5789 else
5790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791 for as_dir in $PATH
5793 IFS=$as_save_IFS
5794 test -z "$as_dir" && as_dir=.
5795 for ac_exec_ext in '' $ac_executable_extensions; do
5796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5797 ac_cv_prog_ac_ct_RANLIB="ranlib"
5798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5799 break 2
5801 done
5802 done
5803 IFS=$as_save_IFS
5807 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5808 if test -n "$ac_ct_RANLIB"; then
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5810 $as_echo "$ac_ct_RANLIB" >&6; }
5811 else
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5813 $as_echo "no" >&6; }
5816 if test "x$ac_ct_RANLIB" = x; then
5817 RANLIB=":"
5818 else
5819 case $cross_compiling:$ac_tool_warned in
5820 yes:)
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5823 ac_tool_warned=yes ;;
5824 esac
5825 RANLIB=$ac_ct_RANLIB
5827 else
5828 RANLIB="$ac_cv_prog_RANLIB"
5831 test -z "$RANLIB" && RANLIB=:
5832 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
5833 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
5834 RANLIB="$RANLIB $plugin_option"
5843 # Determine commands to create old-style static archives.
5844 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5845 old_postinstall_cmds='chmod 644 $oldlib'
5846 old_postuninstall_cmds=
5848 if test -n "$RANLIB"; then
5849 case $host_os in
5850 openbsd*)
5851 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5854 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5856 esac
5857 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5860 case $host_os in
5861 darwin*)
5862 lock_old_archive_extraction=yes ;;
5864 lock_old_archive_extraction=no ;;
5865 esac
5887 for ac_prog in gawk mawk nawk awk
5889 # Extract the first word of "$ac_prog", so it can be a program name with args.
5890 set dummy $ac_prog; ac_word=$2
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5892 $as_echo_n "checking for $ac_word... " >&6; }
5893 if ${ac_cv_prog_AWK+:} false; then :
5894 $as_echo_n "(cached) " >&6
5895 else
5896 if test -n "$AWK"; then
5897 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5898 else
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 for as_dir in $PATH
5902 IFS=$as_save_IFS
5903 test -z "$as_dir" && as_dir=.
5904 for ac_exec_ext in '' $ac_executable_extensions; do
5905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5906 ac_cv_prog_AWK="$ac_prog"
5907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5908 break 2
5910 done
5911 done
5912 IFS=$as_save_IFS
5916 AWK=$ac_cv_prog_AWK
5917 if test -n "$AWK"; then
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5919 $as_echo "$AWK" >&6; }
5920 else
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922 $as_echo "no" >&6; }
5926 test -n "$AWK" && break
5927 done
5947 # If no C compiler was specified, use CC.
5948 LTCC=${LTCC-"$CC"}
5950 # If no C compiler flags were specified, use CFLAGS.
5951 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5953 # Allow CC to be a program name with arguments.
5954 compiler=$CC
5957 # Check for command to grab the raw symbol name followed by C symbol from nm.
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5959 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5960 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5961 $as_echo_n "(cached) " >&6
5962 else
5964 # These are sane defaults that work on at least a few old systems.
5965 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5967 # Character class describing NM global symbol codes.
5968 symcode='[BCDEGRST]'
5970 # Regexp to match symbols that can be accessed directly from C.
5971 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5973 # Define system-specific variables.
5974 case $host_os in
5975 aix*)
5976 symcode='[BCDT]'
5978 cygwin* | mingw* | pw32* | cegcc*)
5979 symcode='[ABCDGISTW]'
5981 hpux*)
5982 if test "$host_cpu" = ia64; then
5983 symcode='[ABCDEGRST]'
5986 irix* | nonstopux*)
5987 symcode='[BCDEGRST]'
5989 osf*)
5990 symcode='[BCDEGQRST]'
5992 solaris*)
5993 symcode='[BCDRT]'
5995 sco3.2v5*)
5996 symcode='[DT]'
5998 sysv4.2uw2*)
5999 symcode='[DT]'
6001 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6002 symcode='[ABDT]'
6004 sysv4)
6005 symcode='[DFNSTU]'
6007 esac
6009 # If we're using GNU nm, then use its standard symbol codes.
6010 case `$NM -V 2>&1` in
6011 *GNU* | *'with BFD'*)
6012 symcode='[ABCDGIRSTW]' ;;
6013 esac
6015 # Transform an extracted symbol line into a proper C declaration.
6016 # Some systems (esp. on ia64) link data and code symbols differently,
6017 # so use this general approach.
6018 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6020 # Transform an extracted symbol line into symbol name and symbol address
6021 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6022 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'"
6024 # Handle CRLF in mingw tool chain
6025 opt_cr=
6026 case $build_os in
6027 mingw*)
6028 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6030 esac
6032 # Try without a prefix underscore, then with it.
6033 for ac_symprfx in "" "_"; do
6035 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6036 symxfrm="\\1 $ac_symprfx\\2 \\2"
6038 # Write the raw and C identifiers.
6039 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6040 # Fake it for dumpbin and say T for any non-static function
6041 # and D for any global variable.
6042 # Also find C++ and __fastcall symbols from MSVC++,
6043 # which start with @ or ?.
6044 lt_cv_sys_global_symbol_pipe="$AWK '"\
6045 " {last_section=section; section=\$ 3};"\
6046 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6047 " \$ 0!~/External *\|/{next};"\
6048 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6049 " {if(hide[section]) next};"\
6050 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6051 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6052 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6053 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6054 " ' prfx=^$ac_symprfx"
6055 else
6056 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6059 # Check to see that the pipe works correctly.
6060 pipe_works=no
6062 rm -f conftest*
6063 cat > conftest.$ac_ext <<_LT_EOF
6064 #ifdef __cplusplus
6065 extern "C" {
6066 #endif
6067 char nm_test_var;
6068 void nm_test_func(void);
6069 void nm_test_func(void){}
6070 #ifdef __cplusplus
6072 #endif
6073 int main(){nm_test_var='a';nm_test_func();return(0);}
6074 _LT_EOF
6076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6077 (eval $ac_compile) 2>&5
6078 ac_status=$?
6079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6080 test $ac_status = 0; }; then
6081 # Now try to grab the symbols.
6082 nlist=conftest.nm
6083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6084 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6085 ac_status=$?
6086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6087 test $ac_status = 0; } && test -s "$nlist"; then
6088 # Try sorting and uniquifying the output.
6089 if sort "$nlist" | uniq > "$nlist"T; then
6090 mv -f "$nlist"T "$nlist"
6091 else
6092 rm -f "$nlist"T
6095 # Make sure that we snagged all the symbols we need.
6096 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6097 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6098 cat <<_LT_EOF > conftest.$ac_ext
6099 #ifdef __cplusplus
6100 extern "C" {
6101 #endif
6103 _LT_EOF
6104 # Now generate the symbol file.
6105 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6107 cat <<_LT_EOF >> conftest.$ac_ext
6109 /* The mapping between symbol names and symbols. */
6110 const struct {
6111 const char *name;
6112 void *address;
6114 lt__PROGRAM__LTX_preloaded_symbols[] =
6116 { "@PROGRAM@", (void *) 0 },
6117 _LT_EOF
6118 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6119 cat <<\_LT_EOF >> conftest.$ac_ext
6120 {0, (void *) 0}
6123 /* This works around a problem in FreeBSD linker */
6124 #ifdef FREEBSD_WORKAROUND
6125 static const void *lt_preloaded_setup() {
6126 return lt__PROGRAM__LTX_preloaded_symbols;
6128 #endif
6130 #ifdef __cplusplus
6132 #endif
6133 _LT_EOF
6134 # Now try linking the two files.
6135 mv conftest.$ac_objext conftstm.$ac_objext
6136 lt_save_LIBS="$LIBS"
6137 lt_save_CFLAGS="$CFLAGS"
6138 LIBS="conftstm.$ac_objext"
6139 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6141 (eval $ac_link) 2>&5
6142 ac_status=$?
6143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6144 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6145 pipe_works=yes
6147 LIBS="$lt_save_LIBS"
6148 CFLAGS="$lt_save_CFLAGS"
6149 else
6150 echo "cannot find nm_test_func in $nlist" >&5
6152 else
6153 echo "cannot find nm_test_var in $nlist" >&5
6155 else
6156 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6158 else
6159 echo "$progname: failed program was:" >&5
6160 cat conftest.$ac_ext >&5
6162 rm -rf conftest* conftst*
6164 # Do not use the global_symbol_pipe unless it works.
6165 if test "$pipe_works" = yes; then
6166 break
6167 else
6168 lt_cv_sys_global_symbol_pipe=
6170 done
6174 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6175 lt_cv_sys_global_symbol_to_cdecl=
6177 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6179 $as_echo "failed" >&6; }
6180 else
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6182 $as_echo "ok" >&6; }
6206 # Check whether --enable-libtool-lock was given.
6207 if test "${enable_libtool_lock+set}" = set; then :
6208 enableval=$enable_libtool_lock;
6211 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6213 # Some flags need to be propagated to the compiler or linker for good
6214 # libtool support.
6215 case $host in
6216 ia64-*-hpux*)
6217 # Find out which ABI we are using.
6218 echo 'int i;' > conftest.$ac_ext
6219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6220 (eval $ac_compile) 2>&5
6221 ac_status=$?
6222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6223 test $ac_status = 0; }; then
6224 case `/usr/bin/file conftest.$ac_objext` in
6225 *ELF-32*)
6226 HPUX_IA64_MODE="32"
6228 *ELF-64*)
6229 HPUX_IA64_MODE="64"
6231 esac
6233 rm -rf conftest*
6235 *-*-irix6*)
6236 # Find out which ABI we are using.
6237 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6239 (eval $ac_compile) 2>&5
6240 ac_status=$?
6241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6242 test $ac_status = 0; }; then
6243 if test "$lt_cv_prog_gnu_ld" = yes; then
6244 case `/usr/bin/file conftest.$ac_objext` in
6245 *32-bit*)
6246 LD="${LD-ld} -melf32bsmip"
6248 *N32*)
6249 LD="${LD-ld} -melf32bmipn32"
6251 *64-bit*)
6252 LD="${LD-ld} -melf64bmip"
6254 esac
6255 else
6256 case `/usr/bin/file conftest.$ac_objext` in
6257 *32-bit*)
6258 LD="${LD-ld} -32"
6260 *N32*)
6261 LD="${LD-ld} -n32"
6263 *64-bit*)
6264 LD="${LD-ld} -64"
6266 esac
6269 rm -rf conftest*
6272 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6273 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6274 # Find out which ABI we are using.
6275 echo 'int i;' > conftest.$ac_ext
6276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6277 (eval $ac_compile) 2>&5
6278 ac_status=$?
6279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6280 test $ac_status = 0; }; then
6281 case `/usr/bin/file conftest.o` in
6282 *32-bit*)
6283 case $host in
6284 x86_64-*kfreebsd*-gnu)
6285 LD="${LD-ld} -m elf_i386_fbsd"
6287 x86_64-*linux*)
6288 case `/usr/bin/file conftest.o` in
6289 *x86-64*)
6290 LD="${LD-ld} -m elf32_x86_64"
6293 LD="${LD-ld} -m elf_i386"
6295 esac
6297 powerpc64le-*linux*)
6298 LD="${LD-ld} -m elf32lppclinux"
6300 powerpc64-*linux*)
6301 LD="${LD-ld} -m elf32ppclinux"
6303 s390x-*linux*)
6304 LD="${LD-ld} -m elf_s390"
6306 sparc64-*linux*)
6307 LD="${LD-ld} -m elf32_sparc"
6309 esac
6311 *64-bit*)
6312 case $host in
6313 x86_64-*kfreebsd*-gnu)
6314 LD="${LD-ld} -m elf_x86_64_fbsd"
6316 x86_64-*linux*)
6317 LD="${LD-ld} -m elf_x86_64"
6319 powerpcle-*linux*)
6320 LD="${LD-ld} -m elf64lppc"
6322 powerpc-*linux*)
6323 LD="${LD-ld} -m elf64ppc"
6325 s390*-*linux*|s390*-*tpf*)
6326 LD="${LD-ld} -m elf64_s390"
6328 sparc*-*linux*)
6329 LD="${LD-ld} -m elf64_sparc"
6331 esac
6333 esac
6335 rm -rf conftest*
6338 *-*-sco3.2v5*)
6339 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6340 SAVE_CFLAGS="$CFLAGS"
6341 CFLAGS="$CFLAGS -belf"
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6343 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6344 if ${lt_cv_cc_needs_belf+:} false; then :
6345 $as_echo_n "(cached) " >&6
6346 else
6347 ac_ext=c
6348 ac_cpp='$CPP $CPPFLAGS'
6349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6353 if test x$gcc_no_link = xyes; then
6354 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h. */
6360 main ()
6364 return 0;
6366 _ACEOF
6367 if ac_fn_c_try_link "$LINENO"; then :
6368 lt_cv_cc_needs_belf=yes
6369 else
6370 lt_cv_cc_needs_belf=no
6372 rm -f core conftest.err conftest.$ac_objext \
6373 conftest$ac_exeext conftest.$ac_ext
6374 ac_ext=c
6375 ac_cpp='$CPP $CPPFLAGS'
6376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6382 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6383 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6384 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6385 CFLAGS="$SAVE_CFLAGS"
6388 sparc*-*solaris*)
6389 # Find out which ABI we are using.
6390 echo 'int i;' > conftest.$ac_ext
6391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6392 (eval $ac_compile) 2>&5
6393 ac_status=$?
6394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6395 test $ac_status = 0; }; then
6396 case `/usr/bin/file conftest.o` in
6397 *64-bit*)
6398 case $lt_cv_prog_gnu_ld in
6399 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6401 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6402 LD="${LD-ld} -64"
6405 esac
6407 esac
6409 rm -rf conftest*
6411 esac
6413 need_locks="$enable_libtool_lock"
6416 case $host_os in
6417 rhapsody* | darwin*)
6418 if test -n "$ac_tool_prefix"; then
6419 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6420 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422 $as_echo_n "checking for $ac_word... " >&6; }
6423 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426 if test -n "$DSYMUTIL"; then
6427 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6428 else
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 for as_dir in $PATH
6432 IFS=$as_save_IFS
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6436 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438 break 2
6440 done
6441 done
6442 IFS=$as_save_IFS
6446 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6447 if test -n "$DSYMUTIL"; then
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6449 $as_echo "$DSYMUTIL" >&6; }
6450 else
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452 $as_echo "no" >&6; }
6457 if test -z "$ac_cv_prog_DSYMUTIL"; then
6458 ac_ct_DSYMUTIL=$DSYMUTIL
6459 # Extract the first word of "dsymutil", so it can be a program name with args.
6460 set dummy dsymutil; ac_word=$2
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6462 $as_echo_n "checking for $ac_word... " >&6; }
6463 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6464 $as_echo_n "(cached) " >&6
6465 else
6466 if test -n "$ac_ct_DSYMUTIL"; then
6467 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6468 else
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 for as_dir in $PATH
6472 IFS=$as_save_IFS
6473 test -z "$as_dir" && as_dir=.
6474 for ac_exec_ext in '' $ac_executable_extensions; do
6475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6476 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6478 break 2
6480 done
6481 done
6482 IFS=$as_save_IFS
6486 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6487 if test -n "$ac_ct_DSYMUTIL"; then
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6489 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6490 else
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 $as_echo "no" >&6; }
6495 if test "x$ac_ct_DSYMUTIL" = x; then
6496 DSYMUTIL=":"
6497 else
6498 case $cross_compiling:$ac_tool_warned in
6499 yes:)
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6502 ac_tool_warned=yes ;;
6503 esac
6504 DSYMUTIL=$ac_ct_DSYMUTIL
6506 else
6507 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6510 if test -n "$ac_tool_prefix"; then
6511 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6512 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6514 $as_echo_n "checking for $ac_word... " >&6; }
6515 if ${ac_cv_prog_NMEDIT+:} false; then :
6516 $as_echo_n "(cached) " >&6
6517 else
6518 if test -n "$NMEDIT"; then
6519 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6520 else
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 for as_dir in $PATH
6524 IFS=$as_save_IFS
6525 test -z "$as_dir" && as_dir=.
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6528 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530 break 2
6532 done
6533 done
6534 IFS=$as_save_IFS
6538 NMEDIT=$ac_cv_prog_NMEDIT
6539 if test -n "$NMEDIT"; then
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6541 $as_echo "$NMEDIT" >&6; }
6542 else
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544 $as_echo "no" >&6; }
6549 if test -z "$ac_cv_prog_NMEDIT"; then
6550 ac_ct_NMEDIT=$NMEDIT
6551 # Extract the first word of "nmedit", so it can be a program name with args.
6552 set dummy nmedit; ac_word=$2
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6554 $as_echo_n "checking for $ac_word... " >&6; }
6555 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6556 $as_echo_n "(cached) " >&6
6557 else
6558 if test -n "$ac_ct_NMEDIT"; then
6559 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6560 else
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562 for as_dir in $PATH
6564 IFS=$as_save_IFS
6565 test -z "$as_dir" && as_dir=.
6566 for ac_exec_ext in '' $ac_executable_extensions; do
6567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6568 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6570 break 2
6572 done
6573 done
6574 IFS=$as_save_IFS
6578 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6579 if test -n "$ac_ct_NMEDIT"; then
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6581 $as_echo "$ac_ct_NMEDIT" >&6; }
6582 else
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6584 $as_echo "no" >&6; }
6587 if test "x$ac_ct_NMEDIT" = x; then
6588 NMEDIT=":"
6589 else
6590 case $cross_compiling:$ac_tool_warned in
6591 yes:)
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6594 ac_tool_warned=yes ;;
6595 esac
6596 NMEDIT=$ac_ct_NMEDIT
6598 else
6599 NMEDIT="$ac_cv_prog_NMEDIT"
6602 if test -n "$ac_tool_prefix"; then
6603 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6604 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6606 $as_echo_n "checking for $ac_word... " >&6; }
6607 if ${ac_cv_prog_LIPO+:} false; then :
6608 $as_echo_n "(cached) " >&6
6609 else
6610 if test -n "$LIPO"; then
6611 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6612 else
6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614 for as_dir in $PATH
6616 IFS=$as_save_IFS
6617 test -z "$as_dir" && as_dir=.
6618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6620 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 break 2
6624 done
6625 done
6626 IFS=$as_save_IFS
6630 LIPO=$ac_cv_prog_LIPO
6631 if test -n "$LIPO"; then
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6633 $as_echo "$LIPO" >&6; }
6634 else
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636 $as_echo "no" >&6; }
6641 if test -z "$ac_cv_prog_LIPO"; then
6642 ac_ct_LIPO=$LIPO
6643 # Extract the first word of "lipo", so it can be a program name with args.
6644 set dummy lipo; ac_word=$2
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6646 $as_echo_n "checking for $ac_word... " >&6; }
6647 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6648 $as_echo_n "(cached) " >&6
6649 else
6650 if test -n "$ac_ct_LIPO"; then
6651 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6652 else
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 for as_dir in $PATH
6656 IFS=$as_save_IFS
6657 test -z "$as_dir" && as_dir=.
6658 for ac_exec_ext in '' $ac_executable_extensions; do
6659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6660 ac_cv_prog_ac_ct_LIPO="lipo"
6661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6662 break 2
6664 done
6665 done
6666 IFS=$as_save_IFS
6670 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6671 if test -n "$ac_ct_LIPO"; then
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6673 $as_echo "$ac_ct_LIPO" >&6; }
6674 else
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6676 $as_echo "no" >&6; }
6679 if test "x$ac_ct_LIPO" = x; then
6680 LIPO=":"
6681 else
6682 case $cross_compiling:$ac_tool_warned in
6683 yes:)
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6686 ac_tool_warned=yes ;;
6687 esac
6688 LIPO=$ac_ct_LIPO
6690 else
6691 LIPO="$ac_cv_prog_LIPO"
6694 if test -n "$ac_tool_prefix"; then
6695 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6696 set dummy ${ac_tool_prefix}otool; ac_word=$2
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6698 $as_echo_n "checking for $ac_word... " >&6; }
6699 if ${ac_cv_prog_OTOOL+:} false; then :
6700 $as_echo_n "(cached) " >&6
6701 else
6702 if test -n "$OTOOL"; then
6703 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6704 else
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 for as_dir in $PATH
6708 IFS=$as_save_IFS
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6712 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 break 2
6716 done
6717 done
6718 IFS=$as_save_IFS
6722 OTOOL=$ac_cv_prog_OTOOL
6723 if test -n "$OTOOL"; then
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6725 $as_echo "$OTOOL" >&6; }
6726 else
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6728 $as_echo "no" >&6; }
6733 if test -z "$ac_cv_prog_OTOOL"; then
6734 ac_ct_OTOOL=$OTOOL
6735 # Extract the first word of "otool", so it can be a program name with args.
6736 set dummy otool; ac_word=$2
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6738 $as_echo_n "checking for $ac_word... " >&6; }
6739 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6740 $as_echo_n "(cached) " >&6
6741 else
6742 if test -n "$ac_ct_OTOOL"; then
6743 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6744 else
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 for as_dir in $PATH
6748 IFS=$as_save_IFS
6749 test -z "$as_dir" && as_dir=.
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6752 ac_cv_prog_ac_ct_OTOOL="otool"
6753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6754 break 2
6756 done
6757 done
6758 IFS=$as_save_IFS
6762 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6763 if test -n "$ac_ct_OTOOL"; then
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6765 $as_echo "$ac_ct_OTOOL" >&6; }
6766 else
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6768 $as_echo "no" >&6; }
6771 if test "x$ac_ct_OTOOL" = x; then
6772 OTOOL=":"
6773 else
6774 case $cross_compiling:$ac_tool_warned in
6775 yes:)
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6778 ac_tool_warned=yes ;;
6779 esac
6780 OTOOL=$ac_ct_OTOOL
6782 else
6783 OTOOL="$ac_cv_prog_OTOOL"
6786 if test -n "$ac_tool_prefix"; then
6787 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6788 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6790 $as_echo_n "checking for $ac_word... " >&6; }
6791 if ${ac_cv_prog_OTOOL64+:} false; then :
6792 $as_echo_n "(cached) " >&6
6793 else
6794 if test -n "$OTOOL64"; then
6795 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6796 else
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 for as_dir in $PATH
6800 IFS=$as_save_IFS
6801 test -z "$as_dir" && as_dir=.
6802 for ac_exec_ext in '' $ac_executable_extensions; do
6803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6804 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 break 2
6808 done
6809 done
6810 IFS=$as_save_IFS
6814 OTOOL64=$ac_cv_prog_OTOOL64
6815 if test -n "$OTOOL64"; then
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6817 $as_echo "$OTOOL64" >&6; }
6818 else
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6820 $as_echo "no" >&6; }
6825 if test -z "$ac_cv_prog_OTOOL64"; then
6826 ac_ct_OTOOL64=$OTOOL64
6827 # Extract the first word of "otool64", so it can be a program name with args.
6828 set dummy otool64; ac_word=$2
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6830 $as_echo_n "checking for $ac_word... " >&6; }
6831 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6832 $as_echo_n "(cached) " >&6
6833 else
6834 if test -n "$ac_ct_OTOOL64"; then
6835 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6836 else
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838 for as_dir in $PATH
6840 IFS=$as_save_IFS
6841 test -z "$as_dir" && as_dir=.
6842 for ac_exec_ext in '' $ac_executable_extensions; do
6843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6844 ac_cv_prog_ac_ct_OTOOL64="otool64"
6845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 break 2
6848 done
6849 done
6850 IFS=$as_save_IFS
6854 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6855 if test -n "$ac_ct_OTOOL64"; then
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6857 $as_echo "$ac_ct_OTOOL64" >&6; }
6858 else
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860 $as_echo "no" >&6; }
6863 if test "x$ac_ct_OTOOL64" = x; then
6864 OTOOL64=":"
6865 else
6866 case $cross_compiling:$ac_tool_warned in
6867 yes:)
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6870 ac_tool_warned=yes ;;
6871 esac
6872 OTOOL64=$ac_ct_OTOOL64
6874 else
6875 OTOOL64="$ac_cv_prog_OTOOL64"
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6905 $as_echo_n "checking for -single_module linker flag... " >&6; }
6906 if ${lt_cv_apple_cc_single_mod+:} false; then :
6907 $as_echo_n "(cached) " >&6
6908 else
6909 lt_cv_apple_cc_single_mod=no
6910 if test -z "${LT_MULTI_MODULE}"; then
6911 # By default we will add the -single_module flag. You can override
6912 # by either setting the environment variable LT_MULTI_MODULE
6913 # non-empty at configure time, or by adding -multi_module to the
6914 # link flags.
6915 rm -rf libconftest.dylib*
6916 echo "int foo(void){return 1;}" > conftest.c
6917 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6918 -dynamiclib -Wl,-single_module conftest.c" >&5
6919 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6920 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6921 _lt_result=$?
6922 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6923 lt_cv_apple_cc_single_mod=yes
6924 else
6925 cat conftest.err >&5
6927 rm -rf libconftest.dylib*
6928 rm -f conftest.*
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6932 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6934 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6935 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6936 $as_echo_n "(cached) " >&6
6937 else
6938 lt_cv_ld_exported_symbols_list=no
6939 save_LDFLAGS=$LDFLAGS
6940 echo "_main" > conftest.sym
6941 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6942 if test x$gcc_no_link = xyes; then
6943 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6946 /* end confdefs.h. */
6949 main ()
6953 return 0;
6955 _ACEOF
6956 if ac_fn_c_try_link "$LINENO"; then :
6957 lt_cv_ld_exported_symbols_list=yes
6958 else
6959 lt_cv_ld_exported_symbols_list=no
6961 rm -f core conftest.err conftest.$ac_objext \
6962 conftest$ac_exeext conftest.$ac_ext
6963 LDFLAGS="$save_LDFLAGS"
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6967 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6969 $as_echo_n "checking for -force_load linker flag... " >&6; }
6970 if ${lt_cv_ld_force_load+:} false; then :
6971 $as_echo_n "(cached) " >&6
6972 else
6973 lt_cv_ld_force_load=no
6974 cat > conftest.c << _LT_EOF
6975 int forced_loaded() { return 2;}
6976 _LT_EOF
6977 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6978 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6979 echo "$AR cru libconftest.a conftest.o" >&5
6980 $AR cru libconftest.a conftest.o 2>&5
6981 cat > conftest.c << _LT_EOF
6982 int main() { return 0;}
6983 _LT_EOF
6984 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6985 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6986 _lt_result=$?
6987 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6988 lt_cv_ld_force_load=yes
6989 else
6990 cat conftest.err >&5
6992 rm -f conftest.err libconftest.a conftest conftest.c
6993 rm -rf conftest.dSYM
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6997 $as_echo "$lt_cv_ld_force_load" >&6; }
6998 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
6999 # build without first building modern cctools / linker.
7000 case $host_cpu-$host_os in
7001 *-rhapsody* | *-darwin1.[012])
7002 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7003 *-darwin1.*)
7004 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7005 *-darwin*)
7006 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7007 # deployment target is forced to an earlier version.
7008 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7009 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
7011 10.[012][,.]*)
7012 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7016 esac
7018 esac
7019 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7020 _lt_dar_single_mod='$single_module'
7022 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7023 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7024 else
7025 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7027 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7028 _lt_dsymutil='~$DSYMUTIL $lib || :'
7029 else
7030 _lt_dsymutil=
7033 esac
7035 ac_ext=c
7036 ac_cpp='$CPP $CPPFLAGS'
7037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7041 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7042 # On Suns, sometimes $CPP names a directory.
7043 if test -n "$CPP" && test -d "$CPP"; then
7044 CPP=
7046 if test -z "$CPP"; then
7047 if ${ac_cv_prog_CPP+:} false; then :
7048 $as_echo_n "(cached) " >&6
7049 else
7050 # Double quotes because CPP needs to be expanded
7051 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7053 ac_preproc_ok=false
7054 for ac_c_preproc_warn_flag in '' yes
7056 # Use a header file that comes with gcc, so configuring glibc
7057 # with a fresh cross-compiler works.
7058 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7059 # <limits.h> exists even on freestanding compilers.
7060 # On the NeXT, cc -E runs the code through the compiler's parser,
7061 # not just through cpp. "Syntax error" is here to catch this case.
7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7064 #ifdef __STDC__
7065 # include <limits.h>
7066 #else
7067 # include <assert.h>
7068 #endif
7069 Syntax error
7070 _ACEOF
7071 if ac_fn_c_try_cpp "$LINENO"; then :
7073 else
7074 # Broken: fails on valid input.
7075 continue
7077 rm -f conftest.err conftest.i conftest.$ac_ext
7079 # OK, works on sane cases. Now check whether nonexistent headers
7080 # can be detected and how.
7081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7082 /* end confdefs.h. */
7083 #include <ac_nonexistent.h>
7084 _ACEOF
7085 if ac_fn_c_try_cpp "$LINENO"; then :
7086 # Broken: success on invalid input.
7087 continue
7088 else
7089 # Passes both tests.
7090 ac_preproc_ok=:
7091 break
7093 rm -f conftest.err conftest.i conftest.$ac_ext
7095 done
7096 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7097 rm -f conftest.i conftest.err conftest.$ac_ext
7098 if $ac_preproc_ok; then :
7099 break
7102 done
7103 ac_cv_prog_CPP=$CPP
7106 CPP=$ac_cv_prog_CPP
7107 else
7108 ac_cv_prog_CPP=$CPP
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7111 $as_echo "$CPP" >&6; }
7112 ac_preproc_ok=false
7113 for ac_c_preproc_warn_flag in '' yes
7115 # Use a header file that comes with gcc, so configuring glibc
7116 # with a fresh cross-compiler works.
7117 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7118 # <limits.h> exists even on freestanding compilers.
7119 # On the NeXT, cc -E runs the code through the compiler's parser,
7120 # not just through cpp. "Syntax error" is here to catch this case.
7121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122 /* end confdefs.h. */
7123 #ifdef __STDC__
7124 # include <limits.h>
7125 #else
7126 # include <assert.h>
7127 #endif
7128 Syntax error
7129 _ACEOF
7130 if ac_fn_c_try_cpp "$LINENO"; then :
7132 else
7133 # Broken: fails on valid input.
7134 continue
7136 rm -f conftest.err conftest.i conftest.$ac_ext
7138 # OK, works on sane cases. Now check whether nonexistent headers
7139 # can be detected and how.
7140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141 /* end confdefs.h. */
7142 #include <ac_nonexistent.h>
7143 _ACEOF
7144 if ac_fn_c_try_cpp "$LINENO"; then :
7145 # Broken: success on invalid input.
7146 continue
7147 else
7148 # Passes both tests.
7149 ac_preproc_ok=:
7150 break
7152 rm -f conftest.err conftest.i conftest.$ac_ext
7154 done
7155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7156 rm -f conftest.i conftest.err conftest.$ac_ext
7157 if $ac_preproc_ok; then :
7159 else
7160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7162 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7163 See \`config.log' for more details" "$LINENO" 5; }
7166 ac_ext=c
7167 ac_cpp='$CPP $CPPFLAGS'
7168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7174 $as_echo_n "checking for ANSI C header files... " >&6; }
7175 if ${ac_cv_header_stdc+:} false; then :
7176 $as_echo_n "(cached) " >&6
7177 else
7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179 /* end confdefs.h. */
7180 #include <stdlib.h>
7181 #include <stdarg.h>
7182 #include <string.h>
7183 #include <float.h>
7186 main ()
7190 return 0;
7192 _ACEOF
7193 if ac_fn_c_try_compile "$LINENO"; then :
7194 ac_cv_header_stdc=yes
7195 else
7196 ac_cv_header_stdc=no
7198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7200 if test $ac_cv_header_stdc = yes; then
7201 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203 /* end confdefs.h. */
7204 #include <string.h>
7206 _ACEOF
7207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7208 $EGREP "memchr" >/dev/null 2>&1; then :
7210 else
7211 ac_cv_header_stdc=no
7213 rm -f conftest*
7217 if test $ac_cv_header_stdc = yes; then
7218 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220 /* end confdefs.h. */
7221 #include <stdlib.h>
7223 _ACEOF
7224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7225 $EGREP "free" >/dev/null 2>&1; then :
7227 else
7228 ac_cv_header_stdc=no
7230 rm -f conftest*
7234 if test $ac_cv_header_stdc = yes; then
7235 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7236 if test "$cross_compiling" = yes; then :
7238 else
7239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240 /* end confdefs.h. */
7241 #include <ctype.h>
7242 #include <stdlib.h>
7243 #if ((' ' & 0x0FF) == 0x020)
7244 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7245 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7246 #else
7247 # define ISLOWER(c) \
7248 (('a' <= (c) && (c) <= 'i') \
7249 || ('j' <= (c) && (c) <= 'r') \
7250 || ('s' <= (c) && (c) <= 'z'))
7251 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7252 #endif
7254 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7256 main ()
7258 int i;
7259 for (i = 0; i < 256; i++)
7260 if (XOR (islower (i), ISLOWER (i))
7261 || toupper (i) != TOUPPER (i))
7262 return 2;
7263 return 0;
7265 _ACEOF
7266 if ac_fn_c_try_run "$LINENO"; then :
7268 else
7269 ac_cv_header_stdc=no
7271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7272 conftest.$ac_objext conftest.beam conftest.$ac_ext
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7278 $as_echo "$ac_cv_header_stdc" >&6; }
7279 if test $ac_cv_header_stdc = yes; then
7281 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7285 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7286 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7287 inttypes.h stdint.h unistd.h
7288 do :
7289 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7290 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7292 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7293 cat >>confdefs.h <<_ACEOF
7294 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7295 _ACEOF
7299 done
7302 for ac_header in dlfcn.h
7303 do :
7304 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7306 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7307 cat >>confdefs.h <<_ACEOF
7308 #define HAVE_DLFCN_H 1
7309 _ACEOF
7313 done
7319 # Set options
7323 enable_dlopen=no
7327 # Check whether --enable-shared was given.
7328 if test "${enable_shared+set}" = set; then :
7329 enableval=$enable_shared; p=${PACKAGE-default}
7330 case $enableval in
7331 yes) enable_shared=yes ;;
7332 no) enable_shared=no ;;
7334 enable_shared=no
7335 # Look at the argument we got. We use all the common list separators.
7336 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7337 for pkg in $enableval; do
7338 IFS="$lt_save_ifs"
7339 if test "X$pkg" = "X$p"; then
7340 enable_shared=yes
7342 done
7343 IFS="$lt_save_ifs"
7345 esac
7346 else
7347 enable_shared=yes
7358 # Check whether --enable-static was given.
7359 if test "${enable_static+set}" = set; then :
7360 enableval=$enable_static; p=${PACKAGE-default}
7361 case $enableval in
7362 yes) enable_static=yes ;;
7363 no) enable_static=no ;;
7365 enable_static=no
7366 # Look at the argument we got. We use all the common list separators.
7367 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7368 for pkg in $enableval; do
7369 IFS="$lt_save_ifs"
7370 if test "X$pkg" = "X$p"; then
7371 enable_static=yes
7373 done
7374 IFS="$lt_save_ifs"
7376 esac
7377 else
7378 enable_static=yes
7390 # Check whether --with-pic was given.
7391 if test "${with_pic+set}" = set; then :
7392 withval=$with_pic; pic_mode="$withval"
7393 else
7394 pic_mode=default
7398 test -z "$pic_mode" && pic_mode=default
7406 # Check whether --enable-fast-install was given.
7407 if test "${enable_fast_install+set}" = set; then :
7408 enableval=$enable_fast_install; p=${PACKAGE-default}
7409 case $enableval in
7410 yes) enable_fast_install=yes ;;
7411 no) enable_fast_install=no ;;
7413 enable_fast_install=no
7414 # Look at the argument we got. We use all the common list separators.
7415 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7416 for pkg in $enableval; do
7417 IFS="$lt_save_ifs"
7418 if test "X$pkg" = "X$p"; then
7419 enable_fast_install=yes
7421 done
7422 IFS="$lt_save_ifs"
7424 esac
7425 else
7426 enable_fast_install=yes
7439 # This can be used to rebuild libtool when needed
7440 LIBTOOL_DEPS="$ltmain"
7442 # Always use our own libtool.
7443 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7470 test -z "$LN_S" && LN_S="ln -s"
7485 if test -n "${ZSH_VERSION+set}" ; then
7486 setopt NO_GLOB_SUBST
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7490 $as_echo_n "checking for objdir... " >&6; }
7491 if ${lt_cv_objdir+:} false; then :
7492 $as_echo_n "(cached) " >&6
7493 else
7494 rm -f .libs 2>/dev/null
7495 mkdir .libs 2>/dev/null
7496 if test -d .libs; then
7497 lt_cv_objdir=.libs
7498 else
7499 # MS-DOS does not allow filenames that begin with a dot.
7500 lt_cv_objdir=_libs
7502 rmdir .libs 2>/dev/null
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7505 $as_echo "$lt_cv_objdir" >&6; }
7506 objdir=$lt_cv_objdir
7512 cat >>confdefs.h <<_ACEOF
7513 #define LT_OBJDIR "$lt_cv_objdir/"
7514 _ACEOF
7519 case $host_os in
7520 aix3*)
7521 # AIX sometimes has problems with the GCC collect2 program. For some
7522 # reason, if we set the COLLECT_NAMES environment variable, the problems
7523 # vanish in a puff of smoke.
7524 if test "X${COLLECT_NAMES+set}" != Xset; then
7525 COLLECT_NAMES=
7526 export COLLECT_NAMES
7529 esac
7531 # Global variables:
7532 ofile=libtool
7533 can_build_shared=yes
7535 # All known linkers require a `.a' archive for static linking (except MSVC,
7536 # which needs '.lib').
7537 libext=a
7539 with_gnu_ld="$lt_cv_prog_gnu_ld"
7541 old_CC="$CC"
7542 old_CFLAGS="$CFLAGS"
7544 # Set sane defaults for various variables
7545 test -z "$CC" && CC=cc
7546 test -z "$LTCC" && LTCC=$CC
7547 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7548 test -z "$LD" && LD=ld
7549 test -z "$ac_objext" && ac_objext=o
7551 for cc_temp in $compiler""; do
7552 case $cc_temp in
7553 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7554 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7555 \-*) ;;
7556 *) break;;
7557 esac
7558 done
7559 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7562 # Only perform the check for file, if the check method requires it
7563 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7564 case $deplibs_check_method in
7565 file_magic*)
7566 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7568 $as_echo_n "checking for ${ac_tool_prefix}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/${ac_tool_prefix}file; then
7584 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}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; }
7631 if test -z "$lt_cv_path_MAGIC_CMD"; then
7632 if test -n "$ac_tool_prefix"; then
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7634 $as_echo_n "checking for file... " >&6; }
7635 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7636 $as_echo_n "(cached) " >&6
7637 else
7638 case $MAGIC_CMD in
7639 [\\/*] | ?:[\\/]*)
7640 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7643 lt_save_MAGIC_CMD="$MAGIC_CMD"
7644 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7645 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7646 for ac_dir in $ac_dummy; do
7647 IFS="$lt_save_ifs"
7648 test -z "$ac_dir" && ac_dir=.
7649 if test -f $ac_dir/file; then
7650 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7651 if test -n "$file_magic_test_file"; then
7652 case $deplibs_check_method in
7653 "file_magic "*)
7654 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7655 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7656 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7657 $EGREP "$file_magic_regex" > /dev/null; then
7659 else
7660 cat <<_LT_EOF 1>&2
7662 *** Warning: the command libtool uses to detect shared libraries,
7663 *** $file_magic_cmd, produces output that libtool cannot recognize.
7664 *** The result is that libtool may fail to recognize shared libraries
7665 *** as such. This will affect the creation of libtool libraries that
7666 *** depend on shared libraries, but programs linked with such libtool
7667 *** libraries will work regardless of this problem. Nevertheless, you
7668 *** may want to report the problem to your system manager and/or to
7669 *** bug-libtool@gnu.org
7671 _LT_EOF
7672 fi ;;
7673 esac
7675 break
7677 done
7678 IFS="$lt_save_ifs"
7679 MAGIC_CMD="$lt_save_MAGIC_CMD"
7681 esac
7684 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7685 if test -n "$MAGIC_CMD"; then
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7687 $as_echo "$MAGIC_CMD" >&6; }
7688 else
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690 $as_echo "no" >&6; }
7694 else
7695 MAGIC_CMD=:
7701 esac
7703 # Use C for the default configuration in the libtool script
7705 lt_save_CC="$CC"
7706 ac_ext=c
7707 ac_cpp='$CPP $CPPFLAGS'
7708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7713 # Source file extension for C test sources.
7714 ac_ext=c
7716 # Object file extension for compiled C test sources.
7717 objext=o
7718 objext=$objext
7720 # Code to be used in simple compile tests
7721 lt_simple_compile_test_code="int some_variable = 0;"
7723 # Code to be used in simple link tests
7724 lt_simple_link_test_code='int main(){return(0);}'
7732 # If no C compiler was specified, use CC.
7733 LTCC=${LTCC-"$CC"}
7735 # If no C compiler flags were specified, use CFLAGS.
7736 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7738 # Allow CC to be a program name with arguments.
7739 compiler=$CC
7741 # Save the default compiler, since it gets overwritten when the other
7742 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7743 compiler_DEFAULT=$CC
7745 # save warnings/boilerplate of simple test code
7746 ac_outfile=conftest.$ac_objext
7747 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7748 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7749 _lt_compiler_boilerplate=`cat conftest.err`
7750 $RM conftest*
7752 ac_outfile=conftest.$ac_objext
7753 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7754 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7755 _lt_linker_boilerplate=`cat conftest.err`
7756 $RM -r conftest*
7759 ## CAVEAT EMPTOR:
7760 ## There is no encapsulation within the following macros, do not change
7761 ## the running order or otherwise move them around unless you know exactly
7762 ## what you are doing...
7763 if test -n "$compiler"; then
7765 lt_prog_compiler_no_builtin_flag=
7767 if test "$GCC" = yes; then
7768 case $cc_basename in
7769 nvcc*)
7770 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7772 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7773 esac
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7776 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7777 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7778 $as_echo_n "(cached) " >&6
7779 else
7780 lt_cv_prog_compiler_rtti_exceptions=no
7781 ac_outfile=conftest.$ac_objext
7782 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7783 lt_compiler_flag="-fno-rtti -fno-exceptions"
7784 # Insert the option either (1) after the last *FLAGS variable, or
7785 # (2) before a word containing "conftest.", or (3) at the end.
7786 # Note that $ac_compile itself does not contain backslashes and begins
7787 # with a dollar sign (not a hyphen), so the echo should work correctly.
7788 # The option is referenced via a variable to avoid confusing sed.
7789 lt_compile=`echo "$ac_compile" | $SED \
7790 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7791 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7792 -e 's:$: $lt_compiler_flag:'`
7793 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7794 (eval "$lt_compile" 2>conftest.err)
7795 ac_status=$?
7796 cat conftest.err >&5
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 if (exit $ac_status) && test -s "$ac_outfile"; then
7799 # The compiler can only warn and ignore the option if not recognized
7800 # So say no if there are warnings other than the usual output.
7801 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7802 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7803 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7804 lt_cv_prog_compiler_rtti_exceptions=yes
7807 $RM conftest*
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7811 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7813 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7814 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7815 else
7826 lt_prog_compiler_wl=
7827 lt_prog_compiler_pic=
7828 lt_prog_compiler_static=
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7831 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7833 if test "$GCC" = yes; then
7834 lt_prog_compiler_wl='-Wl,'
7835 lt_prog_compiler_static='-static'
7837 case $host_os in
7838 aix*)
7839 # All AIX code is PIC.
7840 if test "$host_cpu" = ia64; then
7841 # AIX 5 now supports IA64 processor
7842 lt_prog_compiler_static='-Bstatic'
7844 lt_prog_compiler_pic='-fPIC'
7847 amigaos*)
7848 case $host_cpu in
7849 powerpc)
7850 # see comment about AmigaOS4 .so support
7851 lt_prog_compiler_pic='-fPIC'
7853 m68k)
7854 # FIXME: we need at least 68020 code to build shared libraries, but
7855 # adding the `-m68020' flag to GCC prevents building anything better,
7856 # like `-m68040'.
7857 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7859 esac
7862 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7863 # PIC is the default for these OSes.
7866 mingw* | cygwin* | pw32* | os2* | cegcc*)
7867 # This hack is so that the source file can tell whether it is being
7868 # built for inclusion in a dll (and should export symbols for example).
7869 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7870 # (--disable-auto-import) libraries
7871 lt_prog_compiler_pic='-DDLL_EXPORT'
7874 darwin* | rhapsody*)
7875 # PIC is the default on this platform
7876 # Common symbols not allowed in MH_DYLIB files
7877 lt_prog_compiler_pic='-fno-common'
7880 haiku*)
7881 # PIC is the default for Haiku.
7882 # The "-static" flag exists, but is broken.
7883 lt_prog_compiler_static=
7886 hpux*)
7887 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7888 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7889 # sets the default TLS model and affects inlining.
7890 case $host_cpu in
7891 hppa*64*)
7892 # +Z the default
7895 lt_prog_compiler_pic='-fPIC'
7897 esac
7900 interix[3-9]*)
7901 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7902 # Instead, we relocate shared libraries at runtime.
7905 msdosdjgpp*)
7906 # Just because we use GCC doesn't mean we suddenly get shared libraries
7907 # on systems that don't support them.
7908 lt_prog_compiler_can_build_shared=no
7909 enable_shared=no
7912 *nto* | *qnx*)
7913 # QNX uses GNU C++, but need to define -shared option too, otherwise
7914 # it will coredump.
7915 lt_prog_compiler_pic='-fPIC -shared'
7918 sysv4*MP*)
7919 if test -d /usr/nec; then
7920 lt_prog_compiler_pic=-Kconform_pic
7925 lt_prog_compiler_pic='-fPIC'
7927 esac
7929 case $cc_basename in
7930 nvcc*) # Cuda Compiler Driver 2.2
7931 lt_prog_compiler_wl='-Xlinker '
7932 lt_prog_compiler_pic='-Xcompiler -fPIC'
7934 esac
7935 else
7936 # PORTME Check for flag to pass linker flags through the system compiler.
7937 case $host_os in
7938 aix*)
7939 lt_prog_compiler_wl='-Wl,'
7940 if test "$host_cpu" = ia64; then
7941 # AIX 5 now supports IA64 processor
7942 lt_prog_compiler_static='-Bstatic'
7943 else
7944 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7948 mingw* | cygwin* | pw32* | os2* | cegcc*)
7949 # This hack is so that the source file can tell whether it is being
7950 # built for inclusion in a dll (and should export symbols for example).
7951 lt_prog_compiler_pic='-DDLL_EXPORT'
7954 hpux9* | hpux10* | hpux11*)
7955 lt_prog_compiler_wl='-Wl,'
7956 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7957 # not for PA HP-UX.
7958 case $host_cpu in
7959 hppa*64*|ia64*)
7960 # +Z the default
7963 lt_prog_compiler_pic='+Z'
7965 esac
7966 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7967 lt_prog_compiler_static='${wl}-a ${wl}archive'
7970 irix5* | irix6* | nonstopux*)
7971 lt_prog_compiler_wl='-Wl,'
7972 # PIC (with -KPIC) is the default.
7973 lt_prog_compiler_static='-non_shared'
7976 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7977 case $cc_basename in
7978 # old Intel for x86_64 which still supported -KPIC.
7979 ecc*)
7980 lt_prog_compiler_wl='-Wl,'
7981 lt_prog_compiler_pic='-KPIC'
7982 lt_prog_compiler_static='-static'
7984 # icc used to be incompatible with GCC.
7985 # ICC 10 doesn't accept -KPIC any more.
7986 icc* | ifort*)
7987 lt_prog_compiler_wl='-Wl,'
7988 lt_prog_compiler_pic='-fPIC'
7989 lt_prog_compiler_static='-static'
7991 # Lahey Fortran 8.1.
7992 lf95*)
7993 lt_prog_compiler_wl='-Wl,'
7994 lt_prog_compiler_pic='--shared'
7995 lt_prog_compiler_static='--static'
7997 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7998 # Portland Group compilers (*not* the Pentium gcc compiler,
7999 # which looks to be a dead project)
8000 lt_prog_compiler_wl='-Wl,'
8001 lt_prog_compiler_pic='-fpic'
8002 lt_prog_compiler_static='-Bstatic'
8004 ccc*)
8005 lt_prog_compiler_wl='-Wl,'
8006 # All Alpha code is PIC.
8007 lt_prog_compiler_static='-non_shared'
8009 xl* | bgxl* | bgf* | mpixl*)
8010 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8011 lt_prog_compiler_wl='-Wl,'
8012 lt_prog_compiler_pic='-qpic'
8013 lt_prog_compiler_static='-qstaticlink'
8016 case `$CC -V 2>&1 | sed 5q` in
8017 *Sun\ F* | *Sun*Fortran*)
8018 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8019 lt_prog_compiler_pic='-KPIC'
8020 lt_prog_compiler_static='-Bstatic'
8021 lt_prog_compiler_wl=''
8023 *Sun\ C*)
8024 # Sun C 5.9
8025 lt_prog_compiler_pic='-KPIC'
8026 lt_prog_compiler_static='-Bstatic'
8027 lt_prog_compiler_wl='-Wl,'
8029 esac
8031 esac
8034 newsos6)
8035 lt_prog_compiler_pic='-KPIC'
8036 lt_prog_compiler_static='-Bstatic'
8039 *nto* | *qnx*)
8040 # QNX uses GNU C++, but need to define -shared option too, otherwise
8041 # it will coredump.
8042 lt_prog_compiler_pic='-fPIC -shared'
8045 osf3* | osf4* | osf5*)
8046 lt_prog_compiler_wl='-Wl,'
8047 # All OSF/1 code is PIC.
8048 lt_prog_compiler_static='-non_shared'
8051 rdos*)
8052 lt_prog_compiler_static='-non_shared'
8055 solaris*)
8056 lt_prog_compiler_pic='-KPIC'
8057 lt_prog_compiler_static='-Bstatic'
8058 case $cc_basename in
8059 f77* | f90* | f95*)
8060 lt_prog_compiler_wl='-Qoption ld ';;
8062 lt_prog_compiler_wl='-Wl,';;
8063 esac
8066 sunos4*)
8067 lt_prog_compiler_wl='-Qoption ld '
8068 lt_prog_compiler_pic='-PIC'
8069 lt_prog_compiler_static='-Bstatic'
8072 sysv4 | sysv4.2uw2* | sysv4.3*)
8073 lt_prog_compiler_wl='-Wl,'
8074 lt_prog_compiler_pic='-KPIC'
8075 lt_prog_compiler_static='-Bstatic'
8078 sysv4*MP*)
8079 if test -d /usr/nec ;then
8080 lt_prog_compiler_pic='-Kconform_pic'
8081 lt_prog_compiler_static='-Bstatic'
8085 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8086 lt_prog_compiler_wl='-Wl,'
8087 lt_prog_compiler_pic='-KPIC'
8088 lt_prog_compiler_static='-Bstatic'
8091 unicos*)
8092 lt_prog_compiler_wl='-Wl,'
8093 lt_prog_compiler_can_build_shared=no
8096 uts4*)
8097 lt_prog_compiler_pic='-pic'
8098 lt_prog_compiler_static='-Bstatic'
8102 lt_prog_compiler_can_build_shared=no
8104 esac
8107 case $host_os in
8108 # For platforms which do not support PIC, -DPIC is meaningless:
8109 *djgpp*)
8110 lt_prog_compiler_pic=
8113 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8115 esac
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8117 $as_echo "$lt_prog_compiler_pic" >&6; }
8125 # Check to make sure the PIC flag actually works.
8127 if test -n "$lt_prog_compiler_pic"; then
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8129 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8130 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8131 $as_echo_n "(cached) " >&6
8132 else
8133 lt_cv_prog_compiler_pic_works=no
8134 ac_outfile=conftest.$ac_objext
8135 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8136 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8137 # Insert the option either (1) after the last *FLAGS variable, or
8138 # (2) before a word containing "conftest.", or (3) at the end.
8139 # Note that $ac_compile itself does not contain backslashes and begins
8140 # with a dollar sign (not a hyphen), so the echo should work correctly.
8141 # The option is referenced via a variable to avoid confusing sed.
8142 lt_compile=`echo "$ac_compile" | $SED \
8143 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8144 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8145 -e 's:$: $lt_compiler_flag:'`
8146 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8147 (eval "$lt_compile" 2>conftest.err)
8148 ac_status=$?
8149 cat conftest.err >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 if (exit $ac_status) && test -s "$ac_outfile"; then
8152 # The compiler can only warn and ignore the option if not recognized
8153 # So say no if there are warnings other than the usual output.
8154 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8155 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8156 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8157 lt_cv_prog_compiler_pic_works=yes
8160 $RM conftest*
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8164 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8166 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8167 case $lt_prog_compiler_pic in
8168 "" | " "*) ;;
8169 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8170 esac
8171 else
8172 lt_prog_compiler_pic=
8173 lt_prog_compiler_can_build_shared=no
8184 # Check to make sure the static flag actually works.
8186 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8188 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8189 if ${lt_cv_prog_compiler_static_works+:} false; then :
8190 $as_echo_n "(cached) " >&6
8191 else
8192 lt_cv_prog_compiler_static_works=no
8193 save_LDFLAGS="$LDFLAGS"
8194 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8195 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8196 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8197 # The linker can only warn and ignore the option if not recognized
8198 # So say no if there are warnings
8199 if test -s conftest.err; then
8200 # Append any errors to the config.log.
8201 cat conftest.err 1>&5
8202 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8203 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8204 if diff conftest.exp conftest.er2 >/dev/null; then
8205 lt_cv_prog_compiler_static_works=yes
8207 else
8208 lt_cv_prog_compiler_static_works=yes
8211 $RM -r conftest*
8212 LDFLAGS="$save_LDFLAGS"
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8216 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8218 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8220 else
8221 lt_prog_compiler_static=
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8231 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8232 if ${lt_cv_prog_compiler_c_o+:} false; then :
8233 $as_echo_n "(cached) " >&6
8234 else
8235 lt_cv_prog_compiler_c_o=no
8236 $RM -r conftest 2>/dev/null
8237 mkdir conftest
8238 cd conftest
8239 mkdir out
8240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8242 lt_compiler_flag="-o out/conftest2.$ac_objext"
8243 # Insert the option either (1) after the last *FLAGS variable, or
8244 # (2) before a word containing "conftest.", or (3) at the end.
8245 # Note that $ac_compile itself does not contain backslashes and begins
8246 # with a dollar sign (not a hyphen), so the echo should work correctly.
8247 lt_compile=`echo "$ac_compile" | $SED \
8248 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8250 -e 's:$: $lt_compiler_flag:'`
8251 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8252 (eval "$lt_compile" 2>out/conftest.err)
8253 ac_status=$?
8254 cat out/conftest.err >&5
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8257 then
8258 # The compiler can only warn and ignore the option if not recognized
8259 # So say no if there are warnings
8260 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8261 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8262 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8263 lt_cv_prog_compiler_c_o=yes
8266 chmod u+w . 2>&5
8267 $RM conftest*
8268 # SGI C++ compiler will create directory out/ii_files/ for
8269 # template instantiation
8270 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8271 $RM out/* && rmdir out
8272 cd ..
8273 $RM -r conftest
8274 $RM conftest*
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8278 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8286 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8287 if ${lt_cv_prog_compiler_c_o+:} false; then :
8288 $as_echo_n "(cached) " >&6
8289 else
8290 lt_cv_prog_compiler_c_o=no
8291 $RM -r conftest 2>/dev/null
8292 mkdir conftest
8293 cd conftest
8294 mkdir out
8295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8297 lt_compiler_flag="-o out/conftest2.$ac_objext"
8298 # Insert the option either (1) after the last *FLAGS variable, or
8299 # (2) before a word containing "conftest.", or (3) at the end.
8300 # Note that $ac_compile itself does not contain backslashes and begins
8301 # with a dollar sign (not a hyphen), so the echo should work correctly.
8302 lt_compile=`echo "$ac_compile" | $SED \
8303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8305 -e 's:$: $lt_compiler_flag:'`
8306 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8307 (eval "$lt_compile" 2>out/conftest.err)
8308 ac_status=$?
8309 cat out/conftest.err >&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8312 then
8313 # The compiler can only warn and ignore the option if not recognized
8314 # So say no if there are warnings
8315 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8316 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8317 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8318 lt_cv_prog_compiler_c_o=yes
8321 chmod u+w . 2>&5
8322 $RM conftest*
8323 # SGI C++ compiler will create directory out/ii_files/ for
8324 # template instantiation
8325 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8326 $RM out/* && rmdir out
8327 cd ..
8328 $RM -r conftest
8329 $RM conftest*
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8333 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8338 hard_links="nottested"
8339 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8340 # do not overwrite the value of need_locks provided by the user
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8342 $as_echo_n "checking if we can lock with hard links... " >&6; }
8343 hard_links=yes
8344 $RM conftest*
8345 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8346 touch conftest.a
8347 ln conftest.a conftest.b 2>&5 || hard_links=no
8348 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8350 $as_echo "$hard_links" >&6; }
8351 if test "$hard_links" = no; then
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8353 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8354 need_locks=warn
8356 else
8357 need_locks=no
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8366 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8368 runpath_var=
8369 allow_undefined_flag=
8370 always_export_symbols=no
8371 archive_cmds=
8372 archive_expsym_cmds=
8373 compiler_needs_object=no
8374 enable_shared_with_static_runtimes=no
8375 export_dynamic_flag_spec=
8376 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8377 hardcode_automatic=no
8378 hardcode_direct=no
8379 hardcode_direct_absolute=no
8380 hardcode_libdir_flag_spec=
8381 hardcode_libdir_flag_spec_ld=
8382 hardcode_libdir_separator=
8383 hardcode_minus_L=no
8384 hardcode_shlibpath_var=unsupported
8385 inherit_rpath=no
8386 link_all_deplibs=unknown
8387 module_cmds=
8388 module_expsym_cmds=
8389 old_archive_from_new_cmds=
8390 old_archive_from_expsyms_cmds=
8391 thread_safe_flag_spec=
8392 whole_archive_flag_spec=
8393 # include_expsyms should be a list of space-separated symbols to be *always*
8394 # included in the symbol list
8395 include_expsyms=
8396 # exclude_expsyms can be an extended regexp of symbols to exclude
8397 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8398 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8399 # as well as any symbol that contains `d'.
8400 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8401 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8402 # platforms (ab)use it in PIC code, but their linkers get confused if
8403 # the symbol is explicitly referenced. Since portable code cannot
8404 # rely on this symbol name, it's probably fine to never include it in
8405 # preloaded symbol tables.
8406 # Exclude shared library initialization/finalization symbols.
8407 extract_expsyms_cmds=
8409 case $host_os in
8410 cygwin* | mingw* | pw32* | cegcc*)
8411 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8412 # When not using gcc, we currently assume that we are using
8413 # Microsoft Visual C++.
8414 if test "$GCC" != yes; then
8415 with_gnu_ld=no
8418 interix*)
8419 # we just hope/assume this is gcc and not c89 (= MSVC++)
8420 with_gnu_ld=yes
8422 openbsd*)
8423 with_gnu_ld=no
8425 esac
8427 ld_shlibs=yes
8429 # On some targets, GNU ld is compatible enough with the native linker
8430 # that we're better off using the native interface for both.
8431 lt_use_gnu_ld_interface=no
8432 if test "$with_gnu_ld" = yes; then
8433 case $host_os in
8434 aix*)
8435 # The AIX port of GNU ld has always aspired to compatibility
8436 # with the native linker. However, as the warning in the GNU ld
8437 # block says, versions before 2.19.5* couldn't really create working
8438 # shared libraries, regardless of the interface used.
8439 case `$LD -v 2>&1` in
8440 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8441 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8442 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8444 lt_use_gnu_ld_interface=yes
8446 esac
8449 lt_use_gnu_ld_interface=yes
8451 esac
8454 if test "$lt_use_gnu_ld_interface" = yes; then
8455 # If archive_cmds runs LD, not CC, wlarc should be empty
8456 wlarc='${wl}'
8458 # Set some defaults for GNU ld with shared library support. These
8459 # are reset later if shared libraries are not supported. Putting them
8460 # here allows them to be overridden if necessary.
8461 runpath_var=LD_RUN_PATH
8462 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8463 export_dynamic_flag_spec='${wl}--export-dynamic'
8464 # ancient GNU ld didn't support --whole-archive et. al.
8465 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8466 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8467 else
8468 whole_archive_flag_spec=
8470 supports_anon_versioning=no
8471 case `$LD -v 2>&1` in
8472 *GNU\ gold*) supports_anon_versioning=yes ;;
8473 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8474 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8475 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8476 *\ 2.11.*) ;; # other 2.11 versions
8477 *) supports_anon_versioning=yes ;;
8478 esac
8480 # See if GNU ld supports shared libraries.
8481 case $host_os in
8482 aix[3-9]*)
8483 # On AIX/PPC, the GNU linker is very broken
8484 if test "$host_cpu" != ia64; then
8485 ld_shlibs=no
8486 cat <<_LT_EOF 1>&2
8488 *** Warning: the GNU linker, at least up to release 2.19, is reported
8489 *** to be unable to reliably create shared libraries on AIX.
8490 *** Therefore, libtool is disabling shared libraries support. If you
8491 *** really care for shared libraries, you may want to install binutils
8492 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8493 *** You will then need to restart the configuration process.
8495 _LT_EOF
8499 amigaos*)
8500 case $host_cpu in
8501 powerpc)
8502 # see comment about AmigaOS4 .so support
8503 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8504 archive_expsym_cmds=''
8506 m68k)
8507 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)'
8508 hardcode_libdir_flag_spec='-L$libdir'
8509 hardcode_minus_L=yes
8511 esac
8514 beos*)
8515 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8516 allow_undefined_flag=unsupported
8517 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8518 # support --undefined. This deserves some investigation. FIXME
8519 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8520 else
8521 ld_shlibs=no
8525 cygwin* | mingw* | pw32* | cegcc*)
8526 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8527 # as there is no search path for DLLs.
8528 hardcode_libdir_flag_spec='-L$libdir'
8529 export_dynamic_flag_spec='${wl}--export-all-symbols'
8530 allow_undefined_flag=unsupported
8531 always_export_symbols=no
8532 enable_shared_with_static_runtimes=yes
8533 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8535 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8536 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8537 # If the export-symbols file already is a .def file (1st line
8538 # is EXPORTS), use it as is; otherwise, prepend...
8539 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8540 cp $export_symbols $output_objdir/$soname.def;
8541 else
8542 echo EXPORTS > $output_objdir/$soname.def;
8543 cat $export_symbols >> $output_objdir/$soname.def;
8545 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8546 else
8547 ld_shlibs=no
8551 haiku*)
8552 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8553 link_all_deplibs=yes
8556 interix[3-9]*)
8557 hardcode_direct=no
8558 hardcode_shlibpath_var=no
8559 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8560 export_dynamic_flag_spec='${wl}-E'
8561 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8562 # Instead, shared libraries are loaded at an image base (0x10000000 by
8563 # default) and relocated if they conflict, which is a slow very memory
8564 # consuming and fragmenting process. To avoid this, we pick a random,
8565 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8566 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8567 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8568 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'
8571 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
8572 tmp_diet=no
8573 if test "$host_os" = linux-dietlibc; then
8574 case $cc_basename in
8575 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8576 esac
8578 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8579 && test "$tmp_diet" = no
8580 then
8581 tmp_addflag=' $pic_flag'
8582 tmp_sharedflag='-shared'
8583 case $cc_basename,$host_cpu in
8584 pgcc*) # Portland Group C compiler
8585 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'
8586 tmp_addflag=' $pic_flag'
8588 pgf77* | pgf90* | pgf95* | pgfortran*)
8589 # Portland Group f77 and f90 compilers
8590 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'
8591 tmp_addflag=' $pic_flag -Mnomain' ;;
8592 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8593 tmp_addflag=' -i_dynamic' ;;
8594 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8595 tmp_addflag=' -i_dynamic -nofor_main' ;;
8596 ifc* | ifort*) # Intel Fortran compiler
8597 tmp_addflag=' -nofor_main' ;;
8598 lf95*) # Lahey Fortran 8.1
8599 whole_archive_flag_spec=
8600 tmp_sharedflag='--shared' ;;
8601 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8602 tmp_sharedflag='-qmkshrobj'
8603 tmp_addflag= ;;
8604 nvcc*) # Cuda Compiler Driver 2.2
8605 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'
8606 compiler_needs_object=yes
8608 esac
8609 case `$CC -V 2>&1 | sed 5q` in
8610 *Sun\ C*) # Sun C 5.9
8611 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'
8612 compiler_needs_object=yes
8613 tmp_sharedflag='-G' ;;
8614 *Sun\ F*) # Sun Fortran 8.3
8615 tmp_sharedflag='-G' ;;
8616 esac
8617 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8619 if test "x$supports_anon_versioning" = xyes; then
8620 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8621 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8622 echo "local: *; };" >> $output_objdir/$libname.ver~
8623 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8626 case $cc_basename in
8627 xlf* | bgf* | bgxlf* | mpixlf*)
8628 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8629 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8630 hardcode_libdir_flag_spec=
8631 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8632 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8633 if test "x$supports_anon_versioning" = xyes; then
8634 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8635 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8636 echo "local: *; };" >> $output_objdir/$libname.ver~
8637 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8640 esac
8641 else
8642 ld_shlibs=no
8646 netbsd*)
8647 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8648 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8649 wlarc=
8650 else
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'
8656 solaris*)
8657 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8658 ld_shlibs=no
8659 cat <<_LT_EOF 1>&2
8661 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8662 *** create shared libraries on Solaris systems. Therefore, libtool
8663 *** is disabling shared libraries support. We urge you to upgrade GNU
8664 *** binutils to release 2.9.1 or newer. Another option is to modify
8665 *** your PATH or compiler configuration so that the native linker is
8666 *** used, and then restart.
8668 _LT_EOF
8669 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8670 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8671 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8672 else
8673 ld_shlibs=no
8677 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8678 case `$LD -v 2>&1` in
8679 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8680 ld_shlibs=no
8681 cat <<_LT_EOF 1>&2
8683 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8684 *** reliably create shared libraries on SCO systems. Therefore, libtool
8685 *** is disabling shared libraries support. We urge you to upgrade GNU
8686 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8687 *** your PATH or compiler configuration so that the native linker is
8688 *** used, and then restart.
8690 _LT_EOF
8693 # For security reasons, it is highly recommended that you always
8694 # use absolute paths for naming shared libraries, and exclude the
8695 # DT_RUNPATH tag from executables and libraries. But doing so
8696 # requires that you compile everything twice, which is a pain.
8697 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8698 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8699 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8700 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8701 else
8702 ld_shlibs=no
8705 esac
8708 sunos4*)
8709 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8710 wlarc=
8711 hardcode_direct=yes
8712 hardcode_shlibpath_var=no
8716 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8717 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8718 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8719 else
8720 ld_shlibs=no
8723 esac
8725 if test "$ld_shlibs" = no; then
8726 runpath_var=
8727 hardcode_libdir_flag_spec=
8728 export_dynamic_flag_spec=
8729 whole_archive_flag_spec=
8731 else
8732 # PORTME fill in a description of your system's linker (not GNU ld)
8733 case $host_os in
8734 aix3*)
8735 allow_undefined_flag=unsupported
8736 always_export_symbols=yes
8737 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'
8738 # Note: this linker hardcodes the directories in LIBPATH if there
8739 # are no directories specified by -L.
8740 hardcode_minus_L=yes
8741 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8742 # Neither direct hardcoding nor static linking is supported with a
8743 # broken collect2.
8744 hardcode_direct=unsupported
8748 aix[4-9]*)
8749 if test "$host_cpu" = ia64; then
8750 # On IA64, the linker does run time linking by default, so we don't
8751 # have to do anything special.
8752 aix_use_runtimelinking=no
8753 exp_sym_flag='-Bexport'
8754 no_entry_flag=""
8755 else
8756 # If we're using GNU nm, then we don't want the "-C" option.
8757 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8758 # Also, AIX nm treats weak defined symbols like other global
8759 # defined symbols, whereas GNU nm marks them as "W".
8760 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8761 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'
8762 else
8763 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'
8765 aix_use_runtimelinking=no
8767 # Test if we are trying to use run time linking or normal
8768 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8769 # need to do runtime linking.
8770 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8771 for ld_flag in $LDFLAGS; do
8772 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8773 aix_use_runtimelinking=yes
8774 break
8776 done
8778 esac
8780 exp_sym_flag='-bexport'
8781 no_entry_flag='-bnoentry'
8784 # When large executables or shared objects are built, AIX ld can
8785 # have problems creating the table of contents. If linking a library
8786 # or program results in "error TOC overflow" add -mminimal-toc to
8787 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8788 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8790 archive_cmds=''
8791 hardcode_direct=yes
8792 hardcode_direct_absolute=yes
8793 hardcode_libdir_separator=':'
8794 link_all_deplibs=yes
8795 file_list_spec='${wl}-f,'
8797 if test "$GCC" = yes; then
8798 case $host_os in aix4.[012]|aix4.[012].*)
8799 # We only want to do this on AIX 4.2 and lower, the check
8800 # below for broken collect2 doesn't work under 4.3+
8801 collect2name=`${CC} -print-prog-name=collect2`
8802 if test -f "$collect2name" &&
8803 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8804 then
8805 # We have reworked collect2
8807 else
8808 # We have old collect2
8809 hardcode_direct=unsupported
8810 # It fails to find uninstalled libraries when the uninstalled
8811 # path is not listed in the libpath. Setting hardcode_minus_L
8812 # to unsupported forces relinking
8813 hardcode_minus_L=yes
8814 hardcode_libdir_flag_spec='-L$libdir'
8815 hardcode_libdir_separator=
8818 esac
8819 shared_flag='-shared'
8820 if test "$aix_use_runtimelinking" = yes; then
8821 shared_flag="$shared_flag "'${wl}-G'
8823 else
8824 # not using gcc
8825 if test "$host_cpu" = ia64; then
8826 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8827 # chokes on -Wl,-G. The following line is correct:
8828 shared_flag='-G'
8829 else
8830 if test "$aix_use_runtimelinking" = yes; then
8831 shared_flag='${wl}-G'
8832 else
8833 shared_flag='${wl}-bM:SRE'
8838 export_dynamic_flag_spec='${wl}-bexpall'
8839 # It seems that -bexpall does not export symbols beginning with
8840 # underscore (_), so it is better to generate a list of symbols to export.
8841 always_export_symbols=yes
8842 if test "$aix_use_runtimelinking" = yes; then
8843 # Warning - without using the other runtime loading flags (-brtl),
8844 # -berok will link without error, but may produce a broken library.
8845 allow_undefined_flag='-berok'
8846 # Determine the default libpath from the value encoded in an
8847 # empty executable.
8848 if test x$gcc_no_link = xyes; then
8849 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8852 /* end confdefs.h. */
8855 main ()
8859 return 0;
8861 _ACEOF
8862 if ac_fn_c_try_link "$LINENO"; then :
8864 lt_aix_libpath_sed='
8865 /Import File Strings/,/^$/ {
8866 /^0/ {
8867 s/^0 *\(.*\)$/\1/
8871 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8872 # Check for a 64-bit object if we didn't find anything.
8873 if test -z "$aix_libpath"; then
8874 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8877 rm -f core conftest.err conftest.$ac_objext \
8878 conftest$ac_exeext conftest.$ac_ext
8879 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8881 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8882 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"
8883 else
8884 if test "$host_cpu" = ia64; then
8885 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8886 allow_undefined_flag="-z nodefs"
8887 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"
8888 else
8889 # Determine the default libpath from the value encoded in an
8890 # empty executable.
8891 if test x$gcc_no_link = xyes; then
8892 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8895 /* end confdefs.h. */
8898 main ()
8902 return 0;
8904 _ACEOF
8905 if ac_fn_c_try_link "$LINENO"; then :
8907 lt_aix_libpath_sed='
8908 /Import File Strings/,/^$/ {
8909 /^0/ {
8910 s/^0 *\(.*\)$/\1/
8914 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8915 # Check for a 64-bit object if we didn't find anything.
8916 if test -z "$aix_libpath"; then
8917 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8920 rm -f core conftest.err conftest.$ac_objext \
8921 conftest$ac_exeext conftest.$ac_ext
8922 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8924 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8925 # Warning - without using the other run time loading flags,
8926 # -berok will link without error, but may produce a broken library.
8927 no_undefined_flag=' ${wl}-bernotok'
8928 allow_undefined_flag=' ${wl}-berok'
8929 if test "$with_gnu_ld" = yes; then
8930 # We only use this code for GNU lds that support --whole-archive.
8931 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8932 else
8933 # Exported symbols can be pulled into shared objects from archives
8934 whole_archive_flag_spec='$convenience'
8936 archive_cmds_need_lc=yes
8937 # This is similar to how AIX traditionally builds its shared libraries.
8938 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'
8943 amigaos*)
8944 case $host_cpu in
8945 powerpc)
8946 # see comment about AmigaOS4 .so support
8947 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8948 archive_expsym_cmds=''
8950 m68k)
8951 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)'
8952 hardcode_libdir_flag_spec='-L$libdir'
8953 hardcode_minus_L=yes
8955 esac
8958 bsdi[45]*)
8959 export_dynamic_flag_spec=-rdynamic
8962 cygwin* | mingw* | pw32* | cegcc*)
8963 # When not using gcc, we currently assume that we are using
8964 # Microsoft Visual C++.
8965 # hardcode_libdir_flag_spec is actually meaningless, as there is
8966 # no search path for DLLs.
8967 hardcode_libdir_flag_spec=' '
8968 allow_undefined_flag=unsupported
8969 # Tell ltmain to make .lib files, not .a files.
8970 libext=lib
8971 # Tell ltmain to make .dll files, not .so files.
8972 shrext_cmds=".dll"
8973 # FIXME: Setting linknames here is a bad hack.
8974 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8975 # The linker will automatically build a .lib file if we build a DLL.
8976 old_archive_from_new_cmds='true'
8977 # FIXME: Should let the user specify the lib program.
8978 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8979 fix_srcfile_path='`cygpath -w "$srcfile"`'
8980 enable_shared_with_static_runtimes=yes
8983 darwin* | rhapsody*)
8987 # Publish an arg to allow the user to select that Darwin host (and target)
8988 # libraries should be given install-names like @rpath/libfoo.dylib. This
8989 # requires that the user of the library then adds an 'rpath' to the DSO that
8990 # needs access.
8991 # NOTE: there are defaults below, for systems that support rpaths. The person
8992 # configuring can override the defaults for any system version that supports
8993 # them - they are, however, forced off for system versions without support.
8994 # Check whether --enable-darwin-at-rpath was given.
8995 if test "${enable_darwin_at_rpath+set}" = set; then :
8996 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
8997 # This is not supported before macOS 10.5 / Darwin9.
8998 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
8999 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
9001 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
9002 enable_darwin_at_rpath=no
9004 esac
9006 else
9007 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
9008 # As above, before 10.5 / Darwin9 this does not work.
9009 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
9010 enable_darwin_at_rpath=no
9013 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
9014 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
9015 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
9016 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
9018 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
9019 enable_darwin_at_rpath=yes
9021 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
9022 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
9024 esac
9029 archive_cmds_need_lc=no
9030 hardcode_direct=no
9031 hardcode_automatic=yes
9032 hardcode_shlibpath_var=unsupported
9033 if test "$lt_cv_ld_force_load" = "yes"; then
9034 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\"`'
9035 else
9036 whole_archive_flag_spec=''
9038 link_all_deplibs=yes
9039 allow_undefined_flag="$_lt_dar_allow_undefined"
9040 case $cc_basename in
9041 ifort*) _lt_dar_can_shared=yes ;;
9042 *) _lt_dar_can_shared=$GCC ;;
9043 esac
9044 if test "$_lt_dar_can_shared" = "yes"; then
9045 output_verbose_link_cmd=func_echo_all
9046 _lt_install_name='\$rpath/\$soname'
9047 if test "x$enable_darwin_at_rpath" = "xyes"; then
9048 _lt_install_name='@rpath/\$soname'
9050 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
9051 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9052 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
9053 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}"
9055 else
9056 ld_shlibs=no
9061 dgux*)
9062 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9063 hardcode_libdir_flag_spec='-L$libdir'
9064 hardcode_shlibpath_var=no
9067 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9068 # support. Future versions do this automatically, but an explicit c++rt0.o
9069 # does not break anything, and helps significantly (at the cost of a little
9070 # extra space).
9071 freebsd2.2*)
9072 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9073 hardcode_libdir_flag_spec='-R$libdir'
9074 hardcode_direct=yes
9075 hardcode_shlibpath_var=no
9078 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9079 freebsd2.*)
9080 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9081 hardcode_direct=yes
9082 hardcode_minus_L=yes
9083 hardcode_shlibpath_var=no
9086 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9087 freebsd* | dragonfly*)
9088 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9089 hardcode_libdir_flag_spec='-R$libdir'
9090 hardcode_direct=yes
9091 hardcode_shlibpath_var=no
9094 hpux9*)
9095 if test "$GCC" = yes; then
9096 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'
9097 else
9098 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'
9100 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9101 hardcode_libdir_separator=:
9102 hardcode_direct=yes
9104 # hardcode_minus_L: Not really in the search PATH,
9105 # but as the default location of the library.
9106 hardcode_minus_L=yes
9107 export_dynamic_flag_spec='${wl}-E'
9110 hpux10*)
9111 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9112 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9113 else
9114 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9116 if test "$with_gnu_ld" = no; then
9117 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9118 hardcode_libdir_flag_spec_ld='+b $libdir'
9119 hardcode_libdir_separator=:
9120 hardcode_direct=yes
9121 hardcode_direct_absolute=yes
9122 export_dynamic_flag_spec='${wl}-E'
9123 # hardcode_minus_L: Not really in the search PATH,
9124 # but as the default location of the library.
9125 hardcode_minus_L=yes
9129 hpux11*)
9130 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9131 case $host_cpu in
9132 hppa*64*)
9133 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9135 ia64*)
9136 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9139 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9141 esac
9142 else
9143 case $host_cpu in
9144 hppa*64*)
9145 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9147 ia64*)
9148 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9152 # Older versions of the 11.00 compiler do not understand -b yet
9153 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9155 $as_echo_n "checking if $CC understands -b... " >&6; }
9156 if ${lt_cv_prog_compiler__b+:} false; then :
9157 $as_echo_n "(cached) " >&6
9158 else
9159 lt_cv_prog_compiler__b=no
9160 save_LDFLAGS="$LDFLAGS"
9161 LDFLAGS="$LDFLAGS -b"
9162 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9163 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9164 # The linker can only warn and ignore the option if not recognized
9165 # So say no if there are warnings
9166 if test -s conftest.err; then
9167 # Append any errors to the config.log.
9168 cat conftest.err 1>&5
9169 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9170 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9171 if diff conftest.exp conftest.er2 >/dev/null; then
9172 lt_cv_prog_compiler__b=yes
9174 else
9175 lt_cv_prog_compiler__b=yes
9178 $RM -r conftest*
9179 LDFLAGS="$save_LDFLAGS"
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9183 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9185 if test x"$lt_cv_prog_compiler__b" = xyes; then
9186 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9187 else
9188 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9192 esac
9194 if test "$with_gnu_ld" = no; then
9195 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9196 hardcode_libdir_separator=:
9198 case $host_cpu in
9199 hppa*64*|ia64*)
9200 hardcode_direct=no
9201 hardcode_shlibpath_var=no
9204 hardcode_direct=yes
9205 hardcode_direct_absolute=yes
9206 export_dynamic_flag_spec='${wl}-E'
9208 # hardcode_minus_L: Not really in the search PATH,
9209 # but as the default location of the library.
9210 hardcode_minus_L=yes
9212 esac
9216 irix5* | irix6* | nonstopux*)
9217 if test "$GCC" = yes; then
9218 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'
9219 # Try to use the -exported_symbol ld option, if it does not
9220 # work, assume that -exports_file does not work either and
9221 # implicitly export all symbols.
9222 save_LDFLAGS="$LDFLAGS"
9223 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9224 if test x$gcc_no_link = xyes; then
9225 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9228 /* end confdefs.h. */
9229 int foo(void) {}
9230 _ACEOF
9231 if ac_fn_c_try_link "$LINENO"; then :
9232 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'
9235 rm -f core conftest.err conftest.$ac_objext \
9236 conftest$ac_exeext conftest.$ac_ext
9237 LDFLAGS="$save_LDFLAGS"
9238 else
9239 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'
9240 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'
9242 archive_cmds_need_lc='no'
9243 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9244 hardcode_libdir_separator=:
9245 inherit_rpath=yes
9246 link_all_deplibs=yes
9249 netbsd*)
9250 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9251 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9252 else
9253 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9255 hardcode_libdir_flag_spec='-R$libdir'
9256 hardcode_direct=yes
9257 hardcode_shlibpath_var=no
9260 newsos6)
9261 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9262 hardcode_direct=yes
9263 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9264 hardcode_libdir_separator=:
9265 hardcode_shlibpath_var=no
9268 *nto* | *qnx*)
9271 openbsd*)
9272 if test -f /usr/libexec/ld.so; then
9273 hardcode_direct=yes
9274 hardcode_shlibpath_var=no
9275 hardcode_direct_absolute=yes
9276 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9277 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9278 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9279 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9280 export_dynamic_flag_spec='${wl}-E'
9281 else
9282 case $host_os in
9283 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9284 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9285 hardcode_libdir_flag_spec='-R$libdir'
9288 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9289 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9291 esac
9293 else
9294 ld_shlibs=no
9298 os2*)
9299 hardcode_libdir_flag_spec='-L$libdir'
9300 hardcode_minus_L=yes
9301 allow_undefined_flag=unsupported
9302 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'
9303 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9306 osf3*)
9307 if test "$GCC" = yes; then
9308 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9309 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'
9310 else
9311 allow_undefined_flag=' -expect_unresolved \*'
9312 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'
9314 archive_cmds_need_lc='no'
9315 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9316 hardcode_libdir_separator=:
9319 osf4* | osf5*) # as osf3* with the addition of -msym flag
9320 if test "$GCC" = yes; then
9321 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9322 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'
9323 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9324 else
9325 allow_undefined_flag=' -expect_unresolved \*'
9326 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'
9327 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~
9328 $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'
9330 # Both c and cxx compiler support -rpath directly
9331 hardcode_libdir_flag_spec='-rpath $libdir'
9333 archive_cmds_need_lc='no'
9334 hardcode_libdir_separator=:
9337 solaris*)
9338 no_undefined_flag=' -z defs'
9339 if test "$GCC" = yes; then
9340 wlarc='${wl}'
9341 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9342 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9343 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9344 else
9345 case `$CC -V 2>&1` in
9346 *"Compilers 5.0"*)
9347 wlarc=''
9348 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9349 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9350 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9353 wlarc='${wl}'
9354 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9355 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9356 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9358 esac
9360 hardcode_libdir_flag_spec='-R$libdir'
9361 hardcode_shlibpath_var=no
9362 case $host_os in
9363 solaris2.[0-5] | solaris2.[0-5].*) ;;
9365 # The compiler driver will combine and reorder linker options,
9366 # but understands `-z linker_flag'. GCC discards it without `$wl',
9367 # but is careful enough not to reorder.
9368 # Supported since Solaris 2.6 (maybe 2.5.1?)
9369 if test "$GCC" = yes; then
9370 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9371 else
9372 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9375 esac
9376 link_all_deplibs=yes
9379 sunos4*)
9380 if test "x$host_vendor" = xsequent; then
9381 # Use $CC to link under sequent, because it throws in some extra .o
9382 # files that make .init and .fini sections work.
9383 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9384 else
9385 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9387 hardcode_libdir_flag_spec='-L$libdir'
9388 hardcode_direct=yes
9389 hardcode_minus_L=yes
9390 hardcode_shlibpath_var=no
9393 sysv4)
9394 case $host_vendor in
9395 sni)
9396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9397 hardcode_direct=yes # is this really true???
9399 siemens)
9400 ## LD is ld it makes a PLAMLIB
9401 ## CC just makes a GrossModule.
9402 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9403 reload_cmds='$CC -r -o $output$reload_objs'
9404 hardcode_direct=no
9406 motorola)
9407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9408 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9410 esac
9411 runpath_var='LD_RUN_PATH'
9412 hardcode_shlibpath_var=no
9415 sysv4.3*)
9416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9417 hardcode_shlibpath_var=no
9418 export_dynamic_flag_spec='-Bexport'
9421 sysv4*MP*)
9422 if test -d /usr/nec; then
9423 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9424 hardcode_shlibpath_var=no
9425 runpath_var=LD_RUN_PATH
9426 hardcode_runpath_var=yes
9427 ld_shlibs=yes
9431 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9432 no_undefined_flag='${wl}-z,text'
9433 archive_cmds_need_lc=no
9434 hardcode_shlibpath_var=no
9435 runpath_var='LD_RUN_PATH'
9437 if test "$GCC" = yes; then
9438 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9439 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9440 else
9441 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9442 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9446 sysv5* | sco3.2v5* | sco5v6*)
9447 # Note: We can NOT use -z defs as we might desire, because we do not
9448 # link with -lc, and that would cause any symbols used from libc to
9449 # always be unresolved, which means just about no library would
9450 # ever link correctly. If we're not using GNU ld we use -z text
9451 # though, which does catch some bad symbols but isn't as heavy-handed
9452 # as -z defs.
9453 no_undefined_flag='${wl}-z,text'
9454 allow_undefined_flag='${wl}-z,nodefs'
9455 archive_cmds_need_lc=no
9456 hardcode_shlibpath_var=no
9457 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9458 hardcode_libdir_separator=':'
9459 link_all_deplibs=yes
9460 export_dynamic_flag_spec='${wl}-Bexport'
9461 runpath_var='LD_RUN_PATH'
9463 if test "$GCC" = yes; then
9464 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9465 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9466 else
9467 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9468 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9472 uts4*)
9473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9474 hardcode_libdir_flag_spec='-L$libdir'
9475 hardcode_shlibpath_var=no
9479 ld_shlibs=no
9481 esac
9483 if test x$host_vendor = xsni; then
9484 case $host in
9485 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9486 export_dynamic_flag_spec='${wl}-Blargedynsym'
9488 esac
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9493 $as_echo "$ld_shlibs" >&6; }
9494 test "$ld_shlibs" = no && can_build_shared=no
9496 with_gnu_ld=$with_gnu_ld
9513 # Do we need to explicitly link libc?
9515 case "x$archive_cmds_need_lc" in
9516 x|xyes)
9517 # Assume -lc should be added
9518 archive_cmds_need_lc=yes
9520 if test "$enable_shared" = yes && test "$GCC" = yes; then
9521 case $archive_cmds in
9522 *'~'*)
9523 # FIXME: we may have to deal with multi-command sequences.
9525 '$CC '*)
9526 # Test whether the compiler implicitly links with -lc since on some
9527 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9528 # to ld, don't add -lc before -lgcc.
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9530 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9531 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9532 $as_echo_n "(cached) " >&6
9533 else
9534 $RM conftest*
9535 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9538 (eval $ac_compile) 2>&5
9539 ac_status=$?
9540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9541 test $ac_status = 0; } 2>conftest.err; then
9542 soname=conftest
9543 lib=conftest
9544 libobjs=conftest.$ac_objext
9545 deplibs=
9546 wl=$lt_prog_compiler_wl
9547 pic_flag=$lt_prog_compiler_pic
9548 compiler_flags=-v
9549 linker_flags=-v
9550 verstring=
9551 output_objdir=.
9552 libname=conftest
9553 lt_save_allow_undefined_flag=$allow_undefined_flag
9554 allow_undefined_flag=
9555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9556 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9557 ac_status=$?
9558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9559 test $ac_status = 0; }
9560 then
9561 lt_cv_archive_cmds_need_lc=no
9562 else
9563 lt_cv_archive_cmds_need_lc=yes
9565 allow_undefined_flag=$lt_save_allow_undefined_flag
9566 else
9567 cat conftest.err 1>&5
9569 $RM conftest*
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9573 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9574 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9576 esac
9579 esac
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9738 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9740 if test "$GCC" = yes; then
9741 case $host_os in
9742 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9743 *) lt_awk_arg="/^libraries:/" ;;
9744 esac
9745 case $host_os in
9746 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9747 *) lt_sed_strip_eq="s,=/,/,g" ;;
9748 esac
9749 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9750 case $lt_search_path_spec in
9751 *\;*)
9752 # if the path contains ";" then we assume it to be the separator
9753 # otherwise default to the standard path separator (i.e. ":") - it is
9754 # assumed that no part of a normal pathname contains ";" but that should
9755 # okay in the real world where ";" in dirpaths is itself problematic.
9756 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9759 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9761 esac
9762 # Ok, now we have the path, separated by spaces, we can step through it
9763 # and add multilib dir if necessary.
9764 lt_tmp_lt_search_path_spec=
9765 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9766 for lt_sys_path in $lt_search_path_spec; do
9767 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9768 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9769 else
9770 test -d "$lt_sys_path" && \
9771 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9773 done
9774 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9775 BEGIN {RS=" "; FS="/|\n";} {
9776 lt_foo="";
9777 lt_count=0;
9778 for (lt_i = NF; lt_i > 0; lt_i--) {
9779 if ($lt_i != "" && $lt_i != ".") {
9780 if ($lt_i == "..") {
9781 lt_count++;
9782 } else {
9783 if (lt_count == 0) {
9784 lt_foo="/" $lt_i lt_foo;
9785 } else {
9786 lt_count--;
9791 if (lt_foo != "") { lt_freq[lt_foo]++; }
9792 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9794 # AWK program above erroneously prepends '/' to C:/dos/paths
9795 # for these hosts.
9796 case $host_os in
9797 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9798 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9799 esac
9800 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9801 else
9802 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9804 library_names_spec=
9805 libname_spec='lib$name'
9806 soname_spec=
9807 shrext_cmds=".so"
9808 postinstall_cmds=
9809 postuninstall_cmds=
9810 finish_cmds=
9811 finish_eval=
9812 shlibpath_var=
9813 shlibpath_overrides_runpath=unknown
9814 version_type=none
9815 dynamic_linker="$host_os ld.so"
9816 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9817 need_lib_prefix=unknown
9818 hardcode_into_libs=no
9820 # when you set need_version to no, make sure it does not cause -set_version
9821 # flags to be left without arguments
9822 need_version=unknown
9824 case $host_os in
9825 aix3*)
9826 version_type=linux
9827 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9828 shlibpath_var=LIBPATH
9830 # AIX 3 has no versioning support, so we append a major version to the name.
9831 soname_spec='${libname}${release}${shared_ext}$major'
9834 aix[4-9]*)
9835 version_type=linux
9836 need_lib_prefix=no
9837 need_version=no
9838 hardcode_into_libs=yes
9839 if test "$host_cpu" = ia64; then
9840 # AIX 5 supports IA64
9841 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9842 shlibpath_var=LD_LIBRARY_PATH
9843 else
9844 # With GCC up to 2.95.x, collect2 would create an import file
9845 # for dependence libraries. The import file would start with
9846 # the line `#! .'. This would cause the generated library to
9847 # depend on `.', always an invalid library. This was fixed in
9848 # development snapshots of GCC prior to 3.0.
9849 case $host_os in
9850 aix4 | aix4.[01] | aix4.[01].*)
9851 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9852 echo ' yes '
9853 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9855 else
9856 can_build_shared=no
9859 esac
9860 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9861 # soname into executable. Probably we can add versioning support to
9862 # collect2, so additional links can be useful in future.
9863 if test "$aix_use_runtimelinking" = yes; then
9864 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9865 # instead of lib<name>.a to let people know that these are not
9866 # typical AIX shared libraries.
9867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9868 else
9869 # We preserve .a as extension for shared libraries through AIX4.2
9870 # and later when we are not doing run time linking.
9871 library_names_spec='${libname}${release}.a $libname.a'
9872 soname_spec='${libname}${release}${shared_ext}$major'
9874 shlibpath_var=LIBPATH
9878 amigaos*)
9879 case $host_cpu in
9880 powerpc)
9881 # Since July 2007 AmigaOS4 officially supports .so libraries.
9882 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9885 m68k)
9886 library_names_spec='$libname.ixlibrary $libname.a'
9887 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9888 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'
9890 esac
9893 beos*)
9894 library_names_spec='${libname}${shared_ext}'
9895 dynamic_linker="$host_os ld.so"
9896 shlibpath_var=LIBRARY_PATH
9899 bsdi[45]*)
9900 version_type=linux
9901 need_version=no
9902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9903 soname_spec='${libname}${release}${shared_ext}$major'
9904 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9905 shlibpath_var=LD_LIBRARY_PATH
9906 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9907 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9908 # the default ld.so.conf also contains /usr/contrib/lib and
9909 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9910 # libtool to hard-code these into programs
9913 cygwin* | mingw* | pw32* | cegcc*)
9914 version_type=windows
9915 shrext_cmds=".dll"
9916 need_version=no
9917 need_lib_prefix=no
9919 case $GCC,$host_os in
9920 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9921 library_names_spec='$libname.dll.a'
9922 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9923 postinstall_cmds='base_file=`basename \${file}`~
9924 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9925 dldir=$destdir/`dirname \$dlpath`~
9926 test -d \$dldir || mkdir -p \$dldir~
9927 $install_prog $dir/$dlname \$dldir/$dlname~
9928 chmod a+x \$dldir/$dlname~
9929 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9930 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9932 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9933 dlpath=$dir/\$dldll~
9934 $RM \$dlpath'
9935 shlibpath_overrides_runpath=yes
9937 case $host_os in
9938 cygwin*)
9939 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9940 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9942 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9944 mingw* | cegcc*)
9945 # MinGW DLLs use traditional 'lib' prefix
9946 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9948 pw32*)
9949 # pw32 DLLs use 'pw' prefix rather than 'lib'
9950 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9952 esac
9956 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9958 esac
9959 dynamic_linker='Win32 ld.exe'
9960 # FIXME: first we should search . and the directory the executable is in
9961 shlibpath_var=PATH
9964 darwin* | rhapsody*)
9965 dynamic_linker="$host_os dyld"
9966 version_type=darwin
9967 need_lib_prefix=no
9968 need_version=no
9969 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9970 soname_spec='${libname}${release}${major}$shared_ext'
9971 shlibpath_overrides_runpath=yes
9972 shlibpath_var=DYLD_LIBRARY_PATH
9973 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9975 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9976 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9979 dgux*)
9980 version_type=linux
9981 need_lib_prefix=no
9982 need_version=no
9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9984 soname_spec='${libname}${release}${shared_ext}$major'
9985 shlibpath_var=LD_LIBRARY_PATH
9988 freebsd* | dragonfly*)
9989 # DragonFly does not have aout. When/if they implement a new
9990 # versioning mechanism, adjust this.
9991 if test -x /usr/bin/objformat; then
9992 objformat=`/usr/bin/objformat`
9993 else
9994 case $host_os in
9995 freebsd[23].*) objformat=aout ;;
9996 *) objformat=elf ;;
9997 esac
9999 version_type=freebsd-$objformat
10000 case $version_type in
10001 freebsd-elf*)
10002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10003 need_version=no
10004 need_lib_prefix=no
10006 freebsd-*)
10007 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10008 need_version=yes
10010 esac
10011 shlibpath_var=LD_LIBRARY_PATH
10012 case $host_os in
10013 freebsd2.*)
10014 shlibpath_overrides_runpath=yes
10016 freebsd3.[01]* | freebsdelf3.[01]*)
10017 shlibpath_overrides_runpath=yes
10018 hardcode_into_libs=yes
10020 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10021 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10022 shlibpath_overrides_runpath=no
10023 hardcode_into_libs=yes
10025 *) # from 4.6 on, and DragonFly
10026 shlibpath_overrides_runpath=yes
10027 hardcode_into_libs=yes
10029 esac
10032 haiku*)
10033 version_type=linux
10034 need_lib_prefix=no
10035 need_version=no
10036 dynamic_linker="$host_os runtime_loader"
10037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10038 soname_spec='${libname}${release}${shared_ext}$major'
10039 shlibpath_var=LIBRARY_PATH
10040 shlibpath_overrides_runpath=yes
10041 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10042 hardcode_into_libs=yes
10045 hpux9* | hpux10* | hpux11*)
10046 # Give a soname corresponding to the major version so that dld.sl refuses to
10047 # link against other versions.
10048 version_type=sunos
10049 need_lib_prefix=no
10050 need_version=no
10051 case $host_cpu in
10052 ia64*)
10053 shrext_cmds='.so'
10054 hardcode_into_libs=yes
10055 dynamic_linker="$host_os dld.so"
10056 shlibpath_var=LD_LIBRARY_PATH
10057 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10059 soname_spec='${libname}${release}${shared_ext}$major'
10060 if test "X$HPUX_IA64_MODE" = X32; then
10061 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10062 else
10063 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10065 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10067 hppa*64*)
10068 shrext_cmds='.sl'
10069 hardcode_into_libs=yes
10070 dynamic_linker="$host_os dld.sl"
10071 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10072 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10074 soname_spec='${libname}${release}${shared_ext}$major'
10075 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10076 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10079 shrext_cmds='.sl'
10080 dynamic_linker="$host_os dld.sl"
10081 shlibpath_var=SHLIB_PATH
10082 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10084 soname_spec='${libname}${release}${shared_ext}$major'
10086 esac
10087 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10088 postinstall_cmds='chmod 555 $lib'
10089 # or fails outright, so override atomically:
10090 install_override_mode=555
10093 interix[3-9]*)
10094 version_type=linux
10095 need_lib_prefix=no
10096 need_version=no
10097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10098 soname_spec='${libname}${release}${shared_ext}$major'
10099 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10100 shlibpath_var=LD_LIBRARY_PATH
10101 shlibpath_overrides_runpath=no
10102 hardcode_into_libs=yes
10105 irix5* | irix6* | nonstopux*)
10106 case $host_os in
10107 nonstopux*) version_type=nonstopux ;;
10109 if test "$lt_cv_prog_gnu_ld" = yes; then
10110 version_type=linux
10111 else
10112 version_type=irix
10113 fi ;;
10114 esac
10115 need_lib_prefix=no
10116 need_version=no
10117 soname_spec='${libname}${release}${shared_ext}$major'
10118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10119 case $host_os in
10120 irix5* | nonstopux*)
10121 libsuff= shlibsuff=
10124 case $LD in # libtool.m4 will add one of these switches to LD
10125 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10126 libsuff= shlibsuff= libmagic=32-bit;;
10127 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10128 libsuff=32 shlibsuff=N32 libmagic=N32;;
10129 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10130 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10131 *) libsuff= shlibsuff= libmagic=never-match;;
10132 esac
10134 esac
10135 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10136 shlibpath_overrides_runpath=no
10137 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10138 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10139 hardcode_into_libs=yes
10142 # No shared lib support for Linux oldld, aout, or coff.
10143 linux*oldld* | linux*aout* | linux*coff*)
10144 dynamic_linker=no
10147 # This must be Linux ELF.
10149 # uclinux* changes (here and below) have been submitted to the libtool
10150 # project, but have not yet been accepted: they are GCC-local changes
10151 # for the time being. (See
10152 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10153 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10154 version_type=linux
10155 need_lib_prefix=no
10156 need_version=no
10157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10158 soname_spec='${libname}${release}${shared_ext}$major'
10159 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10160 shlibpath_var=LD_LIBRARY_PATH
10161 shlibpath_overrides_runpath=no
10163 # Some binutils ld are patched to set DT_RUNPATH
10164 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10165 $as_echo_n "(cached) " >&6
10166 else
10167 lt_cv_shlibpath_overrides_runpath=no
10168 save_LDFLAGS=$LDFLAGS
10169 save_libdir=$libdir
10170 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10171 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10172 if test x$gcc_no_link = xyes; then
10173 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10176 /* end confdefs.h. */
10179 main ()
10183 return 0;
10185 _ACEOF
10186 if ac_fn_c_try_link "$LINENO"; then :
10187 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10188 lt_cv_shlibpath_overrides_runpath=yes
10191 rm -f core conftest.err conftest.$ac_objext \
10192 conftest$ac_exeext conftest.$ac_ext
10193 LDFLAGS=$save_LDFLAGS
10194 libdir=$save_libdir
10198 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10200 # This implies no fast_install, which is unacceptable.
10201 # Some rework will be needed to allow for fast_install
10202 # before this can be enabled.
10203 hardcode_into_libs=yes
10205 # Append ld.so.conf contents to the search path
10206 if test -f /etc/ld.so.conf; then
10207 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' ' '`
10208 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10211 # We used to test for /lib/ld.so.1 and disable shared libraries on
10212 # powerpc, because MkLinux only supported shared libraries with the
10213 # GNU dynamic linker. Since this was broken with cross compilers,
10214 # most powerpc-linux boxes support dynamic linking these days and
10215 # people can always --disable-shared, the test was removed, and we
10216 # assume the GNU/Linux dynamic linker is in use.
10217 dynamic_linker='GNU/Linux ld.so'
10220 netbsd*)
10221 version_type=sunos
10222 need_lib_prefix=no
10223 need_version=no
10224 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10226 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10227 dynamic_linker='NetBSD (a.out) ld.so'
10228 else
10229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10230 soname_spec='${libname}${release}${shared_ext}$major'
10231 dynamic_linker='NetBSD ld.elf_so'
10233 shlibpath_var=LD_LIBRARY_PATH
10234 shlibpath_overrides_runpath=yes
10235 hardcode_into_libs=yes
10238 newsos6)
10239 version_type=linux
10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10241 shlibpath_var=LD_LIBRARY_PATH
10242 shlibpath_overrides_runpath=yes
10245 *nto* | *qnx*)
10246 version_type=qnx
10247 need_lib_prefix=no
10248 need_version=no
10249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10250 soname_spec='${libname}${release}${shared_ext}$major'
10251 shlibpath_var=LD_LIBRARY_PATH
10252 shlibpath_overrides_runpath=no
10253 hardcode_into_libs=yes
10254 dynamic_linker='ldqnx.so'
10257 openbsd*)
10258 version_type=sunos
10259 sys_lib_dlsearch_path_spec="/usr/lib"
10260 need_lib_prefix=no
10261 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10262 case $host_os in
10263 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10264 *) need_version=no ;;
10265 esac
10266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10267 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10268 shlibpath_var=LD_LIBRARY_PATH
10269 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10270 case $host_os in
10271 openbsd2.[89] | openbsd2.[89].*)
10272 shlibpath_overrides_runpath=no
10275 shlibpath_overrides_runpath=yes
10277 esac
10278 else
10279 shlibpath_overrides_runpath=yes
10283 os2*)
10284 libname_spec='$name'
10285 shrext_cmds=".dll"
10286 need_lib_prefix=no
10287 library_names_spec='$libname${shared_ext} $libname.a'
10288 dynamic_linker='OS/2 ld.exe'
10289 shlibpath_var=LIBPATH
10292 osf3* | osf4* | osf5*)
10293 version_type=osf
10294 need_lib_prefix=no
10295 need_version=no
10296 soname_spec='${libname}${release}${shared_ext}$major'
10297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10298 shlibpath_var=LD_LIBRARY_PATH
10299 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10300 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10303 rdos*)
10304 dynamic_linker=no
10307 solaris*)
10308 version_type=linux
10309 need_lib_prefix=no
10310 need_version=no
10311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10312 soname_spec='${libname}${release}${shared_ext}$major'
10313 shlibpath_var=LD_LIBRARY_PATH
10314 shlibpath_overrides_runpath=yes
10315 hardcode_into_libs=yes
10316 # ldd complains unless libraries are executable
10317 postinstall_cmds='chmod +x $lib'
10320 sunos4*)
10321 version_type=sunos
10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10323 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10324 shlibpath_var=LD_LIBRARY_PATH
10325 shlibpath_overrides_runpath=yes
10326 if test "$with_gnu_ld" = yes; then
10327 need_lib_prefix=no
10329 need_version=yes
10332 sysv4 | sysv4.3*)
10333 version_type=linux
10334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10335 soname_spec='${libname}${release}${shared_ext}$major'
10336 shlibpath_var=LD_LIBRARY_PATH
10337 case $host_vendor in
10338 sni)
10339 shlibpath_overrides_runpath=no
10340 need_lib_prefix=no
10341 runpath_var=LD_RUN_PATH
10343 siemens)
10344 need_lib_prefix=no
10346 motorola)
10347 need_lib_prefix=no
10348 need_version=no
10349 shlibpath_overrides_runpath=no
10350 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10352 esac
10355 sysv4*MP*)
10356 if test -d /usr/nec ;then
10357 version_type=linux
10358 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10359 soname_spec='$libname${shared_ext}.$major'
10360 shlibpath_var=LD_LIBRARY_PATH
10364 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10365 version_type=freebsd-elf
10366 need_lib_prefix=no
10367 need_version=no
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10369 soname_spec='${libname}${release}${shared_ext}$major'
10370 shlibpath_var=LD_LIBRARY_PATH
10371 shlibpath_overrides_runpath=yes
10372 hardcode_into_libs=yes
10373 if test "$with_gnu_ld" = yes; then
10374 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10375 else
10376 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10377 case $host_os in
10378 sco3.2v5*)
10379 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10381 esac
10383 sys_lib_dlsearch_path_spec='/usr/lib'
10386 tpf*)
10387 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10388 version_type=linux
10389 need_lib_prefix=no
10390 need_version=no
10391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10392 shlibpath_var=LD_LIBRARY_PATH
10393 shlibpath_overrides_runpath=no
10394 hardcode_into_libs=yes
10397 uts4*)
10398 version_type=linux
10399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10400 soname_spec='${libname}${release}${shared_ext}$major'
10401 shlibpath_var=LD_LIBRARY_PATH
10404 # Shared libraries for VwWorks, >= 7 only at this stage
10405 # and (fpic) still incompatible with "large" code models
10406 # in a few configurations. Only for RTP mode in any case,
10407 # and upon explicit request at configure time.
10408 vxworks7*)
10409 dynamic_linker=no
10410 case ${with_multisubdir}-${enable_shared} in
10411 *large*)
10413 *mrtp*-yes)
10414 version_type=linux
10415 need_lib_prefix=no
10416 need_version=no
10417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10418 soname_spec='${libname}${release}${shared_ext}$major'
10419 dynamic_linker="$host_os module_loader"
10421 esac
10424 dynamic_linker=no
10426 esac
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10428 $as_echo "$dynamic_linker" >&6; }
10429 test "$dynamic_linker" = no && can_build_shared=no
10431 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10432 if test "$GCC" = yes; then
10433 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10436 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10437 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10439 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10440 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10535 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10536 hardcode_action=
10537 if test -n "$hardcode_libdir_flag_spec" ||
10538 test -n "$runpath_var" ||
10539 test "X$hardcode_automatic" = "Xyes" ; then
10541 # We can hardcode non-existent directories.
10542 if test "$hardcode_direct" != no &&
10543 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10544 # have to relink, otherwise we might link with an installed library
10545 # when we should be linking with a yet-to-be-installed one
10546 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10547 test "$hardcode_minus_L" != no; then
10548 # Linking always hardcodes the temporary library directory.
10549 hardcode_action=relink
10550 else
10551 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10552 hardcode_action=immediate
10554 else
10555 # We cannot hardcode anything, or else we can only hardcode existing
10556 # directories.
10557 hardcode_action=unsupported
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10560 $as_echo "$hardcode_action" >&6; }
10562 if test "$hardcode_action" = relink ||
10563 test "$inherit_rpath" = yes; then
10564 # Fast installation is not supported
10565 enable_fast_install=no
10566 elif test "$shlibpath_overrides_runpath" = yes ||
10567 test "$enable_shared" = no; then
10568 # Fast installation is not necessary
10569 enable_fast_install=needless
10577 if test "x$enable_dlopen" != xyes; then
10578 enable_dlopen=unknown
10579 enable_dlopen_self=unknown
10580 enable_dlopen_self_static=unknown
10581 else
10582 lt_cv_dlopen=no
10583 lt_cv_dlopen_libs=
10585 case $host_os in
10586 beos*)
10587 lt_cv_dlopen="load_add_on"
10588 lt_cv_dlopen_libs=
10589 lt_cv_dlopen_self=yes
10592 mingw* | pw32* | cegcc*)
10593 lt_cv_dlopen="LoadLibrary"
10594 lt_cv_dlopen_libs=
10597 cygwin*)
10598 lt_cv_dlopen="dlopen"
10599 lt_cv_dlopen_libs=
10602 darwin*)
10603 # if libdl is installed we need to link against it
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10605 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10606 if ${ac_cv_lib_dl_dlopen+:} false; then :
10607 $as_echo_n "(cached) " >&6
10608 else
10609 ac_check_lib_save_LIBS=$LIBS
10610 LIBS="-ldl $LIBS"
10611 if test x$gcc_no_link = xyes; then
10612 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10615 /* end confdefs.h. */
10617 /* Override any GCC internal prototype to avoid an error.
10618 Use char because int might match the return type of a GCC
10619 builtin and then its argument prototype would still apply. */
10620 #ifdef __cplusplus
10621 extern "C"
10622 #endif
10623 char dlopen ();
10625 main ()
10627 return dlopen ();
10629 return 0;
10631 _ACEOF
10632 if ac_fn_c_try_link "$LINENO"; then :
10633 ac_cv_lib_dl_dlopen=yes
10634 else
10635 ac_cv_lib_dl_dlopen=no
10637 rm -f core conftest.err conftest.$ac_objext \
10638 conftest$ac_exeext conftest.$ac_ext
10639 LIBS=$ac_check_lib_save_LIBS
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10642 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10643 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10644 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10645 else
10647 lt_cv_dlopen="dyld"
10648 lt_cv_dlopen_libs=
10649 lt_cv_dlopen_self=yes
10656 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10657 if test "x$ac_cv_func_shl_load" = xyes; then :
10658 lt_cv_dlopen="shl_load"
10659 else
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10661 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10662 if ${ac_cv_lib_dld_shl_load+:} false; then :
10663 $as_echo_n "(cached) " >&6
10664 else
10665 ac_check_lib_save_LIBS=$LIBS
10666 LIBS="-ldld $LIBS"
10667 if test x$gcc_no_link = xyes; then
10668 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10671 /* end confdefs.h. */
10673 /* Override any GCC internal prototype to avoid an error.
10674 Use char because int might match the return type of a GCC
10675 builtin and then its argument prototype would still apply. */
10676 #ifdef __cplusplus
10677 extern "C"
10678 #endif
10679 char shl_load ();
10681 main ()
10683 return shl_load ();
10685 return 0;
10687 _ACEOF
10688 if ac_fn_c_try_link "$LINENO"; then :
10689 ac_cv_lib_dld_shl_load=yes
10690 else
10691 ac_cv_lib_dld_shl_load=no
10693 rm -f core conftest.err conftest.$ac_objext \
10694 conftest$ac_exeext conftest.$ac_ext
10695 LIBS=$ac_check_lib_save_LIBS
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10698 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10699 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10700 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10701 else
10702 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10703 if test "x$ac_cv_func_dlopen" = xyes; then :
10704 lt_cv_dlopen="dlopen"
10705 else
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10707 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10708 if ${ac_cv_lib_dl_dlopen+:} false; then :
10709 $as_echo_n "(cached) " >&6
10710 else
10711 ac_check_lib_save_LIBS=$LIBS
10712 LIBS="-ldl $LIBS"
10713 if test x$gcc_no_link = xyes; then
10714 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717 /* end confdefs.h. */
10719 /* Override any GCC internal prototype to avoid an error.
10720 Use char because int might match the return type of a GCC
10721 builtin and then its argument prototype would still apply. */
10722 #ifdef __cplusplus
10723 extern "C"
10724 #endif
10725 char dlopen ();
10727 main ()
10729 return dlopen ();
10731 return 0;
10733 _ACEOF
10734 if ac_fn_c_try_link "$LINENO"; then :
10735 ac_cv_lib_dl_dlopen=yes
10736 else
10737 ac_cv_lib_dl_dlopen=no
10739 rm -f core conftest.err conftest.$ac_objext \
10740 conftest$ac_exeext conftest.$ac_ext
10741 LIBS=$ac_check_lib_save_LIBS
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10744 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10745 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10746 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10747 else
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10749 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10750 if ${ac_cv_lib_svld_dlopen+:} false; then :
10751 $as_echo_n "(cached) " >&6
10752 else
10753 ac_check_lib_save_LIBS=$LIBS
10754 LIBS="-lsvld $LIBS"
10755 if test x$gcc_no_link = xyes; then
10756 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10759 /* end confdefs.h. */
10761 /* Override any GCC internal prototype to avoid an error.
10762 Use char because int might match the return type of a GCC
10763 builtin and then its argument prototype would still apply. */
10764 #ifdef __cplusplus
10765 extern "C"
10766 #endif
10767 char dlopen ();
10769 main ()
10771 return dlopen ();
10773 return 0;
10775 _ACEOF
10776 if ac_fn_c_try_link "$LINENO"; then :
10777 ac_cv_lib_svld_dlopen=yes
10778 else
10779 ac_cv_lib_svld_dlopen=no
10781 rm -f core conftest.err conftest.$ac_objext \
10782 conftest$ac_exeext conftest.$ac_ext
10783 LIBS=$ac_check_lib_save_LIBS
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10786 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10787 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10788 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10789 else
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10791 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10792 if ${ac_cv_lib_dld_dld_link+:} false; then :
10793 $as_echo_n "(cached) " >&6
10794 else
10795 ac_check_lib_save_LIBS=$LIBS
10796 LIBS="-ldld $LIBS"
10797 if test x$gcc_no_link = xyes; then
10798 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10801 /* end confdefs.h. */
10803 /* Override any GCC internal prototype to avoid an error.
10804 Use char because int might match the return type of a GCC
10805 builtin and then its argument prototype would still apply. */
10806 #ifdef __cplusplus
10807 extern "C"
10808 #endif
10809 char dld_link ();
10811 main ()
10813 return dld_link ();
10815 return 0;
10817 _ACEOF
10818 if ac_fn_c_try_link "$LINENO"; then :
10819 ac_cv_lib_dld_dld_link=yes
10820 else
10821 ac_cv_lib_dld_dld_link=no
10823 rm -f core conftest.err conftest.$ac_objext \
10824 conftest$ac_exeext conftest.$ac_ext
10825 LIBS=$ac_check_lib_save_LIBS
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10828 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10829 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10830 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10849 esac
10851 if test "x$lt_cv_dlopen" != xno; then
10852 enable_dlopen=yes
10853 else
10854 enable_dlopen=no
10857 case $lt_cv_dlopen in
10858 dlopen)
10859 save_CPPFLAGS="$CPPFLAGS"
10860 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10862 save_LDFLAGS="$LDFLAGS"
10863 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10865 save_LIBS="$LIBS"
10866 LIBS="$lt_cv_dlopen_libs $LIBS"
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10869 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10870 if ${lt_cv_dlopen_self+:} false; then :
10871 $as_echo_n "(cached) " >&6
10872 else
10873 if test "$cross_compiling" = yes; then :
10874 lt_cv_dlopen_self=cross
10875 else
10876 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10877 lt_status=$lt_dlunknown
10878 cat > conftest.$ac_ext <<_LT_EOF
10879 #line 10879 "configure"
10880 #include "confdefs.h"
10882 #if HAVE_DLFCN_H
10883 #include <dlfcn.h>
10884 #endif
10886 #include <stdio.h>
10888 #ifdef RTLD_GLOBAL
10889 # define LT_DLGLOBAL RTLD_GLOBAL
10890 #else
10891 # ifdef DL_GLOBAL
10892 # define LT_DLGLOBAL DL_GLOBAL
10893 # else
10894 # define LT_DLGLOBAL 0
10895 # endif
10896 #endif
10898 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10899 find out it does not work in some platform. */
10900 #ifndef LT_DLLAZY_OR_NOW
10901 # ifdef RTLD_LAZY
10902 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10903 # else
10904 # ifdef DL_LAZY
10905 # define LT_DLLAZY_OR_NOW DL_LAZY
10906 # else
10907 # ifdef RTLD_NOW
10908 # define LT_DLLAZY_OR_NOW RTLD_NOW
10909 # else
10910 # ifdef DL_NOW
10911 # define LT_DLLAZY_OR_NOW DL_NOW
10912 # else
10913 # define LT_DLLAZY_OR_NOW 0
10914 # endif
10915 # endif
10916 # endif
10917 # endif
10918 #endif
10920 /* When -fvisbility=hidden is used, assume the code has been annotated
10921 correspondingly for the symbols needed. */
10922 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10923 void fnord () __attribute__((visibility("default")));
10924 #endif
10926 void fnord () { int i=42; }
10927 int main ()
10929 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10930 int status = $lt_dlunknown;
10932 if (self)
10934 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10935 else
10937 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10938 else puts (dlerror ());
10940 /* dlclose (self); */
10942 else
10943 puts (dlerror ());
10945 return status;
10947 _LT_EOF
10948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10949 (eval $ac_link) 2>&5
10950 ac_status=$?
10951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10952 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10953 (./conftest; exit; ) >&5 2>/dev/null
10954 lt_status=$?
10955 case x$lt_status in
10956 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10957 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10958 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10959 esac
10960 else :
10961 # compilation failed
10962 lt_cv_dlopen_self=no
10965 rm -fr conftest*
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10970 $as_echo "$lt_cv_dlopen_self" >&6; }
10972 if test "x$lt_cv_dlopen_self" = xyes; then
10973 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10975 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10976 if ${lt_cv_dlopen_self_static+:} false; then :
10977 $as_echo_n "(cached) " >&6
10978 else
10979 if test "$cross_compiling" = yes; then :
10980 lt_cv_dlopen_self_static=cross
10981 else
10982 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10983 lt_status=$lt_dlunknown
10984 cat > conftest.$ac_ext <<_LT_EOF
10985 #line 10985 "configure"
10986 #include "confdefs.h"
10988 #if HAVE_DLFCN_H
10989 #include <dlfcn.h>
10990 #endif
10992 #include <stdio.h>
10994 #ifdef RTLD_GLOBAL
10995 # define LT_DLGLOBAL RTLD_GLOBAL
10996 #else
10997 # ifdef DL_GLOBAL
10998 # define LT_DLGLOBAL DL_GLOBAL
10999 # else
11000 # define LT_DLGLOBAL 0
11001 # endif
11002 #endif
11004 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11005 find out it does not work in some platform. */
11006 #ifndef LT_DLLAZY_OR_NOW
11007 # ifdef RTLD_LAZY
11008 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11009 # else
11010 # ifdef DL_LAZY
11011 # define LT_DLLAZY_OR_NOW DL_LAZY
11012 # else
11013 # ifdef RTLD_NOW
11014 # define LT_DLLAZY_OR_NOW RTLD_NOW
11015 # else
11016 # ifdef DL_NOW
11017 # define LT_DLLAZY_OR_NOW DL_NOW
11018 # else
11019 # define LT_DLLAZY_OR_NOW 0
11020 # endif
11021 # endif
11022 # endif
11023 # endif
11024 #endif
11026 /* When -fvisbility=hidden is used, assume the code has been annotated
11027 correspondingly for the symbols needed. */
11028 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11029 void fnord () __attribute__((visibility("default")));
11030 #endif
11032 void fnord () { int i=42; }
11033 int main ()
11035 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11036 int status = $lt_dlunknown;
11038 if (self)
11040 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11041 else
11043 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11044 else puts (dlerror ());
11046 /* dlclose (self); */
11048 else
11049 puts (dlerror ());
11051 return status;
11053 _LT_EOF
11054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11055 (eval $ac_link) 2>&5
11056 ac_status=$?
11057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11058 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11059 (./conftest; exit; ) >&5 2>/dev/null
11060 lt_status=$?
11061 case x$lt_status in
11062 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11063 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11064 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11065 esac
11066 else :
11067 # compilation failed
11068 lt_cv_dlopen_self_static=no
11071 rm -fr conftest*
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11076 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11079 CPPFLAGS="$save_CPPFLAGS"
11080 LDFLAGS="$save_LDFLAGS"
11081 LIBS="$save_LIBS"
11083 esac
11085 case $lt_cv_dlopen_self in
11086 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11087 *) enable_dlopen_self=unknown ;;
11088 esac
11090 case $lt_cv_dlopen_self_static in
11091 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11092 *) enable_dlopen_self_static=unknown ;;
11093 esac
11112 striplib=
11113 old_striplib=
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11115 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11116 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11117 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11118 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11120 $as_echo "yes" >&6; }
11121 else
11122 # FIXME - insert some real tests, host_os isn't really good enough
11123 case $host_os in
11124 darwin*)
11125 if test -n "$STRIP" ; then
11126 striplib="$STRIP -x"
11127 old_striplib="$STRIP -S"
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11129 $as_echo "yes" >&6; }
11130 else
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11132 $as_echo "no" >&6; }
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11137 $as_echo "no" >&6; }
11139 esac
11153 # Report which library types will actually be built
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11155 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11157 $as_echo "$can_build_shared" >&6; }
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11160 $as_echo_n "checking whether to build shared libraries... " >&6; }
11161 test "$can_build_shared" = "no" && enable_shared=no
11163 # On AIX, shared libraries and static libraries use the same namespace, and
11164 # are all built from PIC.
11165 case $host_os in
11166 aix3*)
11167 test "$enable_shared" = yes && enable_static=no
11168 if test -n "$RANLIB"; then
11169 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11170 postinstall_cmds='$RANLIB $lib'
11174 aix[4-9]*)
11175 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11176 test "$enable_shared" = yes && enable_static=no
11179 esac
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11181 $as_echo "$enable_shared" >&6; }
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11184 $as_echo_n "checking whether to build static libraries... " >&6; }
11185 # Make sure either enable_shared or enable_static is yes.
11186 test "$enable_shared" = yes || enable_static=yes
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11188 $as_echo "$enable_static" >&6; }
11194 ac_ext=c
11195 ac_cpp='$CPP $CPPFLAGS'
11196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11200 CC="$lt_save_CC"
11214 ac_config_commands="$ac_config_commands libtool"
11219 # Only expand once:
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11226 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11227 set x ${MAKE-make}
11228 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11229 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11230 $as_echo_n "(cached) " >&6
11231 else
11232 cat >conftest.make <<\_ACEOF
11233 SHELL = /bin/sh
11234 all:
11235 @echo '@@@%%%=$(MAKE)=@@@%%%'
11236 _ACEOF
11237 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11238 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11239 *@@@%%%=?*=@@@%%%*)
11240 eval ac_cv_prog_make_${ac_make}_set=yes;;
11242 eval ac_cv_prog_make_${ac_make}_set=no;;
11243 esac
11244 rm -f conftest.make
11246 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11248 $as_echo "yes" >&6; }
11249 SET_MAKE=
11250 else
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11252 $as_echo "no" >&6; }
11253 SET_MAKE="MAKE=${MAKE-make}"
11257 if test x$enable_darwin_at_rpath = xyes; then
11258 ENABLE_DARWIN_AT_RPATH_TRUE=
11259 ENABLE_DARWIN_AT_RPATH_FALSE='#'
11260 else
11261 ENABLE_DARWIN_AT_RPATH_TRUE='#'
11262 ENABLE_DARWIN_AT_RPATH_FALSE=
11266 # Must come after libtool is initialized.
11267 case "${host}" in
11268 *-darwin[4567]*)
11269 # Earlier Darwin versions need -single_module when linking libobjc; they
11270 # do not support @rpath.
11271 extra_ldflags_libobjc='$(lt_host_flags) -Wl,-single_module'
11273 *-darwin*)
11274 # Otherwise, single_module is the default and multi-module is ignored and
11275 # obsolete.
11276 extra_ldflags_libobjc='$(lt_host_flags)'
11277 if test "x$enable_darwin_at_rpath" = "xyes"; then
11278 extra_ldflags_libobjc="${extra_ldflags_libobjc} -Wc,-nodefaultrpaths"
11279 extra_ldflags_libobjc="${extra_ldflags_libobjc} -Wl,-rpath,@loader_path"
11282 *-cygwin*|*-mingw*)
11283 # Tell libtool to build DLLs on Windows
11284 extra_ldflags_libobjc='$(lt_host_flags)'
11286 esac
11289 # -------
11290 # Headers
11291 # -------
11293 # Sanity check for the cross-compilation case:
11294 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
11295 if test "x$ac_cv_header_stdio_h" = xyes; then :
11297 else
11298 as_fn_error $? "Can't find stdio.h.
11299 You must have a usable C system for the target already installed, at least
11300 including headers and, preferably, the library, before you can configure
11301 the Objective C runtime system. If necessary, install gcc now with
11302 \`LANGUAGES=c', then the target library, then build with \`LANGUAGES=objc'." "$LINENO" 5
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11308 $as_echo_n "checking for ANSI C header files... " >&6; }
11309 if ${ac_cv_header_stdc+:} false; then :
11310 $as_echo_n "(cached) " >&6
11311 else
11312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11313 /* end confdefs.h. */
11314 #include <stdlib.h>
11315 #include <stdarg.h>
11316 #include <string.h>
11317 #include <float.h>
11320 main ()
11324 return 0;
11326 _ACEOF
11327 if ac_fn_c_try_compile "$LINENO"; then :
11328 ac_cv_header_stdc=yes
11329 else
11330 ac_cv_header_stdc=no
11332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11334 if test $ac_cv_header_stdc = yes; then
11335 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11337 /* end confdefs.h. */
11338 #include <string.h>
11340 _ACEOF
11341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11342 $EGREP "memchr" >/dev/null 2>&1; then :
11344 else
11345 ac_cv_header_stdc=no
11347 rm -f conftest*
11351 if test $ac_cv_header_stdc = yes; then
11352 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11354 /* end confdefs.h. */
11355 #include <stdlib.h>
11357 _ACEOF
11358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11359 $EGREP "free" >/dev/null 2>&1; then :
11361 else
11362 ac_cv_header_stdc=no
11364 rm -f conftest*
11368 if test $ac_cv_header_stdc = yes; then
11369 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11370 if test "$cross_compiling" = yes; then :
11372 else
11373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11374 /* end confdefs.h. */
11375 #include <ctype.h>
11376 #include <stdlib.h>
11377 #if ((' ' & 0x0FF) == 0x020)
11378 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11379 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11380 #else
11381 # define ISLOWER(c) \
11382 (('a' <= (c) && (c) <= 'i') \
11383 || ('j' <= (c) && (c) <= 'r') \
11384 || ('s' <= (c) && (c) <= 'z'))
11385 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11386 #endif
11388 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11390 main ()
11392 int i;
11393 for (i = 0; i < 256; i++)
11394 if (XOR (islower (i), ISLOWER (i))
11395 || toupper (i) != TOUPPER (i))
11396 return 2;
11397 return 0;
11399 _ACEOF
11400 if ac_fn_c_try_run "$LINENO"; then :
11402 else
11403 ac_cv_header_stdc=no
11405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11406 conftest.$ac_objext conftest.beam conftest.$ac_ext
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11412 $as_echo "$ac_cv_header_stdc" >&6; }
11413 if test $ac_cv_header_stdc = yes; then
11415 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11420 for ac_header in sched.h
11421 do :
11422 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
11423 if test "x$ac_cv_header_sched_h" = xyes; then :
11424 cat >>confdefs.h <<_ACEOF
11425 #define HAVE_SCHED_H 1
11426 _ACEOF
11430 done
11433 # -----------
11434 # Miscellanea
11435 # -----------
11437 # Check if we have thread-local storage
11440 # Check whether --enable-tls was given.
11441 if test "${enable_tls+set}" = set; then :
11442 enableval=$enable_tls;
11443 case "$enableval" in
11444 yes|no) ;;
11445 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
11446 esac
11448 else
11449 enable_tls=yes
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
11454 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
11455 if ${gcc_cv_have_tls+:} false; then :
11456 $as_echo_n "(cached) " >&6
11457 else
11459 if test "$cross_compiling" = yes; then :
11460 if test x$gcc_no_link = xyes; then
11461 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11464 /* end confdefs.h. */
11465 __thread int a; int b; int main() { return a = b; }
11466 _ACEOF
11467 if ac_fn_c_try_link "$LINENO"; then :
11468 chktls_save_LDFLAGS="$LDFLAGS"
11469 case $host in
11470 *-*-linux* | -*-uclinuxfdpic*)
11471 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
11473 esac
11474 chktls_save_CFLAGS="$CFLAGS"
11475 CFLAGS="-fPIC $CFLAGS"
11476 if test x$gcc_no_link = xyes; then
11477 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11480 /* end confdefs.h. */
11481 int f() { return 0; }
11482 _ACEOF
11483 if ac_fn_c_try_link "$LINENO"; then :
11484 if test x$gcc_no_link = xyes; then
11485 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11488 /* end confdefs.h. */
11489 __thread int a; int b; int f() { return a = b; }
11490 _ACEOF
11491 if ac_fn_c_try_link "$LINENO"; then :
11492 gcc_cv_have_tls=yes
11493 else
11494 gcc_cv_have_tls=no
11496 rm -f core conftest.err conftest.$ac_objext \
11497 conftest$ac_exeext conftest.$ac_ext
11498 else
11499 gcc_cv_have_tls=yes
11501 rm -f core conftest.err conftest.$ac_objext \
11502 conftest$ac_exeext conftest.$ac_ext
11503 CFLAGS="$chktls_save_CFLAGS"
11504 LDFLAGS="$chktls_save_LDFLAGS"
11505 else
11506 gcc_cv_have_tls=no
11508 rm -f core conftest.err conftest.$ac_objext \
11509 conftest$ac_exeext conftest.$ac_ext
11512 else
11513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11514 /* end confdefs.h. */
11515 __thread int a; int b; int main() { return a = b; }
11516 _ACEOF
11517 if ac_fn_c_try_run "$LINENO"; then :
11518 chktls_save_LDFLAGS="$LDFLAGS"
11519 LDFLAGS="-static $LDFLAGS"
11520 if test x$gcc_no_link = xyes; then
11521 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11524 /* end confdefs.h. */
11525 int main() { return 0; }
11526 _ACEOF
11527 if ac_fn_c_try_link "$LINENO"; then :
11528 if test "$cross_compiling" = yes; then :
11529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11531 as_fn_error $? "cannot run test program while cross compiling
11532 See \`config.log' for more details" "$LINENO" 5; }
11533 else
11534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11535 /* end confdefs.h. */
11536 __thread int a; int b; int main() { return a = b; }
11537 _ACEOF
11538 if ac_fn_c_try_run "$LINENO"; then :
11539 gcc_cv_have_tls=yes
11540 else
11541 gcc_cv_have_tls=no
11543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11544 conftest.$ac_objext conftest.beam conftest.$ac_ext
11547 else
11548 gcc_cv_have_tls=yes
11550 rm -f core conftest.err conftest.$ac_objext \
11551 conftest$ac_exeext conftest.$ac_ext
11552 LDFLAGS="$chktls_save_LDFLAGS"
11553 if test $gcc_cv_have_tls = yes; then
11554 chktls_save_CFLAGS="$CFLAGS"
11555 thread_CFLAGS=failed
11556 for flag in '' '-pthread' '-lpthread'; do
11557 CFLAGS="$flag $chktls_save_CFLAGS"
11558 if test x$gcc_no_link = xyes; then
11559 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11562 /* end confdefs.h. */
11563 #include <pthread.h>
11564 void *g(void *d) { return NULL; }
11566 main ()
11568 pthread_t t; pthread_create(&t,NULL,g,NULL);
11570 return 0;
11572 _ACEOF
11573 if ac_fn_c_try_link "$LINENO"; then :
11574 thread_CFLAGS="$flag"
11576 rm -f core conftest.err conftest.$ac_objext \
11577 conftest$ac_exeext conftest.$ac_ext
11578 if test "X$thread_CFLAGS" != Xfailed; then
11579 break
11581 done
11582 CFLAGS="$chktls_save_CFLAGS"
11583 if test "X$thread_CFLAGS" != Xfailed; then
11584 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
11585 if test "$cross_compiling" = yes; then :
11586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11588 as_fn_error $? "cannot run test program while cross compiling
11589 See \`config.log' for more details" "$LINENO" 5; }
11590 else
11591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11592 /* end confdefs.h. */
11593 #include <pthread.h>
11594 __thread int a;
11595 static int *volatile a_in_other_thread;
11596 static void *
11597 thread_func (void *arg)
11599 a_in_other_thread = &a;
11600 return (void *)0;
11603 main ()
11605 pthread_t thread;
11606 void *thread_retval;
11607 int *volatile a_in_main_thread;
11608 a_in_main_thread = &a;
11609 if (pthread_create (&thread, (pthread_attr_t *)0,
11610 thread_func, (void *)0))
11611 return 0;
11612 if (pthread_join (thread, &thread_retval))
11613 return 0;
11614 return (a_in_other_thread == a_in_main_thread);
11616 return 0;
11618 _ACEOF
11619 if ac_fn_c_try_run "$LINENO"; then :
11620 gcc_cv_have_tls=yes
11621 else
11622 gcc_cv_have_tls=no
11624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11625 conftest.$ac_objext conftest.beam conftest.$ac_ext
11628 CFLAGS="$chktls_save_CFLAGS"
11631 else
11632 gcc_cv_have_tls=no
11634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11635 conftest.$ac_objext conftest.beam conftest.$ac_ext
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
11640 $as_echo "$gcc_cv_have_tls" >&6; }
11641 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
11643 $as_echo "#define HAVE_TLS 1" >>confdefs.h
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the type of bitfields matters" >&5
11649 $as_echo_n "checking if the type of bitfields matters... " >&6; }
11650 if ${gt_cv_bitfield_type_matters+:} false; then :
11651 $as_echo_n "(cached) " >&6
11652 else
11654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11655 /* end confdefs.h. */
11656 struct foo1 { char x; char y:1; char z; };
11657 struct foo2 { char x; long long int y:1; char z; };
11658 int foo1test[ sizeof (struct foo1) < sizeof (struct foo2) ? 1 : -1 ];
11660 main ()
11664 return 0;
11666 _ACEOF
11667 if ac_fn_c_try_compile "$LINENO"; then :
11668 gt_cv_bitfield_type_matters=yes
11669 else
11670 gt_cv_bitfield_type_matters=no
11672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_bitfield_type_matters" >&5
11676 $as_echo "$gt_cv_bitfield_type_matters" >&6; }
11677 if test $gt_cv_bitfield_type_matters = yes; then
11679 $as_echo "#define HAVE_BITFIELD_TYPE_MATTERS 1" >>confdefs.h
11684 # -----------
11685 # boehm-gc
11686 # -----------
11688 # Check whether --enable-objc-gc was given.
11689 if test "${enable_objc_gc+set}" = set; then :
11690 enableval=$enable_objc_gc;
11691 else
11692 enable_objc_gc=no
11696 # Check whether --with-target-bdw-gc was given.
11697 if test "${with_target_bdw_gc+set}" = set; then :
11698 withval=$with_target_bdw_gc;
11702 # Check whether --with-target-bdw-gc-include was given.
11703 if test "${with_target_bdw_gc_include+set}" = set; then :
11704 withval=$with_target_bdw_gc_include;
11708 # Check whether --with-target-bdw-gc-lib was given.
11709 if test "${with_target_bdw_gc_lib+set}" = set; then :
11710 withval=$with_target_bdw_gc_lib;
11714 case "$enable_objc_gc" in
11716 use_bdw_gc=no
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
11720 $as_echo_n "checking for bdw garbage collector... " >&6; }
11721 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
11722 BDW_GC_CFLAGS=
11723 BDW_GC_LIBS="-lgc"
11724 else
11725 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
11726 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
11727 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
11728 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
11729 else
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
11731 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
11733 mldir=`${CC-gcc} --print-multi-directory 2>/dev/null`
11734 bdw_val=
11735 if test "x$with_target_bdw_gc" != x; then
11736 for i in `echo $with_target_bdw_gc | tr ',' ' '`; do
11737 case "$i" in
11738 *=*) sd=${i%%=*}; d=${i#*=} ;;
11739 *) sd=.; d=$i ;;
11740 esac
11741 if test "$mldir" = "$sd"; then
11742 bdw_val=$d
11744 done
11745 if test "x$bdw_val" = x; then
11746 as_fn_error $? "no multilib path ($mldir) found in --with-target-bdw-gc" "$LINENO" 5
11748 bdw_inc_dir="$bdw_val/include"
11749 bdw_lib_dir="$bdw_val/lib"
11751 bdw_val=
11752 if test "x$with_target_bdw_gc_include" != x; then
11753 for i in `echo $with_target_bdw_gc_include | tr ',' ' '`; do
11754 case "$i" in
11755 *=*) sd=${i%%=*}; d=${i#*=} ;;
11756 *) sd=.; d=$i; fallback=$i ;;
11757 esac
11758 if test "$mldir" = "$sd"; then
11759 bdw_val=$d
11761 done
11762 if test "x$bdw_val" = x && test "x$bdw_inc_dir" = x && test "x$fallback" != x; then
11763 bdw_inc_dir="$fallback"
11764 elif test "x$bdw_val" = x; then
11765 as_fn_error $? "no multilib path ($mldir) found in --with-target-bdw-gc-include" "$LINENO" 5
11766 else
11767 bdw_inc_dir="$bdw_val"
11770 bdw_val=
11771 if test "x$with_target_bdw_gc_lib" != x; then
11772 for i in `echo $with_target_bdw_gc_lib | tr ',' ' '`; do
11773 case "$i" in
11774 *=*) sd=${i%%=*}; d=${i#*=} ;;
11775 *) sd=.; d=$i ;;
11776 esac
11777 if test "$mldir" = "$sd"; then
11778 bdw_val=$d
11780 done
11781 if test "x$bdw_val" = x; then
11782 as_fn_error $? "no multilib path ($mldir) found in --with-target-bdw-gc-lib" "$LINENO" 5
11784 bdw_lib_dir="$bdw_val"
11786 if test "x$bdw_inc_dir" = x; then
11787 as_fn_error $? "no multilib path ($mldir) found in --with-target-bdw-gc-include" "$LINENO" 5
11789 if test "x$bdw_lib_dir" = x; then
11790 as_fn_error $? "no multilib path ($mldir) found in --with-target-bdw-gc-lib" "$LINENO" 5
11792 BDW_GC_CFLAGS="-I$bdw_inc_dir"
11793 if test -f $bdw_lib_dir/libgc.la; then
11794 BDW_GC_LIBS="$bdw_lib_dir/libgc.la"
11795 else
11796 BDW_GC_LIBS="-L$bdw_lib_dir -lgc"
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
11799 $as_echo "found" >&6; }
11802 case "$BDW_GC_LIBS" in
11803 *libgc.la)
11804 use_bdw_gc=yes
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system boehm-gc" >&5
11808 $as_echo_n "checking for system boehm-gc... " >&6; }
11809 save_CFLAGS=$CFLAGS
11810 save_LIBS=$LIBS
11811 CFLAGS="$CFLAGS $BDW_GC_CFLAGS"
11812 LIBS="$LIBS $BDW_GC_LIBS"
11813 if test x$gcc_no_link = xyes; then
11814 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11817 /* end confdefs.h. */
11818 #include <gc/gc.h>
11820 main ()
11822 GC_init()
11824 return 0;
11826 _ACEOF
11827 if ac_fn_c_try_link "$LINENO"; then :
11829 if test "$cross_compiling" = yes; then :
11830 system_bdw_gc_found=no
11832 else
11833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11834 /* end confdefs.h. */
11836 #include <gc/gc.h>
11837 int main() {
11838 GC_init();
11839 return 0;
11842 _ACEOF
11843 if ac_fn_c_try_run "$LINENO"; then :
11844 system_bdw_gc_found=yes
11845 else
11846 system_bdw_gc_found=no
11848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11849 conftest.$ac_objext conftest.beam conftest.$ac_ext
11853 else
11854 system_bdw_gc_found=no
11856 rm -f core conftest.err conftest.$ac_objext \
11857 conftest$ac_exeext conftest.$ac_ext
11858 CFLAGS=$save_CFLAGS
11859 LIBS=$save_LIBS
11860 if test x$enable_objc_gc = xauto && test x$system_bdw_gc_found = xno; then
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system bdw-gc not found, not building libobjc_gc" >&5
11862 $as_echo "$as_me: WARNING: system bdw-gc not found, not building libobjc_gc" >&2;}
11863 use_bdw_gc=no
11864 elif test x$enable_objc_gc = xyes && test x$system_bdw_gc_found = xno; then
11865 as_fn_error $? "system bdw-gc required but not found" "$LINENO" 5
11866 else
11867 use_bdw_gc=yes
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
11869 $as_echo "found" >&6; }
11871 esac
11872 esac
11874 if test "$use_bdw_gc" = no; then
11875 OBJC_GCFLAGS=''
11876 OBJC_BOEHM_GC=''
11877 OBJC_BOEHM_GC_INCLUDES=''
11878 OBJC_BOEHM_GC_LIBS=''
11879 else
11880 OBJC_GCFLAGS='-DOBJC_WITH_GC=1'
11881 OBJC_BOEHM_GC='libobjc_gc$(libsuffix).la'
11882 OBJC_BOEHM_GC_INCLUDES=$BDW_GC_CFLAGS
11883 OBJC_BOEHM_GC_LIBS=$BDW_GC_LIBS
11890 # Determine what GCC version number to use in filesystem paths.
11892 get_gcc_base_ver="cat"
11894 # Check whether --with-gcc-major-version-only was given.
11895 if test "${with_gcc_major_version_only+set}" = set; then :
11896 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
11897 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
11905 # ------
11906 # Output
11907 # ------
11909 if test ${multilib} = yes; then
11910 multilib_arg="--enable-multilib"
11911 else
11912 multilib_arg=
11915 ac_config_files="$ac_config_files Makefile"
11917 cat >confcache <<\_ACEOF
11918 # This file is a shell script that caches the results of configure
11919 # tests run on this system so they can be shared between configure
11920 # scripts and configure runs, see configure's option --config-cache.
11921 # It is not useful on other systems. If it contains results you don't
11922 # want to keep, you may remove or edit it.
11924 # config.status only pays attention to the cache file if you give it
11925 # the --recheck option to rerun configure.
11927 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11928 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11929 # following values.
11931 _ACEOF
11933 # The following way of writing the cache mishandles newlines in values,
11934 # but we know of no workaround that is simple, portable, and efficient.
11935 # So, we kill variables containing newlines.
11936 # Ultrix sh set writes to stderr and can't be redirected directly,
11937 # and sets the high bit in the cache file unless we assign to the vars.
11939 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11940 eval ac_val=\$$ac_var
11941 case $ac_val in #(
11942 *${as_nl}*)
11943 case $ac_var in #(
11944 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11945 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11946 esac
11947 case $ac_var in #(
11948 _ | IFS | as_nl) ;; #(
11949 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11950 *) { eval $ac_var=; unset $ac_var;} ;;
11951 esac ;;
11952 esac
11953 done
11955 (set) 2>&1 |
11956 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11957 *${as_nl}ac_space=\ *)
11958 # `set' does not quote correctly, so add quotes: double-quote
11959 # substitution turns \\\\ into \\, and sed turns \\ into \.
11960 sed -n \
11961 "s/'/'\\\\''/g;
11962 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11963 ;; #(
11965 # `set' quotes correctly as required by POSIX, so do not add quotes.
11966 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11968 esac |
11969 sort
11971 sed '
11972 /^ac_cv_env_/b end
11973 t clear
11974 :clear
11975 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11976 t end
11977 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11978 :end' >>confcache
11979 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11980 if test -w "$cache_file"; then
11981 if test "x$cache_file" != "x/dev/null"; then
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11983 $as_echo "$as_me: updating cache $cache_file" >&6;}
11984 if test ! -f "$cache_file" || test -h "$cache_file"; then
11985 cat confcache >"$cache_file"
11986 else
11987 case $cache_file in #(
11988 */* | ?:*)
11989 mv -f confcache "$cache_file"$$ &&
11990 mv -f "$cache_file"$$ "$cache_file" ;; #(
11992 mv -f confcache "$cache_file" ;;
11993 esac
11996 else
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11998 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12001 rm -f confcache
12003 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12004 # Let make expand exec_prefix.
12005 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12007 DEFS=-DHAVE_CONFIG_H
12009 ac_libobjs=
12010 ac_ltlibobjs=
12012 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12013 # 1. Remove the extension, and $U if already installed.
12014 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12015 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12016 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12017 # will be set to the directory where LIBOBJS objects are built.
12018 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12019 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12020 done
12021 LIBOBJS=$ac_libobjs
12023 LTLIBOBJS=$ac_ltlibobjs
12026 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12027 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12030 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
12031 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
12032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12035 : "${CONFIG_STATUS=./config.status}"
12036 ac_write_fail=0
12037 ac_clean_files_save=$ac_clean_files
12038 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12040 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12041 as_write_fail=0
12042 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12043 #! $SHELL
12044 # Generated by $as_me.
12045 # Run this file to recreate the current configuration.
12046 # Compiler output produced by configure, useful for debugging
12047 # configure, is in config.log if it exists.
12049 debug=false
12050 ac_cs_recheck=false
12051 ac_cs_silent=false
12053 SHELL=\${CONFIG_SHELL-$SHELL}
12054 export SHELL
12055 _ASEOF
12056 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12057 ## -------------------- ##
12058 ## M4sh Initialization. ##
12059 ## -------------------- ##
12061 # Be more Bourne compatible
12062 DUALCASE=1; export DUALCASE # for MKS sh
12063 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12064 emulate sh
12065 NULLCMD=:
12066 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12067 # is contrary to our usage. Disable this feature.
12068 alias -g '${1+"$@"}'='"$@"'
12069 setopt NO_GLOB_SUBST
12070 else
12071 case `(set -o) 2>/dev/null` in #(
12072 *posix*) :
12073 set -o posix ;; #(
12074 *) :
12076 esac
12080 as_nl='
12082 export as_nl
12083 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12084 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12085 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12086 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12087 # Prefer a ksh shell builtin over an external printf program on Solaris,
12088 # but without wasting forks for bash or zsh.
12089 if test -z "$BASH_VERSION$ZSH_VERSION" \
12090 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12091 as_echo='print -r --'
12092 as_echo_n='print -rn --'
12093 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12094 as_echo='printf %s\n'
12095 as_echo_n='printf %s'
12096 else
12097 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12098 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12099 as_echo_n='/usr/ucb/echo -n'
12100 else
12101 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12102 as_echo_n_body='eval
12103 arg=$1;
12104 case $arg in #(
12105 *"$as_nl"*)
12106 expr "X$arg" : "X\\(.*\\)$as_nl";
12107 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12108 esac;
12109 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12111 export as_echo_n_body
12112 as_echo_n='sh -c $as_echo_n_body as_echo'
12114 export as_echo_body
12115 as_echo='sh -c $as_echo_body as_echo'
12118 # The user is always right.
12119 if test "${PATH_SEPARATOR+set}" != set; then
12120 PATH_SEPARATOR=:
12121 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12122 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12123 PATH_SEPARATOR=';'
12128 # IFS
12129 # We need space, tab and new line, in precisely that order. Quoting is
12130 # there to prevent editors from complaining about space-tab.
12131 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12132 # splitting by setting IFS to empty value.)
12133 IFS=" "" $as_nl"
12135 # Find who we are. Look in the path if we contain no directory separator.
12136 as_myself=
12137 case $0 in #((
12138 *[\\/]* ) as_myself=$0 ;;
12139 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12140 for as_dir in $PATH
12142 IFS=$as_save_IFS
12143 test -z "$as_dir" && as_dir=.
12144 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12145 done
12146 IFS=$as_save_IFS
12149 esac
12150 # We did not find ourselves, most probably we were run as `sh COMMAND'
12151 # in which case we are not to be found in the path.
12152 if test "x$as_myself" = x; then
12153 as_myself=$0
12155 if test ! -f "$as_myself"; then
12156 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12157 exit 1
12160 # Unset variables that we do not need and which cause bugs (e.g. in
12161 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12162 # suppresses any "Segmentation fault" message there. '((' could
12163 # trigger a bug in pdksh 5.2.14.
12164 for as_var in BASH_ENV ENV MAIL MAILPATH
12165 do eval test x\${$as_var+set} = xset \
12166 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12167 done
12168 PS1='$ '
12169 PS2='> '
12170 PS4='+ '
12172 # NLS nuisances.
12173 LC_ALL=C
12174 export LC_ALL
12175 LANGUAGE=C
12176 export LANGUAGE
12178 # CDPATH.
12179 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12182 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12183 # ----------------------------------------
12184 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12185 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12186 # script with STATUS, using 1 if that was 0.
12187 as_fn_error ()
12189 as_status=$1; test $as_status -eq 0 && as_status=1
12190 if test "$4"; then
12191 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12192 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12194 $as_echo "$as_me: error: $2" >&2
12195 as_fn_exit $as_status
12196 } # as_fn_error
12199 # as_fn_set_status STATUS
12200 # -----------------------
12201 # Set $? to STATUS, without forking.
12202 as_fn_set_status ()
12204 return $1
12205 } # as_fn_set_status
12207 # as_fn_exit STATUS
12208 # -----------------
12209 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12210 as_fn_exit ()
12212 set +e
12213 as_fn_set_status $1
12214 exit $1
12215 } # as_fn_exit
12217 # as_fn_unset VAR
12218 # ---------------
12219 # Portably unset VAR.
12220 as_fn_unset ()
12222 { eval $1=; unset $1;}
12224 as_unset=as_fn_unset
12225 # as_fn_append VAR VALUE
12226 # ----------------------
12227 # Append the text in VALUE to the end of the definition contained in VAR. Take
12228 # advantage of any shell optimizations that allow amortized linear growth over
12229 # repeated appends, instead of the typical quadratic growth present in naive
12230 # implementations.
12231 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12232 eval 'as_fn_append ()
12234 eval $1+=\$2
12236 else
12237 as_fn_append ()
12239 eval $1=\$$1\$2
12241 fi # as_fn_append
12243 # as_fn_arith ARG...
12244 # ------------------
12245 # Perform arithmetic evaluation on the ARGs, and store the result in the
12246 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12247 # must be portable across $(()) and expr.
12248 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12249 eval 'as_fn_arith ()
12251 as_val=$(( $* ))
12253 else
12254 as_fn_arith ()
12256 as_val=`expr "$@" || test $? -eq 1`
12258 fi # as_fn_arith
12261 if expr a : '\(a\)' >/dev/null 2>&1 &&
12262 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12263 as_expr=expr
12264 else
12265 as_expr=false
12268 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12269 as_basename=basename
12270 else
12271 as_basename=false
12274 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12275 as_dirname=dirname
12276 else
12277 as_dirname=false
12280 as_me=`$as_basename -- "$0" ||
12281 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12282 X"$0" : 'X\(//\)$' \| \
12283 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12284 $as_echo X/"$0" |
12285 sed '/^.*\/\([^/][^/]*\)\/*$/{
12286 s//\1/
12289 /^X\/\(\/\/\)$/{
12290 s//\1/
12293 /^X\/\(\/\).*/{
12294 s//\1/
12297 s/.*/./; q'`
12299 # Avoid depending upon Character Ranges.
12300 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12301 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12302 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12303 as_cr_digits='0123456789'
12304 as_cr_alnum=$as_cr_Letters$as_cr_digits
12306 ECHO_C= ECHO_N= ECHO_T=
12307 case `echo -n x` in #(((((
12308 -n*)
12309 case `echo 'xy\c'` in
12310 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12311 xy) ECHO_C='\c';;
12312 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12313 ECHO_T=' ';;
12314 esac;;
12316 ECHO_N='-n';;
12317 esac
12319 rm -f conf$$ conf$$.exe conf$$.file
12320 if test -d conf$$.dir; then
12321 rm -f conf$$.dir/conf$$.file
12322 else
12323 rm -f conf$$.dir
12324 mkdir conf$$.dir 2>/dev/null
12326 if (echo >conf$$.file) 2>/dev/null; then
12327 if ln -s conf$$.file conf$$ 2>/dev/null; then
12328 as_ln_s='ln -s'
12329 # ... but there are two gotchas:
12330 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12331 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12332 # In both cases, we have to default to `cp -pR'.
12333 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12334 as_ln_s='cp -pR'
12335 elif ln conf$$.file conf$$ 2>/dev/null; then
12336 as_ln_s=ln
12337 else
12338 as_ln_s='cp -pR'
12340 else
12341 as_ln_s='cp -pR'
12343 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12344 rmdir conf$$.dir 2>/dev/null
12347 # as_fn_mkdir_p
12348 # -------------
12349 # Create "$as_dir" as a directory, including parents if necessary.
12350 as_fn_mkdir_p ()
12353 case $as_dir in #(
12354 -*) as_dir=./$as_dir;;
12355 esac
12356 test -d "$as_dir" || eval $as_mkdir_p || {
12357 as_dirs=
12358 while :; do
12359 case $as_dir in #(
12360 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12361 *) as_qdir=$as_dir;;
12362 esac
12363 as_dirs="'$as_qdir' $as_dirs"
12364 as_dir=`$as_dirname -- "$as_dir" ||
12365 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12366 X"$as_dir" : 'X\(//\)[^/]' \| \
12367 X"$as_dir" : 'X\(//\)$' \| \
12368 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12369 $as_echo X"$as_dir" |
12370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12371 s//\1/
12374 /^X\(\/\/\)[^/].*/{
12375 s//\1/
12378 /^X\(\/\/\)$/{
12379 s//\1/
12382 /^X\(\/\).*/{
12383 s//\1/
12386 s/.*/./; q'`
12387 test -d "$as_dir" && break
12388 done
12389 test -z "$as_dirs" || eval "mkdir $as_dirs"
12390 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12393 } # as_fn_mkdir_p
12394 if mkdir -p . 2>/dev/null; then
12395 as_mkdir_p='mkdir -p "$as_dir"'
12396 else
12397 test -d ./-p && rmdir ./-p
12398 as_mkdir_p=false
12402 # as_fn_executable_p FILE
12403 # -----------------------
12404 # Test if FILE is an executable regular file.
12405 as_fn_executable_p ()
12407 test -f "$1" && test -x "$1"
12408 } # as_fn_executable_p
12409 as_test_x='test -x'
12410 as_executable_p=as_fn_executable_p
12412 # Sed expression to map a string onto a valid CPP name.
12413 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12415 # Sed expression to map a string onto a valid variable name.
12416 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12419 exec 6>&1
12420 ## ----------------------------------- ##
12421 ## Main body of $CONFIG_STATUS script. ##
12422 ## ----------------------------------- ##
12423 _ASEOF
12424 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12427 # Save the log message, to keep $0 and so on meaningful, and to
12428 # report actual input values of CONFIG_FILES etc. instead of their
12429 # values after options handling.
12430 ac_log="
12431 This file was extended by package-unused $as_me version-unused, which was
12432 generated by GNU Autoconf 2.69. Invocation command line was
12434 CONFIG_FILES = $CONFIG_FILES
12435 CONFIG_HEADERS = $CONFIG_HEADERS
12436 CONFIG_LINKS = $CONFIG_LINKS
12437 CONFIG_COMMANDS = $CONFIG_COMMANDS
12438 $ $0 $@
12440 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12443 _ACEOF
12445 case $ac_config_files in *"
12446 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12447 esac
12449 case $ac_config_headers in *"
12450 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12451 esac
12454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12455 # Files that config.status was made for.
12456 config_files="$ac_config_files"
12457 config_headers="$ac_config_headers"
12458 config_commands="$ac_config_commands"
12460 _ACEOF
12462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12463 ac_cs_usage="\
12464 \`$as_me' instantiates files and other configuration actions
12465 from templates according to the current configuration. Unless the files
12466 and actions are specified as TAGs, all are instantiated by default.
12468 Usage: $0 [OPTION]... [TAG]...
12470 -h, --help print this help, then exit
12471 -V, --version print version number and configuration settings, then exit
12472 --config print configuration, then exit
12473 -q, --quiet, --silent
12474 do not print progress messages
12475 -d, --debug don't remove temporary files
12476 --recheck update $as_me by reconfiguring in the same conditions
12477 --file=FILE[:TEMPLATE]
12478 instantiate the configuration file FILE
12479 --header=FILE[:TEMPLATE]
12480 instantiate the configuration header FILE
12482 Configuration files:
12483 $config_files
12485 Configuration headers:
12486 $config_headers
12488 Configuration commands:
12489 $config_commands
12491 Report bugs to the package provider."
12493 _ACEOF
12494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12495 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12496 ac_cs_version="\\
12497 package-unused config.status version-unused
12498 configured by $0, generated by GNU Autoconf 2.69,
12499 with options \\"\$ac_cs_config\\"
12501 Copyright (C) 2012 Free Software Foundation, Inc.
12502 This config.status script is free software; the Free Software Foundation
12503 gives unlimited permission to copy, distribute and modify it."
12505 ac_pwd='$ac_pwd'
12506 srcdir='$srcdir'
12507 INSTALL='$INSTALL'
12508 AWK='$AWK'
12509 test -n "\$AWK" || AWK=awk
12510 _ACEOF
12512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12513 # The default lists apply if the user does not specify any file.
12514 ac_need_defaults=:
12515 while test $# != 0
12517 case $1 in
12518 --*=?*)
12519 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12520 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12521 ac_shift=:
12523 --*=)
12524 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12525 ac_optarg=
12526 ac_shift=:
12529 ac_option=$1
12530 ac_optarg=$2
12531 ac_shift=shift
12533 esac
12535 case $ac_option in
12536 # Handling of the options.
12537 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12538 ac_cs_recheck=: ;;
12539 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12540 $as_echo "$ac_cs_version"; exit ;;
12541 --config | --confi | --conf | --con | --co | --c )
12542 $as_echo "$ac_cs_config"; exit ;;
12543 --debug | --debu | --deb | --de | --d | -d )
12544 debug=: ;;
12545 --file | --fil | --fi | --f )
12546 $ac_shift
12547 case $ac_optarg in
12548 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12549 '') as_fn_error $? "missing file argument" ;;
12550 esac
12551 as_fn_append CONFIG_FILES " '$ac_optarg'"
12552 ac_need_defaults=false;;
12553 --header | --heade | --head | --hea )
12554 $ac_shift
12555 case $ac_optarg in
12556 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12557 esac
12558 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12559 ac_need_defaults=false;;
12560 --he | --h)
12561 # Conflict between --help and --header
12562 as_fn_error $? "ambiguous option: \`$1'
12563 Try \`$0 --help' for more information.";;
12564 --help | --hel | -h )
12565 $as_echo "$ac_cs_usage"; exit ;;
12566 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12567 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12568 ac_cs_silent=: ;;
12570 # This is an error.
12571 -*) as_fn_error $? "unrecognized option: \`$1'
12572 Try \`$0 --help' for more information." ;;
12574 *) as_fn_append ac_config_targets " $1"
12575 ac_need_defaults=false ;;
12577 esac
12578 shift
12579 done
12581 ac_configure_extra_args=
12583 if $ac_cs_silent; then
12584 exec 6>/dev/null
12585 ac_configure_extra_args="$ac_configure_extra_args --silent"
12588 _ACEOF
12589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12590 if \$ac_cs_recheck; then
12591 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12592 shift
12593 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12594 CONFIG_SHELL='$SHELL'
12595 export CONFIG_SHELL
12596 exec "\$@"
12599 _ACEOF
12600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12601 exec 5>>config.log
12603 echo
12604 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12605 ## Running $as_me. ##
12606 _ASBOX
12607 $as_echo "$ac_log"
12608 } >&5
12610 _ACEOF
12611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12613 # INIT-COMMANDS
12616 srcdir="$srcdir"
12617 host="$host"
12618 target="$target"
12619 with_multisubdir="$with_multisubdir"
12620 with_multisrctop="$with_multisrctop"
12621 with_target_subdir="$with_target_subdir"
12622 ac_configure_args="${multilib_arg} ${ac_configure_args}"
12623 multi_basedir="$multi_basedir"
12624 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12625 CC="$CC"
12626 CXX="$CXX"
12627 GFORTRAN="$GFORTRAN"
12628 GDC="$GDC"
12631 # The HP-UX ksh and POSIX shell print the target directory to stdout
12632 # if CDPATH is set.
12633 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12635 sed_quote_subst='$sed_quote_subst'
12636 double_quote_subst='$double_quote_subst'
12637 delay_variable_subst='$delay_variable_subst'
12638 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
12639 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12640 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12641 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12642 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12643 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12644 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12645 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12646 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12647 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12648 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12649 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12650 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12651 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12652 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12653 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12654 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12655 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12656 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12657 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12658 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12659 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12660 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12661 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12662 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12663 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12664 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12665 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12666 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12667 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12668 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12669 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12670 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12671 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12672 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12673 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12674 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12675 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12676 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12677 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12678 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12679 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12680 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12681 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12682 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12683 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12684 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12685 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12686 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12687 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12688 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"`'
12689 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12690 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12691 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12692 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12693 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12694 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12695 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12696 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12697 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12698 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12699 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12700 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12701 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12702 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12703 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12704 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12705 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12706 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12707 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12708 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12709 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12710 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12711 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12712 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12713 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12714 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12715 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12716 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12717 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12718 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12719 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12720 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12721 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12722 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12723 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12724 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12725 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12726 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12727 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12728 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12729 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12730 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12731 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12732 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12733 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12734 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12735 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12736 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12737 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12738 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12739 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12740 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12741 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12742 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12743 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12744 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12745 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12746 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12747 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12748 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12749 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12750 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12751 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12752 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12753 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12754 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12755 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12756 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12757 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12758 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12759 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12761 LTCC='$LTCC'
12762 LTCFLAGS='$LTCFLAGS'
12763 compiler='$compiler_DEFAULT'
12765 # A function that is used when there is no print builtin or printf.
12766 func_fallback_echo ()
12768 eval 'cat <<_LTECHO_EOF
12770 _LTECHO_EOF'
12773 # Quote evaled strings.
12774 for var in AS \
12775 DLLTOOL \
12776 OBJDUMP \
12777 SHELL \
12778 ECHO \
12779 SED \
12780 GREP \
12781 EGREP \
12782 FGREP \
12783 LD \
12784 NM \
12785 LN_S \
12786 lt_SP2NL \
12787 lt_NL2SP \
12788 reload_flag \
12789 deplibs_check_method \
12790 file_magic_cmd \
12791 AR \
12792 AR_FLAGS \
12793 STRIP \
12794 RANLIB \
12795 CC \
12796 CFLAGS \
12797 compiler \
12798 lt_cv_sys_global_symbol_pipe \
12799 lt_cv_sys_global_symbol_to_cdecl \
12800 lt_cv_sys_global_symbol_to_c_name_address \
12801 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12802 lt_prog_compiler_no_builtin_flag \
12803 lt_prog_compiler_wl \
12804 lt_prog_compiler_pic \
12805 lt_prog_compiler_static \
12806 lt_cv_prog_compiler_c_o \
12807 need_locks \
12808 DSYMUTIL \
12809 NMEDIT \
12810 LIPO \
12811 OTOOL \
12812 OTOOL64 \
12813 shrext_cmds \
12814 export_dynamic_flag_spec \
12815 whole_archive_flag_spec \
12816 compiler_needs_object \
12817 with_gnu_ld \
12818 allow_undefined_flag \
12819 no_undefined_flag \
12820 hardcode_libdir_flag_spec \
12821 hardcode_libdir_flag_spec_ld \
12822 hardcode_libdir_separator \
12823 fix_srcfile_path \
12824 exclude_expsyms \
12825 include_expsyms \
12826 file_list_spec \
12827 variables_saved_for_relink \
12828 libname_spec \
12829 library_names_spec \
12830 soname_spec \
12831 install_override_mode \
12832 finish_eval \
12833 old_striplib \
12834 striplib; do
12835 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12836 *[\\\\\\\`\\"\\\$]*)
12837 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12840 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12842 esac
12843 done
12845 # Double-quote double-evaled strings.
12846 for var in reload_cmds \
12847 old_postinstall_cmds \
12848 old_postuninstall_cmds \
12849 old_archive_cmds \
12850 extract_expsyms_cmds \
12851 old_archive_from_new_cmds \
12852 old_archive_from_expsyms_cmds \
12853 archive_cmds \
12854 archive_expsym_cmds \
12855 module_cmds \
12856 module_expsym_cmds \
12857 export_symbols_cmds \
12858 prelink_cmds \
12859 postinstall_cmds \
12860 postuninstall_cmds \
12861 finish_cmds \
12862 sys_lib_search_path_spec \
12863 sys_lib_dlsearch_path_spec; do
12864 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12865 *[\\\\\\\`\\"\\\$]*)
12866 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12869 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12871 esac
12872 done
12874 ac_aux_dir='$ac_aux_dir'
12875 xsi_shell='$xsi_shell'
12876 lt_shell_append='$lt_shell_append'
12878 # See if we are running on zsh, and set the options which allow our
12879 # commands through without removal of \ escapes INIT.
12880 if test -n "\${ZSH_VERSION+set}" ; then
12881 setopt NO_GLOB_SUBST
12885 PACKAGE='$PACKAGE'
12886 VERSION='$VERSION'
12887 TIMESTAMP='$TIMESTAMP'
12888 RM='$RM'
12889 ofile='$ofile'
12894 _ACEOF
12896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12898 # Handling of arguments.
12899 for ac_config_target in $ac_config_targets
12901 case $ac_config_target in
12902 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12903 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12904 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12905 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12907 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12908 esac
12909 done
12912 # If the user did not use the arguments to specify the items to instantiate,
12913 # then the envvar interface is used. Set only those that are not.
12914 # We use the long form for the default assignment because of an extremely
12915 # bizarre bug on SunOS 4.1.3.
12916 if $ac_need_defaults; then
12917 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12918 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12919 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12922 # Have a temporary directory for convenience. Make it in the build tree
12923 # simply because there is no reason against having it here, and in addition,
12924 # creating and moving files from /tmp can sometimes cause problems.
12925 # Hook for its removal unless debugging.
12926 # Note that there is a small window in which the directory will not be cleaned:
12927 # after its creation but before its name has been assigned to `$tmp'.
12928 $debug ||
12930 tmp= ac_tmp=
12931 trap 'exit_status=$?
12932 : "${ac_tmp:=$tmp}"
12933 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12935 trap 'as_fn_exit 1' 1 2 13 15
12937 # Create a (secure) tmp directory for tmp files.
12940 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12941 test -d "$tmp"
12942 } ||
12944 tmp=./conf$$-$RANDOM
12945 (umask 077 && mkdir "$tmp")
12946 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12947 ac_tmp=$tmp
12949 # Set up the scripts for CONFIG_FILES section.
12950 # No need to generate them if there are no CONFIG_FILES.
12951 # This happens for instance with `./config.status config.h'.
12952 if test -n "$CONFIG_FILES"; then
12955 ac_cr=`echo X | tr X '\015'`
12956 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12957 # But we know of no other shell where ac_cr would be empty at this
12958 # point, so we can use a bashism as a fallback.
12959 if test "x$ac_cr" = x; then
12960 eval ac_cr=\$\'\\r\'
12962 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12963 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12964 ac_cs_awk_cr='\\r'
12965 else
12966 ac_cs_awk_cr=$ac_cr
12969 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12970 _ACEOF
12974 echo "cat >conf$$subs.awk <<_ACEOF" &&
12975 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12976 echo "_ACEOF"
12977 } >conf$$subs.sh ||
12978 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12979 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12980 ac_delim='%!_!# '
12981 for ac_last_try in false false false false false :; do
12982 . ./conf$$subs.sh ||
12983 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12985 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12986 if test $ac_delim_n = $ac_delim_num; then
12987 break
12988 elif $ac_last_try; then
12989 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12990 else
12991 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12993 done
12994 rm -f conf$$subs.sh
12996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12997 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12998 _ACEOF
12999 sed -n '
13001 s/^/S["/; s/!.*/"]=/
13004 s/^[^!]*!//
13005 :repl
13006 t repl
13007 s/'"$ac_delim"'$//
13008 t delim
13011 s/\(.\{148\}\)..*/\1/
13012 t more1
13013 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13016 b repl
13017 :more1
13018 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13021 s/.\{148\}//
13022 t nl
13023 :delim
13025 s/\(.\{148\}\)..*/\1/
13026 t more2
13027 s/["\\]/\\&/g; s/^/"/; s/$/"/
13030 :more2
13031 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13034 s/.\{148\}//
13035 t delim
13036 ' <conf$$subs.awk | sed '
13037 /^[^""]/{
13039 s/\n//
13041 ' >>$CONFIG_STATUS || ac_write_fail=1
13042 rm -f conf$$subs.awk
13043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13044 _ACAWK
13045 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13046 for (key in S) S_is_set[key] = 1
13047 FS = "\a"
13051 line = $ 0
13052 nfields = split(line, field, "@")
13053 substed = 0
13054 len = length(field[1])
13055 for (i = 2; i < nfields; i++) {
13056 key = field[i]
13057 keylen = length(key)
13058 if (S_is_set[key]) {
13059 value = S[key]
13060 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13061 len += length(value) + length(field[++i])
13062 substed = 1
13063 } else
13064 len += 1 + keylen
13067 print line
13070 _ACAWK
13071 _ACEOF
13072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13073 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13074 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13075 else
13077 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13078 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13079 _ACEOF
13081 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13082 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13083 # trailing colons and then remove the whole line if VPATH becomes empty
13084 # (actually we leave an empty line to preserve line numbers).
13085 if test "x$srcdir" = x.; then
13086 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13088 s///
13089 s/^/:/
13090 s/[ ]*$/:/
13091 s/:\$(srcdir):/:/g
13092 s/:\${srcdir}:/:/g
13093 s/:@srcdir@:/:/g
13094 s/^:*//
13095 s/:*$//
13097 s/\(=[ ]*\).*/\1/
13099 s/\n//
13100 s/^[^=]*=[ ]*$//
13104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13105 fi # test -n "$CONFIG_FILES"
13107 # Set up the scripts for CONFIG_HEADERS section.
13108 # No need to generate them if there are no CONFIG_HEADERS.
13109 # This happens for instance with `./config.status Makefile'.
13110 if test -n "$CONFIG_HEADERS"; then
13111 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13112 BEGIN {
13113 _ACEOF
13115 # Transform confdefs.h into an awk script `defines.awk', embedded as
13116 # here-document in config.status, that substitutes the proper values into
13117 # config.h.in to produce config.h.
13119 # Create a delimiter string that does not exist in confdefs.h, to ease
13120 # handling of long lines.
13121 ac_delim='%!_!# '
13122 for ac_last_try in false false :; do
13123 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13124 if test -z "$ac_tt"; then
13125 break
13126 elif $ac_last_try; then
13127 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13128 else
13129 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13131 done
13133 # For the awk script, D is an array of macro values keyed by name,
13134 # likewise P contains macro parameters if any. Preserve backslash
13135 # newline sequences.
13137 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13138 sed -n '
13139 s/.\{148\}/&'"$ac_delim"'/g
13140 t rset
13141 :rset
13142 s/^[ ]*#[ ]*define[ ][ ]*/ /
13143 t def
13145 :def
13146 s/\\$//
13147 t bsnl
13148 s/["\\]/\\&/g
13149 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13150 D["\1"]=" \3"/p
13151 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13153 :bsnl
13154 s/["\\]/\\&/g
13155 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13156 D["\1"]=" \3\\\\\\n"\\/p
13157 t cont
13158 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13159 t cont
13161 :cont
13163 s/.\{148\}/&'"$ac_delim"'/g
13164 t clear
13165 :clear
13166 s/\\$//
13167 t bsnlc
13168 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13170 :bsnlc
13171 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13172 b cont
13173 ' <confdefs.h | sed '
13174 s/'"$ac_delim"'/"\\\
13175 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13178 for (key in D) D_is_set[key] = 1
13179 FS = "\a"
13181 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13182 line = \$ 0
13183 split(line, arg, " ")
13184 if (arg[1] == "#") {
13185 defundef = arg[2]
13186 mac1 = arg[3]
13187 } else {
13188 defundef = substr(arg[1], 2)
13189 mac1 = arg[2]
13191 split(mac1, mac2, "(") #)
13192 macro = mac2[1]
13193 prefix = substr(line, 1, index(line, defundef) - 1)
13194 if (D_is_set[macro]) {
13195 # Preserve the white space surrounding the "#".
13196 print prefix "define", macro P[macro] D[macro]
13197 next
13198 } else {
13199 # Replace #undef with comments. This is necessary, for example,
13200 # in the case of _POSIX_SOURCE, which is predefined and required
13201 # on some systems where configure will not decide to define it.
13202 if (defundef == "undef") {
13203 print "/*", prefix defundef, macro, "*/"
13204 next
13208 { print }
13209 _ACAWK
13210 _ACEOF
13211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13212 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13213 fi # test -n "$CONFIG_HEADERS"
13216 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13217 shift
13218 for ac_tag
13220 case $ac_tag in
13221 :[FHLC]) ac_mode=$ac_tag; continue;;
13222 esac
13223 case $ac_mode$ac_tag in
13224 :[FHL]*:*);;
13225 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13226 :[FH]-) ac_tag=-:-;;
13227 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13228 esac
13229 ac_save_IFS=$IFS
13230 IFS=:
13231 set x $ac_tag
13232 IFS=$ac_save_IFS
13233 shift
13234 ac_file=$1
13235 shift
13237 case $ac_mode in
13238 :L) ac_source=$1;;
13239 :[FH])
13240 ac_file_inputs=
13241 for ac_f
13243 case $ac_f in
13244 -) ac_f="$ac_tmp/stdin";;
13245 *) # Look for the file first in the build tree, then in the source tree
13246 # (if the path is not absolute). The absolute path cannot be DOS-style,
13247 # because $ac_f cannot contain `:'.
13248 test -f "$ac_f" ||
13249 case $ac_f in
13250 [\\/$]*) false;;
13251 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13252 esac ||
13253 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13254 esac
13255 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13256 as_fn_append ac_file_inputs " '$ac_f'"
13257 done
13259 # Let's still pretend it is `configure' which instantiates (i.e., don't
13260 # use $as_me), people would be surprised to read:
13261 # /* config.h. Generated by config.status. */
13262 configure_input='Generated from '`
13263 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13264 `' by configure.'
13265 if test x"$ac_file" != x-; then
13266 configure_input="$ac_file. $configure_input"
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13268 $as_echo "$as_me: creating $ac_file" >&6;}
13270 # Neutralize special characters interpreted by sed in replacement strings.
13271 case $configure_input in #(
13272 *\&* | *\|* | *\\* )
13273 ac_sed_conf_input=`$as_echo "$configure_input" |
13274 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13275 *) ac_sed_conf_input=$configure_input;;
13276 esac
13278 case $ac_tag in
13279 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13280 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13281 esac
13283 esac
13285 ac_dir=`$as_dirname -- "$ac_file" ||
13286 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13287 X"$ac_file" : 'X\(//\)[^/]' \| \
13288 X"$ac_file" : 'X\(//\)$' \| \
13289 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13290 $as_echo X"$ac_file" |
13291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13292 s//\1/
13295 /^X\(\/\/\)[^/].*/{
13296 s//\1/
13299 /^X\(\/\/\)$/{
13300 s//\1/
13303 /^X\(\/\).*/{
13304 s//\1/
13307 s/.*/./; q'`
13308 as_dir="$ac_dir"; as_fn_mkdir_p
13309 ac_builddir=.
13311 case "$ac_dir" in
13312 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13314 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13315 # A ".." for each directory in $ac_dir_suffix.
13316 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13317 case $ac_top_builddir_sub in
13318 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13319 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13320 esac ;;
13321 esac
13322 ac_abs_top_builddir=$ac_pwd
13323 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13324 # for backward compatibility:
13325 ac_top_builddir=$ac_top_build_prefix
13327 case $srcdir in
13328 .) # We are building in place.
13329 ac_srcdir=.
13330 ac_top_srcdir=$ac_top_builddir_sub
13331 ac_abs_top_srcdir=$ac_pwd ;;
13332 [\\/]* | ?:[\\/]* ) # Absolute name.
13333 ac_srcdir=$srcdir$ac_dir_suffix;
13334 ac_top_srcdir=$srcdir
13335 ac_abs_top_srcdir=$srcdir ;;
13336 *) # Relative name.
13337 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13338 ac_top_srcdir=$ac_top_build_prefix$srcdir
13339 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13340 esac
13341 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13344 case $ac_mode in
13347 # CONFIG_FILE
13350 case $INSTALL in
13351 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13352 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13353 esac
13354 _ACEOF
13356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13357 # If the template does not know about datarootdir, expand it.
13358 # FIXME: This hack should be removed a few years after 2.60.
13359 ac_datarootdir_hack=; ac_datarootdir_seen=
13360 ac_sed_dataroot='
13361 /datarootdir/ {
13365 /@datadir@/p
13366 /@docdir@/p
13367 /@infodir@/p
13368 /@localedir@/p
13369 /@mandir@/p'
13370 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13371 *datarootdir*) ac_datarootdir_seen=yes;;
13372 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13374 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13375 _ACEOF
13376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13377 ac_datarootdir_hack='
13378 s&@datadir@&$datadir&g
13379 s&@docdir@&$docdir&g
13380 s&@infodir@&$infodir&g
13381 s&@localedir@&$localedir&g
13382 s&@mandir@&$mandir&g
13383 s&\\\${datarootdir}&$datarootdir&g' ;;
13384 esac
13385 _ACEOF
13387 # Neutralize VPATH when `$srcdir' = `.'.
13388 # Shell code in configure.ac might set extrasub.
13389 # FIXME: do we really want to maintain this feature?
13390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13391 ac_sed_extra="$ac_vpsub
13392 $extrasub
13393 _ACEOF
13394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13396 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13397 s|@configure_input@|$ac_sed_conf_input|;t t
13398 s&@top_builddir@&$ac_top_builddir_sub&;t t
13399 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13400 s&@srcdir@&$ac_srcdir&;t t
13401 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13402 s&@top_srcdir@&$ac_top_srcdir&;t t
13403 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13404 s&@builddir@&$ac_builddir&;t t
13405 s&@abs_builddir@&$ac_abs_builddir&;t t
13406 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13407 s&@INSTALL@&$ac_INSTALL&;t t
13408 $ac_datarootdir_hack
13410 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13411 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13413 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13414 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13415 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13416 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13418 which seems to be undefined. Please make sure it is defined" >&5
13419 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13420 which seems to be undefined. Please make sure it is defined" >&2;}
13422 rm -f "$ac_tmp/stdin"
13423 case $ac_file in
13424 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13425 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13426 esac \
13427 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13431 # CONFIG_HEADER
13433 if test x"$ac_file" != x-; then
13435 $as_echo "/* $configure_input */" \
13436 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13437 } >"$ac_tmp/config.h" \
13438 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13439 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13441 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13442 else
13443 rm -f "$ac_file"
13444 mv "$ac_tmp/config.h" "$ac_file" \
13445 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13447 else
13448 $as_echo "/* $configure_input */" \
13449 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13450 || as_fn_error $? "could not create -" "$LINENO" 5
13454 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13455 $as_echo "$as_me: executing $ac_file commands" >&6;}
13457 esac
13460 case $ac_file$ac_mode in
13461 "default-1":C)
13462 # Only add multilib support code if we just rebuilt the top-level
13463 # Makefile.
13464 case " $CONFIG_FILES " in
13465 *" Makefile "*)
13466 ac_file=Makefile . ${multi_basedir}/config-ml.in
13468 esac ;;
13469 "libtool":C)
13471 # See if we are running on zsh, and set the options which allow our
13472 # commands through without removal of \ escapes.
13473 if test -n "${ZSH_VERSION+set}" ; then
13474 setopt NO_GLOB_SUBST
13477 cfgfile="${ofile}T"
13478 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13479 $RM "$cfgfile"
13481 cat <<_LT_EOF >> "$cfgfile"
13482 #! $SHELL
13484 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13485 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13486 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13487 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13489 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13490 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
13491 # Written by Gordon Matzigkeit, 1996
13493 # This file is part of GNU Libtool.
13495 # GNU Libtool is free software; you can redistribute it and/or
13496 # modify it under the terms of the GNU General Public License as
13497 # published by the Free Software Foundation; either version 2 of
13498 # the License, or (at your option) any later version.
13500 # As a special exception to the GNU General Public License,
13501 # if you distribute this file as part of a program or library that
13502 # is built using GNU Libtool, you may include this file under the
13503 # same distribution terms that you use for the rest of that program.
13505 # GNU Libtool is distributed in the hope that it will be useful,
13506 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13507 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13508 # GNU General Public License for more details.
13510 # You should have received a copy of the GNU General Public License
13511 # along with GNU Libtool; see the file COPYING. If not, a copy
13512 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13513 # obtained by writing to the Free Software Foundation, Inc.,
13514 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13517 # The names of the tagged configurations supported by this script.
13518 available_tags=""
13520 # ### BEGIN LIBTOOL CONFIG
13522 # Assembler program.
13523 AS=$lt_AS
13525 # DLL creation program.
13526 DLLTOOL=$lt_DLLTOOL
13528 # Object dumper program.
13529 OBJDUMP=$lt_OBJDUMP
13531 # Which release of libtool.m4 was used?
13532 macro_version=$macro_version
13533 macro_revision=$macro_revision
13535 # Whether or not to build shared libraries.
13536 build_libtool_libs=$enable_shared
13538 # Whether or not to build static libraries.
13539 build_old_libs=$enable_static
13541 # What type of objects to build.
13542 pic_mode=$pic_mode
13544 # Whether or not to optimize for fast installation.
13545 fast_install=$enable_fast_install
13547 # Shell to use when invoking shell scripts.
13548 SHELL=$lt_SHELL
13550 # An echo program that protects backslashes.
13551 ECHO=$lt_ECHO
13553 # The host system.
13554 host_alias=$host_alias
13555 host=$host
13556 host_os=$host_os
13558 # The build system.
13559 build_alias=$build_alias
13560 build=$build
13561 build_os=$build_os
13563 # A sed program that does not truncate output.
13564 SED=$lt_SED
13566 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13567 Xsed="\$SED -e 1s/^X//"
13569 # A grep program that handles long lines.
13570 GREP=$lt_GREP
13572 # An ERE matcher.
13573 EGREP=$lt_EGREP
13575 # A literal string matcher.
13576 FGREP=$lt_FGREP
13578 # A BSD- or MS-compatible name lister.
13579 NM=$lt_NM
13581 # Whether we need soft or hard links.
13582 LN_S=$lt_LN_S
13584 # What is the maximum length of a command?
13585 max_cmd_len=$max_cmd_len
13587 # Object file suffix (normally "o").
13588 objext=$ac_objext
13590 # Executable file suffix (normally "").
13591 exeext=$exeext
13593 # whether the shell understands "unset".
13594 lt_unset=$lt_unset
13596 # turn spaces into newlines.
13597 SP2NL=$lt_lt_SP2NL
13599 # turn newlines into spaces.
13600 NL2SP=$lt_lt_NL2SP
13602 # Method to check whether dependent libraries are shared objects.
13603 deplibs_check_method=$lt_deplibs_check_method
13605 # Command to use when deplibs_check_method == "file_magic".
13606 file_magic_cmd=$lt_file_magic_cmd
13608 # The archiver.
13609 AR=$lt_AR
13610 AR_FLAGS=$lt_AR_FLAGS
13612 # A symbol stripping program.
13613 STRIP=$lt_STRIP
13615 # Commands used to install an old-style archive.
13616 RANLIB=$lt_RANLIB
13617 old_postinstall_cmds=$lt_old_postinstall_cmds
13618 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13620 # Whether to use a lock for old archive extraction.
13621 lock_old_archive_extraction=$lock_old_archive_extraction
13623 # A C compiler.
13624 LTCC=$lt_CC
13626 # LTCC compiler flags.
13627 LTCFLAGS=$lt_CFLAGS
13629 # Take the output of nm and produce a listing of raw symbols and C names.
13630 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13632 # Transform the output of nm in a proper C declaration.
13633 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13635 # Transform the output of nm in a C name address pair.
13636 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13638 # Transform the output of nm in a C name address pair when lib prefix is needed.
13639 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13641 # The name of the directory that contains temporary libtool files.
13642 objdir=$objdir
13644 # Used to examine libraries when file_magic_cmd begins with "file".
13645 MAGIC_CMD=$MAGIC_CMD
13647 # Must we lock files when doing compilation?
13648 need_locks=$lt_need_locks
13650 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13651 DSYMUTIL=$lt_DSYMUTIL
13653 # Tool to change global to local symbols on Mac OS X.
13654 NMEDIT=$lt_NMEDIT
13656 # Tool to manipulate fat objects and archives on Mac OS X.
13657 LIPO=$lt_LIPO
13659 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13660 OTOOL=$lt_OTOOL
13662 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13663 OTOOL64=$lt_OTOOL64
13665 # Old archive suffix (normally "a").
13666 libext=$libext
13668 # Shared library suffix (normally ".so").
13669 shrext_cmds=$lt_shrext_cmds
13671 # The commands to extract the exported symbol list from a shared archive.
13672 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13674 # Variables whose values should be saved in libtool wrapper scripts and
13675 # restored at link time.
13676 variables_saved_for_relink=$lt_variables_saved_for_relink
13678 # Do we need the "lib" prefix for modules?
13679 need_lib_prefix=$need_lib_prefix
13681 # Do we need a version for libraries?
13682 need_version=$need_version
13684 # Library versioning type.
13685 version_type=$version_type
13687 # Shared library runtime path variable.
13688 runpath_var=$runpath_var
13690 # Shared library path variable.
13691 shlibpath_var=$shlibpath_var
13693 # Is shlibpath searched before the hard-coded library search path?
13694 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13696 # Format of library name prefix.
13697 libname_spec=$lt_libname_spec
13699 # List of archive names. First name is the real one, the rest are links.
13700 # The last name is the one that the linker finds with -lNAME
13701 library_names_spec=$lt_library_names_spec
13703 # The coded name of the library, if different from the real name.
13704 soname_spec=$lt_soname_spec
13706 # Permission mode override for installation of shared libraries.
13707 install_override_mode=$lt_install_override_mode
13709 # Command to use after installation of a shared archive.
13710 postinstall_cmds=$lt_postinstall_cmds
13712 # Command to use after uninstallation of a shared archive.
13713 postuninstall_cmds=$lt_postuninstall_cmds
13715 # Commands used to finish a libtool library installation in a directory.
13716 finish_cmds=$lt_finish_cmds
13718 # As "finish_cmds", except a single script fragment to be evaled but
13719 # not shown.
13720 finish_eval=$lt_finish_eval
13722 # Whether we should hardcode library paths into libraries.
13723 hardcode_into_libs=$hardcode_into_libs
13725 # Compile-time system search path for libraries.
13726 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13728 # Run-time system search path for libraries.
13729 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13731 # Whether dlopen is supported.
13732 dlopen_support=$enable_dlopen
13734 # Whether dlopen of programs is supported.
13735 dlopen_self=$enable_dlopen_self
13737 # Whether dlopen of statically linked programs is supported.
13738 dlopen_self_static=$enable_dlopen_self_static
13740 # Commands to strip libraries.
13741 old_striplib=$lt_old_striplib
13742 striplib=$lt_striplib
13745 # The linker used to build libraries.
13746 LD=$lt_LD
13748 # How to create reloadable object files.
13749 reload_flag=$lt_reload_flag
13750 reload_cmds=$lt_reload_cmds
13752 # Commands used to build an old-style archive.
13753 old_archive_cmds=$lt_old_archive_cmds
13755 # A language specific compiler.
13756 CC=$lt_compiler
13758 # Is the compiler the GNU compiler?
13759 with_gcc=$GCC
13761 # Compiler flag to turn off builtin functions.
13762 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13764 # How to pass a linker flag through the compiler.
13765 wl=$lt_lt_prog_compiler_wl
13767 # Additional compiler flags for building library objects.
13768 pic_flag=$lt_lt_prog_compiler_pic
13770 # Compiler flag to prevent dynamic linking.
13771 link_static_flag=$lt_lt_prog_compiler_static
13773 # Does compiler simultaneously support -c and -o options?
13774 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13776 # Whether or not to add -lc for building shared libraries.
13777 build_libtool_need_lc=$archive_cmds_need_lc
13779 # Whether or not to disallow shared libs when runtime libs are static.
13780 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13782 # Compiler flag to allow reflexive dlopens.
13783 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13785 # Compiler flag to generate shared objects directly from archives.
13786 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13788 # Whether the compiler copes with passing no objects directly.
13789 compiler_needs_object=$lt_compiler_needs_object
13791 # Create an old-style archive from a shared archive.
13792 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13794 # Create a temporary old-style archive to link instead of a shared archive.
13795 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13797 # Commands used to build a shared archive.
13798 archive_cmds=$lt_archive_cmds
13799 archive_expsym_cmds=$lt_archive_expsym_cmds
13801 # Commands used to build a loadable module if different from building
13802 # a shared archive.
13803 module_cmds=$lt_module_cmds
13804 module_expsym_cmds=$lt_module_expsym_cmds
13806 # Whether we are building with GNU ld or not.
13807 with_gnu_ld=$lt_with_gnu_ld
13809 # Flag that allows shared libraries with undefined symbols to be built.
13810 allow_undefined_flag=$lt_allow_undefined_flag
13812 # Flag that enforces no undefined symbols.
13813 no_undefined_flag=$lt_no_undefined_flag
13815 # Flag to hardcode \$libdir into a binary during linking.
13816 # This must work even if \$libdir does not exist
13817 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13819 # If ld is used when linking, flag to hardcode \$libdir into a binary
13820 # during linking. This must work even if \$libdir does not exist.
13821 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13823 # Whether we need a single "-rpath" flag with a separated argument.
13824 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13826 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13827 # DIR into the resulting binary.
13828 hardcode_direct=$hardcode_direct
13830 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13831 # DIR into the resulting binary and the resulting library dependency is
13832 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13833 # library is relocated.
13834 hardcode_direct_absolute=$hardcode_direct_absolute
13836 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13837 # into the resulting binary.
13838 hardcode_minus_L=$hardcode_minus_L
13840 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13841 # into the resulting binary.
13842 hardcode_shlibpath_var=$hardcode_shlibpath_var
13844 # Set to "yes" if building a shared library automatically hardcodes DIR
13845 # into the library and all subsequent libraries and executables linked
13846 # against it.
13847 hardcode_automatic=$hardcode_automatic
13849 # Set to yes if linker adds runtime paths of dependent libraries
13850 # to runtime path list.
13851 inherit_rpath=$inherit_rpath
13853 # Whether libtool must link a program against all its dependency libraries.
13854 link_all_deplibs=$link_all_deplibs
13856 # Fix the shell variable \$srcfile for the compiler.
13857 fix_srcfile_path=$lt_fix_srcfile_path
13859 # Set to "yes" if exported symbols are required.
13860 always_export_symbols=$always_export_symbols
13862 # The commands to list exported symbols.
13863 export_symbols_cmds=$lt_export_symbols_cmds
13865 # Symbols that should not be listed in the preloaded symbols.
13866 exclude_expsyms=$lt_exclude_expsyms
13868 # Symbols that must always be exported.
13869 include_expsyms=$lt_include_expsyms
13871 # Commands necessary for linking programs (against libraries) with templates.
13872 prelink_cmds=$lt_prelink_cmds
13874 # Specify filename containing input files.
13875 file_list_spec=$lt_file_list_spec
13877 # How to hardcode a shared library path into an executable.
13878 hardcode_action=$hardcode_action
13880 # ### END LIBTOOL CONFIG
13882 _LT_EOF
13884 case $host_os in
13885 aix3*)
13886 cat <<\_LT_EOF >> "$cfgfile"
13887 # AIX sometimes has problems with the GCC collect2 program. For some
13888 # reason, if we set the COLLECT_NAMES environment variable, the problems
13889 # vanish in a puff of smoke.
13890 if test "X${COLLECT_NAMES+set}" != Xset; then
13891 COLLECT_NAMES=
13892 export COLLECT_NAMES
13894 _LT_EOF
13896 esac
13899 ltmain="$ac_aux_dir/ltmain.sh"
13902 # We use sed instead of cat because bash on DJGPP gets confused if
13903 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13904 # text mode, it properly converts lines to CR/LF. This bash problem
13905 # is reportedly fixed, but why not run on old versions too?
13906 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13907 || (rm -f "$cfgfile"; exit 1)
13909 case $xsi_shell in
13910 yes)
13911 cat << \_LT_EOF >> "$cfgfile"
13913 # func_dirname file append nondir_replacement
13914 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13915 # otherwise set result to NONDIR_REPLACEMENT.
13916 func_dirname ()
13918 case ${1} in
13919 */*) func_dirname_result="${1%/*}${2}" ;;
13920 * ) func_dirname_result="${3}" ;;
13921 esac
13924 # func_basename file
13925 func_basename ()
13927 func_basename_result="${1##*/}"
13930 # func_dirname_and_basename file append nondir_replacement
13931 # perform func_basename and func_dirname in a single function
13932 # call:
13933 # dirname: Compute the dirname of FILE. If nonempty,
13934 # add APPEND to the result, otherwise set result
13935 # to NONDIR_REPLACEMENT.
13936 # value returned in "$func_dirname_result"
13937 # basename: Compute filename of FILE.
13938 # value retuned in "$func_basename_result"
13939 # Implementation must be kept synchronized with func_dirname
13940 # and func_basename. For efficiency, we do not delegate to
13941 # those functions but instead duplicate the functionality here.
13942 func_dirname_and_basename ()
13944 case ${1} in
13945 */*) func_dirname_result="${1%/*}${2}" ;;
13946 * ) func_dirname_result="${3}" ;;
13947 esac
13948 func_basename_result="${1##*/}"
13951 # func_stripname prefix suffix name
13952 # strip PREFIX and SUFFIX off of NAME.
13953 # PREFIX and SUFFIX must not contain globbing or regex special
13954 # characters, hashes, percent signs, but SUFFIX may contain a leading
13955 # dot (in which case that matches only a dot).
13956 func_stripname ()
13958 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13959 # positional parameters, so assign one to ordinary parameter first.
13960 func_stripname_result=${3}
13961 func_stripname_result=${func_stripname_result#"${1}"}
13962 func_stripname_result=${func_stripname_result%"${2}"}
13965 # func_opt_split
13966 func_opt_split ()
13968 func_opt_split_opt=${1%%=*}
13969 func_opt_split_arg=${1#*=}
13972 # func_lo2o object
13973 func_lo2o ()
13975 case ${1} in
13976 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13977 *) func_lo2o_result=${1} ;;
13978 esac
13981 # func_xform libobj-or-source
13982 func_xform ()
13984 func_xform_result=${1%.*}.lo
13987 # func_arith arithmetic-term...
13988 func_arith ()
13990 func_arith_result=$(( $* ))
13993 # func_len string
13994 # STRING may not start with a hyphen.
13995 func_len ()
13997 func_len_result=${#1}
14000 _LT_EOF
14002 *) # Bourne compatible functions.
14003 cat << \_LT_EOF >> "$cfgfile"
14005 # func_dirname file append nondir_replacement
14006 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14007 # otherwise set result to NONDIR_REPLACEMENT.
14008 func_dirname ()
14010 # Extract subdirectory from the argument.
14011 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14012 if test "X$func_dirname_result" = "X${1}"; then
14013 func_dirname_result="${3}"
14014 else
14015 func_dirname_result="$func_dirname_result${2}"
14019 # func_basename file
14020 func_basename ()
14022 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14026 # func_stripname prefix suffix name
14027 # strip PREFIX and SUFFIX off of NAME.
14028 # PREFIX and SUFFIX must not contain globbing or regex special
14029 # characters, hashes, percent signs, but SUFFIX may contain a leading
14030 # dot (in which case that matches only a dot).
14031 # func_strip_suffix prefix name
14032 func_stripname ()
14034 case ${2} in
14035 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14036 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14037 esac
14040 # sed scripts:
14041 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14042 my_sed_long_arg='1s/^-[^=]*=//'
14044 # func_opt_split
14045 func_opt_split ()
14047 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14048 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14051 # func_lo2o object
14052 func_lo2o ()
14054 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14057 # func_xform libobj-or-source
14058 func_xform ()
14060 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14063 # func_arith arithmetic-term...
14064 func_arith ()
14066 func_arith_result=`expr "$@"`
14069 # func_len string
14070 # STRING may not start with a hyphen.
14071 func_len ()
14073 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14076 _LT_EOF
14077 esac
14079 case $lt_shell_append in
14080 yes)
14081 cat << \_LT_EOF >> "$cfgfile"
14083 # func_append var value
14084 # Append VALUE to the end of shell variable VAR.
14085 func_append ()
14087 eval "$1+=\$2"
14089 _LT_EOF
14092 cat << \_LT_EOF >> "$cfgfile"
14094 # func_append var value
14095 # Append VALUE to the end of shell variable VAR.
14096 func_append ()
14098 eval "$1=\$$1\$2"
14101 _LT_EOF
14103 esac
14106 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14107 || (rm -f "$cfgfile"; exit 1)
14109 mv -f "$cfgfile" "$ofile" ||
14110 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14111 chmod +x "$ofile"
14115 esac
14116 done # for ac_tag
14119 as_fn_exit 0
14120 _ACEOF
14121 ac_clean_files=$ac_clean_files_save
14123 test $ac_write_fail = 0 ||
14124 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14127 # configure is writing to config.log, and then calls config.status.
14128 # config.status does its own redirection, appending to config.log.
14129 # Unfortunately, on DOS this fails, as config.log is still kept open
14130 # by configure, so config.status won't be able to write to it; its
14131 # output is simply discarded. So we exec the FD to /dev/null,
14132 # effectively closing config.log, so it can be properly (re)opened and
14133 # appended to by config.status. When coming back to configure, we
14134 # need to make the FD available again.
14135 if test "$no_create" != yes; then
14136 ac_cs_success=:
14137 ac_config_status_args=
14138 test "$silent" = yes &&
14139 ac_config_status_args="$ac_config_status_args --quiet"
14140 exec 5>/dev/null
14141 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14142 exec 5>>config.log
14143 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14144 # would make configure fail if this is the last instruction.
14145 $ac_cs_success || as_fn_exit 1
14147 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14149 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}