Daily bump.
[official-gcc.git] / libffi / configure
blobf0051505d104ac4993eca169f842dd8b92be742a
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 case $host_os in
7766 rhapsody* | darwin1.[012])
7767 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7768 darwin1.*)
7769 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7770 darwin*) # darwin 5.x on
7771 # if running on 10.5 or later, the deployment target defaults
7772 # to the OS version, if on x86, and 10.4, the deployment
7773 # target defaults to 10.4. Don't you love it?
7774 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7775 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7776 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7777 10.[012][,.]*)
7778 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7779 10.*)
7780 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7781 esac
7783 esac
7784 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7785 _lt_dar_single_mod='$single_module'
7787 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7788 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7789 else
7790 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7792 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7793 _lt_dsymutil='~$DSYMUTIL $lib || :'
7794 else
7795 _lt_dsymutil=
7798 esac
7800 ac_ext=c
7801 ac_cpp='$CPP $CPPFLAGS'
7802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7806 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7807 # On Suns, sometimes $CPP names a directory.
7808 if test -n "$CPP" && test -d "$CPP"; then
7809 CPP=
7811 if test -z "$CPP"; then
7812 if ${ac_cv_prog_CPP+:} false; then :
7813 $as_echo_n "(cached) " >&6
7814 else
7815 # Double quotes because CPP needs to be expanded
7816 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7818 ac_preproc_ok=false
7819 for ac_c_preproc_warn_flag in '' yes
7821 # Use a header file that comes with gcc, so configuring glibc
7822 # with a fresh cross-compiler works.
7823 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7824 # <limits.h> exists even on freestanding compilers.
7825 # On the NeXT, cc -E runs the code through the compiler's parser,
7826 # not just through cpp. "Syntax error" is here to catch this case.
7827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828 /* end confdefs.h. */
7829 #ifdef __STDC__
7830 # include <limits.h>
7831 #else
7832 # include <assert.h>
7833 #endif
7834 Syntax error
7835 _ACEOF
7836 if ac_fn_c_try_cpp "$LINENO"; then :
7838 else
7839 # Broken: fails on valid input.
7840 continue
7842 rm -f conftest.err conftest.i conftest.$ac_ext
7844 # OK, works on sane cases. Now check whether nonexistent headers
7845 # can be detected and how.
7846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h. */
7848 #include <ac_nonexistent.h>
7849 _ACEOF
7850 if ac_fn_c_try_cpp "$LINENO"; then :
7851 # Broken: success on invalid input.
7852 continue
7853 else
7854 # Passes both tests.
7855 ac_preproc_ok=:
7856 break
7858 rm -f conftest.err conftest.i conftest.$ac_ext
7860 done
7861 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7862 rm -f conftest.i conftest.err conftest.$ac_ext
7863 if $ac_preproc_ok; then :
7864 break
7867 done
7868 ac_cv_prog_CPP=$CPP
7871 CPP=$ac_cv_prog_CPP
7872 else
7873 ac_cv_prog_CPP=$CPP
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7876 $as_echo "$CPP" >&6; }
7877 ac_preproc_ok=false
7878 for ac_c_preproc_warn_flag in '' yes
7880 # Use a header file that comes with gcc, so configuring glibc
7881 # with a fresh cross-compiler works.
7882 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7883 # <limits.h> exists even on freestanding compilers.
7884 # On the NeXT, cc -E runs the code through the compiler's parser,
7885 # not just through cpp. "Syntax error" is here to catch this case.
7886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887 /* end confdefs.h. */
7888 #ifdef __STDC__
7889 # include <limits.h>
7890 #else
7891 # include <assert.h>
7892 #endif
7893 Syntax error
7894 _ACEOF
7895 if ac_fn_c_try_cpp "$LINENO"; then :
7897 else
7898 # Broken: fails on valid input.
7899 continue
7901 rm -f conftest.err conftest.i conftest.$ac_ext
7903 # OK, works on sane cases. Now check whether nonexistent headers
7904 # can be detected and how.
7905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7906 /* end confdefs.h. */
7907 #include <ac_nonexistent.h>
7908 _ACEOF
7909 if ac_fn_c_try_cpp "$LINENO"; then :
7910 # Broken: success on invalid input.
7911 continue
7912 else
7913 # Passes both tests.
7914 ac_preproc_ok=:
7915 break
7917 rm -f conftest.err conftest.i conftest.$ac_ext
7919 done
7920 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7921 rm -f conftest.i conftest.err conftest.$ac_ext
7922 if $ac_preproc_ok; then :
7924 else
7925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7927 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7928 See \`config.log' for more details" "$LINENO" 5; }
7931 ac_ext=c
7932 ac_cpp='$CPP $CPPFLAGS'
7933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7939 $as_echo_n "checking for ANSI C header files... " >&6; }
7940 if ${ac_cv_header_stdc+:} false; then :
7941 $as_echo_n "(cached) " >&6
7942 else
7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944 /* end confdefs.h. */
7945 #include <stdlib.h>
7946 #include <stdarg.h>
7947 #include <string.h>
7948 #include <float.h>
7951 main ()
7955 return 0;
7957 _ACEOF
7958 if ac_fn_c_try_compile "$LINENO"; then :
7959 ac_cv_header_stdc=yes
7960 else
7961 ac_cv_header_stdc=no
7963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7965 if test $ac_cv_header_stdc = yes; then
7966 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968 /* end confdefs.h. */
7969 #include <string.h>
7971 _ACEOF
7972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7973 $EGREP "memchr" >/dev/null 2>&1; then :
7975 else
7976 ac_cv_header_stdc=no
7978 rm -f conftest*
7982 if test $ac_cv_header_stdc = yes; then
7983 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h. */
7986 #include <stdlib.h>
7988 _ACEOF
7989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7990 $EGREP "free" >/dev/null 2>&1; then :
7992 else
7993 ac_cv_header_stdc=no
7995 rm -f conftest*
7999 if test $ac_cv_header_stdc = yes; then
8000 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8001 if test "$cross_compiling" = yes; then :
8003 else
8004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005 /* end confdefs.h. */
8006 #include <ctype.h>
8007 #include <stdlib.h>
8008 #if ((' ' & 0x0FF) == 0x020)
8009 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8010 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8011 #else
8012 # define ISLOWER(c) \
8013 (('a' <= (c) && (c) <= 'i') \
8014 || ('j' <= (c) && (c) <= 'r') \
8015 || ('s' <= (c) && (c) <= 'z'))
8016 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8017 #endif
8019 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8021 main ()
8023 int i;
8024 for (i = 0; i < 256; i++)
8025 if (XOR (islower (i), ISLOWER (i))
8026 || toupper (i) != TOUPPER (i))
8027 return 2;
8028 return 0;
8030 _ACEOF
8031 if ac_fn_c_try_run "$LINENO"; then :
8033 else
8034 ac_cv_header_stdc=no
8036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8037 conftest.$ac_objext conftest.beam conftest.$ac_ext
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8043 $as_echo "$ac_cv_header_stdc" >&6; }
8044 if test $ac_cv_header_stdc = yes; then
8046 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8050 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8051 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8052 inttypes.h stdint.h unistd.h
8053 do :
8054 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8055 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8057 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8058 cat >>confdefs.h <<_ACEOF
8059 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8060 _ACEOF
8064 done
8067 for ac_header in dlfcn.h
8068 do :
8069 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8071 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8072 cat >>confdefs.h <<_ACEOF
8073 #define HAVE_DLFCN_H 1
8074 _ACEOF
8078 done
8085 # Set options
8089 enable_dlopen=no
8092 enable_win32_dll=no
8095 # Check whether --enable-shared was given.
8096 if test "${enable_shared+set}" = set; then :
8097 enableval=$enable_shared; p=${PACKAGE-default}
8098 case $enableval in
8099 yes) enable_shared=yes ;;
8100 no) enable_shared=no ;;
8102 enable_shared=no
8103 # Look at the argument we got. We use all the common list separators.
8104 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8105 for pkg in $enableval; do
8106 IFS="$lt_save_ifs"
8107 if test "X$pkg" = "X$p"; then
8108 enable_shared=yes
8110 done
8111 IFS="$lt_save_ifs"
8113 esac
8114 else
8115 enable_shared=yes
8126 # Check whether --enable-static was given.
8127 if test "${enable_static+set}" = set; then :
8128 enableval=$enable_static; p=${PACKAGE-default}
8129 case $enableval in
8130 yes) enable_static=yes ;;
8131 no) enable_static=no ;;
8133 enable_static=no
8134 # Look at the argument we got. We use all the common list separators.
8135 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8136 for pkg in $enableval; do
8137 IFS="$lt_save_ifs"
8138 if test "X$pkg" = "X$p"; then
8139 enable_static=yes
8141 done
8142 IFS="$lt_save_ifs"
8144 esac
8145 else
8146 enable_static=yes
8158 # Check whether --with-pic was given.
8159 if test "${with_pic+set}" = set; then :
8160 withval=$with_pic; pic_mode="$withval"
8161 else
8162 pic_mode=default
8166 test -z "$pic_mode" && pic_mode=default
8174 # Check whether --enable-fast-install was given.
8175 if test "${enable_fast_install+set}" = set; then :
8176 enableval=$enable_fast_install; p=${PACKAGE-default}
8177 case $enableval in
8178 yes) enable_fast_install=yes ;;
8179 no) enable_fast_install=no ;;
8181 enable_fast_install=no
8182 # Look at the argument we got. We use all the common list separators.
8183 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8184 for pkg in $enableval; do
8185 IFS="$lt_save_ifs"
8186 if test "X$pkg" = "X$p"; then
8187 enable_fast_install=yes
8189 done
8190 IFS="$lt_save_ifs"
8192 esac
8193 else
8194 enable_fast_install=yes
8207 # This can be used to rebuild libtool when needed
8208 LIBTOOL_DEPS="$ltmain"
8210 # Always use our own libtool.
8211 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8238 test -z "$LN_S" && LN_S="ln -s"
8253 if test -n "${ZSH_VERSION+set}" ; then
8254 setopt NO_GLOB_SUBST
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8258 $as_echo_n "checking for objdir... " >&6; }
8259 if ${lt_cv_objdir+:} false; then :
8260 $as_echo_n "(cached) " >&6
8261 else
8262 rm -f .libs 2>/dev/null
8263 mkdir .libs 2>/dev/null
8264 if test -d .libs; then
8265 lt_cv_objdir=.libs
8266 else
8267 # MS-DOS does not allow filenames that begin with a dot.
8268 lt_cv_objdir=_libs
8270 rmdir .libs 2>/dev/null
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8273 $as_echo "$lt_cv_objdir" >&6; }
8274 objdir=$lt_cv_objdir
8280 cat >>confdefs.h <<_ACEOF
8281 #define LT_OBJDIR "$lt_cv_objdir/"
8282 _ACEOF
8287 case $host_os in
8288 aix3*)
8289 # AIX sometimes has problems with the GCC collect2 program. For some
8290 # reason, if we set the COLLECT_NAMES environment variable, the problems
8291 # vanish in a puff of smoke.
8292 if test "X${COLLECT_NAMES+set}" != Xset; then
8293 COLLECT_NAMES=
8294 export COLLECT_NAMES
8297 esac
8299 # Global variables:
8300 ofile=libtool
8301 can_build_shared=yes
8303 # All known linkers require a `.a' archive for static linking (except MSVC,
8304 # which needs '.lib').
8305 libext=a
8307 with_gnu_ld="$lt_cv_prog_gnu_ld"
8309 old_CC="$CC"
8310 old_CFLAGS="$CFLAGS"
8312 # Set sane defaults for various variables
8313 test -z "$CC" && CC=cc
8314 test -z "$LTCC" && LTCC=$CC
8315 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8316 test -z "$LD" && LD=ld
8317 test -z "$ac_objext" && ac_objext=o
8319 for cc_temp in $compiler""; do
8320 case $cc_temp in
8321 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8322 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8323 \-*) ;;
8324 *) break;;
8325 esac
8326 done
8327 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8330 # Only perform the check for file, if the check method requires it
8331 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8332 case $deplibs_check_method in
8333 file_magic*)
8334 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8336 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8337 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8338 $as_echo_n "(cached) " >&6
8339 else
8340 case $MAGIC_CMD in
8341 [\\/*] | ?:[\\/]*)
8342 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8345 lt_save_MAGIC_CMD="$MAGIC_CMD"
8346 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8347 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8348 for ac_dir in $ac_dummy; do
8349 IFS="$lt_save_ifs"
8350 test -z "$ac_dir" && ac_dir=.
8351 if test -f $ac_dir/${ac_tool_prefix}file; then
8352 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8353 if test -n "$file_magic_test_file"; then
8354 case $deplibs_check_method in
8355 "file_magic "*)
8356 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8357 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8358 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8359 $EGREP "$file_magic_regex" > /dev/null; then
8361 else
8362 cat <<_LT_EOF 1>&2
8364 *** Warning: the command libtool uses to detect shared libraries,
8365 *** $file_magic_cmd, produces output that libtool cannot recognize.
8366 *** The result is that libtool may fail to recognize shared libraries
8367 *** as such. This will affect the creation of libtool libraries that
8368 *** depend on shared libraries, but programs linked with such libtool
8369 *** libraries will work regardless of this problem. Nevertheless, you
8370 *** may want to report the problem to your system manager and/or to
8371 *** bug-libtool@gnu.org
8373 _LT_EOF
8374 fi ;;
8375 esac
8377 break
8379 done
8380 IFS="$lt_save_ifs"
8381 MAGIC_CMD="$lt_save_MAGIC_CMD"
8383 esac
8386 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8387 if test -n "$MAGIC_CMD"; then
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8389 $as_echo "$MAGIC_CMD" >&6; }
8390 else
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392 $as_echo "no" >&6; }
8399 if test -z "$lt_cv_path_MAGIC_CMD"; then
8400 if test -n "$ac_tool_prefix"; then
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8402 $as_echo_n "checking for file... " >&6; }
8403 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8404 $as_echo_n "(cached) " >&6
8405 else
8406 case $MAGIC_CMD in
8407 [\\/*] | ?:[\\/]*)
8408 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8411 lt_save_MAGIC_CMD="$MAGIC_CMD"
8412 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8413 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8414 for ac_dir in $ac_dummy; do
8415 IFS="$lt_save_ifs"
8416 test -z "$ac_dir" && ac_dir=.
8417 if test -f $ac_dir/file; then
8418 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8419 if test -n "$file_magic_test_file"; then
8420 case $deplibs_check_method in
8421 "file_magic "*)
8422 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8423 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8424 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8425 $EGREP "$file_magic_regex" > /dev/null; then
8427 else
8428 cat <<_LT_EOF 1>&2
8430 *** Warning: the command libtool uses to detect shared libraries,
8431 *** $file_magic_cmd, produces output that libtool cannot recognize.
8432 *** The result is that libtool may fail to recognize shared libraries
8433 *** as such. This will affect the creation of libtool libraries that
8434 *** depend on shared libraries, but programs linked with such libtool
8435 *** libraries will work regardless of this problem. Nevertheless, you
8436 *** may want to report the problem to your system manager and/or to
8437 *** bug-libtool@gnu.org
8439 _LT_EOF
8440 fi ;;
8441 esac
8443 break
8445 done
8446 IFS="$lt_save_ifs"
8447 MAGIC_CMD="$lt_save_MAGIC_CMD"
8449 esac
8452 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8453 if test -n "$MAGIC_CMD"; then
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8455 $as_echo "$MAGIC_CMD" >&6; }
8456 else
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8458 $as_echo "no" >&6; }
8462 else
8463 MAGIC_CMD=:
8469 esac
8471 # Use C for the default configuration in the libtool script
8473 lt_save_CC="$CC"
8474 ac_ext=c
8475 ac_cpp='$CPP $CPPFLAGS'
8476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8481 # Source file extension for C test sources.
8482 ac_ext=c
8484 # Object file extension for compiled C test sources.
8485 objext=o
8486 objext=$objext
8488 # Code to be used in simple compile tests
8489 lt_simple_compile_test_code="int some_variable = 0;"
8491 # Code to be used in simple link tests
8492 lt_simple_link_test_code='int main(){return(0);}'
8500 # If no C compiler was specified, use CC.
8501 LTCC=${LTCC-"$CC"}
8503 # If no C compiler flags were specified, use CFLAGS.
8504 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8506 # Allow CC to be a program name with arguments.
8507 compiler=$CC
8509 # Save the default compiler, since it gets overwritten when the other
8510 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8511 compiler_DEFAULT=$CC
8513 # save warnings/boilerplate of simple test code
8514 ac_outfile=conftest.$ac_objext
8515 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8516 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8517 _lt_compiler_boilerplate=`cat conftest.err`
8518 $RM conftest*
8520 ac_outfile=conftest.$ac_objext
8521 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8522 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8523 _lt_linker_boilerplate=`cat conftest.err`
8524 $RM -r conftest*
8527 ## CAVEAT EMPTOR:
8528 ## There is no encapsulation within the following macros, do not change
8529 ## the running order or otherwise move them around unless you know exactly
8530 ## what you are doing...
8531 if test -n "$compiler"; then
8533 lt_prog_compiler_no_builtin_flag=
8535 if test "$GCC" = yes; then
8536 case $cc_basename in
8537 nvcc*)
8538 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8540 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8541 esac
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8544 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8545 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8546 $as_echo_n "(cached) " >&6
8547 else
8548 lt_cv_prog_compiler_rtti_exceptions=no
8549 ac_outfile=conftest.$ac_objext
8550 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8551 lt_compiler_flag="-fno-rtti -fno-exceptions"
8552 # Insert the option either (1) after the last *FLAGS variable, or
8553 # (2) before a word containing "conftest.", or (3) at the end.
8554 # Note that $ac_compile itself does not contain backslashes and begins
8555 # with a dollar sign (not a hyphen), so the echo should work correctly.
8556 # The option is referenced via a variable to avoid confusing sed.
8557 lt_compile=`echo "$ac_compile" | $SED \
8558 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8559 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8560 -e 's:$: $lt_compiler_flag:'`
8561 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8562 (eval "$lt_compile" 2>conftest.err)
8563 ac_status=$?
8564 cat conftest.err >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 if (exit $ac_status) && test -s "$ac_outfile"; then
8567 # The compiler can only warn and ignore the option if not recognized
8568 # So say no if there are warnings other than the usual output.
8569 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8570 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8571 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8572 lt_cv_prog_compiler_rtti_exceptions=yes
8575 $RM conftest*
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8579 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8581 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8582 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8583 else
8594 lt_prog_compiler_wl=
8595 lt_prog_compiler_pic=
8596 lt_prog_compiler_static=
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8599 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8601 if test "$GCC" = yes; then
8602 lt_prog_compiler_wl='-Wl,'
8603 lt_prog_compiler_static='-static'
8605 case $host_os in
8606 aix*)
8607 # All AIX code is PIC.
8608 if test "$host_cpu" = ia64; then
8609 # AIX 5 now supports IA64 processor
8610 lt_prog_compiler_static='-Bstatic'
8612 lt_prog_compiler_pic='-fPIC'
8615 amigaos*)
8616 case $host_cpu in
8617 powerpc)
8618 # see comment about AmigaOS4 .so support
8619 lt_prog_compiler_pic='-fPIC'
8621 m68k)
8622 # FIXME: we need at least 68020 code to build shared libraries, but
8623 # adding the `-m68020' flag to GCC prevents building anything better,
8624 # like `-m68040'.
8625 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8627 esac
8630 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8631 # PIC is the default for these OSes.
8634 mingw* | cygwin* | pw32* | os2* | cegcc*)
8635 # This hack is so that the source file can tell whether it is being
8636 # built for inclusion in a dll (and should export symbols for example).
8637 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8638 # (--disable-auto-import) libraries
8639 lt_prog_compiler_pic='-DDLL_EXPORT'
8642 darwin* | rhapsody*)
8643 # PIC is the default on this platform
8644 # Common symbols not allowed in MH_DYLIB files
8645 lt_prog_compiler_pic='-fno-common'
8648 haiku*)
8649 # PIC is the default for Haiku.
8650 # The "-static" flag exists, but is broken.
8651 lt_prog_compiler_static=
8654 hpux*)
8655 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8656 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8657 # sets the default TLS model and affects inlining.
8658 case $host_cpu in
8659 hppa*64*)
8660 # +Z the default
8663 lt_prog_compiler_pic='-fPIC'
8665 esac
8668 interix[3-9]*)
8669 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8670 # Instead, we relocate shared libraries at runtime.
8673 msdosdjgpp*)
8674 # Just because we use GCC doesn't mean we suddenly get shared libraries
8675 # on systems that don't support them.
8676 lt_prog_compiler_can_build_shared=no
8677 enable_shared=no
8680 *nto* | *qnx*)
8681 # QNX uses GNU C++, but need to define -shared option too, otherwise
8682 # it will coredump.
8683 lt_prog_compiler_pic='-fPIC -shared'
8686 sysv4*MP*)
8687 if test -d /usr/nec; then
8688 lt_prog_compiler_pic=-Kconform_pic
8693 lt_prog_compiler_pic='-fPIC'
8695 esac
8697 case $cc_basename in
8698 nvcc*) # Cuda Compiler Driver 2.2
8699 lt_prog_compiler_wl='-Xlinker '
8700 lt_prog_compiler_pic='-Xcompiler -fPIC'
8702 esac
8703 else
8704 # PORTME Check for flag to pass linker flags through the system compiler.
8705 case $host_os in
8706 aix*)
8707 lt_prog_compiler_wl='-Wl,'
8708 if test "$host_cpu" = ia64; then
8709 # AIX 5 now supports IA64 processor
8710 lt_prog_compiler_static='-Bstatic'
8711 else
8712 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8716 mingw* | cygwin* | pw32* | os2* | cegcc*)
8717 # This hack is so that the source file can tell whether it is being
8718 # built for inclusion in a dll (and should export symbols for example).
8719 lt_prog_compiler_pic='-DDLL_EXPORT'
8722 hpux9* | hpux10* | hpux11*)
8723 lt_prog_compiler_wl='-Wl,'
8724 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8725 # not for PA HP-UX.
8726 case $host_cpu in
8727 hppa*64*|ia64*)
8728 # +Z the default
8731 lt_prog_compiler_pic='+Z'
8733 esac
8734 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8735 lt_prog_compiler_static='${wl}-a ${wl}archive'
8738 irix5* | irix6* | nonstopux*)
8739 lt_prog_compiler_wl='-Wl,'
8740 # PIC (with -KPIC) is the default.
8741 lt_prog_compiler_static='-non_shared'
8744 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8745 case $cc_basename in
8746 # old Intel for x86_64 which still supported -KPIC.
8747 ecc*)
8748 lt_prog_compiler_wl='-Wl,'
8749 lt_prog_compiler_pic='-KPIC'
8750 lt_prog_compiler_static='-static'
8752 # icc used to be incompatible with GCC.
8753 # ICC 10 doesn't accept -KPIC any more.
8754 icc* | ifort*)
8755 lt_prog_compiler_wl='-Wl,'
8756 lt_prog_compiler_pic='-fPIC'
8757 lt_prog_compiler_static='-static'
8759 # Lahey Fortran 8.1.
8760 lf95*)
8761 lt_prog_compiler_wl='-Wl,'
8762 lt_prog_compiler_pic='--shared'
8763 lt_prog_compiler_static='--static'
8765 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8766 # Portland Group compilers (*not* the Pentium gcc compiler,
8767 # which looks to be a dead project)
8768 lt_prog_compiler_wl='-Wl,'
8769 lt_prog_compiler_pic='-fpic'
8770 lt_prog_compiler_static='-Bstatic'
8772 ccc*)
8773 lt_prog_compiler_wl='-Wl,'
8774 # All Alpha code is PIC.
8775 lt_prog_compiler_static='-non_shared'
8777 xl* | bgxl* | bgf* | mpixl*)
8778 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8779 lt_prog_compiler_wl='-Wl,'
8780 lt_prog_compiler_pic='-qpic'
8781 lt_prog_compiler_static='-qstaticlink'
8784 case `$CC -V 2>&1 | sed 5q` in
8785 *Sun\ F* | *Sun*Fortran*)
8786 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8787 lt_prog_compiler_pic='-KPIC'
8788 lt_prog_compiler_static='-Bstatic'
8789 lt_prog_compiler_wl=''
8791 *Sun\ C*)
8792 # Sun C 5.9
8793 lt_prog_compiler_pic='-KPIC'
8794 lt_prog_compiler_static='-Bstatic'
8795 lt_prog_compiler_wl='-Wl,'
8797 esac
8799 esac
8802 newsos6)
8803 lt_prog_compiler_pic='-KPIC'
8804 lt_prog_compiler_static='-Bstatic'
8807 *nto* | *qnx*)
8808 # QNX uses GNU C++, but need to define -shared option too, otherwise
8809 # it will coredump.
8810 lt_prog_compiler_pic='-fPIC -shared'
8813 osf3* | osf4* | osf5*)
8814 lt_prog_compiler_wl='-Wl,'
8815 # All OSF/1 code is PIC.
8816 lt_prog_compiler_static='-non_shared'
8819 rdos*)
8820 lt_prog_compiler_static='-non_shared'
8823 solaris*)
8824 lt_prog_compiler_pic='-KPIC'
8825 lt_prog_compiler_static='-Bstatic'
8826 case $cc_basename in
8827 f77* | f90* | f95*)
8828 lt_prog_compiler_wl='-Qoption ld ';;
8830 lt_prog_compiler_wl='-Wl,';;
8831 esac
8834 sunos4*)
8835 lt_prog_compiler_wl='-Qoption ld '
8836 lt_prog_compiler_pic='-PIC'
8837 lt_prog_compiler_static='-Bstatic'
8840 sysv4 | sysv4.2uw2* | sysv4.3*)
8841 lt_prog_compiler_wl='-Wl,'
8842 lt_prog_compiler_pic='-KPIC'
8843 lt_prog_compiler_static='-Bstatic'
8846 sysv4*MP*)
8847 if test -d /usr/nec ;then
8848 lt_prog_compiler_pic='-Kconform_pic'
8849 lt_prog_compiler_static='-Bstatic'
8853 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8854 lt_prog_compiler_wl='-Wl,'
8855 lt_prog_compiler_pic='-KPIC'
8856 lt_prog_compiler_static='-Bstatic'
8859 unicos*)
8860 lt_prog_compiler_wl='-Wl,'
8861 lt_prog_compiler_can_build_shared=no
8864 uts4*)
8865 lt_prog_compiler_pic='-pic'
8866 lt_prog_compiler_static='-Bstatic'
8870 lt_prog_compiler_can_build_shared=no
8872 esac
8875 case $host_os in
8876 # For platforms which do not support PIC, -DPIC is meaningless:
8877 *djgpp*)
8878 lt_prog_compiler_pic=
8881 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8883 esac
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8885 $as_echo "$lt_prog_compiler_pic" >&6; }
8893 # Check to make sure the PIC flag actually works.
8895 if test -n "$lt_prog_compiler_pic"; then
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8897 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8898 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8899 $as_echo_n "(cached) " >&6
8900 else
8901 lt_cv_prog_compiler_pic_works=no
8902 ac_outfile=conftest.$ac_objext
8903 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8904 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8905 # Insert the option either (1) after the last *FLAGS variable, or
8906 # (2) before a word containing "conftest.", or (3) at the end.
8907 # Note that $ac_compile itself does not contain backslashes and begins
8908 # with a dollar sign (not a hyphen), so the echo should work correctly.
8909 # The option is referenced via a variable to avoid confusing sed.
8910 lt_compile=`echo "$ac_compile" | $SED \
8911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8913 -e 's:$: $lt_compiler_flag:'`
8914 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8915 (eval "$lt_compile" 2>conftest.err)
8916 ac_status=$?
8917 cat conftest.err >&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 if (exit $ac_status) && test -s "$ac_outfile"; then
8920 # The compiler can only warn and ignore the option if not recognized
8921 # So say no if there are warnings other than the usual output.
8922 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8924 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8925 lt_cv_prog_compiler_pic_works=yes
8928 $RM conftest*
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8932 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8934 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8935 case $lt_prog_compiler_pic in
8936 "" | " "*) ;;
8937 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8938 esac
8939 else
8940 lt_prog_compiler_pic=
8941 lt_prog_compiler_can_build_shared=no
8952 # Check to make sure the static flag actually works.
8954 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8956 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8957 if ${lt_cv_prog_compiler_static_works+:} false; then :
8958 $as_echo_n "(cached) " >&6
8959 else
8960 lt_cv_prog_compiler_static_works=no
8961 save_LDFLAGS="$LDFLAGS"
8962 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8963 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8964 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8965 # The linker can only warn and ignore the option if not recognized
8966 # So say no if there are warnings
8967 if test -s conftest.err; then
8968 # Append any errors to the config.log.
8969 cat conftest.err 1>&5
8970 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8971 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8972 if diff conftest.exp conftest.er2 >/dev/null; then
8973 lt_cv_prog_compiler_static_works=yes
8975 else
8976 lt_cv_prog_compiler_static_works=yes
8979 $RM -r conftest*
8980 LDFLAGS="$save_LDFLAGS"
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8984 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8986 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8988 else
8989 lt_prog_compiler_static=
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8999 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9000 if ${lt_cv_prog_compiler_c_o+:} false; then :
9001 $as_echo_n "(cached) " >&6
9002 else
9003 lt_cv_prog_compiler_c_o=no
9004 $RM -r conftest 2>/dev/null
9005 mkdir conftest
9006 cd conftest
9007 mkdir out
9008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9010 lt_compiler_flag="-o out/conftest2.$ac_objext"
9011 # Insert the option either (1) after the last *FLAGS variable, or
9012 # (2) before a word containing "conftest.", or (3) at the end.
9013 # Note that $ac_compile itself does not contain backslashes and begins
9014 # with a dollar sign (not a hyphen), so the echo should work correctly.
9015 lt_compile=`echo "$ac_compile" | $SED \
9016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9018 -e 's:$: $lt_compiler_flag:'`
9019 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9020 (eval "$lt_compile" 2>out/conftest.err)
9021 ac_status=$?
9022 cat out/conftest.err >&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9025 then
9026 # The compiler can only warn and ignore the option if not recognized
9027 # So say no if there are warnings
9028 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9029 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9030 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9031 lt_cv_prog_compiler_c_o=yes
9034 chmod u+w . 2>&5
9035 $RM conftest*
9036 # SGI C++ compiler will create directory out/ii_files/ for
9037 # template instantiation
9038 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9039 $RM out/* && rmdir out
9040 cd ..
9041 $RM -r conftest
9042 $RM conftest*
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9046 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9054 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9055 if ${lt_cv_prog_compiler_c_o+:} false; then :
9056 $as_echo_n "(cached) " >&6
9057 else
9058 lt_cv_prog_compiler_c_o=no
9059 $RM -r conftest 2>/dev/null
9060 mkdir conftest
9061 cd conftest
9062 mkdir out
9063 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9065 lt_compiler_flag="-o out/conftest2.$ac_objext"
9066 # Insert the option either (1) after the last *FLAGS variable, or
9067 # (2) before a word containing "conftest.", or (3) at the end.
9068 # Note that $ac_compile itself does not contain backslashes and begins
9069 # with a dollar sign (not a hyphen), so the echo should work correctly.
9070 lt_compile=`echo "$ac_compile" | $SED \
9071 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9072 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9073 -e 's:$: $lt_compiler_flag:'`
9074 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9075 (eval "$lt_compile" 2>out/conftest.err)
9076 ac_status=$?
9077 cat out/conftest.err >&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9080 then
9081 # The compiler can only warn and ignore the option if not recognized
9082 # So say no if there are warnings
9083 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9084 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9085 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9086 lt_cv_prog_compiler_c_o=yes
9089 chmod u+w . 2>&5
9090 $RM conftest*
9091 # SGI C++ compiler will create directory out/ii_files/ for
9092 # template instantiation
9093 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9094 $RM out/* && rmdir out
9095 cd ..
9096 $RM -r conftest
9097 $RM conftest*
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9101 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9106 hard_links="nottested"
9107 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9108 # do not overwrite the value of need_locks provided by the user
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9110 $as_echo_n "checking if we can lock with hard links... " >&6; }
9111 hard_links=yes
9112 $RM conftest*
9113 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9114 touch conftest.a
9115 ln conftest.a conftest.b 2>&5 || hard_links=no
9116 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9118 $as_echo "$hard_links" >&6; }
9119 if test "$hard_links" = no; then
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9121 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9122 need_locks=warn
9124 else
9125 need_locks=no
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9134 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9136 runpath_var=
9137 allow_undefined_flag=
9138 always_export_symbols=no
9139 archive_cmds=
9140 archive_expsym_cmds=
9141 compiler_needs_object=no
9142 enable_shared_with_static_runtimes=no
9143 export_dynamic_flag_spec=
9144 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9145 hardcode_automatic=no
9146 hardcode_direct=no
9147 hardcode_direct_absolute=no
9148 hardcode_libdir_flag_spec=
9149 hardcode_libdir_flag_spec_ld=
9150 hardcode_libdir_separator=
9151 hardcode_minus_L=no
9152 hardcode_shlibpath_var=unsupported
9153 inherit_rpath=no
9154 link_all_deplibs=unknown
9155 module_cmds=
9156 module_expsym_cmds=
9157 old_archive_from_new_cmds=
9158 old_archive_from_expsyms_cmds=
9159 thread_safe_flag_spec=
9160 whole_archive_flag_spec=
9161 # include_expsyms should be a list of space-separated symbols to be *always*
9162 # included in the symbol list
9163 include_expsyms=
9164 # exclude_expsyms can be an extended regexp of symbols to exclude
9165 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9166 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9167 # as well as any symbol that contains `d'.
9168 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9169 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9170 # platforms (ab)use it in PIC code, but their linkers get confused if
9171 # the symbol is explicitly referenced. Since portable code cannot
9172 # rely on this symbol name, it's probably fine to never include it in
9173 # preloaded symbol tables.
9174 # Exclude shared library initialization/finalization symbols.
9175 extract_expsyms_cmds=
9177 case $host_os in
9178 cygwin* | mingw* | pw32* | cegcc*)
9179 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9180 # When not using gcc, we currently assume that we are using
9181 # Microsoft Visual C++.
9182 if test "$GCC" != yes; then
9183 with_gnu_ld=no
9186 interix*)
9187 # we just hope/assume this is gcc and not c89 (= MSVC++)
9188 with_gnu_ld=yes
9190 openbsd*)
9191 with_gnu_ld=no
9193 esac
9195 ld_shlibs=yes
9197 # On some targets, GNU ld is compatible enough with the native linker
9198 # that we're better off using the native interface for both.
9199 lt_use_gnu_ld_interface=no
9200 if test "$with_gnu_ld" = yes; then
9201 case $host_os in
9202 aix*)
9203 # The AIX port of GNU ld has always aspired to compatibility
9204 # with the native linker. However, as the warning in the GNU ld
9205 # block says, versions before 2.19.5* couldn't really create working
9206 # shared libraries, regardless of the interface used.
9207 case `$LD -v 2>&1` in
9208 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9209 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9210 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9212 lt_use_gnu_ld_interface=yes
9214 esac
9217 lt_use_gnu_ld_interface=yes
9219 esac
9222 if test "$lt_use_gnu_ld_interface" = yes; then
9223 # If archive_cmds runs LD, not CC, wlarc should be empty
9224 wlarc='${wl}'
9226 # Set some defaults for GNU ld with shared library support. These
9227 # are reset later if shared libraries are not supported. Putting them
9228 # here allows them to be overridden if necessary.
9229 runpath_var=LD_RUN_PATH
9230 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9231 export_dynamic_flag_spec='${wl}--export-dynamic'
9232 # ancient GNU ld didn't support --whole-archive et. al.
9233 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9234 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9235 else
9236 whole_archive_flag_spec=
9238 supports_anon_versioning=no
9239 case `$LD -v 2>&1` in
9240 *GNU\ gold*) supports_anon_versioning=yes ;;
9241 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9242 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9243 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9244 *\ 2.11.*) ;; # other 2.11 versions
9245 *) supports_anon_versioning=yes ;;
9246 esac
9248 # See if GNU ld supports shared libraries.
9249 case $host_os in
9250 aix[3-9]*)
9251 # On AIX/PPC, the GNU linker is very broken
9252 if test "$host_cpu" != ia64; then
9253 ld_shlibs=no
9254 cat <<_LT_EOF 1>&2
9256 *** Warning: the GNU linker, at least up to release 2.19, is reported
9257 *** to be unable to reliably create shared libraries on AIX.
9258 *** Therefore, libtool is disabling shared libraries support. If you
9259 *** really care for shared libraries, you may want to install binutils
9260 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9261 *** You will then need to restart the configuration process.
9263 _LT_EOF
9267 amigaos*)
9268 case $host_cpu in
9269 powerpc)
9270 # see comment about AmigaOS4 .so support
9271 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9272 archive_expsym_cmds=''
9274 m68k)
9275 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)'
9276 hardcode_libdir_flag_spec='-L$libdir'
9277 hardcode_minus_L=yes
9279 esac
9282 beos*)
9283 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9284 allow_undefined_flag=unsupported
9285 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9286 # support --undefined. This deserves some investigation. FIXME
9287 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9288 else
9289 ld_shlibs=no
9293 cygwin* | mingw* | pw32* | cegcc*)
9294 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9295 # as there is no search path for DLLs.
9296 hardcode_libdir_flag_spec='-L$libdir'
9297 export_dynamic_flag_spec='${wl}--export-all-symbols'
9298 allow_undefined_flag=unsupported
9299 always_export_symbols=no
9300 enable_shared_with_static_runtimes=yes
9301 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9303 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9304 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9305 # If the export-symbols file already is a .def file (1st line
9306 # is EXPORTS), use it as is; otherwise, prepend...
9307 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9308 cp $export_symbols $output_objdir/$soname.def;
9309 else
9310 echo EXPORTS > $output_objdir/$soname.def;
9311 cat $export_symbols >> $output_objdir/$soname.def;
9313 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9314 else
9315 ld_shlibs=no
9319 haiku*)
9320 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9321 link_all_deplibs=yes
9324 interix[3-9]*)
9325 hardcode_direct=no
9326 hardcode_shlibpath_var=no
9327 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9328 export_dynamic_flag_spec='${wl}-E'
9329 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9330 # Instead, shared libraries are loaded at an image base (0x10000000 by
9331 # default) and relocated if they conflict, which is a slow very memory
9332 # consuming and fragmenting process. To avoid this, we pick a random,
9333 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9334 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9335 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9336 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'
9339 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9340 tmp_diet=no
9341 if test "$host_os" = linux-dietlibc; then
9342 case $cc_basename in
9343 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9344 esac
9346 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9347 && test "$tmp_diet" = no
9348 then
9349 tmp_addflag=' $pic_flag'
9350 tmp_sharedflag='-shared'
9351 case $cc_basename,$host_cpu in
9352 pgcc*) # Portland Group C compiler
9353 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'
9354 tmp_addflag=' $pic_flag'
9356 pgf77* | pgf90* | pgf95* | pgfortran*)
9357 # Portland Group f77 and f90 compilers
9358 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'
9359 tmp_addflag=' $pic_flag -Mnomain' ;;
9360 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9361 tmp_addflag=' -i_dynamic' ;;
9362 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9363 tmp_addflag=' -i_dynamic -nofor_main' ;;
9364 ifc* | ifort*) # Intel Fortran compiler
9365 tmp_addflag=' -nofor_main' ;;
9366 lf95*) # Lahey Fortran 8.1
9367 whole_archive_flag_spec=
9368 tmp_sharedflag='--shared' ;;
9369 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9370 tmp_sharedflag='-qmkshrobj'
9371 tmp_addflag= ;;
9372 nvcc*) # Cuda Compiler Driver 2.2
9373 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'
9374 compiler_needs_object=yes
9376 esac
9377 case `$CC -V 2>&1 | sed 5q` in
9378 *Sun\ C*) # Sun C 5.9
9379 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'
9380 compiler_needs_object=yes
9381 tmp_sharedflag='-G' ;;
9382 *Sun\ F*) # Sun Fortran 8.3
9383 tmp_sharedflag='-G' ;;
9384 esac
9385 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9387 if test "x$supports_anon_versioning" = xyes; then
9388 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9389 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9390 echo "local: *; };" >> $output_objdir/$libname.ver~
9391 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9394 case $cc_basename in
9395 xlf* | bgf* | bgxlf* | mpixlf*)
9396 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9397 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9398 hardcode_libdir_flag_spec=
9399 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9400 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9401 if test "x$supports_anon_versioning" = xyes; then
9402 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9403 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9404 echo "local: *; };" >> $output_objdir/$libname.ver~
9405 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9408 esac
9409 else
9410 ld_shlibs=no
9414 netbsd*)
9415 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9416 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9417 wlarc=
9418 else
9419 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9420 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9424 solaris*)
9425 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9426 ld_shlibs=no
9427 cat <<_LT_EOF 1>&2
9429 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9430 *** create shared libraries on Solaris systems. Therefore, libtool
9431 *** is disabling shared libraries support. We urge you to upgrade GNU
9432 *** binutils to release 2.9.1 or newer. Another option is to modify
9433 *** your PATH or compiler configuration so that the native linker is
9434 *** used, and then restart.
9436 _LT_EOF
9437 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9438 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9439 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9440 else
9441 ld_shlibs=no
9445 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9446 case `$LD -v 2>&1` in
9447 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9448 ld_shlibs=no
9449 cat <<_LT_EOF 1>&2
9451 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9452 *** reliably create shared libraries on SCO systems. Therefore, libtool
9453 *** is disabling shared libraries support. We urge you to upgrade GNU
9454 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9455 *** your PATH or compiler configuration so that the native linker is
9456 *** used, and then restart.
9458 _LT_EOF
9461 # For security reasons, it is highly recommended that you always
9462 # use absolute paths for naming shared libraries, and exclude the
9463 # DT_RUNPATH tag from executables and libraries. But doing so
9464 # requires that you compile everything twice, which is a pain.
9465 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9466 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9467 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9468 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9469 else
9470 ld_shlibs=no
9473 esac
9476 sunos4*)
9477 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9478 wlarc=
9479 hardcode_direct=yes
9480 hardcode_shlibpath_var=no
9484 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9485 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9486 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9487 else
9488 ld_shlibs=no
9491 esac
9493 if test "$ld_shlibs" = no; then
9494 runpath_var=
9495 hardcode_libdir_flag_spec=
9496 export_dynamic_flag_spec=
9497 whole_archive_flag_spec=
9499 else
9500 # PORTME fill in a description of your system's linker (not GNU ld)
9501 case $host_os in
9502 aix3*)
9503 allow_undefined_flag=unsupported
9504 always_export_symbols=yes
9505 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'
9506 # Note: this linker hardcodes the directories in LIBPATH if there
9507 # are no directories specified by -L.
9508 hardcode_minus_L=yes
9509 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9510 # Neither direct hardcoding nor static linking is supported with a
9511 # broken collect2.
9512 hardcode_direct=unsupported
9516 aix[4-9]*)
9517 if test "$host_cpu" = ia64; then
9518 # On IA64, the linker does run time linking by default, so we don't
9519 # have to do anything special.
9520 aix_use_runtimelinking=no
9521 exp_sym_flag='-Bexport'
9522 no_entry_flag=""
9523 else
9524 # If we're using GNU nm, then we don't want the "-C" option.
9525 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9526 # Also, AIX nm treats weak defined symbols like other global
9527 # defined symbols, whereas GNU nm marks them as "W".
9528 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9529 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'
9530 else
9531 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'
9533 aix_use_runtimelinking=no
9535 # Test if we are trying to use run time linking or normal
9536 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9537 # need to do runtime linking.
9538 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9539 for ld_flag in $LDFLAGS; do
9540 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9541 aix_use_runtimelinking=yes
9542 break
9544 done
9546 esac
9548 exp_sym_flag='-bexport'
9549 no_entry_flag='-bnoentry'
9552 # When large executables or shared objects are built, AIX ld can
9553 # have problems creating the table of contents. If linking a library
9554 # or program results in "error TOC overflow" add -mminimal-toc to
9555 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9556 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9558 archive_cmds=''
9559 hardcode_direct=yes
9560 hardcode_direct_absolute=yes
9561 hardcode_libdir_separator=':'
9562 link_all_deplibs=yes
9563 file_list_spec='${wl}-f,'
9565 if test "$GCC" = yes; then
9566 case $host_os in aix4.[012]|aix4.[012].*)
9567 # We only want to do this on AIX 4.2 and lower, the check
9568 # below for broken collect2 doesn't work under 4.3+
9569 collect2name=`${CC} -print-prog-name=collect2`
9570 if test -f "$collect2name" &&
9571 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9572 then
9573 # We have reworked collect2
9575 else
9576 # We have old collect2
9577 hardcode_direct=unsupported
9578 # It fails to find uninstalled libraries when the uninstalled
9579 # path is not listed in the libpath. Setting hardcode_minus_L
9580 # to unsupported forces relinking
9581 hardcode_minus_L=yes
9582 hardcode_libdir_flag_spec='-L$libdir'
9583 hardcode_libdir_separator=
9586 esac
9587 shared_flag='-shared'
9588 if test "$aix_use_runtimelinking" = yes; then
9589 shared_flag="$shared_flag "'${wl}-G'
9591 else
9592 # not using gcc
9593 if test "$host_cpu" = ia64; then
9594 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9595 # chokes on -Wl,-G. The following line is correct:
9596 shared_flag='-G'
9597 else
9598 if test "$aix_use_runtimelinking" = yes; then
9599 shared_flag='${wl}-G'
9600 else
9601 shared_flag='${wl}-bM:SRE'
9606 export_dynamic_flag_spec='${wl}-bexpall'
9607 # It seems that -bexpall does not export symbols beginning with
9608 # underscore (_), so it is better to generate a list of symbols to export.
9609 always_export_symbols=yes
9610 if test "$aix_use_runtimelinking" = yes; then
9611 # Warning - without using the other runtime loading flags (-brtl),
9612 # -berok will link without error, but may produce a broken library.
9613 allow_undefined_flag='-berok'
9614 # Determine the default libpath from the value encoded in an
9615 # empty executable.
9616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9617 /* end confdefs.h. */
9620 main ()
9624 return 0;
9626 _ACEOF
9627 if ac_fn_c_try_link "$LINENO"; then :
9629 lt_aix_libpath_sed='
9630 /Import File Strings/,/^$/ {
9631 /^0/ {
9632 s/^0 *\(.*\)$/\1/
9636 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9637 # Check for a 64-bit object if we didn't find anything.
9638 if test -z "$aix_libpath"; then
9639 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9642 rm -f core conftest.err conftest.$ac_objext \
9643 conftest$ac_exeext conftest.$ac_ext
9644 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9646 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9647 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"
9648 else
9649 if test "$host_cpu" = ia64; then
9650 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9651 allow_undefined_flag="-z nodefs"
9652 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"
9653 else
9654 # Determine the default libpath from the value encoded in an
9655 # empty executable.
9656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9657 /* end confdefs.h. */
9660 main ()
9664 return 0;
9666 _ACEOF
9667 if ac_fn_c_try_link "$LINENO"; then :
9669 lt_aix_libpath_sed='
9670 /Import File Strings/,/^$/ {
9671 /^0/ {
9672 s/^0 *\(.*\)$/\1/
9676 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9677 # Check for a 64-bit object if we didn't find anything.
9678 if test -z "$aix_libpath"; then
9679 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9682 rm -f core conftest.err conftest.$ac_objext \
9683 conftest$ac_exeext conftest.$ac_ext
9684 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9686 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9687 # Warning - without using the other run time loading flags,
9688 # -berok will link without error, but may produce a broken library.
9689 no_undefined_flag=' ${wl}-bernotok'
9690 allow_undefined_flag=' ${wl}-berok'
9691 if test "$with_gnu_ld" = yes; then
9692 # We only use this code for GNU lds that support --whole-archive.
9693 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9694 else
9695 # Exported symbols can be pulled into shared objects from archives
9696 whole_archive_flag_spec='$convenience'
9698 archive_cmds_need_lc=yes
9699 # This is similar to how AIX traditionally builds its shared libraries.
9700 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'
9705 amigaos*)
9706 case $host_cpu in
9707 powerpc)
9708 # see comment about AmigaOS4 .so support
9709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9710 archive_expsym_cmds=''
9712 m68k)
9713 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)'
9714 hardcode_libdir_flag_spec='-L$libdir'
9715 hardcode_minus_L=yes
9717 esac
9720 bsdi[45]*)
9721 export_dynamic_flag_spec=-rdynamic
9724 cygwin* | mingw* | pw32* | cegcc*)
9725 # When not using gcc, we currently assume that we are using
9726 # Microsoft Visual C++.
9727 # hardcode_libdir_flag_spec is actually meaningless, as there is
9728 # no search path for DLLs.
9729 hardcode_libdir_flag_spec=' '
9730 allow_undefined_flag=unsupported
9731 # Tell ltmain to make .lib files, not .a files.
9732 libext=lib
9733 # Tell ltmain to make .dll files, not .so files.
9734 shrext_cmds=".dll"
9735 # FIXME: Setting linknames here is a bad hack.
9736 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9737 # The linker will automatically build a .lib file if we build a DLL.
9738 old_archive_from_new_cmds='true'
9739 # FIXME: Should let the user specify the lib program.
9740 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9741 fix_srcfile_path='`cygpath -w "$srcfile"`'
9742 enable_shared_with_static_runtimes=yes
9745 darwin* | rhapsody*)
9748 archive_cmds_need_lc=no
9749 hardcode_direct=no
9750 hardcode_automatic=yes
9751 hardcode_shlibpath_var=unsupported
9752 if test "$lt_cv_ld_force_load" = "yes"; then
9753 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\"`'
9754 else
9755 whole_archive_flag_spec=''
9757 link_all_deplibs=yes
9758 allow_undefined_flag="$_lt_dar_allow_undefined"
9759 case $cc_basename in
9760 ifort*) _lt_dar_can_shared=yes ;;
9761 *) _lt_dar_can_shared=$GCC ;;
9762 esac
9763 if test "$_lt_dar_can_shared" = "yes"; then
9764 output_verbose_link_cmd=func_echo_all
9765 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9766 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9767 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}"
9768 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}"
9770 else
9771 ld_shlibs=no
9776 dgux*)
9777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9778 hardcode_libdir_flag_spec='-L$libdir'
9779 hardcode_shlibpath_var=no
9782 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9783 # support. Future versions do this automatically, but an explicit c++rt0.o
9784 # does not break anything, and helps significantly (at the cost of a little
9785 # extra space).
9786 freebsd2.2*)
9787 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9788 hardcode_libdir_flag_spec='-R$libdir'
9789 hardcode_direct=yes
9790 hardcode_shlibpath_var=no
9793 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9794 freebsd2.*)
9795 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9796 hardcode_direct=yes
9797 hardcode_minus_L=yes
9798 hardcode_shlibpath_var=no
9801 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9802 freebsd* | dragonfly*)
9803 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9804 hardcode_libdir_flag_spec='-R$libdir'
9805 hardcode_direct=yes
9806 hardcode_shlibpath_var=no
9809 hpux9*)
9810 if test "$GCC" = yes; then
9811 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'
9812 else
9813 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'
9815 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9816 hardcode_libdir_separator=:
9817 hardcode_direct=yes
9819 # hardcode_minus_L: Not really in the search PATH,
9820 # but as the default location of the library.
9821 hardcode_minus_L=yes
9822 export_dynamic_flag_spec='${wl}-E'
9825 hpux10*)
9826 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9827 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9828 else
9829 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9831 if test "$with_gnu_ld" = no; then
9832 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9833 hardcode_libdir_flag_spec_ld='+b $libdir'
9834 hardcode_libdir_separator=:
9835 hardcode_direct=yes
9836 hardcode_direct_absolute=yes
9837 export_dynamic_flag_spec='${wl}-E'
9838 # hardcode_minus_L: Not really in the search PATH,
9839 # but as the default location of the library.
9840 hardcode_minus_L=yes
9844 hpux11*)
9845 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9846 case $host_cpu in
9847 hppa*64*)
9848 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9850 ia64*)
9851 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9854 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9856 esac
9857 else
9858 case $host_cpu in
9859 hppa*64*)
9860 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9862 ia64*)
9863 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9867 # Older versions of the 11.00 compiler do not understand -b yet
9868 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9870 $as_echo_n "checking if $CC understands -b... " >&6; }
9871 if ${lt_cv_prog_compiler__b+:} false; then :
9872 $as_echo_n "(cached) " >&6
9873 else
9874 lt_cv_prog_compiler__b=no
9875 save_LDFLAGS="$LDFLAGS"
9876 LDFLAGS="$LDFLAGS -b"
9877 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9878 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9879 # The linker can only warn and ignore the option if not recognized
9880 # So say no if there are warnings
9881 if test -s conftest.err; then
9882 # Append any errors to the config.log.
9883 cat conftest.err 1>&5
9884 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9885 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9886 if diff conftest.exp conftest.er2 >/dev/null; then
9887 lt_cv_prog_compiler__b=yes
9889 else
9890 lt_cv_prog_compiler__b=yes
9893 $RM -r conftest*
9894 LDFLAGS="$save_LDFLAGS"
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9898 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9900 if test x"$lt_cv_prog_compiler__b" = xyes; then
9901 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9902 else
9903 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9907 esac
9909 if test "$with_gnu_ld" = no; then
9910 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9911 hardcode_libdir_separator=:
9913 case $host_cpu in
9914 hppa*64*|ia64*)
9915 hardcode_direct=no
9916 hardcode_shlibpath_var=no
9919 hardcode_direct=yes
9920 hardcode_direct_absolute=yes
9921 export_dynamic_flag_spec='${wl}-E'
9923 # hardcode_minus_L: Not really in the search PATH,
9924 # but as the default location of the library.
9925 hardcode_minus_L=yes
9927 esac
9931 irix5* | irix6* | nonstopux*)
9932 if test "$GCC" = yes; then
9933 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'
9934 # Try to use the -exported_symbol ld option, if it does not
9935 # work, assume that -exports_file does not work either and
9936 # implicitly export all symbols.
9937 save_LDFLAGS="$LDFLAGS"
9938 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9940 /* end confdefs.h. */
9941 int foo(void) {}
9942 _ACEOF
9943 if ac_fn_c_try_link "$LINENO"; then :
9944 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'
9947 rm -f core conftest.err conftest.$ac_objext \
9948 conftest$ac_exeext conftest.$ac_ext
9949 LDFLAGS="$save_LDFLAGS"
9950 else
9951 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'
9952 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'
9954 archive_cmds_need_lc='no'
9955 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9956 hardcode_libdir_separator=:
9957 inherit_rpath=yes
9958 link_all_deplibs=yes
9961 netbsd*)
9962 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9963 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9964 else
9965 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9967 hardcode_libdir_flag_spec='-R$libdir'
9968 hardcode_direct=yes
9969 hardcode_shlibpath_var=no
9972 newsos6)
9973 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9974 hardcode_direct=yes
9975 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9976 hardcode_libdir_separator=:
9977 hardcode_shlibpath_var=no
9980 *nto* | *qnx*)
9983 openbsd*)
9984 if test -f /usr/libexec/ld.so; then
9985 hardcode_direct=yes
9986 hardcode_shlibpath_var=no
9987 hardcode_direct_absolute=yes
9988 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9989 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9990 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9991 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9992 export_dynamic_flag_spec='${wl}-E'
9993 else
9994 case $host_os in
9995 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9996 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9997 hardcode_libdir_flag_spec='-R$libdir'
10000 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10001 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10003 esac
10005 else
10006 ld_shlibs=no
10010 os2*)
10011 hardcode_libdir_flag_spec='-L$libdir'
10012 hardcode_minus_L=yes
10013 allow_undefined_flag=unsupported
10014 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'
10015 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10018 osf3*)
10019 if test "$GCC" = yes; then
10020 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10021 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'
10022 else
10023 allow_undefined_flag=' -expect_unresolved \*'
10024 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'
10026 archive_cmds_need_lc='no'
10027 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10028 hardcode_libdir_separator=:
10031 osf4* | osf5*) # as osf3* with the addition of -msym flag
10032 if test "$GCC" = yes; then
10033 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10034 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'
10035 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10036 else
10037 allow_undefined_flag=' -expect_unresolved \*'
10038 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'
10039 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~
10040 $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'
10042 # Both c and cxx compiler support -rpath directly
10043 hardcode_libdir_flag_spec='-rpath $libdir'
10045 archive_cmds_need_lc='no'
10046 hardcode_libdir_separator=:
10049 solaris*)
10050 no_undefined_flag=' -z defs'
10051 if test "$GCC" = yes; then
10052 wlarc='${wl}'
10053 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10054 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10055 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10056 else
10057 case `$CC -V 2>&1` in
10058 *"Compilers 5.0"*)
10059 wlarc=''
10060 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10061 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10062 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10065 wlarc='${wl}'
10066 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10067 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10068 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10070 esac
10072 hardcode_libdir_flag_spec='-R$libdir'
10073 hardcode_shlibpath_var=no
10074 case $host_os in
10075 solaris2.[0-5] | solaris2.[0-5].*) ;;
10077 # The compiler driver will combine and reorder linker options,
10078 # but understands `-z linker_flag'. GCC discards it without `$wl',
10079 # but is careful enough not to reorder.
10080 # Supported since Solaris 2.6 (maybe 2.5.1?)
10081 if test "$GCC" = yes; then
10082 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10083 else
10084 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10087 esac
10088 link_all_deplibs=yes
10091 sunos4*)
10092 if test "x$host_vendor" = xsequent; then
10093 # Use $CC to link under sequent, because it throws in some extra .o
10094 # files that make .init and .fini sections work.
10095 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10096 else
10097 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10099 hardcode_libdir_flag_spec='-L$libdir'
10100 hardcode_direct=yes
10101 hardcode_minus_L=yes
10102 hardcode_shlibpath_var=no
10105 sysv4)
10106 case $host_vendor in
10107 sni)
10108 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10109 hardcode_direct=yes # is this really true???
10111 siemens)
10112 ## LD is ld it makes a PLAMLIB
10113 ## CC just makes a GrossModule.
10114 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10115 reload_cmds='$CC -r -o $output$reload_objs'
10116 hardcode_direct=no
10118 motorola)
10119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10120 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10122 esac
10123 runpath_var='LD_RUN_PATH'
10124 hardcode_shlibpath_var=no
10127 sysv4.3*)
10128 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10129 hardcode_shlibpath_var=no
10130 export_dynamic_flag_spec='-Bexport'
10133 sysv4*MP*)
10134 if test -d /usr/nec; then
10135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10136 hardcode_shlibpath_var=no
10137 runpath_var=LD_RUN_PATH
10138 hardcode_runpath_var=yes
10139 ld_shlibs=yes
10143 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10144 no_undefined_flag='${wl}-z,text'
10145 archive_cmds_need_lc=no
10146 hardcode_shlibpath_var=no
10147 runpath_var='LD_RUN_PATH'
10149 if test "$GCC" = yes; then
10150 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10151 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10152 else
10153 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10154 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10158 sysv5* | sco3.2v5* | sco5v6*)
10159 # Note: We can NOT use -z defs as we might desire, because we do not
10160 # link with -lc, and that would cause any symbols used from libc to
10161 # always be unresolved, which means just about no library would
10162 # ever link correctly. If we're not using GNU ld we use -z text
10163 # though, which does catch some bad symbols but isn't as heavy-handed
10164 # as -z defs.
10165 no_undefined_flag='${wl}-z,text'
10166 allow_undefined_flag='${wl}-z,nodefs'
10167 archive_cmds_need_lc=no
10168 hardcode_shlibpath_var=no
10169 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10170 hardcode_libdir_separator=':'
10171 link_all_deplibs=yes
10172 export_dynamic_flag_spec='${wl}-Bexport'
10173 runpath_var='LD_RUN_PATH'
10175 if test "$GCC" = yes; then
10176 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10177 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10178 else
10179 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10180 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10184 uts4*)
10185 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10186 hardcode_libdir_flag_spec='-L$libdir'
10187 hardcode_shlibpath_var=no
10191 ld_shlibs=no
10193 esac
10195 if test x$host_vendor = xsni; then
10196 case $host in
10197 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10198 export_dynamic_flag_spec='${wl}-Blargedynsym'
10200 esac
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10205 $as_echo "$ld_shlibs" >&6; }
10206 test "$ld_shlibs" = no && can_build_shared=no
10208 with_gnu_ld=$with_gnu_ld
10225 # Do we need to explicitly link libc?
10227 case "x$archive_cmds_need_lc" in
10228 x|xyes)
10229 # Assume -lc should be added
10230 archive_cmds_need_lc=yes
10232 if test "$enable_shared" = yes && test "$GCC" = yes; then
10233 case $archive_cmds in
10234 *'~'*)
10235 # FIXME: we may have to deal with multi-command sequences.
10237 '$CC '*)
10238 # Test whether the compiler implicitly links with -lc since on some
10239 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10240 # to ld, don't add -lc before -lgcc.
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10242 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10243 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10244 $as_echo_n "(cached) " >&6
10245 else
10246 $RM conftest*
10247 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10250 (eval $ac_compile) 2>&5
10251 ac_status=$?
10252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10253 test $ac_status = 0; } 2>conftest.err; then
10254 soname=conftest
10255 lib=conftest
10256 libobjs=conftest.$ac_objext
10257 deplibs=
10258 wl=$lt_prog_compiler_wl
10259 pic_flag=$lt_prog_compiler_pic
10260 compiler_flags=-v
10261 linker_flags=-v
10262 verstring=
10263 output_objdir=.
10264 libname=conftest
10265 lt_save_allow_undefined_flag=$allow_undefined_flag
10266 allow_undefined_flag=
10267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10268 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10269 ac_status=$?
10270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10271 test $ac_status = 0; }
10272 then
10273 lt_cv_archive_cmds_need_lc=no
10274 else
10275 lt_cv_archive_cmds_need_lc=yes
10277 allow_undefined_flag=$lt_save_allow_undefined_flag
10278 else
10279 cat conftest.err 1>&5
10281 $RM conftest*
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10285 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10286 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10288 esac
10291 esac
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10450 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10452 if test "$GCC" = yes; then
10453 case $host_os in
10454 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10455 *) lt_awk_arg="/^libraries:/" ;;
10456 esac
10457 case $host_os in
10458 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10459 *) lt_sed_strip_eq="s,=/,/,g" ;;
10460 esac
10461 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10462 case $lt_search_path_spec in
10463 *\;*)
10464 # if the path contains ";" then we assume it to be the separator
10465 # otherwise default to the standard path separator (i.e. ":") - it is
10466 # assumed that no part of a normal pathname contains ";" but that should
10467 # okay in the real world where ";" in dirpaths is itself problematic.
10468 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10471 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10473 esac
10474 # Ok, now we have the path, separated by spaces, we can step through it
10475 # and add multilib dir if necessary.
10476 lt_tmp_lt_search_path_spec=
10477 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10478 for lt_sys_path in $lt_search_path_spec; do
10479 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10480 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10481 else
10482 test -d "$lt_sys_path" && \
10483 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10485 done
10486 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10487 BEGIN {RS=" "; FS="/|\n";} {
10488 lt_foo="";
10489 lt_count=0;
10490 for (lt_i = NF; lt_i > 0; lt_i--) {
10491 if ($lt_i != "" && $lt_i != ".") {
10492 if ($lt_i == "..") {
10493 lt_count++;
10494 } else {
10495 if (lt_count == 0) {
10496 lt_foo="/" $lt_i lt_foo;
10497 } else {
10498 lt_count--;
10503 if (lt_foo != "") { lt_freq[lt_foo]++; }
10504 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10506 # AWK program above erroneously prepends '/' to C:/dos/paths
10507 # for these hosts.
10508 case $host_os in
10509 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10510 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10511 esac
10512 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10513 else
10514 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10516 library_names_spec=
10517 libname_spec='lib$name'
10518 soname_spec=
10519 shrext_cmds=".so"
10520 postinstall_cmds=
10521 postuninstall_cmds=
10522 finish_cmds=
10523 finish_eval=
10524 shlibpath_var=
10525 shlibpath_overrides_runpath=unknown
10526 version_type=none
10527 dynamic_linker="$host_os ld.so"
10528 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10529 need_lib_prefix=unknown
10530 hardcode_into_libs=no
10532 # when you set need_version to no, make sure it does not cause -set_version
10533 # flags to be left without arguments
10534 need_version=unknown
10536 case $host_os in
10537 aix3*)
10538 version_type=linux
10539 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10540 shlibpath_var=LIBPATH
10542 # AIX 3 has no versioning support, so we append a major version to the name.
10543 soname_spec='${libname}${release}${shared_ext}$major'
10546 aix[4-9]*)
10547 version_type=linux
10548 need_lib_prefix=no
10549 need_version=no
10550 hardcode_into_libs=yes
10551 if test "$host_cpu" = ia64; then
10552 # AIX 5 supports IA64
10553 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10554 shlibpath_var=LD_LIBRARY_PATH
10555 else
10556 # With GCC up to 2.95.x, collect2 would create an import file
10557 # for dependence libraries. The import file would start with
10558 # the line `#! .'. This would cause the generated library to
10559 # depend on `.', always an invalid library. This was fixed in
10560 # development snapshots of GCC prior to 3.0.
10561 case $host_os in
10562 aix4 | aix4.[01] | aix4.[01].*)
10563 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10564 echo ' yes '
10565 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10567 else
10568 can_build_shared=no
10571 esac
10572 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10573 # soname into executable. Probably we can add versioning support to
10574 # collect2, so additional links can be useful in future.
10575 if test "$aix_use_runtimelinking" = yes; then
10576 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10577 # instead of lib<name>.a to let people know that these are not
10578 # typical AIX shared libraries.
10579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10580 else
10581 # We preserve .a as extension for shared libraries through AIX4.2
10582 # and later when we are not doing run time linking.
10583 library_names_spec='${libname}${release}.a $libname.a'
10584 soname_spec='${libname}${release}${shared_ext}$major'
10586 shlibpath_var=LIBPATH
10590 amigaos*)
10591 case $host_cpu in
10592 powerpc)
10593 # Since July 2007 AmigaOS4 officially supports .so libraries.
10594 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10597 m68k)
10598 library_names_spec='$libname.ixlibrary $libname.a'
10599 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10600 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'
10602 esac
10605 beos*)
10606 library_names_spec='${libname}${shared_ext}'
10607 dynamic_linker="$host_os ld.so"
10608 shlibpath_var=LIBRARY_PATH
10611 bsdi[45]*)
10612 version_type=linux
10613 need_version=no
10614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10615 soname_spec='${libname}${release}${shared_ext}$major'
10616 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10617 shlibpath_var=LD_LIBRARY_PATH
10618 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10619 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10620 # the default ld.so.conf also contains /usr/contrib/lib and
10621 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10622 # libtool to hard-code these into programs
10625 cygwin* | mingw* | pw32* | cegcc*)
10626 version_type=windows
10627 shrext_cmds=".dll"
10628 need_version=no
10629 need_lib_prefix=no
10631 case $GCC,$host_os in
10632 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10633 library_names_spec='$libname.dll.a'
10634 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10635 postinstall_cmds='base_file=`basename \${file}`~
10636 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10637 dldir=$destdir/`dirname \$dlpath`~
10638 test -d \$dldir || mkdir -p \$dldir~
10639 $install_prog $dir/$dlname \$dldir/$dlname~
10640 chmod a+x \$dldir/$dlname~
10641 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10642 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10644 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10645 dlpath=$dir/\$dldll~
10646 $RM \$dlpath'
10647 shlibpath_overrides_runpath=yes
10649 case $host_os in
10650 cygwin*)
10651 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10652 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10654 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10656 mingw* | cegcc*)
10657 # MinGW DLLs use traditional 'lib' prefix
10658 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10660 pw32*)
10661 # pw32 DLLs use 'pw' prefix rather than 'lib'
10662 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10664 esac
10668 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10670 esac
10671 dynamic_linker='Win32 ld.exe'
10672 # FIXME: first we should search . and the directory the executable is in
10673 shlibpath_var=PATH
10676 darwin* | rhapsody*)
10677 dynamic_linker="$host_os dyld"
10678 version_type=darwin
10679 need_lib_prefix=no
10680 need_version=no
10681 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10682 soname_spec='${libname}${release}${major}$shared_ext'
10683 shlibpath_overrides_runpath=yes
10684 shlibpath_var=DYLD_LIBRARY_PATH
10685 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10687 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10688 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10691 dgux*)
10692 version_type=linux
10693 need_lib_prefix=no
10694 need_version=no
10695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10696 soname_spec='${libname}${release}${shared_ext}$major'
10697 shlibpath_var=LD_LIBRARY_PATH
10700 freebsd* | dragonfly*)
10701 # DragonFly does not have aout. When/if they implement a new
10702 # versioning mechanism, adjust this.
10703 if test -x /usr/bin/objformat; then
10704 objformat=`/usr/bin/objformat`
10705 else
10706 case $host_os in
10707 freebsd[23].*) objformat=aout ;;
10708 *) objformat=elf ;;
10709 esac
10711 version_type=freebsd-$objformat
10712 case $version_type in
10713 freebsd-elf*)
10714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10715 need_version=no
10716 need_lib_prefix=no
10718 freebsd-*)
10719 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10720 need_version=yes
10722 esac
10723 shlibpath_var=LD_LIBRARY_PATH
10724 case $host_os in
10725 freebsd2.*)
10726 shlibpath_overrides_runpath=yes
10728 freebsd3.[01]* | freebsdelf3.[01]*)
10729 shlibpath_overrides_runpath=yes
10730 hardcode_into_libs=yes
10732 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10733 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10734 shlibpath_overrides_runpath=no
10735 hardcode_into_libs=yes
10737 *) # from 4.6 on, and DragonFly
10738 shlibpath_overrides_runpath=yes
10739 hardcode_into_libs=yes
10741 esac
10744 gnu*)
10745 version_type=linux
10746 need_lib_prefix=no
10747 need_version=no
10748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10749 soname_spec='${libname}${release}${shared_ext}$major'
10750 shlibpath_var=LD_LIBRARY_PATH
10751 hardcode_into_libs=yes
10754 haiku*)
10755 version_type=linux
10756 need_lib_prefix=no
10757 need_version=no
10758 dynamic_linker="$host_os runtime_loader"
10759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10760 soname_spec='${libname}${release}${shared_ext}$major'
10761 shlibpath_var=LIBRARY_PATH
10762 shlibpath_overrides_runpath=yes
10763 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10764 hardcode_into_libs=yes
10767 hpux9* | hpux10* | hpux11*)
10768 # Give a soname corresponding to the major version so that dld.sl refuses to
10769 # link against other versions.
10770 version_type=sunos
10771 need_lib_prefix=no
10772 need_version=no
10773 case $host_cpu in
10774 ia64*)
10775 shrext_cmds='.so'
10776 hardcode_into_libs=yes
10777 dynamic_linker="$host_os dld.so"
10778 shlibpath_var=LD_LIBRARY_PATH
10779 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10781 soname_spec='${libname}${release}${shared_ext}$major'
10782 if test "X$HPUX_IA64_MODE" = X32; then
10783 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10784 else
10785 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10787 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10789 hppa*64*)
10790 shrext_cmds='.sl'
10791 hardcode_into_libs=yes
10792 dynamic_linker="$host_os dld.sl"
10793 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10794 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10796 soname_spec='${libname}${release}${shared_ext}$major'
10797 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10798 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10801 shrext_cmds='.sl'
10802 dynamic_linker="$host_os dld.sl"
10803 shlibpath_var=SHLIB_PATH
10804 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10806 soname_spec='${libname}${release}${shared_ext}$major'
10808 esac
10809 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10810 postinstall_cmds='chmod 555 $lib'
10811 # or fails outright, so override atomically:
10812 install_override_mode=555
10815 interix[3-9]*)
10816 version_type=linux
10817 need_lib_prefix=no
10818 need_version=no
10819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10820 soname_spec='${libname}${release}${shared_ext}$major'
10821 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10822 shlibpath_var=LD_LIBRARY_PATH
10823 shlibpath_overrides_runpath=no
10824 hardcode_into_libs=yes
10827 irix5* | irix6* | nonstopux*)
10828 case $host_os in
10829 nonstopux*) version_type=nonstopux ;;
10831 if test "$lt_cv_prog_gnu_ld" = yes; then
10832 version_type=linux
10833 else
10834 version_type=irix
10835 fi ;;
10836 esac
10837 need_lib_prefix=no
10838 need_version=no
10839 soname_spec='${libname}${release}${shared_ext}$major'
10840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10841 case $host_os in
10842 irix5* | nonstopux*)
10843 libsuff= shlibsuff=
10846 case $LD in # libtool.m4 will add one of these switches to LD
10847 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10848 libsuff= shlibsuff= libmagic=32-bit;;
10849 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10850 libsuff=32 shlibsuff=N32 libmagic=N32;;
10851 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10852 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10853 *) libsuff= shlibsuff= libmagic=never-match;;
10854 esac
10856 esac
10857 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10858 shlibpath_overrides_runpath=no
10859 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10860 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10861 hardcode_into_libs=yes
10864 # No shared lib support for Linux oldld, aout, or coff.
10865 linux*oldld* | linux*aout* | linux*coff*)
10866 dynamic_linker=no
10869 # This must be Linux ELF.
10871 # uclinux* changes (here and below) have been submitted to the libtool
10872 # project, but have not yet been accepted: they are GCC-local changes
10873 # for the time being. (See
10874 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10875 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10876 version_type=linux
10877 need_lib_prefix=no
10878 need_version=no
10879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10880 soname_spec='${libname}${release}${shared_ext}$major'
10881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10882 shlibpath_var=LD_LIBRARY_PATH
10883 shlibpath_overrides_runpath=no
10885 # Some binutils ld are patched to set DT_RUNPATH
10886 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10887 $as_echo_n "(cached) " >&6
10888 else
10889 lt_cv_shlibpath_overrides_runpath=no
10890 save_LDFLAGS=$LDFLAGS
10891 save_libdir=$libdir
10892 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10893 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895 /* end confdefs.h. */
10898 main ()
10902 return 0;
10904 _ACEOF
10905 if ac_fn_c_try_link "$LINENO"; then :
10906 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10907 lt_cv_shlibpath_overrides_runpath=yes
10910 rm -f core conftest.err conftest.$ac_objext \
10911 conftest$ac_exeext conftest.$ac_ext
10912 LDFLAGS=$save_LDFLAGS
10913 libdir=$save_libdir
10917 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10919 # This implies no fast_install, which is unacceptable.
10920 # Some rework will be needed to allow for fast_install
10921 # before this can be enabled.
10922 hardcode_into_libs=yes
10924 # Append ld.so.conf contents to the search path
10925 if test -f /etc/ld.so.conf; then
10926 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' ' '`
10927 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10930 # We used to test for /lib/ld.so.1 and disable shared libraries on
10931 # powerpc, because MkLinux only supported shared libraries with the
10932 # GNU dynamic linker. Since this was broken with cross compilers,
10933 # most powerpc-linux boxes support dynamic linking these days and
10934 # people can always --disable-shared, the test was removed, and we
10935 # assume the GNU/Linux dynamic linker is in use.
10936 dynamic_linker='GNU/Linux ld.so'
10939 netbsd*)
10940 version_type=sunos
10941 need_lib_prefix=no
10942 need_version=no
10943 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10945 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10946 dynamic_linker='NetBSD (a.out) ld.so'
10947 else
10948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10949 soname_spec='${libname}${release}${shared_ext}$major'
10950 dynamic_linker='NetBSD ld.elf_so'
10952 shlibpath_var=LD_LIBRARY_PATH
10953 shlibpath_overrides_runpath=yes
10954 hardcode_into_libs=yes
10957 newsos6)
10958 version_type=linux
10959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10960 shlibpath_var=LD_LIBRARY_PATH
10961 shlibpath_overrides_runpath=yes
10964 *nto* | *qnx*)
10965 version_type=qnx
10966 need_lib_prefix=no
10967 need_version=no
10968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10969 soname_spec='${libname}${release}${shared_ext}$major'
10970 shlibpath_var=LD_LIBRARY_PATH
10971 shlibpath_overrides_runpath=no
10972 hardcode_into_libs=yes
10973 dynamic_linker='ldqnx.so'
10976 openbsd*)
10977 version_type=sunos
10978 sys_lib_dlsearch_path_spec="/usr/lib"
10979 need_lib_prefix=no
10980 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10981 case $host_os in
10982 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10983 *) need_version=no ;;
10984 esac
10985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10986 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10987 shlibpath_var=LD_LIBRARY_PATH
10988 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10989 case $host_os in
10990 openbsd2.[89] | openbsd2.[89].*)
10991 shlibpath_overrides_runpath=no
10994 shlibpath_overrides_runpath=yes
10996 esac
10997 else
10998 shlibpath_overrides_runpath=yes
11002 os2*)
11003 libname_spec='$name'
11004 shrext_cmds=".dll"
11005 need_lib_prefix=no
11006 library_names_spec='$libname${shared_ext} $libname.a'
11007 dynamic_linker='OS/2 ld.exe'
11008 shlibpath_var=LIBPATH
11011 osf3* | osf4* | osf5*)
11012 version_type=osf
11013 need_lib_prefix=no
11014 need_version=no
11015 soname_spec='${libname}${release}${shared_ext}$major'
11016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11017 shlibpath_var=LD_LIBRARY_PATH
11018 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11019 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11022 rdos*)
11023 dynamic_linker=no
11026 solaris*)
11027 version_type=linux
11028 need_lib_prefix=no
11029 need_version=no
11030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11031 soname_spec='${libname}${release}${shared_ext}$major'
11032 shlibpath_var=LD_LIBRARY_PATH
11033 shlibpath_overrides_runpath=yes
11034 hardcode_into_libs=yes
11035 # ldd complains unless libraries are executable
11036 postinstall_cmds='chmod +x $lib'
11039 sunos4*)
11040 version_type=sunos
11041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11042 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11043 shlibpath_var=LD_LIBRARY_PATH
11044 shlibpath_overrides_runpath=yes
11045 if test "$with_gnu_ld" = yes; then
11046 need_lib_prefix=no
11048 need_version=yes
11051 sysv4 | sysv4.3*)
11052 version_type=linux
11053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11054 soname_spec='${libname}${release}${shared_ext}$major'
11055 shlibpath_var=LD_LIBRARY_PATH
11056 case $host_vendor in
11057 sni)
11058 shlibpath_overrides_runpath=no
11059 need_lib_prefix=no
11060 runpath_var=LD_RUN_PATH
11062 siemens)
11063 need_lib_prefix=no
11065 motorola)
11066 need_lib_prefix=no
11067 need_version=no
11068 shlibpath_overrides_runpath=no
11069 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11071 esac
11074 sysv4*MP*)
11075 if test -d /usr/nec ;then
11076 version_type=linux
11077 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11078 soname_spec='$libname${shared_ext}.$major'
11079 shlibpath_var=LD_LIBRARY_PATH
11083 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11084 version_type=freebsd-elf
11085 need_lib_prefix=no
11086 need_version=no
11087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11088 soname_spec='${libname}${release}${shared_ext}$major'
11089 shlibpath_var=LD_LIBRARY_PATH
11090 shlibpath_overrides_runpath=yes
11091 hardcode_into_libs=yes
11092 if test "$with_gnu_ld" = yes; then
11093 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11094 else
11095 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11096 case $host_os in
11097 sco3.2v5*)
11098 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11100 esac
11102 sys_lib_dlsearch_path_spec='/usr/lib'
11105 tpf*)
11106 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11107 version_type=linux
11108 need_lib_prefix=no
11109 need_version=no
11110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11111 shlibpath_var=LD_LIBRARY_PATH
11112 shlibpath_overrides_runpath=no
11113 hardcode_into_libs=yes
11116 uts4*)
11117 version_type=linux
11118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11119 soname_spec='${libname}${release}${shared_ext}$major'
11120 shlibpath_var=LD_LIBRARY_PATH
11124 dynamic_linker=no
11126 esac
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11128 $as_echo "$dynamic_linker" >&6; }
11129 test "$dynamic_linker" = no && can_build_shared=no
11131 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11132 if test "$GCC" = yes; then
11133 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11136 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11137 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11139 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11140 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11235 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11236 hardcode_action=
11237 if test -n "$hardcode_libdir_flag_spec" ||
11238 test -n "$runpath_var" ||
11239 test "X$hardcode_automatic" = "Xyes" ; then
11241 # We can hardcode non-existent directories.
11242 if test "$hardcode_direct" != no &&
11243 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11244 # have to relink, otherwise we might link with an installed library
11245 # when we should be linking with a yet-to-be-installed one
11246 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11247 test "$hardcode_minus_L" != no; then
11248 # Linking always hardcodes the temporary library directory.
11249 hardcode_action=relink
11250 else
11251 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11252 hardcode_action=immediate
11254 else
11255 # We cannot hardcode anything, or else we can only hardcode existing
11256 # directories.
11257 hardcode_action=unsupported
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11260 $as_echo "$hardcode_action" >&6; }
11262 if test "$hardcode_action" = relink ||
11263 test "$inherit_rpath" = yes; then
11264 # Fast installation is not supported
11265 enable_fast_install=no
11266 elif test "$shlibpath_overrides_runpath" = yes ||
11267 test "$enable_shared" = no; then
11268 # Fast installation is not necessary
11269 enable_fast_install=needless
11277 if test "x$enable_dlopen" != xyes; then
11278 enable_dlopen=unknown
11279 enable_dlopen_self=unknown
11280 enable_dlopen_self_static=unknown
11281 else
11282 lt_cv_dlopen=no
11283 lt_cv_dlopen_libs=
11285 case $host_os in
11286 beos*)
11287 lt_cv_dlopen="load_add_on"
11288 lt_cv_dlopen_libs=
11289 lt_cv_dlopen_self=yes
11292 mingw* | pw32* | cegcc*)
11293 lt_cv_dlopen="LoadLibrary"
11294 lt_cv_dlopen_libs=
11297 cygwin*)
11298 lt_cv_dlopen="dlopen"
11299 lt_cv_dlopen_libs=
11302 darwin*)
11303 # if libdl is installed we need to link against it
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11305 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11306 if ${ac_cv_lib_dl_dlopen+:} false; then :
11307 $as_echo_n "(cached) " >&6
11308 else
11309 ac_check_lib_save_LIBS=$LIBS
11310 LIBS="-ldl $LIBS"
11311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11312 /* end confdefs.h. */
11314 /* Override any GCC internal prototype to avoid an error.
11315 Use char because int might match the return type of a GCC
11316 builtin and then its argument prototype would still apply. */
11317 #ifdef __cplusplus
11318 extern "C"
11319 #endif
11320 char dlopen ();
11322 main ()
11324 return dlopen ();
11326 return 0;
11328 _ACEOF
11329 if ac_fn_c_try_link "$LINENO"; then :
11330 ac_cv_lib_dl_dlopen=yes
11331 else
11332 ac_cv_lib_dl_dlopen=no
11334 rm -f core conftest.err conftest.$ac_objext \
11335 conftest$ac_exeext conftest.$ac_ext
11336 LIBS=$ac_check_lib_save_LIBS
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11339 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11340 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11341 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11342 else
11344 lt_cv_dlopen="dyld"
11345 lt_cv_dlopen_libs=
11346 lt_cv_dlopen_self=yes
11353 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11354 if test "x$ac_cv_func_shl_load" = xyes; then :
11355 lt_cv_dlopen="shl_load"
11356 else
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11358 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11359 if ${ac_cv_lib_dld_shl_load+:} false; then :
11360 $as_echo_n "(cached) " >&6
11361 else
11362 ac_check_lib_save_LIBS=$LIBS
11363 LIBS="-ldld $LIBS"
11364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11365 /* end confdefs.h. */
11367 /* Override any GCC internal prototype to avoid an error.
11368 Use char because int might match the return type of a GCC
11369 builtin and then its argument prototype would still apply. */
11370 #ifdef __cplusplus
11371 extern "C"
11372 #endif
11373 char shl_load ();
11375 main ()
11377 return shl_load ();
11379 return 0;
11381 _ACEOF
11382 if ac_fn_c_try_link "$LINENO"; then :
11383 ac_cv_lib_dld_shl_load=yes
11384 else
11385 ac_cv_lib_dld_shl_load=no
11387 rm -f core conftest.err conftest.$ac_objext \
11388 conftest$ac_exeext conftest.$ac_ext
11389 LIBS=$ac_check_lib_save_LIBS
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11392 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11393 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11394 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11395 else
11396 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11397 if test "x$ac_cv_func_dlopen" = xyes; then :
11398 lt_cv_dlopen="dlopen"
11399 else
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11401 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11402 if ${ac_cv_lib_dl_dlopen+:} false; then :
11403 $as_echo_n "(cached) " >&6
11404 else
11405 ac_check_lib_save_LIBS=$LIBS
11406 LIBS="-ldl $LIBS"
11407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11408 /* end confdefs.h. */
11410 /* Override any GCC internal prototype to avoid an error.
11411 Use char because int might match the return type of a GCC
11412 builtin and then its argument prototype would still apply. */
11413 #ifdef __cplusplus
11414 extern "C"
11415 #endif
11416 char dlopen ();
11418 main ()
11420 return dlopen ();
11422 return 0;
11424 _ACEOF
11425 if ac_fn_c_try_link "$LINENO"; then :
11426 ac_cv_lib_dl_dlopen=yes
11427 else
11428 ac_cv_lib_dl_dlopen=no
11430 rm -f core conftest.err conftest.$ac_objext \
11431 conftest$ac_exeext conftest.$ac_ext
11432 LIBS=$ac_check_lib_save_LIBS
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11435 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11436 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11437 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11438 else
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11440 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11441 if ${ac_cv_lib_svld_dlopen+:} false; then :
11442 $as_echo_n "(cached) " >&6
11443 else
11444 ac_check_lib_save_LIBS=$LIBS
11445 LIBS="-lsvld $LIBS"
11446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11447 /* end confdefs.h. */
11449 /* Override any GCC internal prototype to avoid an error.
11450 Use char because int might match the return type of a GCC
11451 builtin and then its argument prototype would still apply. */
11452 #ifdef __cplusplus
11453 extern "C"
11454 #endif
11455 char dlopen ();
11457 main ()
11459 return dlopen ();
11461 return 0;
11463 _ACEOF
11464 if ac_fn_c_try_link "$LINENO"; then :
11465 ac_cv_lib_svld_dlopen=yes
11466 else
11467 ac_cv_lib_svld_dlopen=no
11469 rm -f core conftest.err conftest.$ac_objext \
11470 conftest$ac_exeext conftest.$ac_ext
11471 LIBS=$ac_check_lib_save_LIBS
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11474 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11475 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11476 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11477 else
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11479 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11480 if ${ac_cv_lib_dld_dld_link+:} false; then :
11481 $as_echo_n "(cached) " >&6
11482 else
11483 ac_check_lib_save_LIBS=$LIBS
11484 LIBS="-ldld $LIBS"
11485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11486 /* end confdefs.h. */
11488 /* Override any GCC internal prototype to avoid an error.
11489 Use char because int might match the return type of a GCC
11490 builtin and then its argument prototype would still apply. */
11491 #ifdef __cplusplus
11492 extern "C"
11493 #endif
11494 char dld_link ();
11496 main ()
11498 return dld_link ();
11500 return 0;
11502 _ACEOF
11503 if ac_fn_c_try_link "$LINENO"; then :
11504 ac_cv_lib_dld_dld_link=yes
11505 else
11506 ac_cv_lib_dld_dld_link=no
11508 rm -f core conftest.err conftest.$ac_objext \
11509 conftest$ac_exeext conftest.$ac_ext
11510 LIBS=$ac_check_lib_save_LIBS
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11513 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11514 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11515 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11534 esac
11536 if test "x$lt_cv_dlopen" != xno; then
11537 enable_dlopen=yes
11538 else
11539 enable_dlopen=no
11542 case $lt_cv_dlopen in
11543 dlopen)
11544 save_CPPFLAGS="$CPPFLAGS"
11545 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11547 save_LDFLAGS="$LDFLAGS"
11548 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11550 save_LIBS="$LIBS"
11551 LIBS="$lt_cv_dlopen_libs $LIBS"
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11554 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11555 if ${lt_cv_dlopen_self+:} false; then :
11556 $as_echo_n "(cached) " >&6
11557 else
11558 if test "$cross_compiling" = yes; then :
11559 lt_cv_dlopen_self=cross
11560 else
11561 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11562 lt_status=$lt_dlunknown
11563 cat > conftest.$ac_ext <<_LT_EOF
11564 #line 11564 "configure"
11565 #include "confdefs.h"
11567 #if HAVE_DLFCN_H
11568 #include <dlfcn.h>
11569 #endif
11571 #include <stdio.h>
11573 #ifdef RTLD_GLOBAL
11574 # define LT_DLGLOBAL RTLD_GLOBAL
11575 #else
11576 # ifdef DL_GLOBAL
11577 # define LT_DLGLOBAL DL_GLOBAL
11578 # else
11579 # define LT_DLGLOBAL 0
11580 # endif
11581 #endif
11583 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11584 find out it does not work in some platform. */
11585 #ifndef LT_DLLAZY_OR_NOW
11586 # ifdef RTLD_LAZY
11587 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11588 # else
11589 # ifdef DL_LAZY
11590 # define LT_DLLAZY_OR_NOW DL_LAZY
11591 # else
11592 # ifdef RTLD_NOW
11593 # define LT_DLLAZY_OR_NOW RTLD_NOW
11594 # else
11595 # ifdef DL_NOW
11596 # define LT_DLLAZY_OR_NOW DL_NOW
11597 # else
11598 # define LT_DLLAZY_OR_NOW 0
11599 # endif
11600 # endif
11601 # endif
11602 # endif
11603 #endif
11605 /* When -fvisbility=hidden is used, assume the code has been annotated
11606 correspondingly for the symbols needed. */
11607 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11608 void fnord () __attribute__((visibility("default")));
11609 #endif
11611 void fnord () { int i=42; }
11612 int main ()
11614 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11615 int status = $lt_dlunknown;
11617 if (self)
11619 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11620 else
11622 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11623 else puts (dlerror ());
11625 /* dlclose (self); */
11627 else
11628 puts (dlerror ());
11630 return status;
11632 _LT_EOF
11633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11634 (eval $ac_link) 2>&5
11635 ac_status=$?
11636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11637 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11638 (./conftest; exit; ) >&5 2>/dev/null
11639 lt_status=$?
11640 case x$lt_status in
11641 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11642 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11643 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11644 esac
11645 else :
11646 # compilation failed
11647 lt_cv_dlopen_self=no
11650 rm -fr conftest*
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11655 $as_echo "$lt_cv_dlopen_self" >&6; }
11657 if test "x$lt_cv_dlopen_self" = xyes; then
11658 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11660 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11661 if ${lt_cv_dlopen_self_static+:} false; then :
11662 $as_echo_n "(cached) " >&6
11663 else
11664 if test "$cross_compiling" = yes; then :
11665 lt_cv_dlopen_self_static=cross
11666 else
11667 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11668 lt_status=$lt_dlunknown
11669 cat > conftest.$ac_ext <<_LT_EOF
11670 #line 11670 "configure"
11671 #include "confdefs.h"
11673 #if HAVE_DLFCN_H
11674 #include <dlfcn.h>
11675 #endif
11677 #include <stdio.h>
11679 #ifdef RTLD_GLOBAL
11680 # define LT_DLGLOBAL RTLD_GLOBAL
11681 #else
11682 # ifdef DL_GLOBAL
11683 # define LT_DLGLOBAL DL_GLOBAL
11684 # else
11685 # define LT_DLGLOBAL 0
11686 # endif
11687 #endif
11689 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11690 find out it does not work in some platform. */
11691 #ifndef LT_DLLAZY_OR_NOW
11692 # ifdef RTLD_LAZY
11693 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11694 # else
11695 # ifdef DL_LAZY
11696 # define LT_DLLAZY_OR_NOW DL_LAZY
11697 # else
11698 # ifdef RTLD_NOW
11699 # define LT_DLLAZY_OR_NOW RTLD_NOW
11700 # else
11701 # ifdef DL_NOW
11702 # define LT_DLLAZY_OR_NOW DL_NOW
11703 # else
11704 # define LT_DLLAZY_OR_NOW 0
11705 # endif
11706 # endif
11707 # endif
11708 # endif
11709 #endif
11711 /* When -fvisbility=hidden is used, assume the code has been annotated
11712 correspondingly for the symbols needed. */
11713 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11714 void fnord () __attribute__((visibility("default")));
11715 #endif
11717 void fnord () { int i=42; }
11718 int main ()
11720 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11721 int status = $lt_dlunknown;
11723 if (self)
11725 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11726 else
11728 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11729 else puts (dlerror ());
11731 /* dlclose (self); */
11733 else
11734 puts (dlerror ());
11736 return status;
11738 _LT_EOF
11739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11740 (eval $ac_link) 2>&5
11741 ac_status=$?
11742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11743 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11744 (./conftest; exit; ) >&5 2>/dev/null
11745 lt_status=$?
11746 case x$lt_status in
11747 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11748 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11749 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11750 esac
11751 else :
11752 # compilation failed
11753 lt_cv_dlopen_self_static=no
11756 rm -fr conftest*
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11761 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11764 CPPFLAGS="$save_CPPFLAGS"
11765 LDFLAGS="$save_LDFLAGS"
11766 LIBS="$save_LIBS"
11768 esac
11770 case $lt_cv_dlopen_self in
11771 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11772 *) enable_dlopen_self=unknown ;;
11773 esac
11775 case $lt_cv_dlopen_self_static in
11776 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11777 *) enable_dlopen_self_static=unknown ;;
11778 esac
11797 striplib=
11798 old_striplib=
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11800 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11801 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11802 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11803 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11805 $as_echo "yes" >&6; }
11806 else
11807 # FIXME - insert some real tests, host_os isn't really good enough
11808 case $host_os in
11809 darwin*)
11810 if test -n "$STRIP" ; then
11811 striplib="$STRIP -x"
11812 old_striplib="$STRIP -S"
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11814 $as_echo "yes" >&6; }
11815 else
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11817 $as_echo "no" >&6; }
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11822 $as_echo "no" >&6; }
11824 esac
11838 # Report which library types will actually be built
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11840 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11842 $as_echo "$can_build_shared" >&6; }
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11845 $as_echo_n "checking whether to build shared libraries... " >&6; }
11846 test "$can_build_shared" = "no" && enable_shared=no
11848 # On AIX, shared libraries and static libraries use the same namespace, and
11849 # are all built from PIC.
11850 case $host_os in
11851 aix3*)
11852 test "$enable_shared" = yes && enable_static=no
11853 if test -n "$RANLIB"; then
11854 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11855 postinstall_cmds='$RANLIB $lib'
11859 aix[4-9]*)
11860 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11861 test "$enable_shared" = yes && enable_static=no
11864 esac
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11866 $as_echo "$enable_shared" >&6; }
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11869 $as_echo_n "checking whether to build static libraries... " >&6; }
11870 # Make sure either enable_shared or enable_static is yes.
11871 test "$enable_shared" = yes || enable_static=yes
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11873 $as_echo "$enable_static" >&6; }
11879 ac_ext=c
11880 ac_cpp='$CPP $CPPFLAGS'
11881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11885 CC="$lt_save_CC"
11887 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11888 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11889 (test "X$CXX" != "Xg++"))) ; then
11890 ac_ext=cpp
11891 ac_cpp='$CXXCPP $CPPFLAGS'
11892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11896 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11897 if test -z "$CXXCPP"; then
11898 if ${ac_cv_prog_CXXCPP+:} false; then :
11899 $as_echo_n "(cached) " >&6
11900 else
11901 # Double quotes because CXXCPP needs to be expanded
11902 for CXXCPP in "$CXX -E" "/lib/cpp"
11904 ac_preproc_ok=false
11905 for ac_cxx_preproc_warn_flag in '' yes
11907 # Use a header file that comes with gcc, so configuring glibc
11908 # with a fresh cross-compiler works.
11909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11910 # <limits.h> exists even on freestanding compilers.
11911 # On the NeXT, cc -E runs the code through the compiler's parser,
11912 # not just through cpp. "Syntax error" is here to catch this case.
11913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11914 /* end confdefs.h. */
11915 #ifdef __STDC__
11916 # include <limits.h>
11917 #else
11918 # include <assert.h>
11919 #endif
11920 Syntax error
11921 _ACEOF
11922 if ac_fn_cxx_try_cpp "$LINENO"; then :
11924 else
11925 # Broken: fails on valid input.
11926 continue
11928 rm -f conftest.err conftest.i conftest.$ac_ext
11930 # OK, works on sane cases. Now check whether nonexistent headers
11931 # can be detected and how.
11932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11933 /* end confdefs.h. */
11934 #include <ac_nonexistent.h>
11935 _ACEOF
11936 if ac_fn_cxx_try_cpp "$LINENO"; then :
11937 # Broken: success on invalid input.
11938 continue
11939 else
11940 # Passes both tests.
11941 ac_preproc_ok=:
11942 break
11944 rm -f conftest.err conftest.i conftest.$ac_ext
11946 done
11947 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11948 rm -f conftest.i conftest.err conftest.$ac_ext
11949 if $ac_preproc_ok; then :
11950 break
11953 done
11954 ac_cv_prog_CXXCPP=$CXXCPP
11957 CXXCPP=$ac_cv_prog_CXXCPP
11958 else
11959 ac_cv_prog_CXXCPP=$CXXCPP
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11962 $as_echo "$CXXCPP" >&6; }
11963 ac_preproc_ok=false
11964 for ac_cxx_preproc_warn_flag in '' yes
11966 # Use a header file that comes with gcc, so configuring glibc
11967 # with a fresh cross-compiler works.
11968 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11969 # <limits.h> exists even on freestanding compilers.
11970 # On the NeXT, cc -E runs the code through the compiler's parser,
11971 # not just through cpp. "Syntax error" is here to catch this case.
11972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11973 /* end confdefs.h. */
11974 #ifdef __STDC__
11975 # include <limits.h>
11976 #else
11977 # include <assert.h>
11978 #endif
11979 Syntax error
11980 _ACEOF
11981 if ac_fn_cxx_try_cpp "$LINENO"; then :
11983 else
11984 # Broken: fails on valid input.
11985 continue
11987 rm -f conftest.err conftest.i conftest.$ac_ext
11989 # OK, works on sane cases. Now check whether nonexistent headers
11990 # can be detected and how.
11991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11992 /* end confdefs.h. */
11993 #include <ac_nonexistent.h>
11994 _ACEOF
11995 if ac_fn_cxx_try_cpp "$LINENO"; then :
11996 # Broken: success on invalid input.
11997 continue
11998 else
11999 # Passes both tests.
12000 ac_preproc_ok=:
12001 break
12003 rm -f conftest.err conftest.i conftest.$ac_ext
12005 done
12006 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12007 rm -f conftest.i conftest.err conftest.$ac_ext
12008 if $ac_preproc_ok; then :
12010 else
12011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12013 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12014 See \`config.log' for more details" "$LINENO" 5; }
12017 ac_ext=c
12018 ac_cpp='$CPP $CPPFLAGS'
12019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12023 else
12024 _lt_caught_CXX_error=yes
12027 ac_ext=cpp
12028 ac_cpp='$CXXCPP $CPPFLAGS'
12029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12033 archive_cmds_need_lc_CXX=no
12034 allow_undefined_flag_CXX=
12035 always_export_symbols_CXX=no
12036 archive_expsym_cmds_CXX=
12037 compiler_needs_object_CXX=no
12038 export_dynamic_flag_spec_CXX=
12039 hardcode_direct_CXX=no
12040 hardcode_direct_absolute_CXX=no
12041 hardcode_libdir_flag_spec_CXX=
12042 hardcode_libdir_flag_spec_ld_CXX=
12043 hardcode_libdir_separator_CXX=
12044 hardcode_minus_L_CXX=no
12045 hardcode_shlibpath_var_CXX=unsupported
12046 hardcode_automatic_CXX=no
12047 inherit_rpath_CXX=no
12048 module_cmds_CXX=
12049 module_expsym_cmds_CXX=
12050 link_all_deplibs_CXX=unknown
12051 old_archive_cmds_CXX=$old_archive_cmds
12052 reload_flag_CXX=$reload_flag
12053 reload_cmds_CXX=$reload_cmds
12054 no_undefined_flag_CXX=
12055 whole_archive_flag_spec_CXX=
12056 enable_shared_with_static_runtimes_CXX=no
12058 # Source file extension for C++ test sources.
12059 ac_ext=cpp
12061 # Object file extension for compiled C++ test sources.
12062 objext=o
12063 objext_CXX=$objext
12065 # No sense in running all these tests if we already determined that
12066 # the CXX compiler isn't working. Some variables (like enable_shared)
12067 # are currently assumed to apply to all compilers on this platform,
12068 # and will be corrupted by setting them based on a non-working compiler.
12069 if test "$_lt_caught_CXX_error" != yes; then
12070 # Code to be used in simple compile tests
12071 lt_simple_compile_test_code="int some_variable = 0;"
12073 # Code to be used in simple link tests
12074 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12076 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12083 # If no C compiler was specified, use CC.
12084 LTCC=${LTCC-"$CC"}
12086 # If no C compiler flags were specified, use CFLAGS.
12087 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12089 # Allow CC to be a program name with arguments.
12090 compiler=$CC
12093 # save warnings/boilerplate of simple test code
12094 ac_outfile=conftest.$ac_objext
12095 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12096 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12097 _lt_compiler_boilerplate=`cat conftest.err`
12098 $RM conftest*
12100 ac_outfile=conftest.$ac_objext
12101 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12102 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12103 _lt_linker_boilerplate=`cat conftest.err`
12104 $RM -r conftest*
12107 # Allow CC to be a program name with arguments.
12108 lt_save_CC=$CC
12109 lt_save_LD=$LD
12110 lt_save_GCC=$GCC
12111 GCC=$GXX
12112 lt_save_with_gnu_ld=$with_gnu_ld
12113 lt_save_path_LD=$lt_cv_path_LD
12114 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12115 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12116 else
12117 $as_unset lt_cv_prog_gnu_ld
12119 if test -n "${lt_cv_path_LDCXX+set}"; then
12120 lt_cv_path_LD=$lt_cv_path_LDCXX
12121 else
12122 $as_unset lt_cv_path_LD
12124 test -z "${LDCXX+set}" || LD=$LDCXX
12125 CC=${CXX-"c++"}
12126 compiler=$CC
12127 compiler_CXX=$CC
12128 for cc_temp in $compiler""; do
12129 case $cc_temp in
12130 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12131 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12132 \-*) ;;
12133 *) break;;
12134 esac
12135 done
12136 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12139 if test -n "$compiler"; then
12140 # We don't want -fno-exception when compiling C++ code, so set the
12141 # no_builtin_flag separately
12142 if test "$GXX" = yes; then
12143 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12144 else
12145 lt_prog_compiler_no_builtin_flag_CXX=
12148 if test "$GXX" = yes; then
12149 # Set up default GNU C++ configuration
12153 # Check whether --with-gnu-ld was given.
12154 if test "${with_gnu_ld+set}" = set; then :
12155 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12156 else
12157 with_gnu_ld=no
12160 ac_prog=ld
12161 if test "$GCC" = yes; then
12162 # Check if gcc -print-prog-name=ld gives a path.
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12164 $as_echo_n "checking for ld used by $CC... " >&6; }
12165 case $host in
12166 *-*-mingw*)
12167 # gcc leaves a trailing carriage return which upsets mingw
12168 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12170 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12171 esac
12172 case $ac_prog in
12173 # Accept absolute paths.
12174 [\\/]* | ?:[\\/]*)
12175 re_direlt='/[^/][^/]*/\.\./'
12176 # Canonicalize the pathname of ld
12177 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12178 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12179 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12180 done
12181 test -z "$LD" && LD="$ac_prog"
12184 # If it fails, then pretend we aren't using GCC.
12185 ac_prog=ld
12188 # If it is relative, then search for the first ld in PATH.
12189 with_gnu_ld=unknown
12191 esac
12192 elif test "$with_gnu_ld" = yes; then
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12194 $as_echo_n "checking for GNU ld... " >&6; }
12195 else
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12197 $as_echo_n "checking for non-GNU ld... " >&6; }
12199 if ${lt_cv_path_LD+:} false; then :
12200 $as_echo_n "(cached) " >&6
12201 else
12202 if test -z "$LD"; then
12203 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12204 for ac_dir in $PATH; do
12205 IFS="$lt_save_ifs"
12206 test -z "$ac_dir" && ac_dir=.
12207 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12208 lt_cv_path_LD="$ac_dir/$ac_prog"
12209 # Check to see if the program is GNU ld. I'd rather use --version,
12210 # but apparently some variants of GNU ld only accept -v.
12211 # Break only if it was the GNU/non-GNU ld that we prefer.
12212 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12213 *GNU* | *'with BFD'*)
12214 test "$with_gnu_ld" != no && break
12217 test "$with_gnu_ld" != yes && break
12219 esac
12221 done
12222 IFS="$lt_save_ifs"
12223 else
12224 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12228 LD="$lt_cv_path_LD"
12229 if test -n "$LD"; then
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12231 $as_echo "$LD" >&6; }
12232 else
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234 $as_echo "no" >&6; }
12236 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12238 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12239 if ${lt_cv_prog_gnu_ld+:} false; then :
12240 $as_echo_n "(cached) " >&6
12241 else
12242 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12243 case `$LD -v 2>&1 </dev/null` in
12244 *GNU* | *'with BFD'*)
12245 lt_cv_prog_gnu_ld=yes
12248 lt_cv_prog_gnu_ld=no
12250 esac
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12253 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12254 with_gnu_ld=$lt_cv_prog_gnu_ld
12262 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12263 # archiving commands below assume that GNU ld is being used.
12264 if test "$with_gnu_ld" = yes; then
12265 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12266 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'
12268 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12269 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12271 # If archive_cmds runs LD, not CC, wlarc should be empty
12272 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12273 # investigate it a little bit more. (MM)
12274 wlarc='${wl}'
12276 # ancient GNU ld didn't support --whole-archive et. al.
12277 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12278 $GREP 'no-whole-archive' > /dev/null; then
12279 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12280 else
12281 whole_archive_flag_spec_CXX=
12283 else
12284 with_gnu_ld=no
12285 wlarc=
12287 # A generic and very simple default shared library creation
12288 # command for GNU C++ for the case where it uses the native
12289 # linker, instead of GNU ld. If possible, this setting should
12290 # overridden to take advantage of the native linker features on
12291 # the platform it is being used on.
12292 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12295 # Commands to make compiler produce verbose output that lists
12296 # what "hidden" libraries, object files and flags are used when
12297 # linking a shared library.
12298 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12300 else
12301 GXX=no
12302 with_gnu_ld=no
12303 wlarc=
12306 # PORTME: fill in a description of your system's C++ link characteristics
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12308 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12309 ld_shlibs_CXX=yes
12310 case $host_os in
12311 aix3*)
12312 # FIXME: insert proper C++ library support
12313 ld_shlibs_CXX=no
12315 aix[4-9]*)
12316 if test "$host_cpu" = ia64; then
12317 # On IA64, the linker does run time linking by default, so we don't
12318 # have to do anything special.
12319 aix_use_runtimelinking=no
12320 exp_sym_flag='-Bexport'
12321 no_entry_flag=""
12322 else
12323 aix_use_runtimelinking=no
12325 # Test if we are trying to use run time linking or normal
12326 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12327 # need to do runtime linking.
12328 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12329 for ld_flag in $LDFLAGS; do
12330 case $ld_flag in
12331 *-brtl*)
12332 aix_use_runtimelinking=yes
12333 break
12335 esac
12336 done
12338 esac
12340 exp_sym_flag='-bexport'
12341 no_entry_flag='-bnoentry'
12344 # When large executables or shared objects are built, AIX ld can
12345 # have problems creating the table of contents. If linking a library
12346 # or program results in "error TOC overflow" add -mminimal-toc to
12347 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12348 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12350 archive_cmds_CXX=''
12351 hardcode_direct_CXX=yes
12352 hardcode_direct_absolute_CXX=yes
12353 hardcode_libdir_separator_CXX=':'
12354 link_all_deplibs_CXX=yes
12355 file_list_spec_CXX='${wl}-f,'
12357 if test "$GXX" = yes; then
12358 case $host_os in aix4.[012]|aix4.[012].*)
12359 # We only want to do this on AIX 4.2 and lower, the check
12360 # below for broken collect2 doesn't work under 4.3+
12361 collect2name=`${CC} -print-prog-name=collect2`
12362 if test -f "$collect2name" &&
12363 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12364 then
12365 # We have reworked collect2
12367 else
12368 # We have old collect2
12369 hardcode_direct_CXX=unsupported
12370 # It fails to find uninstalled libraries when the uninstalled
12371 # path is not listed in the libpath. Setting hardcode_minus_L
12372 # to unsupported forces relinking
12373 hardcode_minus_L_CXX=yes
12374 hardcode_libdir_flag_spec_CXX='-L$libdir'
12375 hardcode_libdir_separator_CXX=
12377 esac
12378 shared_flag='-shared'
12379 if test "$aix_use_runtimelinking" = yes; then
12380 shared_flag="$shared_flag "'${wl}-G'
12382 else
12383 # not using gcc
12384 if test "$host_cpu" = ia64; then
12385 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12386 # chokes on -Wl,-G. The following line is correct:
12387 shared_flag='-G'
12388 else
12389 if test "$aix_use_runtimelinking" = yes; then
12390 shared_flag='${wl}-G'
12391 else
12392 shared_flag='${wl}-bM:SRE'
12397 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12398 # It seems that -bexpall does not export symbols beginning with
12399 # underscore (_), so it is better to generate a list of symbols to
12400 # export.
12401 always_export_symbols_CXX=yes
12402 if test "$aix_use_runtimelinking" = yes; then
12403 # Warning - without using the other runtime loading flags (-brtl),
12404 # -berok will link without error, but may produce a broken library.
12405 allow_undefined_flag_CXX='-berok'
12406 # Determine the default libpath from the value encoded in an empty
12407 # executable.
12408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12409 /* end confdefs.h. */
12412 main ()
12416 return 0;
12418 _ACEOF
12419 if ac_fn_cxx_try_link "$LINENO"; then :
12421 lt_aix_libpath_sed='
12422 /Import File Strings/,/^$/ {
12423 /^0/ {
12424 s/^0 *\(.*\)$/\1/
12428 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12429 # Check for a 64-bit object if we didn't find anything.
12430 if test -z "$aix_libpath"; then
12431 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12434 rm -f core conftest.err conftest.$ac_objext \
12435 conftest$ac_exeext conftest.$ac_ext
12436 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12438 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12440 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"
12441 else
12442 if test "$host_cpu" = ia64; then
12443 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12444 allow_undefined_flag_CXX="-z nodefs"
12445 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"
12446 else
12447 # Determine the default libpath from the value encoded in an
12448 # empty executable.
12449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12450 /* end confdefs.h. */
12453 main ()
12457 return 0;
12459 _ACEOF
12460 if ac_fn_cxx_try_link "$LINENO"; then :
12462 lt_aix_libpath_sed='
12463 /Import File Strings/,/^$/ {
12464 /^0/ {
12465 s/^0 *\(.*\)$/\1/
12469 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12470 # Check for a 64-bit object if we didn't find anything.
12471 if test -z "$aix_libpath"; then
12472 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12475 rm -f core conftest.err conftest.$ac_objext \
12476 conftest$ac_exeext conftest.$ac_ext
12477 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12479 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12480 # Warning - without using the other run time loading flags,
12481 # -berok will link without error, but may produce a broken library.
12482 no_undefined_flag_CXX=' ${wl}-bernotok'
12483 allow_undefined_flag_CXX=' ${wl}-berok'
12484 if test "$with_gnu_ld" = yes; then
12485 # We only use this code for GNU lds that support --whole-archive.
12486 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12487 else
12488 # Exported symbols can be pulled into shared objects from archives
12489 whole_archive_flag_spec_CXX='$convenience'
12491 archive_cmds_need_lc_CXX=yes
12492 # This is similar to how AIX traditionally builds its shared
12493 # libraries.
12494 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'
12499 beos*)
12500 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12501 allow_undefined_flag_CXX=unsupported
12502 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12503 # support --undefined. This deserves some investigation. FIXME
12504 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12505 else
12506 ld_shlibs_CXX=no
12510 chorus*)
12511 case $cc_basename in
12513 # FIXME: insert proper C++ library support
12514 ld_shlibs_CXX=no
12516 esac
12519 cygwin* | mingw* | pw32* | cegcc*)
12520 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12521 # as there is no search path for DLLs.
12522 hardcode_libdir_flag_spec_CXX='-L$libdir'
12523 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12524 allow_undefined_flag_CXX=unsupported
12525 always_export_symbols_CXX=no
12526 enable_shared_with_static_runtimes_CXX=yes
12528 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12529 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'
12530 # If the export-symbols file already is a .def file (1st line
12531 # is EXPORTS), use it as is; otherwise, prepend...
12532 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12533 cp $export_symbols $output_objdir/$soname.def;
12534 else
12535 echo EXPORTS > $output_objdir/$soname.def;
12536 cat $export_symbols >> $output_objdir/$soname.def;
12538 $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'
12539 else
12540 ld_shlibs_CXX=no
12543 darwin* | rhapsody*)
12546 archive_cmds_need_lc_CXX=no
12547 hardcode_direct_CXX=no
12548 hardcode_automatic_CXX=yes
12549 hardcode_shlibpath_var_CXX=unsupported
12550 if test "$lt_cv_ld_force_load" = "yes"; then
12551 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\"`'
12552 else
12553 whole_archive_flag_spec_CXX=''
12555 link_all_deplibs_CXX=yes
12556 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12557 case $cc_basename in
12558 ifort*) _lt_dar_can_shared=yes ;;
12559 *) _lt_dar_can_shared=$GCC ;;
12560 esac
12561 if test "$_lt_dar_can_shared" = "yes"; then
12562 output_verbose_link_cmd=func_echo_all
12563 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}"
12564 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12565 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}"
12566 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}"
12567 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12568 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}"
12569 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}"
12572 else
12573 ld_shlibs_CXX=no
12578 dgux*)
12579 case $cc_basename in
12580 ec++*)
12581 # FIXME: insert proper C++ library support
12582 ld_shlibs_CXX=no
12584 ghcx*)
12585 # Green Hills C++ Compiler
12586 # FIXME: insert proper C++ library support
12587 ld_shlibs_CXX=no
12590 # FIXME: insert proper C++ library support
12591 ld_shlibs_CXX=no
12593 esac
12596 freebsd2.*)
12597 # C++ shared libraries reported to be fairly broken before
12598 # switch to ELF
12599 ld_shlibs_CXX=no
12602 freebsd-elf*)
12603 archive_cmds_need_lc_CXX=no
12606 freebsd* | dragonfly*)
12607 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12608 # conventions
12609 ld_shlibs_CXX=yes
12612 gnu*)
12615 haiku*)
12616 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12617 link_all_deplibs_CXX=yes
12620 hpux9*)
12621 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12622 hardcode_libdir_separator_CXX=:
12623 export_dynamic_flag_spec_CXX='${wl}-E'
12624 hardcode_direct_CXX=yes
12625 hardcode_minus_L_CXX=yes # Not in the search PATH,
12626 # but as the default
12627 # location of the library.
12629 case $cc_basename in
12630 CC*)
12631 # FIXME: insert proper C++ library support
12632 ld_shlibs_CXX=no
12634 aCC*)
12635 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'
12636 # Commands to make compiler produce verbose output that lists
12637 # what "hidden" libraries, object files and flags are used when
12638 # linking a shared library.
12640 # There doesn't appear to be a way to prevent this compiler from
12641 # explicitly linking system object files so we need to strip them
12642 # from the output so that they don't get included in the library
12643 # dependencies.
12644 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"'
12647 if test "$GXX" = yes; then
12648 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'
12649 else
12650 # FIXME: insert proper C++ library support
12651 ld_shlibs_CXX=no
12654 esac
12657 hpux10*|hpux11*)
12658 if test $with_gnu_ld = no; then
12659 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12660 hardcode_libdir_separator_CXX=:
12662 case $host_cpu in
12663 hppa*64*|ia64*)
12666 export_dynamic_flag_spec_CXX='${wl}-E'
12668 esac
12670 case $host_cpu in
12671 hppa*64*|ia64*)
12672 hardcode_direct_CXX=no
12673 hardcode_shlibpath_var_CXX=no
12676 hardcode_direct_CXX=yes
12677 hardcode_direct_absolute_CXX=yes
12678 hardcode_minus_L_CXX=yes # Not in the search PATH,
12679 # but as the default
12680 # location of the library.
12682 esac
12684 case $cc_basename in
12685 CC*)
12686 # FIXME: insert proper C++ library support
12687 ld_shlibs_CXX=no
12689 aCC*)
12690 case $host_cpu in
12691 hppa*64*)
12692 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12694 ia64*)
12695 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12698 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12700 esac
12701 # Commands to make compiler produce verbose output that lists
12702 # what "hidden" libraries, object files and flags are used when
12703 # linking a shared library.
12705 # There doesn't appear to be a way to prevent this compiler from
12706 # explicitly linking system object files so we need to strip them
12707 # from the output so that they don't get included in the library
12708 # dependencies.
12709 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"'
12712 if test "$GXX" = yes; then
12713 if test $with_gnu_ld = no; then
12714 case $host_cpu in
12715 hppa*64*)
12716 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12718 ia64*)
12719 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12722 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'
12724 esac
12726 else
12727 # FIXME: insert proper C++ library support
12728 ld_shlibs_CXX=no
12731 esac
12734 interix[3-9]*)
12735 hardcode_direct_CXX=no
12736 hardcode_shlibpath_var_CXX=no
12737 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12738 export_dynamic_flag_spec_CXX='${wl}-E'
12739 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12740 # Instead, shared libraries are loaded at an image base (0x10000000 by
12741 # default) and relocated if they conflict, which is a slow very memory
12742 # consuming and fragmenting process. To avoid this, we pick a random,
12743 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12744 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12745 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'
12746 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'
12748 irix5* | irix6*)
12749 case $cc_basename in
12750 CC*)
12751 # SGI C++
12752 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'
12754 # Archives containing C++ object files must be created using
12755 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12756 # necessary to make sure instantiated templates are included
12757 # in the archive.
12758 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12761 if test "$GXX" = yes; then
12762 if test "$with_gnu_ld" = no; then
12763 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'
12764 else
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"` -o $lib'
12768 link_all_deplibs_CXX=yes
12770 esac
12771 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12772 hardcode_libdir_separator_CXX=:
12773 inherit_rpath_CXX=yes
12776 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12777 case $cc_basename in
12778 KCC*)
12779 # Kuck and Associates, Inc. (KAI) C++ Compiler
12781 # KCC will only create a shared library if the output file
12782 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12783 # to its proper name (with version) after linking.
12784 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'
12785 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'
12786 # Commands to make compiler produce verbose output that lists
12787 # what "hidden" libraries, object files and flags are used when
12788 # linking a shared library.
12790 # There doesn't appear to be a way to prevent this compiler from
12791 # explicitly linking system object files so we need to strip them
12792 # from the output so that they don't get included in the library
12793 # dependencies.
12794 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"'
12796 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12797 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12799 # Archives containing C++ object files must be created using
12800 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12801 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12803 icpc* | ecpc* )
12804 # Intel C++
12805 with_gnu_ld=yes
12806 # version 8.0 and above of icpc choke on multiply defined symbols
12807 # if we add $predep_objects and $postdep_objects, however 7.1 and
12808 # earlier do not add the objects themselves.
12809 case `$CC -V 2>&1` in
12810 *"Version 7."*)
12811 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12812 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'
12814 *) # Version 8.0 or newer
12815 tmp_idyn=
12816 case $host_cpu in
12817 ia64*) tmp_idyn=' -i_dynamic';;
12818 esac
12819 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12820 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'
12822 esac
12823 archive_cmds_need_lc_CXX=no
12824 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12825 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12826 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12828 pgCC* | pgcpp*)
12829 # Portland Group C++ compiler
12830 case `$CC -V` in
12831 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12832 prelink_cmds_CXX='tpldir=Template.dir~
12833 rm -rf $tpldir~
12834 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12835 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12836 old_archive_cmds_CXX='tpldir=Template.dir~
12837 rm -rf $tpldir~
12838 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12839 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12840 $RANLIB $oldlib'
12841 archive_cmds_CXX='tpldir=Template.dir~
12842 rm -rf $tpldir~
12843 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12844 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12845 archive_expsym_cmds_CXX='tpldir=Template.dir~
12846 rm -rf $tpldir~
12847 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12848 $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'
12850 *) # Version 6 and above use weak symbols
12851 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12852 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'
12854 esac
12856 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12857 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12858 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'
12860 cxx*)
12861 # Compaq C++
12862 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12863 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'
12865 runpath_var=LD_RUN_PATH
12866 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12867 hardcode_libdir_separator_CXX=:
12869 # Commands to make compiler produce verbose output that lists
12870 # what "hidden" libraries, object files and flags are used when
12871 # linking a shared library.
12873 # There doesn't appear to be a way to prevent this compiler from
12874 # explicitly linking system object files so we need to strip them
12875 # from the output so that they don't get included in the library
12876 # dependencies.
12877 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'
12879 xl* | mpixl* | bgxl*)
12880 # IBM XL 8.0 on PPC, with GNU ld
12881 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12882 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12883 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12884 if test "x$supports_anon_versioning" = xyes; then
12885 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12886 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12887 echo "local: *; };" >> $output_objdir/$libname.ver~
12888 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12892 case `$CC -V 2>&1 | sed 5q` in
12893 *Sun\ C*)
12894 # Sun C++ 5.9
12895 no_undefined_flag_CXX=' -zdefs'
12896 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12897 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'
12898 hardcode_libdir_flag_spec_CXX='-R$libdir'
12899 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'
12900 compiler_needs_object_CXX=yes
12902 # Not sure whether something based on
12903 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12904 # would be better.
12905 output_verbose_link_cmd='func_echo_all'
12907 # Archives containing C++ object files must be created using
12908 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12909 # necessary to make sure instantiated templates are included
12910 # in the archive.
12911 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12913 esac
12915 esac
12918 lynxos*)
12919 # FIXME: insert proper C++ library support
12920 ld_shlibs_CXX=no
12923 m88k*)
12924 # FIXME: insert proper C++ library support
12925 ld_shlibs_CXX=no
12928 mvs*)
12929 case $cc_basename in
12930 cxx*)
12931 # FIXME: insert proper C++ library support
12932 ld_shlibs_CXX=no
12935 # FIXME: insert proper C++ library support
12936 ld_shlibs_CXX=no
12938 esac
12941 netbsd*)
12942 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12943 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12944 wlarc=
12945 hardcode_libdir_flag_spec_CXX='-R$libdir'
12946 hardcode_direct_CXX=yes
12947 hardcode_shlibpath_var_CXX=no
12949 # Workaround some broken pre-1.5 toolchains
12950 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12953 *nto* | *qnx*)
12954 ld_shlibs_CXX=yes
12957 openbsd2*)
12958 # C++ shared libraries are fairly broken
12959 ld_shlibs_CXX=no
12962 openbsd*)
12963 if test -f /usr/libexec/ld.so; then
12964 hardcode_direct_CXX=yes
12965 hardcode_shlibpath_var_CXX=no
12966 hardcode_direct_absolute_CXX=yes
12967 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12968 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12969 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12970 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12971 export_dynamic_flag_spec_CXX='${wl}-E'
12972 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12974 output_verbose_link_cmd=func_echo_all
12975 else
12976 ld_shlibs_CXX=no
12980 osf3* | osf4* | osf5*)
12981 case $cc_basename in
12982 KCC*)
12983 # Kuck and Associates, Inc. (KAI) C++ Compiler
12985 # KCC will only create a shared library if the output file
12986 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12987 # to its proper name (with version) after linking.
12988 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'
12990 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12991 hardcode_libdir_separator_CXX=:
12993 # Archives containing C++ object files must be created using
12994 # the KAI C++ compiler.
12995 case $host in
12996 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12997 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12998 esac
13000 RCC*)
13001 # Rational C++ 2.4.1
13002 # FIXME: insert proper C++ library support
13003 ld_shlibs_CXX=no
13005 cxx*)
13006 case $host in
13007 osf3*)
13008 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13009 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'
13010 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13013 allow_undefined_flag_CXX=' -expect_unresolved \*'
13014 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'
13015 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13016 echo "-hidden">> $lib.exp~
13017 $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~
13018 $RM $lib.exp'
13019 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13021 esac
13023 hardcode_libdir_separator_CXX=:
13025 # Commands to make compiler produce verbose output that lists
13026 # what "hidden" libraries, object files and flags are used when
13027 # linking a shared library.
13029 # There doesn't appear to be a way to prevent this compiler from
13030 # explicitly linking system object files so we need to strip them
13031 # from the output so that they don't get included in the library
13032 # dependencies.
13033 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"'
13036 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13037 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13038 case $host in
13039 osf3*)
13040 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'
13043 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'
13045 esac
13047 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13048 hardcode_libdir_separator_CXX=:
13050 # Commands to make compiler produce verbose output that lists
13051 # what "hidden" libraries, object files and flags are used when
13052 # linking a shared library.
13053 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13055 else
13056 # FIXME: insert proper C++ library support
13057 ld_shlibs_CXX=no
13060 esac
13063 psos*)
13064 # FIXME: insert proper C++ library support
13065 ld_shlibs_CXX=no
13068 sunos4*)
13069 case $cc_basename in
13070 CC*)
13071 # Sun C++ 4.x
13072 # FIXME: insert proper C++ library support
13073 ld_shlibs_CXX=no
13075 lcc*)
13076 # Lucid
13077 # FIXME: insert proper C++ library support
13078 ld_shlibs_CXX=no
13081 # FIXME: insert proper C++ library support
13082 ld_shlibs_CXX=no
13084 esac
13087 solaris*)
13088 case $cc_basename in
13089 CC*)
13090 # Sun C++ 4.2, 5.x and Centerline C++
13091 archive_cmds_need_lc_CXX=yes
13092 no_undefined_flag_CXX=' -zdefs'
13093 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13094 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13095 $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'
13097 hardcode_libdir_flag_spec_CXX='-R$libdir'
13098 hardcode_shlibpath_var_CXX=no
13099 case $host_os in
13100 solaris2.[0-5] | solaris2.[0-5].*) ;;
13102 # The compiler driver will combine and reorder linker options,
13103 # but understands `-z linker_flag'.
13104 # Supported since Solaris 2.6 (maybe 2.5.1?)
13105 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13107 esac
13108 link_all_deplibs_CXX=yes
13110 output_verbose_link_cmd='func_echo_all'
13112 # Archives containing C++ object files must be created using
13113 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13114 # necessary to make sure instantiated templates are included
13115 # in the archive.
13116 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13118 gcx*)
13119 # Green Hills C++ Compiler
13120 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13122 # The C++ compiler must be used to create the archive.
13123 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13126 # GNU C++ compiler with Solaris linker
13127 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13128 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13129 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13130 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13131 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13132 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13134 # Commands to make compiler produce verbose output that lists
13135 # what "hidden" libraries, object files and flags are used when
13136 # linking a shared library.
13137 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13138 else
13139 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13140 # platform.
13141 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13142 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13143 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13145 # Commands to make compiler produce verbose output that lists
13146 # what "hidden" libraries, object files and flags are used when
13147 # linking a shared library.
13148 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13151 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13152 case $host_os in
13153 solaris2.[0-5] | solaris2.[0-5].*) ;;
13155 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13157 esac
13160 esac
13163 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13164 no_undefined_flag_CXX='${wl}-z,text'
13165 archive_cmds_need_lc_CXX=no
13166 hardcode_shlibpath_var_CXX=no
13167 runpath_var='LD_RUN_PATH'
13169 case $cc_basename in
13170 CC*)
13171 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13172 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13175 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13176 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13178 esac
13181 sysv5* | sco3.2v5* | sco5v6*)
13182 # Note: We can NOT use -z defs as we might desire, because we do not
13183 # link with -lc, and that would cause any symbols used from libc to
13184 # always be unresolved, which means just about no library would
13185 # ever link correctly. If we're not using GNU ld we use -z text
13186 # though, which does catch some bad symbols but isn't as heavy-handed
13187 # as -z defs.
13188 no_undefined_flag_CXX='${wl}-z,text'
13189 allow_undefined_flag_CXX='${wl}-z,nodefs'
13190 archive_cmds_need_lc_CXX=no
13191 hardcode_shlibpath_var_CXX=no
13192 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13193 hardcode_libdir_separator_CXX=':'
13194 link_all_deplibs_CXX=yes
13195 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13196 runpath_var='LD_RUN_PATH'
13198 case $cc_basename in
13199 CC*)
13200 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13201 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13202 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13203 '"$old_archive_cmds_CXX"
13204 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13205 '"$reload_cmds_CXX"
13208 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13209 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13211 esac
13214 tandem*)
13215 case $cc_basename in
13216 NCC*)
13217 # NonStop-UX NCC 3.20
13218 # FIXME: insert proper C++ library support
13219 ld_shlibs_CXX=no
13222 # FIXME: insert proper C++ library support
13223 ld_shlibs_CXX=no
13225 esac
13228 vxworks*)
13229 # FIXME: insert proper C++ library support
13230 ld_shlibs_CXX=no
13234 # FIXME: insert proper C++ library support
13235 ld_shlibs_CXX=no
13237 esac
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13240 $as_echo "$ld_shlibs_CXX" >&6; }
13241 test "$ld_shlibs_CXX" = no && can_build_shared=no
13243 GCC_CXX="$GXX"
13244 LD_CXX="$LD"
13246 ## CAVEAT EMPTOR:
13247 ## There is no encapsulation within the following macros, do not change
13248 ## the running order or otherwise move them around unless you know exactly
13249 ## what you are doing...
13250 # Dependencies to place before and after the object being linked:
13251 predep_objects_CXX=
13252 postdep_objects_CXX=
13253 predeps_CXX=
13254 postdeps_CXX=
13255 compiler_lib_search_path_CXX=
13257 cat > conftest.$ac_ext <<_LT_EOF
13258 class Foo
13260 public:
13261 Foo (void) { a = 0; }
13262 private:
13263 int a;
13265 _LT_EOF
13267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13268 (eval $ac_compile) 2>&5
13269 ac_status=$?
13270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13271 test $ac_status = 0; }; then
13272 # Parse the compiler output and extract the necessary
13273 # objects, libraries and library flags.
13275 # Sentinel used to keep track of whether or not we are before
13276 # the conftest object file.
13277 pre_test_object_deps_done=no
13279 for p in `eval "$output_verbose_link_cmd"`; do
13280 case $p in
13282 -L* | -R* | -l*)
13283 # Some compilers place space between "-{L,R}" and the path.
13284 # Remove the space.
13285 if test $p = "-L" ||
13286 test $p = "-R"; then
13287 prev=$p
13288 continue
13289 else
13290 prev=
13293 if test "$pre_test_object_deps_done" = no; then
13294 case $p in
13295 -L* | -R*)
13296 # Internal compiler library paths should come after those
13297 # provided the user. The postdeps already come after the
13298 # user supplied libs so there is no need to process them.
13299 if test -z "$compiler_lib_search_path_CXX"; then
13300 compiler_lib_search_path_CXX="${prev}${p}"
13301 else
13302 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13305 # The "-l" case would never come before the object being
13306 # linked, so don't bother handling this case.
13307 esac
13308 else
13309 if test -z "$postdeps_CXX"; then
13310 postdeps_CXX="${prev}${p}"
13311 else
13312 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13317 *.$objext)
13318 # This assumes that the test object file only shows up
13319 # once in the compiler output.
13320 if test "$p" = "conftest.$objext"; then
13321 pre_test_object_deps_done=yes
13322 continue
13325 if test "$pre_test_object_deps_done" = no; then
13326 if test -z "$predep_objects_CXX"; then
13327 predep_objects_CXX="$p"
13328 else
13329 predep_objects_CXX="$predep_objects_CXX $p"
13331 else
13332 if test -z "$postdep_objects_CXX"; then
13333 postdep_objects_CXX="$p"
13334 else
13335 postdep_objects_CXX="$postdep_objects_CXX $p"
13340 *) ;; # Ignore the rest.
13342 esac
13343 done
13345 # Clean up.
13346 rm -f a.out a.exe
13347 else
13348 echo "libtool.m4: error: problem compiling CXX test program"
13351 $RM -f confest.$objext
13353 # PORTME: override above test on systems where it is broken
13354 case $host_os in
13355 interix[3-9]*)
13356 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13357 # hack all around it, let's just trust "g++" to DTRT.
13358 predep_objects_CXX=
13359 postdep_objects_CXX=
13360 postdeps_CXX=
13363 linux*)
13364 case `$CC -V 2>&1 | sed 5q` in
13365 *Sun\ C*)
13366 # Sun C++ 5.9
13368 # The more standards-conforming stlport4 library is
13369 # incompatible with the Cstd library. Avoid specifying
13370 # it if it's in CXXFLAGS. Ignore libCrun as
13371 # -library=stlport4 depends on it.
13372 case " $CXX $CXXFLAGS " in
13373 *" -library=stlport4 "*)
13374 solaris_use_stlport4=yes
13376 esac
13378 if test "$solaris_use_stlport4" != yes; then
13379 postdeps_CXX='-library=Cstd -library=Crun'
13382 esac
13385 solaris*)
13386 case $cc_basename in
13387 CC*)
13388 # The more standards-conforming stlport4 library is
13389 # incompatible with the Cstd library. Avoid specifying
13390 # it if it's in CXXFLAGS. Ignore libCrun as
13391 # -library=stlport4 depends on it.
13392 case " $CXX $CXXFLAGS " in
13393 *" -library=stlport4 "*)
13394 solaris_use_stlport4=yes
13396 esac
13398 # Adding this requires a known-good setup of shared libraries for
13399 # Sun compiler versions before 5.6, else PIC objects from an old
13400 # archive will be linked into the output, leading to subtle bugs.
13401 if test "$solaris_use_stlport4" != yes; then
13402 postdeps_CXX='-library=Cstd -library=Crun'
13405 esac
13407 esac
13410 case " $postdeps_CXX " in
13411 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13412 esac
13413 compiler_lib_search_dirs_CXX=
13414 if test -n "${compiler_lib_search_path_CXX}"; then
13415 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13448 lt_prog_compiler_wl_CXX=
13449 lt_prog_compiler_pic_CXX=
13450 lt_prog_compiler_static_CXX=
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13453 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13455 # C++ specific cases for pic, static, wl, etc.
13456 if test "$GXX" = yes; then
13457 lt_prog_compiler_wl_CXX='-Wl,'
13458 lt_prog_compiler_static_CXX='-static'
13460 case $host_os in
13461 aix*)
13462 # All AIX code is PIC.
13463 if test "$host_cpu" = ia64; then
13464 # AIX 5 now supports IA64 processor
13465 lt_prog_compiler_static_CXX='-Bstatic'
13467 lt_prog_compiler_pic_CXX='-fPIC'
13470 amigaos*)
13471 case $host_cpu in
13472 powerpc)
13473 # see comment about AmigaOS4 .so support
13474 lt_prog_compiler_pic_CXX='-fPIC'
13476 m68k)
13477 # FIXME: we need at least 68020 code to build shared libraries, but
13478 # adding the `-m68020' flag to GCC prevents building anything better,
13479 # like `-m68040'.
13480 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13482 esac
13485 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13486 # PIC is the default for these OSes.
13488 mingw* | cygwin* | os2* | pw32* | cegcc*)
13489 # This hack is so that the source file can tell whether it is being
13490 # built for inclusion in a dll (and should export symbols for example).
13491 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13492 # (--disable-auto-import) libraries
13493 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13495 darwin* | rhapsody*)
13496 # PIC is the default on this platform
13497 # Common symbols not allowed in MH_DYLIB files
13498 lt_prog_compiler_pic_CXX='-fno-common'
13500 *djgpp*)
13501 # DJGPP does not support shared libraries at all
13502 lt_prog_compiler_pic_CXX=
13504 haiku*)
13505 # PIC is the default for Haiku.
13506 # The "-static" flag exists, but is broken.
13507 lt_prog_compiler_static_CXX=
13509 interix[3-9]*)
13510 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13511 # Instead, we relocate shared libraries at runtime.
13513 sysv4*MP*)
13514 if test -d /usr/nec; then
13515 lt_prog_compiler_pic_CXX=-Kconform_pic
13518 hpux*)
13519 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13520 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13521 # sets the default TLS model and affects inlining.
13522 case $host_cpu in
13523 hppa*64*)
13526 lt_prog_compiler_pic_CXX='-fPIC'
13528 esac
13530 *qnx* | *nto*)
13531 # QNX uses GNU C++, but need to define -shared option too, otherwise
13532 # it will coredump.
13533 lt_prog_compiler_pic_CXX='-fPIC -shared'
13536 lt_prog_compiler_pic_CXX='-fPIC'
13538 esac
13539 else
13540 case $host_os in
13541 aix[4-9]*)
13542 # All AIX code is PIC.
13543 if test "$host_cpu" = ia64; then
13544 # AIX 5 now supports IA64 processor
13545 lt_prog_compiler_static_CXX='-Bstatic'
13546 else
13547 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13550 chorus*)
13551 case $cc_basename in
13552 cxch68*)
13553 # Green Hills C++ Compiler
13554 # _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"
13556 esac
13558 dgux*)
13559 case $cc_basename in
13560 ec++*)
13561 lt_prog_compiler_pic_CXX='-KPIC'
13563 ghcx*)
13564 # Green Hills C++ Compiler
13565 lt_prog_compiler_pic_CXX='-pic'
13569 esac
13571 freebsd* | dragonfly*)
13572 # FreeBSD uses GNU C++
13574 hpux9* | hpux10* | hpux11*)
13575 case $cc_basename in
13576 CC*)
13577 lt_prog_compiler_wl_CXX='-Wl,'
13578 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13579 if test "$host_cpu" != ia64; then
13580 lt_prog_compiler_pic_CXX='+Z'
13583 aCC*)
13584 lt_prog_compiler_wl_CXX='-Wl,'
13585 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13586 case $host_cpu in
13587 hppa*64*|ia64*)
13588 # +Z the default
13591 lt_prog_compiler_pic_CXX='+Z'
13593 esac
13597 esac
13599 interix*)
13600 # This is c89, which is MS Visual C++ (no shared libs)
13601 # Anyone wants to do a port?
13603 irix5* | irix6* | nonstopux*)
13604 case $cc_basename in
13605 CC*)
13606 lt_prog_compiler_wl_CXX='-Wl,'
13607 lt_prog_compiler_static_CXX='-non_shared'
13608 # CC pic flag -KPIC is the default.
13612 esac
13614 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13615 case $cc_basename in
13616 KCC*)
13617 # KAI C++ Compiler
13618 lt_prog_compiler_wl_CXX='--backend -Wl,'
13619 lt_prog_compiler_pic_CXX='-fPIC'
13621 ecpc* )
13622 # old Intel C++ for x86_64 which still supported -KPIC.
13623 lt_prog_compiler_wl_CXX='-Wl,'
13624 lt_prog_compiler_pic_CXX='-KPIC'
13625 lt_prog_compiler_static_CXX='-static'
13627 icpc* )
13628 # Intel C++, used to be incompatible with GCC.
13629 # ICC 10 doesn't accept -KPIC any more.
13630 lt_prog_compiler_wl_CXX='-Wl,'
13631 lt_prog_compiler_pic_CXX='-fPIC'
13632 lt_prog_compiler_static_CXX='-static'
13634 pgCC* | pgcpp*)
13635 # Portland Group C++ compiler
13636 lt_prog_compiler_wl_CXX='-Wl,'
13637 lt_prog_compiler_pic_CXX='-fpic'
13638 lt_prog_compiler_static_CXX='-Bstatic'
13640 cxx*)
13641 # Compaq C++
13642 # Make sure the PIC flag is empty. It appears that all Alpha
13643 # Linux and Compaq Tru64 Unix objects are PIC.
13644 lt_prog_compiler_pic_CXX=
13645 lt_prog_compiler_static_CXX='-non_shared'
13647 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13648 # IBM XL 8.0, 9.0 on PPC and BlueGene
13649 lt_prog_compiler_wl_CXX='-Wl,'
13650 lt_prog_compiler_pic_CXX='-qpic'
13651 lt_prog_compiler_static_CXX='-qstaticlink'
13654 case `$CC -V 2>&1 | sed 5q` in
13655 *Sun\ C*)
13656 # Sun C++ 5.9
13657 lt_prog_compiler_pic_CXX='-KPIC'
13658 lt_prog_compiler_static_CXX='-Bstatic'
13659 lt_prog_compiler_wl_CXX='-Qoption ld '
13661 esac
13663 esac
13665 lynxos*)
13667 m88k*)
13669 mvs*)
13670 case $cc_basename in
13671 cxx*)
13672 lt_prog_compiler_pic_CXX='-W c,exportall'
13676 esac
13678 netbsd*)
13680 *qnx* | *nto*)
13681 # QNX uses GNU C++, but need to define -shared option too, otherwise
13682 # it will coredump.
13683 lt_prog_compiler_pic_CXX='-fPIC -shared'
13685 osf3* | osf4* | osf5*)
13686 case $cc_basename in
13687 KCC*)
13688 lt_prog_compiler_wl_CXX='--backend -Wl,'
13690 RCC*)
13691 # Rational C++ 2.4.1
13692 lt_prog_compiler_pic_CXX='-pic'
13694 cxx*)
13695 # Digital/Compaq C++
13696 lt_prog_compiler_wl_CXX='-Wl,'
13697 # Make sure the PIC flag is empty. It appears that all Alpha
13698 # Linux and Compaq Tru64 Unix objects are PIC.
13699 lt_prog_compiler_pic_CXX=
13700 lt_prog_compiler_static_CXX='-non_shared'
13704 esac
13706 psos*)
13708 solaris*)
13709 case $cc_basename in
13710 CC*)
13711 # Sun C++ 4.2, 5.x and Centerline C++
13712 lt_prog_compiler_pic_CXX='-KPIC'
13713 lt_prog_compiler_static_CXX='-Bstatic'
13714 lt_prog_compiler_wl_CXX='-Qoption ld '
13716 gcx*)
13717 # Green Hills C++ Compiler
13718 lt_prog_compiler_pic_CXX='-PIC'
13722 esac
13724 sunos4*)
13725 case $cc_basename in
13726 CC*)
13727 # Sun C++ 4.x
13728 lt_prog_compiler_pic_CXX='-pic'
13729 lt_prog_compiler_static_CXX='-Bstatic'
13731 lcc*)
13732 # Lucid
13733 lt_prog_compiler_pic_CXX='-pic'
13737 esac
13739 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13740 case $cc_basename in
13741 CC*)
13742 lt_prog_compiler_wl_CXX='-Wl,'
13743 lt_prog_compiler_pic_CXX='-KPIC'
13744 lt_prog_compiler_static_CXX='-Bstatic'
13746 esac
13748 tandem*)
13749 case $cc_basename in
13750 NCC*)
13751 # NonStop-UX NCC 3.20
13752 lt_prog_compiler_pic_CXX='-KPIC'
13756 esac
13758 vxworks*)
13761 lt_prog_compiler_can_build_shared_CXX=no
13763 esac
13766 case $host_os in
13767 # For platforms which do not support PIC, -DPIC is meaningless:
13768 *djgpp*)
13769 lt_prog_compiler_pic_CXX=
13772 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13774 esac
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13776 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13781 # Check to make sure the PIC flag actually works.
13783 if test -n "$lt_prog_compiler_pic_CXX"; then
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13785 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13786 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13787 $as_echo_n "(cached) " >&6
13788 else
13789 lt_cv_prog_compiler_pic_works_CXX=no
13790 ac_outfile=conftest.$ac_objext
13791 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13792 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13793 # Insert the option either (1) after the last *FLAGS variable, or
13794 # (2) before a word containing "conftest.", or (3) at the end.
13795 # Note that $ac_compile itself does not contain backslashes and begins
13796 # with a dollar sign (not a hyphen), so the echo should work correctly.
13797 # The option is referenced via a variable to avoid confusing sed.
13798 lt_compile=`echo "$ac_compile" | $SED \
13799 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13801 -e 's:$: $lt_compiler_flag:'`
13802 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13803 (eval "$lt_compile" 2>conftest.err)
13804 ac_status=$?
13805 cat conftest.err >&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 if (exit $ac_status) && test -s "$ac_outfile"; then
13808 # The compiler can only warn and ignore the option if not recognized
13809 # So say no if there are warnings other than the usual output.
13810 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13811 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13812 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13813 lt_cv_prog_compiler_pic_works_CXX=yes
13816 $RM conftest*
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13820 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13822 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13823 case $lt_prog_compiler_pic_CXX in
13824 "" | " "*) ;;
13825 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13826 esac
13827 else
13828 lt_prog_compiler_pic_CXX=
13829 lt_prog_compiler_can_build_shared_CXX=no
13837 # Check to make sure the static flag actually works.
13839 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13841 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13842 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13843 $as_echo_n "(cached) " >&6
13844 else
13845 lt_cv_prog_compiler_static_works_CXX=no
13846 save_LDFLAGS="$LDFLAGS"
13847 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13848 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13849 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13850 # The linker can only warn and ignore the option if not recognized
13851 # So say no if there are warnings
13852 if test -s conftest.err; then
13853 # Append any errors to the config.log.
13854 cat conftest.err 1>&5
13855 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13856 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13857 if diff conftest.exp conftest.er2 >/dev/null; then
13858 lt_cv_prog_compiler_static_works_CXX=yes
13860 else
13861 lt_cv_prog_compiler_static_works_CXX=yes
13864 $RM -r conftest*
13865 LDFLAGS="$save_LDFLAGS"
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13869 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13871 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13873 else
13874 lt_prog_compiler_static_CXX=
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13881 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13882 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13883 $as_echo_n "(cached) " >&6
13884 else
13885 lt_cv_prog_compiler_c_o_CXX=no
13886 $RM -r conftest 2>/dev/null
13887 mkdir conftest
13888 cd conftest
13889 mkdir out
13890 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13892 lt_compiler_flag="-o out/conftest2.$ac_objext"
13893 # Insert the option either (1) after the last *FLAGS variable, or
13894 # (2) before a word containing "conftest.", or (3) at the end.
13895 # Note that $ac_compile itself does not contain backslashes and begins
13896 # with a dollar sign (not a hyphen), so the echo should work correctly.
13897 lt_compile=`echo "$ac_compile" | $SED \
13898 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13900 -e 's:$: $lt_compiler_flag:'`
13901 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13902 (eval "$lt_compile" 2>out/conftest.err)
13903 ac_status=$?
13904 cat out/conftest.err >&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13907 then
13908 # The compiler can only warn and ignore the option if not recognized
13909 # So say no if there are warnings
13910 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13911 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13912 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13913 lt_cv_prog_compiler_c_o_CXX=yes
13916 chmod u+w . 2>&5
13917 $RM conftest*
13918 # SGI C++ compiler will create directory out/ii_files/ for
13919 # template instantiation
13920 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13921 $RM out/* && rmdir out
13922 cd ..
13923 $RM -r conftest
13924 $RM conftest*
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13928 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13933 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13934 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13935 $as_echo_n "(cached) " >&6
13936 else
13937 lt_cv_prog_compiler_c_o_CXX=no
13938 $RM -r conftest 2>/dev/null
13939 mkdir conftest
13940 cd conftest
13941 mkdir out
13942 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13944 lt_compiler_flag="-o out/conftest2.$ac_objext"
13945 # Insert the option either (1) after the last *FLAGS variable, or
13946 # (2) before a word containing "conftest.", or (3) at the end.
13947 # Note that $ac_compile itself does not contain backslashes and begins
13948 # with a dollar sign (not a hyphen), so the echo should work correctly.
13949 lt_compile=`echo "$ac_compile" | $SED \
13950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13952 -e 's:$: $lt_compiler_flag:'`
13953 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13954 (eval "$lt_compile" 2>out/conftest.err)
13955 ac_status=$?
13956 cat out/conftest.err >&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13959 then
13960 # The compiler can only warn and ignore the option if not recognized
13961 # So say no if there are warnings
13962 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13963 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13964 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13965 lt_cv_prog_compiler_c_o_CXX=yes
13968 chmod u+w . 2>&5
13969 $RM conftest*
13970 # SGI C++ compiler will create directory out/ii_files/ for
13971 # template instantiation
13972 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13973 $RM out/* && rmdir out
13974 cd ..
13975 $RM -r conftest
13976 $RM conftest*
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13980 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13985 hard_links="nottested"
13986 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13987 # do not overwrite the value of need_locks provided by the user
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13989 $as_echo_n "checking if we can lock with hard links... " >&6; }
13990 hard_links=yes
13991 $RM conftest*
13992 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13993 touch conftest.a
13994 ln conftest.a conftest.b 2>&5 || hard_links=no
13995 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13997 $as_echo "$hard_links" >&6; }
13998 if test "$hard_links" = no; then
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14000 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14001 need_locks=warn
14003 else
14004 need_locks=no
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14010 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14012 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14013 case $host_os in
14014 aix[4-9]*)
14015 # If we're using GNU nm, then we don't want the "-C" option.
14016 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14017 # Also, AIX nm treats weak defined symbols like other global defined
14018 # symbols, whereas GNU nm marks them as "W".
14019 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14020 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'
14021 else
14022 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'
14025 pw32*)
14026 export_symbols_cmds_CXX="$ltdll_cmds"
14028 cygwin* | mingw* | cegcc*)
14029 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'
14032 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14034 esac
14035 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14038 $as_echo "$ld_shlibs_CXX" >&6; }
14039 test "$ld_shlibs_CXX" = no && can_build_shared=no
14041 with_gnu_ld_CXX=$with_gnu_ld
14049 # Do we need to explicitly link libc?
14051 case "x$archive_cmds_need_lc_CXX" in
14052 x|xyes)
14053 # Assume -lc should be added
14054 archive_cmds_need_lc_CXX=yes
14056 if test "$enable_shared" = yes && test "$GCC" = yes; then
14057 case $archive_cmds_CXX in
14058 *'~'*)
14059 # FIXME: we may have to deal with multi-command sequences.
14061 '$CC '*)
14062 # Test whether the compiler implicitly links with -lc since on some
14063 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14064 # to ld, don't add -lc before -lgcc.
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14066 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14067 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14068 $as_echo_n "(cached) " >&6
14069 else
14070 $RM conftest*
14071 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14074 (eval $ac_compile) 2>&5
14075 ac_status=$?
14076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14077 test $ac_status = 0; } 2>conftest.err; then
14078 soname=conftest
14079 lib=conftest
14080 libobjs=conftest.$ac_objext
14081 deplibs=
14082 wl=$lt_prog_compiler_wl_CXX
14083 pic_flag=$lt_prog_compiler_pic_CXX
14084 compiler_flags=-v
14085 linker_flags=-v
14086 verstring=
14087 output_objdir=.
14088 libname=conftest
14089 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14090 allow_undefined_flag_CXX=
14091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14092 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14093 ac_status=$?
14094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14095 test $ac_status = 0; }
14096 then
14097 lt_cv_archive_cmds_need_lc_CXX=no
14098 else
14099 lt_cv_archive_cmds_need_lc_CXX=yes
14101 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14102 else
14103 cat conftest.err 1>&5
14105 $RM conftest*
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14109 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14110 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14112 esac
14115 esac
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14181 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14183 library_names_spec=
14184 libname_spec='lib$name'
14185 soname_spec=
14186 shrext_cmds=".so"
14187 postinstall_cmds=
14188 postuninstall_cmds=
14189 finish_cmds=
14190 finish_eval=
14191 shlibpath_var=
14192 shlibpath_overrides_runpath=unknown
14193 version_type=none
14194 dynamic_linker="$host_os ld.so"
14195 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14196 need_lib_prefix=unknown
14197 hardcode_into_libs=no
14199 # when you set need_version to no, make sure it does not cause -set_version
14200 # flags to be left without arguments
14201 need_version=unknown
14203 case $host_os in
14204 aix3*)
14205 version_type=linux
14206 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14207 shlibpath_var=LIBPATH
14209 # AIX 3 has no versioning support, so we append a major version to the name.
14210 soname_spec='${libname}${release}${shared_ext}$major'
14213 aix[4-9]*)
14214 version_type=linux
14215 need_lib_prefix=no
14216 need_version=no
14217 hardcode_into_libs=yes
14218 if test "$host_cpu" = ia64; then
14219 # AIX 5 supports IA64
14220 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14221 shlibpath_var=LD_LIBRARY_PATH
14222 else
14223 # With GCC up to 2.95.x, collect2 would create an import file
14224 # for dependence libraries. The import file would start with
14225 # the line `#! .'. This would cause the generated library to
14226 # depend on `.', always an invalid library. This was fixed in
14227 # development snapshots of GCC prior to 3.0.
14228 case $host_os in
14229 aix4 | aix4.[01] | aix4.[01].*)
14230 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14231 echo ' yes '
14232 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14234 else
14235 can_build_shared=no
14238 esac
14239 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14240 # soname into executable. Probably we can add versioning support to
14241 # collect2, so additional links can be useful in future.
14242 if test "$aix_use_runtimelinking" = yes; then
14243 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14244 # instead of lib<name>.a to let people know that these are not
14245 # typical AIX shared libraries.
14246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14247 else
14248 # We preserve .a as extension for shared libraries through AIX4.2
14249 # and later when we are not doing run time linking.
14250 library_names_spec='${libname}${release}.a $libname.a'
14251 soname_spec='${libname}${release}${shared_ext}$major'
14253 shlibpath_var=LIBPATH
14257 amigaos*)
14258 case $host_cpu in
14259 powerpc)
14260 # Since July 2007 AmigaOS4 officially supports .so libraries.
14261 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14264 m68k)
14265 library_names_spec='$libname.ixlibrary $libname.a'
14266 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14267 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'
14269 esac
14272 beos*)
14273 library_names_spec='${libname}${shared_ext}'
14274 dynamic_linker="$host_os ld.so"
14275 shlibpath_var=LIBRARY_PATH
14278 bsdi[45]*)
14279 version_type=linux
14280 need_version=no
14281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14282 soname_spec='${libname}${release}${shared_ext}$major'
14283 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14284 shlibpath_var=LD_LIBRARY_PATH
14285 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14286 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14287 # the default ld.so.conf also contains /usr/contrib/lib and
14288 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14289 # libtool to hard-code these into programs
14292 cygwin* | mingw* | pw32* | cegcc*)
14293 version_type=windows
14294 shrext_cmds=".dll"
14295 need_version=no
14296 need_lib_prefix=no
14298 case $GCC,$host_os in
14299 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14300 library_names_spec='$libname.dll.a'
14301 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14302 postinstall_cmds='base_file=`basename \${file}`~
14303 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14304 dldir=$destdir/`dirname \$dlpath`~
14305 test -d \$dldir || mkdir -p \$dldir~
14306 $install_prog $dir/$dlname \$dldir/$dlname~
14307 chmod a+x \$dldir/$dlname~
14308 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14309 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14311 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14312 dlpath=$dir/\$dldll~
14313 $RM \$dlpath'
14314 shlibpath_overrides_runpath=yes
14316 case $host_os in
14317 cygwin*)
14318 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14319 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14322 mingw* | cegcc*)
14323 # MinGW DLLs use traditional 'lib' prefix
14324 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14326 pw32*)
14327 # pw32 DLLs use 'pw' prefix rather than 'lib'
14328 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14330 esac
14334 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14336 esac
14337 dynamic_linker='Win32 ld.exe'
14338 # FIXME: first we should search . and the directory the executable is in
14339 shlibpath_var=PATH
14342 darwin* | rhapsody*)
14343 dynamic_linker="$host_os dyld"
14344 version_type=darwin
14345 need_lib_prefix=no
14346 need_version=no
14347 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14348 soname_spec='${libname}${release}${major}$shared_ext'
14349 shlibpath_overrides_runpath=yes
14350 shlibpath_var=DYLD_LIBRARY_PATH
14351 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14353 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14356 dgux*)
14357 version_type=linux
14358 need_lib_prefix=no
14359 need_version=no
14360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14361 soname_spec='${libname}${release}${shared_ext}$major'
14362 shlibpath_var=LD_LIBRARY_PATH
14365 freebsd* | dragonfly*)
14366 # DragonFly does not have aout. When/if they implement a new
14367 # versioning mechanism, adjust this.
14368 if test -x /usr/bin/objformat; then
14369 objformat=`/usr/bin/objformat`
14370 else
14371 case $host_os in
14372 freebsd[23].*) objformat=aout ;;
14373 *) objformat=elf ;;
14374 esac
14376 version_type=freebsd-$objformat
14377 case $version_type in
14378 freebsd-elf*)
14379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14380 need_version=no
14381 need_lib_prefix=no
14383 freebsd-*)
14384 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14385 need_version=yes
14387 esac
14388 shlibpath_var=LD_LIBRARY_PATH
14389 case $host_os in
14390 freebsd2.*)
14391 shlibpath_overrides_runpath=yes
14393 freebsd3.[01]* | freebsdelf3.[01]*)
14394 shlibpath_overrides_runpath=yes
14395 hardcode_into_libs=yes
14397 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14398 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14399 shlibpath_overrides_runpath=no
14400 hardcode_into_libs=yes
14402 *) # from 4.6 on, and DragonFly
14403 shlibpath_overrides_runpath=yes
14404 hardcode_into_libs=yes
14406 esac
14409 gnu*)
14410 version_type=linux
14411 need_lib_prefix=no
14412 need_version=no
14413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14414 soname_spec='${libname}${release}${shared_ext}$major'
14415 shlibpath_var=LD_LIBRARY_PATH
14416 hardcode_into_libs=yes
14419 haiku*)
14420 version_type=linux
14421 need_lib_prefix=no
14422 need_version=no
14423 dynamic_linker="$host_os runtime_loader"
14424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14425 soname_spec='${libname}${release}${shared_ext}$major'
14426 shlibpath_var=LIBRARY_PATH
14427 shlibpath_overrides_runpath=yes
14428 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14429 hardcode_into_libs=yes
14432 hpux9* | hpux10* | hpux11*)
14433 # Give a soname corresponding to the major version so that dld.sl refuses to
14434 # link against other versions.
14435 version_type=sunos
14436 need_lib_prefix=no
14437 need_version=no
14438 case $host_cpu in
14439 ia64*)
14440 shrext_cmds='.so'
14441 hardcode_into_libs=yes
14442 dynamic_linker="$host_os dld.so"
14443 shlibpath_var=LD_LIBRARY_PATH
14444 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14446 soname_spec='${libname}${release}${shared_ext}$major'
14447 if test "X$HPUX_IA64_MODE" = X32; then
14448 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14449 else
14450 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14452 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14454 hppa*64*)
14455 shrext_cmds='.sl'
14456 hardcode_into_libs=yes
14457 dynamic_linker="$host_os dld.sl"
14458 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14459 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14461 soname_spec='${libname}${release}${shared_ext}$major'
14462 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14463 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14466 shrext_cmds='.sl'
14467 dynamic_linker="$host_os dld.sl"
14468 shlibpath_var=SHLIB_PATH
14469 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14471 soname_spec='${libname}${release}${shared_ext}$major'
14473 esac
14474 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14475 postinstall_cmds='chmod 555 $lib'
14476 # or fails outright, so override atomically:
14477 install_override_mode=555
14480 interix[3-9]*)
14481 version_type=linux
14482 need_lib_prefix=no
14483 need_version=no
14484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14485 soname_spec='${libname}${release}${shared_ext}$major'
14486 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14487 shlibpath_var=LD_LIBRARY_PATH
14488 shlibpath_overrides_runpath=no
14489 hardcode_into_libs=yes
14492 irix5* | irix6* | nonstopux*)
14493 case $host_os in
14494 nonstopux*) version_type=nonstopux ;;
14496 if test "$lt_cv_prog_gnu_ld" = yes; then
14497 version_type=linux
14498 else
14499 version_type=irix
14500 fi ;;
14501 esac
14502 need_lib_prefix=no
14503 need_version=no
14504 soname_spec='${libname}${release}${shared_ext}$major'
14505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14506 case $host_os in
14507 irix5* | nonstopux*)
14508 libsuff= shlibsuff=
14511 case $LD in # libtool.m4 will add one of these switches to LD
14512 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14513 libsuff= shlibsuff= libmagic=32-bit;;
14514 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14515 libsuff=32 shlibsuff=N32 libmagic=N32;;
14516 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14517 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14518 *) libsuff= shlibsuff= libmagic=never-match;;
14519 esac
14521 esac
14522 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14523 shlibpath_overrides_runpath=no
14524 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14525 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14526 hardcode_into_libs=yes
14529 # No shared lib support for Linux oldld, aout, or coff.
14530 linux*oldld* | linux*aout* | linux*coff*)
14531 dynamic_linker=no
14534 # This must be Linux ELF.
14536 # uclinux* changes (here and below) have been submitted to the libtool
14537 # project, but have not yet been accepted: they are GCC-local changes
14538 # for the time being. (See
14539 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14540 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14541 version_type=linux
14542 need_lib_prefix=no
14543 need_version=no
14544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14545 soname_spec='${libname}${release}${shared_ext}$major'
14546 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14547 shlibpath_var=LD_LIBRARY_PATH
14548 shlibpath_overrides_runpath=no
14550 # Some binutils ld are patched to set DT_RUNPATH
14551 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14552 $as_echo_n "(cached) " >&6
14553 else
14554 lt_cv_shlibpath_overrides_runpath=no
14555 save_LDFLAGS=$LDFLAGS
14556 save_libdir=$libdir
14557 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14558 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14560 /* end confdefs.h. */
14563 main ()
14567 return 0;
14569 _ACEOF
14570 if ac_fn_cxx_try_link "$LINENO"; then :
14571 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14572 lt_cv_shlibpath_overrides_runpath=yes
14575 rm -f core conftest.err conftest.$ac_objext \
14576 conftest$ac_exeext conftest.$ac_ext
14577 LDFLAGS=$save_LDFLAGS
14578 libdir=$save_libdir
14582 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14584 # This implies no fast_install, which is unacceptable.
14585 # Some rework will be needed to allow for fast_install
14586 # before this can be enabled.
14587 hardcode_into_libs=yes
14589 # Append ld.so.conf contents to the search path
14590 if test -f /etc/ld.so.conf; then
14591 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' ' '`
14592 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14595 # We used to test for /lib/ld.so.1 and disable shared libraries on
14596 # powerpc, because MkLinux only supported shared libraries with the
14597 # GNU dynamic linker. Since this was broken with cross compilers,
14598 # most powerpc-linux boxes support dynamic linking these days and
14599 # people can always --disable-shared, the test was removed, and we
14600 # assume the GNU/Linux dynamic linker is in use.
14601 dynamic_linker='GNU/Linux ld.so'
14604 netbsd*)
14605 version_type=sunos
14606 need_lib_prefix=no
14607 need_version=no
14608 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14610 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14611 dynamic_linker='NetBSD (a.out) ld.so'
14612 else
14613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14614 soname_spec='${libname}${release}${shared_ext}$major'
14615 dynamic_linker='NetBSD ld.elf_so'
14617 shlibpath_var=LD_LIBRARY_PATH
14618 shlibpath_overrides_runpath=yes
14619 hardcode_into_libs=yes
14622 newsos6)
14623 version_type=linux
14624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14625 shlibpath_var=LD_LIBRARY_PATH
14626 shlibpath_overrides_runpath=yes
14629 *nto* | *qnx*)
14630 version_type=qnx
14631 need_lib_prefix=no
14632 need_version=no
14633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14634 soname_spec='${libname}${release}${shared_ext}$major'
14635 shlibpath_var=LD_LIBRARY_PATH
14636 shlibpath_overrides_runpath=no
14637 hardcode_into_libs=yes
14638 dynamic_linker='ldqnx.so'
14641 openbsd*)
14642 version_type=sunos
14643 sys_lib_dlsearch_path_spec="/usr/lib"
14644 need_lib_prefix=no
14645 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14646 case $host_os in
14647 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14648 *) need_version=no ;;
14649 esac
14650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14651 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14652 shlibpath_var=LD_LIBRARY_PATH
14653 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14654 case $host_os in
14655 openbsd2.[89] | openbsd2.[89].*)
14656 shlibpath_overrides_runpath=no
14659 shlibpath_overrides_runpath=yes
14661 esac
14662 else
14663 shlibpath_overrides_runpath=yes
14667 os2*)
14668 libname_spec='$name'
14669 shrext_cmds=".dll"
14670 need_lib_prefix=no
14671 library_names_spec='$libname${shared_ext} $libname.a'
14672 dynamic_linker='OS/2 ld.exe'
14673 shlibpath_var=LIBPATH
14676 osf3* | osf4* | osf5*)
14677 version_type=osf
14678 need_lib_prefix=no
14679 need_version=no
14680 soname_spec='${libname}${release}${shared_ext}$major'
14681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14682 shlibpath_var=LD_LIBRARY_PATH
14683 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14684 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14687 rdos*)
14688 dynamic_linker=no
14691 solaris*)
14692 version_type=linux
14693 need_lib_prefix=no
14694 need_version=no
14695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14696 soname_spec='${libname}${release}${shared_ext}$major'
14697 shlibpath_var=LD_LIBRARY_PATH
14698 shlibpath_overrides_runpath=yes
14699 hardcode_into_libs=yes
14700 # ldd complains unless libraries are executable
14701 postinstall_cmds='chmod +x $lib'
14704 sunos4*)
14705 version_type=sunos
14706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14707 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14708 shlibpath_var=LD_LIBRARY_PATH
14709 shlibpath_overrides_runpath=yes
14710 if test "$with_gnu_ld" = yes; then
14711 need_lib_prefix=no
14713 need_version=yes
14716 sysv4 | sysv4.3*)
14717 version_type=linux
14718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14719 soname_spec='${libname}${release}${shared_ext}$major'
14720 shlibpath_var=LD_LIBRARY_PATH
14721 case $host_vendor in
14722 sni)
14723 shlibpath_overrides_runpath=no
14724 need_lib_prefix=no
14725 runpath_var=LD_RUN_PATH
14727 siemens)
14728 need_lib_prefix=no
14730 motorola)
14731 need_lib_prefix=no
14732 need_version=no
14733 shlibpath_overrides_runpath=no
14734 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14736 esac
14739 sysv4*MP*)
14740 if test -d /usr/nec ;then
14741 version_type=linux
14742 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14743 soname_spec='$libname${shared_ext}.$major'
14744 shlibpath_var=LD_LIBRARY_PATH
14748 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14749 version_type=freebsd-elf
14750 need_lib_prefix=no
14751 need_version=no
14752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14753 soname_spec='${libname}${release}${shared_ext}$major'
14754 shlibpath_var=LD_LIBRARY_PATH
14755 shlibpath_overrides_runpath=yes
14756 hardcode_into_libs=yes
14757 if test "$with_gnu_ld" = yes; then
14758 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14759 else
14760 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14761 case $host_os in
14762 sco3.2v5*)
14763 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14765 esac
14767 sys_lib_dlsearch_path_spec='/usr/lib'
14770 tpf*)
14771 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14772 version_type=linux
14773 need_lib_prefix=no
14774 need_version=no
14775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14776 shlibpath_var=LD_LIBRARY_PATH
14777 shlibpath_overrides_runpath=no
14778 hardcode_into_libs=yes
14781 uts4*)
14782 version_type=linux
14783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14784 soname_spec='${libname}${release}${shared_ext}$major'
14785 shlibpath_var=LD_LIBRARY_PATH
14789 dynamic_linker=no
14791 esac
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14793 $as_echo "$dynamic_linker" >&6; }
14794 test "$dynamic_linker" = no && can_build_shared=no
14796 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14797 if test "$GCC" = yes; then
14798 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14801 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14802 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14804 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14805 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14846 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14847 hardcode_action_CXX=
14848 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14849 test -n "$runpath_var_CXX" ||
14850 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14852 # We can hardcode non-existent directories.
14853 if test "$hardcode_direct_CXX" != no &&
14854 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14855 # have to relink, otherwise we might link with an installed library
14856 # when we should be linking with a yet-to-be-installed one
14857 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14858 test "$hardcode_minus_L_CXX" != no; then
14859 # Linking always hardcodes the temporary library directory.
14860 hardcode_action_CXX=relink
14861 else
14862 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14863 hardcode_action_CXX=immediate
14865 else
14866 # We cannot hardcode anything, or else we can only hardcode existing
14867 # directories.
14868 hardcode_action_CXX=unsupported
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14871 $as_echo "$hardcode_action_CXX" >&6; }
14873 if test "$hardcode_action_CXX" = relink ||
14874 test "$inherit_rpath_CXX" = yes; then
14875 # Fast installation is not supported
14876 enable_fast_install=no
14877 elif test "$shlibpath_overrides_runpath" = yes ||
14878 test "$enable_shared" = no; then
14879 # Fast installation is not necessary
14880 enable_fast_install=needless
14889 fi # test -n "$compiler"
14891 CC=$lt_save_CC
14892 LDCXX=$LD
14893 LD=$lt_save_LD
14894 GCC=$lt_save_GCC
14895 with_gnu_ld=$lt_save_with_gnu_ld
14896 lt_cv_path_LDCXX=$lt_cv_path_LD
14897 lt_cv_path_LD=$lt_save_path_LD
14898 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14899 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14900 fi # test "$_lt_caught_CXX_error" != yes
14902 ac_ext=c
14903 ac_cpp='$CPP $CPPFLAGS'
14904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14920 ac_config_commands="$ac_config_commands libtool"
14925 # Only expand once:
14929 # Test for 64-bit build.
14930 # The cast to long int works around a bug in the HP C Compiler
14931 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14932 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14933 # This bug is HP SR number 8606223364.
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14935 $as_echo_n "checking size of size_t... " >&6; }
14936 if ${ac_cv_sizeof_size_t+:} false; then :
14937 $as_echo_n "(cached) " >&6
14938 else
14939 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
14941 else
14942 if test "$ac_cv_type_size_t" = yes; then
14943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14945 as_fn_error 77 "cannot compute sizeof (size_t)
14946 See \`config.log' for more details" "$LINENO" 5; }
14947 else
14948 ac_cv_sizeof_size_t=0
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14954 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14958 cat >>confdefs.h <<_ACEOF
14959 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14960 _ACEOF
14964 cat > local.exp <<EOF
14965 set CC_FOR_TARGET "$CC"
14966 set CXX_FOR_TARGET "$CXX"
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14971 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14972 # Check whether --enable-maintainer-mode was given.
14973 if test "${enable_maintainer_mode+set}" = set; then :
14974 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14975 else
14976 USE_MAINTAINER_MODE=no
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14980 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14981 if test $USE_MAINTAINER_MODE = yes; then
14982 MAINTAINER_MODE_TRUE=
14983 MAINTAINER_MODE_FALSE='#'
14984 else
14985 MAINTAINER_MODE_TRUE='#'
14986 MAINTAINER_MODE_FALSE=
14989 MAINT=$MAINTAINER_MODE_TRUE
14993 for ac_header in sys/mman.h
14994 do :
14995 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
14996 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
14997 cat >>confdefs.h <<_ACEOF
14998 #define HAVE_SYS_MMAN_H 1
14999 _ACEOF
15003 done
15005 for ac_func in mmap mkostemp
15006 do :
15007 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15008 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15009 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15010 cat >>confdefs.h <<_ACEOF
15011 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15012 _ACEOF
15015 done
15018 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15019 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
15020 libffi_header_sys_mman_h=yes
15021 else
15022 libffi_header_sys_mman_h=no
15026 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
15027 if test "x$ac_cv_func_mmap" = xyes; then :
15028 libffi_func_mmap=yes
15029 else
15030 libffi_func_mmap=no
15033 if test "$libffi_header_sys_mman_h" != yes \
15034 || test "$libffi_func_mmap" != yes; then
15035 ac_cv_func_mmap_file=no
15036 ac_cv_func_mmap_dev_zero=no
15037 ac_cv_func_mmap_anon=no
15038 else
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
15040 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
15041 if ${ac_cv_func_mmap_file+:} false; then :
15042 $as_echo_n "(cached) " >&6
15043 else
15044 # Add a system to this blacklist if
15045 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
15046 # memory area containing the same data that you'd get if you applied
15047 # read() to the same fd. The only system known to have a problem here
15048 # is VMS, where text files have record structure.
15049 case "$host_os" in
15050 vms* | ultrix*)
15051 ac_cv_func_mmap_file=no ;;
15053 ac_cv_func_mmap_file=yes;;
15054 esac
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
15057 $as_echo "$ac_cv_func_mmap_file" >&6; }
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
15059 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
15060 if ${ac_cv_func_mmap_dev_zero+:} false; then :
15061 $as_echo_n "(cached) " >&6
15062 else
15063 # Add a system to this blacklist if it has mmap() but /dev/zero
15064 # does not exist, or if mmapping /dev/zero does not give anonymous
15065 # zeroed pages with both the following properties:
15066 # 1. If you map N consecutive pages in with one call, and then
15067 # unmap any subset of those pages, the pages that were not
15068 # explicitly unmapped remain accessible.
15069 # 2. If you map two adjacent blocks of memory and then unmap them
15070 # both at once, they must both go away.
15071 # Systems known to be in this category are Windows (all variants),
15072 # VMS, and Darwin.
15073 case "$host_os" in
15074 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
15075 ac_cv_func_mmap_dev_zero=no ;;
15077 ac_cv_func_mmap_dev_zero=yes;;
15078 esac
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
15081 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
15083 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
15085 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
15086 if ${ac_cv_decl_map_anon+:} false; then :
15087 $as_echo_n "(cached) " >&6
15088 else
15089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15090 /* end confdefs.h. */
15091 #include <sys/types.h>
15092 #include <sys/mman.h>
15093 #include <unistd.h>
15095 #ifndef MAP_ANONYMOUS
15096 #define MAP_ANONYMOUS MAP_ANON
15097 #endif
15100 main ()
15102 int n = MAP_ANONYMOUS;
15104 return 0;
15106 _ACEOF
15107 if ac_fn_c_try_compile "$LINENO"; then :
15108 ac_cv_decl_map_anon=yes
15109 else
15110 ac_cv_decl_map_anon=no
15112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
15115 $as_echo "$ac_cv_decl_map_anon" >&6; }
15117 if test $ac_cv_decl_map_anon = no; then
15118 ac_cv_func_mmap_anon=no
15119 else
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
15121 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
15122 if ${ac_cv_func_mmap_anon+:} false; then :
15123 $as_echo_n "(cached) " >&6
15124 else
15125 # Add a system to this blacklist if it has mmap() and MAP_ANON or
15126 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
15127 # doesn't give anonymous zeroed pages with the same properties listed
15128 # above for use of /dev/zero.
15129 # Systems known to be in this category are Windows, VMS, and SCO Unix.
15130 case "$host_os" in
15131 vms* | cygwin* | pe | mingw* | sco* | udk* )
15132 ac_cv_func_mmap_anon=no ;;
15134 ac_cv_func_mmap_anon=yes;;
15135 esac
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
15138 $as_echo "$ac_cv_func_mmap_anon" >&6; }
15142 if test $ac_cv_func_mmap_file = yes; then
15144 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
15147 if test $ac_cv_func_mmap_dev_zero = yes; then
15149 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
15152 if test $ac_cv_func_mmap_anon = yes; then
15154 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
15159 if test -d $srcdir/testsuite; then
15160 TESTSUBDIR_TRUE=
15161 TESTSUBDIR_FALSE='#'
15162 else
15163 TESTSUBDIR_TRUE='#'
15164 TESTSUBDIR_FALSE=
15168 TARGETDIR="unknown"
15169 HAVE_LONG_DOUBLE_VARIANT=0
15171 . ${srcdir}/configure.host
15173 if test -n "${UNSUPPORTED}"; then
15174 as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15181 $as_echo_n "checking for ANSI C header files... " >&6; }
15182 if ${ac_cv_header_stdc+:} false; then :
15183 $as_echo_n "(cached) " >&6
15184 else
15185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15186 /* end confdefs.h. */
15187 #include <stdlib.h>
15188 #include <stdarg.h>
15189 #include <string.h>
15190 #include <float.h>
15193 main ()
15197 return 0;
15199 _ACEOF
15200 if ac_fn_c_try_compile "$LINENO"; then :
15201 ac_cv_header_stdc=yes
15202 else
15203 ac_cv_header_stdc=no
15205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15207 if test $ac_cv_header_stdc = yes; then
15208 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15210 /* end confdefs.h. */
15211 #include <string.h>
15213 _ACEOF
15214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15215 $EGREP "memchr" >/dev/null 2>&1; then :
15217 else
15218 ac_cv_header_stdc=no
15220 rm -f conftest*
15224 if test $ac_cv_header_stdc = yes; then
15225 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15227 /* end confdefs.h. */
15228 #include <stdlib.h>
15230 _ACEOF
15231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15232 $EGREP "free" >/dev/null 2>&1; then :
15234 else
15235 ac_cv_header_stdc=no
15237 rm -f conftest*
15241 if test $ac_cv_header_stdc = yes; then
15242 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15243 if test "$cross_compiling" = yes; then :
15245 else
15246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15247 /* end confdefs.h. */
15248 #include <ctype.h>
15249 #include <stdlib.h>
15250 #if ((' ' & 0x0FF) == 0x020)
15251 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15252 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15253 #else
15254 # define ISLOWER(c) \
15255 (('a' <= (c) && (c) <= 'i') \
15256 || ('j' <= (c) && (c) <= 'r') \
15257 || ('s' <= (c) && (c) <= 'z'))
15258 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15259 #endif
15261 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15263 main ()
15265 int i;
15266 for (i = 0; i < 256; i++)
15267 if (XOR (islower (i), ISLOWER (i))
15268 || toupper (i) != TOUPPER (i))
15269 return 2;
15270 return 0;
15272 _ACEOF
15273 if ac_fn_c_try_run "$LINENO"; then :
15275 else
15276 ac_cv_header_stdc=no
15278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15279 conftest.$ac_objext conftest.beam conftest.$ac_ext
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15285 $as_echo "$ac_cv_header_stdc" >&6; }
15286 if test $ac_cv_header_stdc = yes; then
15288 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15292 for ac_func in memcpy
15293 do :
15294 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
15295 if test "x$ac_cv_func_memcpy" = xyes; then :
15296 cat >>confdefs.h <<_ACEOF
15297 #define HAVE_MEMCPY 1
15298 _ACEOF
15301 done
15303 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15304 if test "x$ac_cv_type_size_t" = xyes; then :
15306 else
15308 cat >>confdefs.h <<_ACEOF
15309 #define size_t unsigned int
15310 _ACEOF
15314 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15315 # for constant arguments. Useless!
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15317 $as_echo_n "checking for working alloca.h... " >&6; }
15318 if ${ac_cv_working_alloca_h+:} false; then :
15319 $as_echo_n "(cached) " >&6
15320 else
15321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15322 /* end confdefs.h. */
15323 #include <alloca.h>
15325 main ()
15327 char *p = (char *) alloca (2 * sizeof (int));
15328 if (p) return 0;
15330 return 0;
15332 _ACEOF
15333 if ac_fn_c_try_link "$LINENO"; then :
15334 ac_cv_working_alloca_h=yes
15335 else
15336 ac_cv_working_alloca_h=no
15338 rm -f core conftest.err conftest.$ac_objext \
15339 conftest$ac_exeext conftest.$ac_ext
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15342 $as_echo "$ac_cv_working_alloca_h" >&6; }
15343 if test $ac_cv_working_alloca_h = yes; then
15345 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15350 $as_echo_n "checking for alloca... " >&6; }
15351 if ${ac_cv_func_alloca_works+:} false; then :
15352 $as_echo_n "(cached) " >&6
15353 else
15354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15355 /* end confdefs.h. */
15356 #ifdef __GNUC__
15357 # define alloca __builtin_alloca
15358 #else
15359 # ifdef _MSC_VER
15360 # include <malloc.h>
15361 # define alloca _alloca
15362 # else
15363 # ifdef HAVE_ALLOCA_H
15364 # include <alloca.h>
15365 # else
15366 # ifdef _AIX
15367 #pragma alloca
15368 # else
15369 # ifndef alloca /* predefined by HP cc +Olibcalls */
15370 void *alloca (size_t);
15371 # endif
15372 # endif
15373 # endif
15374 # endif
15375 #endif
15378 main ()
15380 char *p = (char *) alloca (1);
15381 if (p) return 0;
15383 return 0;
15385 _ACEOF
15386 if ac_fn_c_try_link "$LINENO"; then :
15387 ac_cv_func_alloca_works=yes
15388 else
15389 ac_cv_func_alloca_works=no
15391 rm -f core conftest.err conftest.$ac_objext \
15392 conftest$ac_exeext conftest.$ac_ext
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15395 $as_echo "$ac_cv_func_alloca_works" >&6; }
15397 if test $ac_cv_func_alloca_works = yes; then
15399 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15401 else
15402 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15403 # that cause trouble. Some versions do not even contain alloca or
15404 # contain a buggy version. If you still want to use their alloca,
15405 # use ar to extract alloca.o from them instead of compiling alloca.c.
15407 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15409 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15413 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15414 if ${ac_cv_os_cray+:} false; then :
15415 $as_echo_n "(cached) " >&6
15416 else
15417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15418 /* end confdefs.h. */
15419 #if defined CRAY && ! defined CRAY2
15420 webecray
15421 #else
15422 wenotbecray
15423 #endif
15425 _ACEOF
15426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15427 $EGREP "webecray" >/dev/null 2>&1; then :
15428 ac_cv_os_cray=yes
15429 else
15430 ac_cv_os_cray=no
15432 rm -f conftest*
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15436 $as_echo "$ac_cv_os_cray" >&6; }
15437 if test $ac_cv_os_cray = yes; then
15438 for ac_func in _getb67 GETB67 getb67; do
15439 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15440 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15441 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15443 cat >>confdefs.h <<_ACEOF
15444 #define CRAY_STACKSEG_END $ac_func
15445 _ACEOF
15447 break
15450 done
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15454 $as_echo_n "checking stack direction for C alloca... " >&6; }
15455 if ${ac_cv_c_stack_direction+:} false; then :
15456 $as_echo_n "(cached) " >&6
15457 else
15458 if test "$cross_compiling" = yes; then :
15459 ac_cv_c_stack_direction=0
15460 else
15461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15462 /* end confdefs.h. */
15463 $ac_includes_default
15465 find_stack_direction (int *addr, int depth)
15467 int dir, dummy = 0;
15468 if (! addr)
15469 addr = &dummy;
15470 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15471 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15472 return dir + dummy;
15476 main (int argc, char **argv)
15478 return find_stack_direction (0, argc + !argv + 20) < 0;
15480 _ACEOF
15481 if ac_fn_c_try_run "$LINENO"; then :
15482 ac_cv_c_stack_direction=1
15483 else
15484 ac_cv_c_stack_direction=-1
15486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15487 conftest.$ac_objext conftest.beam conftest.$ac_ext
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15492 $as_echo "$ac_cv_c_stack_direction" >&6; }
15493 cat >>confdefs.h <<_ACEOF
15494 #define STACK_DIRECTION $ac_cv_c_stack_direction
15495 _ACEOF
15501 # The cast to long int works around a bug in the HP C Compiler
15502 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15503 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15504 # This bug is HP SR number 8606223364.
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
15506 $as_echo_n "checking size of double... " >&6; }
15507 if ${ac_cv_sizeof_double+:} false; then :
15508 $as_echo_n "(cached) " >&6
15509 else
15510 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
15512 else
15513 if test "$ac_cv_type_double" = yes; then
15514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15516 as_fn_error 77 "cannot compute sizeof (double)
15517 See \`config.log' for more details" "$LINENO" 5; }
15518 else
15519 ac_cv_sizeof_double=0
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
15525 $as_echo "$ac_cv_sizeof_double" >&6; }
15529 cat >>confdefs.h <<_ACEOF
15530 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
15531 _ACEOF
15534 # The cast to long int works around a bug in the HP C Compiler
15535 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15536 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15537 # This bug is HP SR number 8606223364.
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
15539 $as_echo_n "checking size of long double... " >&6; }
15540 if ${ac_cv_sizeof_long_double+:} false; then :
15541 $as_echo_n "(cached) " >&6
15542 else
15543 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
15545 else
15546 if test "$ac_cv_type_long_double" = yes; then
15547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15549 as_fn_error 77 "cannot compute sizeof (long double)
15550 See \`config.log' for more details" "$LINENO" 5; }
15551 else
15552 ac_cv_sizeof_long_double=0
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
15558 $as_echo "$ac_cv_sizeof_long_double" >&6; }
15562 cat >>confdefs.h <<_ACEOF
15563 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
15564 _ACEOF
15568 # Also AC_SUBST this variable for ffi.h.
15569 if test -z "$HAVE_LONG_DOUBLE"; then
15570 HAVE_LONG_DOUBLE=0
15571 if test $ac_cv_sizeof_long_double != 0; then
15572 if test $HAVE_LONG_DOUBLE_VARIANT != 0; then
15574 $as_echo "#define HAVE_LONG_DOUBLE_VARIANT 1" >>confdefs.h
15576 HAVE_LONG_DOUBLE=1
15577 else
15578 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
15579 HAVE_LONG_DOUBLE=1
15581 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15591 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15592 if ${ac_cv_c_bigendian+:} false; then :
15593 $as_echo_n "(cached) " >&6
15594 else
15595 ac_cv_c_bigendian=unknown
15596 # See if we're dealing with a universal compiler.
15597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15598 /* end confdefs.h. */
15599 #ifndef __APPLE_CC__
15600 not a universal capable compiler
15601 #endif
15602 typedef int dummy;
15604 _ACEOF
15605 if ac_fn_c_try_compile "$LINENO"; then :
15607 # Check for potential -arch flags. It is not universal unless
15608 # there are at least two -arch flags with different values.
15609 ac_arch=
15610 ac_prev=
15611 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15612 if test -n "$ac_prev"; then
15613 case $ac_word in
15614 i?86 | x86_64 | ppc | ppc64)
15615 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15616 ac_arch=$ac_word
15617 else
15618 ac_cv_c_bigendian=universal
15619 break
15622 esac
15623 ac_prev=
15624 elif test "x$ac_word" = "x-arch"; then
15625 ac_prev=arch
15627 done
15629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15630 if test $ac_cv_c_bigendian = unknown; then
15631 # See if sys/param.h defines the BYTE_ORDER macro.
15632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15633 /* end confdefs.h. */
15634 #include <sys/types.h>
15635 #include <sys/param.h>
15638 main ()
15640 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15641 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15642 && LITTLE_ENDIAN)
15643 bogus endian macros
15644 #endif
15647 return 0;
15649 _ACEOF
15650 if ac_fn_c_try_compile "$LINENO"; then :
15651 # It does; now see whether it defined to BIG_ENDIAN or not.
15652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15653 /* end confdefs.h. */
15654 #include <sys/types.h>
15655 #include <sys/param.h>
15658 main ()
15660 #if BYTE_ORDER != BIG_ENDIAN
15661 not big endian
15662 #endif
15665 return 0;
15667 _ACEOF
15668 if ac_fn_c_try_compile "$LINENO"; then :
15669 ac_cv_c_bigendian=yes
15670 else
15671 ac_cv_c_bigendian=no
15673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15677 if test $ac_cv_c_bigendian = unknown; then
15678 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15680 /* end confdefs.h. */
15681 #include <limits.h>
15684 main ()
15686 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15687 bogus endian macros
15688 #endif
15691 return 0;
15693 _ACEOF
15694 if ac_fn_c_try_compile "$LINENO"; then :
15695 # It does; now see whether it defined to _BIG_ENDIAN or not.
15696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15697 /* end confdefs.h. */
15698 #include <limits.h>
15701 main ()
15703 #ifndef _BIG_ENDIAN
15704 not big endian
15705 #endif
15708 return 0;
15710 _ACEOF
15711 if ac_fn_c_try_compile "$LINENO"; then :
15712 ac_cv_c_bigendian=yes
15713 else
15714 ac_cv_c_bigendian=no
15716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15720 if test $ac_cv_c_bigendian = unknown; then
15721 # Compile a test program.
15722 if test "$cross_compiling" = yes; then :
15723 # Try to guess by grepping values from an object file.
15724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15725 /* end confdefs.h. */
15726 short int ascii_mm[] =
15727 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15728 short int ascii_ii[] =
15729 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15730 int use_ascii (int i) {
15731 return ascii_mm[i] + ascii_ii[i];
15733 short int ebcdic_ii[] =
15734 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15735 short int ebcdic_mm[] =
15736 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15737 int use_ebcdic (int i) {
15738 return ebcdic_mm[i] + ebcdic_ii[i];
15740 extern int foo;
15743 main ()
15745 return use_ascii (foo) == use_ebcdic (foo);
15747 return 0;
15749 _ACEOF
15750 if ac_fn_c_try_compile "$LINENO"; then :
15751 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15752 ac_cv_c_bigendian=yes
15754 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15755 if test "$ac_cv_c_bigendian" = unknown; then
15756 ac_cv_c_bigendian=no
15757 else
15758 # finding both strings is unlikely to happen, but who knows?
15759 ac_cv_c_bigendian=unknown
15763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15764 else
15765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15766 /* end confdefs.h. */
15767 $ac_includes_default
15769 main ()
15772 /* Are we little or big endian? From Harbison&Steele. */
15773 union
15775 long int l;
15776 char c[sizeof (long int)];
15777 } u;
15778 u.l = 1;
15779 return u.c[sizeof (long int) - 1] == 1;
15782 return 0;
15784 _ACEOF
15785 if ac_fn_c_try_run "$LINENO"; then :
15786 ac_cv_c_bigendian=no
15787 else
15788 ac_cv_c_bigendian=yes
15790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15791 conftest.$ac_objext conftest.beam conftest.$ac_ext
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15797 $as_echo "$ac_cv_c_bigendian" >&6; }
15798 case $ac_cv_c_bigendian in #(
15799 yes)
15800 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15801 ;; #(
15803 ;; #(
15804 universal)
15806 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15808 ;; #(
15810 as_fn_error $? "unknown endianness
15811 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15812 esac
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
15816 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
15817 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
15818 $as_echo_n "(cached) " >&6
15819 else
15821 gcc_cv_as_cfi_pseudo_op=unknown
15822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15823 /* end confdefs.h. */
15824 asm (".cfi_startproc\n\t.cfi_endproc");
15826 main ()
15830 return 0;
15832 _ACEOF
15833 if ac_fn_c_try_compile "$LINENO"; then :
15834 gcc_cv_as_cfi_pseudo_op=yes
15835 else
15836 gcc_cv_as_cfi_pseudo_op=no
15838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
15842 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
15843 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
15845 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
15850 case "$TARGET" in
15851 SPARC)
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
15853 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
15854 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
15855 $as_echo_n "(cached) " >&6
15856 else
15858 save_CFLAGS="$CFLAGS"
15859 save_LDFLAGS="$LDFLAGS"
15860 CFLAGS="$CFLAGS -fpic"
15861 LDFLAGS="$LDFLAGS -shared"
15862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15863 /* end confdefs.h. */
15864 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
15866 main ()
15870 return 0;
15872 _ACEOF
15873 if ac_fn_c_try_link "$LINENO"; then :
15874 libffi_cv_as_sparc_ua_pcrel=yes
15875 else
15876 libffi_cv_as_sparc_ua_pcrel=no
15878 rm -f core conftest.err conftest.$ac_objext \
15879 conftest$ac_exeext conftest.$ac_ext
15880 CFLAGS="$save_CFLAGS"
15881 LDFLAGS="$save_LDFLAGS"
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
15884 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
15885 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
15887 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
15892 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
15893 if ${libffi_cv_as_register_pseudo_op+:} false; then :
15894 $as_echo_n "(cached) " >&6
15895 else
15897 libffi_cv_as_register_pseudo_op=unknown
15898 # Check if we have .register
15899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15900 /* end confdefs.h. */
15903 main ()
15905 asm (".register %g2, #scratch");
15907 return 0;
15909 _ACEOF
15910 if ac_fn_c_try_compile "$LINENO"; then :
15911 libffi_cv_as_register_pseudo_op=yes
15912 else
15913 libffi_cv_as_register_pseudo_op=no
15915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
15919 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
15920 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
15922 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
15927 X86*)
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15929 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15930 if ${libffi_cv_as_x86_pcrel+:} false; then :
15931 $as_echo_n "(cached) " >&6
15932 else
15934 libffi_cv_as_x86_pcrel=no
15935 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15936 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15937 libffi_cv_as_x86_pcrel=yes
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
15942 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
15943 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
15945 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15950 S390)
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler uses zarch features" >&5
15952 $as_echo_n "checking compiler uses zarch features... " >&6; }
15953 if ${libffi_cv_as_s390_zarch+:} false; then :
15954 $as_echo_n "(cached) " >&6
15955 else
15957 libffi_cv_as_s390_zarch=no
15958 echo 'void foo(void) { bar(); bar(); }' > conftest.c
15959 if $CC $CFLAGS -S conftest.c > /dev/null 2>&1; then
15960 if grep -q brasl conftest.s; then
15961 libffi_cv_as_s390_zarch=yes
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_s390_zarch" >&5
15967 $as_echo "$libffi_cv_as_s390_zarch" >&6; }
15968 if test "x$libffi_cv_as_s390_zarch" = xyes; then
15970 $as_echo "#define HAVE_AS_S390_ZARCH 1" >>confdefs.h
15974 esac
15976 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
15977 # Check whether --enable-pax_emutramp was given.
15978 if test "${enable_pax_emutramp+set}" = set; then :
15979 enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
15981 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
15987 FFI_EXEC_TRAMPOLINE_TABLE=0
15988 case "$target" in
15989 *arm*-apple-darwin* | aarch64-apple-darwin*)
15990 FFI_EXEC_TRAMPOLINE_TABLE=1
15992 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
15995 *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
15997 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
16000 esac
16001 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
16002 FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
16003 FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
16004 else
16005 FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
16006 FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
16011 if test x$TARGET = xX86_64; then
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking toolchain supports unwind section type" >&5
16013 $as_echo_n "checking toolchain supports unwind section type... " >&6; }
16014 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
16015 $as_echo_n "(cached) " >&6
16016 else
16018 cat > conftest1.s << EOF
16019 .text
16020 .globl foo
16021 foo:
16022 jmp bar
16023 .section .eh_frame,"a",@unwind
16024 bar:
16027 cat > conftest2.c << EOF
16028 extern void foo();
16029 int main(){foo();}
16032 libffi_cv_as_x86_64_unwind_section_type=no
16033 # we ensure that we can compile _and_ link an assembly file containing an @unwind section
16034 # since the compiler can support it and not the linker (ie old binutils)
16035 if $CC -Wa,--fatal-warnings $CFLAGS -c conftest1.s > /dev/null 2>&1 && \
16036 $CC conftest2.c conftest1.o > /dev/null 2>&1 ; then
16037 libffi_cv_as_x86_64_unwind_section_type=yes
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
16042 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
16043 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
16045 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
16050 if test "x$GCC" = "xyes"; then
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
16052 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
16053 if ${libffi_cv_ro_eh_frame+:} false; then :
16054 $as_echo_n "(cached) " >&6
16055 else
16057 libffi_cv_ro_eh_frame=no
16058 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
16059 if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c > /dev/null 2>&1; then
16060 objdump -h conftest.o > conftest.dump 2>&1
16061 libffi_eh_frame_line=`grep -n eh_frame conftest.dump | cut -d: -f 1`
16062 if test "x$libffi_eh_frame_line" != "x"; then
16063 libffi_test_line=`expr $libffi_eh_frame_line + 1`p
16064 sed -n $libffi_test_line conftest.dump > conftest.line
16065 if grep READONLY conftest.line > /dev/null; then
16066 libffi_cv_ro_eh_frame=yes
16070 rm -f conftest.*
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
16074 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
16075 if test "x$libffi_cv_ro_eh_frame" = xyes; then
16077 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
16080 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
16082 else
16084 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
16089 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
16090 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
16091 $as_echo_n "(cached) " >&6
16092 else
16094 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
16095 libffi_cv_hidden_visibility_attribute=no
16096 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
16097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16098 (eval $ac_try) 2>&5
16099 ac_status=$?
16100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16101 test $ac_status = 0; }; }; then
16102 if grep '\.hidden.*foo' conftest.s >/dev/null; then
16103 libffi_cv_hidden_visibility_attribute=yes
16106 rm -f conftest.*
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
16110 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
16111 if test $libffi_cv_hidden_visibility_attribute = yes; then
16113 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
16124 TARGET_OBJ=
16125 for i in $SOURCES; do
16126 TARGET_OBJ="${TARGET_OBJ} src/${TARGETDIR}/"`echo $i | sed 's/[cS]$/lo/'`
16127 done
16133 # Check whether --enable-debug was given.
16134 if test "${enable_debug+set}" = set; then :
16135 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
16137 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
16142 if test "$enable_debug" = "yes"; then
16143 FFI_DEBUG_TRUE=
16144 FFI_DEBUG_FALSE='#'
16145 else
16146 FFI_DEBUG_TRUE='#'
16147 FFI_DEBUG_FALSE=
16151 # Check whether --enable-structs was given.
16152 if test "${enable_structs+set}" = set; then :
16153 enableval=$enable_structs; if test "$enable_structs" = "no"; then
16155 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
16160 if test "$enable_debug" = "yes"; then
16161 FFI_DEBUG_TRUE=
16162 FFI_DEBUG_FALSE='#'
16163 else
16164 FFI_DEBUG_TRUE='#'
16165 FFI_DEBUG_FALSE=
16169 # Check whether --enable-raw-api was given.
16170 if test "${enable_raw_api+set}" = set; then :
16171 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
16173 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
16179 # Check whether --enable-purify-safety was given.
16180 if test "${enable_purify_safety+set}" = set; then :
16181 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
16183 $as_echo "#define USING_PURIFY 1" >>confdefs.h
16190 # Check whether --with-toolexeclibdir was given.
16191 if test "${with_toolexeclibdir+set}" = set; then :
16192 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
16196 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
16198 esac
16199 else
16200 with_toolexeclibdir=no
16205 if test -n "$with_cross_host" &&
16206 test x"$with_cross_host" != x"no"; then
16207 toolexecdir='$(exec_prefix)/$(target_alias)'
16208 case ${with_toolexeclibdir} in
16210 toolexeclibdir='$(toolexecdir)/lib'
16213 toolexeclibdir=${with_toolexeclibdir}
16215 esac
16216 else
16217 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16218 toolexeclibdir='$(libdir)'
16220 multi_os_directory=`$CC -print-multi-os-directory`
16221 case $multi_os_directory in
16222 .) ;; # Avoid trailing /.
16223 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
16224 esac
16228 if test "${multilib}" = "yes"; then
16229 multilib_arg="--enable-multilib"
16230 else
16231 multilib_arg=
16234 # Check linker support.
16237 # Check whether --with-gnu-ld was given.
16238 if test "${with_gnu_ld+set}" = set; then :
16239 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16240 else
16241 with_gnu_ld=no
16244 ac_prog=ld
16245 if test "$GCC" = yes; then
16246 # Check if gcc -print-prog-name=ld gives a path.
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16248 $as_echo_n "checking for ld used by $CC... " >&6; }
16249 case $host in
16250 *-*-mingw*)
16251 # gcc leaves a trailing carriage return which upsets mingw
16252 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16254 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16255 esac
16256 case $ac_prog in
16257 # Accept absolute paths.
16258 [\\/]* | ?:[\\/]*)
16259 re_direlt='/[^/][^/]*/\.\./'
16260 # Canonicalize the pathname of ld
16261 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16262 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16263 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16264 done
16265 test -z "$LD" && LD="$ac_prog"
16268 # If it fails, then pretend we aren't using GCC.
16269 ac_prog=ld
16272 # If it is relative, then search for the first ld in PATH.
16273 with_gnu_ld=unknown
16275 esac
16276 elif test "$with_gnu_ld" = yes; then
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16278 $as_echo_n "checking for GNU ld... " >&6; }
16279 else
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16281 $as_echo_n "checking for non-GNU ld... " >&6; }
16283 if ${lt_cv_path_LD+:} false; then :
16284 $as_echo_n "(cached) " >&6
16285 else
16286 if test -z "$LD"; then
16287 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16288 for ac_dir in $PATH; do
16289 IFS="$lt_save_ifs"
16290 test -z "$ac_dir" && ac_dir=.
16291 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16292 lt_cv_path_LD="$ac_dir/$ac_prog"
16293 # Check to see if the program is GNU ld. I'd rather use --version,
16294 # but apparently some variants of GNU ld only accept -v.
16295 # Break only if it was the GNU/non-GNU ld that we prefer.
16296 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16297 *GNU* | *'with BFD'*)
16298 test "$with_gnu_ld" != no && break
16301 test "$with_gnu_ld" != yes && break
16303 esac
16305 done
16306 IFS="$lt_save_ifs"
16307 else
16308 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16312 LD="$lt_cv_path_LD"
16313 if test -n "$LD"; then
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16315 $as_echo "$LD" >&6; }
16316 else
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16318 $as_echo "no" >&6; }
16320 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16322 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16323 if ${lt_cv_prog_gnu_ld+:} false; then :
16324 $as_echo_n "(cached) " >&6
16325 else
16326 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16327 case `$LD -v 2>&1 </dev/null` in
16328 *GNU* | *'with BFD'*)
16329 lt_cv_prog_gnu_ld=yes
16332 lt_cv_prog_gnu_ld=no
16334 esac
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16337 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16338 with_gnu_ld=$lt_cv_prog_gnu_ld
16346 # If we're not using GNU ld, then there's no point in even trying these
16347 # tests. Check for that first. We should have already tested for gld
16348 # by now (in libtool), but require it now just to be safe...
16349 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16350 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16354 # The name set by libtool depends on the version of libtool. Shame on us
16355 # for depending on an impl detail, but c'est la vie. Older versions used
16356 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16357 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16358 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16359 # set (hence we're using an older libtool), then set it.
16360 if test x${with_gnu_ld+set} != xset; then
16361 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16362 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16363 with_gnu_ld=no
16364 else
16365 with_gnu_ld=$ac_cv_prog_gnu_ld
16369 # Start by getting the version number. I think the libtool test already
16370 # does some of this, but throws away the result.
16371 libat_ld_is_gold=no
16372 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16373 libat_ld_is_gold=yes
16376 ldver=`$LD --version 2>/dev/null |
16377 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
16379 libat_gnu_ld_version=`echo $ldver | \
16380 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16382 # Set --gc-sections.
16383 if test "$with_gnu_ld" = "notbroken"; then
16384 # GNU ld it is! Joy and bunny rabbits!
16386 # All these tests are for C++; save the language and the compiler flags.
16387 # Need to do this so that g++ won't try to link in libstdc++
16388 ac_test_CFLAGS="${CFLAGS+set}"
16389 ac_save_CFLAGS="$CFLAGS"
16390 CFLAGS='-x c++ -Wl,--gc-sections'
16392 # Check for -Wl,--gc-sections
16393 # XXX This test is broken at the moment, as symbols required for linking
16394 # are now in libsupc++ (not built yet). In addition, this test has
16395 # cored on solaris in the past. In addition, --gc-sections doesn't
16396 # really work at the moment (keeps on discarding used sections, first
16397 # .eh_frame and now some of the glibc sections for iconv).
16398 # Bzzzzt. Thanks for playing, maybe next time.
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16400 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16401 if test "$cross_compiling" = yes; then :
16402 ac_sectionLDflags=yes
16403 else
16404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16405 /* end confdefs.h. */
16407 int main(void)
16409 try { throw 1; }
16410 catch (...) { };
16411 return 0;
16414 _ACEOF
16415 if ac_fn_c_try_run "$LINENO"; then :
16416 ac_sectionLDflags=yes
16417 else
16418 ac_sectionLDflags=no
16420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16421 conftest.$ac_objext conftest.beam conftest.$ac_ext
16424 if test "$ac_test_CFLAGS" = set; then
16425 CFLAGS="$ac_save_CFLAGS"
16426 else
16427 # this is the suspicious part
16428 CFLAGS=''
16430 if test "$ac_sectionLDflags" = "yes"; then
16431 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16434 $as_echo "$ac_sectionLDflags" >&6; }
16437 # Set linker optimization flags.
16438 if test x"$with_gnu_ld" = x"yes"; then
16439 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16447 # Check whether --enable-symvers was given.
16448 if test "${enable_symvers+set}" = set; then :
16449 enableval=$enable_symvers;
16450 case "$enableval" in
16451 yes|no|gnu*|sun) ;;
16452 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16453 esac
16455 else
16456 enable_symvers=yes
16461 # If we never went through the LIBAT_CHECK_LINKER_FEATURES macro, then we
16462 # don't know enough about $LD to do tricks...
16465 # Turn a 'yes' into a suitable default.
16466 if test x$enable_symvers = xyes ; then
16467 # FIXME The following test is too strict, in theory.
16468 if test $enable_shared = no || test "x$LD" = x; then
16469 enable_symvers=no
16470 else
16471 if test $with_gnu_ld = yes ; then
16472 enable_symvers=gnu
16473 else
16474 case ${target_os} in
16475 # Sun symbol versioning exists since Solaris 2.5.
16476 solaris2.[5-9]* | solaris2.1[0-9]*)
16477 enable_symvers=sun ;;
16479 enable_symvers=no ;;
16480 esac
16485 # Check if 'sun' was requested on non-Solaris 2 platforms.
16486 if test x$enable_symvers = xsun ; then
16487 case ${target_os} in
16488 solaris2*)
16489 # All fine.
16492 # Unlikely to work.
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16494 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16496 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16498 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16499 enable_symvers=no
16501 esac
16504 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16505 if test $enable_symvers != no; then
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16507 $as_echo_n "checking for shared libgcc... " >&6; }
16508 ac_save_CFLAGS="$CFLAGS"
16509 CFLAGS=' -lgcc_s'
16510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16511 /* end confdefs.h. */
16514 main ()
16516 return 0;
16518 return 0;
16520 _ACEOF
16521 if ac_fn_c_try_link "$LINENO"; then :
16522 libat_shared_libgcc=yes
16523 else
16524 libat_shared_libgcc=no
16526 rm -f core conftest.err conftest.$ac_objext \
16527 conftest$ac_exeext conftest.$ac_ext
16528 CFLAGS="$ac_save_CFLAGS"
16529 if test $libat_shared_libgcc = no; then
16530 cat > conftest.c <<EOF
16531 int main (void) { return 0; }
16533 libat_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16534 -shared -shared-libgcc -o conftest.so \
16535 conftest.c -v 2>&1 >/dev/null \
16536 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16537 rm -f conftest.c conftest.so
16538 if test x${libat_libgcc_s_suffix+set} = xset; then
16539 CFLAGS=" -lgcc_s$libat_libgcc_s_suffix"
16540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16541 /* end confdefs.h. */
16544 main ()
16546 return 0;
16548 return 0;
16550 _ACEOF
16551 if ac_fn_c_try_link "$LINENO"; then :
16552 libat_shared_libgcc=yes
16554 rm -f core conftest.err conftest.$ac_objext \
16555 conftest$ac_exeext conftest.$ac_ext
16556 CFLAGS="$ac_save_CFLAGS"
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5
16560 $as_echo "$libat_shared_libgcc" >&6; }
16563 # For GNU ld, we need at least this version. The format is described in
16564 # LIBAT_CHECK_LINKER_FEATURES above.
16565 libat_min_gnu_ld_version=21400
16566 # XXXXXXXXXXX libat_gnu_ld_version=21390
16568 # Check to see if unspecified "yes" value can win, given results above.
16569 # Change "yes" into either "no" or a style name.
16570 if test $enable_symvers != no && test $libat_shared_libgcc = yes; then
16571 if test $with_gnu_ld = yes; then
16572 if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
16573 enable_symvers=gnu
16574 elif test $libat_ld_is_gold = yes ; then
16575 enable_symvers=gnu
16576 else
16577 # The right tools, the right setup, but too old. Fallbacks?
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
16579 $as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;}
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16581 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16583 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5
16585 $as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;}
16586 if test $libat_gnu_ld_version -ge 21200 ; then
16587 # Globbing fix is present, proper block support is not.
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16589 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16590 enable_symvers=no
16591 else
16592 # 2.11 or older.
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16594 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16595 enable_symvers=no
16598 elif test $enable_symvers = sun; then
16599 : All interesting versions of Sun ld support sun style symbol versioning.
16600 else
16601 # just fail for now
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16603 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16605 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16607 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16609 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16610 enable_symvers=no
16613 if test $enable_symvers = gnu; then
16615 $as_echo "#define LIBAT_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16619 if test $enable_symvers != no; then
16620 LIBAT_BUILD_VERSIONED_SHLIB_TRUE=
16621 LIBAT_BUILD_VERSIONED_SHLIB_FALSE='#'
16622 else
16623 LIBAT_BUILD_VERSIONED_SHLIB_TRUE='#'
16624 LIBAT_BUILD_VERSIONED_SHLIB_FALSE=
16627 if test $enable_symvers = gnu; then
16628 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16629 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16630 else
16631 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16632 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16635 if test $enable_symvers = sun; then
16636 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16637 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16638 else
16639 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16640 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16644 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16647 # Determine what GCC version number to use in filesystem paths.
16649 get_gcc_base_ver="cat"
16651 # Check whether --with-gcc-major-version-only was given.
16652 if test "${with_gcc_major_version_only+set}" = set; then :
16653 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
16654 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
16662 ac_config_commands="$ac_config_commands include"
16664 ac_config_commands="$ac_config_commands src"
16667 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
16670 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
16673 cat >confcache <<\_ACEOF
16674 # This file is a shell script that caches the results of configure
16675 # tests run on this system so they can be shared between configure
16676 # scripts and configure runs, see configure's option --config-cache.
16677 # It is not useful on other systems. If it contains results you don't
16678 # want to keep, you may remove or edit it.
16680 # config.status only pays attention to the cache file if you give it
16681 # the --recheck option to rerun configure.
16683 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16684 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16685 # following values.
16687 _ACEOF
16689 # The following way of writing the cache mishandles newlines in values,
16690 # but we know of no workaround that is simple, portable, and efficient.
16691 # So, we kill variables containing newlines.
16692 # Ultrix sh set writes to stderr and can't be redirected directly,
16693 # and sets the high bit in the cache file unless we assign to the vars.
16695 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16696 eval ac_val=\$$ac_var
16697 case $ac_val in #(
16698 *${as_nl}*)
16699 case $ac_var in #(
16700 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16701 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16702 esac
16703 case $ac_var in #(
16704 _ | IFS | as_nl) ;; #(
16705 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16706 *) { eval $ac_var=; unset $ac_var;} ;;
16707 esac ;;
16708 esac
16709 done
16711 (set) 2>&1 |
16712 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16713 *${as_nl}ac_space=\ *)
16714 # `set' does not quote correctly, so add quotes: double-quote
16715 # substitution turns \\\\ into \\, and sed turns \\ into \.
16716 sed -n \
16717 "s/'/'\\\\''/g;
16718 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16719 ;; #(
16721 # `set' quotes correctly as required by POSIX, so do not add quotes.
16722 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16724 esac |
16725 sort
16727 sed '
16728 /^ac_cv_env_/b end
16729 t clear
16730 :clear
16731 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16732 t end
16733 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16734 :end' >>confcache
16735 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16736 if test -w "$cache_file"; then
16737 if test "x$cache_file" != "x/dev/null"; then
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16739 $as_echo "$as_me: updating cache $cache_file" >&6;}
16740 if test ! -f "$cache_file" || test -h "$cache_file"; then
16741 cat confcache >"$cache_file"
16742 else
16743 case $cache_file in #(
16744 */* | ?:*)
16745 mv -f confcache "$cache_file"$$ &&
16746 mv -f "$cache_file"$$ "$cache_file" ;; #(
16748 mv -f confcache "$cache_file" ;;
16749 esac
16752 else
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16754 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16757 rm -f confcache
16759 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16760 # Let make expand exec_prefix.
16761 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16763 DEFS=-DHAVE_CONFIG_H
16765 ac_libobjs=
16766 ac_ltlibobjs=
16768 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16769 # 1. Remove the extension, and $U if already installed.
16770 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16771 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16772 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16773 # will be set to the directory where LIBOBJS objects are built.
16774 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16775 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16776 done
16777 LIBOBJS=$ac_libobjs
16779 LTLIBOBJS=$ac_ltlibobjs
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16783 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16784 if test -n "$am_sleep_pid"; then
16785 # Hide warnings about reused PIDs.
16786 wait $am_sleep_pid 2>/dev/null
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16789 $as_echo "done" >&6; }
16790 if test -n "$EXEEXT"; then
16791 am__EXEEXT_TRUE=
16792 am__EXEEXT_FALSE='#'
16793 else
16794 am__EXEEXT_TRUE='#'
16795 am__EXEEXT_FALSE=
16798 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16799 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
16800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16802 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16803 as_fn_error $? "conditional \"GENINSRC\" was never defined.
16804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16806 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16807 as_fn_error $? "conditional \"AMDEP\" was never defined.
16808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16810 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16811 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16814 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16815 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16818 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16819 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
16820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16822 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16823 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16826 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16827 as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
16828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16831 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
16832 as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
16833 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16835 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
16836 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
16837 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16839 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
16840 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
16841 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16843 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_FALSE}"; then
16844 as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB\" was never defined.
16845 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16847 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
16848 as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
16849 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16851 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
16852 as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
16853 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16856 : "${CONFIG_STATUS=./config.status}"
16857 ac_write_fail=0
16858 ac_clean_files_save=$ac_clean_files
16859 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16861 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16862 as_write_fail=0
16863 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16864 #! $SHELL
16865 # Generated by $as_me.
16866 # Run this file to recreate the current configuration.
16867 # Compiler output produced by configure, useful for debugging
16868 # configure, is in config.log if it exists.
16870 debug=false
16871 ac_cs_recheck=false
16872 ac_cs_silent=false
16874 SHELL=\${CONFIG_SHELL-$SHELL}
16875 export SHELL
16876 _ASEOF
16877 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16878 ## -------------------- ##
16879 ## M4sh Initialization. ##
16880 ## -------------------- ##
16882 # Be more Bourne compatible
16883 DUALCASE=1; export DUALCASE # for MKS sh
16884 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16885 emulate sh
16886 NULLCMD=:
16887 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16888 # is contrary to our usage. Disable this feature.
16889 alias -g '${1+"$@"}'='"$@"'
16890 setopt NO_GLOB_SUBST
16891 else
16892 case `(set -o) 2>/dev/null` in #(
16893 *posix*) :
16894 set -o posix ;; #(
16895 *) :
16897 esac
16901 as_nl='
16903 export as_nl
16904 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16905 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16906 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16907 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16908 # Prefer a ksh shell builtin over an external printf program on Solaris,
16909 # but without wasting forks for bash or zsh.
16910 if test -z "$BASH_VERSION$ZSH_VERSION" \
16911 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16912 as_echo='print -r --'
16913 as_echo_n='print -rn --'
16914 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16915 as_echo='printf %s\n'
16916 as_echo_n='printf %s'
16917 else
16918 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16919 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16920 as_echo_n='/usr/ucb/echo -n'
16921 else
16922 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16923 as_echo_n_body='eval
16924 arg=$1;
16925 case $arg in #(
16926 *"$as_nl"*)
16927 expr "X$arg" : "X\\(.*\\)$as_nl";
16928 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16929 esac;
16930 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16932 export as_echo_n_body
16933 as_echo_n='sh -c $as_echo_n_body as_echo'
16935 export as_echo_body
16936 as_echo='sh -c $as_echo_body as_echo'
16939 # The user is always right.
16940 if test "${PATH_SEPARATOR+set}" != set; then
16941 PATH_SEPARATOR=:
16942 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16943 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16944 PATH_SEPARATOR=';'
16949 # IFS
16950 # We need space, tab and new line, in precisely that order. Quoting is
16951 # there to prevent editors from complaining about space-tab.
16952 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16953 # splitting by setting IFS to empty value.)
16954 IFS=" "" $as_nl"
16956 # Find who we are. Look in the path if we contain no directory separator.
16957 as_myself=
16958 case $0 in #((
16959 *[\\/]* ) as_myself=$0 ;;
16960 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16961 for as_dir in $PATH
16963 IFS=$as_save_IFS
16964 test -z "$as_dir" && as_dir=.
16965 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16966 done
16967 IFS=$as_save_IFS
16970 esac
16971 # We did not find ourselves, most probably we were run as `sh COMMAND'
16972 # in which case we are not to be found in the path.
16973 if test "x$as_myself" = x; then
16974 as_myself=$0
16976 if test ! -f "$as_myself"; then
16977 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16978 exit 1
16981 # Unset variables that we do not need and which cause bugs (e.g. in
16982 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16983 # suppresses any "Segmentation fault" message there. '((' could
16984 # trigger a bug in pdksh 5.2.14.
16985 for as_var in BASH_ENV ENV MAIL MAILPATH
16986 do eval test x\${$as_var+set} = xset \
16987 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16988 done
16989 PS1='$ '
16990 PS2='> '
16991 PS4='+ '
16993 # NLS nuisances.
16994 LC_ALL=C
16995 export LC_ALL
16996 LANGUAGE=C
16997 export LANGUAGE
16999 # CDPATH.
17000 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17003 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17004 # ----------------------------------------
17005 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17006 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17007 # script with STATUS, using 1 if that was 0.
17008 as_fn_error ()
17010 as_status=$1; test $as_status -eq 0 && as_status=1
17011 if test "$4"; then
17012 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17013 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17015 $as_echo "$as_me: error: $2" >&2
17016 as_fn_exit $as_status
17017 } # as_fn_error
17020 # as_fn_set_status STATUS
17021 # -----------------------
17022 # Set $? to STATUS, without forking.
17023 as_fn_set_status ()
17025 return $1
17026 } # as_fn_set_status
17028 # as_fn_exit STATUS
17029 # -----------------
17030 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17031 as_fn_exit ()
17033 set +e
17034 as_fn_set_status $1
17035 exit $1
17036 } # as_fn_exit
17038 # as_fn_unset VAR
17039 # ---------------
17040 # Portably unset VAR.
17041 as_fn_unset ()
17043 { eval $1=; unset $1;}
17045 as_unset=as_fn_unset
17046 # as_fn_append VAR VALUE
17047 # ----------------------
17048 # Append the text in VALUE to the end of the definition contained in VAR. Take
17049 # advantage of any shell optimizations that allow amortized linear growth over
17050 # repeated appends, instead of the typical quadratic growth present in naive
17051 # implementations.
17052 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17053 eval 'as_fn_append ()
17055 eval $1+=\$2
17057 else
17058 as_fn_append ()
17060 eval $1=\$$1\$2
17062 fi # as_fn_append
17064 # as_fn_arith ARG...
17065 # ------------------
17066 # Perform arithmetic evaluation on the ARGs, and store the result in the
17067 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17068 # must be portable across $(()) and expr.
17069 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17070 eval 'as_fn_arith ()
17072 as_val=$(( $* ))
17074 else
17075 as_fn_arith ()
17077 as_val=`expr "$@" || test $? -eq 1`
17079 fi # as_fn_arith
17082 if expr a : '\(a\)' >/dev/null 2>&1 &&
17083 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17084 as_expr=expr
17085 else
17086 as_expr=false
17089 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17090 as_basename=basename
17091 else
17092 as_basename=false
17095 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17096 as_dirname=dirname
17097 else
17098 as_dirname=false
17101 as_me=`$as_basename -- "$0" ||
17102 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17103 X"$0" : 'X\(//\)$' \| \
17104 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17105 $as_echo X/"$0" |
17106 sed '/^.*\/\([^/][^/]*\)\/*$/{
17107 s//\1/
17110 /^X\/\(\/\/\)$/{
17111 s//\1/
17114 /^X\/\(\/\).*/{
17115 s//\1/
17118 s/.*/./; q'`
17120 # Avoid depending upon Character Ranges.
17121 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17122 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17123 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17124 as_cr_digits='0123456789'
17125 as_cr_alnum=$as_cr_Letters$as_cr_digits
17127 ECHO_C= ECHO_N= ECHO_T=
17128 case `echo -n x` in #(((((
17129 -n*)
17130 case `echo 'xy\c'` in
17131 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17132 xy) ECHO_C='\c';;
17133 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17134 ECHO_T=' ';;
17135 esac;;
17137 ECHO_N='-n';;
17138 esac
17140 rm -f conf$$ conf$$.exe conf$$.file
17141 if test -d conf$$.dir; then
17142 rm -f conf$$.dir/conf$$.file
17143 else
17144 rm -f conf$$.dir
17145 mkdir conf$$.dir 2>/dev/null
17147 if (echo >conf$$.file) 2>/dev/null; then
17148 if ln -s conf$$.file conf$$ 2>/dev/null; then
17149 as_ln_s='ln -s'
17150 # ... but there are two gotchas:
17151 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17152 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17153 # In both cases, we have to default to `cp -pR'.
17154 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17155 as_ln_s='cp -pR'
17156 elif ln conf$$.file conf$$ 2>/dev/null; then
17157 as_ln_s=ln
17158 else
17159 as_ln_s='cp -pR'
17161 else
17162 as_ln_s='cp -pR'
17164 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17165 rmdir conf$$.dir 2>/dev/null
17168 # as_fn_mkdir_p
17169 # -------------
17170 # Create "$as_dir" as a directory, including parents if necessary.
17171 as_fn_mkdir_p ()
17174 case $as_dir in #(
17175 -*) as_dir=./$as_dir;;
17176 esac
17177 test -d "$as_dir" || eval $as_mkdir_p || {
17178 as_dirs=
17179 while :; do
17180 case $as_dir in #(
17181 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17182 *) as_qdir=$as_dir;;
17183 esac
17184 as_dirs="'$as_qdir' $as_dirs"
17185 as_dir=`$as_dirname -- "$as_dir" ||
17186 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17187 X"$as_dir" : 'X\(//\)[^/]' \| \
17188 X"$as_dir" : 'X\(//\)$' \| \
17189 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17190 $as_echo X"$as_dir" |
17191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17192 s//\1/
17195 /^X\(\/\/\)[^/].*/{
17196 s//\1/
17199 /^X\(\/\/\)$/{
17200 s//\1/
17203 /^X\(\/\).*/{
17204 s//\1/
17207 s/.*/./; q'`
17208 test -d "$as_dir" && break
17209 done
17210 test -z "$as_dirs" || eval "mkdir $as_dirs"
17211 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17214 } # as_fn_mkdir_p
17215 if mkdir -p . 2>/dev/null; then
17216 as_mkdir_p='mkdir -p "$as_dir"'
17217 else
17218 test -d ./-p && rmdir ./-p
17219 as_mkdir_p=false
17223 # as_fn_executable_p FILE
17224 # -----------------------
17225 # Test if FILE is an executable regular file.
17226 as_fn_executable_p ()
17228 test -f "$1" && test -x "$1"
17229 } # as_fn_executable_p
17230 as_test_x='test -x'
17231 as_executable_p=as_fn_executable_p
17233 # Sed expression to map a string onto a valid CPP name.
17234 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17236 # Sed expression to map a string onto a valid variable name.
17237 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17240 exec 6>&1
17241 ## ----------------------------------- ##
17242 ## Main body of $CONFIG_STATUS script. ##
17243 ## ----------------------------------- ##
17244 _ASEOF
17245 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17248 # Save the log message, to keep $0 and so on meaningful, and to
17249 # report actual input values of CONFIG_FILES etc. instead of their
17250 # values after options handling.
17251 ac_log="
17252 This file was extended by libffi $as_me 3.99999, which was
17253 generated by GNU Autoconf 2.69. Invocation command line was
17255 CONFIG_FILES = $CONFIG_FILES
17256 CONFIG_HEADERS = $CONFIG_HEADERS
17257 CONFIG_LINKS = $CONFIG_LINKS
17258 CONFIG_COMMANDS = $CONFIG_COMMANDS
17259 $ $0 $@
17261 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17264 _ACEOF
17266 case $ac_config_files in *"
17267 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17268 esac
17270 case $ac_config_headers in *"
17271 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17272 esac
17275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17276 # Files that config.status was made for.
17277 config_files="$ac_config_files"
17278 config_headers="$ac_config_headers"
17279 config_links="$ac_config_links"
17280 config_commands="$ac_config_commands"
17282 _ACEOF
17284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17285 ac_cs_usage="\
17286 \`$as_me' instantiates files and other configuration actions
17287 from templates according to the current configuration. Unless the files
17288 and actions are specified as TAGs, all are instantiated by default.
17290 Usage: $0 [OPTION]... [TAG]...
17292 -h, --help print this help, then exit
17293 -V, --version print version number and configuration settings, then exit
17294 --config print configuration, then exit
17295 -q, --quiet, --silent
17296 do not print progress messages
17297 -d, --debug don't remove temporary files
17298 --recheck update $as_me by reconfiguring in the same conditions
17299 --file=FILE[:TEMPLATE]
17300 instantiate the configuration file FILE
17301 --header=FILE[:TEMPLATE]
17302 instantiate the configuration header FILE
17304 Configuration files:
17305 $config_files
17307 Configuration headers:
17308 $config_headers
17310 Configuration links:
17311 $config_links
17313 Configuration commands:
17314 $config_commands
17316 Report bugs to <http://github.com/atgreen/libffi/issues>."
17318 _ACEOF
17319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17320 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17321 ac_cs_version="\\
17322 libffi config.status 3.99999
17323 configured by $0, generated by GNU Autoconf 2.69,
17324 with options \\"\$ac_cs_config\\"
17326 Copyright (C) 2012 Free Software Foundation, Inc.
17327 This config.status script is free software; the Free Software Foundation
17328 gives unlimited permission to copy, distribute and modify it."
17330 ac_pwd='$ac_pwd'
17331 srcdir='$srcdir'
17332 INSTALL='$INSTALL'
17333 MKDIR_P='$MKDIR_P'
17334 AWK='$AWK'
17335 test -n "\$AWK" || AWK=awk
17336 _ACEOF
17338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17339 # The default lists apply if the user does not specify any file.
17340 ac_need_defaults=:
17341 while test $# != 0
17343 case $1 in
17344 --*=?*)
17345 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17346 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17347 ac_shift=:
17349 --*=)
17350 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17351 ac_optarg=
17352 ac_shift=:
17355 ac_option=$1
17356 ac_optarg=$2
17357 ac_shift=shift
17359 esac
17361 case $ac_option in
17362 # Handling of the options.
17363 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17364 ac_cs_recheck=: ;;
17365 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17366 $as_echo "$ac_cs_version"; exit ;;
17367 --config | --confi | --conf | --con | --co | --c )
17368 $as_echo "$ac_cs_config"; exit ;;
17369 --debug | --debu | --deb | --de | --d | -d )
17370 debug=: ;;
17371 --file | --fil | --fi | --f )
17372 $ac_shift
17373 case $ac_optarg in
17374 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17375 '') as_fn_error $? "missing file argument" ;;
17376 esac
17377 as_fn_append CONFIG_FILES " '$ac_optarg'"
17378 ac_need_defaults=false;;
17379 --header | --heade | --head | --hea )
17380 $ac_shift
17381 case $ac_optarg in
17382 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17383 esac
17384 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17385 ac_need_defaults=false;;
17386 --he | --h)
17387 # Conflict between --help and --header
17388 as_fn_error $? "ambiguous option: \`$1'
17389 Try \`$0 --help' for more information.";;
17390 --help | --hel | -h )
17391 $as_echo "$ac_cs_usage"; exit ;;
17392 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17393 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17394 ac_cs_silent=: ;;
17396 # This is an error.
17397 -*) as_fn_error $? "unrecognized option: \`$1'
17398 Try \`$0 --help' for more information." ;;
17400 *) as_fn_append ac_config_targets " $1"
17401 ac_need_defaults=false ;;
17403 esac
17404 shift
17405 done
17407 ac_configure_extra_args=
17409 if $ac_cs_silent; then
17410 exec 6>/dev/null
17411 ac_configure_extra_args="$ac_configure_extra_args --silent"
17414 _ACEOF
17415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17416 if \$ac_cs_recheck; then
17417 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17418 shift
17419 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17420 CONFIG_SHELL='$SHELL'
17421 export CONFIG_SHELL
17422 exec "\$@"
17425 _ACEOF
17426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17427 exec 5>>config.log
17429 echo
17430 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17431 ## Running $as_me. ##
17432 _ASBOX
17433 $as_echo "$ac_log"
17434 } >&5
17436 _ACEOF
17437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17439 # INIT-COMMANDS
17442 srcdir="$srcdir"
17443 host="$host"
17444 target="$target"
17445 with_multisubdir="$with_multisubdir"
17446 with_multisrctop="$with_multisrctop"
17447 with_target_subdir="$with_target_subdir"
17448 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17449 multi_basedir="$multi_basedir"
17450 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17451 CC="$CC"
17452 CXX="$CXX"
17453 GFORTRAN="$GFORTRAN"
17454 GDC="$GDC"
17455 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17458 # The HP-UX ksh and POSIX shell print the target directory to stdout
17459 # if CDPATH is set.
17460 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17462 sed_quote_subst='$sed_quote_subst'
17463 double_quote_subst='$double_quote_subst'
17464 delay_variable_subst='$delay_variable_subst'
17465 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17466 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17467 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17468 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17469 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17470 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17471 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17472 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17473 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17474 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17475 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17476 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17477 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17478 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17479 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17480 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17481 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17482 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17483 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17484 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17485 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17486 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17487 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17488 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17489 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17490 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17491 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17492 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17493 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17494 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17495 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17496 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17497 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17498 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17499 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17500 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17501 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17502 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17503 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17504 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17505 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17506 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17507 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17508 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17509 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17510 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17511 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17512 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17513 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"`'
17514 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17515 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17516 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17517 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17518 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17519 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17520 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17521 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17522 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17523 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17524 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17525 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17526 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17527 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17528 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17529 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17530 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17531 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17532 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17533 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17534 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17535 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17536 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17537 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17538 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17539 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17540 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17541 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17542 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17543 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17544 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17545 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17546 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17547 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17548 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17549 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17550 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17551 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17552 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17553 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17554 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17555 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17556 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17557 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17558 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17559 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17560 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17561 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17562 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17563 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17564 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17565 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17566 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17567 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17568 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17569 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17570 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17571 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17572 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17573 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17574 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17575 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17576 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17577 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17578 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17579 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17580 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17581 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17582 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17583 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17584 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17585 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17586 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17587 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17588 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17589 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17590 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17591 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17592 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17593 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17594 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17595 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17596 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17597 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17598 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17599 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17600 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17601 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17602 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17603 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17604 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17605 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17606 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17607 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17608 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17609 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17610 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17611 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17612 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17613 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17614 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17615 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17616 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17617 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17618 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17619 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17620 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17621 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17622 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17623 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17624 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17625 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17626 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17627 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17628 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17629 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17630 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17631 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17632 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17633 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17634 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17635 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17636 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17637 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17638 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17639 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17641 LTCC='$LTCC'
17642 LTCFLAGS='$LTCFLAGS'
17643 compiler='$compiler_DEFAULT'
17645 # A function that is used when there is no print builtin or printf.
17646 func_fallback_echo ()
17648 eval 'cat <<_LTECHO_EOF
17650 _LTECHO_EOF'
17653 # Quote evaled strings.
17654 for var in SHELL \
17655 ECHO \
17656 SED \
17657 GREP \
17658 EGREP \
17659 FGREP \
17660 LD \
17661 NM \
17662 LN_S \
17663 lt_SP2NL \
17664 lt_NL2SP \
17665 reload_flag \
17666 OBJDUMP \
17667 deplibs_check_method \
17668 file_magic_cmd \
17669 AR \
17670 AR_FLAGS \
17671 STRIP \
17672 RANLIB \
17673 CC \
17674 CFLAGS \
17675 compiler \
17676 lt_cv_sys_global_symbol_pipe \
17677 lt_cv_sys_global_symbol_to_cdecl \
17678 lt_cv_sys_global_symbol_to_c_name_address \
17679 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17680 lt_prog_compiler_no_builtin_flag \
17681 lt_prog_compiler_wl \
17682 lt_prog_compiler_pic \
17683 lt_prog_compiler_static \
17684 lt_cv_prog_compiler_c_o \
17685 need_locks \
17686 DSYMUTIL \
17687 NMEDIT \
17688 LIPO \
17689 OTOOL \
17690 OTOOL64 \
17691 shrext_cmds \
17692 export_dynamic_flag_spec \
17693 whole_archive_flag_spec \
17694 compiler_needs_object \
17695 with_gnu_ld \
17696 allow_undefined_flag \
17697 no_undefined_flag \
17698 hardcode_libdir_flag_spec \
17699 hardcode_libdir_flag_spec_ld \
17700 hardcode_libdir_separator \
17701 fix_srcfile_path \
17702 exclude_expsyms \
17703 include_expsyms \
17704 file_list_spec \
17705 variables_saved_for_relink \
17706 libname_spec \
17707 library_names_spec \
17708 soname_spec \
17709 install_override_mode \
17710 finish_eval \
17711 old_striplib \
17712 striplib \
17713 compiler_lib_search_dirs \
17714 predep_objects \
17715 postdep_objects \
17716 predeps \
17717 postdeps \
17718 compiler_lib_search_path \
17719 LD_CXX \
17720 reload_flag_CXX \
17721 compiler_CXX \
17722 lt_prog_compiler_no_builtin_flag_CXX \
17723 lt_prog_compiler_wl_CXX \
17724 lt_prog_compiler_pic_CXX \
17725 lt_prog_compiler_static_CXX \
17726 lt_cv_prog_compiler_c_o_CXX \
17727 export_dynamic_flag_spec_CXX \
17728 whole_archive_flag_spec_CXX \
17729 compiler_needs_object_CXX \
17730 with_gnu_ld_CXX \
17731 allow_undefined_flag_CXX \
17732 no_undefined_flag_CXX \
17733 hardcode_libdir_flag_spec_CXX \
17734 hardcode_libdir_flag_spec_ld_CXX \
17735 hardcode_libdir_separator_CXX \
17736 fix_srcfile_path_CXX \
17737 exclude_expsyms_CXX \
17738 include_expsyms_CXX \
17739 file_list_spec_CXX \
17740 compiler_lib_search_dirs_CXX \
17741 predep_objects_CXX \
17742 postdep_objects_CXX \
17743 predeps_CXX \
17744 postdeps_CXX \
17745 compiler_lib_search_path_CXX; do
17746 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17747 *[\\\\\\\`\\"\\\$]*)
17748 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17751 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17753 esac
17754 done
17756 # Double-quote double-evaled strings.
17757 for var in reload_cmds \
17758 old_postinstall_cmds \
17759 old_postuninstall_cmds \
17760 old_archive_cmds \
17761 extract_expsyms_cmds \
17762 old_archive_from_new_cmds \
17763 old_archive_from_expsyms_cmds \
17764 archive_cmds \
17765 archive_expsym_cmds \
17766 module_cmds \
17767 module_expsym_cmds \
17768 export_symbols_cmds \
17769 prelink_cmds \
17770 postinstall_cmds \
17771 postuninstall_cmds \
17772 finish_cmds \
17773 sys_lib_search_path_spec \
17774 sys_lib_dlsearch_path_spec \
17775 reload_cmds_CXX \
17776 old_archive_cmds_CXX \
17777 old_archive_from_new_cmds_CXX \
17778 old_archive_from_expsyms_cmds_CXX \
17779 archive_cmds_CXX \
17780 archive_expsym_cmds_CXX \
17781 module_cmds_CXX \
17782 module_expsym_cmds_CXX \
17783 export_symbols_cmds_CXX \
17784 prelink_cmds_CXX; do
17785 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17786 *[\\\\\\\`\\"\\\$]*)
17787 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17790 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17792 esac
17793 done
17795 ac_aux_dir='$ac_aux_dir'
17796 xsi_shell='$xsi_shell'
17797 lt_shell_append='$lt_shell_append'
17799 # See if we are running on zsh, and set the options which allow our
17800 # commands through without removal of \ escapes INIT.
17801 if test -n "\${ZSH_VERSION+set}" ; then
17802 setopt NO_GLOB_SUBST
17806 PACKAGE='$PACKAGE'
17807 VERSION='$VERSION'
17808 TIMESTAMP='$TIMESTAMP'
17809 RM='$RM'
17810 ofile='$ofile'
17816 TARGETDIR="$TARGETDIR"
17818 _ACEOF
17820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17822 # Handling of arguments.
17823 for ac_config_target in $ac_config_targets
17825 case $ac_config_target in
17826 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
17827 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17828 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17829 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17830 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
17831 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
17832 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
17833 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17834 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
17835 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17836 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17837 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
17838 "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
17840 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17841 esac
17842 done
17845 # If the user did not use the arguments to specify the items to instantiate,
17846 # then the envvar interface is used. Set only those that are not.
17847 # We use the long form for the default assignment because of an extremely
17848 # bizarre bug on SunOS 4.1.3.
17849 if $ac_need_defaults; then
17850 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17851 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17852 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17853 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17856 # Have a temporary directory for convenience. Make it in the build tree
17857 # simply because there is no reason against having it here, and in addition,
17858 # creating and moving files from /tmp can sometimes cause problems.
17859 # Hook for its removal unless debugging.
17860 # Note that there is a small window in which the directory will not be cleaned:
17861 # after its creation but before its name has been assigned to `$tmp'.
17862 $debug ||
17864 tmp= ac_tmp=
17865 trap 'exit_status=$?
17866 : "${ac_tmp:=$tmp}"
17867 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17869 trap 'as_fn_exit 1' 1 2 13 15
17871 # Create a (secure) tmp directory for tmp files.
17874 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17875 test -d "$tmp"
17876 } ||
17878 tmp=./conf$$-$RANDOM
17879 (umask 077 && mkdir "$tmp")
17880 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17881 ac_tmp=$tmp
17883 # Set up the scripts for CONFIG_FILES section.
17884 # No need to generate them if there are no CONFIG_FILES.
17885 # This happens for instance with `./config.status config.h'.
17886 if test -n "$CONFIG_FILES"; then
17889 ac_cr=`echo X | tr X '\015'`
17890 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17891 # But we know of no other shell where ac_cr would be empty at this
17892 # point, so we can use a bashism as a fallback.
17893 if test "x$ac_cr" = x; then
17894 eval ac_cr=\$\'\\r\'
17896 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17897 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17898 ac_cs_awk_cr='\\r'
17899 else
17900 ac_cs_awk_cr=$ac_cr
17903 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17904 _ACEOF
17908 echo "cat >conf$$subs.awk <<_ACEOF" &&
17909 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17910 echo "_ACEOF"
17911 } >conf$$subs.sh ||
17912 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17913 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17914 ac_delim='%!_!# '
17915 for ac_last_try in false false false false false :; do
17916 . ./conf$$subs.sh ||
17917 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17919 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17920 if test $ac_delim_n = $ac_delim_num; then
17921 break
17922 elif $ac_last_try; then
17923 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17924 else
17925 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17927 done
17928 rm -f conf$$subs.sh
17930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17931 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17932 _ACEOF
17933 sed -n '
17935 s/^/S["/; s/!.*/"]=/
17938 s/^[^!]*!//
17939 :repl
17940 t repl
17941 s/'"$ac_delim"'$//
17942 t delim
17945 s/\(.\{148\}\)..*/\1/
17946 t more1
17947 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17950 b repl
17951 :more1
17952 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17955 s/.\{148\}//
17956 t nl
17957 :delim
17959 s/\(.\{148\}\)..*/\1/
17960 t more2
17961 s/["\\]/\\&/g; s/^/"/; s/$/"/
17964 :more2
17965 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17968 s/.\{148\}//
17969 t delim
17970 ' <conf$$subs.awk | sed '
17971 /^[^""]/{
17973 s/\n//
17975 ' >>$CONFIG_STATUS || ac_write_fail=1
17976 rm -f conf$$subs.awk
17977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17978 _ACAWK
17979 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17980 for (key in S) S_is_set[key] = 1
17981 FS = "\a"
17985 line = $ 0
17986 nfields = split(line, field, "@")
17987 substed = 0
17988 len = length(field[1])
17989 for (i = 2; i < nfields; i++) {
17990 key = field[i]
17991 keylen = length(key)
17992 if (S_is_set[key]) {
17993 value = S[key]
17994 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17995 len += length(value) + length(field[++i])
17996 substed = 1
17997 } else
17998 len += 1 + keylen
18001 print line
18004 _ACAWK
18005 _ACEOF
18006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18007 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18008 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18009 else
18011 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18012 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18013 _ACEOF
18015 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18016 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18017 # trailing colons and then remove the whole line if VPATH becomes empty
18018 # (actually we leave an empty line to preserve line numbers).
18019 if test "x$srcdir" = x.; then
18020 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18022 s///
18023 s/^/:/
18024 s/[ ]*$/:/
18025 s/:\$(srcdir):/:/g
18026 s/:\${srcdir}:/:/g
18027 s/:@srcdir@:/:/g
18028 s/^:*//
18029 s/:*$//
18031 s/\(=[ ]*\).*/\1/
18033 s/\n//
18034 s/^[^=]*=[ ]*$//
18038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18039 fi # test -n "$CONFIG_FILES"
18041 # Set up the scripts for CONFIG_HEADERS section.
18042 # No need to generate them if there are no CONFIG_HEADERS.
18043 # This happens for instance with `./config.status Makefile'.
18044 if test -n "$CONFIG_HEADERS"; then
18045 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18046 BEGIN {
18047 _ACEOF
18049 # Transform confdefs.h into an awk script `defines.awk', embedded as
18050 # here-document in config.status, that substitutes the proper values into
18051 # config.h.in to produce config.h.
18053 # Create a delimiter string that does not exist in confdefs.h, to ease
18054 # handling of long lines.
18055 ac_delim='%!_!# '
18056 for ac_last_try in false false :; do
18057 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18058 if test -z "$ac_tt"; then
18059 break
18060 elif $ac_last_try; then
18061 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18062 else
18063 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18065 done
18067 # For the awk script, D is an array of macro values keyed by name,
18068 # likewise P contains macro parameters if any. Preserve backslash
18069 # newline sequences.
18071 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18072 sed -n '
18073 s/.\{148\}/&'"$ac_delim"'/g
18074 t rset
18075 :rset
18076 s/^[ ]*#[ ]*define[ ][ ]*/ /
18077 t def
18079 :def
18080 s/\\$//
18081 t bsnl
18082 s/["\\]/\\&/g
18083 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18084 D["\1"]=" \3"/p
18085 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18087 :bsnl
18088 s/["\\]/\\&/g
18089 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18090 D["\1"]=" \3\\\\\\n"\\/p
18091 t cont
18092 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18093 t cont
18095 :cont
18097 s/.\{148\}/&'"$ac_delim"'/g
18098 t clear
18099 :clear
18100 s/\\$//
18101 t bsnlc
18102 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18104 :bsnlc
18105 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18106 b cont
18107 ' <confdefs.h | sed '
18108 s/'"$ac_delim"'/"\\\
18109 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18112 for (key in D) D_is_set[key] = 1
18113 FS = "\a"
18115 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18116 line = \$ 0
18117 split(line, arg, " ")
18118 if (arg[1] == "#") {
18119 defundef = arg[2]
18120 mac1 = arg[3]
18121 } else {
18122 defundef = substr(arg[1], 2)
18123 mac1 = arg[2]
18125 split(mac1, mac2, "(") #)
18126 macro = mac2[1]
18127 prefix = substr(line, 1, index(line, defundef) - 1)
18128 if (D_is_set[macro]) {
18129 # Preserve the white space surrounding the "#".
18130 print prefix "define", macro P[macro] D[macro]
18131 next
18132 } else {
18133 # Replace #undef with comments. This is necessary, for example,
18134 # in the case of _POSIX_SOURCE, which is predefined and required
18135 # on some systems where configure will not decide to define it.
18136 if (defundef == "undef") {
18137 print "/*", prefix defundef, macro, "*/"
18138 next
18142 { print }
18143 _ACAWK
18144 _ACEOF
18145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18146 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18147 fi # test -n "$CONFIG_HEADERS"
18150 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18151 shift
18152 for ac_tag
18154 case $ac_tag in
18155 :[FHLC]) ac_mode=$ac_tag; continue;;
18156 esac
18157 case $ac_mode$ac_tag in
18158 :[FHL]*:*);;
18159 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18160 :[FH]-) ac_tag=-:-;;
18161 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18162 esac
18163 ac_save_IFS=$IFS
18164 IFS=:
18165 set x $ac_tag
18166 IFS=$ac_save_IFS
18167 shift
18168 ac_file=$1
18169 shift
18171 case $ac_mode in
18172 :L) ac_source=$1;;
18173 :[FH])
18174 ac_file_inputs=
18175 for ac_f
18177 case $ac_f in
18178 -) ac_f="$ac_tmp/stdin";;
18179 *) # Look for the file first in the build tree, then in the source tree
18180 # (if the path is not absolute). The absolute path cannot be DOS-style,
18181 # because $ac_f cannot contain `:'.
18182 test -f "$ac_f" ||
18183 case $ac_f in
18184 [\\/$]*) false;;
18185 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18186 esac ||
18187 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18188 esac
18189 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18190 as_fn_append ac_file_inputs " '$ac_f'"
18191 done
18193 # Let's still pretend it is `configure' which instantiates (i.e., don't
18194 # use $as_me), people would be surprised to read:
18195 # /* config.h. Generated by config.status. */
18196 configure_input='Generated from '`
18197 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18198 `' by configure.'
18199 if test x"$ac_file" != x-; then
18200 configure_input="$ac_file. $configure_input"
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18202 $as_echo "$as_me: creating $ac_file" >&6;}
18204 # Neutralize special characters interpreted by sed in replacement strings.
18205 case $configure_input in #(
18206 *\&* | *\|* | *\\* )
18207 ac_sed_conf_input=`$as_echo "$configure_input" |
18208 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18209 *) ac_sed_conf_input=$configure_input;;
18210 esac
18212 case $ac_tag in
18213 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18214 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18215 esac
18217 esac
18219 ac_dir=`$as_dirname -- "$ac_file" ||
18220 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18221 X"$ac_file" : 'X\(//\)[^/]' \| \
18222 X"$ac_file" : 'X\(//\)$' \| \
18223 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18224 $as_echo X"$ac_file" |
18225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18226 s//\1/
18229 /^X\(\/\/\)[^/].*/{
18230 s//\1/
18233 /^X\(\/\/\)$/{
18234 s//\1/
18237 /^X\(\/\).*/{
18238 s//\1/
18241 s/.*/./; q'`
18242 as_dir="$ac_dir"; as_fn_mkdir_p
18243 ac_builddir=.
18245 case "$ac_dir" in
18246 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18248 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18249 # A ".." for each directory in $ac_dir_suffix.
18250 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18251 case $ac_top_builddir_sub in
18252 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18253 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18254 esac ;;
18255 esac
18256 ac_abs_top_builddir=$ac_pwd
18257 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18258 # for backward compatibility:
18259 ac_top_builddir=$ac_top_build_prefix
18261 case $srcdir in
18262 .) # We are building in place.
18263 ac_srcdir=.
18264 ac_top_srcdir=$ac_top_builddir_sub
18265 ac_abs_top_srcdir=$ac_pwd ;;
18266 [\\/]* | ?:[\\/]* ) # Absolute name.
18267 ac_srcdir=$srcdir$ac_dir_suffix;
18268 ac_top_srcdir=$srcdir
18269 ac_abs_top_srcdir=$srcdir ;;
18270 *) # Relative name.
18271 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18272 ac_top_srcdir=$ac_top_build_prefix$srcdir
18273 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18274 esac
18275 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18278 case $ac_mode in
18281 # CONFIG_FILE
18284 case $INSTALL in
18285 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18286 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18287 esac
18288 ac_MKDIR_P=$MKDIR_P
18289 case $MKDIR_P in
18290 [\\/$]* | ?:[\\/]* ) ;;
18291 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18292 esac
18293 _ACEOF
18295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18296 # If the template does not know about datarootdir, expand it.
18297 # FIXME: This hack should be removed a few years after 2.60.
18298 ac_datarootdir_hack=; ac_datarootdir_seen=
18299 ac_sed_dataroot='
18300 /datarootdir/ {
18304 /@datadir@/p
18305 /@docdir@/p
18306 /@infodir@/p
18307 /@localedir@/p
18308 /@mandir@/p'
18309 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18310 *datarootdir*) ac_datarootdir_seen=yes;;
18311 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18313 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18314 _ACEOF
18315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18316 ac_datarootdir_hack='
18317 s&@datadir@&$datadir&g
18318 s&@docdir@&$docdir&g
18319 s&@infodir@&$infodir&g
18320 s&@localedir@&$localedir&g
18321 s&@mandir@&$mandir&g
18322 s&\\\${datarootdir}&$datarootdir&g' ;;
18323 esac
18324 _ACEOF
18326 # Neutralize VPATH when `$srcdir' = `.'.
18327 # Shell code in configure.ac might set extrasub.
18328 # FIXME: do we really want to maintain this feature?
18329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18330 ac_sed_extra="$ac_vpsub
18331 $extrasub
18332 _ACEOF
18333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18335 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18336 s|@configure_input@|$ac_sed_conf_input|;t t
18337 s&@top_builddir@&$ac_top_builddir_sub&;t t
18338 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18339 s&@srcdir@&$ac_srcdir&;t t
18340 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18341 s&@top_srcdir@&$ac_top_srcdir&;t t
18342 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18343 s&@builddir@&$ac_builddir&;t t
18344 s&@abs_builddir@&$ac_abs_builddir&;t t
18345 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18346 s&@INSTALL@&$ac_INSTALL&;t t
18347 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18348 $ac_datarootdir_hack
18350 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18351 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18353 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18354 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18355 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18356 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18358 which seems to be undefined. Please make sure it is defined" >&5
18359 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18360 which seems to be undefined. Please make sure it is defined" >&2;}
18362 rm -f "$ac_tmp/stdin"
18363 case $ac_file in
18364 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18365 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18366 esac \
18367 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18371 # CONFIG_HEADER
18373 if test x"$ac_file" != x-; then
18375 $as_echo "/* $configure_input */" \
18376 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18377 } >"$ac_tmp/config.h" \
18378 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18379 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18381 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18382 else
18383 rm -f "$ac_file"
18384 mv "$ac_tmp/config.h" "$ac_file" \
18385 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18387 else
18388 $as_echo "/* $configure_input */" \
18389 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18390 || as_fn_error $? "could not create -" "$LINENO" 5
18392 # Compute "$ac_file"'s index in $config_headers.
18393 _am_arg="$ac_file"
18394 _am_stamp_count=1
18395 for _am_header in $config_headers :; do
18396 case $_am_header in
18397 $_am_arg | $_am_arg:* )
18398 break ;;
18400 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18401 esac
18402 done
18403 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18404 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18405 X"$_am_arg" : 'X\(//\)[^/]' \| \
18406 X"$_am_arg" : 'X\(//\)$' \| \
18407 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18408 $as_echo X"$_am_arg" |
18409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18410 s//\1/
18413 /^X\(\/\/\)[^/].*/{
18414 s//\1/
18417 /^X\(\/\/\)$/{
18418 s//\1/
18421 /^X\(\/\).*/{
18422 s//\1/
18425 s/.*/./; q'`/stamp-h$_am_stamp_count
18429 # CONFIG_LINK
18432 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18434 else
18435 # Prefer the file from the source tree if names are identical.
18436 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18437 ac_source=$srcdir/$ac_source
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18441 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18443 if test ! -r "$ac_source"; then
18444 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
18446 rm -f "$ac_file"
18448 # Try a relative symlink, then a hard link, then a copy.
18449 case $ac_source in
18450 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18451 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18452 esac
18453 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18454 ln "$ac_source" "$ac_file" 2>/dev/null ||
18455 cp -p "$ac_source" "$ac_file" ||
18456 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18459 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18460 $as_echo "$as_me: executing $ac_file commands" >&6;}
18462 esac
18465 case $ac_file$ac_mode in
18466 "default-1":C)
18467 # Only add multilib support code if we just rebuilt the top-level
18468 # Makefile.
18469 case " $CONFIG_FILES " in
18470 *" Makefile "*)
18471 ac_file=Makefile . ${multi_basedir}/config-ml.in
18473 esac ;;
18474 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18475 # Older Autoconf quotes --file arguments for eval, but not when files
18476 # are listed without --file. Let's play safe and only enable the eval
18477 # if we detect the quoting.
18478 case $CONFIG_FILES in
18479 *\'*) eval set x "$CONFIG_FILES" ;;
18480 *) set x $CONFIG_FILES ;;
18481 esac
18482 shift
18483 for mf
18485 # Strip MF so we end up with the name of the file.
18486 mf=`echo "$mf" | sed -e 's/:.*$//'`
18487 # Check whether this is an Automake generated Makefile or not.
18488 # We used to match only the files named 'Makefile.in', but
18489 # some people rename them; so instead we look at the file content.
18490 # Grep'ing the first line is not enough: some people post-process
18491 # each Makefile.in and add a new line on top of each file to say so.
18492 # Grep'ing the whole file is not good either: AIX grep has a line
18493 # limit of 2048, but all sed's we know have understand at least 4000.
18494 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18495 dirpart=`$as_dirname -- "$mf" ||
18496 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18497 X"$mf" : 'X\(//\)[^/]' \| \
18498 X"$mf" : 'X\(//\)$' \| \
18499 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18500 $as_echo X"$mf" |
18501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18502 s//\1/
18505 /^X\(\/\/\)[^/].*/{
18506 s//\1/
18509 /^X\(\/\/\)$/{
18510 s//\1/
18513 /^X\(\/\).*/{
18514 s//\1/
18517 s/.*/./; q'`
18518 else
18519 continue
18521 # Extract the definition of DEPDIR, am__include, and am__quote
18522 # from the Makefile without running 'make'.
18523 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18524 test -z "$DEPDIR" && continue
18525 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18526 test -z "$am__include" && continue
18527 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18528 # Find all dependency output files, they are included files with
18529 # $(DEPDIR) in their names. We invoke sed twice because it is the
18530 # simplest approach to changing $(DEPDIR) to its actual value in the
18531 # expansion.
18532 for file in `sed -n "
18533 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18534 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18535 # Make sure the directory exists.
18536 test -f "$dirpart/$file" && continue
18537 fdir=`$as_dirname -- "$file" ||
18538 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18539 X"$file" : 'X\(//\)[^/]' \| \
18540 X"$file" : 'X\(//\)$' \| \
18541 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18542 $as_echo X"$file" |
18543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18544 s//\1/
18547 /^X\(\/\/\)[^/].*/{
18548 s//\1/
18551 /^X\(\/\/\)$/{
18552 s//\1/
18555 /^X\(\/\).*/{
18556 s//\1/
18559 s/.*/./; q'`
18560 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18561 # echo "creating $dirpart/$file"
18562 echo '# dummy' > "$dirpart/$file"
18563 done
18564 done
18567 "libtool":C)
18569 # See if we are running on zsh, and set the options which allow our
18570 # commands through without removal of \ escapes.
18571 if test -n "${ZSH_VERSION+set}" ; then
18572 setopt NO_GLOB_SUBST
18575 cfgfile="${ofile}T"
18576 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18577 $RM "$cfgfile"
18579 cat <<_LT_EOF >> "$cfgfile"
18580 #! $SHELL
18582 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18583 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18584 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18585 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18587 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18588 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18589 # Written by Gordon Matzigkeit, 1996
18591 # This file is part of GNU Libtool.
18593 # GNU Libtool is free software; you can redistribute it and/or
18594 # modify it under the terms of the GNU General Public License as
18595 # published by the Free Software Foundation; either version 2 of
18596 # the License, or (at your option) any later version.
18598 # As a special exception to the GNU General Public License,
18599 # if you distribute this file as part of a program or library that
18600 # is built using GNU Libtool, you may include this file under the
18601 # same distribution terms that you use for the rest of that program.
18603 # GNU Libtool is distributed in the hope that it will be useful,
18604 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18605 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18606 # GNU General Public License for more details.
18608 # You should have received a copy of the GNU General Public License
18609 # along with GNU Libtool; see the file COPYING. If not, a copy
18610 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18611 # obtained by writing to the Free Software Foundation, Inc.,
18612 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18615 # The names of the tagged configurations supported by this script.
18616 available_tags="CXX "
18618 # ### BEGIN LIBTOOL CONFIG
18620 # Which release of libtool.m4 was used?
18621 macro_version=$macro_version
18622 macro_revision=$macro_revision
18624 # Whether or not to build shared libraries.
18625 build_libtool_libs=$enable_shared
18627 # Whether or not to build static libraries.
18628 build_old_libs=$enable_static
18630 # What type of objects to build.
18631 pic_mode=$pic_mode
18633 # Whether or not to optimize for fast installation.
18634 fast_install=$enable_fast_install
18636 # Shell to use when invoking shell scripts.
18637 SHELL=$lt_SHELL
18639 # An echo program that protects backslashes.
18640 ECHO=$lt_ECHO
18642 # The host system.
18643 host_alias=$host_alias
18644 host=$host
18645 host_os=$host_os
18647 # The build system.
18648 build_alias=$build_alias
18649 build=$build
18650 build_os=$build_os
18652 # A sed program that does not truncate output.
18653 SED=$lt_SED
18655 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18656 Xsed="\$SED -e 1s/^X//"
18658 # A grep program that handles long lines.
18659 GREP=$lt_GREP
18661 # An ERE matcher.
18662 EGREP=$lt_EGREP
18664 # A literal string matcher.
18665 FGREP=$lt_FGREP
18667 # A BSD- or MS-compatible name lister.
18668 NM=$lt_NM
18670 # Whether we need soft or hard links.
18671 LN_S=$lt_LN_S
18673 # What is the maximum length of a command?
18674 max_cmd_len=$max_cmd_len
18676 # Object file suffix (normally "o").
18677 objext=$ac_objext
18679 # Executable file suffix (normally "").
18680 exeext=$exeext
18682 # whether the shell understands "unset".
18683 lt_unset=$lt_unset
18685 # turn spaces into newlines.
18686 SP2NL=$lt_lt_SP2NL
18688 # turn newlines into spaces.
18689 NL2SP=$lt_lt_NL2SP
18691 # An object symbol dumper.
18692 OBJDUMP=$lt_OBJDUMP
18694 # Method to check whether dependent libraries are shared objects.
18695 deplibs_check_method=$lt_deplibs_check_method
18697 # Command to use when deplibs_check_method == "file_magic".
18698 file_magic_cmd=$lt_file_magic_cmd
18700 # The archiver.
18701 AR=$lt_AR
18702 AR_FLAGS=$lt_AR_FLAGS
18704 # A symbol stripping program.
18705 STRIP=$lt_STRIP
18707 # Commands used to install an old-style archive.
18708 RANLIB=$lt_RANLIB
18709 old_postinstall_cmds=$lt_old_postinstall_cmds
18710 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18712 # Whether to use a lock for old archive extraction.
18713 lock_old_archive_extraction=$lock_old_archive_extraction
18715 # A C compiler.
18716 LTCC=$lt_CC
18718 # LTCC compiler flags.
18719 LTCFLAGS=$lt_CFLAGS
18721 # Take the output of nm and produce a listing of raw symbols and C names.
18722 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18724 # Transform the output of nm in a proper C declaration.
18725 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18727 # Transform the output of nm in a C name address pair.
18728 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18730 # Transform the output of nm in a C name address pair when lib prefix is needed.
18731 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18733 # The name of the directory that contains temporary libtool files.
18734 objdir=$objdir
18736 # Used to examine libraries when file_magic_cmd begins with "file".
18737 MAGIC_CMD=$MAGIC_CMD
18739 # Must we lock files when doing compilation?
18740 need_locks=$lt_need_locks
18742 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18743 DSYMUTIL=$lt_DSYMUTIL
18745 # Tool to change global to local symbols on Mac OS X.
18746 NMEDIT=$lt_NMEDIT
18748 # Tool to manipulate fat objects and archives on Mac OS X.
18749 LIPO=$lt_LIPO
18751 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18752 OTOOL=$lt_OTOOL
18754 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18755 OTOOL64=$lt_OTOOL64
18757 # Old archive suffix (normally "a").
18758 libext=$libext
18760 # Shared library suffix (normally ".so").
18761 shrext_cmds=$lt_shrext_cmds
18763 # The commands to extract the exported symbol list from a shared archive.
18764 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18766 # Variables whose values should be saved in libtool wrapper scripts and
18767 # restored at link time.
18768 variables_saved_for_relink=$lt_variables_saved_for_relink
18770 # Do we need the "lib" prefix for modules?
18771 need_lib_prefix=$need_lib_prefix
18773 # Do we need a version for libraries?
18774 need_version=$need_version
18776 # Library versioning type.
18777 version_type=$version_type
18779 # Shared library runtime path variable.
18780 runpath_var=$runpath_var
18782 # Shared library path variable.
18783 shlibpath_var=$shlibpath_var
18785 # Is shlibpath searched before the hard-coded library search path?
18786 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18788 # Format of library name prefix.
18789 libname_spec=$lt_libname_spec
18791 # List of archive names. First name is the real one, the rest are links.
18792 # The last name is the one that the linker finds with -lNAME
18793 library_names_spec=$lt_library_names_spec
18795 # The coded name of the library, if different from the real name.
18796 soname_spec=$lt_soname_spec
18798 # Permission mode override for installation of shared libraries.
18799 install_override_mode=$lt_install_override_mode
18801 # Command to use after installation of a shared archive.
18802 postinstall_cmds=$lt_postinstall_cmds
18804 # Command to use after uninstallation of a shared archive.
18805 postuninstall_cmds=$lt_postuninstall_cmds
18807 # Commands used to finish a libtool library installation in a directory.
18808 finish_cmds=$lt_finish_cmds
18810 # As "finish_cmds", except a single script fragment to be evaled but
18811 # not shown.
18812 finish_eval=$lt_finish_eval
18814 # Whether we should hardcode library paths into libraries.
18815 hardcode_into_libs=$hardcode_into_libs
18817 # Compile-time system search path for libraries.
18818 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18820 # Run-time system search path for libraries.
18821 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18823 # Whether dlopen is supported.
18824 dlopen_support=$enable_dlopen
18826 # Whether dlopen of programs is supported.
18827 dlopen_self=$enable_dlopen_self
18829 # Whether dlopen of statically linked programs is supported.
18830 dlopen_self_static=$enable_dlopen_self_static
18832 # Commands to strip libraries.
18833 old_striplib=$lt_old_striplib
18834 striplib=$lt_striplib
18837 # The linker used to build libraries.
18838 LD=$lt_LD
18840 # How to create reloadable object files.
18841 reload_flag=$lt_reload_flag
18842 reload_cmds=$lt_reload_cmds
18844 # Commands used to build an old-style archive.
18845 old_archive_cmds=$lt_old_archive_cmds
18847 # A language specific compiler.
18848 CC=$lt_compiler
18850 # Is the compiler the GNU compiler?
18851 with_gcc=$GCC
18853 # Compiler flag to turn off builtin functions.
18854 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18856 # How to pass a linker flag through the compiler.
18857 wl=$lt_lt_prog_compiler_wl
18859 # Additional compiler flags for building library objects.
18860 pic_flag=$lt_lt_prog_compiler_pic
18862 # Compiler flag to prevent dynamic linking.
18863 link_static_flag=$lt_lt_prog_compiler_static
18865 # Does compiler simultaneously support -c and -o options?
18866 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18868 # Whether or not to add -lc for building shared libraries.
18869 build_libtool_need_lc=$archive_cmds_need_lc
18871 # Whether or not to disallow shared libs when runtime libs are static.
18872 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18874 # Compiler flag to allow reflexive dlopens.
18875 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18877 # Compiler flag to generate shared objects directly from archives.
18878 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18880 # Whether the compiler copes with passing no objects directly.
18881 compiler_needs_object=$lt_compiler_needs_object
18883 # Create an old-style archive from a shared archive.
18884 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18886 # Create a temporary old-style archive to link instead of a shared archive.
18887 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18889 # Commands used to build a shared archive.
18890 archive_cmds=$lt_archive_cmds
18891 archive_expsym_cmds=$lt_archive_expsym_cmds
18893 # Commands used to build a loadable module if different from building
18894 # a shared archive.
18895 module_cmds=$lt_module_cmds
18896 module_expsym_cmds=$lt_module_expsym_cmds
18898 # Whether we are building with GNU ld or not.
18899 with_gnu_ld=$lt_with_gnu_ld
18901 # Flag that allows shared libraries with undefined symbols to be built.
18902 allow_undefined_flag=$lt_allow_undefined_flag
18904 # Flag that enforces no undefined symbols.
18905 no_undefined_flag=$lt_no_undefined_flag
18907 # Flag to hardcode \$libdir into a binary during linking.
18908 # This must work even if \$libdir does not exist
18909 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18911 # If ld is used when linking, flag to hardcode \$libdir into a binary
18912 # during linking. This must work even if \$libdir does not exist.
18913 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18915 # Whether we need a single "-rpath" flag with a separated argument.
18916 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18918 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18919 # DIR into the resulting binary.
18920 hardcode_direct=$hardcode_direct
18922 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18923 # DIR into the resulting binary and the resulting library dependency is
18924 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18925 # library is relocated.
18926 hardcode_direct_absolute=$hardcode_direct_absolute
18928 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18929 # into the resulting binary.
18930 hardcode_minus_L=$hardcode_minus_L
18932 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18933 # into the resulting binary.
18934 hardcode_shlibpath_var=$hardcode_shlibpath_var
18936 # Set to "yes" if building a shared library automatically hardcodes DIR
18937 # into the library and all subsequent libraries and executables linked
18938 # against it.
18939 hardcode_automatic=$hardcode_automatic
18941 # Set to yes if linker adds runtime paths of dependent libraries
18942 # to runtime path list.
18943 inherit_rpath=$inherit_rpath
18945 # Whether libtool must link a program against all its dependency libraries.
18946 link_all_deplibs=$link_all_deplibs
18948 # Fix the shell variable \$srcfile for the compiler.
18949 fix_srcfile_path=$lt_fix_srcfile_path
18951 # Set to "yes" if exported symbols are required.
18952 always_export_symbols=$always_export_symbols
18954 # The commands to list exported symbols.
18955 export_symbols_cmds=$lt_export_symbols_cmds
18957 # Symbols that should not be listed in the preloaded symbols.
18958 exclude_expsyms=$lt_exclude_expsyms
18960 # Symbols that must always be exported.
18961 include_expsyms=$lt_include_expsyms
18963 # Commands necessary for linking programs (against libraries) with templates.
18964 prelink_cmds=$lt_prelink_cmds
18966 # Specify filename containing input files.
18967 file_list_spec=$lt_file_list_spec
18969 # How to hardcode a shared library path into an executable.
18970 hardcode_action=$hardcode_action
18972 # The directories searched by this compiler when creating a shared library.
18973 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18975 # Dependencies to place before and after the objects being linked to
18976 # create a shared library.
18977 predep_objects=$lt_predep_objects
18978 postdep_objects=$lt_postdep_objects
18979 predeps=$lt_predeps
18980 postdeps=$lt_postdeps
18982 # The library search path used internally by the compiler when linking
18983 # a shared library.
18984 compiler_lib_search_path=$lt_compiler_lib_search_path
18986 # ### END LIBTOOL CONFIG
18988 _LT_EOF
18990 case $host_os in
18991 aix3*)
18992 cat <<\_LT_EOF >> "$cfgfile"
18993 # AIX sometimes has problems with the GCC collect2 program. For some
18994 # reason, if we set the COLLECT_NAMES environment variable, the problems
18995 # vanish in a puff of smoke.
18996 if test "X${COLLECT_NAMES+set}" != Xset; then
18997 COLLECT_NAMES=
18998 export COLLECT_NAMES
19000 _LT_EOF
19002 esac
19005 ltmain="$ac_aux_dir/ltmain.sh"
19008 # We use sed instead of cat because bash on DJGPP gets confused if
19009 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19010 # text mode, it properly converts lines to CR/LF. This bash problem
19011 # is reportedly fixed, but why not run on old versions too?
19012 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19013 || (rm -f "$cfgfile"; exit 1)
19015 case $xsi_shell in
19016 yes)
19017 cat << \_LT_EOF >> "$cfgfile"
19019 # func_dirname file append nondir_replacement
19020 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19021 # otherwise set result to NONDIR_REPLACEMENT.
19022 func_dirname ()
19024 case ${1} in
19025 */*) func_dirname_result="${1%/*}${2}" ;;
19026 * ) func_dirname_result="${3}" ;;
19027 esac
19030 # func_basename file
19031 func_basename ()
19033 func_basename_result="${1##*/}"
19036 # func_dirname_and_basename file append nondir_replacement
19037 # perform func_basename and func_dirname in a single function
19038 # call:
19039 # dirname: Compute the dirname of FILE. If nonempty,
19040 # add APPEND to the result, otherwise set result
19041 # to NONDIR_REPLACEMENT.
19042 # value returned in "$func_dirname_result"
19043 # basename: Compute filename of FILE.
19044 # value retuned in "$func_basename_result"
19045 # Implementation must be kept synchronized with func_dirname
19046 # and func_basename. For efficiency, we do not delegate to
19047 # those functions but instead duplicate the functionality here.
19048 func_dirname_and_basename ()
19050 case ${1} in
19051 */*) func_dirname_result="${1%/*}${2}" ;;
19052 * ) func_dirname_result="${3}" ;;
19053 esac
19054 func_basename_result="${1##*/}"
19057 # func_stripname prefix suffix name
19058 # strip PREFIX and SUFFIX off of NAME.
19059 # PREFIX and SUFFIX must not contain globbing or regex special
19060 # characters, hashes, percent signs, but SUFFIX may contain a leading
19061 # dot (in which case that matches only a dot).
19062 func_stripname ()
19064 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19065 # positional parameters, so assign one to ordinary parameter first.
19066 func_stripname_result=${3}
19067 func_stripname_result=${func_stripname_result#"${1}"}
19068 func_stripname_result=${func_stripname_result%"${2}"}
19071 # func_opt_split
19072 func_opt_split ()
19074 func_opt_split_opt=${1%%=*}
19075 func_opt_split_arg=${1#*=}
19078 # func_lo2o object
19079 func_lo2o ()
19081 case ${1} in
19082 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19083 *) func_lo2o_result=${1} ;;
19084 esac
19087 # func_xform libobj-or-source
19088 func_xform ()
19090 func_xform_result=${1%.*}.lo
19093 # func_arith arithmetic-term...
19094 func_arith ()
19096 func_arith_result=$(( $* ))
19099 # func_len string
19100 # STRING may not start with a hyphen.
19101 func_len ()
19103 func_len_result=${#1}
19106 _LT_EOF
19108 *) # Bourne compatible functions.
19109 cat << \_LT_EOF >> "$cfgfile"
19111 # func_dirname file append nondir_replacement
19112 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19113 # otherwise set result to NONDIR_REPLACEMENT.
19114 func_dirname ()
19116 # Extract subdirectory from the argument.
19117 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19118 if test "X$func_dirname_result" = "X${1}"; then
19119 func_dirname_result="${3}"
19120 else
19121 func_dirname_result="$func_dirname_result${2}"
19125 # func_basename file
19126 func_basename ()
19128 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19132 # func_stripname prefix suffix name
19133 # strip PREFIX and SUFFIX off of NAME.
19134 # PREFIX and SUFFIX must not contain globbing or regex special
19135 # characters, hashes, percent signs, but SUFFIX may contain a leading
19136 # dot (in which case that matches only a dot).
19137 # func_strip_suffix prefix name
19138 func_stripname ()
19140 case ${2} in
19141 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19142 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19143 esac
19146 # sed scripts:
19147 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19148 my_sed_long_arg='1s/^-[^=]*=//'
19150 # func_opt_split
19151 func_opt_split ()
19153 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19154 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19157 # func_lo2o object
19158 func_lo2o ()
19160 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19163 # func_xform libobj-or-source
19164 func_xform ()
19166 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19169 # func_arith arithmetic-term...
19170 func_arith ()
19172 func_arith_result=`expr "$@"`
19175 # func_len string
19176 # STRING may not start with a hyphen.
19177 func_len ()
19179 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19182 _LT_EOF
19183 esac
19185 case $lt_shell_append in
19186 yes)
19187 cat << \_LT_EOF >> "$cfgfile"
19189 # func_append var value
19190 # Append VALUE to the end of shell variable VAR.
19191 func_append ()
19193 eval "$1+=\$2"
19195 _LT_EOF
19198 cat << \_LT_EOF >> "$cfgfile"
19200 # func_append var value
19201 # Append VALUE to the end of shell variable VAR.
19202 func_append ()
19204 eval "$1=\$$1\$2"
19207 _LT_EOF
19209 esac
19212 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19213 || (rm -f "$cfgfile"; exit 1)
19215 mv -f "$cfgfile" "$ofile" ||
19216 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19217 chmod +x "$ofile"
19220 cat <<_LT_EOF >> "$ofile"
19222 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19224 # The linker used to build libraries.
19225 LD=$lt_LD_CXX
19227 # How to create reloadable object files.
19228 reload_flag=$lt_reload_flag_CXX
19229 reload_cmds=$lt_reload_cmds_CXX
19231 # Commands used to build an old-style archive.
19232 old_archive_cmds=$lt_old_archive_cmds_CXX
19234 # A language specific compiler.
19235 CC=$lt_compiler_CXX
19237 # Is the compiler the GNU compiler?
19238 with_gcc=$GCC_CXX
19240 # Compiler flag to turn off builtin functions.
19241 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19243 # How to pass a linker flag through the compiler.
19244 wl=$lt_lt_prog_compiler_wl_CXX
19246 # Additional compiler flags for building library objects.
19247 pic_flag=$lt_lt_prog_compiler_pic_CXX
19249 # Compiler flag to prevent dynamic linking.
19250 link_static_flag=$lt_lt_prog_compiler_static_CXX
19252 # Does compiler simultaneously support -c and -o options?
19253 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19255 # Whether or not to add -lc for building shared libraries.
19256 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19258 # Whether or not to disallow shared libs when runtime libs are static.
19259 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19261 # Compiler flag to allow reflexive dlopens.
19262 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19264 # Compiler flag to generate shared objects directly from archives.
19265 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19267 # Whether the compiler copes with passing no objects directly.
19268 compiler_needs_object=$lt_compiler_needs_object_CXX
19270 # Create an old-style archive from a shared archive.
19271 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19273 # Create a temporary old-style archive to link instead of a shared archive.
19274 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19276 # Commands used to build a shared archive.
19277 archive_cmds=$lt_archive_cmds_CXX
19278 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19280 # Commands used to build a loadable module if different from building
19281 # a shared archive.
19282 module_cmds=$lt_module_cmds_CXX
19283 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19285 # Whether we are building with GNU ld or not.
19286 with_gnu_ld=$lt_with_gnu_ld_CXX
19288 # Flag that allows shared libraries with undefined symbols to be built.
19289 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19291 # Flag that enforces no undefined symbols.
19292 no_undefined_flag=$lt_no_undefined_flag_CXX
19294 # Flag to hardcode \$libdir into a binary during linking.
19295 # This must work even if \$libdir does not exist
19296 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19298 # If ld is used when linking, flag to hardcode \$libdir into a binary
19299 # during linking. This must work even if \$libdir does not exist.
19300 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19302 # Whether we need a single "-rpath" flag with a separated argument.
19303 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19305 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19306 # DIR into the resulting binary.
19307 hardcode_direct=$hardcode_direct_CXX
19309 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19310 # DIR into the resulting binary and the resulting library dependency is
19311 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19312 # library is relocated.
19313 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19315 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19316 # into the resulting binary.
19317 hardcode_minus_L=$hardcode_minus_L_CXX
19319 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19320 # into the resulting binary.
19321 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19323 # Set to "yes" if building a shared library automatically hardcodes DIR
19324 # into the library and all subsequent libraries and executables linked
19325 # against it.
19326 hardcode_automatic=$hardcode_automatic_CXX
19328 # Set to yes if linker adds runtime paths of dependent libraries
19329 # to runtime path list.
19330 inherit_rpath=$inherit_rpath_CXX
19332 # Whether libtool must link a program against all its dependency libraries.
19333 link_all_deplibs=$link_all_deplibs_CXX
19335 # Fix the shell variable \$srcfile for the compiler.
19336 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19338 # Set to "yes" if exported symbols are required.
19339 always_export_symbols=$always_export_symbols_CXX
19341 # The commands to list exported symbols.
19342 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19344 # Symbols that should not be listed in the preloaded symbols.
19345 exclude_expsyms=$lt_exclude_expsyms_CXX
19347 # Symbols that must always be exported.
19348 include_expsyms=$lt_include_expsyms_CXX
19350 # Commands necessary for linking programs (against libraries) with templates.
19351 prelink_cmds=$lt_prelink_cmds_CXX
19353 # Specify filename containing input files.
19354 file_list_spec=$lt_file_list_spec_CXX
19356 # How to hardcode a shared library path into an executable.
19357 hardcode_action=$hardcode_action_CXX
19359 # The directories searched by this compiler when creating a shared library.
19360 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19362 # Dependencies to place before and after the objects being linked to
19363 # create a shared library.
19364 predep_objects=$lt_predep_objects_CXX
19365 postdep_objects=$lt_postdep_objects_CXX
19366 predeps=$lt_predeps_CXX
19367 postdeps=$lt_postdeps_CXX
19369 # The library search path used internally by the compiler when linking
19370 # a shared library.
19371 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19373 # ### END LIBTOOL TAG CONFIG: CXX
19374 _LT_EOF
19377 "include":C) test -d include || mkdir include ;;
19378 "src":C)
19379 test -d src || mkdir src
19380 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
19383 esac
19384 done # for ac_tag
19387 as_fn_exit 0
19388 _ACEOF
19389 ac_clean_files=$ac_clean_files_save
19391 test $ac_write_fail = 0 ||
19392 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19395 # configure is writing to config.log, and then calls config.status.
19396 # config.status does its own redirection, appending to config.log.
19397 # Unfortunately, on DOS this fails, as config.log is still kept open
19398 # by configure, so config.status won't be able to write to it; its
19399 # output is simply discarded. So we exec the FD to /dev/null,
19400 # effectively closing config.log, so it can be properly (re)opened and
19401 # appended to by config.status. When coming back to configure, we
19402 # need to make the FD available again.
19403 if test "$no_create" != yes; then
19404 ac_cs_success=:
19405 ac_config_status_args=
19406 test "$silent" = yes &&
19407 ac_config_status_args="$ac_config_status_args --quiet"
19408 exec 5>/dev/null
19409 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19410 exec 5>>config.log
19411 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19412 # would make configure fail if this is the last instruction.
19413 $ac_cs_success || as_fn_exit 1
19415 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19417 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}