[Ada] Implement tiered support for floating-point input operations
[official-gcc.git] / libffi / configure
blob2c0ba177d402f5863b4b8ee9f3f3119baa3a1485
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libffi 3.99999.
5 # Report bugs to <http://github.com/atgreen/libffi/issues>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://github.com/atgreen/libffi/issues about your
279 $0: system, including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
283 exit 1
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
301 { eval $1=; unset $1;}
303 as_unset=as_fn_unset
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
310 return $1
311 } # as_fn_set_status
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
354 /^X\(\/\/\)$/{
355 s//\1/
358 /^X\(\/\).*/{
359 s//\1/
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369 } # as_fn_mkdir_p
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
387 eval $1+=\$2
389 else
390 as_fn_append ()
392 eval $1=\$$1\$2
394 fi # as_fn_append
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
404 as_val=$(( $* ))
406 else
407 as_fn_arith ()
409 as_val=`expr "$@" || test $? -eq 1`
411 fi # as_fn_arith
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
458 /^X\/\(\/\/\)$/{
459 s//\1/
462 /^X\/\(\/\).*/{
463 s//\1/
466 s/.*/./; q'`
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
489 :lineno
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
521 ECHO_N='-n';;
522 esac
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
545 else
546 as_ln_s='cp -pR'
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579 # Initializations.
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
590 # Identity of this package.
591 PACKAGE_NAME='libffi'
592 PACKAGE_TARNAME='libffi'
593 PACKAGE_VERSION='3.99999'
594 PACKAGE_STRING='libffi 3.99999'
595 PACKAGE_BUGREPORT='http://github.com/atgreen/libffi/issues'
596 PACKAGE_URL=''
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 get_gcc_base_ver
639 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE
640 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE
641 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE
642 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE
643 LIBAT_BUILD_VERSIONED_SHLIB_FALSE
644 LIBAT_BUILD_VERSIONED_SHLIB_TRUE
645 OPT_LDFLAGS
646 SECTION_LDFLAGS
647 toolexeclibdir
648 toolexecdir
649 FFI_DEBUG_FALSE
650 FFI_DEBUG_TRUE
651 TARGET_OBJ
652 TARGETDIR
653 TARGET
654 FFI_EXEC_TRAMPOLINE_TABLE
655 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
656 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
657 HAVE_LONG_DOUBLE_VARIANT
658 HAVE_LONG_DOUBLE
659 ALLOCA
660 AM_LTLDFLAGS
661 AM_RUNTESTFLAGS
662 TESTSUBDIR_FALSE
663 TESTSUBDIR_TRUE
664 MAINT
665 MAINTAINER_MODE_FALSE
666 MAINTAINER_MODE_TRUE
667 CXXCPP
669 OTOOL64
670 OTOOL
671 LIPO
672 NMEDIT
673 DSYMUTIL
674 RANLIB
676 OBJDUMP
677 LN_S
679 ac_ct_DUMPBIN
680 DUMPBIN
682 FGREP
683 EGREP
684 GREP
686 LIBTOOL
687 am__fastdepCCAS_FALSE
688 am__fastdepCCAS_TRUE
689 CCASDEPMODE
690 CCASFLAGS
691 CCAS
692 am__fastdepCXX_FALSE
693 am__fastdepCXX_TRUE
694 CXXDEPMODE
695 ac_ct_CXX
696 CXXFLAGS
698 am__fastdepCC_FALSE
699 am__fastdepCC_TRUE
700 CCDEPMODE
701 am__nodep
702 AMDEPBACKSLASH
703 AMDEP_FALSE
704 AMDEP_TRUE
705 am__quote
706 am__include
707 DEPDIR
708 OBJEXT
709 EXEEXT
710 ac_ct_CC
711 CPPFLAGS
712 LDFLAGS
713 CFLAGS
715 GENINSRC_FALSE
716 GENINSRC_TRUE
717 BUILD_INFO_FALSE
718 BUILD_INFO_TRUE
719 AM_BACKSLASH
720 AM_DEFAULT_VERBOSITY
721 AM_DEFAULT_V
722 AM_V
723 am__untar
724 am__tar
725 AMTAR
726 am__leading_dot
727 SET_MAKE
729 mkdir_p
730 MKDIR_P
731 INSTALL_STRIP_PROGRAM
732 STRIP
733 install_sh
734 MAKEINFO
735 AUTOHEADER
736 AUTOMAKE
737 AUTOCONF
738 ACLOCAL
739 VERSION
740 PACKAGE
741 CYGPATH_W
742 am__isrc
743 INSTALL_DATA
744 INSTALL_SCRIPT
745 INSTALL_PROGRAM
746 target_os
747 target_vendor
748 target_cpu
749 target
750 host_os
751 host_vendor
752 host_cpu
753 host
754 build_os
755 build_vendor
756 build_cpu
757 build
758 multi_basedir
759 target_alias
760 host_alias
761 build_alias
762 LIBS
763 ECHO_T
764 ECHO_N
765 ECHO_C
766 DEFS
767 mandir
768 localedir
769 libdir
770 psdir
771 pdfdir
772 dvidir
773 htmldir
774 infodir
775 docdir
776 oldincludedir
777 includedir
778 localstatedir
779 sharedstatedir
780 sysconfdir
781 datadir
782 datarootdir
783 libexecdir
784 sbindir
785 bindir
786 program_transform_name
787 prefix
788 exec_prefix
789 PACKAGE_URL
790 PACKAGE_BUGREPORT
791 PACKAGE_STRING
792 PACKAGE_VERSION
793 PACKAGE_TARNAME
794 PACKAGE_NAME
795 PATH_SEPARATOR
796 SHELL'
797 ac_subst_files=''
798 ac_user_opts='
799 enable_option_checking
800 enable_multilib
801 enable_silent_rules
802 enable_generated_files_in_srcdir
803 enable_dependency_tracking
804 enable_shared
805 enable_static
806 with_pic
807 enable_fast_install
808 with_gnu_ld
809 enable_libtool_lock
810 enable_maintainer_mode
811 enable_pax_emutramp
812 enable_debug
813 enable_structs
814 enable_raw_api
815 enable_purify_safety
816 with_toolexeclibdir
817 enable_symvers
818 with_gcc_major_version_only
820 ac_precious_vars='build_alias
821 host_alias
822 target_alias
823 CCAS
824 CCASFLAGS
826 CPPFLAGS
827 CXXCPP'
830 # Initialize some variables set by options.
831 ac_init_help=
832 ac_init_version=false
833 ac_unrecognized_opts=
834 ac_unrecognized_sep=
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
837 cache_file=/dev/null
838 exec_prefix=NONE
839 no_create=
840 no_recursion=
841 prefix=NONE
842 program_prefix=NONE
843 program_suffix=NONE
844 program_transform_name=s,x,x,
845 silent=
846 site=
847 srcdir=
848 verbose=
849 x_includes=NONE
850 x_libraries=NONE
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir='${exec_prefix}/bin'
859 sbindir='${exec_prefix}/sbin'
860 libexecdir='${exec_prefix}/libexec'
861 datarootdir='${prefix}/share'
862 datadir='${datarootdir}'
863 sysconfdir='${prefix}/etc'
864 sharedstatedir='${prefix}/com'
865 localstatedir='${prefix}/var'
866 includedir='${prefix}/include'
867 oldincludedir='/usr/include'
868 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869 infodir='${datarootdir}/info'
870 htmldir='${docdir}'
871 dvidir='${docdir}'
872 pdfdir='${docdir}'
873 psdir='${docdir}'
874 libdir='${exec_prefix}/lib'
875 localedir='${datarootdir}/locale'
876 mandir='${datarootdir}/man'
878 ac_prev=
879 ac_dashdash=
880 for ac_option
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
884 eval $ac_prev=\$ac_option
885 ac_prev=
886 continue
889 case $ac_option in
890 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891 *=) ac_optarg= ;;
892 *) ac_optarg=yes ;;
893 esac
895 # Accept the important Cygnus configure options, so we can diagnose typos.
897 case $ac_dashdash$ac_option in
899 ac_dashdash=yes ;;
901 -bindir | --bindir | --bindi | --bind | --bin | --bi)
902 ac_prev=bindir ;;
903 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
904 bindir=$ac_optarg ;;
906 -build | --build | --buil | --bui | --bu)
907 ac_prev=build_alias ;;
908 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909 build_alias=$ac_optarg ;;
911 -cache-file | --cache-file | --cache-fil | --cache-fi \
912 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913 ac_prev=cache_file ;;
914 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916 cache_file=$ac_optarg ;;
918 --config-cache | -C)
919 cache_file=config.cache ;;
921 -datadir | --datadir | --datadi | --datad)
922 ac_prev=datadir ;;
923 -datadir=* | --datadir=* | --datadi=* | --datad=*)
924 datadir=$ac_optarg ;;
926 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927 | --dataroo | --dataro | --datar)
928 ac_prev=datarootdir ;;
929 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931 datarootdir=$ac_optarg ;;
933 -disable-* | --disable-*)
934 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937 as_fn_error $? "invalid feature name: $ac_useropt"
938 ac_useropt_orig=$ac_useropt
939 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940 case $ac_user_opts in
942 "enable_$ac_useropt"
943 "*) ;;
944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
945 ac_unrecognized_sep=', ';;
946 esac
947 eval enable_$ac_useropt=no ;;
949 -docdir | --docdir | --docdi | --doc | --do)
950 ac_prev=docdir ;;
951 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
952 docdir=$ac_optarg ;;
954 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
955 ac_prev=dvidir ;;
956 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
957 dvidir=$ac_optarg ;;
959 -enable-* | --enable-*)
960 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963 as_fn_error $? "invalid feature name: $ac_useropt"
964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
968 "enable_$ac_useropt"
969 "*) ;;
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
972 esac
973 eval enable_$ac_useropt=\$ac_optarg ;;
975 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
976 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
977 | --exec | --exe | --ex)
978 ac_prev=exec_prefix ;;
979 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
980 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
981 | --exec=* | --exe=* | --ex=*)
982 exec_prefix=$ac_optarg ;;
984 -gas | --gas | --ga | --g)
985 # Obsolete; use --with-gas.
986 with_gas=yes ;;
988 -help | --help | --hel | --he | -h)
989 ac_init_help=long ;;
990 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
991 ac_init_help=recursive ;;
992 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
993 ac_init_help=short ;;
995 -host | --host | --hos | --ho)
996 ac_prev=host_alias ;;
997 -host=* | --host=* | --hos=* | --ho=*)
998 host_alias=$ac_optarg ;;
1000 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1001 ac_prev=htmldir ;;
1002 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1003 | --ht=*)
1004 htmldir=$ac_optarg ;;
1006 -includedir | --includedir | --includedi | --included | --include \
1007 | --includ | --inclu | --incl | --inc)
1008 ac_prev=includedir ;;
1009 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1010 | --includ=* | --inclu=* | --incl=* | --inc=*)
1011 includedir=$ac_optarg ;;
1013 -infodir | --infodir | --infodi | --infod | --info | --inf)
1014 ac_prev=infodir ;;
1015 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1016 infodir=$ac_optarg ;;
1018 -libdir | --libdir | --libdi | --libd)
1019 ac_prev=libdir ;;
1020 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1021 libdir=$ac_optarg ;;
1023 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1024 | --libexe | --libex | --libe)
1025 ac_prev=libexecdir ;;
1026 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1027 | --libexe=* | --libex=* | --libe=*)
1028 libexecdir=$ac_optarg ;;
1030 -localedir | --localedir | --localedi | --localed | --locale)
1031 ac_prev=localedir ;;
1032 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1033 localedir=$ac_optarg ;;
1035 -localstatedir | --localstatedir | --localstatedi | --localstated \
1036 | --localstate | --localstat | --localsta | --localst | --locals)
1037 ac_prev=localstatedir ;;
1038 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1039 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1040 localstatedir=$ac_optarg ;;
1042 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1043 ac_prev=mandir ;;
1044 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1045 mandir=$ac_optarg ;;
1047 -nfp | --nfp | --nf)
1048 # Obsolete; use --without-fp.
1049 with_fp=no ;;
1051 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1052 | --no-cr | --no-c | -n)
1053 no_create=yes ;;
1055 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1056 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1057 no_recursion=yes ;;
1059 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1060 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1061 | --oldin | --oldi | --old | --ol | --o)
1062 ac_prev=oldincludedir ;;
1063 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1064 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1065 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1066 oldincludedir=$ac_optarg ;;
1068 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1069 ac_prev=prefix ;;
1070 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1071 prefix=$ac_optarg ;;
1073 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1074 | --program-pre | --program-pr | --program-p)
1075 ac_prev=program_prefix ;;
1076 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1077 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1078 program_prefix=$ac_optarg ;;
1080 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1081 | --program-suf | --program-su | --program-s)
1082 ac_prev=program_suffix ;;
1083 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1084 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1085 program_suffix=$ac_optarg ;;
1087 -program-transform-name | --program-transform-name \
1088 | --program-transform-nam | --program-transform-na \
1089 | --program-transform-n | --program-transform- \
1090 | --program-transform | --program-transfor \
1091 | --program-transfo | --program-transf \
1092 | --program-trans | --program-tran \
1093 | --progr-tra | --program-tr | --program-t)
1094 ac_prev=program_transform_name ;;
1095 -program-transform-name=* | --program-transform-name=* \
1096 | --program-transform-nam=* | --program-transform-na=* \
1097 | --program-transform-n=* | --program-transform-=* \
1098 | --program-transform=* | --program-transfor=* \
1099 | --program-transfo=* | --program-transf=* \
1100 | --program-trans=* | --program-tran=* \
1101 | --progr-tra=* | --program-tr=* | --program-t=*)
1102 program_transform_name=$ac_optarg ;;
1104 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1105 ac_prev=pdfdir ;;
1106 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1107 pdfdir=$ac_optarg ;;
1109 -psdir | --psdir | --psdi | --psd | --ps)
1110 ac_prev=psdir ;;
1111 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1112 psdir=$ac_optarg ;;
1114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1115 | -silent | --silent | --silen | --sile | --sil)
1116 silent=yes ;;
1118 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1119 ac_prev=sbindir ;;
1120 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1121 | --sbi=* | --sb=*)
1122 sbindir=$ac_optarg ;;
1124 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1125 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1126 | --sharedst | --shareds | --shared | --share | --shar \
1127 | --sha | --sh)
1128 ac_prev=sharedstatedir ;;
1129 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1130 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1131 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1132 | --sha=* | --sh=*)
1133 sharedstatedir=$ac_optarg ;;
1135 -site | --site | --sit)
1136 ac_prev=site ;;
1137 -site=* | --site=* | --sit=*)
1138 site=$ac_optarg ;;
1140 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1141 ac_prev=srcdir ;;
1142 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1143 srcdir=$ac_optarg ;;
1145 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1146 | --syscon | --sysco | --sysc | --sys | --sy)
1147 ac_prev=sysconfdir ;;
1148 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1149 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1150 sysconfdir=$ac_optarg ;;
1152 -target | --target | --targe | --targ | --tar | --ta | --t)
1153 ac_prev=target_alias ;;
1154 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1155 target_alias=$ac_optarg ;;
1157 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1158 verbose=yes ;;
1160 -version | --version | --versio | --versi | --vers | -V)
1161 ac_init_version=: ;;
1163 -with-* | --with-*)
1164 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error $? "invalid package name: $ac_useropt"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1172 "with_$ac_useropt"
1173 "*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1176 esac
1177 eval with_$ac_useropt=\$ac_optarg ;;
1179 -without-* | --without-*)
1180 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error $? "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1188 "with_$ac_useropt"
1189 "*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1192 esac
1193 eval with_$ac_useropt=no ;;
1195 --x)
1196 # Obsolete; use --with-x.
1197 with_x=yes ;;
1199 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1200 | --x-incl | --x-inc | --x-in | --x-i)
1201 ac_prev=x_includes ;;
1202 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1203 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1204 x_includes=$ac_optarg ;;
1206 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1207 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1208 ac_prev=x_libraries ;;
1209 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1210 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1211 x_libraries=$ac_optarg ;;
1213 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1214 Try \`$0 --help' for more information"
1217 *=*)
1218 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1219 # Reject names that are not valid shell variable names.
1220 case $ac_envvar in #(
1221 '' | [0-9]* | *[!_$as_cr_alnum]* )
1222 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1223 esac
1224 eval $ac_envvar=\$ac_optarg
1225 export $ac_envvar ;;
1228 # FIXME: should be removed in autoconf 3.0.
1229 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1230 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1232 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1235 esac
1236 done
1238 if test -n "$ac_prev"; then
1239 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1240 as_fn_error $? "missing argument to $ac_option"
1243 if test -n "$ac_unrecognized_opts"; then
1244 case $enable_option_checking in
1245 no) ;;
1246 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1247 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1248 esac
1251 # Check all directory arguments for consistency.
1252 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1253 datadir sysconfdir sharedstatedir localstatedir includedir \
1254 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1255 libdir localedir mandir
1257 eval ac_val=\$$ac_var
1258 # Remove trailing slashes.
1259 case $ac_val in
1260 */ )
1261 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1262 eval $ac_var=\$ac_val;;
1263 esac
1264 # Be sure to have absolute directory names.
1265 case $ac_val in
1266 [\\/$]* | ?:[\\/]* ) continue;;
1267 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1268 esac
1269 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1270 done
1272 # There might be people who depend on the old broken behavior: `$host'
1273 # used to hold the argument of --host etc.
1274 # FIXME: To remove some day.
1275 build=$build_alias
1276 host=$host_alias
1277 target=$target_alias
1279 # FIXME: To remove some day.
1280 if test "x$host_alias" != x; then
1281 if test "x$build_alias" = x; then
1282 cross_compiling=maybe
1283 elif test "x$build_alias" != "x$host_alias"; then
1284 cross_compiling=yes
1288 ac_tool_prefix=
1289 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291 test "$silent" = yes && exec 6>/dev/null
1294 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1295 ac_ls_di=`ls -di .` &&
1296 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1297 as_fn_error $? "working directory cannot be determined"
1298 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1299 as_fn_error $? "pwd does not report name of working directory"
1302 # Find the source files, if location was not specified.
1303 if test -z "$srcdir"; then
1304 ac_srcdir_defaulted=yes
1305 # Try the directory containing this script, then the parent directory.
1306 ac_confdir=`$as_dirname -- "$as_myself" ||
1307 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1308 X"$as_myself" : 'X\(//\)[^/]' \| \
1309 X"$as_myself" : 'X\(//\)$' \| \
1310 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1311 $as_echo X"$as_myself" |
1312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1313 s//\1/
1316 /^X\(\/\/\)[^/].*/{
1317 s//\1/
1320 /^X\(\/\/\)$/{
1321 s//\1/
1324 /^X\(\/\).*/{
1325 s//\1/
1328 s/.*/./; q'`
1329 srcdir=$ac_confdir
1330 if test ! -r "$srcdir/$ac_unique_file"; then
1331 srcdir=..
1333 else
1334 ac_srcdir_defaulted=no
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1337 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1338 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1340 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1341 ac_abs_confdir=`(
1342 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1343 pwd)`
1344 # When building in place, set srcdir=.
1345 if test "$ac_abs_confdir" = "$ac_pwd"; then
1346 srcdir=.
1348 # Remove unnecessary trailing slashes from srcdir.
1349 # Double slashes in file names in object file debugging info
1350 # mess up M-x gdb in Emacs.
1351 case $srcdir in
1352 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1353 esac
1354 for ac_var in $ac_precious_vars; do
1355 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1356 eval ac_env_${ac_var}_value=\$${ac_var}
1357 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1359 done
1362 # Report the --help message.
1364 if test "$ac_init_help" = "long"; then
1365 # Omit some internal or obsolete options to make the list less imposing.
1366 # This message is too long to be a string in the A/UX 3.1 sh.
1367 cat <<_ACEOF
1368 \`configure' configures libffi 3.99999 to adapt to many kinds of systems.
1370 Usage: $0 [OPTION]... [VAR=VALUE]...
1372 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1373 VAR=VALUE. See below for descriptions of some of the useful variables.
1375 Defaults for the options are specified in brackets.
1377 Configuration:
1378 -h, --help display this help and exit
1379 --help=short display options specific to this package
1380 --help=recursive display the short help of all the included packages
1381 -V, --version display version information and exit
1382 -q, --quiet, --silent do not print \`checking ...' messages
1383 --cache-file=FILE cache test results in FILE [disabled]
1384 -C, --config-cache alias for \`--cache-file=config.cache'
1385 -n, --no-create do not create output files
1386 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1388 Installation directories:
1389 --prefix=PREFIX install architecture-independent files in PREFIX
1390 [$ac_default_prefix]
1391 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1392 [PREFIX]
1394 By default, \`make install' will install all the files in
1395 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1396 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1397 for instance \`--prefix=\$HOME'.
1399 For better control, use the options below.
1401 Fine tuning of the installation directories:
1402 --bindir=DIR user executables [EPREFIX/bin]
1403 --sbindir=DIR system admin executables [EPREFIX/sbin]
1404 --libexecdir=DIR program executables [EPREFIX/libexec]
1405 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1406 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1407 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1408 --libdir=DIR object code libraries [EPREFIX/lib]
1409 --includedir=DIR C header files [PREFIX/include]
1410 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1411 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1412 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1413 --infodir=DIR info documentation [DATAROOTDIR/info]
1414 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1415 --mandir=DIR man documentation [DATAROOTDIR/man]
1416 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1417 --htmldir=DIR html documentation [DOCDIR]
1418 --dvidir=DIR dvi documentation [DOCDIR]
1419 --pdfdir=DIR pdf documentation [DOCDIR]
1420 --psdir=DIR ps documentation [DOCDIR]
1421 _ACEOF
1423 cat <<\_ACEOF
1425 Program names:
1426 --program-prefix=PREFIX prepend PREFIX to installed program names
1427 --program-suffix=SUFFIX append SUFFIX to installed program names
1428 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1430 System types:
1431 --build=BUILD configure for building on BUILD [guessed]
1432 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1433 --target=TARGET configure for building compilers for TARGET [HOST]
1434 _ACEOF
1437 if test -n "$ac_init_help"; then
1438 case $ac_init_help in
1439 short | recursive ) echo "Configuration of libffi 3.99999:";;
1440 esac
1441 cat <<\_ACEOF
1443 Optional Features:
1444 --disable-option-checking ignore unrecognized --enable/--with options
1445 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1446 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1447 --enable-multilib build many library versions (default)
1448 --enable-silent-rules less verbose build output (undo: "make V=1")
1449 --disable-silent-rules verbose build output (undo: "make V=0")
1450 --enable-generated-files-in-srcdir
1451 put copies of generated files in source dir intended
1452 for creating source tarballs for users without
1453 texinfo bison or flex
1454 --enable-dependency-tracking
1455 do not reject slow dependency extractors
1456 --disable-dependency-tracking
1457 speeds up one-time build
1458 --enable-shared[=PKGS] build shared libraries [default=yes]
1459 --enable-static[=PKGS] build static libraries [default=yes]
1460 --enable-fast-install[=PKGS]
1461 optimize for fast installation [default=yes]
1462 --disable-libtool-lock avoid locking (might break parallel builds)
1463 --enable-maintainer-mode
1464 enable make rules and dependencies not useful (and
1465 sometimes confusing) to the casual installer
1466 --enable-pax_emutramp enable pax emulated trampolines, for we can't use PROT_EXEC
1467 --enable-debug debugging mode
1468 --disable-structs omit code for struct support
1469 --disable-raw-api make the raw api unavailable
1470 --enable-purify-safety purify-safe mode
1471 --enable-symvers=STYLE enables symbol versioning of the shared library
1472 [default=yes]
1474 Optional Packages:
1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1477 --with-pic try to use only PIC/non-PIC objects [default=use
1478 both]
1479 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1480 --with-toolexeclibdir=DIR
1481 install libraries built with a cross compiler within
1483 --with-gcc-major-version-only
1484 use only GCC major number in filesystem paths
1486 Some influential environment variables:
1487 CC C compiler command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1490 nonstandard directory <lib dir>
1491 LIBS libraries to pass to the linker, e.g. -l<library>
1492 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1493 you have headers in a nonstandard directory <include dir>
1494 CXX C++ compiler command
1495 CXXFLAGS C++ compiler flags
1496 CCAS assembler compiler command (defaults to CC)
1497 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1498 CPP C preprocessor
1499 CXXCPP C++ preprocessor
1501 Use these variables to override the choices made by `configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1504 Report bugs to <http://github.com/atgreen/libffi/issues>.
1505 _ACEOF
1506 ac_status=$?
1509 if test "$ac_init_help" = "recursive"; then
1510 # If there are subdirs, report their specific --help.
1511 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1512 test -d "$ac_dir" ||
1513 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1514 continue
1515 ac_builddir=.
1517 case "$ac_dir" in
1518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1521 # A ".." for each directory in $ac_dir_suffix.
1522 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1523 case $ac_top_builddir_sub in
1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526 esac ;;
1527 esac
1528 ac_abs_top_builddir=$ac_pwd
1529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530 # for backward compatibility:
1531 ac_top_builddir=$ac_top_build_prefix
1533 case $srcdir in
1534 .) # We are building in place.
1535 ac_srcdir=.
1536 ac_top_srcdir=$ac_top_builddir_sub
1537 ac_abs_top_srcdir=$ac_pwd ;;
1538 [\\/]* | ?:[\\/]* ) # Absolute name.
1539 ac_srcdir=$srcdir$ac_dir_suffix;
1540 ac_top_srcdir=$srcdir
1541 ac_abs_top_srcdir=$srcdir ;;
1542 *) # Relative name.
1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544 ac_top_srcdir=$ac_top_build_prefix$srcdir
1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546 esac
1547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549 cd "$ac_dir" || { ac_status=$?; continue; }
1550 # Check for guested configure.
1551 if test -f "$ac_srcdir/configure.gnu"; then
1552 echo &&
1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554 elif test -f "$ac_srcdir/configure"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure" --help=recursive
1557 else
1558 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559 fi || ac_status=$?
1560 cd "$ac_pwd" || { ac_status=$?; break; }
1561 done
1564 test -n "$ac_init_help" && exit $ac_status
1565 if $ac_init_version; then
1566 cat <<\_ACEOF
1567 libffi configure 3.99999
1568 generated by GNU Autoconf 2.69
1570 Copyright (C) 2012 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1573 _ACEOF
1574 exit
1577 ## ------------------------ ##
1578 ## Autoconf initialization. ##
1579 ## ------------------------ ##
1581 # ac_fn_c_try_compile LINENO
1582 # --------------------------
1583 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_compile ()
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 rm -f conftest.$ac_objext
1588 if { { ac_try="$ac_compile"
1589 case "(($ac_try" in
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1592 esac
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_compile") 2>conftest.err
1596 ac_status=$?
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } && {
1604 test -z "$ac_c_werror_flag" ||
1605 test ! -s conftest.err
1606 } && test -s conftest.$ac_objext; then :
1607 ac_retval=0
1608 else
1609 $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1612 ac_retval=1
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 as_fn_set_status $ac_retval
1617 } # ac_fn_c_try_compile
1619 # ac_fn_cxx_try_compile LINENO
1620 # ----------------------------
1621 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1622 ac_fn_cxx_try_compile ()
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 rm -f conftest.$ac_objext
1626 if { { ac_try="$ac_compile"
1627 case "(($ac_try" in
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1630 esac
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_compile") 2>conftest.err
1634 ac_status=$?
1635 if test -s conftest.err; then
1636 grep -v '^ *+' conftest.err >conftest.er1
1637 cat conftest.er1 >&5
1638 mv -f conftest.er1 conftest.err
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && {
1642 test -z "$ac_cxx_werror_flag" ||
1643 test ! -s conftest.err
1644 } && test -s conftest.$ac_objext; then :
1645 ac_retval=0
1646 else
1647 $as_echo "$as_me: failed program was:" >&5
1648 sed 's/^/| /' conftest.$ac_ext >&5
1650 ac_retval=1
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653 as_fn_set_status $ac_retval
1655 } # ac_fn_cxx_try_compile
1657 # ac_fn_c_try_link LINENO
1658 # -----------------------
1659 # Try to link conftest.$ac_ext, and return whether this succeeded.
1660 ac_fn_c_try_link ()
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 rm -f conftest.$ac_objext conftest$ac_exeext
1664 if { { ac_try="$ac_link"
1665 case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_link") 2>conftest.err
1672 ac_status=$?
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && {
1680 test -z "$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 } && test -s conftest$ac_exeext && {
1683 test "$cross_compiling" = yes ||
1684 test -x conftest$ac_exeext
1685 }; then :
1686 ac_retval=0
1687 else
1688 $as_echo "$as_me: failed program was:" >&5
1689 sed 's/^/| /' conftest.$ac_ext >&5
1691 ac_retval=1
1693 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1694 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1695 # interfere with the next link command; also delete a directory that is
1696 # left behind by Apple's compiler. We do this before executing the actions.
1697 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699 as_fn_set_status $ac_retval
1701 } # ac_fn_c_try_link
1703 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1704 # -------------------------------------------------------
1705 # Tests whether HEADER exists and can be compiled using the include files in
1706 # INCLUDES, setting the cache variable VAR accordingly.
1707 ac_fn_c_check_header_compile ()
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if eval \${$3+:} false; then :
1713 $as_echo_n "(cached) " >&6
1714 else
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h. */
1718 #include <$2>
1719 _ACEOF
1720 if ac_fn_c_try_compile "$LINENO"; then :
1721 eval "$3=yes"
1722 else
1723 eval "$3=no"
1725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1727 eval ac_res=\$$3
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729 $as_echo "$ac_res" >&6; }
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 } # ac_fn_c_check_header_compile
1734 # ac_fn_c_try_cpp LINENO
1735 # ----------------------
1736 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1737 ac_fn_c_try_cpp ()
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 if { { ac_try="$ac_cpp conftest.$ac_ext"
1741 case "(($ac_try" in
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1744 esac
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1748 ac_status=$?
1749 if test -s conftest.err; then
1750 grep -v '^ *+' conftest.err >conftest.er1
1751 cat conftest.er1 >&5
1752 mv -f conftest.er1 conftest.err
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } > conftest.i && {
1756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1757 test ! -s conftest.err
1758 }; then :
1759 ac_retval=0
1760 else
1761 $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1764 ac_retval=1
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 as_fn_set_status $ac_retval
1769 } # ac_fn_c_try_cpp
1771 # ac_fn_c_try_run LINENO
1772 # ----------------------
1773 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1774 # that executables *can* be run.
1775 ac_fn_c_try_run ()
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 if { { ac_try="$ac_link"
1779 case "(($ac_try" in
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1782 esac
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_link") 2>&5
1786 ac_status=$?
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1789 { { case "(($ac_try" in
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1792 esac
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_try") 2>&5
1796 ac_status=$?
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; }; }; then :
1799 ac_retval=0
1800 else
1801 $as_echo "$as_me: program exited with status $ac_status" >&5
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1805 ac_retval=$ac_status
1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 as_fn_set_status $ac_retval
1811 } # ac_fn_c_try_run
1813 # ac_fn_c_check_func LINENO FUNC VAR
1814 # ----------------------------------
1815 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1816 ac_fn_c_check_func ()
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \${$3+:} false; then :
1822 $as_echo_n "(cached) " >&6
1823 else
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1826 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1828 #define $2 innocuous_$2
1830 /* System header to define __stub macros and hopefully few prototypes,
1831 which can conflict with char $2 (); below.
1832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1833 <limits.h> exists even on freestanding compilers. */
1835 #ifdef __STDC__
1836 # include <limits.h>
1837 #else
1838 # include <assert.h>
1839 #endif
1841 #undef $2
1843 /* Override any GCC internal prototype to avoid an error.
1844 Use char because int might match the return type of a GCC
1845 builtin and then its argument prototype would still apply. */
1846 #ifdef __cplusplus
1847 extern "C"
1848 #endif
1849 char $2 ();
1850 /* The GNU C library defines this for functions which it implements
1851 to always fail with ENOSYS. Some functions are actually named
1852 something starting with __ and the normal name is an alias. */
1853 #if defined __stub_$2 || defined __stub___$2
1854 choke me
1855 #endif
1858 main ()
1860 return $2 ();
1862 return 0;
1864 _ACEOF
1865 if ac_fn_c_try_link "$LINENO"; then :
1866 eval "$3=yes"
1867 else
1868 eval "$3=no"
1870 rm -f core conftest.err conftest.$ac_objext \
1871 conftest$ac_exeext conftest.$ac_ext
1873 eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878 } # ac_fn_c_check_func
1880 # ac_fn_cxx_try_cpp LINENO
1881 # ------------------------
1882 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1883 ac_fn_cxx_try_cpp ()
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 if { { ac_try="$ac_cpp conftest.$ac_ext"
1887 case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890 esac
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1894 ac_status=$?
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } > conftest.i && {
1902 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1903 test ! -s conftest.err
1904 }; then :
1905 ac_retval=0
1906 else
1907 $as_echo "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1910 ac_retval=1
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 as_fn_set_status $ac_retval
1915 } # ac_fn_cxx_try_cpp
1917 # ac_fn_cxx_try_link LINENO
1918 # -------------------------
1919 # Try to link conftest.$ac_ext, and return whether this succeeded.
1920 ac_fn_cxx_try_link ()
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 rm -f conftest.$ac_objext conftest$ac_exeext
1924 if { { ac_try="$ac_link"
1925 case "(($ac_try" in
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1928 esac
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_link") 2>conftest.err
1932 ac_status=$?
1933 if test -s conftest.err; then
1934 grep -v '^ *+' conftest.err >conftest.er1
1935 cat conftest.er1 >&5
1936 mv -f conftest.er1 conftest.err
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; } && {
1940 test -z "$ac_cxx_werror_flag" ||
1941 test ! -s conftest.err
1942 } && test -s conftest$ac_exeext && {
1943 test "$cross_compiling" = yes ||
1944 test -x conftest$ac_exeext
1945 }; then :
1946 ac_retval=0
1947 else
1948 $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1951 ac_retval=1
1953 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1954 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1955 # interfere with the next link command; also delete a directory that is
1956 # left behind by Apple's compiler. We do this before executing the actions.
1957 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 as_fn_set_status $ac_retval
1961 } # ac_fn_cxx_try_link
1963 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1964 # --------------------------------------------
1965 # Tries to find the compile-time value of EXPR in a program that includes
1966 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1967 # computed
1968 ac_fn_c_compute_int ()
1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971 if test "$cross_compiling" = yes; then
1972 # Depending upon the size, compute the lo and hi bounds.
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1977 main ()
1979 static int test_array [1 - 2 * !(($2) >= 0)];
1980 test_array [0] = 0;
1981 return test_array [0];
1984 return 0;
1986 _ACEOF
1987 if ac_fn_c_try_compile "$LINENO"; then :
1988 ac_lo=0 ac_mid=0
1989 while :; do
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1994 main ()
1996 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1997 test_array [0] = 0;
1998 return test_array [0];
2001 return 0;
2003 _ACEOF
2004 if ac_fn_c_try_compile "$LINENO"; then :
2005 ac_hi=$ac_mid; break
2006 else
2007 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2008 if test $ac_lo -le $ac_mid; then
2009 ac_lo= ac_hi=
2010 break
2012 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015 done
2016 else
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2021 main ()
2023 static int test_array [1 - 2 * !(($2) < 0)];
2024 test_array [0] = 0;
2025 return test_array [0];
2028 return 0;
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032 ac_hi=-1 ac_mid=-1
2033 while :; do
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2038 main ()
2040 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2041 test_array [0] = 0;
2042 return test_array [0];
2045 return 0;
2047 _ACEOF
2048 if ac_fn_c_try_compile "$LINENO"; then :
2049 ac_lo=$ac_mid; break
2050 else
2051 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2052 if test $ac_mid -le $ac_hi; then
2053 ac_lo= ac_hi=
2054 break
2056 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059 done
2060 else
2061 ac_lo= ac_hi=
2063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066 # Binary search between lo and hi bounds.
2067 while test "x$ac_lo" != "x$ac_hi"; do
2068 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2073 main ()
2075 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2076 test_array [0] = 0;
2077 return test_array [0];
2080 return 0;
2082 _ACEOF
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084 ac_hi=$ac_mid
2085 else
2086 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089 done
2090 case $ac_lo in #((
2091 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2092 '') ac_retval=1 ;;
2093 esac
2094 else
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2098 static long int longval () { return $2; }
2099 static unsigned long int ulongval () { return $2; }
2100 #include <stdio.h>
2101 #include <stdlib.h>
2103 main ()
2106 FILE *f = fopen ("conftest.val", "w");
2107 if (! f)
2108 return 1;
2109 if (($2) < 0)
2111 long int i = longval ();
2112 if (i != ($2))
2113 return 1;
2114 fprintf (f, "%ld", i);
2116 else
2118 unsigned long int i = ulongval ();
2119 if (i != ($2))
2120 return 1;
2121 fprintf (f, "%lu", i);
2123 /* Do not output a trailing newline, as this causes \r\n confusion
2124 on some platforms. */
2125 return ferror (f) || fclose (f) != 0;
2128 return 0;
2130 _ACEOF
2131 if ac_fn_c_try_run "$LINENO"; then :
2132 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2133 else
2134 ac_retval=1
2136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2137 conftest.$ac_objext conftest.beam conftest.$ac_ext
2138 rm -f conftest.val
2141 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2142 as_fn_set_status $ac_retval
2144 } # ac_fn_c_compute_int
2146 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2147 # -------------------------------------------------------
2148 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2149 # the include files in INCLUDES and setting the cache variable VAR
2150 # accordingly.
2151 ac_fn_c_check_header_mongrel ()
2153 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2154 if eval \${$3+:} false; then :
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2156 $as_echo_n "checking for $2... " >&6; }
2157 if eval \${$3+:} false; then :
2158 $as_echo_n "(cached) " >&6
2160 eval ac_res=\$$3
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162 $as_echo "$ac_res" >&6; }
2163 else
2164 # Is the header compilable?
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2166 $as_echo_n "checking $2 usability... " >&6; }
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2170 #include <$2>
2171 _ACEOF
2172 if ac_fn_c_try_compile "$LINENO"; then :
2173 ac_header_compiler=yes
2174 else
2175 ac_header_compiler=no
2177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2179 $as_echo "$ac_header_compiler" >&6; }
2181 # Is the header present?
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2183 $as_echo_n "checking $2 presence... " >&6; }
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2186 #include <$2>
2187 _ACEOF
2188 if ac_fn_c_try_cpp "$LINENO"; then :
2189 ac_header_preproc=yes
2190 else
2191 ac_header_preproc=no
2193 rm -f conftest.err conftest.i conftest.$ac_ext
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2195 $as_echo "$ac_header_preproc" >&6; }
2197 # So? What about this header?
2198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2199 yes:no: )
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2201 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2203 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2205 no:yes:* )
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2207 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2209 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2211 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2213 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2215 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2216 ( $as_echo "## ------------------------------------------------------ ##
2217 ## Report this to http://github.com/atgreen/libffi/issues ##
2218 ## ------------------------------------------------------ ##"
2219 ) | sed "s/^/$as_me: WARNING: /" >&2
2221 esac
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2223 $as_echo_n "checking for $2... " >&6; }
2224 if eval \${$3+:} false; then :
2225 $as_echo_n "(cached) " >&6
2226 else
2227 eval "$3=\$ac_header_compiler"
2229 eval ac_res=\$$3
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2231 $as_echo "$ac_res" >&6; }
2233 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2235 } # ac_fn_c_check_header_mongrel
2237 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2238 # -------------------------------------------
2239 # Tests whether TYPE exists after having included INCLUDES, setting cache
2240 # variable VAR accordingly.
2241 ac_fn_c_check_type ()
2243 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2245 $as_echo_n "checking for $2... " >&6; }
2246 if eval \${$3+:} false; then :
2247 $as_echo_n "(cached) " >&6
2248 else
2249 eval "$3=no"
2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h. */
2254 main ()
2256 if (sizeof ($2))
2257 return 0;
2259 return 0;
2261 _ACEOF
2262 if ac_fn_c_try_compile "$LINENO"; then :
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2267 main ()
2269 if (sizeof (($2)))
2270 return 0;
2272 return 0;
2274 _ACEOF
2275 if ac_fn_c_try_compile "$LINENO"; then :
2277 else
2278 eval "$3=yes"
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284 eval ac_res=\$$3
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2286 $as_echo "$ac_res" >&6; }
2287 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2289 } # ac_fn_c_check_type
2290 cat >config.log <<_ACEOF
2291 This file contains any messages produced by compilers while
2292 running configure, to aid debugging if configure makes a mistake.
2294 It was created by libffi $as_me 3.99999, which was
2295 generated by GNU Autoconf 2.69. Invocation command line was
2297 $ $0 $@
2299 _ACEOF
2300 exec 5>>config.log
2302 cat <<_ASUNAME
2303 ## --------- ##
2304 ## Platform. ##
2305 ## --------- ##
2307 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2308 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2309 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2310 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2311 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2313 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2314 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2316 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2317 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2318 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2319 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2320 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2321 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2322 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2324 _ASUNAME
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 for as_dir in $PATH
2329 IFS=$as_save_IFS
2330 test -z "$as_dir" && as_dir=.
2331 $as_echo "PATH: $as_dir"
2332 done
2333 IFS=$as_save_IFS
2335 } >&5
2337 cat >&5 <<_ACEOF
2340 ## ----------- ##
2341 ## Core tests. ##
2342 ## ----------- ##
2344 _ACEOF
2347 # Keep a trace of the command line.
2348 # Strip out --no-create and --no-recursion so they do not pile up.
2349 # Strip out --silent because we don't want to record it for future runs.
2350 # Also quote any args containing shell meta-characters.
2351 # Make two passes to allow for proper duplicate-argument suppression.
2352 ac_configure_args=
2353 ac_configure_args0=
2354 ac_configure_args1=
2355 ac_must_keep_next=false
2356 for ac_pass in 1 2
2358 for ac_arg
2360 case $ac_arg in
2361 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2363 | -silent | --silent | --silen | --sile | --sil)
2364 continue ;;
2365 *\'*)
2366 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2367 esac
2368 case $ac_pass in
2369 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2371 as_fn_append ac_configure_args1 " '$ac_arg'"
2372 if test $ac_must_keep_next = true; then
2373 ac_must_keep_next=false # Got value, back to normal.
2374 else
2375 case $ac_arg in
2376 *=* | --config-cache | -C | -disable-* | --disable-* \
2377 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2378 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2379 | -with-* | --with-* | -without-* | --without-* | --x)
2380 case "$ac_configure_args0 " in
2381 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2382 esac
2384 -* ) ac_must_keep_next=true ;;
2385 esac
2387 as_fn_append ac_configure_args " '$ac_arg'"
2389 esac
2390 done
2391 done
2392 { ac_configure_args0=; unset ac_configure_args0;}
2393 { ac_configure_args1=; unset ac_configure_args1;}
2395 # When interrupted or exit'd, cleanup temporary files, and complete
2396 # config.log. We remove comments because anyway the quotes in there
2397 # would cause problems or look ugly.
2398 # WARNING: Use '\'' to represent an apostrophe within the trap.
2399 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2400 trap 'exit_status=$?
2401 # Save into config.log some information that might help in debugging.
2403 echo
2405 $as_echo "## ---------------- ##
2406 ## Cache variables. ##
2407 ## ---------------- ##"
2408 echo
2409 # The following way of writing the cache mishandles newlines in values,
2411 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2412 eval ac_val=\$$ac_var
2413 case $ac_val in #(
2414 *${as_nl}*)
2415 case $ac_var in #(
2416 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2417 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2418 esac
2419 case $ac_var in #(
2420 _ | IFS | as_nl) ;; #(
2421 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2422 *) { eval $ac_var=; unset $ac_var;} ;;
2423 esac ;;
2424 esac
2425 done
2426 (set) 2>&1 |
2427 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2428 *${as_nl}ac_space=\ *)
2429 sed -n \
2430 "s/'\''/'\''\\\\'\'''\''/g;
2431 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2432 ;; #(
2434 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2436 esac |
2437 sort
2439 echo
2441 $as_echo "## ----------------- ##
2442 ## Output variables. ##
2443 ## ----------------- ##"
2444 echo
2445 for ac_var in $ac_subst_vars
2447 eval ac_val=\$$ac_var
2448 case $ac_val in
2449 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2450 esac
2451 $as_echo "$ac_var='\''$ac_val'\''"
2452 done | sort
2453 echo
2455 if test -n "$ac_subst_files"; then
2456 $as_echo "## ------------------- ##
2457 ## File substitutions. ##
2458 ## ------------------- ##"
2459 echo
2460 for ac_var in $ac_subst_files
2462 eval ac_val=\$$ac_var
2463 case $ac_val in
2464 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2465 esac
2466 $as_echo "$ac_var='\''$ac_val'\''"
2467 done | sort
2468 echo
2471 if test -s confdefs.h; then
2472 $as_echo "## ----------- ##
2473 ## confdefs.h. ##
2474 ## ----------- ##"
2475 echo
2476 cat confdefs.h
2477 echo
2479 test "$ac_signal" != 0 &&
2480 $as_echo "$as_me: caught signal $ac_signal"
2481 $as_echo "$as_me: exit $exit_status"
2482 } >&5
2483 rm -f core *.core core.conftest.* &&
2484 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2485 exit $exit_status
2487 for ac_signal in 1 2 13 15; do
2488 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2489 done
2490 ac_signal=0
2492 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2493 rm -f -r conftest* confdefs.h
2495 $as_echo "/* confdefs.h */" > confdefs.h
2497 # Predefined preprocessor variables.
2499 cat >>confdefs.h <<_ACEOF
2500 #define PACKAGE_NAME "$PACKAGE_NAME"
2501 _ACEOF
2503 cat >>confdefs.h <<_ACEOF
2504 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2505 _ACEOF
2507 cat >>confdefs.h <<_ACEOF
2508 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2509 _ACEOF
2511 cat >>confdefs.h <<_ACEOF
2512 #define PACKAGE_STRING "$PACKAGE_STRING"
2513 _ACEOF
2515 cat >>confdefs.h <<_ACEOF
2516 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2517 _ACEOF
2519 cat >>confdefs.h <<_ACEOF
2520 #define PACKAGE_URL "$PACKAGE_URL"
2521 _ACEOF
2524 # Let the site file select an alternate cache file if it wants to.
2525 # Prefer an explicitly selected file to automatically selected ones.
2526 ac_site_file1=NONE
2527 ac_site_file2=NONE
2528 if test -n "$CONFIG_SITE"; then
2529 # We do not want a PATH search for config.site.
2530 case $CONFIG_SITE in #((
2531 -*) ac_site_file1=./$CONFIG_SITE;;
2532 */*) ac_site_file1=$CONFIG_SITE;;
2533 *) ac_site_file1=./$CONFIG_SITE;;
2534 esac
2535 elif test "x$prefix" != xNONE; then
2536 ac_site_file1=$prefix/share/config.site
2537 ac_site_file2=$prefix/etc/config.site
2538 else
2539 ac_site_file1=$ac_default_prefix/share/config.site
2540 ac_site_file2=$ac_default_prefix/etc/config.site
2542 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2544 test "x$ac_site_file" = xNONE && continue
2545 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2547 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2548 sed 's/^/| /' "$ac_site_file" >&5
2549 . "$ac_site_file" \
2550 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2552 as_fn_error $? "failed to load site script $ac_site_file
2553 See \`config.log' for more details" "$LINENO" 5; }
2555 done
2557 if test -r "$cache_file"; then
2558 # Some versions of bash will fail to source /dev/null (special files
2559 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2560 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2562 $as_echo "$as_me: loading cache $cache_file" >&6;}
2563 case $cache_file in
2564 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2565 *) . "./$cache_file";;
2566 esac
2568 else
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2570 $as_echo "$as_me: creating cache $cache_file" >&6;}
2571 >$cache_file
2574 # Check that the precious variables saved in the cache have kept the same
2575 # value.
2576 ac_cache_corrupted=false
2577 for ac_var in $ac_precious_vars; do
2578 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2579 eval ac_new_set=\$ac_env_${ac_var}_set
2580 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2581 eval ac_new_val=\$ac_env_${ac_var}_value
2582 case $ac_old_set,$ac_new_set in
2583 set,)
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2585 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2586 ac_cache_corrupted=: ;;
2587 ,set)
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2589 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2590 ac_cache_corrupted=: ;;
2591 ,);;
2593 if test "x$ac_old_val" != "x$ac_new_val"; then
2594 # differences in whitespace do not lead to failure.
2595 ac_old_val_w=`echo x $ac_old_val`
2596 ac_new_val_w=`echo x $ac_new_val`
2597 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2599 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2600 ac_cache_corrupted=:
2601 else
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2603 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2604 eval $ac_var=\$ac_old_val
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2607 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2609 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2610 fi;;
2611 esac
2612 # Pass precious variables to config.status.
2613 if test "$ac_new_set" = set; then
2614 case $ac_new_val in
2615 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2616 *) ac_arg=$ac_var=$ac_new_val ;;
2617 esac
2618 case " $ac_configure_args " in
2619 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2620 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2621 esac
2623 done
2624 if $ac_cache_corrupted; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2628 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2629 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2631 ## -------------------- ##
2632 ## Main body of script. ##
2633 ## -------------------- ##
2635 ac_ext=c
2636 ac_cpp='$CPP $CPPFLAGS'
2637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2645 ac_config_headers="$ac_config_headers fficonfig.h"
2648 # Default to --enable-multilib
2649 # Check whether --enable-multilib was given.
2650 if test "${enable_multilib+set}" = set; then :
2651 enableval=$enable_multilib; case "$enableval" in
2652 yes) multilib=yes ;;
2653 no) multilib=no ;;
2654 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2655 esac
2656 else
2657 multilib=yes
2661 # We may get other options which we leave undocumented:
2662 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2663 # See config-ml.in if you want the gory details.
2665 if test "$srcdir" = "."; then
2666 if test "$with_target_subdir" != "."; then
2667 multi_basedir="$srcdir/$with_multisrctop../.."
2668 else
2669 multi_basedir="$srcdir/$with_multisrctop.."
2671 else
2672 multi_basedir="$srcdir/.."
2676 # Even if the default multilib is not a cross compilation,
2677 # it may be that some of the other multilibs are.
2678 if test $cross_compiling = no && test $multilib = yes \
2679 && test "x${with_multisubdir}" != x ; then
2680 cross_compiling=maybe
2683 ac_config_commands="$ac_config_commands default-1"
2686 ac_aux_dir=
2687 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2688 if test -f "$ac_dir/install-sh"; then
2689 ac_aux_dir=$ac_dir
2690 ac_install_sh="$ac_aux_dir/install-sh -c"
2691 break
2692 elif test -f "$ac_dir/install.sh"; then
2693 ac_aux_dir=$ac_dir
2694 ac_install_sh="$ac_aux_dir/install.sh -c"
2695 break
2696 elif test -f "$ac_dir/shtool"; then
2697 ac_aux_dir=$ac_dir
2698 ac_install_sh="$ac_aux_dir/shtool install -c"
2699 break
2701 done
2702 if test -z "$ac_aux_dir"; then
2703 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2706 # These three variables are undocumented and unsupported,
2707 # and are intended to be withdrawn in a future Autoconf release.
2708 # They can cause serious problems if a builder's source tree is in a directory
2709 # whose full name contains unusual characters.
2710 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2711 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2712 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2715 # Make sure we can run config.sub.
2716 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2717 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2720 $as_echo_n "checking build system type... " >&6; }
2721 if ${ac_cv_build+:} false; then :
2722 $as_echo_n "(cached) " >&6
2723 else
2724 ac_build_alias=$build_alias
2725 test "x$ac_build_alias" = x &&
2726 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2727 test "x$ac_build_alias" = x &&
2728 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2729 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2730 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2734 $as_echo "$ac_cv_build" >&6; }
2735 case $ac_cv_build in
2736 *-*-*) ;;
2737 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2738 esac
2739 build=$ac_cv_build
2740 ac_save_IFS=$IFS; IFS='-'
2741 set x $ac_cv_build
2742 shift
2743 build_cpu=$1
2744 build_vendor=$2
2745 shift; shift
2746 # Remember, the first character of IFS is used to create $*,
2747 # except with old shells:
2748 build_os=$*
2749 IFS=$ac_save_IFS
2750 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2754 $as_echo_n "checking host system type... " >&6; }
2755 if ${ac_cv_host+:} false; then :
2756 $as_echo_n "(cached) " >&6
2757 else
2758 if test "x$host_alias" = x; then
2759 ac_cv_host=$ac_cv_build
2760 else
2761 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2762 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2767 $as_echo "$ac_cv_host" >&6; }
2768 case $ac_cv_host in
2769 *-*-*) ;;
2770 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2771 esac
2772 host=$ac_cv_host
2773 ac_save_IFS=$IFS; IFS='-'
2774 set x $ac_cv_host
2775 shift
2776 host_cpu=$1
2777 host_vendor=$2
2778 shift; shift
2779 # Remember, the first character of IFS is used to create $*,
2780 # except with old shells:
2781 host_os=$*
2782 IFS=$ac_save_IFS
2783 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2787 $as_echo_n "checking target system type... " >&6; }
2788 if ${ac_cv_target+:} false; then :
2789 $as_echo_n "(cached) " >&6
2790 else
2791 if test "x$target_alias" = x; then
2792 ac_cv_target=$ac_cv_host
2793 else
2794 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2795 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2800 $as_echo "$ac_cv_target" >&6; }
2801 case $ac_cv_target in
2802 *-*-*) ;;
2803 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2804 esac
2805 target=$ac_cv_target
2806 ac_save_IFS=$IFS; IFS='-'
2807 set x $ac_cv_target
2808 shift
2809 target_cpu=$1
2810 target_vendor=$2
2811 shift; shift
2812 # Remember, the first character of IFS is used to create $*,
2813 # except with old shells:
2814 target_os=$*
2815 IFS=$ac_save_IFS
2816 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2819 # The aliases save the names the user supplied, while $host etc.
2820 # will get canonicalized.
2821 test -n "$target_alias" &&
2822 test "$program_prefix$program_suffix$program_transform_name" = \
2823 NONENONEs,x,x, &&
2824 program_prefix=${target_alias}-
2826 target_alias=${target_alias-$host_alias}
2828 am__api_version='1.15'
2830 # Find a good install program. We prefer a C program (faster),
2831 # so one script is as good as another. But avoid the broken or
2832 # incompatible versions:
2833 # SysV /etc/install, /usr/sbin/install
2834 # SunOS /usr/etc/install
2835 # IRIX /sbin/install
2836 # AIX /bin/install
2837 # AmigaOS /C/install, which installs bootblocks on floppy discs
2838 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2839 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2840 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2841 # OS/2's system install, which has a completely different semantic
2842 # ./install, which can be erroneously created by make from ./install.sh.
2843 # Reject install programs that cannot install multiple files.
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2845 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2846 if test -z "$INSTALL"; then
2847 if ${ac_cv_path_install+:} false; then :
2848 $as_echo_n "(cached) " >&6
2849 else
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 for as_dir in $PATH
2853 IFS=$as_save_IFS
2854 test -z "$as_dir" && as_dir=.
2855 # Account for people who put trailing slashes in PATH elements.
2856 case $as_dir/ in #((
2857 ./ | .// | /[cC]/* | \
2858 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2859 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2860 /usr/ucb/* ) ;;
2862 # OSF1 and SCO ODT 3.0 have their own names for install.
2863 # Don't use installbsd from OSF since it installs stuff as root
2864 # by default.
2865 for ac_prog in ginstall scoinst install; do
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2868 if test $ac_prog = install &&
2869 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2870 # AIX install. It has an incompatible calling convention.
2872 elif test $ac_prog = install &&
2873 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2874 # program-specific install script used by HP pwplus--don't use.
2876 else
2877 rm -rf conftest.one conftest.two conftest.dir
2878 echo one > conftest.one
2879 echo two > conftest.two
2880 mkdir conftest.dir
2881 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2882 test -s conftest.one && test -s conftest.two &&
2883 test -s conftest.dir/conftest.one &&
2884 test -s conftest.dir/conftest.two
2885 then
2886 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2887 break 3
2891 done
2892 done
2894 esac
2896 done
2897 IFS=$as_save_IFS
2899 rm -rf conftest.one conftest.two conftest.dir
2902 if test "${ac_cv_path_install+set}" = set; then
2903 INSTALL=$ac_cv_path_install
2904 else
2905 # As a last resort, use the slow shell script. Don't cache a
2906 # value for INSTALL within a source directory, because that will
2907 # break other packages using the cache if that directory is
2908 # removed, or if the value is a relative name.
2909 INSTALL=$ac_install_sh
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2913 $as_echo "$INSTALL" >&6; }
2915 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2916 # It thinks the first close brace ends the variable substitution.
2917 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2919 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2921 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2924 $as_echo_n "checking whether build environment is sane... " >&6; }
2925 # Reject unsafe characters in $srcdir or the absolute working directory
2926 # name. Accept space and tab only in the latter.
2927 am_lf='
2929 case `pwd` in
2930 *[\\\"\#\$\&\'\`$am_lf]*)
2931 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2932 esac
2933 case $srcdir in
2934 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2935 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2936 esac
2938 # Do 'set' in a subshell so we don't clobber the current shell's
2939 # arguments. Must try -L first in case configure is actually a
2940 # symlink; some systems play weird games with the mod time of symlinks
2941 # (eg FreeBSD returns the mod time of the symlink's containing
2942 # directory).
2943 if (
2944 am_has_slept=no
2945 for am_try in 1 2; do
2946 echo "timestamp, slept: $am_has_slept" > conftest.file
2947 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2948 if test "$*" = "X"; then
2949 # -L didn't work.
2950 set X `ls -t "$srcdir/configure" conftest.file`
2952 if test "$*" != "X $srcdir/configure conftest.file" \
2953 && test "$*" != "X conftest.file $srcdir/configure"; then
2955 # If neither matched, then we have a broken ls. This can happen
2956 # if, for instance, CONFIG_SHELL is bash and it inherits a
2957 # broken ls alias from the environment. This has actually
2958 # happened. Such a system could not be considered "sane".
2959 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2960 alias in your environment" "$LINENO" 5
2962 if test "$2" = conftest.file || test $am_try -eq 2; then
2963 break
2965 # Just in case.
2966 sleep 1
2967 am_has_slept=yes
2968 done
2969 test "$2" = conftest.file
2971 then
2972 # Ok.
2974 else
2975 as_fn_error $? "newly created file is older than distributed files!
2976 Check your system clock" "$LINENO" 5
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2979 $as_echo "yes" >&6; }
2980 # If we didn't sleep, we still need to ensure time stamps of config.status and
2981 # generated files are strictly newer.
2982 am_sleep_pid=
2983 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2984 ( sleep 1 ) &
2985 am_sleep_pid=$!
2988 rm -f conftest.file
2990 test "$program_prefix" != NONE &&
2991 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2992 # Use a double $ so make ignores it.
2993 test "$program_suffix" != NONE &&
2994 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2995 # Double any \ or $.
2996 # By default was `s,x,x', remove it if useless.
2997 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2998 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3000 # Expand $ac_aux_dir to an absolute path.
3001 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3003 if test x"${MISSING+set}" != xset; then
3004 case $am_aux_dir in
3005 *\ * | *\ *)
3006 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3008 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3009 esac
3011 # Use eval to expand $SHELL
3012 if eval "$MISSING --is-lightweight"; then
3013 am_missing_run="$MISSING "
3014 else
3015 am_missing_run=
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3017 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3020 if test x"${install_sh+set}" != xset; then
3021 case $am_aux_dir in
3022 *\ * | *\ *)
3023 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3025 install_sh="\${SHELL} $am_aux_dir/install-sh"
3026 esac
3029 # Installed binaries are usually stripped using 'strip' when the user
3030 # run "make install-strip". However 'strip' might not be the right
3031 # tool to use in cross-compilation environments, therefore Automake
3032 # will honor the 'STRIP' environment variable to overrule this program.
3033 if test "$cross_compiling" != no; then
3034 if test -n "$ac_tool_prefix"; then
3035 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3036 set dummy ${ac_tool_prefix}strip; ac_word=$2
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038 $as_echo_n "checking for $ac_word... " >&6; }
3039 if ${ac_cv_prog_STRIP+:} false; then :
3040 $as_echo_n "(cached) " >&6
3041 else
3042 if test -n "$STRIP"; then
3043 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3044 else
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 for as_dir in $PATH
3048 IFS=$as_save_IFS
3049 test -z "$as_dir" && as_dir=.
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3052 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 break 2
3056 done
3057 done
3058 IFS=$as_save_IFS
3062 STRIP=$ac_cv_prog_STRIP
3063 if test -n "$STRIP"; then
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3065 $as_echo "$STRIP" >&6; }
3066 else
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068 $as_echo "no" >&6; }
3073 if test -z "$ac_cv_prog_STRIP"; then
3074 ac_ct_STRIP=$STRIP
3075 # Extract the first word of "strip", so it can be a program name with args.
3076 set dummy strip; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3080 $as_echo_n "(cached) " >&6
3081 else
3082 if test -n "$ac_ct_STRIP"; then
3083 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3084 else
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3088 IFS=$as_save_IFS
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092 ac_cv_prog_ac_ct_STRIP="strip"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 break 2
3096 done
3097 done
3098 IFS=$as_save_IFS
3102 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3103 if test -n "$ac_ct_STRIP"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3105 $as_echo "$ac_ct_STRIP" >&6; }
3106 else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3111 if test "x$ac_ct_STRIP" = x; then
3112 STRIP=":"
3113 else
3114 case $cross_compiling:$ac_tool_warned in
3115 yes:)
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3118 ac_tool_warned=yes ;;
3119 esac
3120 STRIP=$ac_ct_STRIP
3122 else
3123 STRIP="$ac_cv_prog_STRIP"
3127 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3130 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3131 if test -z "$MKDIR_P"; then
3132 if ${ac_cv_path_mkdir+:} false; then :
3133 $as_echo_n "(cached) " >&6
3134 else
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3138 IFS=$as_save_IFS
3139 test -z "$as_dir" && as_dir=.
3140 for ac_prog in mkdir gmkdir; do
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3143 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3144 'mkdir (GNU coreutils) '* | \
3145 'mkdir (coreutils) '* | \
3146 'mkdir (fileutils) '4.1*)
3147 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3148 break 3;;
3149 esac
3150 done
3151 done
3152 done
3153 IFS=$as_save_IFS
3157 test -d ./--version && rmdir ./--version
3158 if test "${ac_cv_path_mkdir+set}" = set; then
3159 MKDIR_P="$ac_cv_path_mkdir -p"
3160 else
3161 # As a last resort, use the slow shell script. Don't cache a
3162 # value for MKDIR_P within a source directory, because that will
3163 # break other packages using the cache if that directory is
3164 # removed, or if the value is a relative name.
3165 MKDIR_P="$ac_install_sh -d"
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3169 $as_echo "$MKDIR_P" >&6; }
3171 for ac_prog in gawk mawk nawk awk
3173 # Extract the first word of "$ac_prog", so it can be a program name with args.
3174 set dummy $ac_prog; ac_word=$2
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176 $as_echo_n "checking for $ac_word... " >&6; }
3177 if ${ac_cv_prog_AWK+:} false; then :
3178 $as_echo_n "(cached) " >&6
3179 else
3180 if test -n "$AWK"; then
3181 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3186 IFS=$as_save_IFS
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190 ac_cv_prog_AWK="$ac_prog"
3191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 break 2
3194 done
3195 done
3196 IFS=$as_save_IFS
3200 AWK=$ac_cv_prog_AWK
3201 if test -n "$AWK"; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3203 $as_echo "$AWK" >&6; }
3204 else
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3210 test -n "$AWK" && break
3211 done
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3214 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3215 set x ${MAKE-make}
3216 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3217 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3218 $as_echo_n "(cached) " >&6
3219 else
3220 cat >conftest.make <<\_ACEOF
3221 SHELL = /bin/sh
3222 all:
3223 @echo '@@@%%%=$(MAKE)=@@@%%%'
3224 _ACEOF
3225 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3226 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3227 *@@@%%%=?*=@@@%%%*)
3228 eval ac_cv_prog_make_${ac_make}_set=yes;;
3230 eval ac_cv_prog_make_${ac_make}_set=no;;
3231 esac
3232 rm -f conftest.make
3234 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3236 $as_echo "yes" >&6; }
3237 SET_MAKE=
3238 else
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3241 SET_MAKE="MAKE=${MAKE-make}"
3244 rm -rf .tst 2>/dev/null
3245 mkdir .tst 2>/dev/null
3246 if test -d .tst; then
3247 am__leading_dot=.
3248 else
3249 am__leading_dot=_
3251 rmdir .tst 2>/dev/null
3253 # Check whether --enable-silent-rules was given.
3254 if test "${enable_silent_rules+set}" = set; then :
3255 enableval=$enable_silent_rules;
3258 case $enable_silent_rules in # (((
3259 yes) AM_DEFAULT_VERBOSITY=0;;
3260 no) AM_DEFAULT_VERBOSITY=1;;
3261 *) AM_DEFAULT_VERBOSITY=1;;
3262 esac
3263 am_make=${MAKE-make}
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3265 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3266 if ${am_cv_make_support_nested_variables+:} false; then :
3267 $as_echo_n "(cached) " >&6
3268 else
3269 if $as_echo 'TRUE=$(BAR$(V))
3270 BAR0=false
3271 BAR1=true
3273 am__doit:
3274 @$(TRUE)
3275 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3276 am_cv_make_support_nested_variables=yes
3277 else
3278 am_cv_make_support_nested_variables=no
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3282 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3283 if test $am_cv_make_support_nested_variables = yes; then
3284 AM_V='$(V)'
3285 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3286 else
3287 AM_V=$AM_DEFAULT_VERBOSITY
3288 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3290 AM_BACKSLASH='\'
3292 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3293 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3294 # is not polluted with repeated "-I."
3295 am__isrc=' -I$(srcdir)'
3296 # test to see if srcdir already configured
3297 if test -f $srcdir/config.status; then
3298 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3302 # test whether we have cygpath
3303 if test -z "$CYGPATH_W"; then
3304 if (cygpath --version) >/dev/null 2>/dev/null; then
3305 CYGPATH_W='cygpath -w'
3306 else
3307 CYGPATH_W=echo
3312 # Define the identity of the package.
3313 PACKAGE='libffi'
3314 VERSION='3.99999'
3317 cat >>confdefs.h <<_ACEOF
3318 #define PACKAGE "$PACKAGE"
3319 _ACEOF
3322 cat >>confdefs.h <<_ACEOF
3323 #define VERSION "$VERSION"
3324 _ACEOF
3326 # Some tools Automake needs.
3328 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3331 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3334 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3337 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3340 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3342 # For better backward compatibility. To be removed once Automake 1.9.x
3343 # dies out for good. For more background, see:
3344 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3345 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3346 mkdir_p='$(MKDIR_P)'
3348 # We need awk for the "check" target (and possibly the TAP driver). The
3349 # system "awk" is bad on some platforms.
3350 # Always define AMTAR for backward compatibility. Yes, it's still used
3351 # in the wild :-( We should find a proper way to deprecate it ...
3352 AMTAR='$${TAR-tar}'
3355 # We'll loop over all known methods to create a tar archive until one works.
3356 _am_tools='gnutar pax cpio none'
3358 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3365 # POSIX will say in a future version that running "rm -f" with no argument
3366 # is OK; and we want to be able to make that assumption in our Makefile
3367 # recipes. So use an aggressive probe to check that the usage we want is
3368 # actually supported "in the wild" to an acceptable degree.
3369 # See automake bug#10828.
3370 # To make any issue more visible, cause the running configure to be aborted
3371 # by default if the 'rm' program in use doesn't match our expectations; the
3372 # user can still override this though.
3373 if rm -f && rm -fr && rm -rf; then : OK; else
3374 cat >&2 <<'END'
3375 Oops!
3377 Your 'rm' program seems unable to run without file operands specified
3378 on the command line, even when the '-f' option is present. This is contrary
3379 to the behaviour of most rm programs out there, and not conforming with
3380 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3382 Please tell bug-automake@gnu.org about your system, including the value
3383 of your $PATH and any error possibly output before this message. This
3384 can help us improve future automake versions.
3387 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3388 echo 'Configuration will proceed anyway, since you have set the' >&2
3389 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3390 echo >&2
3391 else
3392 cat >&2 <<'END'
3393 Aborting the configuration process, to ensure you take notice of the issue.
3395 You can download and install GNU coreutils to get an 'rm' implementation
3396 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3398 If you want to complete the configuration process using your problematic
3399 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3400 to "yes", and re-run configure.
3403 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3408 # See if makeinfo has been installed and is modern enough
3409 # that we can use it.
3411 # Extract the first word of "makeinfo", so it can be a program name with args.
3412 set dummy makeinfo; ac_word=$2
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414 $as_echo_n "checking for $ac_word... " >&6; }
3415 if ${ac_cv_prog_MAKEINFO+:} false; then :
3416 $as_echo_n "(cached) " >&6
3417 else
3418 if test -n "$MAKEINFO"; then
3419 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3420 else
3421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 for as_dir in $PATH
3424 IFS=$as_save_IFS
3425 test -z "$as_dir" && as_dir=.
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3428 ac_cv_prog_MAKEINFO="makeinfo"
3429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3430 break 2
3432 done
3433 done
3434 IFS=$as_save_IFS
3438 MAKEINFO=$ac_cv_prog_MAKEINFO
3439 if test -n "$MAKEINFO"; then
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
3441 $as_echo "$MAKEINFO" >&6; }
3442 else
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 $as_echo "no" >&6; }
3448 if test -n "$MAKEINFO"; then
3449 # Found it, now check the version.
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
3451 $as_echo_n "checking for modern makeinfo... " >&6; }
3452 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
3453 $as_echo_n "(cached) " >&6
3454 else
3455 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3456 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3458 case $ac_prog_version in
3459 '') gcc_cv_prog_makeinfo_modern=no;;
3460 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
3461 *) gcc_cv_prog_makeinfo_modern=no;;
3462 esac
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
3466 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
3467 else
3468 gcc_cv_prog_makeinfo_modern=no
3470 if test $gcc_cv_prog_makeinfo_modern = no; then
3471 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3474 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3475 BUILD_INFO_TRUE=
3476 BUILD_INFO_FALSE='#'
3477 else
3478 BUILD_INFO_TRUE='#'
3479 BUILD_INFO_FALSE=
3483 # We would like our source tree to be readonly. However when releases or
3484 # pre-releases are generated, the flex/bison generated files as well as the
3485 # various formats of manuals need to be included along with the rest of the
3486 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3487 # just that.
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
3489 $as_echo_n "checking generated-files-in-srcdir... " >&6; }
3490 # Check whether --enable-generated-files-in-srcdir was given.
3491 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3492 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
3493 yes) enable_generated_files_in_srcdir=yes ;;
3494 no) enable_generated_files_in_srcdir=no ;;
3495 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3496 esac
3497 else
3498 enable_generated_files_in_srcdir=no
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
3502 $as_echo "$enable_generated_files_in_srcdir" >&6; }
3503 if test "$enable_generated_files_in_srcdir" = yes; then
3504 GENINSRC_TRUE=
3505 GENINSRC_FALSE='#'
3506 else
3507 GENINSRC_TRUE='#'
3508 GENINSRC_FALSE=
3512 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3513 # We must force CC to /not/ be precious variables; otherwise
3514 # the wrong, non-multilib-adjusted value will be used in multilibs.
3515 # As a side effect, we have to subst CFLAGS ourselves.
3516 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3517 # defaults of its own if none are provided.
3521 save_CFLAGS=$CFLAGS
3522 ac_ext=c
3523 ac_cpp='$CPP $CPPFLAGS'
3524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3527 if test -n "$ac_tool_prefix"; then
3528 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3529 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531 $as_echo_n "checking for $ac_word... " >&6; }
3532 if ${ac_cv_prog_CC+:} false; then :
3533 $as_echo_n "(cached) " >&6
3534 else
3535 if test -n "$CC"; then
3536 ac_cv_prog_CC="$CC" # Let the user override the test.
3537 else
3538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539 for as_dir in $PATH
3541 IFS=$as_save_IFS
3542 test -z "$as_dir" && as_dir=.
3543 for ac_exec_ext in '' $ac_executable_extensions; do
3544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3545 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3547 break 2
3549 done
3550 done
3551 IFS=$as_save_IFS
3555 CC=$ac_cv_prog_CC
3556 if test -n "$CC"; then
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3558 $as_echo "$CC" >&6; }
3559 else
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 $as_echo "no" >&6; }
3566 if test -z "$ac_cv_prog_CC"; then
3567 ac_ct_CC=$CC
3568 # Extract the first word of "gcc", so it can be a program name with args.
3569 set dummy gcc; ac_word=$2
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3571 $as_echo_n "checking for $ac_word... " >&6; }
3572 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3573 $as_echo_n "(cached) " >&6
3574 else
3575 if test -n "$ac_ct_CC"; then
3576 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3577 else
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 for as_dir in $PATH
3581 IFS=$as_save_IFS
3582 test -z "$as_dir" && as_dir=.
3583 for ac_exec_ext in '' $ac_executable_extensions; do
3584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3585 ac_cv_prog_ac_ct_CC="gcc"
3586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3587 break 2
3589 done
3590 done
3591 IFS=$as_save_IFS
3595 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3596 if test -n "$ac_ct_CC"; then
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3598 $as_echo "$ac_ct_CC" >&6; }
3599 else
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3601 $as_echo "no" >&6; }
3604 if test "x$ac_ct_CC" = x; then
3605 CC=""
3606 else
3607 case $cross_compiling:$ac_tool_warned in
3608 yes:)
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3611 ac_tool_warned=yes ;;
3612 esac
3613 CC=$ac_ct_CC
3615 else
3616 CC="$ac_cv_prog_CC"
3619 if test -z "$CC"; then
3620 if test -n "$ac_tool_prefix"; then
3621 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3622 set dummy ${ac_tool_prefix}cc; ac_word=$2
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3624 $as_echo_n "checking for $ac_word... " >&6; }
3625 if ${ac_cv_prog_CC+:} false; then :
3626 $as_echo_n "(cached) " >&6
3627 else
3628 if test -n "$CC"; then
3629 ac_cv_prog_CC="$CC" # Let the user override the test.
3630 else
3631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632 for as_dir in $PATH
3634 IFS=$as_save_IFS
3635 test -z "$as_dir" && as_dir=.
3636 for ac_exec_ext in '' $ac_executable_extensions; do
3637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3638 ac_cv_prog_CC="${ac_tool_prefix}cc"
3639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3640 break 2
3642 done
3643 done
3644 IFS=$as_save_IFS
3648 CC=$ac_cv_prog_CC
3649 if test -n "$CC"; then
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3651 $as_echo "$CC" >&6; }
3652 else
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3654 $as_echo "no" >&6; }
3660 if test -z "$CC"; then
3661 # Extract the first word of "cc", so it can be a program name with args.
3662 set dummy cc; ac_word=$2
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3664 $as_echo_n "checking for $ac_word... " >&6; }
3665 if ${ac_cv_prog_CC+:} false; then :
3666 $as_echo_n "(cached) " >&6
3667 else
3668 if test -n "$CC"; then
3669 ac_cv_prog_CC="$CC" # Let the user override the test.
3670 else
3671 ac_prog_rejected=no
3672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3673 for as_dir in $PATH
3675 IFS=$as_save_IFS
3676 test -z "$as_dir" && as_dir=.
3677 for ac_exec_ext in '' $ac_executable_extensions; do
3678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3679 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3680 ac_prog_rejected=yes
3681 continue
3683 ac_cv_prog_CC="cc"
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
3691 if test $ac_prog_rejected = yes; then
3692 # We found a bogon in the path, so make sure we never use it.
3693 set dummy $ac_cv_prog_CC
3694 shift
3695 if test $# != 0; then
3696 # We chose a different compiler from the bogus one.
3697 # However, it has the same basename, so the bogon will be chosen
3698 # first if we set CC to just the basename; use the full file name.
3699 shift
3700 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3705 CC=$ac_cv_prog_CC
3706 if test -n "$CC"; then
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3708 $as_echo "$CC" >&6; }
3709 else
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711 $as_echo "no" >&6; }
3716 if test -z "$CC"; then
3717 if test -n "$ac_tool_prefix"; then
3718 for ac_prog in cl.exe
3720 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3721 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3723 $as_echo_n "checking for $ac_word... " >&6; }
3724 if ${ac_cv_prog_CC+:} false; then :
3725 $as_echo_n "(cached) " >&6
3726 else
3727 if test -n "$CC"; then
3728 ac_cv_prog_CC="$CC" # Let the user override the test.
3729 else
3730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731 for as_dir in $PATH
3733 IFS=$as_save_IFS
3734 test -z "$as_dir" && as_dir=.
3735 for ac_exec_ext in '' $ac_executable_extensions; do
3736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3737 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3739 break 2
3741 done
3742 done
3743 IFS=$as_save_IFS
3747 CC=$ac_cv_prog_CC
3748 if test -n "$CC"; then
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3750 $as_echo "$CC" >&6; }
3751 else
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3753 $as_echo "no" >&6; }
3757 test -n "$CC" && break
3758 done
3760 if test -z "$CC"; then
3761 ac_ct_CC=$CC
3762 for ac_prog in cl.exe
3764 # Extract the first word of "$ac_prog", so it can be a program name with args.
3765 set dummy $ac_prog; ac_word=$2
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3767 $as_echo_n "checking for $ac_word... " >&6; }
3768 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3769 $as_echo_n "(cached) " >&6
3770 else
3771 if test -n "$ac_ct_CC"; then
3772 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3773 else
3774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 for as_dir in $PATH
3777 IFS=$as_save_IFS
3778 test -z "$as_dir" && as_dir=.
3779 for ac_exec_ext in '' $ac_executable_extensions; do
3780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3781 ac_cv_prog_ac_ct_CC="$ac_prog"
3782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3783 break 2
3785 done
3786 done
3787 IFS=$as_save_IFS
3791 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3792 if test -n "$ac_ct_CC"; then
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3794 $as_echo "$ac_ct_CC" >&6; }
3795 else
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3797 $as_echo "no" >&6; }
3801 test -n "$ac_ct_CC" && break
3802 done
3804 if test "x$ac_ct_CC" = x; then
3805 CC=""
3806 else
3807 case $cross_compiling:$ac_tool_warned in
3808 yes:)
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3811 ac_tool_warned=yes ;;
3812 esac
3813 CC=$ac_ct_CC
3820 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3822 as_fn_error $? "no acceptable C compiler found in \$PATH
3823 See \`config.log' for more details" "$LINENO" 5; }
3825 # Provide some information about the compiler.
3826 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3827 set X $ac_compile
3828 ac_compiler=$2
3829 for ac_option in --version -v -V -qversion; do
3830 { { ac_try="$ac_compiler $ac_option >&5"
3831 case "(($ac_try" in
3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3834 esac
3835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3836 $as_echo "$ac_try_echo"; } >&5
3837 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3838 ac_status=$?
3839 if test -s conftest.err; then
3840 sed '10a\
3841 ... rest of stderr output deleted ...
3842 10q' conftest.err >conftest.er1
3843 cat conftest.er1 >&5
3845 rm -f conftest.er1 conftest.err
3846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3847 test $ac_status = 0; }
3848 done
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3854 main ()
3858 return 0;
3860 _ACEOF
3861 ac_clean_files_save=$ac_clean_files
3862 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3863 # Try to create an executable without -o first, disregard a.out.
3864 # It will help us diagnose broken compilers, and finding out an intuition
3865 # of exeext.
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3867 $as_echo_n "checking whether the C compiler works... " >&6; }
3868 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3870 # The possible output files:
3871 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3873 ac_rmfiles=
3874 for ac_file in $ac_files
3876 case $ac_file in
3877 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3878 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3879 esac
3880 done
3881 rm -f $ac_rmfiles
3883 if { { ac_try="$ac_link_default"
3884 case "(($ac_try" in
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3887 esac
3888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3889 $as_echo "$ac_try_echo"; } >&5
3890 (eval "$ac_link_default") 2>&5
3891 ac_status=$?
3892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893 test $ac_status = 0; }; then :
3894 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3895 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3896 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3897 # so that the user can short-circuit this test for compilers unknown to
3898 # Autoconf.
3899 for ac_file in $ac_files ''
3901 test -f "$ac_file" || continue
3902 case $ac_file in
3903 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3905 [ab].out )
3906 # We found the default executable, but exeext='' is most
3907 # certainly right.
3908 break;;
3909 *.* )
3910 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3911 then :; else
3912 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3914 # We set ac_cv_exeext here because the later test for it is not
3915 # safe: cross compilers may not add the suffix if given an `-o'
3916 # argument, so we may need to know it at that point already.
3917 # Even if this section looks crufty: it has the advantage of
3918 # actually working.
3919 break;;
3921 break;;
3922 esac
3923 done
3924 test "$ac_cv_exeext" = no && ac_cv_exeext=
3926 else
3927 ac_file=''
3929 if test -z "$ac_file"; then :
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931 $as_echo "no" >&6; }
3932 $as_echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3937 as_fn_error 77 "C compiler cannot create executables
3938 See \`config.log' for more details" "$LINENO" 5; }
3939 else
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3941 $as_echo "yes" >&6; }
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3944 $as_echo_n "checking for C compiler default output file name... " >&6; }
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3946 $as_echo "$ac_file" >&6; }
3947 ac_exeext=$ac_cv_exeext
3949 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3950 ac_clean_files=$ac_clean_files_save
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3952 $as_echo_n "checking for suffix of executables... " >&6; }
3953 if { { ac_try="$ac_link"
3954 case "(($ac_try" in
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3957 esac
3958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3959 $as_echo "$ac_try_echo"; } >&5
3960 (eval "$ac_link") 2>&5
3961 ac_status=$?
3962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3963 test $ac_status = 0; }; then :
3964 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3965 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3966 # work properly (i.e., refer to `conftest.exe'), while it won't with
3967 # `rm'.
3968 for ac_file in conftest.exe conftest conftest.*; do
3969 test -f "$ac_file" || continue
3970 case $ac_file in
3971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3972 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3973 break;;
3974 * ) break;;
3975 esac
3976 done
3977 else
3978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3980 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3981 See \`config.log' for more details" "$LINENO" 5; }
3983 rm -f conftest conftest$ac_cv_exeext
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3985 $as_echo "$ac_cv_exeext" >&6; }
3987 rm -f conftest.$ac_ext
3988 EXEEXT=$ac_cv_exeext
3989 ac_exeext=$EXEEXT
3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h. */
3992 #include <stdio.h>
3994 main ()
3996 FILE *f = fopen ("conftest.out", "w");
3997 return ferror (f) || fclose (f) != 0;
4000 return 0;
4002 _ACEOF
4003 ac_clean_files="$ac_clean_files conftest.out"
4004 # Check that the compiler produces executables we can run. If not, either
4005 # the compiler is broken, or we cross compile.
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4007 $as_echo_n "checking whether we are cross compiling... " >&6; }
4008 if test "$cross_compiling" != yes; then
4009 { { ac_try="$ac_link"
4010 case "(($ac_try" in
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4013 esac
4014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4015 $as_echo "$ac_try_echo"; } >&5
4016 (eval "$ac_link") 2>&5
4017 ac_status=$?
4018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4019 test $ac_status = 0; }
4020 if { ac_try='./conftest$ac_cv_exeext'
4021 { { case "(($ac_try" in
4022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023 *) ac_try_echo=$ac_try;;
4024 esac
4025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4026 $as_echo "$ac_try_echo"; } >&5
4027 (eval "$ac_try") 2>&5
4028 ac_status=$?
4029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4030 test $ac_status = 0; }; }; then
4031 cross_compiling=no
4032 else
4033 if test "$cross_compiling" = maybe; then
4034 cross_compiling=yes
4035 else
4036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4038 as_fn_error $? "cannot run C compiled programs.
4039 If you meant to cross compile, use \`--host'.
4040 See \`config.log' for more details" "$LINENO" 5; }
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4045 $as_echo "$cross_compiling" >&6; }
4047 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4048 ac_clean_files=$ac_clean_files_save
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4050 $as_echo_n "checking for suffix of object files... " >&6; }
4051 if ${ac_cv_objext+:} false; then :
4052 $as_echo_n "(cached) " >&6
4053 else
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4058 main ()
4062 return 0;
4064 _ACEOF
4065 rm -f conftest.o conftest.obj
4066 if { { ac_try="$ac_compile"
4067 case "(($ac_try" in
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4070 esac
4071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4072 $as_echo "$ac_try_echo"; } >&5
4073 (eval "$ac_compile") 2>&5
4074 ac_status=$?
4075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4076 test $ac_status = 0; }; then :
4077 for ac_file in conftest.o conftest.obj conftest.*; do
4078 test -f "$ac_file" || continue;
4079 case $ac_file in
4080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4081 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4082 break;;
4083 esac
4084 done
4085 else
4086 $as_echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4091 as_fn_error $? "cannot compute suffix of object files: cannot compile
4092 See \`config.log' for more details" "$LINENO" 5; }
4094 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4097 $as_echo "$ac_cv_objext" >&6; }
4098 OBJEXT=$ac_cv_objext
4099 ac_objext=$OBJEXT
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4101 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4102 if ${ac_cv_c_compiler_gnu+:} false; then :
4103 $as_echo_n "(cached) " >&6
4104 else
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4109 main ()
4111 #ifndef __GNUC__
4112 choke me
4113 #endif
4116 return 0;
4118 _ACEOF
4119 if ac_fn_c_try_compile "$LINENO"; then :
4120 ac_compiler_gnu=yes
4121 else
4122 ac_compiler_gnu=no
4124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4125 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4129 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4130 if test $ac_compiler_gnu = yes; then
4131 GCC=yes
4132 else
4133 GCC=
4135 ac_test_CFLAGS=${CFLAGS+set}
4136 ac_save_CFLAGS=$CFLAGS
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4138 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4139 if ${ac_cv_prog_cc_g+:} false; then :
4140 $as_echo_n "(cached) " >&6
4141 else
4142 ac_save_c_werror_flag=$ac_c_werror_flag
4143 ac_c_werror_flag=yes
4144 ac_cv_prog_cc_g=no
4145 CFLAGS="-g"
4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147 /* end confdefs.h. */
4150 main ()
4154 return 0;
4156 _ACEOF
4157 if ac_fn_c_try_compile "$LINENO"; then :
4158 ac_cv_prog_cc_g=yes
4159 else
4160 CFLAGS=""
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4165 main ()
4169 return 0;
4171 _ACEOF
4172 if ac_fn_c_try_compile "$LINENO"; then :
4174 else
4175 ac_c_werror_flag=$ac_save_c_werror_flag
4176 CFLAGS="-g"
4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h. */
4181 main ()
4185 return 0;
4187 _ACEOF
4188 if ac_fn_c_try_compile "$LINENO"; then :
4189 ac_cv_prog_cc_g=yes
4191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196 ac_c_werror_flag=$ac_save_c_werror_flag
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4199 $as_echo "$ac_cv_prog_cc_g" >&6; }
4200 if test "$ac_test_CFLAGS" = set; then
4201 CFLAGS=$ac_save_CFLAGS
4202 elif test $ac_cv_prog_cc_g = yes; then
4203 if test "$GCC" = yes; then
4204 CFLAGS="-g -O2"
4205 else
4206 CFLAGS="-g"
4208 else
4209 if test "$GCC" = yes; then
4210 CFLAGS="-O2"
4211 else
4212 CFLAGS=
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4216 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4217 if ${ac_cv_prog_cc_c89+:} false; then :
4218 $as_echo_n "(cached) " >&6
4219 else
4220 ac_cv_prog_cc_c89=no
4221 ac_save_CC=$CC
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4224 #include <stdarg.h>
4225 #include <stdio.h>
4226 struct stat;
4227 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4228 struct buf { int x; };
4229 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4230 static char *e (p, i)
4231 char **p;
4232 int i;
4234 return p[i];
4236 static char *f (char * (*g) (char **, int), char **p, ...)
4238 char *s;
4239 va_list v;
4240 va_start (v,p);
4241 s = g (p, va_arg (v,int));
4242 va_end (v);
4243 return s;
4246 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4247 function prototypes and stuff, but not '\xHH' hex character constants.
4248 These don't provoke an error unfortunately, instead are silently treated
4249 as 'x'. The following induces an error, until -std is added to get
4250 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4251 array size at least. It's necessary to write '\x00'==0 to get something
4252 that's true only with -std. */
4253 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4255 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4256 inside strings and character constants. */
4257 #define FOO(x) 'x'
4258 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4260 int test (int i, double x);
4261 struct s1 {int (*f) (int a);};
4262 struct s2 {int (*f) (double a);};
4263 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4264 int argc;
4265 char **argv;
4267 main ()
4269 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4271 return 0;
4273 _ACEOF
4274 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4275 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4277 CC="$ac_save_CC $ac_arg"
4278 if ac_fn_c_try_compile "$LINENO"; then :
4279 ac_cv_prog_cc_c89=$ac_arg
4281 rm -f core conftest.err conftest.$ac_objext
4282 test "x$ac_cv_prog_cc_c89" != "xno" && break
4283 done
4284 rm -f conftest.$ac_ext
4285 CC=$ac_save_CC
4288 # AC_CACHE_VAL
4289 case "x$ac_cv_prog_cc_c89" in
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4292 $as_echo "none needed" >&6; } ;;
4293 xno)
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4295 $as_echo "unsupported" >&6; } ;;
4297 CC="$CC $ac_cv_prog_cc_c89"
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4299 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4300 esac
4301 if test "x$ac_cv_prog_cc_c89" != xno; then :
4305 ac_ext=c
4306 ac_cpp='$CPP $CPPFLAGS'
4307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4311 ac_ext=c
4312 ac_cpp='$CPP $CPPFLAGS'
4313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4317 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4318 if ${am_cv_prog_cc_c_o+:} false; then :
4319 $as_echo_n "(cached) " >&6
4320 else
4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h. */
4325 main ()
4329 return 0;
4331 _ACEOF
4332 # Make sure it works both with $CC and with simple cc.
4333 # Following AC_PROG_CC_C_O, we do the test twice because some
4334 # compilers refuse to overwrite an existing .o file with -o,
4335 # though they will create one.
4336 am_cv_prog_cc_c_o=yes
4337 for am_i in 1 2; do
4338 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4339 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4340 ac_status=$?
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } \
4343 && test -f conftest2.$ac_objext; then
4344 : OK
4345 else
4346 am_cv_prog_cc_c_o=no
4347 break
4349 done
4350 rm -f core conftest*
4351 unset am_i
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4354 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4355 if test "$am_cv_prog_cc_c_o" != yes; then
4356 # Losing compiler, so override with the script.
4357 # FIXME: It is wrong to rewrite CC.
4358 # But if we don't then we get into trouble of one sort or another.
4359 # A longer-term fix would be to have automake use am__CC in this case,
4360 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4361 CC="$am_aux_dir/compile $CC"
4363 ac_ext=c
4364 ac_cpp='$CPP $CPPFLAGS'
4365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4369 DEPDIR="${am__leading_dot}deps"
4371 ac_config_commands="$ac_config_commands depfiles"
4374 am_make=${MAKE-make}
4375 cat > confinc << 'END'
4376 am__doit:
4377 @echo this is the am__doit target
4378 .PHONY: am__doit
4380 # If we don't find an include directive, just comment out the code.
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4382 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4383 am__include="#"
4384 am__quote=
4385 _am_result=none
4386 # First try GNU make style include.
4387 echo "include confinc" > confmf
4388 # Ignore all kinds of additional output from 'make'.
4389 case `$am_make -s -f confmf 2> /dev/null` in #(
4390 *the\ am__doit\ target*)
4391 am__include=include
4392 am__quote=
4393 _am_result=GNU
4395 esac
4396 # Now try BSD make style include.
4397 if test "$am__include" = "#"; then
4398 echo '.include "confinc"' > confmf
4399 case `$am_make -s -f confmf 2> /dev/null` in #(
4400 *the\ am__doit\ target*)
4401 am__include=.include
4402 am__quote="\""
4403 _am_result=BSD
4405 esac
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4410 $as_echo "$_am_result" >&6; }
4411 rm -f confinc confmf
4413 # Check whether --enable-dependency-tracking was given.
4414 if test "${enable_dependency_tracking+set}" = set; then :
4415 enableval=$enable_dependency_tracking;
4418 if test "x$enable_dependency_tracking" != xno; then
4419 am_depcomp="$ac_aux_dir/depcomp"
4420 AMDEPBACKSLASH='\'
4421 am__nodep='_no'
4423 if test "x$enable_dependency_tracking" != xno; then
4424 AMDEP_TRUE=
4425 AMDEP_FALSE='#'
4426 else
4427 AMDEP_TRUE='#'
4428 AMDEP_FALSE=
4433 depcc="$CC" am_compiler_list=
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4436 $as_echo_n "checking dependency style of $depcc... " >&6; }
4437 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4438 $as_echo_n "(cached) " >&6
4439 else
4440 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4441 # We make a subdir and do the tests there. Otherwise we can end up
4442 # making bogus files that we don't know about and never remove. For
4443 # instance it was reported that on HP-UX the gcc test will end up
4444 # making a dummy file named 'D' -- because '-MD' means "put the output
4445 # in D".
4446 rm -rf conftest.dir
4447 mkdir conftest.dir
4448 # Copy depcomp to subdir because otherwise we won't find it if we're
4449 # using a relative directory.
4450 cp "$am_depcomp" conftest.dir
4451 cd conftest.dir
4452 # We will build objects and dependencies in a subdirectory because
4453 # it helps to detect inapplicable dependency modes. For instance
4454 # both Tru64's cc and ICC support -MD to output dependencies as a
4455 # side effect of compilation, but ICC will put the dependencies in
4456 # the current directory while Tru64 will put them in the object
4457 # directory.
4458 mkdir sub
4460 am_cv_CC_dependencies_compiler_type=none
4461 if test "$am_compiler_list" = ""; then
4462 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4464 am__universal=false
4465 case " $depcc " in #(
4466 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4467 esac
4469 for depmode in $am_compiler_list; do
4470 # Setup a source with many dependencies, because some compilers
4471 # like to wrap large dependency lists on column 80 (with \), and
4472 # we should not choose a depcomp mode which is confused by this.
4474 # We need to recreate these files for each test, as the compiler may
4475 # overwrite some of them when testing with obscure command lines.
4476 # This happens at least with the AIX C compiler.
4477 : > sub/conftest.c
4478 for i in 1 2 3 4 5 6; do
4479 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4480 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4481 # Solaris 10 /bin/sh.
4482 echo '/* dummy */' > sub/conftst$i.h
4483 done
4484 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4486 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4487 # mode. It turns out that the SunPro C++ compiler does not properly
4488 # handle '-M -o', and we need to detect this. Also, some Intel
4489 # versions had trouble with output in subdirs.
4490 am__obj=sub/conftest.${OBJEXT-o}
4491 am__minus_obj="-o $am__obj"
4492 case $depmode in
4493 gcc)
4494 # This depmode causes a compiler race in universal mode.
4495 test "$am__universal" = false || continue
4497 nosideeffect)
4498 # After this tag, mechanisms are not by side-effect, so they'll
4499 # only be used when explicitly requested.
4500 if test "x$enable_dependency_tracking" = xyes; then
4501 continue
4502 else
4503 break
4506 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4507 # This compiler won't grok '-c -o', but also, the minuso test has
4508 # not run yet. These depmodes are late enough in the game, and
4509 # so weak that their functioning should not be impacted.
4510 am__obj=conftest.${OBJEXT-o}
4511 am__minus_obj=
4513 none) break ;;
4514 esac
4515 if depmode=$depmode \
4516 source=sub/conftest.c object=$am__obj \
4517 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4518 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4519 >/dev/null 2>conftest.err &&
4520 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4521 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4522 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4523 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4524 # icc doesn't choke on unknown options, it will just issue warnings
4525 # or remarks (even with -Werror). So we grep stderr for any message
4526 # that says an option was ignored or not supported.
4527 # When given -MP, icc 7.0 and 7.1 complain thusly:
4528 # icc: Command line warning: ignoring option '-M'; no argument required
4529 # The diagnosis changed in icc 8.0:
4530 # icc: Command line remark: option '-MP' not supported
4531 if (grep 'ignoring option' conftest.err ||
4532 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4533 am_cv_CC_dependencies_compiler_type=$depmode
4534 break
4537 done
4539 cd ..
4540 rm -rf conftest.dir
4541 else
4542 am_cv_CC_dependencies_compiler_type=none
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4547 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4548 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4551 test "x$enable_dependency_tracking" != xno \
4552 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4553 am__fastdepCC_TRUE=
4554 am__fastdepCC_FALSE='#'
4555 else
4556 am__fastdepCC_TRUE='#'
4557 am__fastdepCC_FALSE=
4561 ac_ext=cpp
4562 ac_cpp='$CXXCPP $CPPFLAGS'
4563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4566 if test -z "$CXX"; then
4567 if test -n "$CCC"; then
4568 CXX=$CCC
4569 else
4570 if test -n "$ac_tool_prefix"; then
4571 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4573 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4574 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4576 $as_echo_n "checking for $ac_word... " >&6; }
4577 if ${ac_cv_prog_CXX+:} false; then :
4578 $as_echo_n "(cached) " >&6
4579 else
4580 if test -n "$CXX"; then
4581 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4582 else
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 for as_dir in $PATH
4586 IFS=$as_save_IFS
4587 test -z "$as_dir" && as_dir=.
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4590 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4592 break 2
4594 done
4595 done
4596 IFS=$as_save_IFS
4600 CXX=$ac_cv_prog_CXX
4601 if test -n "$CXX"; then
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4603 $as_echo "$CXX" >&6; }
4604 else
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4606 $as_echo "no" >&6; }
4610 test -n "$CXX" && break
4611 done
4613 if test -z "$CXX"; then
4614 ac_ct_CXX=$CXX
4615 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4617 # Extract the first word of "$ac_prog", so it can be a program name with args.
4618 set dummy $ac_prog; ac_word=$2
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4620 $as_echo_n "checking for $ac_word... " >&6; }
4621 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4622 $as_echo_n "(cached) " >&6
4623 else
4624 if test -n "$ac_ct_CXX"; then
4625 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4626 else
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 for as_dir in $PATH
4630 IFS=$as_save_IFS
4631 test -z "$as_dir" && as_dir=.
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4634 ac_cv_prog_ac_ct_CXX="$ac_prog"
4635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4636 break 2
4638 done
4639 done
4640 IFS=$as_save_IFS
4644 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4645 if test -n "$ac_ct_CXX"; then
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4647 $as_echo "$ac_ct_CXX" >&6; }
4648 else
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4650 $as_echo "no" >&6; }
4654 test -n "$ac_ct_CXX" && break
4655 done
4657 if test "x$ac_ct_CXX" = x; then
4658 CXX="g++"
4659 else
4660 case $cross_compiling:$ac_tool_warned in
4661 yes:)
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4664 ac_tool_warned=yes ;;
4665 esac
4666 CXX=$ac_ct_CXX
4672 # Provide some information about the compiler.
4673 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4674 set X $ac_compile
4675 ac_compiler=$2
4676 for ac_option in --version -v -V -qversion; do
4677 { { ac_try="$ac_compiler $ac_option >&5"
4678 case "(($ac_try" in
4679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4681 esac
4682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4683 $as_echo "$ac_try_echo"; } >&5
4684 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4685 ac_status=$?
4686 if test -s conftest.err; then
4687 sed '10a\
4688 ... rest of stderr output deleted ...
4689 10q' conftest.err >conftest.er1
4690 cat conftest.er1 >&5
4692 rm -f conftest.er1 conftest.err
4693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4694 test $ac_status = 0; }
4695 done
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4698 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4699 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4700 $as_echo_n "(cached) " >&6
4701 else
4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703 /* end confdefs.h. */
4706 main ()
4708 #ifndef __GNUC__
4709 choke me
4710 #endif
4713 return 0;
4715 _ACEOF
4716 if ac_fn_cxx_try_compile "$LINENO"; then :
4717 ac_compiler_gnu=yes
4718 else
4719 ac_compiler_gnu=no
4721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4722 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4726 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4727 if test $ac_compiler_gnu = yes; then
4728 GXX=yes
4729 else
4730 GXX=
4732 ac_test_CXXFLAGS=${CXXFLAGS+set}
4733 ac_save_CXXFLAGS=$CXXFLAGS
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4735 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4736 if ${ac_cv_prog_cxx_g+:} false; then :
4737 $as_echo_n "(cached) " >&6
4738 else
4739 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4740 ac_cxx_werror_flag=yes
4741 ac_cv_prog_cxx_g=no
4742 CXXFLAGS="-g"
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4747 main ()
4751 return 0;
4753 _ACEOF
4754 if ac_fn_cxx_try_compile "$LINENO"; then :
4755 ac_cv_prog_cxx_g=yes
4756 else
4757 CXXFLAGS=""
4758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4759 /* end confdefs.h. */
4762 main ()
4766 return 0;
4768 _ACEOF
4769 if ac_fn_cxx_try_compile "$LINENO"; then :
4771 else
4772 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4773 CXXFLAGS="-g"
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4778 main ()
4782 return 0;
4784 _ACEOF
4785 if ac_fn_cxx_try_compile "$LINENO"; then :
4786 ac_cv_prog_cxx_g=yes
4788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4793 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4796 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4797 if test "$ac_test_CXXFLAGS" = set; then
4798 CXXFLAGS=$ac_save_CXXFLAGS
4799 elif test $ac_cv_prog_cxx_g = yes; then
4800 if test "$GXX" = yes; then
4801 CXXFLAGS="-g -O2"
4802 else
4803 CXXFLAGS="-g"
4805 else
4806 if test "$GXX" = yes; then
4807 CXXFLAGS="-O2"
4808 else
4809 CXXFLAGS=
4812 ac_ext=c
4813 ac_cpp='$CPP $CPPFLAGS'
4814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4818 depcc="$CXX" am_compiler_list=
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4821 $as_echo_n "checking dependency style of $depcc... " >&6; }
4822 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4823 $as_echo_n "(cached) " >&6
4824 else
4825 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4826 # We make a subdir and do the tests there. Otherwise we can end up
4827 # making bogus files that we don't know about and never remove. For
4828 # instance it was reported that on HP-UX the gcc test will end up
4829 # making a dummy file named 'D' -- because '-MD' means "put the output
4830 # in D".
4831 rm -rf conftest.dir
4832 mkdir conftest.dir
4833 # Copy depcomp to subdir because otherwise we won't find it if we're
4834 # using a relative directory.
4835 cp "$am_depcomp" conftest.dir
4836 cd conftest.dir
4837 # We will build objects and dependencies in a subdirectory because
4838 # it helps to detect inapplicable dependency modes. For instance
4839 # both Tru64's cc and ICC support -MD to output dependencies as a
4840 # side effect of compilation, but ICC will put the dependencies in
4841 # the current directory while Tru64 will put them in the object
4842 # directory.
4843 mkdir sub
4845 am_cv_CXX_dependencies_compiler_type=none
4846 if test "$am_compiler_list" = ""; then
4847 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4849 am__universal=false
4850 case " $depcc " in #(
4851 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4852 esac
4854 for depmode in $am_compiler_list; do
4855 # Setup a source with many dependencies, because some compilers
4856 # like to wrap large dependency lists on column 80 (with \), and
4857 # we should not choose a depcomp mode which is confused by this.
4859 # We need to recreate these files for each test, as the compiler may
4860 # overwrite some of them when testing with obscure command lines.
4861 # This happens at least with the AIX C compiler.
4862 : > sub/conftest.c
4863 for i in 1 2 3 4 5 6; do
4864 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4865 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4866 # Solaris 10 /bin/sh.
4867 echo '/* dummy */' > sub/conftst$i.h
4868 done
4869 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4871 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4872 # mode. It turns out that the SunPro C++ compiler does not properly
4873 # handle '-M -o', and we need to detect this. Also, some Intel
4874 # versions had trouble with output in subdirs.
4875 am__obj=sub/conftest.${OBJEXT-o}
4876 am__minus_obj="-o $am__obj"
4877 case $depmode in
4878 gcc)
4879 # This depmode causes a compiler race in universal mode.
4880 test "$am__universal" = false || continue
4882 nosideeffect)
4883 # After this tag, mechanisms are not by side-effect, so they'll
4884 # only be used when explicitly requested.
4885 if test "x$enable_dependency_tracking" = xyes; then
4886 continue
4887 else
4888 break
4891 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4892 # This compiler won't grok '-c -o', but also, the minuso test has
4893 # not run yet. These depmodes are late enough in the game, and
4894 # so weak that their functioning should not be impacted.
4895 am__obj=conftest.${OBJEXT-o}
4896 am__minus_obj=
4898 none) break ;;
4899 esac
4900 if depmode=$depmode \
4901 source=sub/conftest.c object=$am__obj \
4902 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4903 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4904 >/dev/null 2>conftest.err &&
4905 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4906 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4907 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4908 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4909 # icc doesn't choke on unknown options, it will just issue warnings
4910 # or remarks (even with -Werror). So we grep stderr for any message
4911 # that says an option was ignored or not supported.
4912 # When given -MP, icc 7.0 and 7.1 complain thusly:
4913 # icc: Command line warning: ignoring option '-M'; no argument required
4914 # The diagnosis changed in icc 8.0:
4915 # icc: Command line remark: option '-MP' not supported
4916 if (grep 'ignoring option' conftest.err ||
4917 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4918 am_cv_CXX_dependencies_compiler_type=$depmode
4919 break
4922 done
4924 cd ..
4925 rm -rf conftest.dir
4926 else
4927 am_cv_CXX_dependencies_compiler_type=none
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4932 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4933 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4936 test "x$enable_dependency_tracking" != xno \
4937 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4938 am__fastdepCXX_TRUE=
4939 am__fastdepCXX_FALSE='#'
4940 else
4941 am__fastdepCXX_TRUE='#'
4942 am__fastdepCXX_FALSE=
4946 CFLAGS=$save_CFLAGS
4952 # By default we simply use the C compiler to build assembly code.
4954 test "${CCAS+set}" = set || CCAS=$CC
4955 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4959 depcc="$CCAS" am_compiler_list=
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4962 $as_echo_n "checking dependency style of $depcc... " >&6; }
4963 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4964 $as_echo_n "(cached) " >&6
4965 else
4966 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4967 # We make a subdir and do the tests there. Otherwise we can end up
4968 # making bogus files that we don't know about and never remove. For
4969 # instance it was reported that on HP-UX the gcc test will end up
4970 # making a dummy file named 'D' -- because '-MD' means "put the output
4971 # in D".
4972 rm -rf conftest.dir
4973 mkdir conftest.dir
4974 # Copy depcomp to subdir because otherwise we won't find it if we're
4975 # using a relative directory.
4976 cp "$am_depcomp" conftest.dir
4977 cd conftest.dir
4978 # We will build objects and dependencies in a subdirectory because
4979 # it helps to detect inapplicable dependency modes. For instance
4980 # both Tru64's cc and ICC support -MD to output dependencies as a
4981 # side effect of compilation, but ICC will put the dependencies in
4982 # the current directory while Tru64 will put them in the object
4983 # directory.
4984 mkdir sub
4986 am_cv_CCAS_dependencies_compiler_type=none
4987 if test "$am_compiler_list" = ""; then
4988 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4990 am__universal=false
4993 for depmode in $am_compiler_list; do
4994 # Setup a source with many dependencies, because some compilers
4995 # like to wrap large dependency lists on column 80 (with \), and
4996 # we should not choose a depcomp mode which is confused by this.
4998 # We need to recreate these files for each test, as the compiler may
4999 # overwrite some of them when testing with obscure command lines.
5000 # This happens at least with the AIX C compiler.
5001 : > sub/conftest.c
5002 for i in 1 2 3 4 5 6; do
5003 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5004 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5005 # Solaris 10 /bin/sh.
5006 echo '/* dummy */' > sub/conftst$i.h
5007 done
5008 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5010 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5011 # mode. It turns out that the SunPro C++ compiler does not properly
5012 # handle '-M -o', and we need to detect this. Also, some Intel
5013 # versions had trouble with output in subdirs.
5014 am__obj=sub/conftest.${OBJEXT-o}
5015 am__minus_obj="-o $am__obj"
5016 case $depmode in
5017 gcc)
5018 # This depmode causes a compiler race in universal mode.
5019 test "$am__universal" = false || continue
5021 nosideeffect)
5022 # After this tag, mechanisms are not by side-effect, so they'll
5023 # only be used when explicitly requested.
5024 if test "x$enable_dependency_tracking" = xyes; then
5025 continue
5026 else
5027 break
5030 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5031 # This compiler won't grok '-c -o', but also, the minuso test has
5032 # not run yet. These depmodes are late enough in the game, and
5033 # so weak that their functioning should not be impacted.
5034 am__obj=conftest.${OBJEXT-o}
5035 am__minus_obj=
5037 none) break ;;
5038 esac
5039 if depmode=$depmode \
5040 source=sub/conftest.c object=$am__obj \
5041 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5042 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5043 >/dev/null 2>conftest.err &&
5044 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5045 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5046 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5047 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5048 # icc doesn't choke on unknown options, it will just issue warnings
5049 # or remarks (even with -Werror). So we grep stderr for any message
5050 # that says an option was ignored or not supported.
5051 # When given -MP, icc 7.0 and 7.1 complain thusly:
5052 # icc: Command line warning: ignoring option '-M'; no argument required
5053 # The diagnosis changed in icc 8.0:
5054 # icc: Command line remark: option '-MP' not supported
5055 if (grep 'ignoring option' conftest.err ||
5056 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5057 am_cv_CCAS_dependencies_compiler_type=$depmode
5058 break
5061 done
5063 cd ..
5064 rm -rf conftest.dir
5065 else
5066 am_cv_CCAS_dependencies_compiler_type=none
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5071 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5072 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5075 test "x$enable_dependency_tracking" != xno \
5076 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5077 am__fastdepCCAS_TRUE=
5078 am__fastdepCCAS_FALSE='#'
5079 else
5080 am__fastdepCCAS_TRUE='#'
5081 am__fastdepCCAS_FALSE=
5086 case `pwd` in
5087 *\ * | *\ *)
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5089 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5090 esac
5094 macro_version='2.2.7a'
5095 macro_revision='1.3134'
5109 ltmain="$ac_aux_dir/ltmain.sh"
5111 # Backslashify metacharacters that are still active within
5112 # double-quoted strings.
5113 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5115 # Same as above, but do not quote variable references.
5116 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5118 # Sed substitution to delay expansion of an escaped shell variable in a
5119 # double_quote_subst'ed string.
5120 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5122 # Sed substitution to delay expansion of an escaped single quote.
5123 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5125 # Sed substitution to avoid accidental globbing in evaled expressions
5126 no_glob_subst='s/\*/\\\*/g'
5128 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5129 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5130 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5133 $as_echo_n "checking how to print strings... " >&6; }
5134 # Test print first, because it will be a builtin if present.
5135 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5136 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5137 ECHO='print -r --'
5138 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5139 ECHO='printf %s\n'
5140 else
5141 # Use this function as a fallback that always works.
5142 func_fallback_echo ()
5144 eval 'cat <<_LTECHO_EOF
5146 _LTECHO_EOF'
5148 ECHO='func_fallback_echo'
5151 # func_echo_all arg...
5152 # Invoke $ECHO with all args, space-separated.
5153 func_echo_all ()
5155 $ECHO ""
5158 case "$ECHO" in
5159 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5160 $as_echo "printf" >&6; } ;;
5161 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5162 $as_echo "print -r" >&6; } ;;
5163 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5164 $as_echo "cat" >&6; } ;;
5165 esac
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5181 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5182 if ${ac_cv_path_SED+:} false; then :
5183 $as_echo_n "(cached) " >&6
5184 else
5185 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5186 for ac_i in 1 2 3 4 5 6 7; do
5187 ac_script="$ac_script$as_nl$ac_script"
5188 done
5189 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5190 { ac_script=; unset ac_script;}
5191 if test -z "$SED"; then
5192 ac_path_SED_found=false
5193 # Loop through the user's path and test for each of PROGNAME-LIST
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_prog in sed gsed; do
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5202 as_fn_executable_p "$ac_path_SED" || continue
5203 # Check for GNU ac_path_SED and select it if it is found.
5204 # Check for GNU $ac_path_SED
5205 case `"$ac_path_SED" --version 2>&1` in
5206 *GNU*)
5207 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5209 ac_count=0
5210 $as_echo_n 0123456789 >"conftest.in"
5211 while :
5213 cat "conftest.in" "conftest.in" >"conftest.tmp"
5214 mv "conftest.tmp" "conftest.in"
5215 cp "conftest.in" "conftest.nl"
5216 $as_echo '' >> "conftest.nl"
5217 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5219 as_fn_arith $ac_count + 1 && ac_count=$as_val
5220 if test $ac_count -gt ${ac_path_SED_max-0}; then
5221 # Best one so far, save it but keep looking for a better one
5222 ac_cv_path_SED="$ac_path_SED"
5223 ac_path_SED_max=$ac_count
5225 # 10*(2^10) chars as input seems more than enough
5226 test $ac_count -gt 10 && break
5227 done
5228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5229 esac
5231 $ac_path_SED_found && break 3
5232 done
5233 done
5234 done
5235 IFS=$as_save_IFS
5236 if test -z "$ac_cv_path_SED"; then
5237 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5239 else
5240 ac_cv_path_SED=$SED
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5245 $as_echo "$ac_cv_path_SED" >&6; }
5246 SED="$ac_cv_path_SED"
5247 rm -f conftest.sed
5249 test -z "$SED" && SED=sed
5250 Xsed="$SED -e 1s/^X//"
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5263 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5264 if ${ac_cv_path_GREP+:} false; then :
5265 $as_echo_n "(cached) " >&6
5266 else
5267 if test -z "$GREP"; then
5268 ac_path_GREP_found=false
5269 # Loop through the user's path and test for each of PROGNAME-LIST
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5273 IFS=$as_save_IFS
5274 test -z "$as_dir" && as_dir=.
5275 for ac_prog in grep ggrep; do
5276 for ac_exec_ext in '' $ac_executable_extensions; do
5277 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5278 as_fn_executable_p "$ac_path_GREP" || continue
5279 # Check for GNU ac_path_GREP and select it if it is found.
5280 # Check for GNU $ac_path_GREP
5281 case `"$ac_path_GREP" --version 2>&1` in
5282 *GNU*)
5283 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5285 ac_count=0
5286 $as_echo_n 0123456789 >"conftest.in"
5287 while :
5289 cat "conftest.in" "conftest.in" >"conftest.tmp"
5290 mv "conftest.tmp" "conftest.in"
5291 cp "conftest.in" "conftest.nl"
5292 $as_echo 'GREP' >> "conftest.nl"
5293 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5294 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5295 as_fn_arith $ac_count + 1 && ac_count=$as_val
5296 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5297 # Best one so far, save it but keep looking for a better one
5298 ac_cv_path_GREP="$ac_path_GREP"
5299 ac_path_GREP_max=$ac_count
5301 # 10*(2^10) chars as input seems more than enough
5302 test $ac_count -gt 10 && break
5303 done
5304 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5305 esac
5307 $ac_path_GREP_found && break 3
5308 done
5309 done
5310 done
5311 IFS=$as_save_IFS
5312 if test -z "$ac_cv_path_GREP"; then
5313 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5315 else
5316 ac_cv_path_GREP=$GREP
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5321 $as_echo "$ac_cv_path_GREP" >&6; }
5322 GREP="$ac_cv_path_GREP"
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5326 $as_echo_n "checking for egrep... " >&6; }
5327 if ${ac_cv_path_EGREP+:} false; then :
5328 $as_echo_n "(cached) " >&6
5329 else
5330 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5331 then ac_cv_path_EGREP="$GREP -E"
5332 else
5333 if test -z "$EGREP"; then
5334 ac_path_EGREP_found=false
5335 # Loop through the user's path and test for each of PROGNAME-LIST
5336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5339 IFS=$as_save_IFS
5340 test -z "$as_dir" && as_dir=.
5341 for ac_prog in egrep; do
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5344 as_fn_executable_p "$ac_path_EGREP" || continue
5345 # Check for GNU ac_path_EGREP and select it if it is found.
5346 # Check for GNU $ac_path_EGREP
5347 case `"$ac_path_EGREP" --version 2>&1` in
5348 *GNU*)
5349 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5351 ac_count=0
5352 $as_echo_n 0123456789 >"conftest.in"
5353 while :
5355 cat "conftest.in" "conftest.in" >"conftest.tmp"
5356 mv "conftest.tmp" "conftest.in"
5357 cp "conftest.in" "conftest.nl"
5358 $as_echo 'EGREP' >> "conftest.nl"
5359 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5360 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5361 as_fn_arith $ac_count + 1 && ac_count=$as_val
5362 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5363 # Best one so far, save it but keep looking for a better one
5364 ac_cv_path_EGREP="$ac_path_EGREP"
5365 ac_path_EGREP_max=$ac_count
5367 # 10*(2^10) chars as input seems more than enough
5368 test $ac_count -gt 10 && break
5369 done
5370 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5371 esac
5373 $ac_path_EGREP_found && break 3
5374 done
5375 done
5376 done
5377 IFS=$as_save_IFS
5378 if test -z "$ac_cv_path_EGREP"; then
5379 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5381 else
5382 ac_cv_path_EGREP=$EGREP
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5388 $as_echo "$ac_cv_path_EGREP" >&6; }
5389 EGREP="$ac_cv_path_EGREP"
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5393 $as_echo_n "checking for fgrep... " >&6; }
5394 if ${ac_cv_path_FGREP+:} false; then :
5395 $as_echo_n "(cached) " >&6
5396 else
5397 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5398 then ac_cv_path_FGREP="$GREP -F"
5399 else
5400 if test -z "$FGREP"; then
5401 ac_path_FGREP_found=false
5402 # Loop through the user's path and test for each of PROGNAME-LIST
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5406 IFS=$as_save_IFS
5407 test -z "$as_dir" && as_dir=.
5408 for ac_prog in fgrep; do
5409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5411 as_fn_executable_p "$ac_path_FGREP" || continue
5412 # Check for GNU ac_path_FGREP and select it if it is found.
5413 # Check for GNU $ac_path_FGREP
5414 case `"$ac_path_FGREP" --version 2>&1` in
5415 *GNU*)
5416 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5418 ac_count=0
5419 $as_echo_n 0123456789 >"conftest.in"
5420 while :
5422 cat "conftest.in" "conftest.in" >"conftest.tmp"
5423 mv "conftest.tmp" "conftest.in"
5424 cp "conftest.in" "conftest.nl"
5425 $as_echo 'FGREP' >> "conftest.nl"
5426 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5427 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5428 as_fn_arith $ac_count + 1 && ac_count=$as_val
5429 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5430 # Best one so far, save it but keep looking for a better one
5431 ac_cv_path_FGREP="$ac_path_FGREP"
5432 ac_path_FGREP_max=$ac_count
5434 # 10*(2^10) chars as input seems more than enough
5435 test $ac_count -gt 10 && break
5436 done
5437 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5438 esac
5440 $ac_path_FGREP_found && break 3
5441 done
5442 done
5443 done
5444 IFS=$as_save_IFS
5445 if test -z "$ac_cv_path_FGREP"; then
5446 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5448 else
5449 ac_cv_path_FGREP=$FGREP
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5455 $as_echo "$ac_cv_path_FGREP" >&6; }
5456 FGREP="$ac_cv_path_FGREP"
5459 test -z "$GREP" && GREP=grep
5479 # Check whether --with-gnu-ld was given.
5480 if test "${with_gnu_ld+set}" = set; then :
5481 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5482 else
5483 with_gnu_ld=no
5486 ac_prog=ld
5487 if test "$GCC" = yes; then
5488 # Check if gcc -print-prog-name=ld gives a path.
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5490 $as_echo_n "checking for ld used by $CC... " >&6; }
5491 case $host in
5492 *-*-mingw*)
5493 # gcc leaves a trailing carriage return which upsets mingw
5494 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5496 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5497 esac
5498 case $ac_prog in
5499 # Accept absolute paths.
5500 [\\/]* | ?:[\\/]*)
5501 re_direlt='/[^/][^/]*/\.\./'
5502 # Canonicalize the pathname of ld
5503 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5504 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5505 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5506 done
5507 test -z "$LD" && LD="$ac_prog"
5510 # If it fails, then pretend we aren't using GCC.
5511 ac_prog=ld
5514 # If it is relative, then search for the first ld in PATH.
5515 with_gnu_ld=unknown
5517 esac
5518 elif test "$with_gnu_ld" = yes; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5520 $as_echo_n "checking for GNU ld... " >&6; }
5521 else
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5523 $as_echo_n "checking for non-GNU ld... " >&6; }
5525 if ${lt_cv_path_LD+:} false; then :
5526 $as_echo_n "(cached) " >&6
5527 else
5528 if test -z "$LD"; then
5529 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5530 for ac_dir in $PATH; do
5531 IFS="$lt_save_ifs"
5532 test -z "$ac_dir" && ac_dir=.
5533 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5534 lt_cv_path_LD="$ac_dir/$ac_prog"
5535 # Check to see if the program is GNU ld. I'd rather use --version,
5536 # but apparently some variants of GNU ld only accept -v.
5537 # Break only if it was the GNU/non-GNU ld that we prefer.
5538 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5539 *GNU* | *'with BFD'*)
5540 test "$with_gnu_ld" != no && break
5543 test "$with_gnu_ld" != yes && break
5545 esac
5547 done
5548 IFS="$lt_save_ifs"
5549 else
5550 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5554 LD="$lt_cv_path_LD"
5555 if test -n "$LD"; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5557 $as_echo "$LD" >&6; }
5558 else
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5560 $as_echo "no" >&6; }
5562 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5564 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5565 if ${lt_cv_prog_gnu_ld+:} false; then :
5566 $as_echo_n "(cached) " >&6
5567 else
5568 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5569 case `$LD -v 2>&1 </dev/null` in
5570 *GNU* | *'with BFD'*)
5571 lt_cv_prog_gnu_ld=yes
5574 lt_cv_prog_gnu_ld=no
5576 esac
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5579 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5580 with_gnu_ld=$lt_cv_prog_gnu_ld
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5591 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5592 if ${lt_cv_path_NM+:} false; then :
5593 $as_echo_n "(cached) " >&6
5594 else
5595 if test -n "$NM"; then
5596 # Let the user override the test.
5597 lt_cv_path_NM="$NM"
5598 else
5599 lt_nm_to_check="${ac_tool_prefix}nm"
5600 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5601 lt_nm_to_check="$lt_nm_to_check nm"
5603 for lt_tmp_nm in $lt_nm_to_check; do
5604 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5605 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5606 IFS="$lt_save_ifs"
5607 test -z "$ac_dir" && ac_dir=.
5608 tmp_nm="$ac_dir/$lt_tmp_nm"
5609 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5610 # Check to see if the nm accepts a BSD-compat flag.
5611 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5612 # nm: unknown option "B" ignored
5613 # Tru64's nm complains that /dev/null is an invalid object file
5614 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5615 */dev/null* | *'Invalid file or object type'*)
5616 lt_cv_path_NM="$tmp_nm -B"
5617 break
5620 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5621 */dev/null*)
5622 lt_cv_path_NM="$tmp_nm -p"
5623 break
5626 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5627 continue # so that we can try to find one that supports BSD flags
5629 esac
5631 esac
5633 done
5634 IFS="$lt_save_ifs"
5635 done
5636 : ${lt_cv_path_NM=no}
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5640 $as_echo "$lt_cv_path_NM" >&6; }
5641 if test "$lt_cv_path_NM" != "no"; then
5642 NM="$lt_cv_path_NM"
5643 else
5644 # Didn't find any BSD compatible name lister, look for dumpbin.
5645 if test -n "$DUMPBIN"; then :
5646 # Let the user override the test.
5647 else
5648 if test -n "$ac_tool_prefix"; then
5649 for ac_prog in dumpbin "link -dump"
5651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5654 $as_echo_n "checking for $ac_word... " >&6; }
5655 if ${ac_cv_prog_DUMPBIN+:} false; then :
5656 $as_echo_n "(cached) " >&6
5657 else
5658 if test -n "$DUMPBIN"; then
5659 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5660 else
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662 for as_dir in $PATH
5664 IFS=$as_save_IFS
5665 test -z "$as_dir" && as_dir=.
5666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5668 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 break 2
5672 done
5673 done
5674 IFS=$as_save_IFS
5678 DUMPBIN=$ac_cv_prog_DUMPBIN
5679 if test -n "$DUMPBIN"; then
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5681 $as_echo "$DUMPBIN" >&6; }
5682 else
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684 $as_echo "no" >&6; }
5688 test -n "$DUMPBIN" && break
5689 done
5691 if test -z "$DUMPBIN"; then
5692 ac_ct_DUMPBIN=$DUMPBIN
5693 for ac_prog in dumpbin "link -dump"
5695 # Extract the first word of "$ac_prog", so it can be a program name with args.
5696 set dummy $ac_prog; ac_word=$2
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698 $as_echo_n "checking for $ac_word... " >&6; }
5699 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5700 $as_echo_n "(cached) " >&6
5701 else
5702 if test -n "$ac_ct_DUMPBIN"; then
5703 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5704 else
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 for as_dir in $PATH
5708 IFS=$as_save_IFS
5709 test -z "$as_dir" && as_dir=.
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5712 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 break 2
5716 done
5717 done
5718 IFS=$as_save_IFS
5722 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5723 if test -n "$ac_ct_DUMPBIN"; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5725 $as_echo "$ac_ct_DUMPBIN" >&6; }
5726 else
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 $as_echo "no" >&6; }
5732 test -n "$ac_ct_DUMPBIN" && break
5733 done
5735 if test "x$ac_ct_DUMPBIN" = x; then
5736 DUMPBIN=":"
5737 else
5738 case $cross_compiling:$ac_tool_warned in
5739 yes:)
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5742 ac_tool_warned=yes ;;
5743 esac
5744 DUMPBIN=$ac_ct_DUMPBIN
5748 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5749 *COFF*)
5750 DUMPBIN="$DUMPBIN -symbols"
5753 DUMPBIN=:
5755 esac
5758 if test "$DUMPBIN" != ":"; then
5759 NM="$DUMPBIN"
5762 test -z "$NM" && NM=nm
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5770 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5771 if ${lt_cv_nm_interface+:} false; then :
5772 $as_echo_n "(cached) " >&6
5773 else
5774 lt_cv_nm_interface="BSD nm"
5775 echo "int some_variable = 0;" > conftest.$ac_ext
5776 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5777 (eval "$ac_compile" 2>conftest.err)
5778 cat conftest.err >&5
5779 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5780 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5781 cat conftest.err >&5
5782 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5783 cat conftest.out >&5
5784 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5785 lt_cv_nm_interface="MS dumpbin"
5787 rm -f conftest*
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5790 $as_echo "$lt_cv_nm_interface" >&6; }
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5793 $as_echo_n "checking whether ln -s works... " >&6; }
5794 LN_S=$as_ln_s
5795 if test "$LN_S" = "ln -s"; then
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5797 $as_echo "yes" >&6; }
5798 else
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5800 $as_echo "no, using $LN_S" >&6; }
5803 # find the maximum length of command line arguments
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5805 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5806 if ${lt_cv_sys_max_cmd_len+:} false; then :
5807 $as_echo_n "(cached) " >&6
5808 else
5810 teststring="ABCD"
5812 case $build_os in
5813 msdosdjgpp*)
5814 # On DJGPP, this test can blow up pretty badly due to problems in libc
5815 # (any single argument exceeding 2000 bytes causes a buffer overrun
5816 # during glob expansion). Even if it were fixed, the result of this
5817 # check would be larger than it should be.
5818 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5821 gnu*)
5822 # Under GNU Hurd, this test is not required because there is
5823 # no limit to the length of command line arguments.
5824 # Libtool will interpret -1 as no limit whatsoever
5825 lt_cv_sys_max_cmd_len=-1;
5828 cygwin* | mingw* | cegcc*)
5829 # On Win9x/ME, this test blows up -- it succeeds, but takes
5830 # about 5 minutes as the teststring grows exponentially.
5831 # Worse, since 9x/ME are not pre-emptively multitasking,
5832 # you end up with a "frozen" computer, even though with patience
5833 # the test eventually succeeds (with a max line length of 256k).
5834 # Instead, let's just punt: use the minimum linelength reported by
5835 # all of the supported platforms: 8192 (on NT/2K/XP).
5836 lt_cv_sys_max_cmd_len=8192;
5839 mint*)
5840 # On MiNT this can take a long time and run out of memory.
5841 lt_cv_sys_max_cmd_len=8192;
5844 amigaos*)
5845 # On AmigaOS with pdksh, this test takes hours, literally.
5846 # So we just punt and use a minimum line length of 8192.
5847 lt_cv_sys_max_cmd_len=8192;
5850 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5851 # This has been around since 386BSD, at least. Likely further.
5852 if test -x /sbin/sysctl; then
5853 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5854 elif test -x /usr/sbin/sysctl; then
5855 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5856 else
5857 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5859 # And add a safety zone
5860 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5861 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5864 interix*)
5865 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5866 lt_cv_sys_max_cmd_len=196608
5869 osf*)
5870 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5871 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5872 # nice to cause kernel panics so lets avoid the loop below.
5873 # First set a reasonable default.
5874 lt_cv_sys_max_cmd_len=16384
5876 if test -x /sbin/sysconfig; then
5877 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5878 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5879 esac
5882 sco3.2v5*)
5883 lt_cv_sys_max_cmd_len=102400
5885 sysv5* | sco5v6* | sysv4.2uw2*)
5886 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5887 if test -n "$kargmax"; then
5888 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5889 else
5890 lt_cv_sys_max_cmd_len=32768
5894 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5895 if test -n "$lt_cv_sys_max_cmd_len"; then
5896 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5897 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5898 else
5899 # Make teststring a little bigger before we do anything with it.
5900 # a 1K string should be a reasonable start.
5901 for i in 1 2 3 4 5 6 7 8 ; do
5902 teststring=$teststring$teststring
5903 done
5904 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5905 # If test is not a shell built-in, we'll probably end up computing a
5906 # maximum length that is only half of the actual maximum length, but
5907 # we can't tell.
5908 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5909 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5910 test $i != 17 # 1/2 MB should be enough
5912 i=`expr $i + 1`
5913 teststring=$teststring$teststring
5914 done
5915 # Only check the string length outside the loop.
5916 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5917 teststring=
5918 # Add a significant safety factor because C++ compilers can tack on
5919 # massive amounts of additional arguments before passing them to the
5920 # linker. It appears as though 1/2 is a usable value.
5921 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5924 esac
5928 if test -n $lt_cv_sys_max_cmd_len ; then
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5930 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5931 else
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5933 $as_echo "none" >&6; }
5935 max_cmd_len=$lt_cv_sys_max_cmd_len
5942 : ${CP="cp -f"}
5943 : ${MV="mv -f"}
5944 : ${RM="rm -f"}
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5947 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5948 # Try some XSI features
5949 xsi_shell=no
5950 ( _lt_dummy="a/b/c"
5951 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5952 = c,a/b,, \
5953 && eval 'test $(( 1 + 1 )) -eq 2 \
5954 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5955 && xsi_shell=yes
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5957 $as_echo "$xsi_shell" >&6; }
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5961 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5962 lt_shell_append=no
5963 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5964 >/dev/null 2>&1 \
5965 && lt_shell_append=yes
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5967 $as_echo "$lt_shell_append" >&6; }
5970 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5971 lt_unset=unset
5972 else
5973 lt_unset=false
5980 # test EBCDIC or ASCII
5981 case `echo X|tr X '\101'` in
5982 A) # ASCII based system
5983 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5984 lt_SP2NL='tr \040 \012'
5985 lt_NL2SP='tr \015\012 \040\040'
5987 *) # EBCDIC based system
5988 lt_SP2NL='tr \100 \n'
5989 lt_NL2SP='tr \r\n \100\100'
5991 esac
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6002 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6003 if ${lt_cv_ld_reload_flag+:} false; then :
6004 $as_echo_n "(cached) " >&6
6005 else
6006 lt_cv_ld_reload_flag='-r'
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6009 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6010 reload_flag=$lt_cv_ld_reload_flag
6011 case $reload_flag in
6012 "" | " "*) ;;
6013 *) reload_flag=" $reload_flag" ;;
6014 esac
6015 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6016 case $host_os in
6017 darwin*)
6018 if test "$GCC" = yes; then
6019 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6020 else
6021 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6024 esac
6034 if test -n "$ac_tool_prefix"; then
6035 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6036 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6038 $as_echo_n "checking for $ac_word... " >&6; }
6039 if ${ac_cv_prog_OBJDUMP+:} false; then :
6040 $as_echo_n "(cached) " >&6
6041 else
6042 if test -n "$OBJDUMP"; then
6043 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6044 else
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046 for as_dir in $PATH
6048 IFS=$as_save_IFS
6049 test -z "$as_dir" && as_dir=.
6050 for ac_exec_ext in '' $ac_executable_extensions; do
6051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6052 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6054 break 2
6056 done
6057 done
6058 IFS=$as_save_IFS
6062 OBJDUMP=$ac_cv_prog_OBJDUMP
6063 if test -n "$OBJDUMP"; then
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6065 $as_echo "$OBJDUMP" >&6; }
6066 else
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068 $as_echo "no" >&6; }
6073 if test -z "$ac_cv_prog_OBJDUMP"; then
6074 ac_ct_OBJDUMP=$OBJDUMP
6075 # Extract the first word of "objdump", so it can be a program name with args.
6076 set dummy objdump; ac_word=$2
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078 $as_echo_n "checking for $ac_word... " >&6; }
6079 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6080 $as_echo_n "(cached) " >&6
6081 else
6082 if test -n "$ac_ct_OBJDUMP"; then
6083 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6084 else
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086 for as_dir in $PATH
6088 IFS=$as_save_IFS
6089 test -z "$as_dir" && as_dir=.
6090 for ac_exec_ext in '' $ac_executable_extensions; do
6091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6092 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6094 break 2
6096 done
6097 done
6098 IFS=$as_save_IFS
6102 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6103 if test -n "$ac_ct_OBJDUMP"; then
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6105 $as_echo "$ac_ct_OBJDUMP" >&6; }
6106 else
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108 $as_echo "no" >&6; }
6111 if test "x$ac_ct_OBJDUMP" = x; then
6112 OBJDUMP="false"
6113 else
6114 case $cross_compiling:$ac_tool_warned in
6115 yes:)
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6118 ac_tool_warned=yes ;;
6119 esac
6120 OBJDUMP=$ac_ct_OBJDUMP
6122 else
6123 OBJDUMP="$ac_cv_prog_OBJDUMP"
6126 test -z "$OBJDUMP" && OBJDUMP=objdump
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6137 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6138 if ${lt_cv_deplibs_check_method+:} false; then :
6139 $as_echo_n "(cached) " >&6
6140 else
6141 lt_cv_file_magic_cmd='$MAGIC_CMD'
6142 lt_cv_file_magic_test_file=
6143 lt_cv_deplibs_check_method='unknown'
6144 # Need to set the preceding variable on all platforms that support
6145 # interlibrary dependencies.
6146 # 'none' -- dependencies not supported.
6147 # `unknown' -- same as none, but documents that we really don't know.
6148 # 'pass_all' -- all dependencies passed with no checks.
6149 # 'test_compile' -- check by making test program.
6150 # 'file_magic [[regex]]' -- check by looking for files in library path
6151 # which responds to the $file_magic_cmd with a given extended regex.
6152 # If you have `file' or equivalent on your system and you're not sure
6153 # whether `pass_all' will *always* work, you probably want this one.
6155 case $host_os in
6156 aix[4-9]*)
6157 lt_cv_deplibs_check_method=pass_all
6160 beos*)
6161 lt_cv_deplibs_check_method=pass_all
6164 bsdi[45]*)
6165 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6166 lt_cv_file_magic_cmd='/usr/bin/file -L'
6167 lt_cv_file_magic_test_file=/shlib/libc.so
6170 cygwin*)
6171 # func_win32_libid is a shell function defined in ltmain.sh
6172 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6173 lt_cv_file_magic_cmd='func_win32_libid'
6176 mingw* | pw32*)
6177 # Base MSYS/MinGW do not provide the 'file' command needed by
6178 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6179 # unless we find 'file', for example because we are cross-compiling.
6180 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6181 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6182 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6183 lt_cv_file_magic_cmd='func_win32_libid'
6184 else
6185 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6186 lt_cv_file_magic_cmd='$OBJDUMP -f'
6190 cegcc*)
6191 # use the weaker test based on 'objdump'. See mingw*.
6192 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6193 lt_cv_file_magic_cmd='$OBJDUMP -f'
6196 darwin* | rhapsody*)
6197 lt_cv_deplibs_check_method=pass_all
6200 freebsd* | dragonfly*)
6201 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6202 case $host_cpu in
6203 i*86 )
6204 # Not sure whether the presence of OpenBSD here was a mistake.
6205 # Let's accept both of them until this is cleared up.
6206 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6207 lt_cv_file_magic_cmd=/usr/bin/file
6208 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6210 esac
6211 else
6212 lt_cv_deplibs_check_method=pass_all
6216 gnu*)
6217 lt_cv_deplibs_check_method=pass_all
6220 haiku*)
6221 lt_cv_deplibs_check_method=pass_all
6224 hpux10.20* | hpux11*)
6225 lt_cv_file_magic_cmd=/usr/bin/file
6226 case $host_cpu in
6227 ia64*)
6228 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6229 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6231 hppa*64*)
6232 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]'
6233 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6236 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6237 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6239 esac
6242 interix[3-9]*)
6243 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6244 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6247 irix5* | irix6* | nonstopux*)
6248 case $LD in
6249 *-32|*"-32 ") libmagic=32-bit;;
6250 *-n32|*"-n32 ") libmagic=N32;;
6251 *-64|*"-64 ") libmagic=64-bit;;
6252 *) libmagic=never-match;;
6253 esac
6254 lt_cv_deplibs_check_method=pass_all
6257 # This must be Linux ELF.
6258 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6259 lt_cv_deplibs_check_method=pass_all
6262 netbsd*)
6263 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6265 else
6266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6270 newos6*)
6271 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6272 lt_cv_file_magic_cmd=/usr/bin/file
6273 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6276 *nto* | *qnx*)
6277 lt_cv_deplibs_check_method=pass_all
6280 openbsd*)
6281 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6283 else
6284 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6288 osf3* | osf4* | osf5*)
6289 lt_cv_deplibs_check_method=pass_all
6292 rdos*)
6293 lt_cv_deplibs_check_method=pass_all
6296 solaris*)
6297 lt_cv_deplibs_check_method=pass_all
6300 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6301 lt_cv_deplibs_check_method=pass_all
6304 sysv4 | sysv4.3*)
6305 case $host_vendor in
6306 motorola)
6307 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]'
6308 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6310 ncr)
6311 lt_cv_deplibs_check_method=pass_all
6313 sequent)
6314 lt_cv_file_magic_cmd='/bin/file'
6315 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6317 sni)
6318 lt_cv_file_magic_cmd='/bin/file'
6319 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6320 lt_cv_file_magic_test_file=/lib/libc.so
6322 siemens)
6323 lt_cv_deplibs_check_method=pass_all
6326 lt_cv_deplibs_check_method=pass_all
6328 esac
6331 tpf*)
6332 lt_cv_deplibs_check_method=pass_all
6334 esac
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6338 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6339 file_magic_cmd=$lt_cv_file_magic_cmd
6340 deplibs_check_method=$lt_cv_deplibs_check_method
6341 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6354 if test -n "$ac_tool_prefix"; then
6355 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6356 set dummy ${ac_tool_prefix}ar; ac_word=$2
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6358 $as_echo_n "checking for $ac_word... " >&6; }
6359 if ${ac_cv_prog_AR+:} false; then :
6360 $as_echo_n "(cached) " >&6
6361 else
6362 if test -n "$AR"; then
6363 ac_cv_prog_AR="$AR" # Let the user override the test.
6364 else
6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 for as_dir in $PATH
6368 IFS=$as_save_IFS
6369 test -z "$as_dir" && as_dir=.
6370 for ac_exec_ext in '' $ac_executable_extensions; do
6371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6372 ac_cv_prog_AR="${ac_tool_prefix}ar"
6373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6374 break 2
6376 done
6377 done
6378 IFS=$as_save_IFS
6382 AR=$ac_cv_prog_AR
6383 if test -n "$AR"; then
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6385 $as_echo "$AR" >&6; }
6386 else
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6388 $as_echo "no" >&6; }
6393 if test -z "$ac_cv_prog_AR"; then
6394 ac_ct_AR=$AR
6395 # Extract the first word of "ar", so it can be a program name with args.
6396 set dummy ar; ac_word=$2
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6398 $as_echo_n "checking for $ac_word... " >&6; }
6399 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6400 $as_echo_n "(cached) " >&6
6401 else
6402 if test -n "$ac_ct_AR"; then
6403 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6404 else
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 for as_dir in $PATH
6408 IFS=$as_save_IFS
6409 test -z "$as_dir" && as_dir=.
6410 for ac_exec_ext in '' $ac_executable_extensions; do
6411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6412 ac_cv_prog_ac_ct_AR="ar"
6413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 break 2
6416 done
6417 done
6418 IFS=$as_save_IFS
6422 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6423 if test -n "$ac_ct_AR"; then
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6425 $as_echo "$ac_ct_AR" >&6; }
6426 else
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6428 $as_echo "no" >&6; }
6431 if test "x$ac_ct_AR" = x; then
6432 AR="false"
6433 else
6434 case $cross_compiling:$ac_tool_warned in
6435 yes:)
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6438 ac_tool_warned=yes ;;
6439 esac
6440 AR=$ac_ct_AR
6442 else
6443 AR="$ac_cv_prog_AR"
6446 test -z "$AR" && AR=ar
6447 test -z "$AR_FLAGS" && AR_FLAGS=cru
6459 if test -n "$ac_tool_prefix"; then
6460 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6461 set dummy ${ac_tool_prefix}strip; ac_word=$2
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6463 $as_echo_n "checking for $ac_word... " >&6; }
6464 if ${ac_cv_prog_STRIP+:} false; then :
6465 $as_echo_n "(cached) " >&6
6466 else
6467 if test -n "$STRIP"; then
6468 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6469 else
6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 for as_dir in $PATH
6473 IFS=$as_save_IFS
6474 test -z "$as_dir" && as_dir=.
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6477 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6479 break 2
6481 done
6482 done
6483 IFS=$as_save_IFS
6487 STRIP=$ac_cv_prog_STRIP
6488 if test -n "$STRIP"; then
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6490 $as_echo "$STRIP" >&6; }
6491 else
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6493 $as_echo "no" >&6; }
6498 if test -z "$ac_cv_prog_STRIP"; then
6499 ac_ct_STRIP=$STRIP
6500 # Extract the first word of "strip", so it can be a program name with args.
6501 set dummy strip; ac_word=$2
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6503 $as_echo_n "checking for $ac_word... " >&6; }
6504 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6505 $as_echo_n "(cached) " >&6
6506 else
6507 if test -n "$ac_ct_STRIP"; then
6508 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6509 else
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 for as_dir in $PATH
6513 IFS=$as_save_IFS
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6517 ac_cv_prog_ac_ct_STRIP="strip"
6518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6519 break 2
6521 done
6522 done
6523 IFS=$as_save_IFS
6527 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6528 if test -n "$ac_ct_STRIP"; then
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6530 $as_echo "$ac_ct_STRIP" >&6; }
6531 else
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533 $as_echo "no" >&6; }
6536 if test "x$ac_ct_STRIP" = x; then
6537 STRIP=":"
6538 else
6539 case $cross_compiling:$ac_tool_warned in
6540 yes:)
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6543 ac_tool_warned=yes ;;
6544 esac
6545 STRIP=$ac_ct_STRIP
6547 else
6548 STRIP="$ac_cv_prog_STRIP"
6551 test -z "$STRIP" && STRIP=:
6558 if test -n "$ac_tool_prefix"; then
6559 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6560 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6562 $as_echo_n "checking for $ac_word... " >&6; }
6563 if ${ac_cv_prog_RANLIB+:} false; then :
6564 $as_echo_n "(cached) " >&6
6565 else
6566 if test -n "$RANLIB"; then
6567 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6568 else
6569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570 for as_dir in $PATH
6572 IFS=$as_save_IFS
6573 test -z "$as_dir" && as_dir=.
6574 for ac_exec_ext in '' $ac_executable_extensions; do
6575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6576 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6578 break 2
6580 done
6581 done
6582 IFS=$as_save_IFS
6586 RANLIB=$ac_cv_prog_RANLIB
6587 if test -n "$RANLIB"; then
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6589 $as_echo "$RANLIB" >&6; }
6590 else
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6592 $as_echo "no" >&6; }
6597 if test -z "$ac_cv_prog_RANLIB"; then
6598 ac_ct_RANLIB=$RANLIB
6599 # Extract the first word of "ranlib", so it can be a program name with args.
6600 set dummy ranlib; ac_word=$2
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6602 $as_echo_n "checking for $ac_word... " >&6; }
6603 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6604 $as_echo_n "(cached) " >&6
6605 else
6606 if test -n "$ac_ct_RANLIB"; then
6607 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6608 else
6609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610 for as_dir in $PATH
6612 IFS=$as_save_IFS
6613 test -z "$as_dir" && as_dir=.
6614 for ac_exec_ext in '' $ac_executable_extensions; do
6615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6616 ac_cv_prog_ac_ct_RANLIB="ranlib"
6617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6618 break 2
6620 done
6621 done
6622 IFS=$as_save_IFS
6626 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6627 if test -n "$ac_ct_RANLIB"; then
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6629 $as_echo "$ac_ct_RANLIB" >&6; }
6630 else
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6632 $as_echo "no" >&6; }
6635 if test "x$ac_ct_RANLIB" = x; then
6636 RANLIB=":"
6637 else
6638 case $cross_compiling:$ac_tool_warned in
6639 yes:)
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6642 ac_tool_warned=yes ;;
6643 esac
6644 RANLIB=$ac_ct_RANLIB
6646 else
6647 RANLIB="$ac_cv_prog_RANLIB"
6650 test -z "$RANLIB" && RANLIB=:
6657 # Determine commands to create old-style static archives.
6658 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6659 old_postinstall_cmds='chmod 644 $oldlib'
6660 old_postuninstall_cmds=
6662 if test -n "$RANLIB"; then
6663 case $host_os in
6664 openbsd*)
6665 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6668 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6670 esac
6671 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6674 case $host_os in
6675 darwin*)
6676 lock_old_archive_extraction=yes ;;
6678 lock_old_archive_extraction=no ;;
6679 esac
6719 # If no C compiler was specified, use CC.
6720 LTCC=${LTCC-"$CC"}
6722 # If no C compiler flags were specified, use CFLAGS.
6723 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6725 # Allow CC to be a program name with arguments.
6726 compiler=$CC
6729 # Check for command to grab the raw symbol name followed by C symbol from nm.
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6731 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6732 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6733 $as_echo_n "(cached) " >&6
6734 else
6736 # These are sane defaults that work on at least a few old systems.
6737 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6739 # Character class describing NM global symbol codes.
6740 symcode='[BCDEGRST]'
6742 # Regexp to match symbols that can be accessed directly from C.
6743 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6745 # Define system-specific variables.
6746 case $host_os in
6747 aix*)
6748 symcode='[BCDT]'
6750 cygwin* | mingw* | pw32* | cegcc*)
6751 symcode='[ABCDGISTW]'
6753 hpux*)
6754 if test "$host_cpu" = ia64; then
6755 symcode='[ABCDEGRST]'
6758 irix* | nonstopux*)
6759 symcode='[BCDEGRST]'
6761 osf*)
6762 symcode='[BCDEGQRST]'
6764 solaris*)
6765 symcode='[BDRT]'
6767 sco3.2v5*)
6768 symcode='[DT]'
6770 sysv4.2uw2*)
6771 symcode='[DT]'
6773 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6774 symcode='[ABDT]'
6776 sysv4)
6777 symcode='[DFNSTU]'
6779 esac
6781 # If we're using GNU nm, then use its standard symbol codes.
6782 case `$NM -V 2>&1` in
6783 *GNU* | *'with BFD'*)
6784 symcode='[ABCDGIRSTW]' ;;
6785 esac
6787 # Transform an extracted symbol line into a proper C declaration.
6788 # Some systems (esp. on ia64) link data and code symbols differently,
6789 # so use this general approach.
6790 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6792 # Transform an extracted symbol line into symbol name and symbol address
6793 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6794 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'"
6796 # Handle CRLF in mingw tool chain
6797 opt_cr=
6798 case $build_os in
6799 mingw*)
6800 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6802 esac
6804 # Try without a prefix underscore, then with it.
6805 for ac_symprfx in "" "_"; do
6807 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6808 symxfrm="\\1 $ac_symprfx\\2 \\2"
6810 # Write the raw and C identifiers.
6811 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6812 # Fake it for dumpbin and say T for any non-static function
6813 # and D for any global variable.
6814 # Also find C++ and __fastcall symbols from MSVC++,
6815 # which start with @ or ?.
6816 lt_cv_sys_global_symbol_pipe="$AWK '"\
6817 " {last_section=section; section=\$ 3};"\
6818 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6819 " \$ 0!~/External *\|/{next};"\
6820 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6821 " {if(hide[section]) next};"\
6822 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6823 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6824 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6825 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6826 " ' prfx=^$ac_symprfx"
6827 else
6828 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6831 # Check to see that the pipe works correctly.
6832 pipe_works=no
6834 rm -f conftest*
6835 cat > conftest.$ac_ext <<_LT_EOF
6836 #ifdef __cplusplus
6837 extern "C" {
6838 #endif
6839 char nm_test_var;
6840 void nm_test_func(void);
6841 void nm_test_func(void){}
6842 #ifdef __cplusplus
6844 #endif
6845 int main(){nm_test_var='a';nm_test_func();return(0);}
6846 _LT_EOF
6848 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6849 (eval $ac_compile) 2>&5
6850 ac_status=$?
6851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6852 test $ac_status = 0; }; then
6853 # Now try to grab the symbols.
6854 nlist=conftest.nm
6855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6856 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6857 ac_status=$?
6858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6859 test $ac_status = 0; } && test -s "$nlist"; then
6860 # Try sorting and uniquifying the output.
6861 if sort "$nlist" | uniq > "$nlist"T; then
6862 mv -f "$nlist"T "$nlist"
6863 else
6864 rm -f "$nlist"T
6867 # Make sure that we snagged all the symbols we need.
6868 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6869 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6870 cat <<_LT_EOF > conftest.$ac_ext
6871 #ifdef __cplusplus
6872 extern "C" {
6873 #endif
6875 _LT_EOF
6876 # Now generate the symbol file.
6877 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6879 cat <<_LT_EOF >> conftest.$ac_ext
6881 /* The mapping between symbol names and symbols. */
6882 const struct {
6883 const char *name;
6884 void *address;
6886 lt__PROGRAM__LTX_preloaded_symbols[] =
6888 { "@PROGRAM@", (void *) 0 },
6889 _LT_EOF
6890 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6891 cat <<\_LT_EOF >> conftest.$ac_ext
6892 {0, (void *) 0}
6895 /* This works around a problem in FreeBSD linker */
6896 #ifdef FREEBSD_WORKAROUND
6897 static const void *lt_preloaded_setup() {
6898 return lt__PROGRAM__LTX_preloaded_symbols;
6900 #endif
6902 #ifdef __cplusplus
6904 #endif
6905 _LT_EOF
6906 # Now try linking the two files.
6907 mv conftest.$ac_objext conftstm.$ac_objext
6908 lt_save_LIBS="$LIBS"
6909 lt_save_CFLAGS="$CFLAGS"
6910 LIBS="conftstm.$ac_objext"
6911 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6913 (eval $ac_link) 2>&5
6914 ac_status=$?
6915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6916 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6917 pipe_works=yes
6919 LIBS="$lt_save_LIBS"
6920 CFLAGS="$lt_save_CFLAGS"
6921 else
6922 echo "cannot find nm_test_func in $nlist" >&5
6924 else
6925 echo "cannot find nm_test_var in $nlist" >&5
6927 else
6928 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6930 else
6931 echo "$progname: failed program was:" >&5
6932 cat conftest.$ac_ext >&5
6934 rm -rf conftest* conftst*
6936 # Do not use the global_symbol_pipe unless it works.
6937 if test "$pipe_works" = yes; then
6938 break
6939 else
6940 lt_cv_sys_global_symbol_pipe=
6942 done
6946 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6947 lt_cv_sys_global_symbol_to_cdecl=
6949 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6951 $as_echo "failed" >&6; }
6952 else
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6954 $as_echo "ok" >&6; }
6979 # Check whether --enable-libtool-lock was given.
6980 if test "${enable_libtool_lock+set}" = set; then :
6981 enableval=$enable_libtool_lock;
6984 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6986 # Some flags need to be propagated to the compiler or linker for good
6987 # libtool support.
6988 case $host in
6989 ia64-*-hpux*)
6990 # Find out which ABI we are using.
6991 echo 'int i;' > conftest.$ac_ext
6992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6993 (eval $ac_compile) 2>&5
6994 ac_status=$?
6995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6996 test $ac_status = 0; }; then
6997 case `/usr/bin/file conftest.$ac_objext` in
6998 *ELF-32*)
6999 HPUX_IA64_MODE="32"
7001 *ELF-64*)
7002 HPUX_IA64_MODE="64"
7004 esac
7006 rm -rf conftest*
7008 *-*-irix6*)
7009 # Find out which ABI we are using.
7010 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7012 (eval $ac_compile) 2>&5
7013 ac_status=$?
7014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7015 test $ac_status = 0; }; then
7016 if test "$lt_cv_prog_gnu_ld" = yes; then
7017 case `/usr/bin/file conftest.$ac_objext` in
7018 *32-bit*)
7019 LD="${LD-ld} -melf32bsmip"
7021 *N32*)
7022 LD="${LD-ld} -melf32bmipn32"
7024 *64-bit*)
7025 LD="${LD-ld} -melf64bmip"
7027 esac
7028 else
7029 case `/usr/bin/file conftest.$ac_objext` in
7030 *32-bit*)
7031 LD="${LD-ld} -32"
7033 *N32*)
7034 LD="${LD-ld} -n32"
7036 *64-bit*)
7037 LD="${LD-ld} -64"
7039 esac
7042 rm -rf conftest*
7045 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7046 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7047 # Find out which ABI we are using.
7048 echo 'int i;' > conftest.$ac_ext
7049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7050 (eval $ac_compile) 2>&5
7051 ac_status=$?
7052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7053 test $ac_status = 0; }; then
7054 case `/usr/bin/file conftest.o` in
7055 *32-bit*)
7056 case $host in
7057 x86_64-*kfreebsd*-gnu)
7058 LD="${LD-ld} -m elf_i386_fbsd"
7060 x86_64-*linux*)
7061 case `/usr/bin/file conftest.o` in
7062 *x86-64*)
7063 LD="${LD-ld} -m elf32_x86_64"
7066 LD="${LD-ld} -m elf_i386"
7068 esac
7070 powerpc64le-*linux*)
7071 LD="${LD-ld} -m elf32lppclinux"
7073 powerpc64-*linux*)
7074 LD="${LD-ld} -m elf32ppclinux"
7076 s390x-*linux*)
7077 LD="${LD-ld} -m elf_s390"
7079 sparc64-*linux*)
7080 LD="${LD-ld} -m elf32_sparc"
7082 esac
7084 *64-bit*)
7085 case $host in
7086 x86_64-*kfreebsd*-gnu)
7087 LD="${LD-ld} -m elf_x86_64_fbsd"
7089 x86_64-*linux*)
7090 LD="${LD-ld} -m elf_x86_64"
7092 powerpcle-*linux*)
7093 LD="${LD-ld} -m elf64lppc"
7095 powerpc-*linux*)
7096 LD="${LD-ld} -m elf64ppc"
7098 s390*-*linux*|s390*-*tpf*)
7099 LD="${LD-ld} -m elf64_s390"
7101 sparc*-*linux*)
7102 LD="${LD-ld} -m elf64_sparc"
7104 esac
7106 esac
7108 rm -rf conftest*
7111 *-*-sco3.2v5*)
7112 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7113 SAVE_CFLAGS="$CFLAGS"
7114 CFLAGS="$CFLAGS -belf"
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7116 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7117 if ${lt_cv_cc_needs_belf+:} false; then :
7118 $as_echo_n "(cached) " >&6
7119 else
7120 ac_ext=c
7121 ac_cpp='$CPP $CPPFLAGS'
7122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127 /* end confdefs.h. */
7130 main ()
7134 return 0;
7136 _ACEOF
7137 if ac_fn_c_try_link "$LINENO"; then :
7138 lt_cv_cc_needs_belf=yes
7139 else
7140 lt_cv_cc_needs_belf=no
7142 rm -f core conftest.err conftest.$ac_objext \
7143 conftest$ac_exeext conftest.$ac_ext
7144 ac_ext=c
7145 ac_cpp='$CPP $CPPFLAGS'
7146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7152 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7153 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7154 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7155 CFLAGS="$SAVE_CFLAGS"
7158 sparc*-*solaris*)
7159 # Find out which ABI we are using.
7160 echo 'int i;' > conftest.$ac_ext
7161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7162 (eval $ac_compile) 2>&5
7163 ac_status=$?
7164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7165 test $ac_status = 0; }; then
7166 case `/usr/bin/file conftest.o` in
7167 *64-bit*)
7168 case $lt_cv_prog_gnu_ld in
7169 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7171 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7172 LD="${LD-ld} -64"
7175 esac
7177 esac
7179 rm -rf conftest*
7181 esac
7183 need_locks="$enable_libtool_lock"
7186 case $host_os in
7187 rhapsody* | darwin*)
7188 if test -n "$ac_tool_prefix"; then
7189 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7190 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7192 $as_echo_n "checking for $ac_word... " >&6; }
7193 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7194 $as_echo_n "(cached) " >&6
7195 else
7196 if test -n "$DSYMUTIL"; then
7197 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7198 else
7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 for as_dir in $PATH
7202 IFS=$as_save_IFS
7203 test -z "$as_dir" && as_dir=.
7204 for ac_exec_ext in '' $ac_executable_extensions; do
7205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7206 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 break 2
7210 done
7211 done
7212 IFS=$as_save_IFS
7216 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7217 if test -n "$DSYMUTIL"; then
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7219 $as_echo "$DSYMUTIL" >&6; }
7220 else
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222 $as_echo "no" >&6; }
7227 if test -z "$ac_cv_prog_DSYMUTIL"; then
7228 ac_ct_DSYMUTIL=$DSYMUTIL
7229 # Extract the first word of "dsymutil", so it can be a program name with args.
7230 set dummy dsymutil; ac_word=$2
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7232 $as_echo_n "checking for $ac_word... " >&6; }
7233 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7234 $as_echo_n "(cached) " >&6
7235 else
7236 if test -n "$ac_ct_DSYMUTIL"; then
7237 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7238 else
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 for as_dir in $PATH
7242 IFS=$as_save_IFS
7243 test -z "$as_dir" && as_dir=.
7244 for ac_exec_ext in '' $ac_executable_extensions; do
7245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7246 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 break 2
7250 done
7251 done
7252 IFS=$as_save_IFS
7256 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7257 if test -n "$ac_ct_DSYMUTIL"; then
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7259 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7260 else
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7262 $as_echo "no" >&6; }
7265 if test "x$ac_ct_DSYMUTIL" = x; then
7266 DSYMUTIL=":"
7267 else
7268 case $cross_compiling:$ac_tool_warned in
7269 yes:)
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7272 ac_tool_warned=yes ;;
7273 esac
7274 DSYMUTIL=$ac_ct_DSYMUTIL
7276 else
7277 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7280 if test -n "$ac_tool_prefix"; then
7281 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7282 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7284 $as_echo_n "checking for $ac_word... " >&6; }
7285 if ${ac_cv_prog_NMEDIT+:} false; then :
7286 $as_echo_n "(cached) " >&6
7287 else
7288 if test -n "$NMEDIT"; then
7289 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7290 else
7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 for as_dir in $PATH
7294 IFS=$as_save_IFS
7295 test -z "$as_dir" && as_dir=.
7296 for ac_exec_ext in '' $ac_executable_extensions; do
7297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7298 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7300 break 2
7302 done
7303 done
7304 IFS=$as_save_IFS
7308 NMEDIT=$ac_cv_prog_NMEDIT
7309 if test -n "$NMEDIT"; then
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7311 $as_echo "$NMEDIT" >&6; }
7312 else
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314 $as_echo "no" >&6; }
7319 if test -z "$ac_cv_prog_NMEDIT"; then
7320 ac_ct_NMEDIT=$NMEDIT
7321 # Extract the first word of "nmedit", so it can be a program name with args.
7322 set dummy nmedit; ac_word=$2
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7324 $as_echo_n "checking for $ac_word... " >&6; }
7325 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7326 $as_echo_n "(cached) " >&6
7327 else
7328 if test -n "$ac_ct_NMEDIT"; then
7329 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7330 else
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 for as_dir in $PATH
7334 IFS=$as_save_IFS
7335 test -z "$as_dir" && as_dir=.
7336 for ac_exec_ext in '' $ac_executable_extensions; do
7337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7338 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7340 break 2
7342 done
7343 done
7344 IFS=$as_save_IFS
7348 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7349 if test -n "$ac_ct_NMEDIT"; then
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7351 $as_echo "$ac_ct_NMEDIT" >&6; }
7352 else
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7354 $as_echo "no" >&6; }
7357 if test "x$ac_ct_NMEDIT" = x; then
7358 NMEDIT=":"
7359 else
7360 case $cross_compiling:$ac_tool_warned in
7361 yes:)
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7364 ac_tool_warned=yes ;;
7365 esac
7366 NMEDIT=$ac_ct_NMEDIT
7368 else
7369 NMEDIT="$ac_cv_prog_NMEDIT"
7372 if test -n "$ac_tool_prefix"; then
7373 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7374 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7376 $as_echo_n "checking for $ac_word... " >&6; }
7377 if ${ac_cv_prog_LIPO+:} false; then :
7378 $as_echo_n "(cached) " >&6
7379 else
7380 if test -n "$LIPO"; then
7381 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7382 else
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384 for as_dir in $PATH
7386 IFS=$as_save_IFS
7387 test -z "$as_dir" && as_dir=.
7388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7390 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7392 break 2
7394 done
7395 done
7396 IFS=$as_save_IFS
7400 LIPO=$ac_cv_prog_LIPO
7401 if test -n "$LIPO"; then
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7403 $as_echo "$LIPO" >&6; }
7404 else
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7406 $as_echo "no" >&6; }
7411 if test -z "$ac_cv_prog_LIPO"; then
7412 ac_ct_LIPO=$LIPO
7413 # Extract the first word of "lipo", so it can be a program name with args.
7414 set dummy lipo; ac_word=$2
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7416 $as_echo_n "checking for $ac_word... " >&6; }
7417 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7418 $as_echo_n "(cached) " >&6
7419 else
7420 if test -n "$ac_ct_LIPO"; then
7421 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7422 else
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 for as_dir in $PATH
7426 IFS=$as_save_IFS
7427 test -z "$as_dir" && as_dir=.
7428 for ac_exec_ext in '' $ac_executable_extensions; do
7429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7430 ac_cv_prog_ac_ct_LIPO="lipo"
7431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7432 break 2
7434 done
7435 done
7436 IFS=$as_save_IFS
7440 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7441 if test -n "$ac_ct_LIPO"; then
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7443 $as_echo "$ac_ct_LIPO" >&6; }
7444 else
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446 $as_echo "no" >&6; }
7449 if test "x$ac_ct_LIPO" = x; then
7450 LIPO=":"
7451 else
7452 case $cross_compiling:$ac_tool_warned in
7453 yes:)
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7456 ac_tool_warned=yes ;;
7457 esac
7458 LIPO=$ac_ct_LIPO
7460 else
7461 LIPO="$ac_cv_prog_LIPO"
7464 if test -n "$ac_tool_prefix"; then
7465 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7466 set dummy ${ac_tool_prefix}otool; ac_word=$2
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7468 $as_echo_n "checking for $ac_word... " >&6; }
7469 if ${ac_cv_prog_OTOOL+:} false; then :
7470 $as_echo_n "(cached) " >&6
7471 else
7472 if test -n "$OTOOL"; then
7473 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7474 else
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 for as_dir in $PATH
7478 IFS=$as_save_IFS
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7482 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 break 2
7486 done
7487 done
7488 IFS=$as_save_IFS
7492 OTOOL=$ac_cv_prog_OTOOL
7493 if test -n "$OTOOL"; then
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7495 $as_echo "$OTOOL" >&6; }
7496 else
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7498 $as_echo "no" >&6; }
7503 if test -z "$ac_cv_prog_OTOOL"; then
7504 ac_ct_OTOOL=$OTOOL
7505 # Extract the first word of "otool", so it can be a program name with args.
7506 set dummy otool; ac_word=$2
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7508 $as_echo_n "checking for $ac_word... " >&6; }
7509 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7510 $as_echo_n "(cached) " >&6
7511 else
7512 if test -n "$ac_ct_OTOOL"; then
7513 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7514 else
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH
7518 IFS=$as_save_IFS
7519 test -z "$as_dir" && as_dir=.
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7522 ac_cv_prog_ac_ct_OTOOL="otool"
7523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 break 2
7526 done
7527 done
7528 IFS=$as_save_IFS
7532 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7533 if test -n "$ac_ct_OTOOL"; then
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7535 $as_echo "$ac_ct_OTOOL" >&6; }
7536 else
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7538 $as_echo "no" >&6; }
7541 if test "x$ac_ct_OTOOL" = x; then
7542 OTOOL=":"
7543 else
7544 case $cross_compiling:$ac_tool_warned in
7545 yes:)
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7548 ac_tool_warned=yes ;;
7549 esac
7550 OTOOL=$ac_ct_OTOOL
7552 else
7553 OTOOL="$ac_cv_prog_OTOOL"
7556 if test -n "$ac_tool_prefix"; then
7557 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7558 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7560 $as_echo_n "checking for $ac_word... " >&6; }
7561 if ${ac_cv_prog_OTOOL64+:} false; then :
7562 $as_echo_n "(cached) " >&6
7563 else
7564 if test -n "$OTOOL64"; then
7565 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7566 else
7567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568 for as_dir in $PATH
7570 IFS=$as_save_IFS
7571 test -z "$as_dir" && as_dir=.
7572 for ac_exec_ext in '' $ac_executable_extensions; do
7573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7574 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7576 break 2
7578 done
7579 done
7580 IFS=$as_save_IFS
7584 OTOOL64=$ac_cv_prog_OTOOL64
7585 if test -n "$OTOOL64"; then
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7587 $as_echo "$OTOOL64" >&6; }
7588 else
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590 $as_echo "no" >&6; }
7595 if test -z "$ac_cv_prog_OTOOL64"; then
7596 ac_ct_OTOOL64=$OTOOL64
7597 # Extract the first word of "otool64", so it can be a program name with args.
7598 set dummy otool64; ac_word=$2
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7600 $as_echo_n "checking for $ac_word... " >&6; }
7601 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7602 $as_echo_n "(cached) " >&6
7603 else
7604 if test -n "$ac_ct_OTOOL64"; then
7605 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7606 else
7607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608 for as_dir in $PATH
7610 IFS=$as_save_IFS
7611 test -z "$as_dir" && as_dir=.
7612 for ac_exec_ext in '' $ac_executable_extensions; do
7613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7614 ac_cv_prog_ac_ct_OTOOL64="otool64"
7615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7616 break 2
7618 done
7619 done
7620 IFS=$as_save_IFS
7624 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7625 if test -n "$ac_ct_OTOOL64"; then
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7627 $as_echo "$ac_ct_OTOOL64" >&6; }
7628 else
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7630 $as_echo "no" >&6; }
7633 if test "x$ac_ct_OTOOL64" = x; then
7634 OTOOL64=":"
7635 else
7636 case $cross_compiling:$ac_tool_warned in
7637 yes:)
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7640 ac_tool_warned=yes ;;
7641 esac
7642 OTOOL64=$ac_ct_OTOOL64
7644 else
7645 OTOOL64="$ac_cv_prog_OTOOL64"
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7675 $as_echo_n "checking for -single_module linker flag... " >&6; }
7676 if ${lt_cv_apple_cc_single_mod+:} false; then :
7677 $as_echo_n "(cached) " >&6
7678 else
7679 lt_cv_apple_cc_single_mod=no
7680 if test -z "${LT_MULTI_MODULE}"; then
7681 # By default we will add the -single_module flag. You can override
7682 # by either setting the environment variable LT_MULTI_MODULE
7683 # non-empty at configure time, or by adding -multi_module to the
7684 # link flags.
7685 rm -rf libconftest.dylib*
7686 echo "int foo(void){return 1;}" > conftest.c
7687 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7688 -dynamiclib -Wl,-single_module conftest.c" >&5
7689 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7690 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7691 _lt_result=$?
7692 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7693 lt_cv_apple_cc_single_mod=yes
7694 else
7695 cat conftest.err >&5
7697 rm -rf libconftest.dylib*
7698 rm -f conftest.*
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7702 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7704 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7705 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7706 $as_echo_n "(cached) " >&6
7707 else
7708 lt_cv_ld_exported_symbols_list=no
7709 save_LDFLAGS=$LDFLAGS
7710 echo "_main" > conftest.sym
7711 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713 /* end confdefs.h. */
7716 main ()
7720 return 0;
7722 _ACEOF
7723 if ac_fn_c_try_link "$LINENO"; then :
7724 lt_cv_ld_exported_symbols_list=yes
7725 else
7726 lt_cv_ld_exported_symbols_list=no
7728 rm -f core conftest.err conftest.$ac_objext \
7729 conftest$ac_exeext conftest.$ac_ext
7730 LDFLAGS="$save_LDFLAGS"
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7734 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7736 $as_echo_n "checking for -force_load linker flag... " >&6; }
7737 if ${lt_cv_ld_force_load+:} false; then :
7738 $as_echo_n "(cached) " >&6
7739 else
7740 lt_cv_ld_force_load=no
7741 cat > conftest.c << _LT_EOF
7742 int forced_loaded() { return 2;}
7743 _LT_EOF
7744 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7745 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7746 echo "$AR cru libconftest.a conftest.o" >&5
7747 $AR cru libconftest.a conftest.o 2>&5
7748 cat > conftest.c << _LT_EOF
7749 int main() { return 0;}
7750 _LT_EOF
7751 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7752 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7753 _lt_result=$?
7754 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7755 lt_cv_ld_force_load=yes
7756 else
7757 cat conftest.err >&5
7759 rm -f conftest.err libconftest.a conftest conftest.c
7760 rm -rf conftest.dSYM
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7764 $as_echo "$lt_cv_ld_force_load" >&6; }
7765 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7766 # build without first building modern cctools / linker.
7767 case $host_cpu-$host_os in
7768 *-rhapsody* | *-darwin1.[012])
7769 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7770 *-darwin1.*)
7771 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7772 *-darwin*)
7773 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7774 # deployment target is forced to an earlier version.
7775 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7776 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7778 10.[012][,.]*)
7779 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7783 esac
7785 esac
7786 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7787 _lt_dar_single_mod='$single_module'
7789 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7790 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7791 else
7792 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7794 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7795 _lt_dsymutil='~$DSYMUTIL $lib || :'
7796 else
7797 _lt_dsymutil=
7800 esac
7802 ac_ext=c
7803 ac_cpp='$CPP $CPPFLAGS'
7804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7808 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7809 # On Suns, sometimes $CPP names a directory.
7810 if test -n "$CPP" && test -d "$CPP"; then
7811 CPP=
7813 if test -z "$CPP"; then
7814 if ${ac_cv_prog_CPP+:} false; then :
7815 $as_echo_n "(cached) " >&6
7816 else
7817 # Double quotes because CPP needs to be expanded
7818 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7820 ac_preproc_ok=false
7821 for ac_c_preproc_warn_flag in '' yes
7823 # Use a header file that comes with gcc, so configuring glibc
7824 # with a fresh cross-compiler works.
7825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7826 # <limits.h> exists even on freestanding compilers.
7827 # On the NeXT, cc -E runs the code through the compiler's parser,
7828 # not just through cpp. "Syntax error" is here to catch this case.
7829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h. */
7831 #ifdef __STDC__
7832 # include <limits.h>
7833 #else
7834 # include <assert.h>
7835 #endif
7836 Syntax error
7837 _ACEOF
7838 if ac_fn_c_try_cpp "$LINENO"; then :
7840 else
7841 # Broken: fails on valid input.
7842 continue
7844 rm -f conftest.err conftest.i conftest.$ac_ext
7846 # OK, works on sane cases. Now check whether nonexistent headers
7847 # can be detected and how.
7848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849 /* end confdefs.h. */
7850 #include <ac_nonexistent.h>
7851 _ACEOF
7852 if ac_fn_c_try_cpp "$LINENO"; then :
7853 # Broken: success on invalid input.
7854 continue
7855 else
7856 # Passes both tests.
7857 ac_preproc_ok=:
7858 break
7860 rm -f conftest.err conftest.i conftest.$ac_ext
7862 done
7863 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7864 rm -f conftest.i conftest.err conftest.$ac_ext
7865 if $ac_preproc_ok; then :
7866 break
7869 done
7870 ac_cv_prog_CPP=$CPP
7873 CPP=$ac_cv_prog_CPP
7874 else
7875 ac_cv_prog_CPP=$CPP
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7878 $as_echo "$CPP" >&6; }
7879 ac_preproc_ok=false
7880 for ac_c_preproc_warn_flag in '' yes
7882 # Use a header file that comes with gcc, so configuring glibc
7883 # with a fresh cross-compiler works.
7884 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7885 # <limits.h> exists even on freestanding compilers.
7886 # On the NeXT, cc -E runs the code through the compiler's parser,
7887 # not just through cpp. "Syntax error" is here to catch this case.
7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889 /* end confdefs.h. */
7890 #ifdef __STDC__
7891 # include <limits.h>
7892 #else
7893 # include <assert.h>
7894 #endif
7895 Syntax error
7896 _ACEOF
7897 if ac_fn_c_try_cpp "$LINENO"; then :
7899 else
7900 # Broken: fails on valid input.
7901 continue
7903 rm -f conftest.err conftest.i conftest.$ac_ext
7905 # OK, works on sane cases. Now check whether nonexistent headers
7906 # can be detected and how.
7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908 /* end confdefs.h. */
7909 #include <ac_nonexistent.h>
7910 _ACEOF
7911 if ac_fn_c_try_cpp "$LINENO"; then :
7912 # Broken: success on invalid input.
7913 continue
7914 else
7915 # Passes both tests.
7916 ac_preproc_ok=:
7917 break
7919 rm -f conftest.err conftest.i conftest.$ac_ext
7921 done
7922 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7923 rm -f conftest.i conftest.err conftest.$ac_ext
7924 if $ac_preproc_ok; then :
7926 else
7927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7929 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7930 See \`config.log' for more details" "$LINENO" 5; }
7933 ac_ext=c
7934 ac_cpp='$CPP $CPPFLAGS'
7935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7941 $as_echo_n "checking for ANSI C header files... " >&6; }
7942 if ${ac_cv_header_stdc+:} false; then :
7943 $as_echo_n "(cached) " >&6
7944 else
7945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946 /* end confdefs.h. */
7947 #include <stdlib.h>
7948 #include <stdarg.h>
7949 #include <string.h>
7950 #include <float.h>
7953 main ()
7957 return 0;
7959 _ACEOF
7960 if ac_fn_c_try_compile "$LINENO"; then :
7961 ac_cv_header_stdc=yes
7962 else
7963 ac_cv_header_stdc=no
7965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7967 if test $ac_cv_header_stdc = yes; then
7968 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970 /* end confdefs.h. */
7971 #include <string.h>
7973 _ACEOF
7974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7975 $EGREP "memchr" >/dev/null 2>&1; then :
7977 else
7978 ac_cv_header_stdc=no
7980 rm -f conftest*
7984 if test $ac_cv_header_stdc = yes; then
7985 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h. */
7988 #include <stdlib.h>
7990 _ACEOF
7991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7992 $EGREP "free" >/dev/null 2>&1; then :
7994 else
7995 ac_cv_header_stdc=no
7997 rm -f conftest*
8001 if test $ac_cv_header_stdc = yes; then
8002 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8003 if test "$cross_compiling" = yes; then :
8005 else
8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h. */
8008 #include <ctype.h>
8009 #include <stdlib.h>
8010 #if ((' ' & 0x0FF) == 0x020)
8011 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8012 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8013 #else
8014 # define ISLOWER(c) \
8015 (('a' <= (c) && (c) <= 'i') \
8016 || ('j' <= (c) && (c) <= 'r') \
8017 || ('s' <= (c) && (c) <= 'z'))
8018 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8019 #endif
8021 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8023 main ()
8025 int i;
8026 for (i = 0; i < 256; i++)
8027 if (XOR (islower (i), ISLOWER (i))
8028 || toupper (i) != TOUPPER (i))
8029 return 2;
8030 return 0;
8032 _ACEOF
8033 if ac_fn_c_try_run "$LINENO"; then :
8035 else
8036 ac_cv_header_stdc=no
8038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8039 conftest.$ac_objext conftest.beam conftest.$ac_ext
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8045 $as_echo "$ac_cv_header_stdc" >&6; }
8046 if test $ac_cv_header_stdc = yes; then
8048 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8052 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8053 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8054 inttypes.h stdint.h unistd.h
8055 do :
8056 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8057 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8059 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8060 cat >>confdefs.h <<_ACEOF
8061 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8062 _ACEOF
8066 done
8069 for ac_header in dlfcn.h
8070 do :
8071 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8073 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8074 cat >>confdefs.h <<_ACEOF
8075 #define HAVE_DLFCN_H 1
8076 _ACEOF
8080 done
8087 # Set options
8091 enable_dlopen=no
8094 enable_win32_dll=no
8097 # Check whether --enable-shared was given.
8098 if test "${enable_shared+set}" = set; then :
8099 enableval=$enable_shared; p=${PACKAGE-default}
8100 case $enableval in
8101 yes) enable_shared=yes ;;
8102 no) enable_shared=no ;;
8104 enable_shared=no
8105 # Look at the argument we got. We use all the common list separators.
8106 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8107 for pkg in $enableval; do
8108 IFS="$lt_save_ifs"
8109 if test "X$pkg" = "X$p"; then
8110 enable_shared=yes
8112 done
8113 IFS="$lt_save_ifs"
8115 esac
8116 else
8117 enable_shared=yes
8128 # Check whether --enable-static was given.
8129 if test "${enable_static+set}" = set; then :
8130 enableval=$enable_static; p=${PACKAGE-default}
8131 case $enableval in
8132 yes) enable_static=yes ;;
8133 no) enable_static=no ;;
8135 enable_static=no
8136 # Look at the argument we got. We use all the common list separators.
8137 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8138 for pkg in $enableval; do
8139 IFS="$lt_save_ifs"
8140 if test "X$pkg" = "X$p"; then
8141 enable_static=yes
8143 done
8144 IFS="$lt_save_ifs"
8146 esac
8147 else
8148 enable_static=yes
8160 # Check whether --with-pic was given.
8161 if test "${with_pic+set}" = set; then :
8162 withval=$with_pic; pic_mode="$withval"
8163 else
8164 pic_mode=default
8168 test -z "$pic_mode" && pic_mode=default
8176 # Check whether --enable-fast-install was given.
8177 if test "${enable_fast_install+set}" = set; then :
8178 enableval=$enable_fast_install; p=${PACKAGE-default}
8179 case $enableval in
8180 yes) enable_fast_install=yes ;;
8181 no) enable_fast_install=no ;;
8183 enable_fast_install=no
8184 # Look at the argument we got. We use all the common list separators.
8185 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8186 for pkg in $enableval; do
8187 IFS="$lt_save_ifs"
8188 if test "X$pkg" = "X$p"; then
8189 enable_fast_install=yes
8191 done
8192 IFS="$lt_save_ifs"
8194 esac
8195 else
8196 enable_fast_install=yes
8209 # This can be used to rebuild libtool when needed
8210 LIBTOOL_DEPS="$ltmain"
8212 # Always use our own libtool.
8213 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8240 test -z "$LN_S" && LN_S="ln -s"
8255 if test -n "${ZSH_VERSION+set}" ; then
8256 setopt NO_GLOB_SUBST
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8260 $as_echo_n "checking for objdir... " >&6; }
8261 if ${lt_cv_objdir+:} false; then :
8262 $as_echo_n "(cached) " >&6
8263 else
8264 rm -f .libs 2>/dev/null
8265 mkdir .libs 2>/dev/null
8266 if test -d .libs; then
8267 lt_cv_objdir=.libs
8268 else
8269 # MS-DOS does not allow filenames that begin with a dot.
8270 lt_cv_objdir=_libs
8272 rmdir .libs 2>/dev/null
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8275 $as_echo "$lt_cv_objdir" >&6; }
8276 objdir=$lt_cv_objdir
8282 cat >>confdefs.h <<_ACEOF
8283 #define LT_OBJDIR "$lt_cv_objdir/"
8284 _ACEOF
8289 case $host_os in
8290 aix3*)
8291 # AIX sometimes has problems with the GCC collect2 program. For some
8292 # reason, if we set the COLLECT_NAMES environment variable, the problems
8293 # vanish in a puff of smoke.
8294 if test "X${COLLECT_NAMES+set}" != Xset; then
8295 COLLECT_NAMES=
8296 export COLLECT_NAMES
8299 esac
8301 # Global variables:
8302 ofile=libtool
8303 can_build_shared=yes
8305 # All known linkers require a `.a' archive for static linking (except MSVC,
8306 # which needs '.lib').
8307 libext=a
8309 with_gnu_ld="$lt_cv_prog_gnu_ld"
8311 old_CC="$CC"
8312 old_CFLAGS="$CFLAGS"
8314 # Set sane defaults for various variables
8315 test -z "$CC" && CC=cc
8316 test -z "$LTCC" && LTCC=$CC
8317 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8318 test -z "$LD" && LD=ld
8319 test -z "$ac_objext" && ac_objext=o
8321 for cc_temp in $compiler""; do
8322 case $cc_temp in
8323 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8324 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8325 \-*) ;;
8326 *) break;;
8327 esac
8328 done
8329 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8332 # Only perform the check for file, if the check method requires it
8333 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8334 case $deplibs_check_method in
8335 file_magic*)
8336 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8338 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8339 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8340 $as_echo_n "(cached) " >&6
8341 else
8342 case $MAGIC_CMD in
8343 [\\/*] | ?:[\\/]*)
8344 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8347 lt_save_MAGIC_CMD="$MAGIC_CMD"
8348 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8349 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8350 for ac_dir in $ac_dummy; do
8351 IFS="$lt_save_ifs"
8352 test -z "$ac_dir" && ac_dir=.
8353 if test -f $ac_dir/${ac_tool_prefix}file; then
8354 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8355 if test -n "$file_magic_test_file"; then
8356 case $deplibs_check_method in
8357 "file_magic "*)
8358 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8359 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8360 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8361 $EGREP "$file_magic_regex" > /dev/null; then
8363 else
8364 cat <<_LT_EOF 1>&2
8366 *** Warning: the command libtool uses to detect shared libraries,
8367 *** $file_magic_cmd, produces output that libtool cannot recognize.
8368 *** The result is that libtool may fail to recognize shared libraries
8369 *** as such. This will affect the creation of libtool libraries that
8370 *** depend on shared libraries, but programs linked with such libtool
8371 *** libraries will work regardless of this problem. Nevertheless, you
8372 *** may want to report the problem to your system manager and/or to
8373 *** bug-libtool@gnu.org
8375 _LT_EOF
8376 fi ;;
8377 esac
8379 break
8381 done
8382 IFS="$lt_save_ifs"
8383 MAGIC_CMD="$lt_save_MAGIC_CMD"
8385 esac
8388 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8389 if test -n "$MAGIC_CMD"; then
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8391 $as_echo "$MAGIC_CMD" >&6; }
8392 else
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 $as_echo "no" >&6; }
8401 if test -z "$lt_cv_path_MAGIC_CMD"; then
8402 if test -n "$ac_tool_prefix"; then
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8404 $as_echo_n "checking for file... " >&6; }
8405 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8406 $as_echo_n "(cached) " >&6
8407 else
8408 case $MAGIC_CMD in
8409 [\\/*] | ?:[\\/]*)
8410 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8413 lt_save_MAGIC_CMD="$MAGIC_CMD"
8414 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8415 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8416 for ac_dir in $ac_dummy; do
8417 IFS="$lt_save_ifs"
8418 test -z "$ac_dir" && ac_dir=.
8419 if test -f $ac_dir/file; then
8420 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8421 if test -n "$file_magic_test_file"; then
8422 case $deplibs_check_method in
8423 "file_magic "*)
8424 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8425 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8426 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8427 $EGREP "$file_magic_regex" > /dev/null; then
8429 else
8430 cat <<_LT_EOF 1>&2
8432 *** Warning: the command libtool uses to detect shared libraries,
8433 *** $file_magic_cmd, produces output that libtool cannot recognize.
8434 *** The result is that libtool may fail to recognize shared libraries
8435 *** as such. This will affect the creation of libtool libraries that
8436 *** depend on shared libraries, but programs linked with such libtool
8437 *** libraries will work regardless of this problem. Nevertheless, you
8438 *** may want to report the problem to your system manager and/or to
8439 *** bug-libtool@gnu.org
8441 _LT_EOF
8442 fi ;;
8443 esac
8445 break
8447 done
8448 IFS="$lt_save_ifs"
8449 MAGIC_CMD="$lt_save_MAGIC_CMD"
8451 esac
8454 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8455 if test -n "$MAGIC_CMD"; then
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8457 $as_echo "$MAGIC_CMD" >&6; }
8458 else
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460 $as_echo "no" >&6; }
8464 else
8465 MAGIC_CMD=:
8471 esac
8473 # Use C for the default configuration in the libtool script
8475 lt_save_CC="$CC"
8476 ac_ext=c
8477 ac_cpp='$CPP $CPPFLAGS'
8478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8483 # Source file extension for C test sources.
8484 ac_ext=c
8486 # Object file extension for compiled C test sources.
8487 objext=o
8488 objext=$objext
8490 # Code to be used in simple compile tests
8491 lt_simple_compile_test_code="int some_variable = 0;"
8493 # Code to be used in simple link tests
8494 lt_simple_link_test_code='int main(){return(0);}'
8502 # If no C compiler was specified, use CC.
8503 LTCC=${LTCC-"$CC"}
8505 # If no C compiler flags were specified, use CFLAGS.
8506 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8508 # Allow CC to be a program name with arguments.
8509 compiler=$CC
8511 # Save the default compiler, since it gets overwritten when the other
8512 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8513 compiler_DEFAULT=$CC
8515 # save warnings/boilerplate of simple test code
8516 ac_outfile=conftest.$ac_objext
8517 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8518 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8519 _lt_compiler_boilerplate=`cat conftest.err`
8520 $RM conftest*
8522 ac_outfile=conftest.$ac_objext
8523 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8524 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8525 _lt_linker_boilerplate=`cat conftest.err`
8526 $RM -r conftest*
8529 ## CAVEAT EMPTOR:
8530 ## There is no encapsulation within the following macros, do not change
8531 ## the running order or otherwise move them around unless you know exactly
8532 ## what you are doing...
8533 if test -n "$compiler"; then
8535 lt_prog_compiler_no_builtin_flag=
8537 if test "$GCC" = yes; then
8538 case $cc_basename in
8539 nvcc*)
8540 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8542 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8543 esac
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8546 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8547 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8548 $as_echo_n "(cached) " >&6
8549 else
8550 lt_cv_prog_compiler_rtti_exceptions=no
8551 ac_outfile=conftest.$ac_objext
8552 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8553 lt_compiler_flag="-fno-rtti -fno-exceptions"
8554 # Insert the option either (1) after the last *FLAGS variable, or
8555 # (2) before a word containing "conftest.", or (3) at the end.
8556 # Note that $ac_compile itself does not contain backslashes and begins
8557 # with a dollar sign (not a hyphen), so the echo should work correctly.
8558 # The option is referenced via a variable to avoid confusing sed.
8559 lt_compile=`echo "$ac_compile" | $SED \
8560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8562 -e 's:$: $lt_compiler_flag:'`
8563 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8564 (eval "$lt_compile" 2>conftest.err)
8565 ac_status=$?
8566 cat conftest.err >&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 if (exit $ac_status) && test -s "$ac_outfile"; then
8569 # The compiler can only warn and ignore the option if not recognized
8570 # So say no if there are warnings other than the usual output.
8571 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8572 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8573 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8574 lt_cv_prog_compiler_rtti_exceptions=yes
8577 $RM conftest*
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8581 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8583 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8584 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8585 else
8596 lt_prog_compiler_wl=
8597 lt_prog_compiler_pic=
8598 lt_prog_compiler_static=
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8601 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8603 if test "$GCC" = yes; then
8604 lt_prog_compiler_wl='-Wl,'
8605 lt_prog_compiler_static='-static'
8607 case $host_os in
8608 aix*)
8609 # All AIX code is PIC.
8610 if test "$host_cpu" = ia64; then
8611 # AIX 5 now supports IA64 processor
8612 lt_prog_compiler_static='-Bstatic'
8614 lt_prog_compiler_pic='-fPIC'
8617 amigaos*)
8618 case $host_cpu in
8619 powerpc)
8620 # see comment about AmigaOS4 .so support
8621 lt_prog_compiler_pic='-fPIC'
8623 m68k)
8624 # FIXME: we need at least 68020 code to build shared libraries, but
8625 # adding the `-m68020' flag to GCC prevents building anything better,
8626 # like `-m68040'.
8627 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8629 esac
8632 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8633 # PIC is the default for these OSes.
8636 mingw* | cygwin* | pw32* | os2* | cegcc*)
8637 # This hack is so that the source file can tell whether it is being
8638 # built for inclusion in a dll (and should export symbols for example).
8639 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8640 # (--disable-auto-import) libraries
8641 lt_prog_compiler_pic='-DDLL_EXPORT'
8644 darwin* | rhapsody*)
8645 # PIC is the default on this platform
8646 # Common symbols not allowed in MH_DYLIB files
8647 lt_prog_compiler_pic='-fno-common'
8650 haiku*)
8651 # PIC is the default for Haiku.
8652 # The "-static" flag exists, but is broken.
8653 lt_prog_compiler_static=
8656 hpux*)
8657 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8658 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8659 # sets the default TLS model and affects inlining.
8660 case $host_cpu in
8661 hppa*64*)
8662 # +Z the default
8665 lt_prog_compiler_pic='-fPIC'
8667 esac
8670 interix[3-9]*)
8671 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8672 # Instead, we relocate shared libraries at runtime.
8675 msdosdjgpp*)
8676 # Just because we use GCC doesn't mean we suddenly get shared libraries
8677 # on systems that don't support them.
8678 lt_prog_compiler_can_build_shared=no
8679 enable_shared=no
8682 *nto* | *qnx*)
8683 # QNX uses GNU C++, but need to define -shared option too, otherwise
8684 # it will coredump.
8685 lt_prog_compiler_pic='-fPIC -shared'
8688 sysv4*MP*)
8689 if test -d /usr/nec; then
8690 lt_prog_compiler_pic=-Kconform_pic
8695 lt_prog_compiler_pic='-fPIC'
8697 esac
8699 case $cc_basename in
8700 nvcc*) # Cuda Compiler Driver 2.2
8701 lt_prog_compiler_wl='-Xlinker '
8702 lt_prog_compiler_pic='-Xcompiler -fPIC'
8704 esac
8705 else
8706 # PORTME Check for flag to pass linker flags through the system compiler.
8707 case $host_os in
8708 aix*)
8709 lt_prog_compiler_wl='-Wl,'
8710 if test "$host_cpu" = ia64; then
8711 # AIX 5 now supports IA64 processor
8712 lt_prog_compiler_static='-Bstatic'
8713 else
8714 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8718 mingw* | cygwin* | pw32* | os2* | cegcc*)
8719 # This hack is so that the source file can tell whether it is being
8720 # built for inclusion in a dll (and should export symbols for example).
8721 lt_prog_compiler_pic='-DDLL_EXPORT'
8724 hpux9* | hpux10* | hpux11*)
8725 lt_prog_compiler_wl='-Wl,'
8726 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8727 # not for PA HP-UX.
8728 case $host_cpu in
8729 hppa*64*|ia64*)
8730 # +Z the default
8733 lt_prog_compiler_pic='+Z'
8735 esac
8736 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8737 lt_prog_compiler_static='${wl}-a ${wl}archive'
8740 irix5* | irix6* | nonstopux*)
8741 lt_prog_compiler_wl='-Wl,'
8742 # PIC (with -KPIC) is the default.
8743 lt_prog_compiler_static='-non_shared'
8746 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8747 case $cc_basename in
8748 # old Intel for x86_64 which still supported -KPIC.
8749 ecc*)
8750 lt_prog_compiler_wl='-Wl,'
8751 lt_prog_compiler_pic='-KPIC'
8752 lt_prog_compiler_static='-static'
8754 # icc used to be incompatible with GCC.
8755 # ICC 10 doesn't accept -KPIC any more.
8756 icc* | ifort*)
8757 lt_prog_compiler_wl='-Wl,'
8758 lt_prog_compiler_pic='-fPIC'
8759 lt_prog_compiler_static='-static'
8761 # Lahey Fortran 8.1.
8762 lf95*)
8763 lt_prog_compiler_wl='-Wl,'
8764 lt_prog_compiler_pic='--shared'
8765 lt_prog_compiler_static='--static'
8767 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8768 # Portland Group compilers (*not* the Pentium gcc compiler,
8769 # which looks to be a dead project)
8770 lt_prog_compiler_wl='-Wl,'
8771 lt_prog_compiler_pic='-fpic'
8772 lt_prog_compiler_static='-Bstatic'
8774 ccc*)
8775 lt_prog_compiler_wl='-Wl,'
8776 # All Alpha code is PIC.
8777 lt_prog_compiler_static='-non_shared'
8779 xl* | bgxl* | bgf* | mpixl*)
8780 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8781 lt_prog_compiler_wl='-Wl,'
8782 lt_prog_compiler_pic='-qpic'
8783 lt_prog_compiler_static='-qstaticlink'
8786 case `$CC -V 2>&1 | sed 5q` in
8787 *Sun\ F* | *Sun*Fortran*)
8788 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8789 lt_prog_compiler_pic='-KPIC'
8790 lt_prog_compiler_static='-Bstatic'
8791 lt_prog_compiler_wl=''
8793 *Sun\ C*)
8794 # Sun C 5.9
8795 lt_prog_compiler_pic='-KPIC'
8796 lt_prog_compiler_static='-Bstatic'
8797 lt_prog_compiler_wl='-Wl,'
8799 esac
8801 esac
8804 newsos6)
8805 lt_prog_compiler_pic='-KPIC'
8806 lt_prog_compiler_static='-Bstatic'
8809 *nto* | *qnx*)
8810 # QNX uses GNU C++, but need to define -shared option too, otherwise
8811 # it will coredump.
8812 lt_prog_compiler_pic='-fPIC -shared'
8815 osf3* | osf4* | osf5*)
8816 lt_prog_compiler_wl='-Wl,'
8817 # All OSF/1 code is PIC.
8818 lt_prog_compiler_static='-non_shared'
8821 rdos*)
8822 lt_prog_compiler_static='-non_shared'
8825 solaris*)
8826 lt_prog_compiler_pic='-KPIC'
8827 lt_prog_compiler_static='-Bstatic'
8828 case $cc_basename in
8829 f77* | f90* | f95*)
8830 lt_prog_compiler_wl='-Qoption ld ';;
8832 lt_prog_compiler_wl='-Wl,';;
8833 esac
8836 sunos4*)
8837 lt_prog_compiler_wl='-Qoption ld '
8838 lt_prog_compiler_pic='-PIC'
8839 lt_prog_compiler_static='-Bstatic'
8842 sysv4 | sysv4.2uw2* | sysv4.3*)
8843 lt_prog_compiler_wl='-Wl,'
8844 lt_prog_compiler_pic='-KPIC'
8845 lt_prog_compiler_static='-Bstatic'
8848 sysv4*MP*)
8849 if test -d /usr/nec ;then
8850 lt_prog_compiler_pic='-Kconform_pic'
8851 lt_prog_compiler_static='-Bstatic'
8855 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8856 lt_prog_compiler_wl='-Wl,'
8857 lt_prog_compiler_pic='-KPIC'
8858 lt_prog_compiler_static='-Bstatic'
8861 unicos*)
8862 lt_prog_compiler_wl='-Wl,'
8863 lt_prog_compiler_can_build_shared=no
8866 uts4*)
8867 lt_prog_compiler_pic='-pic'
8868 lt_prog_compiler_static='-Bstatic'
8872 lt_prog_compiler_can_build_shared=no
8874 esac
8877 case $host_os in
8878 # For platforms which do not support PIC, -DPIC is meaningless:
8879 *djgpp*)
8880 lt_prog_compiler_pic=
8883 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8885 esac
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8887 $as_echo "$lt_prog_compiler_pic" >&6; }
8895 # Check to make sure the PIC flag actually works.
8897 if test -n "$lt_prog_compiler_pic"; then
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8899 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8900 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8901 $as_echo_n "(cached) " >&6
8902 else
8903 lt_cv_prog_compiler_pic_works=no
8904 ac_outfile=conftest.$ac_objext
8905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8906 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8907 # Insert the option either (1) after the last *FLAGS variable, or
8908 # (2) before a word containing "conftest.", or (3) at the end.
8909 # Note that $ac_compile itself does not contain backslashes and begins
8910 # with a dollar sign (not a hyphen), so the echo should work correctly.
8911 # The option is referenced via a variable to avoid confusing sed.
8912 lt_compile=`echo "$ac_compile" | $SED \
8913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8915 -e 's:$: $lt_compiler_flag:'`
8916 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8917 (eval "$lt_compile" 2>conftest.err)
8918 ac_status=$?
8919 cat conftest.err >&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 if (exit $ac_status) && test -s "$ac_outfile"; then
8922 # The compiler can only warn and ignore the option if not recognized
8923 # So say no if there are warnings other than the usual output.
8924 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8925 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8926 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8927 lt_cv_prog_compiler_pic_works=yes
8930 $RM conftest*
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8934 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8936 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8937 case $lt_prog_compiler_pic in
8938 "" | " "*) ;;
8939 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8940 esac
8941 else
8942 lt_prog_compiler_pic=
8943 lt_prog_compiler_can_build_shared=no
8954 # Check to make sure the static flag actually works.
8956 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8958 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8959 if ${lt_cv_prog_compiler_static_works+:} false; then :
8960 $as_echo_n "(cached) " >&6
8961 else
8962 lt_cv_prog_compiler_static_works=no
8963 save_LDFLAGS="$LDFLAGS"
8964 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8965 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8966 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8967 # The linker can only warn and ignore the option if not recognized
8968 # So say no if there are warnings
8969 if test -s conftest.err; then
8970 # Append any errors to the config.log.
8971 cat conftest.err 1>&5
8972 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8973 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8974 if diff conftest.exp conftest.er2 >/dev/null; then
8975 lt_cv_prog_compiler_static_works=yes
8977 else
8978 lt_cv_prog_compiler_static_works=yes
8981 $RM -r conftest*
8982 LDFLAGS="$save_LDFLAGS"
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8986 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8988 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8990 else
8991 lt_prog_compiler_static=
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9001 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9002 if ${lt_cv_prog_compiler_c_o+:} false; then :
9003 $as_echo_n "(cached) " >&6
9004 else
9005 lt_cv_prog_compiler_c_o=no
9006 $RM -r conftest 2>/dev/null
9007 mkdir conftest
9008 cd conftest
9009 mkdir out
9010 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9012 lt_compiler_flag="-o out/conftest2.$ac_objext"
9013 # Insert the option either (1) after the last *FLAGS variable, or
9014 # (2) before a word containing "conftest.", or (3) at the end.
9015 # Note that $ac_compile itself does not contain backslashes and begins
9016 # with a dollar sign (not a hyphen), so the echo should work correctly.
9017 lt_compile=`echo "$ac_compile" | $SED \
9018 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9020 -e 's:$: $lt_compiler_flag:'`
9021 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9022 (eval "$lt_compile" 2>out/conftest.err)
9023 ac_status=$?
9024 cat out/conftest.err >&5
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9027 then
9028 # The compiler can only warn and ignore the option if not recognized
9029 # So say no if there are warnings
9030 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9031 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9032 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9033 lt_cv_prog_compiler_c_o=yes
9036 chmod u+w . 2>&5
9037 $RM conftest*
9038 # SGI C++ compiler will create directory out/ii_files/ for
9039 # template instantiation
9040 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9041 $RM out/* && rmdir out
9042 cd ..
9043 $RM -r conftest
9044 $RM conftest*
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9048 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9056 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9057 if ${lt_cv_prog_compiler_c_o+:} false; then :
9058 $as_echo_n "(cached) " >&6
9059 else
9060 lt_cv_prog_compiler_c_o=no
9061 $RM -r conftest 2>/dev/null
9062 mkdir conftest
9063 cd conftest
9064 mkdir out
9065 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9067 lt_compiler_flag="-o out/conftest2.$ac_objext"
9068 # Insert the option either (1) after the last *FLAGS variable, or
9069 # (2) before a word containing "conftest.", or (3) at the end.
9070 # Note that $ac_compile itself does not contain backslashes and begins
9071 # with a dollar sign (not a hyphen), so the echo should work correctly.
9072 lt_compile=`echo "$ac_compile" | $SED \
9073 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9074 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9075 -e 's:$: $lt_compiler_flag:'`
9076 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9077 (eval "$lt_compile" 2>out/conftest.err)
9078 ac_status=$?
9079 cat out/conftest.err >&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9082 then
9083 # The compiler can only warn and ignore the option if not recognized
9084 # So say no if there are warnings
9085 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9086 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9087 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9088 lt_cv_prog_compiler_c_o=yes
9091 chmod u+w . 2>&5
9092 $RM conftest*
9093 # SGI C++ compiler will create directory out/ii_files/ for
9094 # template instantiation
9095 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9096 $RM out/* && rmdir out
9097 cd ..
9098 $RM -r conftest
9099 $RM conftest*
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9103 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9108 hard_links="nottested"
9109 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9110 # do not overwrite the value of need_locks provided by the user
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9112 $as_echo_n "checking if we can lock with hard links... " >&6; }
9113 hard_links=yes
9114 $RM conftest*
9115 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9116 touch conftest.a
9117 ln conftest.a conftest.b 2>&5 || hard_links=no
9118 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9120 $as_echo "$hard_links" >&6; }
9121 if test "$hard_links" = no; then
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9123 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9124 need_locks=warn
9126 else
9127 need_locks=no
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9136 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9138 runpath_var=
9139 allow_undefined_flag=
9140 always_export_symbols=no
9141 archive_cmds=
9142 archive_expsym_cmds=
9143 compiler_needs_object=no
9144 enable_shared_with_static_runtimes=no
9145 export_dynamic_flag_spec=
9146 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9147 hardcode_automatic=no
9148 hardcode_direct=no
9149 hardcode_direct_absolute=no
9150 hardcode_libdir_flag_spec=
9151 hardcode_libdir_flag_spec_ld=
9152 hardcode_libdir_separator=
9153 hardcode_minus_L=no
9154 hardcode_shlibpath_var=unsupported
9155 inherit_rpath=no
9156 link_all_deplibs=unknown
9157 module_cmds=
9158 module_expsym_cmds=
9159 old_archive_from_new_cmds=
9160 old_archive_from_expsyms_cmds=
9161 thread_safe_flag_spec=
9162 whole_archive_flag_spec=
9163 # include_expsyms should be a list of space-separated symbols to be *always*
9164 # included in the symbol list
9165 include_expsyms=
9166 # exclude_expsyms can be an extended regexp of symbols to exclude
9167 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9168 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9169 # as well as any symbol that contains `d'.
9170 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9171 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9172 # platforms (ab)use it in PIC code, but their linkers get confused if
9173 # the symbol is explicitly referenced. Since portable code cannot
9174 # rely on this symbol name, it's probably fine to never include it in
9175 # preloaded symbol tables.
9176 # Exclude shared library initialization/finalization symbols.
9177 extract_expsyms_cmds=
9179 case $host_os in
9180 cygwin* | mingw* | pw32* | cegcc*)
9181 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9182 # When not using gcc, we currently assume that we are using
9183 # Microsoft Visual C++.
9184 if test "$GCC" != yes; then
9185 with_gnu_ld=no
9188 interix*)
9189 # we just hope/assume this is gcc and not c89 (= MSVC++)
9190 with_gnu_ld=yes
9192 openbsd*)
9193 with_gnu_ld=no
9195 esac
9197 ld_shlibs=yes
9199 # On some targets, GNU ld is compatible enough with the native linker
9200 # that we're better off using the native interface for both.
9201 lt_use_gnu_ld_interface=no
9202 if test "$with_gnu_ld" = yes; then
9203 case $host_os in
9204 aix*)
9205 # The AIX port of GNU ld has always aspired to compatibility
9206 # with the native linker. However, as the warning in the GNU ld
9207 # block says, versions before 2.19.5* couldn't really create working
9208 # shared libraries, regardless of the interface used.
9209 case `$LD -v 2>&1` in
9210 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9211 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9212 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9214 lt_use_gnu_ld_interface=yes
9216 esac
9219 lt_use_gnu_ld_interface=yes
9221 esac
9224 if test "$lt_use_gnu_ld_interface" = yes; then
9225 # If archive_cmds runs LD, not CC, wlarc should be empty
9226 wlarc='${wl}'
9228 # Set some defaults for GNU ld with shared library support. These
9229 # are reset later if shared libraries are not supported. Putting them
9230 # here allows them to be overridden if necessary.
9231 runpath_var=LD_RUN_PATH
9232 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9233 export_dynamic_flag_spec='${wl}--export-dynamic'
9234 # ancient GNU ld didn't support --whole-archive et. al.
9235 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9236 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9237 else
9238 whole_archive_flag_spec=
9240 supports_anon_versioning=no
9241 case `$LD -v 2>&1` in
9242 *GNU\ gold*) supports_anon_versioning=yes ;;
9243 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9244 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9245 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9246 *\ 2.11.*) ;; # other 2.11 versions
9247 *) supports_anon_versioning=yes ;;
9248 esac
9250 # See if GNU ld supports shared libraries.
9251 case $host_os in
9252 aix[3-9]*)
9253 # On AIX/PPC, the GNU linker is very broken
9254 if test "$host_cpu" != ia64; then
9255 ld_shlibs=no
9256 cat <<_LT_EOF 1>&2
9258 *** Warning: the GNU linker, at least up to release 2.19, is reported
9259 *** to be unable to reliably create shared libraries on AIX.
9260 *** Therefore, libtool is disabling shared libraries support. If you
9261 *** really care for shared libraries, you may want to install binutils
9262 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9263 *** You will then need to restart the configuration process.
9265 _LT_EOF
9269 amigaos*)
9270 case $host_cpu in
9271 powerpc)
9272 # see comment about AmigaOS4 .so support
9273 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9274 archive_expsym_cmds=''
9276 m68k)
9277 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)'
9278 hardcode_libdir_flag_spec='-L$libdir'
9279 hardcode_minus_L=yes
9281 esac
9284 beos*)
9285 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9286 allow_undefined_flag=unsupported
9287 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9288 # support --undefined. This deserves some investigation. FIXME
9289 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9290 else
9291 ld_shlibs=no
9295 cygwin* | mingw* | pw32* | cegcc*)
9296 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9297 # as there is no search path for DLLs.
9298 hardcode_libdir_flag_spec='-L$libdir'
9299 export_dynamic_flag_spec='${wl}--export-all-symbols'
9300 allow_undefined_flag=unsupported
9301 always_export_symbols=no
9302 enable_shared_with_static_runtimes=yes
9303 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9305 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9306 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9307 # If the export-symbols file already is a .def file (1st line
9308 # is EXPORTS), use it as is; otherwise, prepend...
9309 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9310 cp $export_symbols $output_objdir/$soname.def;
9311 else
9312 echo EXPORTS > $output_objdir/$soname.def;
9313 cat $export_symbols >> $output_objdir/$soname.def;
9315 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9316 else
9317 ld_shlibs=no
9321 haiku*)
9322 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9323 link_all_deplibs=yes
9326 interix[3-9]*)
9327 hardcode_direct=no
9328 hardcode_shlibpath_var=no
9329 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9330 export_dynamic_flag_spec='${wl}-E'
9331 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9332 # Instead, shared libraries are loaded at an image base (0x10000000 by
9333 # default) and relocated if they conflict, which is a slow very memory
9334 # consuming and fragmenting process. To avoid this, we pick a random,
9335 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9336 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9337 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9338 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'
9341 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9342 tmp_diet=no
9343 if test "$host_os" = linux-dietlibc; then
9344 case $cc_basename in
9345 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9346 esac
9348 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9349 && test "$tmp_diet" = no
9350 then
9351 tmp_addflag=' $pic_flag'
9352 tmp_sharedflag='-shared'
9353 case $cc_basename,$host_cpu in
9354 pgcc*) # Portland Group C compiler
9355 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'
9356 tmp_addflag=' $pic_flag'
9358 pgf77* | pgf90* | pgf95* | pgfortran*)
9359 # Portland Group f77 and f90 compilers
9360 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'
9361 tmp_addflag=' $pic_flag -Mnomain' ;;
9362 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9363 tmp_addflag=' -i_dynamic' ;;
9364 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9365 tmp_addflag=' -i_dynamic -nofor_main' ;;
9366 ifc* | ifort*) # Intel Fortran compiler
9367 tmp_addflag=' -nofor_main' ;;
9368 lf95*) # Lahey Fortran 8.1
9369 whole_archive_flag_spec=
9370 tmp_sharedflag='--shared' ;;
9371 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9372 tmp_sharedflag='-qmkshrobj'
9373 tmp_addflag= ;;
9374 nvcc*) # Cuda Compiler Driver 2.2
9375 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'
9376 compiler_needs_object=yes
9378 esac
9379 case `$CC -V 2>&1 | sed 5q` in
9380 *Sun\ C*) # Sun C 5.9
9381 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'
9382 compiler_needs_object=yes
9383 tmp_sharedflag='-G' ;;
9384 *Sun\ F*) # Sun Fortran 8.3
9385 tmp_sharedflag='-G' ;;
9386 esac
9387 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9389 if test "x$supports_anon_versioning" = xyes; then
9390 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9391 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9392 echo "local: *; };" >> $output_objdir/$libname.ver~
9393 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9396 case $cc_basename in
9397 xlf* | bgf* | bgxlf* | mpixlf*)
9398 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9399 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9400 hardcode_libdir_flag_spec=
9401 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9402 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9403 if test "x$supports_anon_versioning" = xyes; then
9404 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9405 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9406 echo "local: *; };" >> $output_objdir/$libname.ver~
9407 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9410 esac
9411 else
9412 ld_shlibs=no
9416 netbsd*)
9417 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9418 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9419 wlarc=
9420 else
9421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9422 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9426 solaris*)
9427 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9428 ld_shlibs=no
9429 cat <<_LT_EOF 1>&2
9431 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9432 *** create shared libraries on Solaris systems. Therefore, libtool
9433 *** is disabling shared libraries support. We urge you to upgrade GNU
9434 *** binutils to release 2.9.1 or newer. Another option is to modify
9435 *** your PATH or compiler configuration so that the native linker is
9436 *** used, and then restart.
9438 _LT_EOF
9439 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9440 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9441 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9442 else
9443 ld_shlibs=no
9447 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9448 case `$LD -v 2>&1` in
9449 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9450 ld_shlibs=no
9451 cat <<_LT_EOF 1>&2
9453 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9454 *** reliably create shared libraries on SCO systems. Therefore, libtool
9455 *** is disabling shared libraries support. We urge you to upgrade GNU
9456 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9457 *** your PATH or compiler configuration so that the native linker is
9458 *** used, and then restart.
9460 _LT_EOF
9463 # For security reasons, it is highly recommended that you always
9464 # use absolute paths for naming shared libraries, and exclude the
9465 # DT_RUNPATH tag from executables and libraries. But doing so
9466 # requires that you compile everything twice, which is a pain.
9467 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9468 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9469 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9470 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9471 else
9472 ld_shlibs=no
9475 esac
9478 sunos4*)
9479 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9480 wlarc=
9481 hardcode_direct=yes
9482 hardcode_shlibpath_var=no
9486 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9487 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9488 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9489 else
9490 ld_shlibs=no
9493 esac
9495 if test "$ld_shlibs" = no; then
9496 runpath_var=
9497 hardcode_libdir_flag_spec=
9498 export_dynamic_flag_spec=
9499 whole_archive_flag_spec=
9501 else
9502 # PORTME fill in a description of your system's linker (not GNU ld)
9503 case $host_os in
9504 aix3*)
9505 allow_undefined_flag=unsupported
9506 always_export_symbols=yes
9507 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'
9508 # Note: this linker hardcodes the directories in LIBPATH if there
9509 # are no directories specified by -L.
9510 hardcode_minus_L=yes
9511 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9512 # Neither direct hardcoding nor static linking is supported with a
9513 # broken collect2.
9514 hardcode_direct=unsupported
9518 aix[4-9]*)
9519 if test "$host_cpu" = ia64; then
9520 # On IA64, the linker does run time linking by default, so we don't
9521 # have to do anything special.
9522 aix_use_runtimelinking=no
9523 exp_sym_flag='-Bexport'
9524 no_entry_flag=""
9525 else
9526 # If we're using GNU nm, then we don't want the "-C" option.
9527 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9528 # Also, AIX nm treats weak defined symbols like other global
9529 # defined symbols, whereas GNU nm marks them as "W".
9530 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9531 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'
9532 else
9533 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'
9535 aix_use_runtimelinking=no
9537 # Test if we are trying to use run time linking or normal
9538 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9539 # need to do runtime linking.
9540 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9541 for ld_flag in $LDFLAGS; do
9542 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9543 aix_use_runtimelinking=yes
9544 break
9546 done
9548 esac
9550 exp_sym_flag='-bexport'
9551 no_entry_flag='-bnoentry'
9554 # When large executables or shared objects are built, AIX ld can
9555 # have problems creating the table of contents. If linking a library
9556 # or program results in "error TOC overflow" add -mminimal-toc to
9557 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9558 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9560 archive_cmds=''
9561 hardcode_direct=yes
9562 hardcode_direct_absolute=yes
9563 hardcode_libdir_separator=':'
9564 link_all_deplibs=yes
9565 file_list_spec='${wl}-f,'
9567 if test "$GCC" = yes; then
9568 case $host_os in aix4.[012]|aix4.[012].*)
9569 # We only want to do this on AIX 4.2 and lower, the check
9570 # below for broken collect2 doesn't work under 4.3+
9571 collect2name=`${CC} -print-prog-name=collect2`
9572 if test -f "$collect2name" &&
9573 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9574 then
9575 # We have reworked collect2
9577 else
9578 # We have old collect2
9579 hardcode_direct=unsupported
9580 # It fails to find uninstalled libraries when the uninstalled
9581 # path is not listed in the libpath. Setting hardcode_minus_L
9582 # to unsupported forces relinking
9583 hardcode_minus_L=yes
9584 hardcode_libdir_flag_spec='-L$libdir'
9585 hardcode_libdir_separator=
9588 esac
9589 shared_flag='-shared'
9590 if test "$aix_use_runtimelinking" = yes; then
9591 shared_flag="$shared_flag "'${wl}-G'
9593 else
9594 # not using gcc
9595 if test "$host_cpu" = ia64; then
9596 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9597 # chokes on -Wl,-G. The following line is correct:
9598 shared_flag='-G'
9599 else
9600 if test "$aix_use_runtimelinking" = yes; then
9601 shared_flag='${wl}-G'
9602 else
9603 shared_flag='${wl}-bM:SRE'
9608 export_dynamic_flag_spec='${wl}-bexpall'
9609 # It seems that -bexpall does not export symbols beginning with
9610 # underscore (_), so it is better to generate a list of symbols to export.
9611 always_export_symbols=yes
9612 if test "$aix_use_runtimelinking" = yes; then
9613 # Warning - without using the other runtime loading flags (-brtl),
9614 # -berok will link without error, but may produce a broken library.
9615 allow_undefined_flag='-berok'
9616 # Determine the default libpath from the value encoded in an
9617 # empty executable.
9618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9619 /* end confdefs.h. */
9622 main ()
9626 return 0;
9628 _ACEOF
9629 if ac_fn_c_try_link "$LINENO"; then :
9631 lt_aix_libpath_sed='
9632 /Import File Strings/,/^$/ {
9633 /^0/ {
9634 s/^0 *\(.*\)$/\1/
9638 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9639 # Check for a 64-bit object if we didn't find anything.
9640 if test -z "$aix_libpath"; then
9641 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9644 rm -f core conftest.err conftest.$ac_objext \
9645 conftest$ac_exeext conftest.$ac_ext
9646 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9648 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9649 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"
9650 else
9651 if test "$host_cpu" = ia64; then
9652 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9653 allow_undefined_flag="-z nodefs"
9654 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"
9655 else
9656 # Determine the default libpath from the value encoded in an
9657 # empty executable.
9658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9659 /* end confdefs.h. */
9662 main ()
9666 return 0;
9668 _ACEOF
9669 if ac_fn_c_try_link "$LINENO"; then :
9671 lt_aix_libpath_sed='
9672 /Import File Strings/,/^$/ {
9673 /^0/ {
9674 s/^0 *\(.*\)$/\1/
9678 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9679 # Check for a 64-bit object if we didn't find anything.
9680 if test -z "$aix_libpath"; then
9681 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9684 rm -f core conftest.err conftest.$ac_objext \
9685 conftest$ac_exeext conftest.$ac_ext
9686 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9688 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9689 # Warning - without using the other run time loading flags,
9690 # -berok will link without error, but may produce a broken library.
9691 no_undefined_flag=' ${wl}-bernotok'
9692 allow_undefined_flag=' ${wl}-berok'
9693 if test "$with_gnu_ld" = yes; then
9694 # We only use this code for GNU lds that support --whole-archive.
9695 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9696 else
9697 # Exported symbols can be pulled into shared objects from archives
9698 whole_archive_flag_spec='$convenience'
9700 archive_cmds_need_lc=yes
9701 # This is similar to how AIX traditionally builds its shared libraries.
9702 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'
9707 amigaos*)
9708 case $host_cpu in
9709 powerpc)
9710 # see comment about AmigaOS4 .so support
9711 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9712 archive_expsym_cmds=''
9714 m68k)
9715 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)'
9716 hardcode_libdir_flag_spec='-L$libdir'
9717 hardcode_minus_L=yes
9719 esac
9722 bsdi[45]*)
9723 export_dynamic_flag_spec=-rdynamic
9726 cygwin* | mingw* | pw32* | cegcc*)
9727 # When not using gcc, we currently assume that we are using
9728 # Microsoft Visual C++.
9729 # hardcode_libdir_flag_spec is actually meaningless, as there is
9730 # no search path for DLLs.
9731 hardcode_libdir_flag_spec=' '
9732 allow_undefined_flag=unsupported
9733 # Tell ltmain to make .lib files, not .a files.
9734 libext=lib
9735 # Tell ltmain to make .dll files, not .so files.
9736 shrext_cmds=".dll"
9737 # FIXME: Setting linknames here is a bad hack.
9738 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9739 # The linker will automatically build a .lib file if we build a DLL.
9740 old_archive_from_new_cmds='true'
9741 # FIXME: Should let the user specify the lib program.
9742 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9743 fix_srcfile_path='`cygpath -w "$srcfile"`'
9744 enable_shared_with_static_runtimes=yes
9747 darwin* | rhapsody*)
9750 archive_cmds_need_lc=no
9751 hardcode_direct=no
9752 hardcode_automatic=yes
9753 hardcode_shlibpath_var=unsupported
9754 if test "$lt_cv_ld_force_load" = "yes"; then
9755 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\"`'
9756 else
9757 whole_archive_flag_spec=''
9759 link_all_deplibs=yes
9760 allow_undefined_flag="$_lt_dar_allow_undefined"
9761 case $cc_basename in
9762 ifort*) _lt_dar_can_shared=yes ;;
9763 *) _lt_dar_can_shared=$GCC ;;
9764 esac
9765 if test "$_lt_dar_can_shared" = "yes"; then
9766 output_verbose_link_cmd=func_echo_all
9767 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9768 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9769 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9770 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}"
9772 else
9773 ld_shlibs=no
9778 dgux*)
9779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9780 hardcode_libdir_flag_spec='-L$libdir'
9781 hardcode_shlibpath_var=no
9784 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9785 # support. Future versions do this automatically, but an explicit c++rt0.o
9786 # does not break anything, and helps significantly (at the cost of a little
9787 # extra space).
9788 freebsd2.2*)
9789 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9790 hardcode_libdir_flag_spec='-R$libdir'
9791 hardcode_direct=yes
9792 hardcode_shlibpath_var=no
9795 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9796 freebsd2.*)
9797 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9798 hardcode_direct=yes
9799 hardcode_minus_L=yes
9800 hardcode_shlibpath_var=no
9803 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9804 freebsd* | dragonfly*)
9805 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9806 hardcode_libdir_flag_spec='-R$libdir'
9807 hardcode_direct=yes
9808 hardcode_shlibpath_var=no
9811 hpux9*)
9812 if test "$GCC" = yes; then
9813 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'
9814 else
9815 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'
9817 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9818 hardcode_libdir_separator=:
9819 hardcode_direct=yes
9821 # hardcode_minus_L: Not really in the search PATH,
9822 # but as the default location of the library.
9823 hardcode_minus_L=yes
9824 export_dynamic_flag_spec='${wl}-E'
9827 hpux10*)
9828 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9829 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9830 else
9831 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9833 if test "$with_gnu_ld" = no; then
9834 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9835 hardcode_libdir_flag_spec_ld='+b $libdir'
9836 hardcode_libdir_separator=:
9837 hardcode_direct=yes
9838 hardcode_direct_absolute=yes
9839 export_dynamic_flag_spec='${wl}-E'
9840 # hardcode_minus_L: Not really in the search PATH,
9841 # but as the default location of the library.
9842 hardcode_minus_L=yes
9846 hpux11*)
9847 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9848 case $host_cpu in
9849 hppa*64*)
9850 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9852 ia64*)
9853 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9856 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9858 esac
9859 else
9860 case $host_cpu in
9861 hppa*64*)
9862 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9864 ia64*)
9865 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9869 # Older versions of the 11.00 compiler do not understand -b yet
9870 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9872 $as_echo_n "checking if $CC understands -b... " >&6; }
9873 if ${lt_cv_prog_compiler__b+:} false; then :
9874 $as_echo_n "(cached) " >&6
9875 else
9876 lt_cv_prog_compiler__b=no
9877 save_LDFLAGS="$LDFLAGS"
9878 LDFLAGS="$LDFLAGS -b"
9879 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9880 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9881 # The linker can only warn and ignore the option if not recognized
9882 # So say no if there are warnings
9883 if test -s conftest.err; then
9884 # Append any errors to the config.log.
9885 cat conftest.err 1>&5
9886 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9887 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9888 if diff conftest.exp conftest.er2 >/dev/null; then
9889 lt_cv_prog_compiler__b=yes
9891 else
9892 lt_cv_prog_compiler__b=yes
9895 $RM -r conftest*
9896 LDFLAGS="$save_LDFLAGS"
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9900 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9902 if test x"$lt_cv_prog_compiler__b" = xyes; then
9903 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9904 else
9905 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9909 esac
9911 if test "$with_gnu_ld" = no; then
9912 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9913 hardcode_libdir_separator=:
9915 case $host_cpu in
9916 hppa*64*|ia64*)
9917 hardcode_direct=no
9918 hardcode_shlibpath_var=no
9921 hardcode_direct=yes
9922 hardcode_direct_absolute=yes
9923 export_dynamic_flag_spec='${wl}-E'
9925 # hardcode_minus_L: Not really in the search PATH,
9926 # but as the default location of the library.
9927 hardcode_minus_L=yes
9929 esac
9933 irix5* | irix6* | nonstopux*)
9934 if test "$GCC" = yes; then
9935 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'
9936 # Try to use the -exported_symbol ld option, if it does not
9937 # work, assume that -exports_file does not work either and
9938 # implicitly export all symbols.
9939 save_LDFLAGS="$LDFLAGS"
9940 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9942 /* end confdefs.h. */
9943 int foo(void) {}
9944 _ACEOF
9945 if ac_fn_c_try_link "$LINENO"; then :
9946 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'
9949 rm -f core conftest.err conftest.$ac_objext \
9950 conftest$ac_exeext conftest.$ac_ext
9951 LDFLAGS="$save_LDFLAGS"
9952 else
9953 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'
9954 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'
9956 archive_cmds_need_lc='no'
9957 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9958 hardcode_libdir_separator=:
9959 inherit_rpath=yes
9960 link_all_deplibs=yes
9963 netbsd*)
9964 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9965 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9966 else
9967 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9969 hardcode_libdir_flag_spec='-R$libdir'
9970 hardcode_direct=yes
9971 hardcode_shlibpath_var=no
9974 newsos6)
9975 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9976 hardcode_direct=yes
9977 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9978 hardcode_libdir_separator=:
9979 hardcode_shlibpath_var=no
9982 *nto* | *qnx*)
9985 openbsd*)
9986 if test -f /usr/libexec/ld.so; then
9987 hardcode_direct=yes
9988 hardcode_shlibpath_var=no
9989 hardcode_direct_absolute=yes
9990 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9991 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9992 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9993 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9994 export_dynamic_flag_spec='${wl}-E'
9995 else
9996 case $host_os in
9997 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9998 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9999 hardcode_libdir_flag_spec='-R$libdir'
10002 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10003 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10005 esac
10007 else
10008 ld_shlibs=no
10012 os2*)
10013 hardcode_libdir_flag_spec='-L$libdir'
10014 hardcode_minus_L=yes
10015 allow_undefined_flag=unsupported
10016 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'
10017 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10020 osf3*)
10021 if test "$GCC" = yes; then
10022 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10023 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'
10024 else
10025 allow_undefined_flag=' -expect_unresolved \*'
10026 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'
10028 archive_cmds_need_lc='no'
10029 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10030 hardcode_libdir_separator=:
10033 osf4* | osf5*) # as osf3* with the addition of -msym flag
10034 if test "$GCC" = yes; then
10035 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10036 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'
10037 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10038 else
10039 allow_undefined_flag=' -expect_unresolved \*'
10040 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'
10041 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~
10042 $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'
10044 # Both c and cxx compiler support -rpath directly
10045 hardcode_libdir_flag_spec='-rpath $libdir'
10047 archive_cmds_need_lc='no'
10048 hardcode_libdir_separator=:
10051 solaris*)
10052 no_undefined_flag=' -z defs'
10053 if test "$GCC" = yes; then
10054 wlarc='${wl}'
10055 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10056 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10057 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10058 else
10059 case `$CC -V 2>&1` in
10060 *"Compilers 5.0"*)
10061 wlarc=''
10062 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10063 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10064 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10067 wlarc='${wl}'
10068 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10069 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10070 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10072 esac
10074 hardcode_libdir_flag_spec='-R$libdir'
10075 hardcode_shlibpath_var=no
10076 case $host_os in
10077 solaris2.[0-5] | solaris2.[0-5].*) ;;
10079 # The compiler driver will combine and reorder linker options,
10080 # but understands `-z linker_flag'. GCC discards it without `$wl',
10081 # but is careful enough not to reorder.
10082 # Supported since Solaris 2.6 (maybe 2.5.1?)
10083 if test "$GCC" = yes; then
10084 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10085 else
10086 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10089 esac
10090 link_all_deplibs=yes
10093 sunos4*)
10094 if test "x$host_vendor" = xsequent; then
10095 # Use $CC to link under sequent, because it throws in some extra .o
10096 # files that make .init and .fini sections work.
10097 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10098 else
10099 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10101 hardcode_libdir_flag_spec='-L$libdir'
10102 hardcode_direct=yes
10103 hardcode_minus_L=yes
10104 hardcode_shlibpath_var=no
10107 sysv4)
10108 case $host_vendor in
10109 sni)
10110 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10111 hardcode_direct=yes # is this really true???
10113 siemens)
10114 ## LD is ld it makes a PLAMLIB
10115 ## CC just makes a GrossModule.
10116 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10117 reload_cmds='$CC -r -o $output$reload_objs'
10118 hardcode_direct=no
10120 motorola)
10121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10122 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10124 esac
10125 runpath_var='LD_RUN_PATH'
10126 hardcode_shlibpath_var=no
10129 sysv4.3*)
10130 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10131 hardcode_shlibpath_var=no
10132 export_dynamic_flag_spec='-Bexport'
10135 sysv4*MP*)
10136 if test -d /usr/nec; then
10137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10138 hardcode_shlibpath_var=no
10139 runpath_var=LD_RUN_PATH
10140 hardcode_runpath_var=yes
10141 ld_shlibs=yes
10145 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10146 no_undefined_flag='${wl}-z,text'
10147 archive_cmds_need_lc=no
10148 hardcode_shlibpath_var=no
10149 runpath_var='LD_RUN_PATH'
10151 if test "$GCC" = yes; then
10152 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10153 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10154 else
10155 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10156 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10160 sysv5* | sco3.2v5* | sco5v6*)
10161 # Note: We can NOT use -z defs as we might desire, because we do not
10162 # link with -lc, and that would cause any symbols used from libc to
10163 # always be unresolved, which means just about no library would
10164 # ever link correctly. If we're not using GNU ld we use -z text
10165 # though, which does catch some bad symbols but isn't as heavy-handed
10166 # as -z defs.
10167 no_undefined_flag='${wl}-z,text'
10168 allow_undefined_flag='${wl}-z,nodefs'
10169 archive_cmds_need_lc=no
10170 hardcode_shlibpath_var=no
10171 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10172 hardcode_libdir_separator=':'
10173 link_all_deplibs=yes
10174 export_dynamic_flag_spec='${wl}-Bexport'
10175 runpath_var='LD_RUN_PATH'
10177 if test "$GCC" = yes; then
10178 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10179 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10180 else
10181 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10182 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10186 uts4*)
10187 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10188 hardcode_libdir_flag_spec='-L$libdir'
10189 hardcode_shlibpath_var=no
10193 ld_shlibs=no
10195 esac
10197 if test x$host_vendor = xsni; then
10198 case $host in
10199 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10200 export_dynamic_flag_spec='${wl}-Blargedynsym'
10202 esac
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10207 $as_echo "$ld_shlibs" >&6; }
10208 test "$ld_shlibs" = no && can_build_shared=no
10210 with_gnu_ld=$with_gnu_ld
10227 # Do we need to explicitly link libc?
10229 case "x$archive_cmds_need_lc" in
10230 x|xyes)
10231 # Assume -lc should be added
10232 archive_cmds_need_lc=yes
10234 if test "$enable_shared" = yes && test "$GCC" = yes; then
10235 case $archive_cmds in
10236 *'~'*)
10237 # FIXME: we may have to deal with multi-command sequences.
10239 '$CC '*)
10240 # Test whether the compiler implicitly links with -lc since on some
10241 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10242 # to ld, don't add -lc before -lgcc.
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10244 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10245 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10246 $as_echo_n "(cached) " >&6
10247 else
10248 $RM conftest*
10249 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10252 (eval $ac_compile) 2>&5
10253 ac_status=$?
10254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10255 test $ac_status = 0; } 2>conftest.err; then
10256 soname=conftest
10257 lib=conftest
10258 libobjs=conftest.$ac_objext
10259 deplibs=
10260 wl=$lt_prog_compiler_wl
10261 pic_flag=$lt_prog_compiler_pic
10262 compiler_flags=-v
10263 linker_flags=-v
10264 verstring=
10265 output_objdir=.
10266 libname=conftest
10267 lt_save_allow_undefined_flag=$allow_undefined_flag
10268 allow_undefined_flag=
10269 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10270 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10271 ac_status=$?
10272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10273 test $ac_status = 0; }
10274 then
10275 lt_cv_archive_cmds_need_lc=no
10276 else
10277 lt_cv_archive_cmds_need_lc=yes
10279 allow_undefined_flag=$lt_save_allow_undefined_flag
10280 else
10281 cat conftest.err 1>&5
10283 $RM conftest*
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10287 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10288 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10290 esac
10293 esac
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10452 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10454 if test "$GCC" = yes; then
10455 case $host_os in
10456 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10457 *) lt_awk_arg="/^libraries:/" ;;
10458 esac
10459 case $host_os in
10460 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10461 *) lt_sed_strip_eq="s,=/,/,g" ;;
10462 esac
10463 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10464 case $lt_search_path_spec in
10465 *\;*)
10466 # if the path contains ";" then we assume it to be the separator
10467 # otherwise default to the standard path separator (i.e. ":") - it is
10468 # assumed that no part of a normal pathname contains ";" but that should
10469 # okay in the real world where ";" in dirpaths is itself problematic.
10470 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10473 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10475 esac
10476 # Ok, now we have the path, separated by spaces, we can step through it
10477 # and add multilib dir if necessary.
10478 lt_tmp_lt_search_path_spec=
10479 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10480 for lt_sys_path in $lt_search_path_spec; do
10481 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10482 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10483 else
10484 test -d "$lt_sys_path" && \
10485 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10487 done
10488 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10489 BEGIN {RS=" "; FS="/|\n";} {
10490 lt_foo="";
10491 lt_count=0;
10492 for (lt_i = NF; lt_i > 0; lt_i--) {
10493 if ($lt_i != "" && $lt_i != ".") {
10494 if ($lt_i == "..") {
10495 lt_count++;
10496 } else {
10497 if (lt_count == 0) {
10498 lt_foo="/" $lt_i lt_foo;
10499 } else {
10500 lt_count--;
10505 if (lt_foo != "") { lt_freq[lt_foo]++; }
10506 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10508 # AWK program above erroneously prepends '/' to C:/dos/paths
10509 # for these hosts.
10510 case $host_os in
10511 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10512 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10513 esac
10514 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10515 else
10516 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10518 library_names_spec=
10519 libname_spec='lib$name'
10520 soname_spec=
10521 shrext_cmds=".so"
10522 postinstall_cmds=
10523 postuninstall_cmds=
10524 finish_cmds=
10525 finish_eval=
10526 shlibpath_var=
10527 shlibpath_overrides_runpath=unknown
10528 version_type=none
10529 dynamic_linker="$host_os ld.so"
10530 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10531 need_lib_prefix=unknown
10532 hardcode_into_libs=no
10534 # when you set need_version to no, make sure it does not cause -set_version
10535 # flags to be left without arguments
10536 need_version=unknown
10538 case $host_os in
10539 aix3*)
10540 version_type=linux
10541 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10542 shlibpath_var=LIBPATH
10544 # AIX 3 has no versioning support, so we append a major version to the name.
10545 soname_spec='${libname}${release}${shared_ext}$major'
10548 aix[4-9]*)
10549 version_type=linux
10550 need_lib_prefix=no
10551 need_version=no
10552 hardcode_into_libs=yes
10553 if test "$host_cpu" = ia64; then
10554 # AIX 5 supports IA64
10555 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10556 shlibpath_var=LD_LIBRARY_PATH
10557 else
10558 # With GCC up to 2.95.x, collect2 would create an import file
10559 # for dependence libraries. The import file would start with
10560 # the line `#! .'. This would cause the generated library to
10561 # depend on `.', always an invalid library. This was fixed in
10562 # development snapshots of GCC prior to 3.0.
10563 case $host_os in
10564 aix4 | aix4.[01] | aix4.[01].*)
10565 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10566 echo ' yes '
10567 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10569 else
10570 can_build_shared=no
10573 esac
10574 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10575 # soname into executable. Probably we can add versioning support to
10576 # collect2, so additional links can be useful in future.
10577 if test "$aix_use_runtimelinking" = yes; then
10578 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10579 # instead of lib<name>.a to let people know that these are not
10580 # typical AIX shared libraries.
10581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10582 else
10583 # We preserve .a as extension for shared libraries through AIX4.2
10584 # and later when we are not doing run time linking.
10585 library_names_spec='${libname}${release}.a $libname.a'
10586 soname_spec='${libname}${release}${shared_ext}$major'
10588 shlibpath_var=LIBPATH
10592 amigaos*)
10593 case $host_cpu in
10594 powerpc)
10595 # Since July 2007 AmigaOS4 officially supports .so libraries.
10596 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10599 m68k)
10600 library_names_spec='$libname.ixlibrary $libname.a'
10601 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10602 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'
10604 esac
10607 beos*)
10608 library_names_spec='${libname}${shared_ext}'
10609 dynamic_linker="$host_os ld.so"
10610 shlibpath_var=LIBRARY_PATH
10613 bsdi[45]*)
10614 version_type=linux
10615 need_version=no
10616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10617 soname_spec='${libname}${release}${shared_ext}$major'
10618 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10619 shlibpath_var=LD_LIBRARY_PATH
10620 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10621 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10622 # the default ld.so.conf also contains /usr/contrib/lib and
10623 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10624 # libtool to hard-code these into programs
10627 cygwin* | mingw* | pw32* | cegcc*)
10628 version_type=windows
10629 shrext_cmds=".dll"
10630 need_version=no
10631 need_lib_prefix=no
10633 case $GCC,$host_os in
10634 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10635 library_names_spec='$libname.dll.a'
10636 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10637 postinstall_cmds='base_file=`basename \${file}`~
10638 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10639 dldir=$destdir/`dirname \$dlpath`~
10640 test -d \$dldir || mkdir -p \$dldir~
10641 $install_prog $dir/$dlname \$dldir/$dlname~
10642 chmod a+x \$dldir/$dlname~
10643 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10644 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10646 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10647 dlpath=$dir/\$dldll~
10648 $RM \$dlpath'
10649 shlibpath_overrides_runpath=yes
10651 case $host_os in
10652 cygwin*)
10653 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10654 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10656 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10658 mingw* | cegcc*)
10659 # MinGW DLLs use traditional 'lib' prefix
10660 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10662 pw32*)
10663 # pw32 DLLs use 'pw' prefix rather than 'lib'
10664 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10666 esac
10670 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10672 esac
10673 dynamic_linker='Win32 ld.exe'
10674 # FIXME: first we should search . and the directory the executable is in
10675 shlibpath_var=PATH
10678 darwin* | rhapsody*)
10679 dynamic_linker="$host_os dyld"
10680 version_type=darwin
10681 need_lib_prefix=no
10682 need_version=no
10683 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10684 soname_spec='${libname}${release}${major}$shared_ext'
10685 shlibpath_overrides_runpath=yes
10686 shlibpath_var=DYLD_LIBRARY_PATH
10687 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10689 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10690 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10693 dgux*)
10694 version_type=linux
10695 need_lib_prefix=no
10696 need_version=no
10697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10698 soname_spec='${libname}${release}${shared_ext}$major'
10699 shlibpath_var=LD_LIBRARY_PATH
10702 freebsd* | dragonfly*)
10703 # DragonFly does not have aout. When/if they implement a new
10704 # versioning mechanism, adjust this.
10705 if test -x /usr/bin/objformat; then
10706 objformat=`/usr/bin/objformat`
10707 else
10708 case $host_os in
10709 freebsd[23].*) objformat=aout ;;
10710 *) objformat=elf ;;
10711 esac
10713 version_type=freebsd-$objformat
10714 case $version_type in
10715 freebsd-elf*)
10716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10717 need_version=no
10718 need_lib_prefix=no
10720 freebsd-*)
10721 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10722 need_version=yes
10724 esac
10725 shlibpath_var=LD_LIBRARY_PATH
10726 case $host_os in
10727 freebsd2.*)
10728 shlibpath_overrides_runpath=yes
10730 freebsd3.[01]* | freebsdelf3.[01]*)
10731 shlibpath_overrides_runpath=yes
10732 hardcode_into_libs=yes
10734 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10735 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10736 shlibpath_overrides_runpath=no
10737 hardcode_into_libs=yes
10739 *) # from 4.6 on, and DragonFly
10740 shlibpath_overrides_runpath=yes
10741 hardcode_into_libs=yes
10743 esac
10746 gnu*)
10747 version_type=linux
10748 need_lib_prefix=no
10749 need_version=no
10750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10751 soname_spec='${libname}${release}${shared_ext}$major'
10752 shlibpath_var=LD_LIBRARY_PATH
10753 hardcode_into_libs=yes
10756 haiku*)
10757 version_type=linux
10758 need_lib_prefix=no
10759 need_version=no
10760 dynamic_linker="$host_os runtime_loader"
10761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10762 soname_spec='${libname}${release}${shared_ext}$major'
10763 shlibpath_var=LIBRARY_PATH
10764 shlibpath_overrides_runpath=yes
10765 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10766 hardcode_into_libs=yes
10769 hpux9* | hpux10* | hpux11*)
10770 # Give a soname corresponding to the major version so that dld.sl refuses to
10771 # link against other versions.
10772 version_type=sunos
10773 need_lib_prefix=no
10774 need_version=no
10775 case $host_cpu in
10776 ia64*)
10777 shrext_cmds='.so'
10778 hardcode_into_libs=yes
10779 dynamic_linker="$host_os dld.so"
10780 shlibpath_var=LD_LIBRARY_PATH
10781 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10783 soname_spec='${libname}${release}${shared_ext}$major'
10784 if test "X$HPUX_IA64_MODE" = X32; then
10785 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10786 else
10787 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10789 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10791 hppa*64*)
10792 shrext_cmds='.sl'
10793 hardcode_into_libs=yes
10794 dynamic_linker="$host_os dld.sl"
10795 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10796 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10798 soname_spec='${libname}${release}${shared_ext}$major'
10799 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10800 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10803 shrext_cmds='.sl'
10804 dynamic_linker="$host_os dld.sl"
10805 shlibpath_var=SHLIB_PATH
10806 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10808 soname_spec='${libname}${release}${shared_ext}$major'
10810 esac
10811 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10812 postinstall_cmds='chmod 555 $lib'
10813 # or fails outright, so override atomically:
10814 install_override_mode=555
10817 interix[3-9]*)
10818 version_type=linux
10819 need_lib_prefix=no
10820 need_version=no
10821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10822 soname_spec='${libname}${release}${shared_ext}$major'
10823 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10824 shlibpath_var=LD_LIBRARY_PATH
10825 shlibpath_overrides_runpath=no
10826 hardcode_into_libs=yes
10829 irix5* | irix6* | nonstopux*)
10830 case $host_os in
10831 nonstopux*) version_type=nonstopux ;;
10833 if test "$lt_cv_prog_gnu_ld" = yes; then
10834 version_type=linux
10835 else
10836 version_type=irix
10837 fi ;;
10838 esac
10839 need_lib_prefix=no
10840 need_version=no
10841 soname_spec='${libname}${release}${shared_ext}$major'
10842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10843 case $host_os in
10844 irix5* | nonstopux*)
10845 libsuff= shlibsuff=
10848 case $LD in # libtool.m4 will add one of these switches to LD
10849 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10850 libsuff= shlibsuff= libmagic=32-bit;;
10851 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10852 libsuff=32 shlibsuff=N32 libmagic=N32;;
10853 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10854 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10855 *) libsuff= shlibsuff= libmagic=never-match;;
10856 esac
10858 esac
10859 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10860 shlibpath_overrides_runpath=no
10861 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10862 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10863 hardcode_into_libs=yes
10866 # No shared lib support for Linux oldld, aout, or coff.
10867 linux*oldld* | linux*aout* | linux*coff*)
10868 dynamic_linker=no
10871 # This must be Linux ELF.
10873 # uclinux* changes (here and below) have been submitted to the libtool
10874 # project, but have not yet been accepted: they are GCC-local changes
10875 # for the time being. (See
10876 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10877 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10878 version_type=linux
10879 need_lib_prefix=no
10880 need_version=no
10881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10882 soname_spec='${libname}${release}${shared_ext}$major'
10883 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10884 shlibpath_var=LD_LIBRARY_PATH
10885 shlibpath_overrides_runpath=no
10887 # Some binutils ld are patched to set DT_RUNPATH
10888 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10889 $as_echo_n "(cached) " >&6
10890 else
10891 lt_cv_shlibpath_overrides_runpath=no
10892 save_LDFLAGS=$LDFLAGS
10893 save_libdir=$libdir
10894 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10895 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10897 /* end confdefs.h. */
10900 main ()
10904 return 0;
10906 _ACEOF
10907 if ac_fn_c_try_link "$LINENO"; then :
10908 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10909 lt_cv_shlibpath_overrides_runpath=yes
10912 rm -f core conftest.err conftest.$ac_objext \
10913 conftest$ac_exeext conftest.$ac_ext
10914 LDFLAGS=$save_LDFLAGS
10915 libdir=$save_libdir
10919 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10921 # This implies no fast_install, which is unacceptable.
10922 # Some rework will be needed to allow for fast_install
10923 # before this can be enabled.
10924 hardcode_into_libs=yes
10926 # Append ld.so.conf contents to the search path
10927 if test -f /etc/ld.so.conf; then
10928 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' ' '`
10929 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10932 # We used to test for /lib/ld.so.1 and disable shared libraries on
10933 # powerpc, because MkLinux only supported shared libraries with the
10934 # GNU dynamic linker. Since this was broken with cross compilers,
10935 # most powerpc-linux boxes support dynamic linking these days and
10936 # people can always --disable-shared, the test was removed, and we
10937 # assume the GNU/Linux dynamic linker is in use.
10938 dynamic_linker='GNU/Linux ld.so'
10941 netbsd*)
10942 version_type=sunos
10943 need_lib_prefix=no
10944 need_version=no
10945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10947 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10948 dynamic_linker='NetBSD (a.out) ld.so'
10949 else
10950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10951 soname_spec='${libname}${release}${shared_ext}$major'
10952 dynamic_linker='NetBSD ld.elf_so'
10954 shlibpath_var=LD_LIBRARY_PATH
10955 shlibpath_overrides_runpath=yes
10956 hardcode_into_libs=yes
10959 newsos6)
10960 version_type=linux
10961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10962 shlibpath_var=LD_LIBRARY_PATH
10963 shlibpath_overrides_runpath=yes
10966 *nto* | *qnx*)
10967 version_type=qnx
10968 need_lib_prefix=no
10969 need_version=no
10970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10971 soname_spec='${libname}${release}${shared_ext}$major'
10972 shlibpath_var=LD_LIBRARY_PATH
10973 shlibpath_overrides_runpath=no
10974 hardcode_into_libs=yes
10975 dynamic_linker='ldqnx.so'
10978 openbsd*)
10979 version_type=sunos
10980 sys_lib_dlsearch_path_spec="/usr/lib"
10981 need_lib_prefix=no
10982 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10983 case $host_os in
10984 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10985 *) need_version=no ;;
10986 esac
10987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10988 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10989 shlibpath_var=LD_LIBRARY_PATH
10990 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10991 case $host_os in
10992 openbsd2.[89] | openbsd2.[89].*)
10993 shlibpath_overrides_runpath=no
10996 shlibpath_overrides_runpath=yes
10998 esac
10999 else
11000 shlibpath_overrides_runpath=yes
11004 os2*)
11005 libname_spec='$name'
11006 shrext_cmds=".dll"
11007 need_lib_prefix=no
11008 library_names_spec='$libname${shared_ext} $libname.a'
11009 dynamic_linker='OS/2 ld.exe'
11010 shlibpath_var=LIBPATH
11013 osf3* | osf4* | osf5*)
11014 version_type=osf
11015 need_lib_prefix=no
11016 need_version=no
11017 soname_spec='${libname}${release}${shared_ext}$major'
11018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11019 shlibpath_var=LD_LIBRARY_PATH
11020 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11021 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11024 rdos*)
11025 dynamic_linker=no
11028 solaris*)
11029 version_type=linux
11030 need_lib_prefix=no
11031 need_version=no
11032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11033 soname_spec='${libname}${release}${shared_ext}$major'
11034 shlibpath_var=LD_LIBRARY_PATH
11035 shlibpath_overrides_runpath=yes
11036 hardcode_into_libs=yes
11037 # ldd complains unless libraries are executable
11038 postinstall_cmds='chmod +x $lib'
11041 sunos4*)
11042 version_type=sunos
11043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11044 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11045 shlibpath_var=LD_LIBRARY_PATH
11046 shlibpath_overrides_runpath=yes
11047 if test "$with_gnu_ld" = yes; then
11048 need_lib_prefix=no
11050 need_version=yes
11053 sysv4 | sysv4.3*)
11054 version_type=linux
11055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11056 soname_spec='${libname}${release}${shared_ext}$major'
11057 shlibpath_var=LD_LIBRARY_PATH
11058 case $host_vendor in
11059 sni)
11060 shlibpath_overrides_runpath=no
11061 need_lib_prefix=no
11062 runpath_var=LD_RUN_PATH
11064 siemens)
11065 need_lib_prefix=no
11067 motorola)
11068 need_lib_prefix=no
11069 need_version=no
11070 shlibpath_overrides_runpath=no
11071 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11073 esac
11076 sysv4*MP*)
11077 if test -d /usr/nec ;then
11078 version_type=linux
11079 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11080 soname_spec='$libname${shared_ext}.$major'
11081 shlibpath_var=LD_LIBRARY_PATH
11085 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11086 version_type=freebsd-elf
11087 need_lib_prefix=no
11088 need_version=no
11089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11090 soname_spec='${libname}${release}${shared_ext}$major'
11091 shlibpath_var=LD_LIBRARY_PATH
11092 shlibpath_overrides_runpath=yes
11093 hardcode_into_libs=yes
11094 if test "$with_gnu_ld" = yes; then
11095 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11096 else
11097 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11098 case $host_os in
11099 sco3.2v5*)
11100 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11102 esac
11104 sys_lib_dlsearch_path_spec='/usr/lib'
11107 tpf*)
11108 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11109 version_type=linux
11110 need_lib_prefix=no
11111 need_version=no
11112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11113 shlibpath_var=LD_LIBRARY_PATH
11114 shlibpath_overrides_runpath=no
11115 hardcode_into_libs=yes
11118 uts4*)
11119 version_type=linux
11120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11121 soname_spec='${libname}${release}${shared_ext}$major'
11122 shlibpath_var=LD_LIBRARY_PATH
11126 dynamic_linker=no
11128 esac
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11130 $as_echo "$dynamic_linker" >&6; }
11131 test "$dynamic_linker" = no && can_build_shared=no
11133 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11134 if test "$GCC" = yes; then
11135 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11138 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11139 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11141 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11142 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11237 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11238 hardcode_action=
11239 if test -n "$hardcode_libdir_flag_spec" ||
11240 test -n "$runpath_var" ||
11241 test "X$hardcode_automatic" = "Xyes" ; then
11243 # We can hardcode non-existent directories.
11244 if test "$hardcode_direct" != no &&
11245 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11246 # have to relink, otherwise we might link with an installed library
11247 # when we should be linking with a yet-to-be-installed one
11248 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11249 test "$hardcode_minus_L" != no; then
11250 # Linking always hardcodes the temporary library directory.
11251 hardcode_action=relink
11252 else
11253 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11254 hardcode_action=immediate
11256 else
11257 # We cannot hardcode anything, or else we can only hardcode existing
11258 # directories.
11259 hardcode_action=unsupported
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11262 $as_echo "$hardcode_action" >&6; }
11264 if test "$hardcode_action" = relink ||
11265 test "$inherit_rpath" = yes; then
11266 # Fast installation is not supported
11267 enable_fast_install=no
11268 elif test "$shlibpath_overrides_runpath" = yes ||
11269 test "$enable_shared" = no; then
11270 # Fast installation is not necessary
11271 enable_fast_install=needless
11279 if test "x$enable_dlopen" != xyes; then
11280 enable_dlopen=unknown
11281 enable_dlopen_self=unknown
11282 enable_dlopen_self_static=unknown
11283 else
11284 lt_cv_dlopen=no
11285 lt_cv_dlopen_libs=
11287 case $host_os in
11288 beos*)
11289 lt_cv_dlopen="load_add_on"
11290 lt_cv_dlopen_libs=
11291 lt_cv_dlopen_self=yes
11294 mingw* | pw32* | cegcc*)
11295 lt_cv_dlopen="LoadLibrary"
11296 lt_cv_dlopen_libs=
11299 cygwin*)
11300 lt_cv_dlopen="dlopen"
11301 lt_cv_dlopen_libs=
11304 darwin*)
11305 # if libdl is installed we need to link against it
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11307 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11308 if ${ac_cv_lib_dl_dlopen+:} false; then :
11309 $as_echo_n "(cached) " >&6
11310 else
11311 ac_check_lib_save_LIBS=$LIBS
11312 LIBS="-ldl $LIBS"
11313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11314 /* end confdefs.h. */
11316 /* Override any GCC internal prototype to avoid an error.
11317 Use char because int might match the return type of a GCC
11318 builtin and then its argument prototype would still apply. */
11319 #ifdef __cplusplus
11320 extern "C"
11321 #endif
11322 char dlopen ();
11324 main ()
11326 return dlopen ();
11328 return 0;
11330 _ACEOF
11331 if ac_fn_c_try_link "$LINENO"; then :
11332 ac_cv_lib_dl_dlopen=yes
11333 else
11334 ac_cv_lib_dl_dlopen=no
11336 rm -f core conftest.err conftest.$ac_objext \
11337 conftest$ac_exeext conftest.$ac_ext
11338 LIBS=$ac_check_lib_save_LIBS
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11341 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11342 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11343 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11344 else
11346 lt_cv_dlopen="dyld"
11347 lt_cv_dlopen_libs=
11348 lt_cv_dlopen_self=yes
11355 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11356 if test "x$ac_cv_func_shl_load" = xyes; then :
11357 lt_cv_dlopen="shl_load"
11358 else
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11360 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11361 if ${ac_cv_lib_dld_shl_load+:} false; then :
11362 $as_echo_n "(cached) " >&6
11363 else
11364 ac_check_lib_save_LIBS=$LIBS
11365 LIBS="-ldld $LIBS"
11366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11367 /* end confdefs.h. */
11369 /* Override any GCC internal prototype to avoid an error.
11370 Use char because int might match the return type of a GCC
11371 builtin and then its argument prototype would still apply. */
11372 #ifdef __cplusplus
11373 extern "C"
11374 #endif
11375 char shl_load ();
11377 main ()
11379 return shl_load ();
11381 return 0;
11383 _ACEOF
11384 if ac_fn_c_try_link "$LINENO"; then :
11385 ac_cv_lib_dld_shl_load=yes
11386 else
11387 ac_cv_lib_dld_shl_load=no
11389 rm -f core conftest.err conftest.$ac_objext \
11390 conftest$ac_exeext conftest.$ac_ext
11391 LIBS=$ac_check_lib_save_LIBS
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11394 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11395 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11396 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11397 else
11398 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11399 if test "x$ac_cv_func_dlopen" = xyes; then :
11400 lt_cv_dlopen="dlopen"
11401 else
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11403 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11404 if ${ac_cv_lib_dl_dlopen+:} false; then :
11405 $as_echo_n "(cached) " >&6
11406 else
11407 ac_check_lib_save_LIBS=$LIBS
11408 LIBS="-ldl $LIBS"
11409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11410 /* end confdefs.h. */
11412 /* Override any GCC internal prototype to avoid an error.
11413 Use char because int might match the return type of a GCC
11414 builtin and then its argument prototype would still apply. */
11415 #ifdef __cplusplus
11416 extern "C"
11417 #endif
11418 char dlopen ();
11420 main ()
11422 return dlopen ();
11424 return 0;
11426 _ACEOF
11427 if ac_fn_c_try_link "$LINENO"; then :
11428 ac_cv_lib_dl_dlopen=yes
11429 else
11430 ac_cv_lib_dl_dlopen=no
11432 rm -f core conftest.err conftest.$ac_objext \
11433 conftest$ac_exeext conftest.$ac_ext
11434 LIBS=$ac_check_lib_save_LIBS
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11437 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11438 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11439 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11440 else
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11442 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11443 if ${ac_cv_lib_svld_dlopen+:} false; then :
11444 $as_echo_n "(cached) " >&6
11445 else
11446 ac_check_lib_save_LIBS=$LIBS
11447 LIBS="-lsvld $LIBS"
11448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11449 /* end confdefs.h. */
11451 /* Override any GCC internal prototype to avoid an error.
11452 Use char because int might match the return type of a GCC
11453 builtin and then its argument prototype would still apply. */
11454 #ifdef __cplusplus
11455 extern "C"
11456 #endif
11457 char dlopen ();
11459 main ()
11461 return dlopen ();
11463 return 0;
11465 _ACEOF
11466 if ac_fn_c_try_link "$LINENO"; then :
11467 ac_cv_lib_svld_dlopen=yes
11468 else
11469 ac_cv_lib_svld_dlopen=no
11471 rm -f core conftest.err conftest.$ac_objext \
11472 conftest$ac_exeext conftest.$ac_ext
11473 LIBS=$ac_check_lib_save_LIBS
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11476 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11477 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11478 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11479 else
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11481 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11482 if ${ac_cv_lib_dld_dld_link+:} false; then :
11483 $as_echo_n "(cached) " >&6
11484 else
11485 ac_check_lib_save_LIBS=$LIBS
11486 LIBS="-ldld $LIBS"
11487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11488 /* end confdefs.h. */
11490 /* Override any GCC internal prototype to avoid an error.
11491 Use char because int might match the return type of a GCC
11492 builtin and then its argument prototype would still apply. */
11493 #ifdef __cplusplus
11494 extern "C"
11495 #endif
11496 char dld_link ();
11498 main ()
11500 return dld_link ();
11502 return 0;
11504 _ACEOF
11505 if ac_fn_c_try_link "$LINENO"; then :
11506 ac_cv_lib_dld_dld_link=yes
11507 else
11508 ac_cv_lib_dld_dld_link=no
11510 rm -f core conftest.err conftest.$ac_objext \
11511 conftest$ac_exeext conftest.$ac_ext
11512 LIBS=$ac_check_lib_save_LIBS
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11515 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11516 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11517 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11536 esac
11538 if test "x$lt_cv_dlopen" != xno; then
11539 enable_dlopen=yes
11540 else
11541 enable_dlopen=no
11544 case $lt_cv_dlopen in
11545 dlopen)
11546 save_CPPFLAGS="$CPPFLAGS"
11547 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11549 save_LDFLAGS="$LDFLAGS"
11550 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11552 save_LIBS="$LIBS"
11553 LIBS="$lt_cv_dlopen_libs $LIBS"
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11556 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11557 if ${lt_cv_dlopen_self+:} false; then :
11558 $as_echo_n "(cached) " >&6
11559 else
11560 if test "$cross_compiling" = yes; then :
11561 lt_cv_dlopen_self=cross
11562 else
11563 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11564 lt_status=$lt_dlunknown
11565 cat > conftest.$ac_ext <<_LT_EOF
11566 #line 11566 "configure"
11567 #include "confdefs.h"
11569 #if HAVE_DLFCN_H
11570 #include <dlfcn.h>
11571 #endif
11573 #include <stdio.h>
11575 #ifdef RTLD_GLOBAL
11576 # define LT_DLGLOBAL RTLD_GLOBAL
11577 #else
11578 # ifdef DL_GLOBAL
11579 # define LT_DLGLOBAL DL_GLOBAL
11580 # else
11581 # define LT_DLGLOBAL 0
11582 # endif
11583 #endif
11585 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11586 find out it does not work in some platform. */
11587 #ifndef LT_DLLAZY_OR_NOW
11588 # ifdef RTLD_LAZY
11589 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11590 # else
11591 # ifdef DL_LAZY
11592 # define LT_DLLAZY_OR_NOW DL_LAZY
11593 # else
11594 # ifdef RTLD_NOW
11595 # define LT_DLLAZY_OR_NOW RTLD_NOW
11596 # else
11597 # ifdef DL_NOW
11598 # define LT_DLLAZY_OR_NOW DL_NOW
11599 # else
11600 # define LT_DLLAZY_OR_NOW 0
11601 # endif
11602 # endif
11603 # endif
11604 # endif
11605 #endif
11607 /* When -fvisbility=hidden is used, assume the code has been annotated
11608 correspondingly for the symbols needed. */
11609 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11610 void fnord () __attribute__((visibility("default")));
11611 #endif
11613 void fnord () { int i=42; }
11614 int main ()
11616 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11617 int status = $lt_dlunknown;
11619 if (self)
11621 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11622 else
11624 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11625 else puts (dlerror ());
11627 /* dlclose (self); */
11629 else
11630 puts (dlerror ());
11632 return status;
11634 _LT_EOF
11635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11636 (eval $ac_link) 2>&5
11637 ac_status=$?
11638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11639 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11640 (./conftest; exit; ) >&5 2>/dev/null
11641 lt_status=$?
11642 case x$lt_status in
11643 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11644 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11645 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11646 esac
11647 else :
11648 # compilation failed
11649 lt_cv_dlopen_self=no
11652 rm -fr conftest*
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11657 $as_echo "$lt_cv_dlopen_self" >&6; }
11659 if test "x$lt_cv_dlopen_self" = xyes; then
11660 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11662 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11663 if ${lt_cv_dlopen_self_static+:} false; then :
11664 $as_echo_n "(cached) " >&6
11665 else
11666 if test "$cross_compiling" = yes; then :
11667 lt_cv_dlopen_self_static=cross
11668 else
11669 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11670 lt_status=$lt_dlunknown
11671 cat > conftest.$ac_ext <<_LT_EOF
11672 #line 11672 "configure"
11673 #include "confdefs.h"
11675 #if HAVE_DLFCN_H
11676 #include <dlfcn.h>
11677 #endif
11679 #include <stdio.h>
11681 #ifdef RTLD_GLOBAL
11682 # define LT_DLGLOBAL RTLD_GLOBAL
11683 #else
11684 # ifdef DL_GLOBAL
11685 # define LT_DLGLOBAL DL_GLOBAL
11686 # else
11687 # define LT_DLGLOBAL 0
11688 # endif
11689 #endif
11691 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11692 find out it does not work in some platform. */
11693 #ifndef LT_DLLAZY_OR_NOW
11694 # ifdef RTLD_LAZY
11695 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11696 # else
11697 # ifdef DL_LAZY
11698 # define LT_DLLAZY_OR_NOW DL_LAZY
11699 # else
11700 # ifdef RTLD_NOW
11701 # define LT_DLLAZY_OR_NOW RTLD_NOW
11702 # else
11703 # ifdef DL_NOW
11704 # define LT_DLLAZY_OR_NOW DL_NOW
11705 # else
11706 # define LT_DLLAZY_OR_NOW 0
11707 # endif
11708 # endif
11709 # endif
11710 # endif
11711 #endif
11713 /* When -fvisbility=hidden is used, assume the code has been annotated
11714 correspondingly for the symbols needed. */
11715 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11716 void fnord () __attribute__((visibility("default")));
11717 #endif
11719 void fnord () { int i=42; }
11720 int main ()
11722 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11723 int status = $lt_dlunknown;
11725 if (self)
11727 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11728 else
11730 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11731 else puts (dlerror ());
11733 /* dlclose (self); */
11735 else
11736 puts (dlerror ());
11738 return status;
11740 _LT_EOF
11741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11742 (eval $ac_link) 2>&5
11743 ac_status=$?
11744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11745 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11746 (./conftest; exit; ) >&5 2>/dev/null
11747 lt_status=$?
11748 case x$lt_status in
11749 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11750 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11751 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11752 esac
11753 else :
11754 # compilation failed
11755 lt_cv_dlopen_self_static=no
11758 rm -fr conftest*
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11763 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11766 CPPFLAGS="$save_CPPFLAGS"
11767 LDFLAGS="$save_LDFLAGS"
11768 LIBS="$save_LIBS"
11770 esac
11772 case $lt_cv_dlopen_self in
11773 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11774 *) enable_dlopen_self=unknown ;;
11775 esac
11777 case $lt_cv_dlopen_self_static in
11778 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11779 *) enable_dlopen_self_static=unknown ;;
11780 esac
11799 striplib=
11800 old_striplib=
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11802 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11803 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11804 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11805 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11807 $as_echo "yes" >&6; }
11808 else
11809 # FIXME - insert some real tests, host_os isn't really good enough
11810 case $host_os in
11811 darwin*)
11812 if test -n "$STRIP" ; then
11813 striplib="$STRIP -x"
11814 old_striplib="$STRIP -S"
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11816 $as_echo "yes" >&6; }
11817 else
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11819 $as_echo "no" >&6; }
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11824 $as_echo "no" >&6; }
11826 esac
11840 # Report which library types will actually be built
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11842 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11844 $as_echo "$can_build_shared" >&6; }
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11847 $as_echo_n "checking whether to build shared libraries... " >&6; }
11848 test "$can_build_shared" = "no" && enable_shared=no
11850 # On AIX, shared libraries and static libraries use the same namespace, and
11851 # are all built from PIC.
11852 case $host_os in
11853 aix3*)
11854 test "$enable_shared" = yes && enable_static=no
11855 if test -n "$RANLIB"; then
11856 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11857 postinstall_cmds='$RANLIB $lib'
11861 aix[4-9]*)
11862 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11863 test "$enable_shared" = yes && enable_static=no
11866 esac
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11868 $as_echo "$enable_shared" >&6; }
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11871 $as_echo_n "checking whether to build static libraries... " >&6; }
11872 # Make sure either enable_shared or enable_static is yes.
11873 test "$enable_shared" = yes || enable_static=yes
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11875 $as_echo "$enable_static" >&6; }
11881 ac_ext=c
11882 ac_cpp='$CPP $CPPFLAGS'
11883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11887 CC="$lt_save_CC"
11889 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11890 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11891 (test "X$CXX" != "Xg++"))) ; then
11892 ac_ext=cpp
11893 ac_cpp='$CXXCPP $CPPFLAGS'
11894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11898 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11899 if test -z "$CXXCPP"; then
11900 if ${ac_cv_prog_CXXCPP+:} false; then :
11901 $as_echo_n "(cached) " >&6
11902 else
11903 # Double quotes because CXXCPP needs to be expanded
11904 for CXXCPP in "$CXX -E" "/lib/cpp"
11906 ac_preproc_ok=false
11907 for ac_cxx_preproc_warn_flag in '' yes
11909 # Use a header file that comes with gcc, so configuring glibc
11910 # with a fresh cross-compiler works.
11911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11912 # <limits.h> exists even on freestanding compilers.
11913 # On the NeXT, cc -E runs the code through the compiler's parser,
11914 # not just through cpp. "Syntax error" is here to catch this case.
11915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11916 /* end confdefs.h. */
11917 #ifdef __STDC__
11918 # include <limits.h>
11919 #else
11920 # include <assert.h>
11921 #endif
11922 Syntax error
11923 _ACEOF
11924 if ac_fn_cxx_try_cpp "$LINENO"; then :
11926 else
11927 # Broken: fails on valid input.
11928 continue
11930 rm -f conftest.err conftest.i conftest.$ac_ext
11932 # OK, works on sane cases. Now check whether nonexistent headers
11933 # can be detected and how.
11934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11935 /* end confdefs.h. */
11936 #include <ac_nonexistent.h>
11937 _ACEOF
11938 if ac_fn_cxx_try_cpp "$LINENO"; then :
11939 # Broken: success on invalid input.
11940 continue
11941 else
11942 # Passes both tests.
11943 ac_preproc_ok=:
11944 break
11946 rm -f conftest.err conftest.i conftest.$ac_ext
11948 done
11949 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11950 rm -f conftest.i conftest.err conftest.$ac_ext
11951 if $ac_preproc_ok; then :
11952 break
11955 done
11956 ac_cv_prog_CXXCPP=$CXXCPP
11959 CXXCPP=$ac_cv_prog_CXXCPP
11960 else
11961 ac_cv_prog_CXXCPP=$CXXCPP
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11964 $as_echo "$CXXCPP" >&6; }
11965 ac_preproc_ok=false
11966 for ac_cxx_preproc_warn_flag in '' yes
11968 # Use a header file that comes with gcc, so configuring glibc
11969 # with a fresh cross-compiler works.
11970 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11971 # <limits.h> exists even on freestanding compilers.
11972 # On the NeXT, cc -E runs the code through the compiler's parser,
11973 # not just through cpp. "Syntax error" is here to catch this case.
11974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11975 /* end confdefs.h. */
11976 #ifdef __STDC__
11977 # include <limits.h>
11978 #else
11979 # include <assert.h>
11980 #endif
11981 Syntax error
11982 _ACEOF
11983 if ac_fn_cxx_try_cpp "$LINENO"; then :
11985 else
11986 # Broken: fails on valid input.
11987 continue
11989 rm -f conftest.err conftest.i conftest.$ac_ext
11991 # OK, works on sane cases. Now check whether nonexistent headers
11992 # can be detected and how.
11993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11994 /* end confdefs.h. */
11995 #include <ac_nonexistent.h>
11996 _ACEOF
11997 if ac_fn_cxx_try_cpp "$LINENO"; then :
11998 # Broken: success on invalid input.
11999 continue
12000 else
12001 # Passes both tests.
12002 ac_preproc_ok=:
12003 break
12005 rm -f conftest.err conftest.i conftest.$ac_ext
12007 done
12008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12009 rm -f conftest.i conftest.err conftest.$ac_ext
12010 if $ac_preproc_ok; then :
12012 else
12013 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12015 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12016 See \`config.log' for more details" "$LINENO" 5; }
12019 ac_ext=c
12020 ac_cpp='$CPP $CPPFLAGS'
12021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12025 else
12026 _lt_caught_CXX_error=yes
12029 ac_ext=cpp
12030 ac_cpp='$CXXCPP $CPPFLAGS'
12031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12035 archive_cmds_need_lc_CXX=no
12036 allow_undefined_flag_CXX=
12037 always_export_symbols_CXX=no
12038 archive_expsym_cmds_CXX=
12039 compiler_needs_object_CXX=no
12040 export_dynamic_flag_spec_CXX=
12041 hardcode_direct_CXX=no
12042 hardcode_direct_absolute_CXX=no
12043 hardcode_libdir_flag_spec_CXX=
12044 hardcode_libdir_flag_spec_ld_CXX=
12045 hardcode_libdir_separator_CXX=
12046 hardcode_minus_L_CXX=no
12047 hardcode_shlibpath_var_CXX=unsupported
12048 hardcode_automatic_CXX=no
12049 inherit_rpath_CXX=no
12050 module_cmds_CXX=
12051 module_expsym_cmds_CXX=
12052 link_all_deplibs_CXX=unknown
12053 old_archive_cmds_CXX=$old_archive_cmds
12054 reload_flag_CXX=$reload_flag
12055 reload_cmds_CXX=$reload_cmds
12056 no_undefined_flag_CXX=
12057 whole_archive_flag_spec_CXX=
12058 enable_shared_with_static_runtimes_CXX=no
12060 # Source file extension for C++ test sources.
12061 ac_ext=cpp
12063 # Object file extension for compiled C++ test sources.
12064 objext=o
12065 objext_CXX=$objext
12067 # No sense in running all these tests if we already determined that
12068 # the CXX compiler isn't working. Some variables (like enable_shared)
12069 # are currently assumed to apply to all compilers on this platform,
12070 # and will be corrupted by setting them based on a non-working compiler.
12071 if test "$_lt_caught_CXX_error" != yes; then
12072 # Code to be used in simple compile tests
12073 lt_simple_compile_test_code="int some_variable = 0;"
12075 # Code to be used in simple link tests
12076 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12078 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12085 # If no C compiler was specified, use CC.
12086 LTCC=${LTCC-"$CC"}
12088 # If no C compiler flags were specified, use CFLAGS.
12089 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12091 # Allow CC to be a program name with arguments.
12092 compiler=$CC
12095 # save warnings/boilerplate of simple test code
12096 ac_outfile=conftest.$ac_objext
12097 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12098 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12099 _lt_compiler_boilerplate=`cat conftest.err`
12100 $RM conftest*
12102 ac_outfile=conftest.$ac_objext
12103 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12104 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12105 _lt_linker_boilerplate=`cat conftest.err`
12106 $RM -r conftest*
12109 # Allow CC to be a program name with arguments.
12110 lt_save_CC=$CC
12111 lt_save_LD=$LD
12112 lt_save_GCC=$GCC
12113 GCC=$GXX
12114 lt_save_with_gnu_ld=$with_gnu_ld
12115 lt_save_path_LD=$lt_cv_path_LD
12116 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12117 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12118 else
12119 $as_unset lt_cv_prog_gnu_ld
12121 if test -n "${lt_cv_path_LDCXX+set}"; then
12122 lt_cv_path_LD=$lt_cv_path_LDCXX
12123 else
12124 $as_unset lt_cv_path_LD
12126 test -z "${LDCXX+set}" || LD=$LDCXX
12127 CC=${CXX-"c++"}
12128 compiler=$CC
12129 compiler_CXX=$CC
12130 for cc_temp in $compiler""; do
12131 case $cc_temp in
12132 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12133 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12134 \-*) ;;
12135 *) break;;
12136 esac
12137 done
12138 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12141 if test -n "$compiler"; then
12142 # We don't want -fno-exception when compiling C++ code, so set the
12143 # no_builtin_flag separately
12144 if test "$GXX" = yes; then
12145 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12146 else
12147 lt_prog_compiler_no_builtin_flag_CXX=
12150 if test "$GXX" = yes; then
12151 # Set up default GNU C++ configuration
12155 # Check whether --with-gnu-ld was given.
12156 if test "${with_gnu_ld+set}" = set; then :
12157 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12158 else
12159 with_gnu_ld=no
12162 ac_prog=ld
12163 if test "$GCC" = yes; then
12164 # Check if gcc -print-prog-name=ld gives a path.
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12166 $as_echo_n "checking for ld used by $CC... " >&6; }
12167 case $host in
12168 *-*-mingw*)
12169 # gcc leaves a trailing carriage return which upsets mingw
12170 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12172 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12173 esac
12174 case $ac_prog in
12175 # Accept absolute paths.
12176 [\\/]* | ?:[\\/]*)
12177 re_direlt='/[^/][^/]*/\.\./'
12178 # Canonicalize the pathname of ld
12179 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12180 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12181 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12182 done
12183 test -z "$LD" && LD="$ac_prog"
12186 # If it fails, then pretend we aren't using GCC.
12187 ac_prog=ld
12190 # If it is relative, then search for the first ld in PATH.
12191 with_gnu_ld=unknown
12193 esac
12194 elif test "$with_gnu_ld" = yes; then
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12196 $as_echo_n "checking for GNU ld... " >&6; }
12197 else
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12199 $as_echo_n "checking for non-GNU ld... " >&6; }
12201 if ${lt_cv_path_LD+:} false; then :
12202 $as_echo_n "(cached) " >&6
12203 else
12204 if test -z "$LD"; then
12205 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12206 for ac_dir in $PATH; do
12207 IFS="$lt_save_ifs"
12208 test -z "$ac_dir" && ac_dir=.
12209 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12210 lt_cv_path_LD="$ac_dir/$ac_prog"
12211 # Check to see if the program is GNU ld. I'd rather use --version,
12212 # but apparently some variants of GNU ld only accept -v.
12213 # Break only if it was the GNU/non-GNU ld that we prefer.
12214 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12215 *GNU* | *'with BFD'*)
12216 test "$with_gnu_ld" != no && break
12219 test "$with_gnu_ld" != yes && break
12221 esac
12223 done
12224 IFS="$lt_save_ifs"
12225 else
12226 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12230 LD="$lt_cv_path_LD"
12231 if test -n "$LD"; then
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12233 $as_echo "$LD" >&6; }
12234 else
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12236 $as_echo "no" >&6; }
12238 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12240 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12241 if ${lt_cv_prog_gnu_ld+:} false; then :
12242 $as_echo_n "(cached) " >&6
12243 else
12244 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12245 case `$LD -v 2>&1 </dev/null` in
12246 *GNU* | *'with BFD'*)
12247 lt_cv_prog_gnu_ld=yes
12250 lt_cv_prog_gnu_ld=no
12252 esac
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12255 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12256 with_gnu_ld=$lt_cv_prog_gnu_ld
12264 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12265 # archiving commands below assume that GNU ld is being used.
12266 if test "$with_gnu_ld" = yes; then
12267 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12268 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12270 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12271 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12273 # If archive_cmds runs LD, not CC, wlarc should be empty
12274 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12275 # investigate it a little bit more. (MM)
12276 wlarc='${wl}'
12278 # ancient GNU ld didn't support --whole-archive et. al.
12279 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12280 $GREP 'no-whole-archive' > /dev/null; then
12281 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12282 else
12283 whole_archive_flag_spec_CXX=
12285 else
12286 with_gnu_ld=no
12287 wlarc=
12289 # A generic and very simple default shared library creation
12290 # command for GNU C++ for the case where it uses the native
12291 # linker, instead of GNU ld. If possible, this setting should
12292 # overridden to take advantage of the native linker features on
12293 # the platform it is being used on.
12294 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12297 # Commands to make compiler produce verbose output that lists
12298 # what "hidden" libraries, object files and flags are used when
12299 # linking a shared library.
12300 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12302 else
12303 GXX=no
12304 with_gnu_ld=no
12305 wlarc=
12308 # PORTME: fill in a description of your system's C++ link characteristics
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12310 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12311 ld_shlibs_CXX=yes
12312 case $host_os in
12313 aix3*)
12314 # FIXME: insert proper C++ library support
12315 ld_shlibs_CXX=no
12317 aix[4-9]*)
12318 if test "$host_cpu" = ia64; then
12319 # On IA64, the linker does run time linking by default, so we don't
12320 # have to do anything special.
12321 aix_use_runtimelinking=no
12322 exp_sym_flag='-Bexport'
12323 no_entry_flag=""
12324 else
12325 aix_use_runtimelinking=no
12327 # Test if we are trying to use run time linking or normal
12328 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12329 # need to do runtime linking.
12330 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12331 for ld_flag in $LDFLAGS; do
12332 case $ld_flag in
12333 *-brtl*)
12334 aix_use_runtimelinking=yes
12335 break
12337 esac
12338 done
12340 esac
12342 exp_sym_flag='-bexport'
12343 no_entry_flag='-bnoentry'
12346 # When large executables or shared objects are built, AIX ld can
12347 # have problems creating the table of contents. If linking a library
12348 # or program results in "error TOC overflow" add -mminimal-toc to
12349 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12350 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12352 archive_cmds_CXX=''
12353 hardcode_direct_CXX=yes
12354 hardcode_direct_absolute_CXX=yes
12355 hardcode_libdir_separator_CXX=':'
12356 link_all_deplibs_CXX=yes
12357 file_list_spec_CXX='${wl}-f,'
12359 if test "$GXX" = yes; then
12360 case $host_os in aix4.[012]|aix4.[012].*)
12361 # We only want to do this on AIX 4.2 and lower, the check
12362 # below for broken collect2 doesn't work under 4.3+
12363 collect2name=`${CC} -print-prog-name=collect2`
12364 if test -f "$collect2name" &&
12365 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12366 then
12367 # We have reworked collect2
12369 else
12370 # We have old collect2
12371 hardcode_direct_CXX=unsupported
12372 # It fails to find uninstalled libraries when the uninstalled
12373 # path is not listed in the libpath. Setting hardcode_minus_L
12374 # to unsupported forces relinking
12375 hardcode_minus_L_CXX=yes
12376 hardcode_libdir_flag_spec_CXX='-L$libdir'
12377 hardcode_libdir_separator_CXX=
12379 esac
12380 shared_flag='-shared'
12381 if test "$aix_use_runtimelinking" = yes; then
12382 shared_flag="$shared_flag "'${wl}-G'
12384 else
12385 # not using gcc
12386 if test "$host_cpu" = ia64; then
12387 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12388 # chokes on -Wl,-G. The following line is correct:
12389 shared_flag='-G'
12390 else
12391 if test "$aix_use_runtimelinking" = yes; then
12392 shared_flag='${wl}-G'
12393 else
12394 shared_flag='${wl}-bM:SRE'
12399 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12400 # It seems that -bexpall does not export symbols beginning with
12401 # underscore (_), so it is better to generate a list of symbols to
12402 # export.
12403 always_export_symbols_CXX=yes
12404 if test "$aix_use_runtimelinking" = yes; then
12405 # Warning - without using the other runtime loading flags (-brtl),
12406 # -berok will link without error, but may produce a broken library.
12407 allow_undefined_flag_CXX='-berok'
12408 # Determine the default libpath from the value encoded in an empty
12409 # executable.
12410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12411 /* end confdefs.h. */
12414 main ()
12418 return 0;
12420 _ACEOF
12421 if ac_fn_cxx_try_link "$LINENO"; then :
12423 lt_aix_libpath_sed='
12424 /Import File Strings/,/^$/ {
12425 /^0/ {
12426 s/^0 *\(.*\)$/\1/
12430 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12431 # Check for a 64-bit object if we didn't find anything.
12432 if test -z "$aix_libpath"; then
12433 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12436 rm -f core conftest.err conftest.$ac_objext \
12437 conftest$ac_exeext conftest.$ac_ext
12438 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12440 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12442 archive_expsym_cmds_CXX='$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"
12443 else
12444 if test "$host_cpu" = ia64; then
12445 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12446 allow_undefined_flag_CXX="-z nodefs"
12447 archive_expsym_cmds_CXX="\$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"
12448 else
12449 # Determine the default libpath from the value encoded in an
12450 # empty executable.
12451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12452 /* end confdefs.h. */
12455 main ()
12459 return 0;
12461 _ACEOF
12462 if ac_fn_cxx_try_link "$LINENO"; then :
12464 lt_aix_libpath_sed='
12465 /Import File Strings/,/^$/ {
12466 /^0/ {
12467 s/^0 *\(.*\)$/\1/
12471 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12472 # Check for a 64-bit object if we didn't find anything.
12473 if test -z "$aix_libpath"; then
12474 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12477 rm -f core conftest.err conftest.$ac_objext \
12478 conftest$ac_exeext conftest.$ac_ext
12479 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12481 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12482 # Warning - without using the other run time loading flags,
12483 # -berok will link without error, but may produce a broken library.
12484 no_undefined_flag_CXX=' ${wl}-bernotok'
12485 allow_undefined_flag_CXX=' ${wl}-berok'
12486 if test "$with_gnu_ld" = yes; then
12487 # We only use this code for GNU lds that support --whole-archive.
12488 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12489 else
12490 # Exported symbols can be pulled into shared objects from archives
12491 whole_archive_flag_spec_CXX='$convenience'
12493 archive_cmds_need_lc_CXX=yes
12494 # This is similar to how AIX traditionally builds its shared
12495 # libraries.
12496 archive_expsym_cmds_CXX="\$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'
12501 beos*)
12502 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12503 allow_undefined_flag_CXX=unsupported
12504 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12505 # support --undefined. This deserves some investigation. FIXME
12506 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12507 else
12508 ld_shlibs_CXX=no
12512 chorus*)
12513 case $cc_basename in
12515 # FIXME: insert proper C++ library support
12516 ld_shlibs_CXX=no
12518 esac
12521 cygwin* | mingw* | pw32* | cegcc*)
12522 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12523 # as there is no search path for DLLs.
12524 hardcode_libdir_flag_spec_CXX='-L$libdir'
12525 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12526 allow_undefined_flag_CXX=unsupported
12527 always_export_symbols_CXX=no
12528 enable_shared_with_static_runtimes_CXX=yes
12530 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12531 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12532 # If the export-symbols file already is a .def file (1st line
12533 # is EXPORTS), use it as is; otherwise, prepend...
12534 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12535 cp $export_symbols $output_objdir/$soname.def;
12536 else
12537 echo EXPORTS > $output_objdir/$soname.def;
12538 cat $export_symbols >> $output_objdir/$soname.def;
12540 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12541 else
12542 ld_shlibs_CXX=no
12545 darwin* | rhapsody*)
12548 archive_cmds_need_lc_CXX=no
12549 hardcode_direct_CXX=no
12550 hardcode_automatic_CXX=yes
12551 hardcode_shlibpath_var_CXX=unsupported
12552 if test "$lt_cv_ld_force_load" = "yes"; then
12553 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12554 else
12555 whole_archive_flag_spec_CXX=''
12557 link_all_deplibs_CXX=yes
12558 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12559 case $cc_basename in
12560 ifort*) _lt_dar_can_shared=yes ;;
12561 *) _lt_dar_can_shared=$GCC ;;
12562 esac
12563 if test "$_lt_dar_can_shared" = "yes"; then
12564 output_verbose_link_cmd=func_echo_all
12565 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12566 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12567 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12568 module_expsym_cmds_CXX="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}"
12569 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12570 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12571 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12574 else
12575 ld_shlibs_CXX=no
12580 dgux*)
12581 case $cc_basename in
12582 ec++*)
12583 # FIXME: insert proper C++ library support
12584 ld_shlibs_CXX=no
12586 ghcx*)
12587 # Green Hills C++ Compiler
12588 # FIXME: insert proper C++ library support
12589 ld_shlibs_CXX=no
12592 # FIXME: insert proper C++ library support
12593 ld_shlibs_CXX=no
12595 esac
12598 freebsd2.*)
12599 # C++ shared libraries reported to be fairly broken before
12600 # switch to ELF
12601 ld_shlibs_CXX=no
12604 freebsd-elf*)
12605 archive_cmds_need_lc_CXX=no
12608 freebsd* | dragonfly*)
12609 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12610 # conventions
12611 ld_shlibs_CXX=yes
12614 gnu*)
12617 haiku*)
12618 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12619 link_all_deplibs_CXX=yes
12622 hpux9*)
12623 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12624 hardcode_libdir_separator_CXX=:
12625 export_dynamic_flag_spec_CXX='${wl}-E'
12626 hardcode_direct_CXX=yes
12627 hardcode_minus_L_CXX=yes # Not in the search PATH,
12628 # but as the default
12629 # location of the library.
12631 case $cc_basename in
12632 CC*)
12633 # FIXME: insert proper C++ library support
12634 ld_shlibs_CXX=no
12636 aCC*)
12637 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12638 # Commands to make compiler produce verbose output that lists
12639 # what "hidden" libraries, object files and flags are used when
12640 # linking a shared library.
12642 # There doesn't appear to be a way to prevent this compiler from
12643 # explicitly linking system object files so we need to strip them
12644 # from the output so that they don't get included in the library
12645 # dependencies.
12646 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12649 if test "$GXX" = yes; then
12650 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12651 else
12652 # FIXME: insert proper C++ library support
12653 ld_shlibs_CXX=no
12656 esac
12659 hpux10*|hpux11*)
12660 if test $with_gnu_ld = no; then
12661 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12662 hardcode_libdir_separator_CXX=:
12664 case $host_cpu in
12665 hppa*64*|ia64*)
12668 export_dynamic_flag_spec_CXX='${wl}-E'
12670 esac
12672 case $host_cpu in
12673 hppa*64*|ia64*)
12674 hardcode_direct_CXX=no
12675 hardcode_shlibpath_var_CXX=no
12678 hardcode_direct_CXX=yes
12679 hardcode_direct_absolute_CXX=yes
12680 hardcode_minus_L_CXX=yes # Not in the search PATH,
12681 # but as the default
12682 # location of the library.
12684 esac
12686 case $cc_basename in
12687 CC*)
12688 # FIXME: insert proper C++ library support
12689 ld_shlibs_CXX=no
12691 aCC*)
12692 case $host_cpu in
12693 hppa*64*)
12694 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12696 ia64*)
12697 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12700 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12702 esac
12703 # Commands to make compiler produce verbose output that lists
12704 # what "hidden" libraries, object files and flags are used when
12705 # linking a shared library.
12707 # There doesn't appear to be a way to prevent this compiler from
12708 # explicitly linking system object files so we need to strip them
12709 # from the output so that they don't get included in the library
12710 # dependencies.
12711 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12714 if test "$GXX" = yes; then
12715 if test $with_gnu_ld = no; then
12716 case $host_cpu in
12717 hppa*64*)
12718 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12720 ia64*)
12721 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12724 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12726 esac
12728 else
12729 # FIXME: insert proper C++ library support
12730 ld_shlibs_CXX=no
12733 esac
12736 interix[3-9]*)
12737 hardcode_direct_CXX=no
12738 hardcode_shlibpath_var_CXX=no
12739 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12740 export_dynamic_flag_spec_CXX='${wl}-E'
12741 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12742 # Instead, shared libraries are loaded at an image base (0x10000000 by
12743 # default) and relocated if they conflict, which is a slow very memory
12744 # consuming and fragmenting process. To avoid this, we pick a random,
12745 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12746 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12747 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12748 archive_expsym_cmds_CXX='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'
12750 irix5* | irix6*)
12751 case $cc_basename in
12752 CC*)
12753 # SGI C++
12754 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12756 # Archives containing C++ object files must be created using
12757 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12758 # necessary to make sure instantiated templates are included
12759 # in the archive.
12760 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12763 if test "$GXX" = yes; then
12764 if test "$with_gnu_ld" = no; then
12765 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
12766 else
12767 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12770 link_all_deplibs_CXX=yes
12772 esac
12773 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12774 hardcode_libdir_separator_CXX=:
12775 inherit_rpath_CXX=yes
12778 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12779 case $cc_basename in
12780 KCC*)
12781 # Kuck and Associates, Inc. (KAI) C++ Compiler
12783 # KCC will only create a shared library if the output file
12784 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12785 # to its proper name (with version) after linking.
12786 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12787 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12788 # Commands to make compiler produce verbose output that lists
12789 # what "hidden" libraries, object files and flags are used when
12790 # linking a shared library.
12792 # There doesn't appear to be a way to prevent this compiler from
12793 # explicitly linking system object files so we need to strip them
12794 # from the output so that they don't get included in the library
12795 # dependencies.
12796 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12798 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12799 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12801 # Archives containing C++ object files must be created using
12802 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12803 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12805 icpc* | ecpc* )
12806 # Intel C++
12807 with_gnu_ld=yes
12808 # version 8.0 and above of icpc choke on multiply defined symbols
12809 # if we add $predep_objects and $postdep_objects, however 7.1 and
12810 # earlier do not add the objects themselves.
12811 case `$CC -V 2>&1` in
12812 *"Version 7."*)
12813 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12814 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12816 *) # Version 8.0 or newer
12817 tmp_idyn=
12818 case $host_cpu in
12819 ia64*) tmp_idyn=' -i_dynamic';;
12820 esac
12821 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12822 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12824 esac
12825 archive_cmds_need_lc_CXX=no
12826 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12827 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12828 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12830 pgCC* | pgcpp*)
12831 # Portland Group C++ compiler
12832 case `$CC -V` in
12833 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12834 prelink_cmds_CXX='tpldir=Template.dir~
12835 rm -rf $tpldir~
12836 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12837 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12838 old_archive_cmds_CXX='tpldir=Template.dir~
12839 rm -rf $tpldir~
12840 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12841 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12842 $RANLIB $oldlib'
12843 archive_cmds_CXX='tpldir=Template.dir~
12844 rm -rf $tpldir~
12845 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12846 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12847 archive_expsym_cmds_CXX='tpldir=Template.dir~
12848 rm -rf $tpldir~
12849 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12850 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12852 *) # Version 6 and above use weak symbols
12853 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12854 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12856 esac
12858 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12859 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12860 whole_archive_flag_spec_CXX='${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'
12862 cxx*)
12863 # Compaq C++
12864 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12865 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12867 runpath_var=LD_RUN_PATH
12868 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12869 hardcode_libdir_separator_CXX=:
12871 # Commands to make compiler produce verbose output that lists
12872 # what "hidden" libraries, object files and flags are used when
12873 # linking a shared library.
12875 # There doesn't appear to be a way to prevent this compiler from
12876 # explicitly linking system object files so we need to strip them
12877 # from the output so that they don't get included in the library
12878 # dependencies.
12879 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
12881 xl* | mpixl* | bgxl*)
12882 # IBM XL 8.0 on PPC, with GNU ld
12883 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12884 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12885 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12886 if test "x$supports_anon_versioning" = xyes; then
12887 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12888 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12889 echo "local: *; };" >> $output_objdir/$libname.ver~
12890 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12894 case `$CC -V 2>&1 | sed 5q` in
12895 *Sun\ C*)
12896 # Sun C++ 5.9
12897 no_undefined_flag_CXX=' -zdefs'
12898 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12899 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12900 hardcode_libdir_flag_spec_CXX='-R$libdir'
12901 whole_archive_flag_spec_CXX='${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'
12902 compiler_needs_object_CXX=yes
12904 # Not sure whether something based on
12905 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12906 # would be better.
12907 output_verbose_link_cmd='func_echo_all'
12909 # Archives containing C++ object files must be created using
12910 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12911 # necessary to make sure instantiated templates are included
12912 # in the archive.
12913 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12915 esac
12917 esac
12920 lynxos*)
12921 # FIXME: insert proper C++ library support
12922 ld_shlibs_CXX=no
12925 m88k*)
12926 # FIXME: insert proper C++ library support
12927 ld_shlibs_CXX=no
12930 mvs*)
12931 case $cc_basename in
12932 cxx*)
12933 # FIXME: insert proper C++ library support
12934 ld_shlibs_CXX=no
12937 # FIXME: insert proper C++ library support
12938 ld_shlibs_CXX=no
12940 esac
12943 netbsd*)
12944 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12945 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12946 wlarc=
12947 hardcode_libdir_flag_spec_CXX='-R$libdir'
12948 hardcode_direct_CXX=yes
12949 hardcode_shlibpath_var_CXX=no
12951 # Workaround some broken pre-1.5 toolchains
12952 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12955 *nto* | *qnx*)
12956 ld_shlibs_CXX=yes
12959 openbsd2*)
12960 # C++ shared libraries are fairly broken
12961 ld_shlibs_CXX=no
12964 openbsd*)
12965 if test -f /usr/libexec/ld.so; then
12966 hardcode_direct_CXX=yes
12967 hardcode_shlibpath_var_CXX=no
12968 hardcode_direct_absolute_CXX=yes
12969 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12970 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12971 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12972 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12973 export_dynamic_flag_spec_CXX='${wl}-E'
12974 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12976 output_verbose_link_cmd=func_echo_all
12977 else
12978 ld_shlibs_CXX=no
12982 osf3* | osf4* | osf5*)
12983 case $cc_basename in
12984 KCC*)
12985 # Kuck and Associates, Inc. (KAI) C++ Compiler
12987 # KCC will only create a shared library if the output file
12988 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12989 # to its proper name (with version) after linking.
12990 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12992 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12993 hardcode_libdir_separator_CXX=:
12995 # Archives containing C++ object files must be created using
12996 # the KAI C++ compiler.
12997 case $host in
12998 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12999 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13000 esac
13002 RCC*)
13003 # Rational C++ 2.4.1
13004 # FIXME: insert proper C++ library support
13005 ld_shlibs_CXX=no
13007 cxx*)
13008 case $host in
13009 osf3*)
13010 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13011 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13012 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13015 allow_undefined_flag_CXX=' -expect_unresolved \*'
13016 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13017 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13018 echo "-hidden">> $lib.exp~
13019 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13020 $RM $lib.exp'
13021 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13023 esac
13025 hardcode_libdir_separator_CXX=:
13027 # Commands to make compiler produce verbose output that lists
13028 # what "hidden" libraries, object files and flags are used when
13029 # linking a shared library.
13031 # There doesn't appear to be a way to prevent this compiler from
13032 # explicitly linking system object files so we need to strip them
13033 # from the output so that they don't get included in the library
13034 # dependencies.
13035 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13038 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13039 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13040 case $host in
13041 osf3*)
13042 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13045 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13047 esac
13049 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13050 hardcode_libdir_separator_CXX=:
13052 # Commands to make compiler produce verbose output that lists
13053 # what "hidden" libraries, object files and flags are used when
13054 # linking a shared library.
13055 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13057 else
13058 # FIXME: insert proper C++ library support
13059 ld_shlibs_CXX=no
13062 esac
13065 psos*)
13066 # FIXME: insert proper C++ library support
13067 ld_shlibs_CXX=no
13070 sunos4*)
13071 case $cc_basename in
13072 CC*)
13073 # Sun C++ 4.x
13074 # FIXME: insert proper C++ library support
13075 ld_shlibs_CXX=no
13077 lcc*)
13078 # Lucid
13079 # FIXME: insert proper C++ library support
13080 ld_shlibs_CXX=no
13083 # FIXME: insert proper C++ library support
13084 ld_shlibs_CXX=no
13086 esac
13089 solaris*)
13090 case $cc_basename in
13091 CC*)
13092 # Sun C++ 4.2, 5.x and Centerline C++
13093 archive_cmds_need_lc_CXX=yes
13094 no_undefined_flag_CXX=' -zdefs'
13095 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13096 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13097 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13099 hardcode_libdir_flag_spec_CXX='-R$libdir'
13100 hardcode_shlibpath_var_CXX=no
13101 case $host_os in
13102 solaris2.[0-5] | solaris2.[0-5].*) ;;
13104 # The compiler driver will combine and reorder linker options,
13105 # but understands `-z linker_flag'.
13106 # Supported since Solaris 2.6 (maybe 2.5.1?)
13107 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13109 esac
13110 link_all_deplibs_CXX=yes
13112 output_verbose_link_cmd='func_echo_all'
13114 # Archives containing C++ object files must be created using
13115 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13116 # necessary to make sure instantiated templates are included
13117 # in the archive.
13118 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13120 gcx*)
13121 # Green Hills C++ Compiler
13122 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13124 # The C++ compiler must be used to create the archive.
13125 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13128 # GNU C++ compiler with Solaris linker
13129 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13130 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13131 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13132 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13133 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13134 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13136 # Commands to make compiler produce verbose output that lists
13137 # what "hidden" libraries, object files and flags are used when
13138 # linking a shared library.
13139 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13140 else
13141 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13142 # platform.
13143 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13144 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13145 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13147 # Commands to make compiler produce verbose output that lists
13148 # what "hidden" libraries, object files and flags are used when
13149 # linking a shared library.
13150 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13153 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13154 case $host_os in
13155 solaris2.[0-5] | solaris2.[0-5].*) ;;
13157 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13159 esac
13162 esac
13165 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13166 no_undefined_flag_CXX='${wl}-z,text'
13167 archive_cmds_need_lc_CXX=no
13168 hardcode_shlibpath_var_CXX=no
13169 runpath_var='LD_RUN_PATH'
13171 case $cc_basename in
13172 CC*)
13173 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13174 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13177 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13178 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13180 esac
13183 sysv5* | sco3.2v5* | sco5v6*)
13184 # Note: We can NOT use -z defs as we might desire, because we do not
13185 # link with -lc, and that would cause any symbols used from libc to
13186 # always be unresolved, which means just about no library would
13187 # ever link correctly. If we're not using GNU ld we use -z text
13188 # though, which does catch some bad symbols but isn't as heavy-handed
13189 # as -z defs.
13190 no_undefined_flag_CXX='${wl}-z,text'
13191 allow_undefined_flag_CXX='${wl}-z,nodefs'
13192 archive_cmds_need_lc_CXX=no
13193 hardcode_shlibpath_var_CXX=no
13194 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13195 hardcode_libdir_separator_CXX=':'
13196 link_all_deplibs_CXX=yes
13197 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13198 runpath_var='LD_RUN_PATH'
13200 case $cc_basename in
13201 CC*)
13202 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13203 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13204 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13205 '"$old_archive_cmds_CXX"
13206 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13207 '"$reload_cmds_CXX"
13210 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13211 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13213 esac
13216 tandem*)
13217 case $cc_basename in
13218 NCC*)
13219 # NonStop-UX NCC 3.20
13220 # FIXME: insert proper C++ library support
13221 ld_shlibs_CXX=no
13224 # FIXME: insert proper C++ library support
13225 ld_shlibs_CXX=no
13227 esac
13230 vxworks*)
13231 # FIXME: insert proper C++ library support
13232 ld_shlibs_CXX=no
13236 # FIXME: insert proper C++ library support
13237 ld_shlibs_CXX=no
13239 esac
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13242 $as_echo "$ld_shlibs_CXX" >&6; }
13243 test "$ld_shlibs_CXX" = no && can_build_shared=no
13245 GCC_CXX="$GXX"
13246 LD_CXX="$LD"
13248 ## CAVEAT EMPTOR:
13249 ## There is no encapsulation within the following macros, do not change
13250 ## the running order or otherwise move them around unless you know exactly
13251 ## what you are doing...
13252 # Dependencies to place before and after the object being linked:
13253 predep_objects_CXX=
13254 postdep_objects_CXX=
13255 predeps_CXX=
13256 postdeps_CXX=
13257 compiler_lib_search_path_CXX=
13259 cat > conftest.$ac_ext <<_LT_EOF
13260 class Foo
13262 public:
13263 Foo (void) { a = 0; }
13264 private:
13265 int a;
13267 _LT_EOF
13269 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13270 (eval $ac_compile) 2>&5
13271 ac_status=$?
13272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13273 test $ac_status = 0; }; then
13274 # Parse the compiler output and extract the necessary
13275 # objects, libraries and library flags.
13277 # Sentinel used to keep track of whether or not we are before
13278 # the conftest object file.
13279 pre_test_object_deps_done=no
13281 for p in `eval "$output_verbose_link_cmd"`; do
13282 case $p in
13284 -L* | -R* | -l*)
13285 # Some compilers place space between "-{L,R}" and the path.
13286 # Remove the space.
13287 if test $p = "-L" ||
13288 test $p = "-R"; then
13289 prev=$p
13290 continue
13291 else
13292 prev=
13295 if test "$pre_test_object_deps_done" = no; then
13296 case $p in
13297 -L* | -R*)
13298 # Internal compiler library paths should come after those
13299 # provided the user. The postdeps already come after the
13300 # user supplied libs so there is no need to process them.
13301 if test -z "$compiler_lib_search_path_CXX"; then
13302 compiler_lib_search_path_CXX="${prev}${p}"
13303 else
13304 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13307 # The "-l" case would never come before the object being
13308 # linked, so don't bother handling this case.
13309 esac
13310 else
13311 if test -z "$postdeps_CXX"; then
13312 postdeps_CXX="${prev}${p}"
13313 else
13314 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13319 *.$objext)
13320 # This assumes that the test object file only shows up
13321 # once in the compiler output.
13322 if test "$p" = "conftest.$objext"; then
13323 pre_test_object_deps_done=yes
13324 continue
13327 if test "$pre_test_object_deps_done" = no; then
13328 if test -z "$predep_objects_CXX"; then
13329 predep_objects_CXX="$p"
13330 else
13331 predep_objects_CXX="$predep_objects_CXX $p"
13333 else
13334 if test -z "$postdep_objects_CXX"; then
13335 postdep_objects_CXX="$p"
13336 else
13337 postdep_objects_CXX="$postdep_objects_CXX $p"
13342 *) ;; # Ignore the rest.
13344 esac
13345 done
13347 # Clean up.
13348 rm -f a.out a.exe
13349 else
13350 echo "libtool.m4: error: problem compiling CXX test program"
13353 $RM -f confest.$objext
13355 # PORTME: override above test on systems where it is broken
13356 case $host_os in
13357 interix[3-9]*)
13358 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13359 # hack all around it, let's just trust "g++" to DTRT.
13360 predep_objects_CXX=
13361 postdep_objects_CXX=
13362 postdeps_CXX=
13365 linux*)
13366 case `$CC -V 2>&1 | sed 5q` in
13367 *Sun\ C*)
13368 # Sun C++ 5.9
13370 # The more standards-conforming stlport4 library is
13371 # incompatible with the Cstd library. Avoid specifying
13372 # it if it's in CXXFLAGS. Ignore libCrun as
13373 # -library=stlport4 depends on it.
13374 case " $CXX $CXXFLAGS " in
13375 *" -library=stlport4 "*)
13376 solaris_use_stlport4=yes
13378 esac
13380 if test "$solaris_use_stlport4" != yes; then
13381 postdeps_CXX='-library=Cstd -library=Crun'
13384 esac
13387 solaris*)
13388 case $cc_basename in
13389 CC*)
13390 # The more standards-conforming stlport4 library is
13391 # incompatible with the Cstd library. Avoid specifying
13392 # it if it's in CXXFLAGS. Ignore libCrun as
13393 # -library=stlport4 depends on it.
13394 case " $CXX $CXXFLAGS " in
13395 *" -library=stlport4 "*)
13396 solaris_use_stlport4=yes
13398 esac
13400 # Adding this requires a known-good setup of shared libraries for
13401 # Sun compiler versions before 5.6, else PIC objects from an old
13402 # archive will be linked into the output, leading to subtle bugs.
13403 if test "$solaris_use_stlport4" != yes; then
13404 postdeps_CXX='-library=Cstd -library=Crun'
13407 esac
13409 esac
13412 case " $postdeps_CXX " in
13413 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13414 esac
13415 compiler_lib_search_dirs_CXX=
13416 if test -n "${compiler_lib_search_path_CXX}"; then
13417 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13450 lt_prog_compiler_wl_CXX=
13451 lt_prog_compiler_pic_CXX=
13452 lt_prog_compiler_static_CXX=
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13455 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13457 # C++ specific cases for pic, static, wl, etc.
13458 if test "$GXX" = yes; then
13459 lt_prog_compiler_wl_CXX='-Wl,'
13460 lt_prog_compiler_static_CXX='-static'
13462 case $host_os in
13463 aix*)
13464 # All AIX code is PIC.
13465 if test "$host_cpu" = ia64; then
13466 # AIX 5 now supports IA64 processor
13467 lt_prog_compiler_static_CXX='-Bstatic'
13469 lt_prog_compiler_pic_CXX='-fPIC'
13472 amigaos*)
13473 case $host_cpu in
13474 powerpc)
13475 # see comment about AmigaOS4 .so support
13476 lt_prog_compiler_pic_CXX='-fPIC'
13478 m68k)
13479 # FIXME: we need at least 68020 code to build shared libraries, but
13480 # adding the `-m68020' flag to GCC prevents building anything better,
13481 # like `-m68040'.
13482 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13484 esac
13487 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13488 # PIC is the default for these OSes.
13490 mingw* | cygwin* | os2* | pw32* | cegcc*)
13491 # This hack is so that the source file can tell whether it is being
13492 # built for inclusion in a dll (and should export symbols for example).
13493 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13494 # (--disable-auto-import) libraries
13495 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13497 darwin* | rhapsody*)
13498 # PIC is the default on this platform
13499 # Common symbols not allowed in MH_DYLIB files
13500 lt_prog_compiler_pic_CXX='-fno-common'
13502 *djgpp*)
13503 # DJGPP does not support shared libraries at all
13504 lt_prog_compiler_pic_CXX=
13506 haiku*)
13507 # PIC is the default for Haiku.
13508 # The "-static" flag exists, but is broken.
13509 lt_prog_compiler_static_CXX=
13511 interix[3-9]*)
13512 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13513 # Instead, we relocate shared libraries at runtime.
13515 sysv4*MP*)
13516 if test -d /usr/nec; then
13517 lt_prog_compiler_pic_CXX=-Kconform_pic
13520 hpux*)
13521 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13522 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13523 # sets the default TLS model and affects inlining.
13524 case $host_cpu in
13525 hppa*64*)
13528 lt_prog_compiler_pic_CXX='-fPIC'
13530 esac
13532 *qnx* | *nto*)
13533 # QNX uses GNU C++, but need to define -shared option too, otherwise
13534 # it will coredump.
13535 lt_prog_compiler_pic_CXX='-fPIC -shared'
13538 lt_prog_compiler_pic_CXX='-fPIC'
13540 esac
13541 else
13542 case $host_os in
13543 aix[4-9]*)
13544 # All AIX code is PIC.
13545 if test "$host_cpu" = ia64; then
13546 # AIX 5 now supports IA64 processor
13547 lt_prog_compiler_static_CXX='-Bstatic'
13548 else
13549 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13552 chorus*)
13553 case $cc_basename in
13554 cxch68*)
13555 # Green Hills C++ Compiler
13556 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13558 esac
13560 dgux*)
13561 case $cc_basename in
13562 ec++*)
13563 lt_prog_compiler_pic_CXX='-KPIC'
13565 ghcx*)
13566 # Green Hills C++ Compiler
13567 lt_prog_compiler_pic_CXX='-pic'
13571 esac
13573 freebsd* | dragonfly*)
13574 # FreeBSD uses GNU C++
13576 hpux9* | hpux10* | hpux11*)
13577 case $cc_basename in
13578 CC*)
13579 lt_prog_compiler_wl_CXX='-Wl,'
13580 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13581 if test "$host_cpu" != ia64; then
13582 lt_prog_compiler_pic_CXX='+Z'
13585 aCC*)
13586 lt_prog_compiler_wl_CXX='-Wl,'
13587 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13588 case $host_cpu in
13589 hppa*64*|ia64*)
13590 # +Z the default
13593 lt_prog_compiler_pic_CXX='+Z'
13595 esac
13599 esac
13601 interix*)
13602 # This is c89, which is MS Visual C++ (no shared libs)
13603 # Anyone wants to do a port?
13605 irix5* | irix6* | nonstopux*)
13606 case $cc_basename in
13607 CC*)
13608 lt_prog_compiler_wl_CXX='-Wl,'
13609 lt_prog_compiler_static_CXX='-non_shared'
13610 # CC pic flag -KPIC is the default.
13614 esac
13616 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13617 case $cc_basename in
13618 KCC*)
13619 # KAI C++ Compiler
13620 lt_prog_compiler_wl_CXX='--backend -Wl,'
13621 lt_prog_compiler_pic_CXX='-fPIC'
13623 ecpc* )
13624 # old Intel C++ for x86_64 which still supported -KPIC.
13625 lt_prog_compiler_wl_CXX='-Wl,'
13626 lt_prog_compiler_pic_CXX='-KPIC'
13627 lt_prog_compiler_static_CXX='-static'
13629 icpc* )
13630 # Intel C++, used to be incompatible with GCC.
13631 # ICC 10 doesn't accept -KPIC any more.
13632 lt_prog_compiler_wl_CXX='-Wl,'
13633 lt_prog_compiler_pic_CXX='-fPIC'
13634 lt_prog_compiler_static_CXX='-static'
13636 pgCC* | pgcpp*)
13637 # Portland Group C++ compiler
13638 lt_prog_compiler_wl_CXX='-Wl,'
13639 lt_prog_compiler_pic_CXX='-fpic'
13640 lt_prog_compiler_static_CXX='-Bstatic'
13642 cxx*)
13643 # Compaq C++
13644 # Make sure the PIC flag is empty. It appears that all Alpha
13645 # Linux and Compaq Tru64 Unix objects are PIC.
13646 lt_prog_compiler_pic_CXX=
13647 lt_prog_compiler_static_CXX='-non_shared'
13649 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13650 # IBM XL 8.0, 9.0 on PPC and BlueGene
13651 lt_prog_compiler_wl_CXX='-Wl,'
13652 lt_prog_compiler_pic_CXX='-qpic'
13653 lt_prog_compiler_static_CXX='-qstaticlink'
13656 case `$CC -V 2>&1 | sed 5q` in
13657 *Sun\ C*)
13658 # Sun C++ 5.9
13659 lt_prog_compiler_pic_CXX='-KPIC'
13660 lt_prog_compiler_static_CXX='-Bstatic'
13661 lt_prog_compiler_wl_CXX='-Qoption ld '
13663 esac
13665 esac
13667 lynxos*)
13669 m88k*)
13671 mvs*)
13672 case $cc_basename in
13673 cxx*)
13674 lt_prog_compiler_pic_CXX='-W c,exportall'
13678 esac
13680 netbsd*)
13682 *qnx* | *nto*)
13683 # QNX uses GNU C++, but need to define -shared option too, otherwise
13684 # it will coredump.
13685 lt_prog_compiler_pic_CXX='-fPIC -shared'
13687 osf3* | osf4* | osf5*)
13688 case $cc_basename in
13689 KCC*)
13690 lt_prog_compiler_wl_CXX='--backend -Wl,'
13692 RCC*)
13693 # Rational C++ 2.4.1
13694 lt_prog_compiler_pic_CXX='-pic'
13696 cxx*)
13697 # Digital/Compaq C++
13698 lt_prog_compiler_wl_CXX='-Wl,'
13699 # Make sure the PIC flag is empty. It appears that all Alpha
13700 # Linux and Compaq Tru64 Unix objects are PIC.
13701 lt_prog_compiler_pic_CXX=
13702 lt_prog_compiler_static_CXX='-non_shared'
13706 esac
13708 psos*)
13710 solaris*)
13711 case $cc_basename in
13712 CC*)
13713 # Sun C++ 4.2, 5.x and Centerline C++
13714 lt_prog_compiler_pic_CXX='-KPIC'
13715 lt_prog_compiler_static_CXX='-Bstatic'
13716 lt_prog_compiler_wl_CXX='-Qoption ld '
13718 gcx*)
13719 # Green Hills C++ Compiler
13720 lt_prog_compiler_pic_CXX='-PIC'
13724 esac
13726 sunos4*)
13727 case $cc_basename in
13728 CC*)
13729 # Sun C++ 4.x
13730 lt_prog_compiler_pic_CXX='-pic'
13731 lt_prog_compiler_static_CXX='-Bstatic'
13733 lcc*)
13734 # Lucid
13735 lt_prog_compiler_pic_CXX='-pic'
13739 esac
13741 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13742 case $cc_basename in
13743 CC*)
13744 lt_prog_compiler_wl_CXX='-Wl,'
13745 lt_prog_compiler_pic_CXX='-KPIC'
13746 lt_prog_compiler_static_CXX='-Bstatic'
13748 esac
13750 tandem*)
13751 case $cc_basename in
13752 NCC*)
13753 # NonStop-UX NCC 3.20
13754 lt_prog_compiler_pic_CXX='-KPIC'
13758 esac
13760 vxworks*)
13763 lt_prog_compiler_can_build_shared_CXX=no
13765 esac
13768 case $host_os in
13769 # For platforms which do not support PIC, -DPIC is meaningless:
13770 *djgpp*)
13771 lt_prog_compiler_pic_CXX=
13774 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13776 esac
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13778 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13783 # Check to make sure the PIC flag actually works.
13785 if test -n "$lt_prog_compiler_pic_CXX"; then
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13787 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13788 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13789 $as_echo_n "(cached) " >&6
13790 else
13791 lt_cv_prog_compiler_pic_works_CXX=no
13792 ac_outfile=conftest.$ac_objext
13793 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13794 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13795 # Insert the option either (1) after the last *FLAGS variable, or
13796 # (2) before a word containing "conftest.", or (3) at the end.
13797 # Note that $ac_compile itself does not contain backslashes and begins
13798 # with a dollar sign (not a hyphen), so the echo should work correctly.
13799 # The option is referenced via a variable to avoid confusing sed.
13800 lt_compile=`echo "$ac_compile" | $SED \
13801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13803 -e 's:$: $lt_compiler_flag:'`
13804 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13805 (eval "$lt_compile" 2>conftest.err)
13806 ac_status=$?
13807 cat conftest.err >&5
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 if (exit $ac_status) && test -s "$ac_outfile"; then
13810 # The compiler can only warn and ignore the option if not recognized
13811 # So say no if there are warnings other than the usual output.
13812 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13813 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13814 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13815 lt_cv_prog_compiler_pic_works_CXX=yes
13818 $RM conftest*
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13822 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13824 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13825 case $lt_prog_compiler_pic_CXX in
13826 "" | " "*) ;;
13827 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13828 esac
13829 else
13830 lt_prog_compiler_pic_CXX=
13831 lt_prog_compiler_can_build_shared_CXX=no
13839 # Check to make sure the static flag actually works.
13841 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13843 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13844 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13845 $as_echo_n "(cached) " >&6
13846 else
13847 lt_cv_prog_compiler_static_works_CXX=no
13848 save_LDFLAGS="$LDFLAGS"
13849 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13850 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13851 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13852 # The linker can only warn and ignore the option if not recognized
13853 # So say no if there are warnings
13854 if test -s conftest.err; then
13855 # Append any errors to the config.log.
13856 cat conftest.err 1>&5
13857 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13858 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13859 if diff conftest.exp conftest.er2 >/dev/null; then
13860 lt_cv_prog_compiler_static_works_CXX=yes
13862 else
13863 lt_cv_prog_compiler_static_works_CXX=yes
13866 $RM -r conftest*
13867 LDFLAGS="$save_LDFLAGS"
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13871 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13873 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13875 else
13876 lt_prog_compiler_static_CXX=
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13883 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13884 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13885 $as_echo_n "(cached) " >&6
13886 else
13887 lt_cv_prog_compiler_c_o_CXX=no
13888 $RM -r conftest 2>/dev/null
13889 mkdir conftest
13890 cd conftest
13891 mkdir out
13892 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13894 lt_compiler_flag="-o out/conftest2.$ac_objext"
13895 # Insert the option either (1) after the last *FLAGS variable, or
13896 # (2) before a word containing "conftest.", or (3) at the end.
13897 # Note that $ac_compile itself does not contain backslashes and begins
13898 # with a dollar sign (not a hyphen), so the echo should work correctly.
13899 lt_compile=`echo "$ac_compile" | $SED \
13900 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13901 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13902 -e 's:$: $lt_compiler_flag:'`
13903 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13904 (eval "$lt_compile" 2>out/conftest.err)
13905 ac_status=$?
13906 cat out/conftest.err >&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13909 then
13910 # The compiler can only warn and ignore the option if not recognized
13911 # So say no if there are warnings
13912 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13913 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13914 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13915 lt_cv_prog_compiler_c_o_CXX=yes
13918 chmod u+w . 2>&5
13919 $RM conftest*
13920 # SGI C++ compiler will create directory out/ii_files/ for
13921 # template instantiation
13922 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13923 $RM out/* && rmdir out
13924 cd ..
13925 $RM -r conftest
13926 $RM conftest*
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13930 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13935 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13936 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13937 $as_echo_n "(cached) " >&6
13938 else
13939 lt_cv_prog_compiler_c_o_CXX=no
13940 $RM -r conftest 2>/dev/null
13941 mkdir conftest
13942 cd conftest
13943 mkdir out
13944 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13946 lt_compiler_flag="-o out/conftest2.$ac_objext"
13947 # Insert the option either (1) after the last *FLAGS variable, or
13948 # (2) before a word containing "conftest.", or (3) at the end.
13949 # Note that $ac_compile itself does not contain backslashes and begins
13950 # with a dollar sign (not a hyphen), so the echo should work correctly.
13951 lt_compile=`echo "$ac_compile" | $SED \
13952 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13953 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13954 -e 's:$: $lt_compiler_flag:'`
13955 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13956 (eval "$lt_compile" 2>out/conftest.err)
13957 ac_status=$?
13958 cat out/conftest.err >&5
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13961 then
13962 # The compiler can only warn and ignore the option if not recognized
13963 # So say no if there are warnings
13964 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13965 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13966 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13967 lt_cv_prog_compiler_c_o_CXX=yes
13970 chmod u+w . 2>&5
13971 $RM conftest*
13972 # SGI C++ compiler will create directory out/ii_files/ for
13973 # template instantiation
13974 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13975 $RM out/* && rmdir out
13976 cd ..
13977 $RM -r conftest
13978 $RM conftest*
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13982 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13987 hard_links="nottested"
13988 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13989 # do not overwrite the value of need_locks provided by the user
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13991 $as_echo_n "checking if we can lock with hard links... " >&6; }
13992 hard_links=yes
13993 $RM conftest*
13994 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13995 touch conftest.a
13996 ln conftest.a conftest.b 2>&5 || hard_links=no
13997 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13999 $as_echo "$hard_links" >&6; }
14000 if test "$hard_links" = no; then
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14002 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14003 need_locks=warn
14005 else
14006 need_locks=no
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14012 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14014 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14015 case $host_os in
14016 aix[4-9]*)
14017 # If we're using GNU nm, then we don't want the "-C" option.
14018 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14019 # Also, AIX nm treats weak defined symbols like other global defined
14020 # symbols, whereas GNU nm marks them as "W".
14021 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14022 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14023 else
14024 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14027 pw32*)
14028 export_symbols_cmds_CXX="$ltdll_cmds"
14030 cygwin* | mingw* | cegcc*)
14031 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14034 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14036 esac
14037 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14040 $as_echo "$ld_shlibs_CXX" >&6; }
14041 test "$ld_shlibs_CXX" = no && can_build_shared=no
14043 with_gnu_ld_CXX=$with_gnu_ld
14051 # Do we need to explicitly link libc?
14053 case "x$archive_cmds_need_lc_CXX" in
14054 x|xyes)
14055 # Assume -lc should be added
14056 archive_cmds_need_lc_CXX=yes
14058 if test "$enable_shared" = yes && test "$GCC" = yes; then
14059 case $archive_cmds_CXX in
14060 *'~'*)
14061 # FIXME: we may have to deal with multi-command sequences.
14063 '$CC '*)
14064 # Test whether the compiler implicitly links with -lc since on some
14065 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14066 # to ld, don't add -lc before -lgcc.
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14068 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14069 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14070 $as_echo_n "(cached) " >&6
14071 else
14072 $RM conftest*
14073 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14075 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14076 (eval $ac_compile) 2>&5
14077 ac_status=$?
14078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14079 test $ac_status = 0; } 2>conftest.err; then
14080 soname=conftest
14081 lib=conftest
14082 libobjs=conftest.$ac_objext
14083 deplibs=
14084 wl=$lt_prog_compiler_wl_CXX
14085 pic_flag=$lt_prog_compiler_pic_CXX
14086 compiler_flags=-v
14087 linker_flags=-v
14088 verstring=
14089 output_objdir=.
14090 libname=conftest
14091 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14092 allow_undefined_flag_CXX=
14093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14094 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14095 ac_status=$?
14096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14097 test $ac_status = 0; }
14098 then
14099 lt_cv_archive_cmds_need_lc_CXX=no
14100 else
14101 lt_cv_archive_cmds_need_lc_CXX=yes
14103 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14104 else
14105 cat conftest.err 1>&5
14107 $RM conftest*
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14111 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14112 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14114 esac
14117 esac
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14183 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14185 library_names_spec=
14186 libname_spec='lib$name'
14187 soname_spec=
14188 shrext_cmds=".so"
14189 postinstall_cmds=
14190 postuninstall_cmds=
14191 finish_cmds=
14192 finish_eval=
14193 shlibpath_var=
14194 shlibpath_overrides_runpath=unknown
14195 version_type=none
14196 dynamic_linker="$host_os ld.so"
14197 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14198 need_lib_prefix=unknown
14199 hardcode_into_libs=no
14201 # when you set need_version to no, make sure it does not cause -set_version
14202 # flags to be left without arguments
14203 need_version=unknown
14205 case $host_os in
14206 aix3*)
14207 version_type=linux
14208 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14209 shlibpath_var=LIBPATH
14211 # AIX 3 has no versioning support, so we append a major version to the name.
14212 soname_spec='${libname}${release}${shared_ext}$major'
14215 aix[4-9]*)
14216 version_type=linux
14217 need_lib_prefix=no
14218 need_version=no
14219 hardcode_into_libs=yes
14220 if test "$host_cpu" = ia64; then
14221 # AIX 5 supports IA64
14222 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14223 shlibpath_var=LD_LIBRARY_PATH
14224 else
14225 # With GCC up to 2.95.x, collect2 would create an import file
14226 # for dependence libraries. The import file would start with
14227 # the line `#! .'. This would cause the generated library to
14228 # depend on `.', always an invalid library. This was fixed in
14229 # development snapshots of GCC prior to 3.0.
14230 case $host_os in
14231 aix4 | aix4.[01] | aix4.[01].*)
14232 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14233 echo ' yes '
14234 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14236 else
14237 can_build_shared=no
14240 esac
14241 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14242 # soname into executable. Probably we can add versioning support to
14243 # collect2, so additional links can be useful in future.
14244 if test "$aix_use_runtimelinking" = yes; then
14245 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14246 # instead of lib<name>.a to let people know that these are not
14247 # typical AIX shared libraries.
14248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14249 else
14250 # We preserve .a as extension for shared libraries through AIX4.2
14251 # and later when we are not doing run time linking.
14252 library_names_spec='${libname}${release}.a $libname.a'
14253 soname_spec='${libname}${release}${shared_ext}$major'
14255 shlibpath_var=LIBPATH
14259 amigaos*)
14260 case $host_cpu in
14261 powerpc)
14262 # Since July 2007 AmigaOS4 officially supports .so libraries.
14263 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14266 m68k)
14267 library_names_spec='$libname.ixlibrary $libname.a'
14268 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14269 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'
14271 esac
14274 beos*)
14275 library_names_spec='${libname}${shared_ext}'
14276 dynamic_linker="$host_os ld.so"
14277 shlibpath_var=LIBRARY_PATH
14280 bsdi[45]*)
14281 version_type=linux
14282 need_version=no
14283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14284 soname_spec='${libname}${release}${shared_ext}$major'
14285 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14286 shlibpath_var=LD_LIBRARY_PATH
14287 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14288 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14289 # the default ld.so.conf also contains /usr/contrib/lib and
14290 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14291 # libtool to hard-code these into programs
14294 cygwin* | mingw* | pw32* | cegcc*)
14295 version_type=windows
14296 shrext_cmds=".dll"
14297 need_version=no
14298 need_lib_prefix=no
14300 case $GCC,$host_os in
14301 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14302 library_names_spec='$libname.dll.a'
14303 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14304 postinstall_cmds='base_file=`basename \${file}`~
14305 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14306 dldir=$destdir/`dirname \$dlpath`~
14307 test -d \$dldir || mkdir -p \$dldir~
14308 $install_prog $dir/$dlname \$dldir/$dlname~
14309 chmod a+x \$dldir/$dlname~
14310 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14311 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14313 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14314 dlpath=$dir/\$dldll~
14315 $RM \$dlpath'
14316 shlibpath_overrides_runpath=yes
14318 case $host_os in
14319 cygwin*)
14320 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14321 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14324 mingw* | cegcc*)
14325 # MinGW DLLs use traditional 'lib' prefix
14326 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14328 pw32*)
14329 # pw32 DLLs use 'pw' prefix rather than 'lib'
14330 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14332 esac
14336 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14338 esac
14339 dynamic_linker='Win32 ld.exe'
14340 # FIXME: first we should search . and the directory the executable is in
14341 shlibpath_var=PATH
14344 darwin* | rhapsody*)
14345 dynamic_linker="$host_os dyld"
14346 version_type=darwin
14347 need_lib_prefix=no
14348 need_version=no
14349 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14350 soname_spec='${libname}${release}${major}$shared_ext'
14351 shlibpath_overrides_runpath=yes
14352 shlibpath_var=DYLD_LIBRARY_PATH
14353 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14355 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14358 dgux*)
14359 version_type=linux
14360 need_lib_prefix=no
14361 need_version=no
14362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14363 soname_spec='${libname}${release}${shared_ext}$major'
14364 shlibpath_var=LD_LIBRARY_PATH
14367 freebsd* | dragonfly*)
14368 # DragonFly does not have aout. When/if they implement a new
14369 # versioning mechanism, adjust this.
14370 if test -x /usr/bin/objformat; then
14371 objformat=`/usr/bin/objformat`
14372 else
14373 case $host_os in
14374 freebsd[23].*) objformat=aout ;;
14375 *) objformat=elf ;;
14376 esac
14378 version_type=freebsd-$objformat
14379 case $version_type in
14380 freebsd-elf*)
14381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14382 need_version=no
14383 need_lib_prefix=no
14385 freebsd-*)
14386 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14387 need_version=yes
14389 esac
14390 shlibpath_var=LD_LIBRARY_PATH
14391 case $host_os in
14392 freebsd2.*)
14393 shlibpath_overrides_runpath=yes
14395 freebsd3.[01]* | freebsdelf3.[01]*)
14396 shlibpath_overrides_runpath=yes
14397 hardcode_into_libs=yes
14399 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14400 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14401 shlibpath_overrides_runpath=no
14402 hardcode_into_libs=yes
14404 *) # from 4.6 on, and DragonFly
14405 shlibpath_overrides_runpath=yes
14406 hardcode_into_libs=yes
14408 esac
14411 gnu*)
14412 version_type=linux
14413 need_lib_prefix=no
14414 need_version=no
14415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14416 soname_spec='${libname}${release}${shared_ext}$major'
14417 shlibpath_var=LD_LIBRARY_PATH
14418 hardcode_into_libs=yes
14421 haiku*)
14422 version_type=linux
14423 need_lib_prefix=no
14424 need_version=no
14425 dynamic_linker="$host_os runtime_loader"
14426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14427 soname_spec='${libname}${release}${shared_ext}$major'
14428 shlibpath_var=LIBRARY_PATH
14429 shlibpath_overrides_runpath=yes
14430 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14431 hardcode_into_libs=yes
14434 hpux9* | hpux10* | hpux11*)
14435 # Give a soname corresponding to the major version so that dld.sl refuses to
14436 # link against other versions.
14437 version_type=sunos
14438 need_lib_prefix=no
14439 need_version=no
14440 case $host_cpu in
14441 ia64*)
14442 shrext_cmds='.so'
14443 hardcode_into_libs=yes
14444 dynamic_linker="$host_os dld.so"
14445 shlibpath_var=LD_LIBRARY_PATH
14446 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14448 soname_spec='${libname}${release}${shared_ext}$major'
14449 if test "X$HPUX_IA64_MODE" = X32; then
14450 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14451 else
14452 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14454 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14456 hppa*64*)
14457 shrext_cmds='.sl'
14458 hardcode_into_libs=yes
14459 dynamic_linker="$host_os dld.sl"
14460 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14461 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14463 soname_spec='${libname}${release}${shared_ext}$major'
14464 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14465 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14468 shrext_cmds='.sl'
14469 dynamic_linker="$host_os dld.sl"
14470 shlibpath_var=SHLIB_PATH
14471 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14473 soname_spec='${libname}${release}${shared_ext}$major'
14475 esac
14476 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14477 postinstall_cmds='chmod 555 $lib'
14478 # or fails outright, so override atomically:
14479 install_override_mode=555
14482 interix[3-9]*)
14483 version_type=linux
14484 need_lib_prefix=no
14485 need_version=no
14486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14487 soname_spec='${libname}${release}${shared_ext}$major'
14488 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14489 shlibpath_var=LD_LIBRARY_PATH
14490 shlibpath_overrides_runpath=no
14491 hardcode_into_libs=yes
14494 irix5* | irix6* | nonstopux*)
14495 case $host_os in
14496 nonstopux*) version_type=nonstopux ;;
14498 if test "$lt_cv_prog_gnu_ld" = yes; then
14499 version_type=linux
14500 else
14501 version_type=irix
14502 fi ;;
14503 esac
14504 need_lib_prefix=no
14505 need_version=no
14506 soname_spec='${libname}${release}${shared_ext}$major'
14507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14508 case $host_os in
14509 irix5* | nonstopux*)
14510 libsuff= shlibsuff=
14513 case $LD in # libtool.m4 will add one of these switches to LD
14514 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14515 libsuff= shlibsuff= libmagic=32-bit;;
14516 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14517 libsuff=32 shlibsuff=N32 libmagic=N32;;
14518 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14519 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14520 *) libsuff= shlibsuff= libmagic=never-match;;
14521 esac
14523 esac
14524 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14525 shlibpath_overrides_runpath=no
14526 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14527 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14528 hardcode_into_libs=yes
14531 # No shared lib support for Linux oldld, aout, or coff.
14532 linux*oldld* | linux*aout* | linux*coff*)
14533 dynamic_linker=no
14536 # This must be Linux ELF.
14538 # uclinux* changes (here and below) have been submitted to the libtool
14539 # project, but have not yet been accepted: they are GCC-local changes
14540 # for the time being. (See
14541 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14542 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14543 version_type=linux
14544 need_lib_prefix=no
14545 need_version=no
14546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14547 soname_spec='${libname}${release}${shared_ext}$major'
14548 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14549 shlibpath_var=LD_LIBRARY_PATH
14550 shlibpath_overrides_runpath=no
14552 # Some binutils ld are patched to set DT_RUNPATH
14553 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14554 $as_echo_n "(cached) " >&6
14555 else
14556 lt_cv_shlibpath_overrides_runpath=no
14557 save_LDFLAGS=$LDFLAGS
14558 save_libdir=$libdir
14559 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14560 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14562 /* end confdefs.h. */
14565 main ()
14569 return 0;
14571 _ACEOF
14572 if ac_fn_cxx_try_link "$LINENO"; then :
14573 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14574 lt_cv_shlibpath_overrides_runpath=yes
14577 rm -f core conftest.err conftest.$ac_objext \
14578 conftest$ac_exeext conftest.$ac_ext
14579 LDFLAGS=$save_LDFLAGS
14580 libdir=$save_libdir
14584 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14586 # This implies no fast_install, which is unacceptable.
14587 # Some rework will be needed to allow for fast_install
14588 # before this can be enabled.
14589 hardcode_into_libs=yes
14591 # Append ld.so.conf contents to the search path
14592 if test -f /etc/ld.so.conf; then
14593 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' ' '`
14594 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14597 # We used to test for /lib/ld.so.1 and disable shared libraries on
14598 # powerpc, because MkLinux only supported shared libraries with the
14599 # GNU dynamic linker. Since this was broken with cross compilers,
14600 # most powerpc-linux boxes support dynamic linking these days and
14601 # people can always --disable-shared, the test was removed, and we
14602 # assume the GNU/Linux dynamic linker is in use.
14603 dynamic_linker='GNU/Linux ld.so'
14606 netbsd*)
14607 version_type=sunos
14608 need_lib_prefix=no
14609 need_version=no
14610 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14612 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14613 dynamic_linker='NetBSD (a.out) ld.so'
14614 else
14615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14616 soname_spec='${libname}${release}${shared_ext}$major'
14617 dynamic_linker='NetBSD ld.elf_so'
14619 shlibpath_var=LD_LIBRARY_PATH
14620 shlibpath_overrides_runpath=yes
14621 hardcode_into_libs=yes
14624 newsos6)
14625 version_type=linux
14626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14627 shlibpath_var=LD_LIBRARY_PATH
14628 shlibpath_overrides_runpath=yes
14631 *nto* | *qnx*)
14632 version_type=qnx
14633 need_lib_prefix=no
14634 need_version=no
14635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14636 soname_spec='${libname}${release}${shared_ext}$major'
14637 shlibpath_var=LD_LIBRARY_PATH
14638 shlibpath_overrides_runpath=no
14639 hardcode_into_libs=yes
14640 dynamic_linker='ldqnx.so'
14643 openbsd*)
14644 version_type=sunos
14645 sys_lib_dlsearch_path_spec="/usr/lib"
14646 need_lib_prefix=no
14647 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14648 case $host_os in
14649 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14650 *) need_version=no ;;
14651 esac
14652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14653 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14654 shlibpath_var=LD_LIBRARY_PATH
14655 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14656 case $host_os in
14657 openbsd2.[89] | openbsd2.[89].*)
14658 shlibpath_overrides_runpath=no
14661 shlibpath_overrides_runpath=yes
14663 esac
14664 else
14665 shlibpath_overrides_runpath=yes
14669 os2*)
14670 libname_spec='$name'
14671 shrext_cmds=".dll"
14672 need_lib_prefix=no
14673 library_names_spec='$libname${shared_ext} $libname.a'
14674 dynamic_linker='OS/2 ld.exe'
14675 shlibpath_var=LIBPATH
14678 osf3* | osf4* | osf5*)
14679 version_type=osf
14680 need_lib_prefix=no
14681 need_version=no
14682 soname_spec='${libname}${release}${shared_ext}$major'
14683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14684 shlibpath_var=LD_LIBRARY_PATH
14685 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14686 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14689 rdos*)
14690 dynamic_linker=no
14693 solaris*)
14694 version_type=linux
14695 need_lib_prefix=no
14696 need_version=no
14697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14698 soname_spec='${libname}${release}${shared_ext}$major'
14699 shlibpath_var=LD_LIBRARY_PATH
14700 shlibpath_overrides_runpath=yes
14701 hardcode_into_libs=yes
14702 # ldd complains unless libraries are executable
14703 postinstall_cmds='chmod +x $lib'
14706 sunos4*)
14707 version_type=sunos
14708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14709 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14710 shlibpath_var=LD_LIBRARY_PATH
14711 shlibpath_overrides_runpath=yes
14712 if test "$with_gnu_ld" = yes; then
14713 need_lib_prefix=no
14715 need_version=yes
14718 sysv4 | sysv4.3*)
14719 version_type=linux
14720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14721 soname_spec='${libname}${release}${shared_ext}$major'
14722 shlibpath_var=LD_LIBRARY_PATH
14723 case $host_vendor in
14724 sni)
14725 shlibpath_overrides_runpath=no
14726 need_lib_prefix=no
14727 runpath_var=LD_RUN_PATH
14729 siemens)
14730 need_lib_prefix=no
14732 motorola)
14733 need_lib_prefix=no
14734 need_version=no
14735 shlibpath_overrides_runpath=no
14736 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14738 esac
14741 sysv4*MP*)
14742 if test -d /usr/nec ;then
14743 version_type=linux
14744 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14745 soname_spec='$libname${shared_ext}.$major'
14746 shlibpath_var=LD_LIBRARY_PATH
14750 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14751 version_type=freebsd-elf
14752 need_lib_prefix=no
14753 need_version=no
14754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14755 soname_spec='${libname}${release}${shared_ext}$major'
14756 shlibpath_var=LD_LIBRARY_PATH
14757 shlibpath_overrides_runpath=yes
14758 hardcode_into_libs=yes
14759 if test "$with_gnu_ld" = yes; then
14760 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14761 else
14762 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14763 case $host_os in
14764 sco3.2v5*)
14765 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14767 esac
14769 sys_lib_dlsearch_path_spec='/usr/lib'
14772 tpf*)
14773 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14774 version_type=linux
14775 need_lib_prefix=no
14776 need_version=no
14777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14778 shlibpath_var=LD_LIBRARY_PATH
14779 shlibpath_overrides_runpath=no
14780 hardcode_into_libs=yes
14783 uts4*)
14784 version_type=linux
14785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14786 soname_spec='${libname}${release}${shared_ext}$major'
14787 shlibpath_var=LD_LIBRARY_PATH
14791 dynamic_linker=no
14793 esac
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14795 $as_echo "$dynamic_linker" >&6; }
14796 test "$dynamic_linker" = no && can_build_shared=no
14798 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14799 if test "$GCC" = yes; then
14800 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14803 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14804 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14806 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14807 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14848 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14849 hardcode_action_CXX=
14850 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14851 test -n "$runpath_var_CXX" ||
14852 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14854 # We can hardcode non-existent directories.
14855 if test "$hardcode_direct_CXX" != no &&
14856 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14857 # have to relink, otherwise we might link with an installed library
14858 # when we should be linking with a yet-to-be-installed one
14859 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14860 test "$hardcode_minus_L_CXX" != no; then
14861 # Linking always hardcodes the temporary library directory.
14862 hardcode_action_CXX=relink
14863 else
14864 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14865 hardcode_action_CXX=immediate
14867 else
14868 # We cannot hardcode anything, or else we can only hardcode existing
14869 # directories.
14870 hardcode_action_CXX=unsupported
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14873 $as_echo "$hardcode_action_CXX" >&6; }
14875 if test "$hardcode_action_CXX" = relink ||
14876 test "$inherit_rpath_CXX" = yes; then
14877 # Fast installation is not supported
14878 enable_fast_install=no
14879 elif test "$shlibpath_overrides_runpath" = yes ||
14880 test "$enable_shared" = no; then
14881 # Fast installation is not necessary
14882 enable_fast_install=needless
14891 fi # test -n "$compiler"
14893 CC=$lt_save_CC
14894 LDCXX=$LD
14895 LD=$lt_save_LD
14896 GCC=$lt_save_GCC
14897 with_gnu_ld=$lt_save_with_gnu_ld
14898 lt_cv_path_LDCXX=$lt_cv_path_LD
14899 lt_cv_path_LD=$lt_save_path_LD
14900 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14901 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14902 fi # test "$_lt_caught_CXX_error" != yes
14904 ac_ext=c
14905 ac_cpp='$CPP $CPPFLAGS'
14906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14922 ac_config_commands="$ac_config_commands libtool"
14927 # Only expand once:
14931 # Test for 64-bit build.
14932 # The cast to long int works around a bug in the HP C Compiler
14933 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14934 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14935 # This bug is HP SR number 8606223364.
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14937 $as_echo_n "checking size of size_t... " >&6; }
14938 if ${ac_cv_sizeof_size_t+:} false; then :
14939 $as_echo_n "(cached) " >&6
14940 else
14941 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
14943 else
14944 if test "$ac_cv_type_size_t" = yes; then
14945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14947 as_fn_error 77 "cannot compute sizeof (size_t)
14948 See \`config.log' for more details" "$LINENO" 5; }
14949 else
14950 ac_cv_sizeof_size_t=0
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14956 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14960 cat >>confdefs.h <<_ACEOF
14961 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14962 _ACEOF
14966 cat > local.exp <<EOF
14967 set CC_FOR_TARGET "$CC"
14968 set CXX_FOR_TARGET "$CXX"
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14973 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14974 # Check whether --enable-maintainer-mode was given.
14975 if test "${enable_maintainer_mode+set}" = set; then :
14976 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14977 else
14978 USE_MAINTAINER_MODE=no
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14982 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14983 if test $USE_MAINTAINER_MODE = yes; then
14984 MAINTAINER_MODE_TRUE=
14985 MAINTAINER_MODE_FALSE='#'
14986 else
14987 MAINTAINER_MODE_TRUE='#'
14988 MAINTAINER_MODE_FALSE=
14991 MAINT=$MAINTAINER_MODE_TRUE
14995 for ac_header in sys/mman.h
14996 do :
14997 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
14998 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
14999 cat >>confdefs.h <<_ACEOF
15000 #define HAVE_SYS_MMAN_H 1
15001 _ACEOF
15005 done
15007 for ac_func in mmap mkostemp
15008 do :
15009 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15010 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15011 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15012 cat >>confdefs.h <<_ACEOF
15013 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15014 _ACEOF
15017 done
15020 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15021 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
15022 libffi_header_sys_mman_h=yes
15023 else
15024 libffi_header_sys_mman_h=no
15028 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
15029 if test "x$ac_cv_func_mmap" = xyes; then :
15030 libffi_func_mmap=yes
15031 else
15032 libffi_func_mmap=no
15035 if test "$libffi_header_sys_mman_h" != yes \
15036 || test "$libffi_func_mmap" != yes; then
15037 ac_cv_func_mmap_file=no
15038 ac_cv_func_mmap_dev_zero=no
15039 ac_cv_func_mmap_anon=no
15040 else
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
15042 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
15043 if ${ac_cv_func_mmap_file+:} false; then :
15044 $as_echo_n "(cached) " >&6
15045 else
15046 # Add a system to this blacklist if
15047 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
15048 # memory area containing the same data that you'd get if you applied
15049 # read() to the same fd. The only system known to have a problem here
15050 # is VMS, where text files have record structure.
15051 case "$host_os" in
15052 vms* | ultrix*)
15053 ac_cv_func_mmap_file=no ;;
15055 ac_cv_func_mmap_file=yes;;
15056 esac
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
15059 $as_echo "$ac_cv_func_mmap_file" >&6; }
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
15061 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
15062 if ${ac_cv_func_mmap_dev_zero+:} false; then :
15063 $as_echo_n "(cached) " >&6
15064 else
15065 # Add a system to this blacklist if it has mmap() but /dev/zero
15066 # does not exist, or if mmapping /dev/zero does not give anonymous
15067 # zeroed pages with both the following properties:
15068 # 1. If you map N consecutive pages in with one call, and then
15069 # unmap any subset of those pages, the pages that were not
15070 # explicitly unmapped remain accessible.
15071 # 2. If you map two adjacent blocks of memory and then unmap them
15072 # both at once, they must both go away.
15073 # Systems known to be in this category are Windows (all variants),
15074 # VMS, and Darwin.
15075 case "$host_os" in
15076 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
15077 ac_cv_func_mmap_dev_zero=no ;;
15079 ac_cv_func_mmap_dev_zero=yes;;
15080 esac
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
15083 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
15085 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
15087 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
15088 if ${ac_cv_decl_map_anon+:} false; then :
15089 $as_echo_n "(cached) " >&6
15090 else
15091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15092 /* end confdefs.h. */
15093 #include <sys/types.h>
15094 #include <sys/mman.h>
15095 #include <unistd.h>
15097 #ifndef MAP_ANONYMOUS
15098 #define MAP_ANONYMOUS MAP_ANON
15099 #endif
15102 main ()
15104 int n = MAP_ANONYMOUS;
15106 return 0;
15108 _ACEOF
15109 if ac_fn_c_try_compile "$LINENO"; then :
15110 ac_cv_decl_map_anon=yes
15111 else
15112 ac_cv_decl_map_anon=no
15114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
15117 $as_echo "$ac_cv_decl_map_anon" >&6; }
15119 if test $ac_cv_decl_map_anon = no; then
15120 ac_cv_func_mmap_anon=no
15121 else
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
15123 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
15124 if ${ac_cv_func_mmap_anon+:} false; then :
15125 $as_echo_n "(cached) " >&6
15126 else
15127 # Add a system to this blacklist if it has mmap() and MAP_ANON or
15128 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
15129 # doesn't give anonymous zeroed pages with the same properties listed
15130 # above for use of /dev/zero.
15131 # Systems known to be in this category are Windows, VMS, and SCO Unix.
15132 case "$host_os" in
15133 vms* | cygwin* | pe | mingw* | sco* | udk* )
15134 ac_cv_func_mmap_anon=no ;;
15136 ac_cv_func_mmap_anon=yes;;
15137 esac
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
15140 $as_echo "$ac_cv_func_mmap_anon" >&6; }
15144 if test $ac_cv_func_mmap_file = yes; then
15146 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
15149 if test $ac_cv_func_mmap_dev_zero = yes; then
15151 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
15154 if test $ac_cv_func_mmap_anon = yes; then
15156 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
15161 if test -d $srcdir/testsuite; then
15162 TESTSUBDIR_TRUE=
15163 TESTSUBDIR_FALSE='#'
15164 else
15165 TESTSUBDIR_TRUE='#'
15166 TESTSUBDIR_FALSE=
15170 TARGETDIR="unknown"
15171 HAVE_LONG_DOUBLE_VARIANT=0
15173 . ${srcdir}/configure.host
15175 if test -n "${UNSUPPORTED}"; then
15176 as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15183 $as_echo_n "checking for ANSI C header files... " >&6; }
15184 if ${ac_cv_header_stdc+:} false; then :
15185 $as_echo_n "(cached) " >&6
15186 else
15187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15188 /* end confdefs.h. */
15189 #include <stdlib.h>
15190 #include <stdarg.h>
15191 #include <string.h>
15192 #include <float.h>
15195 main ()
15199 return 0;
15201 _ACEOF
15202 if ac_fn_c_try_compile "$LINENO"; then :
15203 ac_cv_header_stdc=yes
15204 else
15205 ac_cv_header_stdc=no
15207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15209 if test $ac_cv_header_stdc = yes; then
15210 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15212 /* end confdefs.h. */
15213 #include <string.h>
15215 _ACEOF
15216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15217 $EGREP "memchr" >/dev/null 2>&1; then :
15219 else
15220 ac_cv_header_stdc=no
15222 rm -f conftest*
15226 if test $ac_cv_header_stdc = yes; then
15227 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15229 /* end confdefs.h. */
15230 #include <stdlib.h>
15232 _ACEOF
15233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15234 $EGREP "free" >/dev/null 2>&1; then :
15236 else
15237 ac_cv_header_stdc=no
15239 rm -f conftest*
15243 if test $ac_cv_header_stdc = yes; then
15244 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15245 if test "$cross_compiling" = yes; then :
15247 else
15248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15249 /* end confdefs.h. */
15250 #include <ctype.h>
15251 #include <stdlib.h>
15252 #if ((' ' & 0x0FF) == 0x020)
15253 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15254 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15255 #else
15256 # define ISLOWER(c) \
15257 (('a' <= (c) && (c) <= 'i') \
15258 || ('j' <= (c) && (c) <= 'r') \
15259 || ('s' <= (c) && (c) <= 'z'))
15260 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15261 #endif
15263 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15265 main ()
15267 int i;
15268 for (i = 0; i < 256; i++)
15269 if (XOR (islower (i), ISLOWER (i))
15270 || toupper (i) != TOUPPER (i))
15271 return 2;
15272 return 0;
15274 _ACEOF
15275 if ac_fn_c_try_run "$LINENO"; then :
15277 else
15278 ac_cv_header_stdc=no
15280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15281 conftest.$ac_objext conftest.beam conftest.$ac_ext
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15287 $as_echo "$ac_cv_header_stdc" >&6; }
15288 if test $ac_cv_header_stdc = yes; then
15290 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15294 for ac_func in memcpy
15295 do :
15296 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
15297 if test "x$ac_cv_func_memcpy" = xyes; then :
15298 cat >>confdefs.h <<_ACEOF
15299 #define HAVE_MEMCPY 1
15300 _ACEOF
15303 done
15305 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15306 if test "x$ac_cv_type_size_t" = xyes; then :
15308 else
15310 cat >>confdefs.h <<_ACEOF
15311 #define size_t unsigned int
15312 _ACEOF
15316 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15317 # for constant arguments. Useless!
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15319 $as_echo_n "checking for working alloca.h... " >&6; }
15320 if ${ac_cv_working_alloca_h+:} false; then :
15321 $as_echo_n "(cached) " >&6
15322 else
15323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15324 /* end confdefs.h. */
15325 #include <alloca.h>
15327 main ()
15329 char *p = (char *) alloca (2 * sizeof (int));
15330 if (p) return 0;
15332 return 0;
15334 _ACEOF
15335 if ac_fn_c_try_link "$LINENO"; then :
15336 ac_cv_working_alloca_h=yes
15337 else
15338 ac_cv_working_alloca_h=no
15340 rm -f core conftest.err conftest.$ac_objext \
15341 conftest$ac_exeext conftest.$ac_ext
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15344 $as_echo "$ac_cv_working_alloca_h" >&6; }
15345 if test $ac_cv_working_alloca_h = yes; then
15347 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15352 $as_echo_n "checking for alloca... " >&6; }
15353 if ${ac_cv_func_alloca_works+:} false; then :
15354 $as_echo_n "(cached) " >&6
15355 else
15356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357 /* end confdefs.h. */
15358 #ifdef __GNUC__
15359 # define alloca __builtin_alloca
15360 #else
15361 # ifdef _MSC_VER
15362 # include <malloc.h>
15363 # define alloca _alloca
15364 # else
15365 # ifdef HAVE_ALLOCA_H
15366 # include <alloca.h>
15367 # else
15368 # ifdef _AIX
15369 #pragma alloca
15370 # else
15371 # ifndef alloca /* predefined by HP cc +Olibcalls */
15372 void *alloca (size_t);
15373 # endif
15374 # endif
15375 # endif
15376 # endif
15377 #endif
15380 main ()
15382 char *p = (char *) alloca (1);
15383 if (p) return 0;
15385 return 0;
15387 _ACEOF
15388 if ac_fn_c_try_link "$LINENO"; then :
15389 ac_cv_func_alloca_works=yes
15390 else
15391 ac_cv_func_alloca_works=no
15393 rm -f core conftest.err conftest.$ac_objext \
15394 conftest$ac_exeext conftest.$ac_ext
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15397 $as_echo "$ac_cv_func_alloca_works" >&6; }
15399 if test $ac_cv_func_alloca_works = yes; then
15401 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15403 else
15404 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15405 # that cause trouble. Some versions do not even contain alloca or
15406 # contain a buggy version. If you still want to use their alloca,
15407 # use ar to extract alloca.o from them instead of compiling alloca.c.
15409 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15411 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15415 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15416 if ${ac_cv_os_cray+:} false; then :
15417 $as_echo_n "(cached) " >&6
15418 else
15419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15420 /* end confdefs.h. */
15421 #if defined CRAY && ! defined CRAY2
15422 webecray
15423 #else
15424 wenotbecray
15425 #endif
15427 _ACEOF
15428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15429 $EGREP "webecray" >/dev/null 2>&1; then :
15430 ac_cv_os_cray=yes
15431 else
15432 ac_cv_os_cray=no
15434 rm -f conftest*
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15438 $as_echo "$ac_cv_os_cray" >&6; }
15439 if test $ac_cv_os_cray = yes; then
15440 for ac_func in _getb67 GETB67 getb67; do
15441 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15442 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15443 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15445 cat >>confdefs.h <<_ACEOF
15446 #define CRAY_STACKSEG_END $ac_func
15447 _ACEOF
15449 break
15452 done
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15456 $as_echo_n "checking stack direction for C alloca... " >&6; }
15457 if ${ac_cv_c_stack_direction+:} false; then :
15458 $as_echo_n "(cached) " >&6
15459 else
15460 if test "$cross_compiling" = yes; then :
15461 ac_cv_c_stack_direction=0
15462 else
15463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15464 /* end confdefs.h. */
15465 $ac_includes_default
15467 find_stack_direction (int *addr, int depth)
15469 int dir, dummy = 0;
15470 if (! addr)
15471 addr = &dummy;
15472 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15473 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15474 return dir + dummy;
15478 main (int argc, char **argv)
15480 return find_stack_direction (0, argc + !argv + 20) < 0;
15482 _ACEOF
15483 if ac_fn_c_try_run "$LINENO"; then :
15484 ac_cv_c_stack_direction=1
15485 else
15486 ac_cv_c_stack_direction=-1
15488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15489 conftest.$ac_objext conftest.beam conftest.$ac_ext
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15494 $as_echo "$ac_cv_c_stack_direction" >&6; }
15495 cat >>confdefs.h <<_ACEOF
15496 #define STACK_DIRECTION $ac_cv_c_stack_direction
15497 _ACEOF
15503 # The cast to long int works around a bug in the HP C Compiler
15504 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15505 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15506 # This bug is HP SR number 8606223364.
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
15508 $as_echo_n "checking size of double... " >&6; }
15509 if ${ac_cv_sizeof_double+:} false; then :
15510 $as_echo_n "(cached) " >&6
15511 else
15512 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
15514 else
15515 if test "$ac_cv_type_double" = yes; then
15516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15518 as_fn_error 77 "cannot compute sizeof (double)
15519 See \`config.log' for more details" "$LINENO" 5; }
15520 else
15521 ac_cv_sizeof_double=0
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
15527 $as_echo "$ac_cv_sizeof_double" >&6; }
15531 cat >>confdefs.h <<_ACEOF
15532 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
15533 _ACEOF
15536 # The cast to long int works around a bug in the HP C Compiler
15537 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15538 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15539 # This bug is HP SR number 8606223364.
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
15541 $as_echo_n "checking size of long double... " >&6; }
15542 if ${ac_cv_sizeof_long_double+:} false; then :
15543 $as_echo_n "(cached) " >&6
15544 else
15545 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
15547 else
15548 if test "$ac_cv_type_long_double" = yes; then
15549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15551 as_fn_error 77 "cannot compute sizeof (long double)
15552 See \`config.log' for more details" "$LINENO" 5; }
15553 else
15554 ac_cv_sizeof_long_double=0
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
15560 $as_echo "$ac_cv_sizeof_long_double" >&6; }
15564 cat >>confdefs.h <<_ACEOF
15565 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
15566 _ACEOF
15570 # Also AC_SUBST this variable for ffi.h.
15571 if test -z "$HAVE_LONG_DOUBLE"; then
15572 HAVE_LONG_DOUBLE=0
15573 if test $ac_cv_sizeof_long_double != 0; then
15574 if test $HAVE_LONG_DOUBLE_VARIANT != 0; then
15576 $as_echo "#define HAVE_LONG_DOUBLE_VARIANT 1" >>confdefs.h
15578 HAVE_LONG_DOUBLE=1
15579 else
15580 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
15581 HAVE_LONG_DOUBLE=1
15583 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15593 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15594 if ${ac_cv_c_bigendian+:} false; then :
15595 $as_echo_n "(cached) " >&6
15596 else
15597 ac_cv_c_bigendian=unknown
15598 # See if we're dealing with a universal compiler.
15599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15600 /* end confdefs.h. */
15601 #ifndef __APPLE_CC__
15602 not a universal capable compiler
15603 #endif
15604 typedef int dummy;
15606 _ACEOF
15607 if ac_fn_c_try_compile "$LINENO"; then :
15609 # Check for potential -arch flags. It is not universal unless
15610 # there are at least two -arch flags with different values.
15611 ac_arch=
15612 ac_prev=
15613 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15614 if test -n "$ac_prev"; then
15615 case $ac_word in
15616 i?86 | x86_64 | ppc | ppc64)
15617 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15618 ac_arch=$ac_word
15619 else
15620 ac_cv_c_bigendian=universal
15621 break
15624 esac
15625 ac_prev=
15626 elif test "x$ac_word" = "x-arch"; then
15627 ac_prev=arch
15629 done
15631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15632 if test $ac_cv_c_bigendian = unknown; then
15633 # See if sys/param.h defines the BYTE_ORDER macro.
15634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15635 /* end confdefs.h. */
15636 #include <sys/types.h>
15637 #include <sys/param.h>
15640 main ()
15642 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15643 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15644 && LITTLE_ENDIAN)
15645 bogus endian macros
15646 #endif
15649 return 0;
15651 _ACEOF
15652 if ac_fn_c_try_compile "$LINENO"; then :
15653 # It does; now see whether it defined to BIG_ENDIAN or not.
15654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15655 /* end confdefs.h. */
15656 #include <sys/types.h>
15657 #include <sys/param.h>
15660 main ()
15662 #if BYTE_ORDER != BIG_ENDIAN
15663 not big endian
15664 #endif
15667 return 0;
15669 _ACEOF
15670 if ac_fn_c_try_compile "$LINENO"; then :
15671 ac_cv_c_bigendian=yes
15672 else
15673 ac_cv_c_bigendian=no
15675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15679 if test $ac_cv_c_bigendian = unknown; then
15680 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15682 /* end confdefs.h. */
15683 #include <limits.h>
15686 main ()
15688 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15689 bogus endian macros
15690 #endif
15693 return 0;
15695 _ACEOF
15696 if ac_fn_c_try_compile "$LINENO"; then :
15697 # It does; now see whether it defined to _BIG_ENDIAN or not.
15698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15699 /* end confdefs.h. */
15700 #include <limits.h>
15703 main ()
15705 #ifndef _BIG_ENDIAN
15706 not big endian
15707 #endif
15710 return 0;
15712 _ACEOF
15713 if ac_fn_c_try_compile "$LINENO"; then :
15714 ac_cv_c_bigendian=yes
15715 else
15716 ac_cv_c_bigendian=no
15718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15722 if test $ac_cv_c_bigendian = unknown; then
15723 # Compile a test program.
15724 if test "$cross_compiling" = yes; then :
15725 # Try to guess by grepping values from an object file.
15726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15727 /* end confdefs.h. */
15728 short int ascii_mm[] =
15729 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15730 short int ascii_ii[] =
15731 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15732 int use_ascii (int i) {
15733 return ascii_mm[i] + ascii_ii[i];
15735 short int ebcdic_ii[] =
15736 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15737 short int ebcdic_mm[] =
15738 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15739 int use_ebcdic (int i) {
15740 return ebcdic_mm[i] + ebcdic_ii[i];
15742 extern int foo;
15745 main ()
15747 return use_ascii (foo) == use_ebcdic (foo);
15749 return 0;
15751 _ACEOF
15752 if ac_fn_c_try_compile "$LINENO"; then :
15753 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15754 ac_cv_c_bigendian=yes
15756 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15757 if test "$ac_cv_c_bigendian" = unknown; then
15758 ac_cv_c_bigendian=no
15759 else
15760 # finding both strings is unlikely to happen, but who knows?
15761 ac_cv_c_bigendian=unknown
15765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15766 else
15767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15768 /* end confdefs.h. */
15769 $ac_includes_default
15771 main ()
15774 /* Are we little or big endian? From Harbison&Steele. */
15775 union
15777 long int l;
15778 char c[sizeof (long int)];
15779 } u;
15780 u.l = 1;
15781 return u.c[sizeof (long int) - 1] == 1;
15784 return 0;
15786 _ACEOF
15787 if ac_fn_c_try_run "$LINENO"; then :
15788 ac_cv_c_bigendian=no
15789 else
15790 ac_cv_c_bigendian=yes
15792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15793 conftest.$ac_objext conftest.beam conftest.$ac_ext
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15799 $as_echo "$ac_cv_c_bigendian" >&6; }
15800 case $ac_cv_c_bigendian in #(
15801 yes)
15802 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15803 ;; #(
15805 ;; #(
15806 universal)
15808 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15810 ;; #(
15812 as_fn_error $? "unknown endianness
15813 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15814 esac
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
15818 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
15819 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
15820 $as_echo_n "(cached) " >&6
15821 else
15823 gcc_cv_as_cfi_pseudo_op=unknown
15824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15825 /* end confdefs.h. */
15826 asm (".cfi_startproc\n\t.cfi_endproc");
15828 main ()
15832 return 0;
15834 _ACEOF
15835 if ac_fn_c_try_compile "$LINENO"; then :
15836 gcc_cv_as_cfi_pseudo_op=yes
15837 else
15838 gcc_cv_as_cfi_pseudo_op=no
15840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
15844 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
15845 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
15847 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
15852 case "$TARGET" in
15853 SPARC)
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
15855 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
15856 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
15857 $as_echo_n "(cached) " >&6
15858 else
15860 save_CFLAGS="$CFLAGS"
15861 save_LDFLAGS="$LDFLAGS"
15862 CFLAGS="$CFLAGS -fpic"
15863 LDFLAGS="$LDFLAGS -shared"
15864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15865 /* end confdefs.h. */
15866 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
15868 main ()
15872 return 0;
15874 _ACEOF
15875 if ac_fn_c_try_link "$LINENO"; then :
15876 libffi_cv_as_sparc_ua_pcrel=yes
15877 else
15878 libffi_cv_as_sparc_ua_pcrel=no
15880 rm -f core conftest.err conftest.$ac_objext \
15881 conftest$ac_exeext conftest.$ac_ext
15882 CFLAGS="$save_CFLAGS"
15883 LDFLAGS="$save_LDFLAGS"
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
15886 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
15887 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
15889 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
15894 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
15895 if ${libffi_cv_as_register_pseudo_op+:} false; then :
15896 $as_echo_n "(cached) " >&6
15897 else
15899 libffi_cv_as_register_pseudo_op=unknown
15900 # Check if we have .register
15901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15902 /* end confdefs.h. */
15905 main ()
15907 asm (".register %g2, #scratch");
15909 return 0;
15911 _ACEOF
15912 if ac_fn_c_try_compile "$LINENO"; then :
15913 libffi_cv_as_register_pseudo_op=yes
15914 else
15915 libffi_cv_as_register_pseudo_op=no
15917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
15921 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
15922 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
15924 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
15929 X86*)
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15931 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15932 if ${libffi_cv_as_x86_pcrel+:} false; then :
15933 $as_echo_n "(cached) " >&6
15934 else
15936 libffi_cv_as_x86_pcrel=no
15937 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15938 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15939 libffi_cv_as_x86_pcrel=yes
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
15944 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
15945 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
15947 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15952 S390)
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler uses zarch features" >&5
15954 $as_echo_n "checking compiler uses zarch features... " >&6; }
15955 if ${libffi_cv_as_s390_zarch+:} false; then :
15956 $as_echo_n "(cached) " >&6
15957 else
15959 libffi_cv_as_s390_zarch=no
15960 echo 'void foo(void) { bar(); bar(); }' > conftest.c
15961 if $CC $CFLAGS -S conftest.c > /dev/null 2>&1; then
15962 if grep -q brasl conftest.s; then
15963 libffi_cv_as_s390_zarch=yes
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_s390_zarch" >&5
15969 $as_echo "$libffi_cv_as_s390_zarch" >&6; }
15970 if test "x$libffi_cv_as_s390_zarch" = xyes; then
15972 $as_echo "#define HAVE_AS_S390_ZARCH 1" >>confdefs.h
15976 esac
15978 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
15979 # Check whether --enable-pax_emutramp was given.
15980 if test "${enable_pax_emutramp+set}" = set; then :
15981 enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
15983 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
15989 FFI_EXEC_TRAMPOLINE_TABLE=0
15990 case "$target" in
15991 *arm*-apple-darwin* | aarch64-apple-darwin*)
15992 FFI_EXEC_TRAMPOLINE_TABLE=1
15994 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
15997 *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
15999 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
16002 esac
16003 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
16004 FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
16005 FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
16006 else
16007 FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
16008 FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
16013 if test x$TARGET = xX86_64; then
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking toolchain supports unwind section type" >&5
16015 $as_echo_n "checking toolchain supports unwind section type... " >&6; }
16016 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
16017 $as_echo_n "(cached) " >&6
16018 else
16020 cat > conftest1.s << EOF
16021 .text
16022 .globl foo
16023 foo:
16024 jmp bar
16025 .section .eh_frame,"a",@unwind
16026 bar:
16029 cat > conftest2.c << EOF
16030 extern void foo();
16031 int main(){foo();}
16034 libffi_cv_as_x86_64_unwind_section_type=no
16035 # we ensure that we can compile _and_ link an assembly file containing an @unwind section
16036 # since the compiler can support it and not the linker (ie old binutils)
16037 if $CC -Wa,--fatal-warnings $CFLAGS -c conftest1.s > /dev/null 2>&1 && \
16038 $CC conftest2.c conftest1.o > /dev/null 2>&1 ; then
16039 libffi_cv_as_x86_64_unwind_section_type=yes
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
16044 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
16045 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
16047 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
16052 if test "x$GCC" = "xyes"; then
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
16054 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
16055 if ${libffi_cv_ro_eh_frame+:} false; then :
16056 $as_echo_n "(cached) " >&6
16057 else
16059 libffi_cv_ro_eh_frame=no
16060 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
16061 if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c > /dev/null 2>&1; then
16062 objdump -h conftest.o > conftest.dump 2>&1
16063 libffi_eh_frame_line=`grep -n eh_frame conftest.dump | cut -d: -f 1`
16064 if test "x$libffi_eh_frame_line" != "x"; then
16065 libffi_test_line=`expr $libffi_eh_frame_line + 1`p
16066 sed -n $libffi_test_line conftest.dump > conftest.line
16067 if grep READONLY conftest.line > /dev/null; then
16068 libffi_cv_ro_eh_frame=yes
16072 rm -f conftest.*
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
16076 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
16077 if test "x$libffi_cv_ro_eh_frame" = xyes; then
16079 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
16082 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
16084 else
16086 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
16091 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
16092 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
16093 $as_echo_n "(cached) " >&6
16094 else
16096 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
16097 libffi_cv_hidden_visibility_attribute=no
16098 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
16099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16100 (eval $ac_try) 2>&5
16101 ac_status=$?
16102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16103 test $ac_status = 0; }; }; then
16104 if grep '\.hidden.*foo' conftest.s >/dev/null; then
16105 libffi_cv_hidden_visibility_attribute=yes
16108 rm -f conftest.*
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
16112 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
16113 if test $libffi_cv_hidden_visibility_attribute = yes; then
16115 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
16126 TARGET_OBJ=
16127 for i in $SOURCES; do
16128 TARGET_OBJ="${TARGET_OBJ} src/${TARGETDIR}/"`echo $i | sed 's/[cS]$/lo/'`
16129 done
16135 # Check whether --enable-debug was given.
16136 if test "${enable_debug+set}" = set; then :
16137 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
16139 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
16144 if test "$enable_debug" = "yes"; then
16145 FFI_DEBUG_TRUE=
16146 FFI_DEBUG_FALSE='#'
16147 else
16148 FFI_DEBUG_TRUE='#'
16149 FFI_DEBUG_FALSE=
16153 # Check whether --enable-structs was given.
16154 if test "${enable_structs+set}" = set; then :
16155 enableval=$enable_structs; if test "$enable_structs" = "no"; then
16157 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
16162 if test "$enable_debug" = "yes"; then
16163 FFI_DEBUG_TRUE=
16164 FFI_DEBUG_FALSE='#'
16165 else
16166 FFI_DEBUG_TRUE='#'
16167 FFI_DEBUG_FALSE=
16171 # Check whether --enable-raw-api was given.
16172 if test "${enable_raw_api+set}" = set; then :
16173 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
16175 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
16181 # Check whether --enable-purify-safety was given.
16182 if test "${enable_purify_safety+set}" = set; then :
16183 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
16185 $as_echo "#define USING_PURIFY 1" >>confdefs.h
16192 # Check whether --with-toolexeclibdir was given.
16193 if test "${with_toolexeclibdir+set}" = set; then :
16194 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
16198 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
16200 esac
16201 else
16202 with_toolexeclibdir=no
16207 if test -n "$with_cross_host" &&
16208 test x"$with_cross_host" != x"no"; then
16209 toolexecdir='$(exec_prefix)/$(target_alias)'
16210 case ${with_toolexeclibdir} in
16212 toolexeclibdir='$(toolexecdir)/lib'
16215 toolexeclibdir=${with_toolexeclibdir}
16217 esac
16218 else
16219 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16220 toolexeclibdir='$(libdir)'
16222 multi_os_directory=`$CC -print-multi-os-directory`
16223 case $multi_os_directory in
16224 .) ;; # Avoid trailing /.
16225 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
16226 esac
16230 if test "${multilib}" = "yes"; then
16231 multilib_arg="--enable-multilib"
16232 else
16233 multilib_arg=
16236 # Check linker support.
16239 # Check whether --with-gnu-ld was given.
16240 if test "${with_gnu_ld+set}" = set; then :
16241 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16242 else
16243 with_gnu_ld=no
16246 ac_prog=ld
16247 if test "$GCC" = yes; then
16248 # Check if gcc -print-prog-name=ld gives a path.
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16250 $as_echo_n "checking for ld used by $CC... " >&6; }
16251 case $host in
16252 *-*-mingw*)
16253 # gcc leaves a trailing carriage return which upsets mingw
16254 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16256 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16257 esac
16258 case $ac_prog in
16259 # Accept absolute paths.
16260 [\\/]* | ?:[\\/]*)
16261 re_direlt='/[^/][^/]*/\.\./'
16262 # Canonicalize the pathname of ld
16263 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16264 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16265 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16266 done
16267 test -z "$LD" && LD="$ac_prog"
16270 # If it fails, then pretend we aren't using GCC.
16271 ac_prog=ld
16274 # If it is relative, then search for the first ld in PATH.
16275 with_gnu_ld=unknown
16277 esac
16278 elif test "$with_gnu_ld" = yes; then
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16280 $as_echo_n "checking for GNU ld... " >&6; }
16281 else
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16283 $as_echo_n "checking for non-GNU ld... " >&6; }
16285 if ${lt_cv_path_LD+:} false; then :
16286 $as_echo_n "(cached) " >&6
16287 else
16288 if test -z "$LD"; then
16289 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16290 for ac_dir in $PATH; do
16291 IFS="$lt_save_ifs"
16292 test -z "$ac_dir" && ac_dir=.
16293 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16294 lt_cv_path_LD="$ac_dir/$ac_prog"
16295 # Check to see if the program is GNU ld. I'd rather use --version,
16296 # but apparently some variants of GNU ld only accept -v.
16297 # Break only if it was the GNU/non-GNU ld that we prefer.
16298 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16299 *GNU* | *'with BFD'*)
16300 test "$with_gnu_ld" != no && break
16303 test "$with_gnu_ld" != yes && break
16305 esac
16307 done
16308 IFS="$lt_save_ifs"
16309 else
16310 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16314 LD="$lt_cv_path_LD"
16315 if test -n "$LD"; then
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16317 $as_echo "$LD" >&6; }
16318 else
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16320 $as_echo "no" >&6; }
16322 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16324 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16325 if ${lt_cv_prog_gnu_ld+:} false; then :
16326 $as_echo_n "(cached) " >&6
16327 else
16328 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16329 case `$LD -v 2>&1 </dev/null` in
16330 *GNU* | *'with BFD'*)
16331 lt_cv_prog_gnu_ld=yes
16334 lt_cv_prog_gnu_ld=no
16336 esac
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16339 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16340 with_gnu_ld=$lt_cv_prog_gnu_ld
16348 # If we're not using GNU ld, then there's no point in even trying these
16349 # tests. Check for that first. We should have already tested for gld
16350 # by now (in libtool), but require it now just to be safe...
16351 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16352 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16356 # The name set by libtool depends on the version of libtool. Shame on us
16357 # for depending on an impl detail, but c'est la vie. Older versions used
16358 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16359 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16360 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16361 # set (hence we're using an older libtool), then set it.
16362 if test x${with_gnu_ld+set} != xset; then
16363 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16364 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16365 with_gnu_ld=no
16366 else
16367 with_gnu_ld=$ac_cv_prog_gnu_ld
16371 # Start by getting the version number. I think the libtool test already
16372 # does some of this, but throws away the result.
16373 libat_ld_is_gold=no
16374 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16375 libat_ld_is_gold=yes
16378 ldver=`$LD --version 2>/dev/null |
16379 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
16381 libat_gnu_ld_version=`echo $ldver | \
16382 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16384 # Set --gc-sections.
16385 if test "$with_gnu_ld" = "notbroken"; then
16386 # GNU ld it is! Joy and bunny rabbits!
16388 # All these tests are for C++; save the language and the compiler flags.
16389 # Need to do this so that g++ won't try to link in libstdc++
16390 ac_test_CFLAGS="${CFLAGS+set}"
16391 ac_save_CFLAGS="$CFLAGS"
16392 CFLAGS='-x c++ -Wl,--gc-sections'
16394 # Check for -Wl,--gc-sections
16395 # XXX This test is broken at the moment, as symbols required for linking
16396 # are now in libsupc++ (not built yet). In addition, this test has
16397 # cored on solaris in the past. In addition, --gc-sections doesn't
16398 # really work at the moment (keeps on discarding used sections, first
16399 # .eh_frame and now some of the glibc sections for iconv).
16400 # Bzzzzt. Thanks for playing, maybe next time.
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16402 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16403 if test "$cross_compiling" = yes; then :
16404 ac_sectionLDflags=yes
16405 else
16406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16407 /* end confdefs.h. */
16409 int main(void)
16411 try { throw 1; }
16412 catch (...) { };
16413 return 0;
16416 _ACEOF
16417 if ac_fn_c_try_run "$LINENO"; then :
16418 ac_sectionLDflags=yes
16419 else
16420 ac_sectionLDflags=no
16422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16423 conftest.$ac_objext conftest.beam conftest.$ac_ext
16426 if test "$ac_test_CFLAGS" = set; then
16427 CFLAGS="$ac_save_CFLAGS"
16428 else
16429 # this is the suspicious part
16430 CFLAGS=''
16432 if test "$ac_sectionLDflags" = "yes"; then
16433 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16436 $as_echo "$ac_sectionLDflags" >&6; }
16439 # Set linker optimization flags.
16440 if test x"$with_gnu_ld" = x"yes"; then
16441 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16449 # Check whether --enable-symvers was given.
16450 if test "${enable_symvers+set}" = set; then :
16451 enableval=$enable_symvers;
16452 case "$enableval" in
16453 yes|no|gnu*|sun) ;;
16454 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16455 esac
16457 else
16458 enable_symvers=yes
16463 # If we never went through the LIBAT_CHECK_LINKER_FEATURES macro, then we
16464 # don't know enough about $LD to do tricks...
16467 # Turn a 'yes' into a suitable default.
16468 if test x$enable_symvers = xyes ; then
16469 # FIXME The following test is too strict, in theory.
16470 if test $enable_shared = no || test "x$LD" = x; then
16471 enable_symvers=no
16472 else
16473 if test $with_gnu_ld = yes ; then
16474 enable_symvers=gnu
16475 else
16476 case ${target_os} in
16477 # Sun symbol versioning exists since Solaris 2.5.
16478 solaris2.[5-9]* | solaris2.1[0-9]*)
16479 enable_symvers=sun ;;
16481 enable_symvers=no ;;
16482 esac
16487 # Check if 'sun' was requested on non-Solaris 2 platforms.
16488 if test x$enable_symvers = xsun ; then
16489 case ${target_os} in
16490 solaris2*)
16491 # All fine.
16494 # Unlikely to work.
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16496 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16498 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16500 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16501 enable_symvers=no
16503 esac
16506 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16507 if test $enable_symvers != no; then
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16509 $as_echo_n "checking for shared libgcc... " >&6; }
16510 ac_save_CFLAGS="$CFLAGS"
16511 CFLAGS=' -lgcc_s'
16512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16513 /* end confdefs.h. */
16516 main ()
16518 return 0;
16520 return 0;
16522 _ACEOF
16523 if ac_fn_c_try_link "$LINENO"; then :
16524 libat_shared_libgcc=yes
16525 else
16526 libat_shared_libgcc=no
16528 rm -f core conftest.err conftest.$ac_objext \
16529 conftest$ac_exeext conftest.$ac_ext
16530 CFLAGS="$ac_save_CFLAGS"
16531 if test $libat_shared_libgcc = no; then
16532 cat > conftest.c <<EOF
16533 int main (void) { return 0; }
16535 libat_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16536 -shared -shared-libgcc -o conftest.so \
16537 conftest.c -v 2>&1 >/dev/null \
16538 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16539 rm -f conftest.c conftest.so
16540 if test x${libat_libgcc_s_suffix+set} = xset; then
16541 CFLAGS=" -lgcc_s$libat_libgcc_s_suffix"
16542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16543 /* end confdefs.h. */
16546 main ()
16548 return 0;
16550 return 0;
16552 _ACEOF
16553 if ac_fn_c_try_link "$LINENO"; then :
16554 libat_shared_libgcc=yes
16556 rm -f core conftest.err conftest.$ac_objext \
16557 conftest$ac_exeext conftest.$ac_ext
16558 CFLAGS="$ac_save_CFLAGS"
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5
16562 $as_echo "$libat_shared_libgcc" >&6; }
16565 # For GNU ld, we need at least this version. The format is described in
16566 # LIBAT_CHECK_LINKER_FEATURES above.
16567 libat_min_gnu_ld_version=21400
16568 # XXXXXXXXXXX libat_gnu_ld_version=21390
16570 # Check to see if unspecified "yes" value can win, given results above.
16571 # Change "yes" into either "no" or a style name.
16572 if test $enable_symvers != no && test $libat_shared_libgcc = yes; then
16573 if test $with_gnu_ld = yes; then
16574 if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
16575 enable_symvers=gnu
16576 elif test $libat_ld_is_gold = yes ; then
16577 enable_symvers=gnu
16578 else
16579 # The right tools, the right setup, but too old. Fallbacks?
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
16581 $as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;}
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16583 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16585 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5
16587 $as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;}
16588 if test $libat_gnu_ld_version -ge 21200 ; then
16589 # Globbing fix is present, proper block support is not.
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16591 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16592 enable_symvers=no
16593 else
16594 # 2.11 or older.
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16596 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16597 enable_symvers=no
16600 elif test $enable_symvers = sun; then
16601 : All interesting versions of Sun ld support sun style symbol versioning.
16602 else
16603 # just fail for now
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16605 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16607 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16609 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16611 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16612 enable_symvers=no
16615 if test $enable_symvers = gnu; then
16617 $as_echo "#define LIBAT_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16621 if test $enable_symvers != no; then
16622 LIBAT_BUILD_VERSIONED_SHLIB_TRUE=
16623 LIBAT_BUILD_VERSIONED_SHLIB_FALSE='#'
16624 else
16625 LIBAT_BUILD_VERSIONED_SHLIB_TRUE='#'
16626 LIBAT_BUILD_VERSIONED_SHLIB_FALSE=
16629 if test $enable_symvers = gnu; then
16630 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16631 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16632 else
16633 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16634 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16637 if test $enable_symvers = sun; then
16638 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16639 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16640 else
16641 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16642 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16646 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16649 # Determine what GCC version number to use in filesystem paths.
16651 get_gcc_base_ver="cat"
16653 # Check whether --with-gcc-major-version-only was given.
16654 if test "${with_gcc_major_version_only+set}" = set; then :
16655 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
16656 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
16664 ac_config_commands="$ac_config_commands include"
16666 ac_config_commands="$ac_config_commands src"
16669 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
16672 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
16675 cat >confcache <<\_ACEOF
16676 # This file is a shell script that caches the results of configure
16677 # tests run on this system so they can be shared between configure
16678 # scripts and configure runs, see configure's option --config-cache.
16679 # It is not useful on other systems. If it contains results you don't
16680 # want to keep, you may remove or edit it.
16682 # config.status only pays attention to the cache file if you give it
16683 # the --recheck option to rerun configure.
16685 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16686 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16687 # following values.
16689 _ACEOF
16691 # The following way of writing the cache mishandles newlines in values,
16692 # but we know of no workaround that is simple, portable, and efficient.
16693 # So, we kill variables containing newlines.
16694 # Ultrix sh set writes to stderr and can't be redirected directly,
16695 # and sets the high bit in the cache file unless we assign to the vars.
16697 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16698 eval ac_val=\$$ac_var
16699 case $ac_val in #(
16700 *${as_nl}*)
16701 case $ac_var in #(
16702 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16703 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16704 esac
16705 case $ac_var in #(
16706 _ | IFS | as_nl) ;; #(
16707 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16708 *) { eval $ac_var=; unset $ac_var;} ;;
16709 esac ;;
16710 esac
16711 done
16713 (set) 2>&1 |
16714 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16715 *${as_nl}ac_space=\ *)
16716 # `set' does not quote correctly, so add quotes: double-quote
16717 # substitution turns \\\\ into \\, and sed turns \\ into \.
16718 sed -n \
16719 "s/'/'\\\\''/g;
16720 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16721 ;; #(
16723 # `set' quotes correctly as required by POSIX, so do not add quotes.
16724 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16726 esac |
16727 sort
16729 sed '
16730 /^ac_cv_env_/b end
16731 t clear
16732 :clear
16733 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16734 t end
16735 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16736 :end' >>confcache
16737 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16738 if test -w "$cache_file"; then
16739 if test "x$cache_file" != "x/dev/null"; then
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16741 $as_echo "$as_me: updating cache $cache_file" >&6;}
16742 if test ! -f "$cache_file" || test -h "$cache_file"; then
16743 cat confcache >"$cache_file"
16744 else
16745 case $cache_file in #(
16746 */* | ?:*)
16747 mv -f confcache "$cache_file"$$ &&
16748 mv -f "$cache_file"$$ "$cache_file" ;; #(
16750 mv -f confcache "$cache_file" ;;
16751 esac
16754 else
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16756 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16759 rm -f confcache
16761 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16762 # Let make expand exec_prefix.
16763 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16765 DEFS=-DHAVE_CONFIG_H
16767 ac_libobjs=
16768 ac_ltlibobjs=
16770 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16771 # 1. Remove the extension, and $U if already installed.
16772 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16773 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16774 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16775 # will be set to the directory where LIBOBJS objects are built.
16776 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16777 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16778 done
16779 LIBOBJS=$ac_libobjs
16781 LTLIBOBJS=$ac_ltlibobjs
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16785 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16786 if test -n "$am_sleep_pid"; then
16787 # Hide warnings about reused PIDs.
16788 wait $am_sleep_pid 2>/dev/null
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16791 $as_echo "done" >&6; }
16792 if test -n "$EXEEXT"; then
16793 am__EXEEXT_TRUE=
16794 am__EXEEXT_FALSE='#'
16795 else
16796 am__EXEEXT_TRUE='#'
16797 am__EXEEXT_FALSE=
16800 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16801 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
16802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16804 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16805 as_fn_error $? "conditional \"GENINSRC\" was never defined.
16806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16808 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16809 as_fn_error $? "conditional \"AMDEP\" was never defined.
16810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16812 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16813 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16816 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16817 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16820 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16821 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
16822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16824 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16825 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16828 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16829 as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
16830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16833 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
16834 as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
16835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16837 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
16838 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
16839 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16841 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
16842 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
16843 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16845 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_FALSE}"; then
16846 as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB\" was never defined.
16847 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16849 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
16850 as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
16851 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16853 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
16854 as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
16855 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16858 : "${CONFIG_STATUS=./config.status}"
16859 ac_write_fail=0
16860 ac_clean_files_save=$ac_clean_files
16861 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16863 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16864 as_write_fail=0
16865 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16866 #! $SHELL
16867 # Generated by $as_me.
16868 # Run this file to recreate the current configuration.
16869 # Compiler output produced by configure, useful for debugging
16870 # configure, is in config.log if it exists.
16872 debug=false
16873 ac_cs_recheck=false
16874 ac_cs_silent=false
16876 SHELL=\${CONFIG_SHELL-$SHELL}
16877 export SHELL
16878 _ASEOF
16879 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16880 ## -------------------- ##
16881 ## M4sh Initialization. ##
16882 ## -------------------- ##
16884 # Be more Bourne compatible
16885 DUALCASE=1; export DUALCASE # for MKS sh
16886 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16887 emulate sh
16888 NULLCMD=:
16889 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16890 # is contrary to our usage. Disable this feature.
16891 alias -g '${1+"$@"}'='"$@"'
16892 setopt NO_GLOB_SUBST
16893 else
16894 case `(set -o) 2>/dev/null` in #(
16895 *posix*) :
16896 set -o posix ;; #(
16897 *) :
16899 esac
16903 as_nl='
16905 export as_nl
16906 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16907 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16908 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16909 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16910 # Prefer a ksh shell builtin over an external printf program on Solaris,
16911 # but without wasting forks for bash or zsh.
16912 if test -z "$BASH_VERSION$ZSH_VERSION" \
16913 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16914 as_echo='print -r --'
16915 as_echo_n='print -rn --'
16916 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16917 as_echo='printf %s\n'
16918 as_echo_n='printf %s'
16919 else
16920 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16921 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16922 as_echo_n='/usr/ucb/echo -n'
16923 else
16924 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16925 as_echo_n_body='eval
16926 arg=$1;
16927 case $arg in #(
16928 *"$as_nl"*)
16929 expr "X$arg" : "X\\(.*\\)$as_nl";
16930 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16931 esac;
16932 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16934 export as_echo_n_body
16935 as_echo_n='sh -c $as_echo_n_body as_echo'
16937 export as_echo_body
16938 as_echo='sh -c $as_echo_body as_echo'
16941 # The user is always right.
16942 if test "${PATH_SEPARATOR+set}" != set; then
16943 PATH_SEPARATOR=:
16944 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16945 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16946 PATH_SEPARATOR=';'
16951 # IFS
16952 # We need space, tab and new line, in precisely that order. Quoting is
16953 # there to prevent editors from complaining about space-tab.
16954 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16955 # splitting by setting IFS to empty value.)
16956 IFS=" "" $as_nl"
16958 # Find who we are. Look in the path if we contain no directory separator.
16959 as_myself=
16960 case $0 in #((
16961 *[\\/]* ) as_myself=$0 ;;
16962 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16963 for as_dir in $PATH
16965 IFS=$as_save_IFS
16966 test -z "$as_dir" && as_dir=.
16967 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16968 done
16969 IFS=$as_save_IFS
16972 esac
16973 # We did not find ourselves, most probably we were run as `sh COMMAND'
16974 # in which case we are not to be found in the path.
16975 if test "x$as_myself" = x; then
16976 as_myself=$0
16978 if test ! -f "$as_myself"; then
16979 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16980 exit 1
16983 # Unset variables that we do not need and which cause bugs (e.g. in
16984 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16985 # suppresses any "Segmentation fault" message there. '((' could
16986 # trigger a bug in pdksh 5.2.14.
16987 for as_var in BASH_ENV ENV MAIL MAILPATH
16988 do eval test x\${$as_var+set} = xset \
16989 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16990 done
16991 PS1='$ '
16992 PS2='> '
16993 PS4='+ '
16995 # NLS nuisances.
16996 LC_ALL=C
16997 export LC_ALL
16998 LANGUAGE=C
16999 export LANGUAGE
17001 # CDPATH.
17002 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17005 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17006 # ----------------------------------------
17007 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17008 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17009 # script with STATUS, using 1 if that was 0.
17010 as_fn_error ()
17012 as_status=$1; test $as_status -eq 0 && as_status=1
17013 if test "$4"; then
17014 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17015 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17017 $as_echo "$as_me: error: $2" >&2
17018 as_fn_exit $as_status
17019 } # as_fn_error
17022 # as_fn_set_status STATUS
17023 # -----------------------
17024 # Set $? to STATUS, without forking.
17025 as_fn_set_status ()
17027 return $1
17028 } # as_fn_set_status
17030 # as_fn_exit STATUS
17031 # -----------------
17032 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17033 as_fn_exit ()
17035 set +e
17036 as_fn_set_status $1
17037 exit $1
17038 } # as_fn_exit
17040 # as_fn_unset VAR
17041 # ---------------
17042 # Portably unset VAR.
17043 as_fn_unset ()
17045 { eval $1=; unset $1;}
17047 as_unset=as_fn_unset
17048 # as_fn_append VAR VALUE
17049 # ----------------------
17050 # Append the text in VALUE to the end of the definition contained in VAR. Take
17051 # advantage of any shell optimizations that allow amortized linear growth over
17052 # repeated appends, instead of the typical quadratic growth present in naive
17053 # implementations.
17054 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17055 eval 'as_fn_append ()
17057 eval $1+=\$2
17059 else
17060 as_fn_append ()
17062 eval $1=\$$1\$2
17064 fi # as_fn_append
17066 # as_fn_arith ARG...
17067 # ------------------
17068 # Perform arithmetic evaluation on the ARGs, and store the result in the
17069 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17070 # must be portable across $(()) and expr.
17071 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17072 eval 'as_fn_arith ()
17074 as_val=$(( $* ))
17076 else
17077 as_fn_arith ()
17079 as_val=`expr "$@" || test $? -eq 1`
17081 fi # as_fn_arith
17084 if expr a : '\(a\)' >/dev/null 2>&1 &&
17085 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17086 as_expr=expr
17087 else
17088 as_expr=false
17091 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17092 as_basename=basename
17093 else
17094 as_basename=false
17097 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17098 as_dirname=dirname
17099 else
17100 as_dirname=false
17103 as_me=`$as_basename -- "$0" ||
17104 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17105 X"$0" : 'X\(//\)$' \| \
17106 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17107 $as_echo X/"$0" |
17108 sed '/^.*\/\([^/][^/]*\)\/*$/{
17109 s//\1/
17112 /^X\/\(\/\/\)$/{
17113 s//\1/
17116 /^X\/\(\/\).*/{
17117 s//\1/
17120 s/.*/./; q'`
17122 # Avoid depending upon Character Ranges.
17123 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17124 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17125 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17126 as_cr_digits='0123456789'
17127 as_cr_alnum=$as_cr_Letters$as_cr_digits
17129 ECHO_C= ECHO_N= ECHO_T=
17130 case `echo -n x` in #(((((
17131 -n*)
17132 case `echo 'xy\c'` in
17133 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17134 xy) ECHO_C='\c';;
17135 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17136 ECHO_T=' ';;
17137 esac;;
17139 ECHO_N='-n';;
17140 esac
17142 rm -f conf$$ conf$$.exe conf$$.file
17143 if test -d conf$$.dir; then
17144 rm -f conf$$.dir/conf$$.file
17145 else
17146 rm -f conf$$.dir
17147 mkdir conf$$.dir 2>/dev/null
17149 if (echo >conf$$.file) 2>/dev/null; then
17150 if ln -s conf$$.file conf$$ 2>/dev/null; then
17151 as_ln_s='ln -s'
17152 # ... but there are two gotchas:
17153 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17154 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17155 # In both cases, we have to default to `cp -pR'.
17156 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17157 as_ln_s='cp -pR'
17158 elif ln conf$$.file conf$$ 2>/dev/null; then
17159 as_ln_s=ln
17160 else
17161 as_ln_s='cp -pR'
17163 else
17164 as_ln_s='cp -pR'
17166 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17167 rmdir conf$$.dir 2>/dev/null
17170 # as_fn_mkdir_p
17171 # -------------
17172 # Create "$as_dir" as a directory, including parents if necessary.
17173 as_fn_mkdir_p ()
17176 case $as_dir in #(
17177 -*) as_dir=./$as_dir;;
17178 esac
17179 test -d "$as_dir" || eval $as_mkdir_p || {
17180 as_dirs=
17181 while :; do
17182 case $as_dir in #(
17183 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17184 *) as_qdir=$as_dir;;
17185 esac
17186 as_dirs="'$as_qdir' $as_dirs"
17187 as_dir=`$as_dirname -- "$as_dir" ||
17188 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17189 X"$as_dir" : 'X\(//\)[^/]' \| \
17190 X"$as_dir" : 'X\(//\)$' \| \
17191 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17192 $as_echo X"$as_dir" |
17193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17194 s//\1/
17197 /^X\(\/\/\)[^/].*/{
17198 s//\1/
17201 /^X\(\/\/\)$/{
17202 s//\1/
17205 /^X\(\/\).*/{
17206 s//\1/
17209 s/.*/./; q'`
17210 test -d "$as_dir" && break
17211 done
17212 test -z "$as_dirs" || eval "mkdir $as_dirs"
17213 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17216 } # as_fn_mkdir_p
17217 if mkdir -p . 2>/dev/null; then
17218 as_mkdir_p='mkdir -p "$as_dir"'
17219 else
17220 test -d ./-p && rmdir ./-p
17221 as_mkdir_p=false
17225 # as_fn_executable_p FILE
17226 # -----------------------
17227 # Test if FILE is an executable regular file.
17228 as_fn_executable_p ()
17230 test -f "$1" && test -x "$1"
17231 } # as_fn_executable_p
17232 as_test_x='test -x'
17233 as_executable_p=as_fn_executable_p
17235 # Sed expression to map a string onto a valid CPP name.
17236 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17238 # Sed expression to map a string onto a valid variable name.
17239 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17242 exec 6>&1
17243 ## ----------------------------------- ##
17244 ## Main body of $CONFIG_STATUS script. ##
17245 ## ----------------------------------- ##
17246 _ASEOF
17247 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17250 # Save the log message, to keep $0 and so on meaningful, and to
17251 # report actual input values of CONFIG_FILES etc. instead of their
17252 # values after options handling.
17253 ac_log="
17254 This file was extended by libffi $as_me 3.99999, which was
17255 generated by GNU Autoconf 2.69. Invocation command line was
17257 CONFIG_FILES = $CONFIG_FILES
17258 CONFIG_HEADERS = $CONFIG_HEADERS
17259 CONFIG_LINKS = $CONFIG_LINKS
17260 CONFIG_COMMANDS = $CONFIG_COMMANDS
17261 $ $0 $@
17263 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17266 _ACEOF
17268 case $ac_config_files in *"
17269 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17270 esac
17272 case $ac_config_headers in *"
17273 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17274 esac
17277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17278 # Files that config.status was made for.
17279 config_files="$ac_config_files"
17280 config_headers="$ac_config_headers"
17281 config_links="$ac_config_links"
17282 config_commands="$ac_config_commands"
17284 _ACEOF
17286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17287 ac_cs_usage="\
17288 \`$as_me' instantiates files and other configuration actions
17289 from templates according to the current configuration. Unless the files
17290 and actions are specified as TAGs, all are instantiated by default.
17292 Usage: $0 [OPTION]... [TAG]...
17294 -h, --help print this help, then exit
17295 -V, --version print version number and configuration settings, then exit
17296 --config print configuration, then exit
17297 -q, --quiet, --silent
17298 do not print progress messages
17299 -d, --debug don't remove temporary files
17300 --recheck update $as_me by reconfiguring in the same conditions
17301 --file=FILE[:TEMPLATE]
17302 instantiate the configuration file FILE
17303 --header=FILE[:TEMPLATE]
17304 instantiate the configuration header FILE
17306 Configuration files:
17307 $config_files
17309 Configuration headers:
17310 $config_headers
17312 Configuration links:
17313 $config_links
17315 Configuration commands:
17316 $config_commands
17318 Report bugs to <http://github.com/atgreen/libffi/issues>."
17320 _ACEOF
17321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17322 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17323 ac_cs_version="\\
17324 libffi config.status 3.99999
17325 configured by $0, generated by GNU Autoconf 2.69,
17326 with options \\"\$ac_cs_config\\"
17328 Copyright (C) 2012 Free Software Foundation, Inc.
17329 This config.status script is free software; the Free Software Foundation
17330 gives unlimited permission to copy, distribute and modify it."
17332 ac_pwd='$ac_pwd'
17333 srcdir='$srcdir'
17334 INSTALL='$INSTALL'
17335 MKDIR_P='$MKDIR_P'
17336 AWK='$AWK'
17337 test -n "\$AWK" || AWK=awk
17338 _ACEOF
17340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17341 # The default lists apply if the user does not specify any file.
17342 ac_need_defaults=:
17343 while test $# != 0
17345 case $1 in
17346 --*=?*)
17347 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17348 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17349 ac_shift=:
17351 --*=)
17352 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17353 ac_optarg=
17354 ac_shift=:
17357 ac_option=$1
17358 ac_optarg=$2
17359 ac_shift=shift
17361 esac
17363 case $ac_option in
17364 # Handling of the options.
17365 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17366 ac_cs_recheck=: ;;
17367 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17368 $as_echo "$ac_cs_version"; exit ;;
17369 --config | --confi | --conf | --con | --co | --c )
17370 $as_echo "$ac_cs_config"; exit ;;
17371 --debug | --debu | --deb | --de | --d | -d )
17372 debug=: ;;
17373 --file | --fil | --fi | --f )
17374 $ac_shift
17375 case $ac_optarg in
17376 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17377 '') as_fn_error $? "missing file argument" ;;
17378 esac
17379 as_fn_append CONFIG_FILES " '$ac_optarg'"
17380 ac_need_defaults=false;;
17381 --header | --heade | --head | --hea )
17382 $ac_shift
17383 case $ac_optarg in
17384 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17385 esac
17386 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17387 ac_need_defaults=false;;
17388 --he | --h)
17389 # Conflict between --help and --header
17390 as_fn_error $? "ambiguous option: \`$1'
17391 Try \`$0 --help' for more information.";;
17392 --help | --hel | -h )
17393 $as_echo "$ac_cs_usage"; exit ;;
17394 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17395 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17396 ac_cs_silent=: ;;
17398 # This is an error.
17399 -*) as_fn_error $? "unrecognized option: \`$1'
17400 Try \`$0 --help' for more information." ;;
17402 *) as_fn_append ac_config_targets " $1"
17403 ac_need_defaults=false ;;
17405 esac
17406 shift
17407 done
17409 ac_configure_extra_args=
17411 if $ac_cs_silent; then
17412 exec 6>/dev/null
17413 ac_configure_extra_args="$ac_configure_extra_args --silent"
17416 _ACEOF
17417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17418 if \$ac_cs_recheck; then
17419 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17420 shift
17421 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17422 CONFIG_SHELL='$SHELL'
17423 export CONFIG_SHELL
17424 exec "\$@"
17427 _ACEOF
17428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17429 exec 5>>config.log
17431 echo
17432 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17433 ## Running $as_me. ##
17434 _ASBOX
17435 $as_echo "$ac_log"
17436 } >&5
17438 _ACEOF
17439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17441 # INIT-COMMANDS
17444 srcdir="$srcdir"
17445 host="$host"
17446 target="$target"
17447 with_multisubdir="$with_multisubdir"
17448 with_multisrctop="$with_multisrctop"
17449 with_target_subdir="$with_target_subdir"
17450 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17451 multi_basedir="$multi_basedir"
17452 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17453 CC="$CC"
17454 CXX="$CXX"
17455 GFORTRAN="$GFORTRAN"
17456 GDC="$GDC"
17457 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17460 # The HP-UX ksh and POSIX shell print the target directory to stdout
17461 # if CDPATH is set.
17462 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17464 sed_quote_subst='$sed_quote_subst'
17465 double_quote_subst='$double_quote_subst'
17466 delay_variable_subst='$delay_variable_subst'
17467 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17468 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17469 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17470 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17471 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17472 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17473 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17474 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17475 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17476 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17477 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17478 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17479 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17480 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17481 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17482 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17483 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17484 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17485 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17486 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17487 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17488 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17489 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17490 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17491 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17492 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17493 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17494 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17495 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17496 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17497 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17498 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17499 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17500 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17501 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17502 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17503 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17504 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17505 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17506 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17507 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17508 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17509 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17510 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17511 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17512 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17513 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17514 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17515 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"`'
17516 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17517 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17518 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17519 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17520 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17521 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17522 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17523 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17524 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17525 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17526 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17527 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17528 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17529 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17530 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17531 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17532 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17533 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17534 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17535 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17536 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17537 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17538 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17539 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17540 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17541 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17542 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17543 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17544 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17545 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17546 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17547 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17548 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17549 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17550 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17551 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17552 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17553 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17554 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17555 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17556 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17557 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17558 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17559 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17560 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17561 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17562 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17563 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17564 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17565 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17566 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17567 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17568 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17569 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17570 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17571 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17572 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17573 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17574 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17575 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17576 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17577 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17578 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17579 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17580 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17581 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17582 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17583 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17584 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17585 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17586 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17587 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17588 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17589 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17590 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17591 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17592 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17593 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17594 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17595 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17596 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17597 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17598 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17599 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17600 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17601 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17602 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17603 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17604 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17605 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17606 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17607 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17608 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17609 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17610 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17611 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17612 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17613 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17614 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17615 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17616 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17617 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17618 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17619 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17620 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17621 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17622 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17623 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17624 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17625 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17626 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17627 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17628 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17629 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17630 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17631 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17632 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17633 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17634 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17635 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17636 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17637 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17638 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17639 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17640 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17641 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17643 LTCC='$LTCC'
17644 LTCFLAGS='$LTCFLAGS'
17645 compiler='$compiler_DEFAULT'
17647 # A function that is used when there is no print builtin or printf.
17648 func_fallback_echo ()
17650 eval 'cat <<_LTECHO_EOF
17652 _LTECHO_EOF'
17655 # Quote evaled strings.
17656 for var in SHELL \
17657 ECHO \
17658 SED \
17659 GREP \
17660 EGREP \
17661 FGREP \
17662 LD \
17663 NM \
17664 LN_S \
17665 lt_SP2NL \
17666 lt_NL2SP \
17667 reload_flag \
17668 OBJDUMP \
17669 deplibs_check_method \
17670 file_magic_cmd \
17671 AR \
17672 AR_FLAGS \
17673 STRIP \
17674 RANLIB \
17675 CC \
17676 CFLAGS \
17677 compiler \
17678 lt_cv_sys_global_symbol_pipe \
17679 lt_cv_sys_global_symbol_to_cdecl \
17680 lt_cv_sys_global_symbol_to_c_name_address \
17681 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17682 lt_prog_compiler_no_builtin_flag \
17683 lt_prog_compiler_wl \
17684 lt_prog_compiler_pic \
17685 lt_prog_compiler_static \
17686 lt_cv_prog_compiler_c_o \
17687 need_locks \
17688 DSYMUTIL \
17689 NMEDIT \
17690 LIPO \
17691 OTOOL \
17692 OTOOL64 \
17693 shrext_cmds \
17694 export_dynamic_flag_spec \
17695 whole_archive_flag_spec \
17696 compiler_needs_object \
17697 with_gnu_ld \
17698 allow_undefined_flag \
17699 no_undefined_flag \
17700 hardcode_libdir_flag_spec \
17701 hardcode_libdir_flag_spec_ld \
17702 hardcode_libdir_separator \
17703 fix_srcfile_path \
17704 exclude_expsyms \
17705 include_expsyms \
17706 file_list_spec \
17707 variables_saved_for_relink \
17708 libname_spec \
17709 library_names_spec \
17710 soname_spec \
17711 install_override_mode \
17712 finish_eval \
17713 old_striplib \
17714 striplib \
17715 compiler_lib_search_dirs \
17716 predep_objects \
17717 postdep_objects \
17718 predeps \
17719 postdeps \
17720 compiler_lib_search_path \
17721 LD_CXX \
17722 reload_flag_CXX \
17723 compiler_CXX \
17724 lt_prog_compiler_no_builtin_flag_CXX \
17725 lt_prog_compiler_wl_CXX \
17726 lt_prog_compiler_pic_CXX \
17727 lt_prog_compiler_static_CXX \
17728 lt_cv_prog_compiler_c_o_CXX \
17729 export_dynamic_flag_spec_CXX \
17730 whole_archive_flag_spec_CXX \
17731 compiler_needs_object_CXX \
17732 with_gnu_ld_CXX \
17733 allow_undefined_flag_CXX \
17734 no_undefined_flag_CXX \
17735 hardcode_libdir_flag_spec_CXX \
17736 hardcode_libdir_flag_spec_ld_CXX \
17737 hardcode_libdir_separator_CXX \
17738 fix_srcfile_path_CXX \
17739 exclude_expsyms_CXX \
17740 include_expsyms_CXX \
17741 file_list_spec_CXX \
17742 compiler_lib_search_dirs_CXX \
17743 predep_objects_CXX \
17744 postdep_objects_CXX \
17745 predeps_CXX \
17746 postdeps_CXX \
17747 compiler_lib_search_path_CXX; do
17748 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17749 *[\\\\\\\`\\"\\\$]*)
17750 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17753 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17755 esac
17756 done
17758 # Double-quote double-evaled strings.
17759 for var in reload_cmds \
17760 old_postinstall_cmds \
17761 old_postuninstall_cmds \
17762 old_archive_cmds \
17763 extract_expsyms_cmds \
17764 old_archive_from_new_cmds \
17765 old_archive_from_expsyms_cmds \
17766 archive_cmds \
17767 archive_expsym_cmds \
17768 module_cmds \
17769 module_expsym_cmds \
17770 export_symbols_cmds \
17771 prelink_cmds \
17772 postinstall_cmds \
17773 postuninstall_cmds \
17774 finish_cmds \
17775 sys_lib_search_path_spec \
17776 sys_lib_dlsearch_path_spec \
17777 reload_cmds_CXX \
17778 old_archive_cmds_CXX \
17779 old_archive_from_new_cmds_CXX \
17780 old_archive_from_expsyms_cmds_CXX \
17781 archive_cmds_CXX \
17782 archive_expsym_cmds_CXX \
17783 module_cmds_CXX \
17784 module_expsym_cmds_CXX \
17785 export_symbols_cmds_CXX \
17786 prelink_cmds_CXX; do
17787 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17788 *[\\\\\\\`\\"\\\$]*)
17789 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17792 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17794 esac
17795 done
17797 ac_aux_dir='$ac_aux_dir'
17798 xsi_shell='$xsi_shell'
17799 lt_shell_append='$lt_shell_append'
17801 # See if we are running on zsh, and set the options which allow our
17802 # commands through without removal of \ escapes INIT.
17803 if test -n "\${ZSH_VERSION+set}" ; then
17804 setopt NO_GLOB_SUBST
17808 PACKAGE='$PACKAGE'
17809 VERSION='$VERSION'
17810 TIMESTAMP='$TIMESTAMP'
17811 RM='$RM'
17812 ofile='$ofile'
17818 TARGETDIR="$TARGETDIR"
17820 _ACEOF
17822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17824 # Handling of arguments.
17825 for ac_config_target in $ac_config_targets
17827 case $ac_config_target in
17828 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
17829 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17830 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17831 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17832 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
17833 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
17834 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
17835 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17836 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
17837 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17838 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17839 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
17840 "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
17842 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17843 esac
17844 done
17847 # If the user did not use the arguments to specify the items to instantiate,
17848 # then the envvar interface is used. Set only those that are not.
17849 # We use the long form for the default assignment because of an extremely
17850 # bizarre bug on SunOS 4.1.3.
17851 if $ac_need_defaults; then
17852 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17853 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17854 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17855 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17858 # Have a temporary directory for convenience. Make it in the build tree
17859 # simply because there is no reason against having it here, and in addition,
17860 # creating and moving files from /tmp can sometimes cause problems.
17861 # Hook for its removal unless debugging.
17862 # Note that there is a small window in which the directory will not be cleaned:
17863 # after its creation but before its name has been assigned to `$tmp'.
17864 $debug ||
17866 tmp= ac_tmp=
17867 trap 'exit_status=$?
17868 : "${ac_tmp:=$tmp}"
17869 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17871 trap 'as_fn_exit 1' 1 2 13 15
17873 # Create a (secure) tmp directory for tmp files.
17876 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17877 test -d "$tmp"
17878 } ||
17880 tmp=./conf$$-$RANDOM
17881 (umask 077 && mkdir "$tmp")
17882 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17883 ac_tmp=$tmp
17885 # Set up the scripts for CONFIG_FILES section.
17886 # No need to generate them if there are no CONFIG_FILES.
17887 # This happens for instance with `./config.status config.h'.
17888 if test -n "$CONFIG_FILES"; then
17891 ac_cr=`echo X | tr X '\015'`
17892 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17893 # But we know of no other shell where ac_cr would be empty at this
17894 # point, so we can use a bashism as a fallback.
17895 if test "x$ac_cr" = x; then
17896 eval ac_cr=\$\'\\r\'
17898 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17899 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17900 ac_cs_awk_cr='\\r'
17901 else
17902 ac_cs_awk_cr=$ac_cr
17905 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17906 _ACEOF
17910 echo "cat >conf$$subs.awk <<_ACEOF" &&
17911 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17912 echo "_ACEOF"
17913 } >conf$$subs.sh ||
17914 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17915 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17916 ac_delim='%!_!# '
17917 for ac_last_try in false false false false false :; do
17918 . ./conf$$subs.sh ||
17919 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17921 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17922 if test $ac_delim_n = $ac_delim_num; then
17923 break
17924 elif $ac_last_try; then
17925 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17926 else
17927 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17929 done
17930 rm -f conf$$subs.sh
17932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17933 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17934 _ACEOF
17935 sed -n '
17937 s/^/S["/; s/!.*/"]=/
17940 s/^[^!]*!//
17941 :repl
17942 t repl
17943 s/'"$ac_delim"'$//
17944 t delim
17947 s/\(.\{148\}\)..*/\1/
17948 t more1
17949 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17952 b repl
17953 :more1
17954 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17957 s/.\{148\}//
17958 t nl
17959 :delim
17961 s/\(.\{148\}\)..*/\1/
17962 t more2
17963 s/["\\]/\\&/g; s/^/"/; s/$/"/
17966 :more2
17967 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17970 s/.\{148\}//
17971 t delim
17972 ' <conf$$subs.awk | sed '
17973 /^[^""]/{
17975 s/\n//
17977 ' >>$CONFIG_STATUS || ac_write_fail=1
17978 rm -f conf$$subs.awk
17979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17980 _ACAWK
17981 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17982 for (key in S) S_is_set[key] = 1
17983 FS = "\a"
17987 line = $ 0
17988 nfields = split(line, field, "@")
17989 substed = 0
17990 len = length(field[1])
17991 for (i = 2; i < nfields; i++) {
17992 key = field[i]
17993 keylen = length(key)
17994 if (S_is_set[key]) {
17995 value = S[key]
17996 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17997 len += length(value) + length(field[++i])
17998 substed = 1
17999 } else
18000 len += 1 + keylen
18003 print line
18006 _ACAWK
18007 _ACEOF
18008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18009 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18010 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18011 else
18013 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18014 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18015 _ACEOF
18017 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18018 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18019 # trailing colons and then remove the whole line if VPATH becomes empty
18020 # (actually we leave an empty line to preserve line numbers).
18021 if test "x$srcdir" = x.; then
18022 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18024 s///
18025 s/^/:/
18026 s/[ ]*$/:/
18027 s/:\$(srcdir):/:/g
18028 s/:\${srcdir}:/:/g
18029 s/:@srcdir@:/:/g
18030 s/^:*//
18031 s/:*$//
18033 s/\(=[ ]*\).*/\1/
18035 s/\n//
18036 s/^[^=]*=[ ]*$//
18040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18041 fi # test -n "$CONFIG_FILES"
18043 # Set up the scripts for CONFIG_HEADERS section.
18044 # No need to generate them if there are no CONFIG_HEADERS.
18045 # This happens for instance with `./config.status Makefile'.
18046 if test -n "$CONFIG_HEADERS"; then
18047 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18048 BEGIN {
18049 _ACEOF
18051 # Transform confdefs.h into an awk script `defines.awk', embedded as
18052 # here-document in config.status, that substitutes the proper values into
18053 # config.h.in to produce config.h.
18055 # Create a delimiter string that does not exist in confdefs.h, to ease
18056 # handling of long lines.
18057 ac_delim='%!_!# '
18058 for ac_last_try in false false :; do
18059 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18060 if test -z "$ac_tt"; then
18061 break
18062 elif $ac_last_try; then
18063 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18064 else
18065 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18067 done
18069 # For the awk script, D is an array of macro values keyed by name,
18070 # likewise P contains macro parameters if any. Preserve backslash
18071 # newline sequences.
18073 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18074 sed -n '
18075 s/.\{148\}/&'"$ac_delim"'/g
18076 t rset
18077 :rset
18078 s/^[ ]*#[ ]*define[ ][ ]*/ /
18079 t def
18081 :def
18082 s/\\$//
18083 t bsnl
18084 s/["\\]/\\&/g
18085 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18086 D["\1"]=" \3"/p
18087 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18089 :bsnl
18090 s/["\\]/\\&/g
18091 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18092 D["\1"]=" \3\\\\\\n"\\/p
18093 t cont
18094 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18095 t cont
18097 :cont
18099 s/.\{148\}/&'"$ac_delim"'/g
18100 t clear
18101 :clear
18102 s/\\$//
18103 t bsnlc
18104 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18106 :bsnlc
18107 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18108 b cont
18109 ' <confdefs.h | sed '
18110 s/'"$ac_delim"'/"\\\
18111 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18114 for (key in D) D_is_set[key] = 1
18115 FS = "\a"
18117 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18118 line = \$ 0
18119 split(line, arg, " ")
18120 if (arg[1] == "#") {
18121 defundef = arg[2]
18122 mac1 = arg[3]
18123 } else {
18124 defundef = substr(arg[1], 2)
18125 mac1 = arg[2]
18127 split(mac1, mac2, "(") #)
18128 macro = mac2[1]
18129 prefix = substr(line, 1, index(line, defundef) - 1)
18130 if (D_is_set[macro]) {
18131 # Preserve the white space surrounding the "#".
18132 print prefix "define", macro P[macro] D[macro]
18133 next
18134 } else {
18135 # Replace #undef with comments. This is necessary, for example,
18136 # in the case of _POSIX_SOURCE, which is predefined and required
18137 # on some systems where configure will not decide to define it.
18138 if (defundef == "undef") {
18139 print "/*", prefix defundef, macro, "*/"
18140 next
18144 { print }
18145 _ACAWK
18146 _ACEOF
18147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18148 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18149 fi # test -n "$CONFIG_HEADERS"
18152 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18153 shift
18154 for ac_tag
18156 case $ac_tag in
18157 :[FHLC]) ac_mode=$ac_tag; continue;;
18158 esac
18159 case $ac_mode$ac_tag in
18160 :[FHL]*:*);;
18161 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18162 :[FH]-) ac_tag=-:-;;
18163 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18164 esac
18165 ac_save_IFS=$IFS
18166 IFS=:
18167 set x $ac_tag
18168 IFS=$ac_save_IFS
18169 shift
18170 ac_file=$1
18171 shift
18173 case $ac_mode in
18174 :L) ac_source=$1;;
18175 :[FH])
18176 ac_file_inputs=
18177 for ac_f
18179 case $ac_f in
18180 -) ac_f="$ac_tmp/stdin";;
18181 *) # Look for the file first in the build tree, then in the source tree
18182 # (if the path is not absolute). The absolute path cannot be DOS-style,
18183 # because $ac_f cannot contain `:'.
18184 test -f "$ac_f" ||
18185 case $ac_f in
18186 [\\/$]*) false;;
18187 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18188 esac ||
18189 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18190 esac
18191 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18192 as_fn_append ac_file_inputs " '$ac_f'"
18193 done
18195 # Let's still pretend it is `configure' which instantiates (i.e., don't
18196 # use $as_me), people would be surprised to read:
18197 # /* config.h. Generated by config.status. */
18198 configure_input='Generated from '`
18199 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18200 `' by configure.'
18201 if test x"$ac_file" != x-; then
18202 configure_input="$ac_file. $configure_input"
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18204 $as_echo "$as_me: creating $ac_file" >&6;}
18206 # Neutralize special characters interpreted by sed in replacement strings.
18207 case $configure_input in #(
18208 *\&* | *\|* | *\\* )
18209 ac_sed_conf_input=`$as_echo "$configure_input" |
18210 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18211 *) ac_sed_conf_input=$configure_input;;
18212 esac
18214 case $ac_tag in
18215 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18216 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18217 esac
18219 esac
18221 ac_dir=`$as_dirname -- "$ac_file" ||
18222 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18223 X"$ac_file" : 'X\(//\)[^/]' \| \
18224 X"$ac_file" : 'X\(//\)$' \| \
18225 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18226 $as_echo X"$ac_file" |
18227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18228 s//\1/
18231 /^X\(\/\/\)[^/].*/{
18232 s//\1/
18235 /^X\(\/\/\)$/{
18236 s//\1/
18239 /^X\(\/\).*/{
18240 s//\1/
18243 s/.*/./; q'`
18244 as_dir="$ac_dir"; as_fn_mkdir_p
18245 ac_builddir=.
18247 case "$ac_dir" in
18248 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18250 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18251 # A ".." for each directory in $ac_dir_suffix.
18252 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18253 case $ac_top_builddir_sub in
18254 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18255 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18256 esac ;;
18257 esac
18258 ac_abs_top_builddir=$ac_pwd
18259 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18260 # for backward compatibility:
18261 ac_top_builddir=$ac_top_build_prefix
18263 case $srcdir in
18264 .) # We are building in place.
18265 ac_srcdir=.
18266 ac_top_srcdir=$ac_top_builddir_sub
18267 ac_abs_top_srcdir=$ac_pwd ;;
18268 [\\/]* | ?:[\\/]* ) # Absolute name.
18269 ac_srcdir=$srcdir$ac_dir_suffix;
18270 ac_top_srcdir=$srcdir
18271 ac_abs_top_srcdir=$srcdir ;;
18272 *) # Relative name.
18273 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18274 ac_top_srcdir=$ac_top_build_prefix$srcdir
18275 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18276 esac
18277 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18280 case $ac_mode in
18283 # CONFIG_FILE
18286 case $INSTALL in
18287 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18288 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18289 esac
18290 ac_MKDIR_P=$MKDIR_P
18291 case $MKDIR_P in
18292 [\\/$]* | ?:[\\/]* ) ;;
18293 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18294 esac
18295 _ACEOF
18297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18298 # If the template does not know about datarootdir, expand it.
18299 # FIXME: This hack should be removed a few years after 2.60.
18300 ac_datarootdir_hack=; ac_datarootdir_seen=
18301 ac_sed_dataroot='
18302 /datarootdir/ {
18306 /@datadir@/p
18307 /@docdir@/p
18308 /@infodir@/p
18309 /@localedir@/p
18310 /@mandir@/p'
18311 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18312 *datarootdir*) ac_datarootdir_seen=yes;;
18313 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18315 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18316 _ACEOF
18317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18318 ac_datarootdir_hack='
18319 s&@datadir@&$datadir&g
18320 s&@docdir@&$docdir&g
18321 s&@infodir@&$infodir&g
18322 s&@localedir@&$localedir&g
18323 s&@mandir@&$mandir&g
18324 s&\\\${datarootdir}&$datarootdir&g' ;;
18325 esac
18326 _ACEOF
18328 # Neutralize VPATH when `$srcdir' = `.'.
18329 # Shell code in configure.ac might set extrasub.
18330 # FIXME: do we really want to maintain this feature?
18331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18332 ac_sed_extra="$ac_vpsub
18333 $extrasub
18334 _ACEOF
18335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18337 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18338 s|@configure_input@|$ac_sed_conf_input|;t t
18339 s&@top_builddir@&$ac_top_builddir_sub&;t t
18340 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18341 s&@srcdir@&$ac_srcdir&;t t
18342 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18343 s&@top_srcdir@&$ac_top_srcdir&;t t
18344 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18345 s&@builddir@&$ac_builddir&;t t
18346 s&@abs_builddir@&$ac_abs_builddir&;t t
18347 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18348 s&@INSTALL@&$ac_INSTALL&;t t
18349 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18350 $ac_datarootdir_hack
18352 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18353 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18355 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18356 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18357 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18358 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18360 which seems to be undefined. Please make sure it is defined" >&5
18361 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18362 which seems to be undefined. Please make sure it is defined" >&2;}
18364 rm -f "$ac_tmp/stdin"
18365 case $ac_file in
18366 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18367 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18368 esac \
18369 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18373 # CONFIG_HEADER
18375 if test x"$ac_file" != x-; then
18377 $as_echo "/* $configure_input */" \
18378 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18379 } >"$ac_tmp/config.h" \
18380 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18381 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18383 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18384 else
18385 rm -f "$ac_file"
18386 mv "$ac_tmp/config.h" "$ac_file" \
18387 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18389 else
18390 $as_echo "/* $configure_input */" \
18391 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18392 || as_fn_error $? "could not create -" "$LINENO" 5
18394 # Compute "$ac_file"'s index in $config_headers.
18395 _am_arg="$ac_file"
18396 _am_stamp_count=1
18397 for _am_header in $config_headers :; do
18398 case $_am_header in
18399 $_am_arg | $_am_arg:* )
18400 break ;;
18402 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18403 esac
18404 done
18405 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18406 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18407 X"$_am_arg" : 'X\(//\)[^/]' \| \
18408 X"$_am_arg" : 'X\(//\)$' \| \
18409 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18410 $as_echo X"$_am_arg" |
18411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18412 s//\1/
18415 /^X\(\/\/\)[^/].*/{
18416 s//\1/
18419 /^X\(\/\/\)$/{
18420 s//\1/
18423 /^X\(\/\).*/{
18424 s//\1/
18427 s/.*/./; q'`/stamp-h$_am_stamp_count
18431 # CONFIG_LINK
18434 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18436 else
18437 # Prefer the file from the source tree if names are identical.
18438 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18439 ac_source=$srcdir/$ac_source
18442 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18443 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18445 if test ! -r "$ac_source"; then
18446 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
18448 rm -f "$ac_file"
18450 # Try a relative symlink, then a hard link, then a copy.
18451 case $ac_source in
18452 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18453 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18454 esac
18455 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18456 ln "$ac_source" "$ac_file" 2>/dev/null ||
18457 cp -p "$ac_source" "$ac_file" ||
18458 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18461 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18462 $as_echo "$as_me: executing $ac_file commands" >&6;}
18464 esac
18467 case $ac_file$ac_mode in
18468 "default-1":C)
18469 # Only add multilib support code if we just rebuilt the top-level
18470 # Makefile.
18471 case " $CONFIG_FILES " in
18472 *" Makefile "*)
18473 ac_file=Makefile . ${multi_basedir}/config-ml.in
18475 esac ;;
18476 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18477 # Older Autoconf quotes --file arguments for eval, but not when files
18478 # are listed without --file. Let's play safe and only enable the eval
18479 # if we detect the quoting.
18480 case $CONFIG_FILES in
18481 *\'*) eval set x "$CONFIG_FILES" ;;
18482 *) set x $CONFIG_FILES ;;
18483 esac
18484 shift
18485 for mf
18487 # Strip MF so we end up with the name of the file.
18488 mf=`echo "$mf" | sed -e 's/:.*$//'`
18489 # Check whether this is an Automake generated Makefile or not.
18490 # We used to match only the files named 'Makefile.in', but
18491 # some people rename them; so instead we look at the file content.
18492 # Grep'ing the first line is not enough: some people post-process
18493 # each Makefile.in and add a new line on top of each file to say so.
18494 # Grep'ing the whole file is not good either: AIX grep has a line
18495 # limit of 2048, but all sed's we know have understand at least 4000.
18496 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18497 dirpart=`$as_dirname -- "$mf" ||
18498 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18499 X"$mf" : 'X\(//\)[^/]' \| \
18500 X"$mf" : 'X\(//\)$' \| \
18501 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18502 $as_echo X"$mf" |
18503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18504 s//\1/
18507 /^X\(\/\/\)[^/].*/{
18508 s//\1/
18511 /^X\(\/\/\)$/{
18512 s//\1/
18515 /^X\(\/\).*/{
18516 s//\1/
18519 s/.*/./; q'`
18520 else
18521 continue
18523 # Extract the definition of DEPDIR, am__include, and am__quote
18524 # from the Makefile without running 'make'.
18525 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18526 test -z "$DEPDIR" && continue
18527 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18528 test -z "$am__include" && continue
18529 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18530 # Find all dependency output files, they are included files with
18531 # $(DEPDIR) in their names. We invoke sed twice because it is the
18532 # simplest approach to changing $(DEPDIR) to its actual value in the
18533 # expansion.
18534 for file in `sed -n "
18535 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18536 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18537 # Make sure the directory exists.
18538 test -f "$dirpart/$file" && continue
18539 fdir=`$as_dirname -- "$file" ||
18540 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18541 X"$file" : 'X\(//\)[^/]' \| \
18542 X"$file" : 'X\(//\)$' \| \
18543 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18544 $as_echo X"$file" |
18545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18546 s//\1/
18549 /^X\(\/\/\)[^/].*/{
18550 s//\1/
18553 /^X\(\/\/\)$/{
18554 s//\1/
18557 /^X\(\/\).*/{
18558 s//\1/
18561 s/.*/./; q'`
18562 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18563 # echo "creating $dirpart/$file"
18564 echo '# dummy' > "$dirpart/$file"
18565 done
18566 done
18569 "libtool":C)
18571 # See if we are running on zsh, and set the options which allow our
18572 # commands through without removal of \ escapes.
18573 if test -n "${ZSH_VERSION+set}" ; then
18574 setopt NO_GLOB_SUBST
18577 cfgfile="${ofile}T"
18578 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18579 $RM "$cfgfile"
18581 cat <<_LT_EOF >> "$cfgfile"
18582 #! $SHELL
18584 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18585 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18586 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18587 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18589 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18590 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18591 # Written by Gordon Matzigkeit, 1996
18593 # This file is part of GNU Libtool.
18595 # GNU Libtool is free software; you can redistribute it and/or
18596 # modify it under the terms of the GNU General Public License as
18597 # published by the Free Software Foundation; either version 2 of
18598 # the License, or (at your option) any later version.
18600 # As a special exception to the GNU General Public License,
18601 # if you distribute this file as part of a program or library that
18602 # is built using GNU Libtool, you may include this file under the
18603 # same distribution terms that you use for the rest of that program.
18605 # GNU Libtool is distributed in the hope that it will be useful,
18606 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18607 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18608 # GNU General Public License for more details.
18610 # You should have received a copy of the GNU General Public License
18611 # along with GNU Libtool; see the file COPYING. If not, a copy
18612 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18613 # obtained by writing to the Free Software Foundation, Inc.,
18614 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18617 # The names of the tagged configurations supported by this script.
18618 available_tags="CXX "
18620 # ### BEGIN LIBTOOL CONFIG
18622 # Which release of libtool.m4 was used?
18623 macro_version=$macro_version
18624 macro_revision=$macro_revision
18626 # Whether or not to build shared libraries.
18627 build_libtool_libs=$enable_shared
18629 # Whether or not to build static libraries.
18630 build_old_libs=$enable_static
18632 # What type of objects to build.
18633 pic_mode=$pic_mode
18635 # Whether or not to optimize for fast installation.
18636 fast_install=$enable_fast_install
18638 # Shell to use when invoking shell scripts.
18639 SHELL=$lt_SHELL
18641 # An echo program that protects backslashes.
18642 ECHO=$lt_ECHO
18644 # The host system.
18645 host_alias=$host_alias
18646 host=$host
18647 host_os=$host_os
18649 # The build system.
18650 build_alias=$build_alias
18651 build=$build
18652 build_os=$build_os
18654 # A sed program that does not truncate output.
18655 SED=$lt_SED
18657 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18658 Xsed="\$SED -e 1s/^X//"
18660 # A grep program that handles long lines.
18661 GREP=$lt_GREP
18663 # An ERE matcher.
18664 EGREP=$lt_EGREP
18666 # A literal string matcher.
18667 FGREP=$lt_FGREP
18669 # A BSD- or MS-compatible name lister.
18670 NM=$lt_NM
18672 # Whether we need soft or hard links.
18673 LN_S=$lt_LN_S
18675 # What is the maximum length of a command?
18676 max_cmd_len=$max_cmd_len
18678 # Object file suffix (normally "o").
18679 objext=$ac_objext
18681 # Executable file suffix (normally "").
18682 exeext=$exeext
18684 # whether the shell understands "unset".
18685 lt_unset=$lt_unset
18687 # turn spaces into newlines.
18688 SP2NL=$lt_lt_SP2NL
18690 # turn newlines into spaces.
18691 NL2SP=$lt_lt_NL2SP
18693 # An object symbol dumper.
18694 OBJDUMP=$lt_OBJDUMP
18696 # Method to check whether dependent libraries are shared objects.
18697 deplibs_check_method=$lt_deplibs_check_method
18699 # Command to use when deplibs_check_method == "file_magic".
18700 file_magic_cmd=$lt_file_magic_cmd
18702 # The archiver.
18703 AR=$lt_AR
18704 AR_FLAGS=$lt_AR_FLAGS
18706 # A symbol stripping program.
18707 STRIP=$lt_STRIP
18709 # Commands used to install an old-style archive.
18710 RANLIB=$lt_RANLIB
18711 old_postinstall_cmds=$lt_old_postinstall_cmds
18712 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18714 # Whether to use a lock for old archive extraction.
18715 lock_old_archive_extraction=$lock_old_archive_extraction
18717 # A C compiler.
18718 LTCC=$lt_CC
18720 # LTCC compiler flags.
18721 LTCFLAGS=$lt_CFLAGS
18723 # Take the output of nm and produce a listing of raw symbols and C names.
18724 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18726 # Transform the output of nm in a proper C declaration.
18727 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18729 # Transform the output of nm in a C name address pair.
18730 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18732 # Transform the output of nm in a C name address pair when lib prefix is needed.
18733 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18735 # The name of the directory that contains temporary libtool files.
18736 objdir=$objdir
18738 # Used to examine libraries when file_magic_cmd begins with "file".
18739 MAGIC_CMD=$MAGIC_CMD
18741 # Must we lock files when doing compilation?
18742 need_locks=$lt_need_locks
18744 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18745 DSYMUTIL=$lt_DSYMUTIL
18747 # Tool to change global to local symbols on Mac OS X.
18748 NMEDIT=$lt_NMEDIT
18750 # Tool to manipulate fat objects and archives on Mac OS X.
18751 LIPO=$lt_LIPO
18753 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18754 OTOOL=$lt_OTOOL
18756 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18757 OTOOL64=$lt_OTOOL64
18759 # Old archive suffix (normally "a").
18760 libext=$libext
18762 # Shared library suffix (normally ".so").
18763 shrext_cmds=$lt_shrext_cmds
18765 # The commands to extract the exported symbol list from a shared archive.
18766 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18768 # Variables whose values should be saved in libtool wrapper scripts and
18769 # restored at link time.
18770 variables_saved_for_relink=$lt_variables_saved_for_relink
18772 # Do we need the "lib" prefix for modules?
18773 need_lib_prefix=$need_lib_prefix
18775 # Do we need a version for libraries?
18776 need_version=$need_version
18778 # Library versioning type.
18779 version_type=$version_type
18781 # Shared library runtime path variable.
18782 runpath_var=$runpath_var
18784 # Shared library path variable.
18785 shlibpath_var=$shlibpath_var
18787 # Is shlibpath searched before the hard-coded library search path?
18788 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18790 # Format of library name prefix.
18791 libname_spec=$lt_libname_spec
18793 # List of archive names. First name is the real one, the rest are links.
18794 # The last name is the one that the linker finds with -lNAME
18795 library_names_spec=$lt_library_names_spec
18797 # The coded name of the library, if different from the real name.
18798 soname_spec=$lt_soname_spec
18800 # Permission mode override for installation of shared libraries.
18801 install_override_mode=$lt_install_override_mode
18803 # Command to use after installation of a shared archive.
18804 postinstall_cmds=$lt_postinstall_cmds
18806 # Command to use after uninstallation of a shared archive.
18807 postuninstall_cmds=$lt_postuninstall_cmds
18809 # Commands used to finish a libtool library installation in a directory.
18810 finish_cmds=$lt_finish_cmds
18812 # As "finish_cmds", except a single script fragment to be evaled but
18813 # not shown.
18814 finish_eval=$lt_finish_eval
18816 # Whether we should hardcode library paths into libraries.
18817 hardcode_into_libs=$hardcode_into_libs
18819 # Compile-time system search path for libraries.
18820 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18822 # Run-time system search path for libraries.
18823 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18825 # Whether dlopen is supported.
18826 dlopen_support=$enable_dlopen
18828 # Whether dlopen of programs is supported.
18829 dlopen_self=$enable_dlopen_self
18831 # Whether dlopen of statically linked programs is supported.
18832 dlopen_self_static=$enable_dlopen_self_static
18834 # Commands to strip libraries.
18835 old_striplib=$lt_old_striplib
18836 striplib=$lt_striplib
18839 # The linker used to build libraries.
18840 LD=$lt_LD
18842 # How to create reloadable object files.
18843 reload_flag=$lt_reload_flag
18844 reload_cmds=$lt_reload_cmds
18846 # Commands used to build an old-style archive.
18847 old_archive_cmds=$lt_old_archive_cmds
18849 # A language specific compiler.
18850 CC=$lt_compiler
18852 # Is the compiler the GNU compiler?
18853 with_gcc=$GCC
18855 # Compiler flag to turn off builtin functions.
18856 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18858 # How to pass a linker flag through the compiler.
18859 wl=$lt_lt_prog_compiler_wl
18861 # Additional compiler flags for building library objects.
18862 pic_flag=$lt_lt_prog_compiler_pic
18864 # Compiler flag to prevent dynamic linking.
18865 link_static_flag=$lt_lt_prog_compiler_static
18867 # Does compiler simultaneously support -c and -o options?
18868 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18870 # Whether or not to add -lc for building shared libraries.
18871 build_libtool_need_lc=$archive_cmds_need_lc
18873 # Whether or not to disallow shared libs when runtime libs are static.
18874 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18876 # Compiler flag to allow reflexive dlopens.
18877 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18879 # Compiler flag to generate shared objects directly from archives.
18880 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18882 # Whether the compiler copes with passing no objects directly.
18883 compiler_needs_object=$lt_compiler_needs_object
18885 # Create an old-style archive from a shared archive.
18886 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18888 # Create a temporary old-style archive to link instead of a shared archive.
18889 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18891 # Commands used to build a shared archive.
18892 archive_cmds=$lt_archive_cmds
18893 archive_expsym_cmds=$lt_archive_expsym_cmds
18895 # Commands used to build a loadable module if different from building
18896 # a shared archive.
18897 module_cmds=$lt_module_cmds
18898 module_expsym_cmds=$lt_module_expsym_cmds
18900 # Whether we are building with GNU ld or not.
18901 with_gnu_ld=$lt_with_gnu_ld
18903 # Flag that allows shared libraries with undefined symbols to be built.
18904 allow_undefined_flag=$lt_allow_undefined_flag
18906 # Flag that enforces no undefined symbols.
18907 no_undefined_flag=$lt_no_undefined_flag
18909 # Flag to hardcode \$libdir into a binary during linking.
18910 # This must work even if \$libdir does not exist
18911 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18913 # If ld is used when linking, flag to hardcode \$libdir into a binary
18914 # during linking. This must work even if \$libdir does not exist.
18915 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18917 # Whether we need a single "-rpath" flag with a separated argument.
18918 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18920 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18921 # DIR into the resulting binary.
18922 hardcode_direct=$hardcode_direct
18924 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18925 # DIR into the resulting binary and the resulting library dependency is
18926 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18927 # library is relocated.
18928 hardcode_direct_absolute=$hardcode_direct_absolute
18930 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18931 # into the resulting binary.
18932 hardcode_minus_L=$hardcode_minus_L
18934 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18935 # into the resulting binary.
18936 hardcode_shlibpath_var=$hardcode_shlibpath_var
18938 # Set to "yes" if building a shared library automatically hardcodes DIR
18939 # into the library and all subsequent libraries and executables linked
18940 # against it.
18941 hardcode_automatic=$hardcode_automatic
18943 # Set to yes if linker adds runtime paths of dependent libraries
18944 # to runtime path list.
18945 inherit_rpath=$inherit_rpath
18947 # Whether libtool must link a program against all its dependency libraries.
18948 link_all_deplibs=$link_all_deplibs
18950 # Fix the shell variable \$srcfile for the compiler.
18951 fix_srcfile_path=$lt_fix_srcfile_path
18953 # Set to "yes" if exported symbols are required.
18954 always_export_symbols=$always_export_symbols
18956 # The commands to list exported symbols.
18957 export_symbols_cmds=$lt_export_symbols_cmds
18959 # Symbols that should not be listed in the preloaded symbols.
18960 exclude_expsyms=$lt_exclude_expsyms
18962 # Symbols that must always be exported.
18963 include_expsyms=$lt_include_expsyms
18965 # Commands necessary for linking programs (against libraries) with templates.
18966 prelink_cmds=$lt_prelink_cmds
18968 # Specify filename containing input files.
18969 file_list_spec=$lt_file_list_spec
18971 # How to hardcode a shared library path into an executable.
18972 hardcode_action=$hardcode_action
18974 # The directories searched by this compiler when creating a shared library.
18975 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18977 # Dependencies to place before and after the objects being linked to
18978 # create a shared library.
18979 predep_objects=$lt_predep_objects
18980 postdep_objects=$lt_postdep_objects
18981 predeps=$lt_predeps
18982 postdeps=$lt_postdeps
18984 # The library search path used internally by the compiler when linking
18985 # a shared library.
18986 compiler_lib_search_path=$lt_compiler_lib_search_path
18988 # ### END LIBTOOL CONFIG
18990 _LT_EOF
18992 case $host_os in
18993 aix3*)
18994 cat <<\_LT_EOF >> "$cfgfile"
18995 # AIX sometimes has problems with the GCC collect2 program. For some
18996 # reason, if we set the COLLECT_NAMES environment variable, the problems
18997 # vanish in a puff of smoke.
18998 if test "X${COLLECT_NAMES+set}" != Xset; then
18999 COLLECT_NAMES=
19000 export COLLECT_NAMES
19002 _LT_EOF
19004 esac
19007 ltmain="$ac_aux_dir/ltmain.sh"
19010 # We use sed instead of cat because bash on DJGPP gets confused if
19011 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19012 # text mode, it properly converts lines to CR/LF. This bash problem
19013 # is reportedly fixed, but why not run on old versions too?
19014 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19015 || (rm -f "$cfgfile"; exit 1)
19017 case $xsi_shell in
19018 yes)
19019 cat << \_LT_EOF >> "$cfgfile"
19021 # func_dirname file append nondir_replacement
19022 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19023 # otherwise set result to NONDIR_REPLACEMENT.
19024 func_dirname ()
19026 case ${1} in
19027 */*) func_dirname_result="${1%/*}${2}" ;;
19028 * ) func_dirname_result="${3}" ;;
19029 esac
19032 # func_basename file
19033 func_basename ()
19035 func_basename_result="${1##*/}"
19038 # func_dirname_and_basename file append nondir_replacement
19039 # perform func_basename and func_dirname in a single function
19040 # call:
19041 # dirname: Compute the dirname of FILE. If nonempty,
19042 # add APPEND to the result, otherwise set result
19043 # to NONDIR_REPLACEMENT.
19044 # value returned in "$func_dirname_result"
19045 # basename: Compute filename of FILE.
19046 # value retuned in "$func_basename_result"
19047 # Implementation must be kept synchronized with func_dirname
19048 # and func_basename. For efficiency, we do not delegate to
19049 # those functions but instead duplicate the functionality here.
19050 func_dirname_and_basename ()
19052 case ${1} in
19053 */*) func_dirname_result="${1%/*}${2}" ;;
19054 * ) func_dirname_result="${3}" ;;
19055 esac
19056 func_basename_result="${1##*/}"
19059 # func_stripname prefix suffix name
19060 # strip PREFIX and SUFFIX off of NAME.
19061 # PREFIX and SUFFIX must not contain globbing or regex special
19062 # characters, hashes, percent signs, but SUFFIX may contain a leading
19063 # dot (in which case that matches only a dot).
19064 func_stripname ()
19066 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19067 # positional parameters, so assign one to ordinary parameter first.
19068 func_stripname_result=${3}
19069 func_stripname_result=${func_stripname_result#"${1}"}
19070 func_stripname_result=${func_stripname_result%"${2}"}
19073 # func_opt_split
19074 func_opt_split ()
19076 func_opt_split_opt=${1%%=*}
19077 func_opt_split_arg=${1#*=}
19080 # func_lo2o object
19081 func_lo2o ()
19083 case ${1} in
19084 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19085 *) func_lo2o_result=${1} ;;
19086 esac
19089 # func_xform libobj-or-source
19090 func_xform ()
19092 func_xform_result=${1%.*}.lo
19095 # func_arith arithmetic-term...
19096 func_arith ()
19098 func_arith_result=$(( $* ))
19101 # func_len string
19102 # STRING may not start with a hyphen.
19103 func_len ()
19105 func_len_result=${#1}
19108 _LT_EOF
19110 *) # Bourne compatible functions.
19111 cat << \_LT_EOF >> "$cfgfile"
19113 # func_dirname file append nondir_replacement
19114 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19115 # otherwise set result to NONDIR_REPLACEMENT.
19116 func_dirname ()
19118 # Extract subdirectory from the argument.
19119 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19120 if test "X$func_dirname_result" = "X${1}"; then
19121 func_dirname_result="${3}"
19122 else
19123 func_dirname_result="$func_dirname_result${2}"
19127 # func_basename file
19128 func_basename ()
19130 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19134 # func_stripname prefix suffix name
19135 # strip PREFIX and SUFFIX off of NAME.
19136 # PREFIX and SUFFIX must not contain globbing or regex special
19137 # characters, hashes, percent signs, but SUFFIX may contain a leading
19138 # dot (in which case that matches only a dot).
19139 # func_strip_suffix prefix name
19140 func_stripname ()
19142 case ${2} in
19143 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19144 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19145 esac
19148 # sed scripts:
19149 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19150 my_sed_long_arg='1s/^-[^=]*=//'
19152 # func_opt_split
19153 func_opt_split ()
19155 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19156 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19159 # func_lo2o object
19160 func_lo2o ()
19162 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19165 # func_xform libobj-or-source
19166 func_xform ()
19168 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19171 # func_arith arithmetic-term...
19172 func_arith ()
19174 func_arith_result=`expr "$@"`
19177 # func_len string
19178 # STRING may not start with a hyphen.
19179 func_len ()
19181 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19184 _LT_EOF
19185 esac
19187 case $lt_shell_append in
19188 yes)
19189 cat << \_LT_EOF >> "$cfgfile"
19191 # func_append var value
19192 # Append VALUE to the end of shell variable VAR.
19193 func_append ()
19195 eval "$1+=\$2"
19197 _LT_EOF
19200 cat << \_LT_EOF >> "$cfgfile"
19202 # func_append var value
19203 # Append VALUE to the end of shell variable VAR.
19204 func_append ()
19206 eval "$1=\$$1\$2"
19209 _LT_EOF
19211 esac
19214 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19215 || (rm -f "$cfgfile"; exit 1)
19217 mv -f "$cfgfile" "$ofile" ||
19218 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19219 chmod +x "$ofile"
19222 cat <<_LT_EOF >> "$ofile"
19224 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19226 # The linker used to build libraries.
19227 LD=$lt_LD_CXX
19229 # How to create reloadable object files.
19230 reload_flag=$lt_reload_flag_CXX
19231 reload_cmds=$lt_reload_cmds_CXX
19233 # Commands used to build an old-style archive.
19234 old_archive_cmds=$lt_old_archive_cmds_CXX
19236 # A language specific compiler.
19237 CC=$lt_compiler_CXX
19239 # Is the compiler the GNU compiler?
19240 with_gcc=$GCC_CXX
19242 # Compiler flag to turn off builtin functions.
19243 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19245 # How to pass a linker flag through the compiler.
19246 wl=$lt_lt_prog_compiler_wl_CXX
19248 # Additional compiler flags for building library objects.
19249 pic_flag=$lt_lt_prog_compiler_pic_CXX
19251 # Compiler flag to prevent dynamic linking.
19252 link_static_flag=$lt_lt_prog_compiler_static_CXX
19254 # Does compiler simultaneously support -c and -o options?
19255 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19257 # Whether or not to add -lc for building shared libraries.
19258 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19260 # Whether or not to disallow shared libs when runtime libs are static.
19261 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19263 # Compiler flag to allow reflexive dlopens.
19264 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19266 # Compiler flag to generate shared objects directly from archives.
19267 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19269 # Whether the compiler copes with passing no objects directly.
19270 compiler_needs_object=$lt_compiler_needs_object_CXX
19272 # Create an old-style archive from a shared archive.
19273 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19275 # Create a temporary old-style archive to link instead of a shared archive.
19276 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19278 # Commands used to build a shared archive.
19279 archive_cmds=$lt_archive_cmds_CXX
19280 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19282 # Commands used to build a loadable module if different from building
19283 # a shared archive.
19284 module_cmds=$lt_module_cmds_CXX
19285 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19287 # Whether we are building with GNU ld or not.
19288 with_gnu_ld=$lt_with_gnu_ld_CXX
19290 # Flag that allows shared libraries with undefined symbols to be built.
19291 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19293 # Flag that enforces no undefined symbols.
19294 no_undefined_flag=$lt_no_undefined_flag_CXX
19296 # Flag to hardcode \$libdir into a binary during linking.
19297 # This must work even if \$libdir does not exist
19298 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19300 # If ld is used when linking, flag to hardcode \$libdir into a binary
19301 # during linking. This must work even if \$libdir does not exist.
19302 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19304 # Whether we need a single "-rpath" flag with a separated argument.
19305 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19307 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19308 # DIR into the resulting binary.
19309 hardcode_direct=$hardcode_direct_CXX
19311 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19312 # DIR into the resulting binary and the resulting library dependency is
19313 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19314 # library is relocated.
19315 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19317 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19318 # into the resulting binary.
19319 hardcode_minus_L=$hardcode_minus_L_CXX
19321 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19322 # into the resulting binary.
19323 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19325 # Set to "yes" if building a shared library automatically hardcodes DIR
19326 # into the library and all subsequent libraries and executables linked
19327 # against it.
19328 hardcode_automatic=$hardcode_automatic_CXX
19330 # Set to yes if linker adds runtime paths of dependent libraries
19331 # to runtime path list.
19332 inherit_rpath=$inherit_rpath_CXX
19334 # Whether libtool must link a program against all its dependency libraries.
19335 link_all_deplibs=$link_all_deplibs_CXX
19337 # Fix the shell variable \$srcfile for the compiler.
19338 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19340 # Set to "yes" if exported symbols are required.
19341 always_export_symbols=$always_export_symbols_CXX
19343 # The commands to list exported symbols.
19344 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19346 # Symbols that should not be listed in the preloaded symbols.
19347 exclude_expsyms=$lt_exclude_expsyms_CXX
19349 # Symbols that must always be exported.
19350 include_expsyms=$lt_include_expsyms_CXX
19352 # Commands necessary for linking programs (against libraries) with templates.
19353 prelink_cmds=$lt_prelink_cmds_CXX
19355 # Specify filename containing input files.
19356 file_list_spec=$lt_file_list_spec_CXX
19358 # How to hardcode a shared library path into an executable.
19359 hardcode_action=$hardcode_action_CXX
19361 # The directories searched by this compiler when creating a shared library.
19362 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19364 # Dependencies to place before and after the objects being linked to
19365 # create a shared library.
19366 predep_objects=$lt_predep_objects_CXX
19367 postdep_objects=$lt_postdep_objects_CXX
19368 predeps=$lt_predeps_CXX
19369 postdeps=$lt_postdeps_CXX
19371 # The library search path used internally by the compiler when linking
19372 # a shared library.
19373 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19375 # ### END LIBTOOL TAG CONFIG: CXX
19376 _LT_EOF
19379 "include":C) test -d include || mkdir include ;;
19380 "src":C)
19381 test -d src || mkdir src
19382 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
19385 esac
19386 done # for ac_tag
19389 as_fn_exit 0
19390 _ACEOF
19391 ac_clean_files=$ac_clean_files_save
19393 test $ac_write_fail = 0 ||
19394 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19397 # configure is writing to config.log, and then calls config.status.
19398 # config.status does its own redirection, appending to config.log.
19399 # Unfortunately, on DOS this fails, as config.log is still kept open
19400 # by configure, so config.status won't be able to write to it; its
19401 # output is simply discarded. So we exec the FD to /dev/null,
19402 # effectively closing config.log, so it can be properly (re)opened and
19403 # appended to by config.status. When coming back to configure, we
19404 # need to make the FD available again.
19405 if test "$no_create" != yes; then
19406 ac_cs_success=:
19407 ac_config_status_args=
19408 test "$silent" = yes &&
19409 ac_config_status_args="$ac_config_status_args --quiet"
19410 exec 5>/dev/null
19411 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19412 exec 5>>config.log
19413 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19414 # would make configure fail if this is the last instruction.
19415 $ac_cs_success || as_fn_exit 1
19417 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19419 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}