Daily bump.
[official-gcc.git] / libffi / configure
blob8d52ec4f4952898ed31a4a5418236e721df28196
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libffi 3.99999.
5 # Report bugs to <http://github.com/atgreen/libffi/issues>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://github.com/atgreen/libffi/issues about your
279 $0: system, including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
283 exit 1
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
301 { eval $1=; unset $1;}
303 as_unset=as_fn_unset
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
310 return $1
311 } # as_fn_set_status
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
354 /^X\(\/\/\)$/{
355 s//\1/
358 /^X\(\/\).*/{
359 s//\1/
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369 } # as_fn_mkdir_p
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
387 eval $1+=\$2
389 else
390 as_fn_append ()
392 eval $1=\$$1\$2
394 fi # as_fn_append
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
404 as_val=$(( $* ))
406 else
407 as_fn_arith ()
409 as_val=`expr "$@" || test $? -eq 1`
411 fi # as_fn_arith
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
458 /^X\/\(\/\/\)$/{
459 s//\1/
462 /^X\/\(\/\).*/{
463 s//\1/
466 s/.*/./; q'`
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
489 :lineno
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
521 ECHO_N='-n';;
522 esac
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
545 else
546 as_ln_s='cp -pR'
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579 # Initializations.
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
590 # Identity of this package.
591 PACKAGE_NAME='libffi'
592 PACKAGE_TARNAME='libffi'
593 PACKAGE_VERSION='3.99999'
594 PACKAGE_STRING='libffi 3.99999'
595 PACKAGE_BUGREPORT='http://github.com/atgreen/libffi/issues'
596 PACKAGE_URL=''
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 get_gcc_base_ver
639 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE
640 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE
641 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE
642 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE
643 LIBAT_BUILD_VERSIONED_SHLIB_FALSE
644 LIBAT_BUILD_VERSIONED_SHLIB_TRUE
645 OPT_LDFLAGS
646 SECTION_LDFLAGS
647 toolexeclibdir
648 toolexecdir
649 FFI_DEBUG_FALSE
650 FFI_DEBUG_TRUE
651 TARGET_OBJ
652 TARGETDIR
653 TARGET
654 FFI_EXEC_TRAMPOLINE_TABLE
655 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
656 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
657 HAVE_LONG_DOUBLE_VARIANT
658 HAVE_LONG_DOUBLE
659 ALLOCA
660 AM_LTLDFLAGS
661 AM_RUNTESTFLAGS
662 TESTSUBDIR_FALSE
663 TESTSUBDIR_TRUE
664 MAINT
665 MAINTAINER_MODE_FALSE
666 MAINTAINER_MODE_TRUE
667 CXXCPP
669 OTOOL64
670 OTOOL
671 LIPO
672 NMEDIT
673 DSYMUTIL
674 RANLIB
676 OBJDUMP
677 LN_S
679 ac_ct_DUMPBIN
680 DUMPBIN
682 FGREP
683 EGREP
684 GREP
686 LIBTOOL
687 am__fastdepCCAS_FALSE
688 am__fastdepCCAS_TRUE
689 CCASDEPMODE
690 CCASFLAGS
691 CCAS
692 am__fastdepCXX_FALSE
693 am__fastdepCXX_TRUE
694 CXXDEPMODE
695 ac_ct_CXX
696 CXXFLAGS
698 am__fastdepCC_FALSE
699 am__fastdepCC_TRUE
700 CCDEPMODE
701 am__nodep
702 AMDEPBACKSLASH
703 AMDEP_FALSE
704 AMDEP_TRUE
705 am__quote
706 am__include
707 DEPDIR
708 OBJEXT
709 EXEEXT
710 ac_ct_CC
711 CPPFLAGS
712 LDFLAGS
713 CFLAGS
715 GENINSRC_FALSE
716 GENINSRC_TRUE
717 BUILD_INFO_FALSE
718 BUILD_INFO_TRUE
719 AM_BACKSLASH
720 AM_DEFAULT_VERBOSITY
721 AM_DEFAULT_V
722 AM_V
723 am__untar
724 am__tar
725 AMTAR
726 am__leading_dot
727 SET_MAKE
729 mkdir_p
730 MKDIR_P
731 INSTALL_STRIP_PROGRAM
732 STRIP
733 install_sh
734 MAKEINFO
735 AUTOHEADER
736 AUTOMAKE
737 AUTOCONF
738 ACLOCAL
739 VERSION
740 PACKAGE
741 CYGPATH_W
742 am__isrc
743 INSTALL_DATA
744 INSTALL_SCRIPT
745 INSTALL_PROGRAM
746 target_os
747 target_vendor
748 target_cpu
749 target
750 host_os
751 host_vendor
752 host_cpu
753 host
754 build_os
755 build_vendor
756 build_cpu
757 build
758 multi_basedir
759 target_alias
760 host_alias
761 build_alias
762 LIBS
763 ECHO_T
764 ECHO_N
765 ECHO_C
766 DEFS
767 mandir
768 localedir
769 libdir
770 psdir
771 pdfdir
772 dvidir
773 htmldir
774 infodir
775 docdir
776 oldincludedir
777 includedir
778 localstatedir
779 sharedstatedir
780 sysconfdir
781 datadir
782 datarootdir
783 libexecdir
784 sbindir
785 bindir
786 program_transform_name
787 prefix
788 exec_prefix
789 PACKAGE_URL
790 PACKAGE_BUGREPORT
791 PACKAGE_STRING
792 PACKAGE_VERSION
793 PACKAGE_TARNAME
794 PACKAGE_NAME
795 PATH_SEPARATOR
796 SHELL'
797 ac_subst_files=''
798 ac_user_opts='
799 enable_option_checking
800 enable_multilib
801 enable_silent_rules
802 enable_generated_files_in_srcdir
803 enable_dependency_tracking
804 enable_shared
805 enable_static
806 with_pic
807 enable_fast_install
808 with_gnu_ld
809 enable_libtool_lock
810 enable_maintainer_mode
811 enable_pax_emutramp
812 enable_debug
813 enable_structs
814 enable_raw_api
815 enable_purify_safety
816 with_toolexeclibdir
817 enable_symvers
818 with_gcc_major_version_only
820 ac_precious_vars='build_alias
821 host_alias
822 target_alias
823 CCAS
824 CCASFLAGS
826 CPPFLAGS
827 CXXCPP'
830 # Initialize some variables set by options.
831 ac_init_help=
832 ac_init_version=false
833 ac_unrecognized_opts=
834 ac_unrecognized_sep=
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
837 cache_file=/dev/null
838 exec_prefix=NONE
839 no_create=
840 no_recursion=
841 prefix=NONE
842 program_prefix=NONE
843 program_suffix=NONE
844 program_transform_name=s,x,x,
845 silent=
846 site=
847 srcdir=
848 verbose=
849 x_includes=NONE
850 x_libraries=NONE
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir='${exec_prefix}/bin'
859 sbindir='${exec_prefix}/sbin'
860 libexecdir='${exec_prefix}/libexec'
861 datarootdir='${prefix}/share'
862 datadir='${datarootdir}'
863 sysconfdir='${prefix}/etc'
864 sharedstatedir='${prefix}/com'
865 localstatedir='${prefix}/var'
866 includedir='${prefix}/include'
867 oldincludedir='/usr/include'
868 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869 infodir='${datarootdir}/info'
870 htmldir='${docdir}'
871 dvidir='${docdir}'
872 pdfdir='${docdir}'
873 psdir='${docdir}'
874 libdir='${exec_prefix}/lib'
875 localedir='${datarootdir}/locale'
876 mandir='${datarootdir}/man'
878 ac_prev=
879 ac_dashdash=
880 for ac_option
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
884 eval $ac_prev=\$ac_option
885 ac_prev=
886 continue
889 case $ac_option in
890 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891 *=) ac_optarg= ;;
892 *) ac_optarg=yes ;;
893 esac
895 # Accept the important Cygnus configure options, so we can diagnose typos.
897 case $ac_dashdash$ac_option in
899 ac_dashdash=yes ;;
901 -bindir | --bindir | --bindi | --bind | --bin | --bi)
902 ac_prev=bindir ;;
903 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
904 bindir=$ac_optarg ;;
906 -build | --build | --buil | --bui | --bu)
907 ac_prev=build_alias ;;
908 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909 build_alias=$ac_optarg ;;
911 -cache-file | --cache-file | --cache-fil | --cache-fi \
912 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913 ac_prev=cache_file ;;
914 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916 cache_file=$ac_optarg ;;
918 --config-cache | -C)
919 cache_file=config.cache ;;
921 -datadir | --datadir | --datadi | --datad)
922 ac_prev=datadir ;;
923 -datadir=* | --datadir=* | --datadi=* | --datad=*)
924 datadir=$ac_optarg ;;
926 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927 | --dataroo | --dataro | --datar)
928 ac_prev=datarootdir ;;
929 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931 datarootdir=$ac_optarg ;;
933 -disable-* | --disable-*)
934 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937 as_fn_error $? "invalid feature name: $ac_useropt"
938 ac_useropt_orig=$ac_useropt
939 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940 case $ac_user_opts in
942 "enable_$ac_useropt"
943 "*) ;;
944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
945 ac_unrecognized_sep=', ';;
946 esac
947 eval enable_$ac_useropt=no ;;
949 -docdir | --docdir | --docdi | --doc | --do)
950 ac_prev=docdir ;;
951 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
952 docdir=$ac_optarg ;;
954 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
955 ac_prev=dvidir ;;
956 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
957 dvidir=$ac_optarg ;;
959 -enable-* | --enable-*)
960 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963 as_fn_error $? "invalid feature name: $ac_useropt"
964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
968 "enable_$ac_useropt"
969 "*) ;;
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
972 esac
973 eval enable_$ac_useropt=\$ac_optarg ;;
975 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
976 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
977 | --exec | --exe | --ex)
978 ac_prev=exec_prefix ;;
979 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
980 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
981 | --exec=* | --exe=* | --ex=*)
982 exec_prefix=$ac_optarg ;;
984 -gas | --gas | --ga | --g)
985 # Obsolete; use --with-gas.
986 with_gas=yes ;;
988 -help | --help | --hel | --he | -h)
989 ac_init_help=long ;;
990 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
991 ac_init_help=recursive ;;
992 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
993 ac_init_help=short ;;
995 -host | --host | --hos | --ho)
996 ac_prev=host_alias ;;
997 -host=* | --host=* | --hos=* | --ho=*)
998 host_alias=$ac_optarg ;;
1000 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1001 ac_prev=htmldir ;;
1002 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1003 | --ht=*)
1004 htmldir=$ac_optarg ;;
1006 -includedir | --includedir | --includedi | --included | --include \
1007 | --includ | --inclu | --incl | --inc)
1008 ac_prev=includedir ;;
1009 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1010 | --includ=* | --inclu=* | --incl=* | --inc=*)
1011 includedir=$ac_optarg ;;
1013 -infodir | --infodir | --infodi | --infod | --info | --inf)
1014 ac_prev=infodir ;;
1015 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1016 infodir=$ac_optarg ;;
1018 -libdir | --libdir | --libdi | --libd)
1019 ac_prev=libdir ;;
1020 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1021 libdir=$ac_optarg ;;
1023 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1024 | --libexe | --libex | --libe)
1025 ac_prev=libexecdir ;;
1026 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1027 | --libexe=* | --libex=* | --libe=*)
1028 libexecdir=$ac_optarg ;;
1030 -localedir | --localedir | --localedi | --localed | --locale)
1031 ac_prev=localedir ;;
1032 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1033 localedir=$ac_optarg ;;
1035 -localstatedir | --localstatedir | --localstatedi | --localstated \
1036 | --localstate | --localstat | --localsta | --localst | --locals)
1037 ac_prev=localstatedir ;;
1038 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1039 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1040 localstatedir=$ac_optarg ;;
1042 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1043 ac_prev=mandir ;;
1044 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1045 mandir=$ac_optarg ;;
1047 -nfp | --nfp | --nf)
1048 # Obsolete; use --without-fp.
1049 with_fp=no ;;
1051 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1052 | --no-cr | --no-c | -n)
1053 no_create=yes ;;
1055 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1056 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1057 no_recursion=yes ;;
1059 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1060 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1061 | --oldin | --oldi | --old | --ol | --o)
1062 ac_prev=oldincludedir ;;
1063 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1064 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1065 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1066 oldincludedir=$ac_optarg ;;
1068 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1069 ac_prev=prefix ;;
1070 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1071 prefix=$ac_optarg ;;
1073 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1074 | --program-pre | --program-pr | --program-p)
1075 ac_prev=program_prefix ;;
1076 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1077 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1078 program_prefix=$ac_optarg ;;
1080 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1081 | --program-suf | --program-su | --program-s)
1082 ac_prev=program_suffix ;;
1083 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1084 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1085 program_suffix=$ac_optarg ;;
1087 -program-transform-name | --program-transform-name \
1088 | --program-transform-nam | --program-transform-na \
1089 | --program-transform-n | --program-transform- \
1090 | --program-transform | --program-transfor \
1091 | --program-transfo | --program-transf \
1092 | --program-trans | --program-tran \
1093 | --progr-tra | --program-tr | --program-t)
1094 ac_prev=program_transform_name ;;
1095 -program-transform-name=* | --program-transform-name=* \
1096 | --program-transform-nam=* | --program-transform-na=* \
1097 | --program-transform-n=* | --program-transform-=* \
1098 | --program-transform=* | --program-transfor=* \
1099 | --program-transfo=* | --program-transf=* \
1100 | --program-trans=* | --program-tran=* \
1101 | --progr-tra=* | --program-tr=* | --program-t=*)
1102 program_transform_name=$ac_optarg ;;
1104 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1105 ac_prev=pdfdir ;;
1106 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1107 pdfdir=$ac_optarg ;;
1109 -psdir | --psdir | --psdi | --psd | --ps)
1110 ac_prev=psdir ;;
1111 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1112 psdir=$ac_optarg ;;
1114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1115 | -silent | --silent | --silen | --sile | --sil)
1116 silent=yes ;;
1118 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1119 ac_prev=sbindir ;;
1120 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1121 | --sbi=* | --sb=*)
1122 sbindir=$ac_optarg ;;
1124 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1125 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1126 | --sharedst | --shareds | --shared | --share | --shar \
1127 | --sha | --sh)
1128 ac_prev=sharedstatedir ;;
1129 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1130 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1131 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1132 | --sha=* | --sh=*)
1133 sharedstatedir=$ac_optarg ;;
1135 -site | --site | --sit)
1136 ac_prev=site ;;
1137 -site=* | --site=* | --sit=*)
1138 site=$ac_optarg ;;
1140 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1141 ac_prev=srcdir ;;
1142 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1143 srcdir=$ac_optarg ;;
1145 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1146 | --syscon | --sysco | --sysc | --sys | --sy)
1147 ac_prev=sysconfdir ;;
1148 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1149 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1150 sysconfdir=$ac_optarg ;;
1152 -target | --target | --targe | --targ | --tar | --ta | --t)
1153 ac_prev=target_alias ;;
1154 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1155 target_alias=$ac_optarg ;;
1157 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1158 verbose=yes ;;
1160 -version | --version | --versio | --versi | --vers | -V)
1161 ac_init_version=: ;;
1163 -with-* | --with-*)
1164 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error $? "invalid package name: $ac_useropt"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1172 "with_$ac_useropt"
1173 "*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1176 esac
1177 eval with_$ac_useropt=\$ac_optarg ;;
1179 -without-* | --without-*)
1180 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error $? "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1188 "with_$ac_useropt"
1189 "*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1192 esac
1193 eval with_$ac_useropt=no ;;
1195 --x)
1196 # Obsolete; use --with-x.
1197 with_x=yes ;;
1199 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1200 | --x-incl | --x-inc | --x-in | --x-i)
1201 ac_prev=x_includes ;;
1202 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1203 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1204 x_includes=$ac_optarg ;;
1206 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1207 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1208 ac_prev=x_libraries ;;
1209 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1210 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1211 x_libraries=$ac_optarg ;;
1213 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1214 Try \`$0 --help' for more information"
1217 *=*)
1218 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1219 # Reject names that are not valid shell variable names.
1220 case $ac_envvar in #(
1221 '' | [0-9]* | *[!_$as_cr_alnum]* )
1222 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1223 esac
1224 eval $ac_envvar=\$ac_optarg
1225 export $ac_envvar ;;
1228 # FIXME: should be removed in autoconf 3.0.
1229 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1230 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1232 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1235 esac
1236 done
1238 if test -n "$ac_prev"; then
1239 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1240 as_fn_error $? "missing argument to $ac_option"
1243 if test -n "$ac_unrecognized_opts"; then
1244 case $enable_option_checking in
1245 no) ;;
1246 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1247 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1248 esac
1251 # Check all directory arguments for consistency.
1252 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1253 datadir sysconfdir sharedstatedir localstatedir includedir \
1254 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1255 libdir localedir mandir
1257 eval ac_val=\$$ac_var
1258 # Remove trailing slashes.
1259 case $ac_val in
1260 */ )
1261 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1262 eval $ac_var=\$ac_val;;
1263 esac
1264 # Be sure to have absolute directory names.
1265 case $ac_val in
1266 [\\/$]* | ?:[\\/]* ) continue;;
1267 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1268 esac
1269 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1270 done
1272 # There might be people who depend on the old broken behavior: `$host'
1273 # used to hold the argument of --host etc.
1274 # FIXME: To remove some day.
1275 build=$build_alias
1276 host=$host_alias
1277 target=$target_alias
1279 # FIXME: To remove some day.
1280 if test "x$host_alias" != x; then
1281 if test "x$build_alias" = x; then
1282 cross_compiling=maybe
1283 elif test "x$build_alias" != "x$host_alias"; then
1284 cross_compiling=yes
1288 ac_tool_prefix=
1289 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291 test "$silent" = yes && exec 6>/dev/null
1294 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1295 ac_ls_di=`ls -di .` &&
1296 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1297 as_fn_error $? "working directory cannot be determined"
1298 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1299 as_fn_error $? "pwd does not report name of working directory"
1302 # Find the source files, if location was not specified.
1303 if test -z "$srcdir"; then
1304 ac_srcdir_defaulted=yes
1305 # Try the directory containing this script, then the parent directory.
1306 ac_confdir=`$as_dirname -- "$as_myself" ||
1307 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1308 X"$as_myself" : 'X\(//\)[^/]' \| \
1309 X"$as_myself" : 'X\(//\)$' \| \
1310 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1311 $as_echo X"$as_myself" |
1312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1313 s//\1/
1316 /^X\(\/\/\)[^/].*/{
1317 s//\1/
1320 /^X\(\/\/\)$/{
1321 s//\1/
1324 /^X\(\/\).*/{
1325 s//\1/
1328 s/.*/./; q'`
1329 srcdir=$ac_confdir
1330 if test ! -r "$srcdir/$ac_unique_file"; then
1331 srcdir=..
1333 else
1334 ac_srcdir_defaulted=no
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1337 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1338 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1340 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1341 ac_abs_confdir=`(
1342 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1343 pwd)`
1344 # When building in place, set srcdir=.
1345 if test "$ac_abs_confdir" = "$ac_pwd"; then
1346 srcdir=.
1348 # Remove unnecessary trailing slashes from srcdir.
1349 # Double slashes in file names in object file debugging info
1350 # mess up M-x gdb in Emacs.
1351 case $srcdir in
1352 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1353 esac
1354 for ac_var in $ac_precious_vars; do
1355 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1356 eval ac_env_${ac_var}_value=\$${ac_var}
1357 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1359 done
1362 # Report the --help message.
1364 if test "$ac_init_help" = "long"; then
1365 # Omit some internal or obsolete options to make the list less imposing.
1366 # This message is too long to be a string in the A/UX 3.1 sh.
1367 cat <<_ACEOF
1368 \`configure' configures libffi 3.99999 to adapt to many kinds of systems.
1370 Usage: $0 [OPTION]... [VAR=VALUE]...
1372 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1373 VAR=VALUE. See below for descriptions of some of the useful variables.
1375 Defaults for the options are specified in brackets.
1377 Configuration:
1378 -h, --help display this help and exit
1379 --help=short display options specific to this package
1380 --help=recursive display the short help of all the included packages
1381 -V, --version display version information and exit
1382 -q, --quiet, --silent do not print \`checking ...' messages
1383 --cache-file=FILE cache test results in FILE [disabled]
1384 -C, --config-cache alias for \`--cache-file=config.cache'
1385 -n, --no-create do not create output files
1386 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1388 Installation directories:
1389 --prefix=PREFIX install architecture-independent files in PREFIX
1390 [$ac_default_prefix]
1391 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1392 [PREFIX]
1394 By default, \`make install' will install all the files in
1395 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1396 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1397 for instance \`--prefix=\$HOME'.
1399 For better control, use the options below.
1401 Fine tuning of the installation directories:
1402 --bindir=DIR user executables [EPREFIX/bin]
1403 --sbindir=DIR system admin executables [EPREFIX/sbin]
1404 --libexecdir=DIR program executables [EPREFIX/libexec]
1405 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1406 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1407 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1408 --libdir=DIR object code libraries [EPREFIX/lib]
1409 --includedir=DIR C header files [PREFIX/include]
1410 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1411 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1412 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1413 --infodir=DIR info documentation [DATAROOTDIR/info]
1414 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1415 --mandir=DIR man documentation [DATAROOTDIR/man]
1416 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1417 --htmldir=DIR html documentation [DOCDIR]
1418 --dvidir=DIR dvi documentation [DOCDIR]
1419 --pdfdir=DIR pdf documentation [DOCDIR]
1420 --psdir=DIR ps documentation [DOCDIR]
1421 _ACEOF
1423 cat <<\_ACEOF
1425 Program names:
1426 --program-prefix=PREFIX prepend PREFIX to installed program names
1427 --program-suffix=SUFFIX append SUFFIX to installed program names
1428 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1430 System types:
1431 --build=BUILD configure for building on BUILD [guessed]
1432 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1433 --target=TARGET configure for building compilers for TARGET [HOST]
1434 _ACEOF
1437 if test -n "$ac_init_help"; then
1438 case $ac_init_help in
1439 short | recursive ) echo "Configuration of libffi 3.99999:";;
1440 esac
1441 cat <<\_ACEOF
1443 Optional Features:
1444 --disable-option-checking ignore unrecognized --enable/--with options
1445 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1446 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1447 --enable-multilib build many library versions (default)
1448 --enable-silent-rules less verbose build output (undo: "make V=1")
1449 --disable-silent-rules verbose build output (undo: "make V=0")
1450 --enable-generated-files-in-srcdir
1451 put copies of generated files in source dir intended
1452 for creating source tarballs for users without
1453 texinfo bison or flex
1454 --enable-dependency-tracking
1455 do not reject slow dependency extractors
1456 --disable-dependency-tracking
1457 speeds up one-time build
1458 --enable-shared[=PKGS] build shared libraries [default=yes]
1459 --enable-static[=PKGS] build static libraries [default=yes]
1460 --enable-fast-install[=PKGS]
1461 optimize for fast installation [default=yes]
1462 --disable-libtool-lock avoid locking (might break parallel builds)
1463 --enable-maintainer-mode
1464 enable make rules and dependencies not useful (and
1465 sometimes confusing) to the casual installer
1466 --enable-pax_emutramp enable pax emulated trampolines, for we can't use PROT_EXEC
1467 --enable-debug debugging mode
1468 --disable-structs omit code for struct support
1469 --disable-raw-api make the raw api unavailable
1470 --enable-purify-safety purify-safe mode
1471 --enable-symvers=STYLE enables symbol versioning of the shared library
1472 [default=yes]
1474 Optional Packages:
1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1477 --with-pic try to use only PIC/non-PIC objects [default=use
1478 both]
1479 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1480 --with-toolexeclibdir=DIR
1481 install libraries built with a cross compiler within
1483 --with-gcc-major-version-only
1484 use only GCC major number in filesystem paths
1486 Some influential environment variables:
1487 CC C compiler command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1490 nonstandard directory <lib dir>
1491 LIBS libraries to pass to the linker, e.g. -l<library>
1492 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1493 you have headers in a nonstandard directory <include dir>
1494 CXX C++ compiler command
1495 CXXFLAGS C++ compiler flags
1496 CCAS assembler compiler command (defaults to CC)
1497 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1498 CPP C preprocessor
1499 CXXCPP C++ preprocessor
1501 Use these variables to override the choices made by `configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1504 Report bugs to <http://github.com/atgreen/libffi/issues>.
1505 _ACEOF
1506 ac_status=$?
1509 if test "$ac_init_help" = "recursive"; then
1510 # If there are subdirs, report their specific --help.
1511 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1512 test -d "$ac_dir" ||
1513 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1514 continue
1515 ac_builddir=.
1517 case "$ac_dir" in
1518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1521 # A ".." for each directory in $ac_dir_suffix.
1522 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1523 case $ac_top_builddir_sub in
1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526 esac ;;
1527 esac
1528 ac_abs_top_builddir=$ac_pwd
1529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530 # for backward compatibility:
1531 ac_top_builddir=$ac_top_build_prefix
1533 case $srcdir in
1534 .) # We are building in place.
1535 ac_srcdir=.
1536 ac_top_srcdir=$ac_top_builddir_sub
1537 ac_abs_top_srcdir=$ac_pwd ;;
1538 [\\/]* | ?:[\\/]* ) # Absolute name.
1539 ac_srcdir=$srcdir$ac_dir_suffix;
1540 ac_top_srcdir=$srcdir
1541 ac_abs_top_srcdir=$srcdir ;;
1542 *) # Relative name.
1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544 ac_top_srcdir=$ac_top_build_prefix$srcdir
1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546 esac
1547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549 cd "$ac_dir" || { ac_status=$?; continue; }
1550 # Check for guested configure.
1551 if test -f "$ac_srcdir/configure.gnu"; then
1552 echo &&
1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554 elif test -f "$ac_srcdir/configure"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure" --help=recursive
1557 else
1558 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559 fi || ac_status=$?
1560 cd "$ac_pwd" || { ac_status=$?; break; }
1561 done
1564 test -n "$ac_init_help" && exit $ac_status
1565 if $ac_init_version; then
1566 cat <<\_ACEOF
1567 libffi configure 3.99999
1568 generated by GNU Autoconf 2.69
1570 Copyright (C) 2012 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1573 _ACEOF
1574 exit
1577 ## ------------------------ ##
1578 ## Autoconf initialization. ##
1579 ## ------------------------ ##
1581 # ac_fn_c_try_compile LINENO
1582 # --------------------------
1583 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_compile ()
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 rm -f conftest.$ac_objext
1588 if { { ac_try="$ac_compile"
1589 case "(($ac_try" in
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1592 esac
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_compile") 2>conftest.err
1596 ac_status=$?
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } && {
1604 test -z "$ac_c_werror_flag" ||
1605 test ! -s conftest.err
1606 } && test -s conftest.$ac_objext; then :
1607 ac_retval=0
1608 else
1609 $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1612 ac_retval=1
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 as_fn_set_status $ac_retval
1617 } # ac_fn_c_try_compile
1619 # ac_fn_cxx_try_compile LINENO
1620 # ----------------------------
1621 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1622 ac_fn_cxx_try_compile ()
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 rm -f conftest.$ac_objext
1626 if { { ac_try="$ac_compile"
1627 case "(($ac_try" in
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1630 esac
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_compile") 2>conftest.err
1634 ac_status=$?
1635 if test -s conftest.err; then
1636 grep -v '^ *+' conftest.err >conftest.er1
1637 cat conftest.er1 >&5
1638 mv -f conftest.er1 conftest.err
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && {
1642 test -z "$ac_cxx_werror_flag" ||
1643 test ! -s conftest.err
1644 } && test -s conftest.$ac_objext; then :
1645 ac_retval=0
1646 else
1647 $as_echo "$as_me: failed program was:" >&5
1648 sed 's/^/| /' conftest.$ac_ext >&5
1650 ac_retval=1
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653 as_fn_set_status $ac_retval
1655 } # ac_fn_cxx_try_compile
1657 # ac_fn_c_try_link LINENO
1658 # -----------------------
1659 # Try to link conftest.$ac_ext, and return whether this succeeded.
1660 ac_fn_c_try_link ()
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 rm -f conftest.$ac_objext conftest$ac_exeext
1664 if { { ac_try="$ac_link"
1665 case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_link") 2>conftest.err
1672 ac_status=$?
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && {
1680 test -z "$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 } && test -s conftest$ac_exeext && {
1683 test "$cross_compiling" = yes ||
1684 test -x conftest$ac_exeext
1685 }; then :
1686 ac_retval=0
1687 else
1688 $as_echo "$as_me: failed program was:" >&5
1689 sed 's/^/| /' conftest.$ac_ext >&5
1691 ac_retval=1
1693 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1694 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1695 # interfere with the next link command; also delete a directory that is
1696 # left behind by Apple's compiler. We do this before executing the actions.
1697 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699 as_fn_set_status $ac_retval
1701 } # ac_fn_c_try_link
1703 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1704 # -------------------------------------------------------
1705 # Tests whether HEADER exists and can be compiled using the include files in
1706 # INCLUDES, setting the cache variable VAR accordingly.
1707 ac_fn_c_check_header_compile ()
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if eval \${$3+:} false; then :
1713 $as_echo_n "(cached) " >&6
1714 else
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h. */
1718 #include <$2>
1719 _ACEOF
1720 if ac_fn_c_try_compile "$LINENO"; then :
1721 eval "$3=yes"
1722 else
1723 eval "$3=no"
1725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1727 eval ac_res=\$$3
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729 $as_echo "$ac_res" >&6; }
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 } # ac_fn_c_check_header_compile
1734 # ac_fn_c_try_cpp LINENO
1735 # ----------------------
1736 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1737 ac_fn_c_try_cpp ()
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 if { { ac_try="$ac_cpp conftest.$ac_ext"
1741 case "(($ac_try" in
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1744 esac
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1748 ac_status=$?
1749 if test -s conftest.err; then
1750 grep -v '^ *+' conftest.err >conftest.er1
1751 cat conftest.er1 >&5
1752 mv -f conftest.er1 conftest.err
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } > conftest.i && {
1756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1757 test ! -s conftest.err
1758 }; then :
1759 ac_retval=0
1760 else
1761 $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1764 ac_retval=1
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 as_fn_set_status $ac_retval
1769 } # ac_fn_c_try_cpp
1771 # ac_fn_c_try_run LINENO
1772 # ----------------------
1773 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1774 # that executables *can* be run.
1775 ac_fn_c_try_run ()
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 if { { ac_try="$ac_link"
1779 case "(($ac_try" in
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1782 esac
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_link") 2>&5
1786 ac_status=$?
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1789 { { case "(($ac_try" in
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1792 esac
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_try") 2>&5
1796 ac_status=$?
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; }; }; then :
1799 ac_retval=0
1800 else
1801 $as_echo "$as_me: program exited with status $ac_status" >&5
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1805 ac_retval=$ac_status
1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 as_fn_set_status $ac_retval
1811 } # ac_fn_c_try_run
1813 # ac_fn_c_check_func LINENO FUNC VAR
1814 # ----------------------------------
1815 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1816 ac_fn_c_check_func ()
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \${$3+:} false; then :
1822 $as_echo_n "(cached) " >&6
1823 else
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1826 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1828 #define $2 innocuous_$2
1830 /* System header to define __stub macros and hopefully few prototypes,
1831 which can conflict with char $2 (); below.
1832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1833 <limits.h> exists even on freestanding compilers. */
1835 #ifdef __STDC__
1836 # include <limits.h>
1837 #else
1838 # include <assert.h>
1839 #endif
1841 #undef $2
1843 /* Override any GCC internal prototype to avoid an error.
1844 Use char because int might match the return type of a GCC
1845 builtin and then its argument prototype would still apply. */
1846 #ifdef __cplusplus
1847 extern "C"
1848 #endif
1849 char $2 ();
1850 /* The GNU C library defines this for functions which it implements
1851 to always fail with ENOSYS. Some functions are actually named
1852 something starting with __ and the normal name is an alias. */
1853 #if defined __stub_$2 || defined __stub___$2
1854 choke me
1855 #endif
1858 main ()
1860 return $2 ();
1862 return 0;
1864 _ACEOF
1865 if ac_fn_c_try_link "$LINENO"; then :
1866 eval "$3=yes"
1867 else
1868 eval "$3=no"
1870 rm -f core conftest.err conftest.$ac_objext \
1871 conftest$ac_exeext conftest.$ac_ext
1873 eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878 } # ac_fn_c_check_func
1880 # ac_fn_cxx_try_cpp LINENO
1881 # ------------------------
1882 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1883 ac_fn_cxx_try_cpp ()
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 if { { ac_try="$ac_cpp conftest.$ac_ext"
1887 case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890 esac
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1894 ac_status=$?
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } > conftest.i && {
1902 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1903 test ! -s conftest.err
1904 }; then :
1905 ac_retval=0
1906 else
1907 $as_echo "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1910 ac_retval=1
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 as_fn_set_status $ac_retval
1915 } # ac_fn_cxx_try_cpp
1917 # ac_fn_cxx_try_link LINENO
1918 # -------------------------
1919 # Try to link conftest.$ac_ext, and return whether this succeeded.
1920 ac_fn_cxx_try_link ()
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 rm -f conftest.$ac_objext conftest$ac_exeext
1924 if { { ac_try="$ac_link"
1925 case "(($ac_try" in
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1928 esac
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_link") 2>conftest.err
1932 ac_status=$?
1933 if test -s conftest.err; then
1934 grep -v '^ *+' conftest.err >conftest.er1
1935 cat conftest.er1 >&5
1936 mv -f conftest.er1 conftest.err
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; } && {
1940 test -z "$ac_cxx_werror_flag" ||
1941 test ! -s conftest.err
1942 } && test -s conftest$ac_exeext && {
1943 test "$cross_compiling" = yes ||
1944 test -x conftest$ac_exeext
1945 }; then :
1946 ac_retval=0
1947 else
1948 $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1951 ac_retval=1
1953 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1954 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1955 # interfere with the next link command; also delete a directory that is
1956 # left behind by Apple's compiler. We do this before executing the actions.
1957 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 as_fn_set_status $ac_retval
1961 } # ac_fn_cxx_try_link
1963 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1964 # --------------------------------------------
1965 # Tries to find the compile-time value of EXPR in a program that includes
1966 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1967 # computed
1968 ac_fn_c_compute_int ()
1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971 if test "$cross_compiling" = yes; then
1972 # Depending upon the size, compute the lo and hi bounds.
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1977 main ()
1979 static int test_array [1 - 2 * !(($2) >= 0)];
1980 test_array [0] = 0;
1981 return test_array [0];
1984 return 0;
1986 _ACEOF
1987 if ac_fn_c_try_compile "$LINENO"; then :
1988 ac_lo=0 ac_mid=0
1989 while :; do
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1994 main ()
1996 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1997 test_array [0] = 0;
1998 return test_array [0];
2001 return 0;
2003 _ACEOF
2004 if ac_fn_c_try_compile "$LINENO"; then :
2005 ac_hi=$ac_mid; break
2006 else
2007 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2008 if test $ac_lo -le $ac_mid; then
2009 ac_lo= ac_hi=
2010 break
2012 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015 done
2016 else
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2021 main ()
2023 static int test_array [1 - 2 * !(($2) < 0)];
2024 test_array [0] = 0;
2025 return test_array [0];
2028 return 0;
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032 ac_hi=-1 ac_mid=-1
2033 while :; do
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2038 main ()
2040 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2041 test_array [0] = 0;
2042 return test_array [0];
2045 return 0;
2047 _ACEOF
2048 if ac_fn_c_try_compile "$LINENO"; then :
2049 ac_lo=$ac_mid; break
2050 else
2051 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2052 if test $ac_mid -le $ac_hi; then
2053 ac_lo= ac_hi=
2054 break
2056 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059 done
2060 else
2061 ac_lo= ac_hi=
2063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066 # Binary search between lo and hi bounds.
2067 while test "x$ac_lo" != "x$ac_hi"; do
2068 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2073 main ()
2075 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2076 test_array [0] = 0;
2077 return test_array [0];
2080 return 0;
2082 _ACEOF
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084 ac_hi=$ac_mid
2085 else
2086 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089 done
2090 case $ac_lo in #((
2091 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2092 '') ac_retval=1 ;;
2093 esac
2094 else
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2098 static long int longval () { return $2; }
2099 static unsigned long int ulongval () { return $2; }
2100 #include <stdio.h>
2101 #include <stdlib.h>
2103 main ()
2106 FILE *f = fopen ("conftest.val", "w");
2107 if (! f)
2108 return 1;
2109 if (($2) < 0)
2111 long int i = longval ();
2112 if (i != ($2))
2113 return 1;
2114 fprintf (f, "%ld", i);
2116 else
2118 unsigned long int i = ulongval ();
2119 if (i != ($2))
2120 return 1;
2121 fprintf (f, "%lu", i);
2123 /* Do not output a trailing newline, as this causes \r\n confusion
2124 on some platforms. */
2125 return ferror (f) || fclose (f) != 0;
2128 return 0;
2130 _ACEOF
2131 if ac_fn_c_try_run "$LINENO"; then :
2132 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2133 else
2134 ac_retval=1
2136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2137 conftest.$ac_objext conftest.beam conftest.$ac_ext
2138 rm -f conftest.val
2141 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2142 as_fn_set_status $ac_retval
2144 } # ac_fn_c_compute_int
2146 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2147 # -------------------------------------------------------
2148 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2149 # the include files in INCLUDES and setting the cache variable VAR
2150 # accordingly.
2151 ac_fn_c_check_header_mongrel ()
2153 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2154 if eval \${$3+:} false; then :
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2156 $as_echo_n "checking for $2... " >&6; }
2157 if eval \${$3+:} false; then :
2158 $as_echo_n "(cached) " >&6
2160 eval ac_res=\$$3
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162 $as_echo "$ac_res" >&6; }
2163 else
2164 # Is the header compilable?
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2166 $as_echo_n "checking $2 usability... " >&6; }
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2170 #include <$2>
2171 _ACEOF
2172 if ac_fn_c_try_compile "$LINENO"; then :
2173 ac_header_compiler=yes
2174 else
2175 ac_header_compiler=no
2177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2179 $as_echo "$ac_header_compiler" >&6; }
2181 # Is the header present?
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2183 $as_echo_n "checking $2 presence... " >&6; }
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2186 #include <$2>
2187 _ACEOF
2188 if ac_fn_c_try_cpp "$LINENO"; then :
2189 ac_header_preproc=yes
2190 else
2191 ac_header_preproc=no
2193 rm -f conftest.err conftest.i conftest.$ac_ext
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2195 $as_echo "$ac_header_preproc" >&6; }
2197 # So? What about this header?
2198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2199 yes:no: )
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2201 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2203 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2205 no:yes:* )
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2207 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2209 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2211 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2213 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2215 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2216 ( $as_echo "## ------------------------------------------------------ ##
2217 ## Report this to http://github.com/atgreen/libffi/issues ##
2218 ## ------------------------------------------------------ ##"
2219 ) | sed "s/^/$as_me: WARNING: /" >&2
2221 esac
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2223 $as_echo_n "checking for $2... " >&6; }
2224 if eval \${$3+:} false; then :
2225 $as_echo_n "(cached) " >&6
2226 else
2227 eval "$3=\$ac_header_compiler"
2229 eval ac_res=\$$3
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2231 $as_echo "$ac_res" >&6; }
2233 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2235 } # ac_fn_c_check_header_mongrel
2237 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2238 # -------------------------------------------
2239 # Tests whether TYPE exists after having included INCLUDES, setting cache
2240 # variable VAR accordingly.
2241 ac_fn_c_check_type ()
2243 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2245 $as_echo_n "checking for $2... " >&6; }
2246 if eval \${$3+:} false; then :
2247 $as_echo_n "(cached) " >&6
2248 else
2249 eval "$3=no"
2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h. */
2254 main ()
2256 if (sizeof ($2))
2257 return 0;
2259 return 0;
2261 _ACEOF
2262 if ac_fn_c_try_compile "$LINENO"; then :
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2267 main ()
2269 if (sizeof (($2)))
2270 return 0;
2272 return 0;
2274 _ACEOF
2275 if ac_fn_c_try_compile "$LINENO"; then :
2277 else
2278 eval "$3=yes"
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284 eval ac_res=\$$3
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2286 $as_echo "$ac_res" >&6; }
2287 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2289 } # ac_fn_c_check_type
2290 cat >config.log <<_ACEOF
2291 This file contains any messages produced by compilers while
2292 running configure, to aid debugging if configure makes a mistake.
2294 It was created by libffi $as_me 3.99999, which was
2295 generated by GNU Autoconf 2.69. Invocation command line was
2297 $ $0 $@
2299 _ACEOF
2300 exec 5>>config.log
2302 cat <<_ASUNAME
2303 ## --------- ##
2304 ## Platform. ##
2305 ## --------- ##
2307 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2308 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2309 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2310 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2311 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2313 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2314 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2316 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2317 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2318 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2319 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2320 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2321 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2322 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2324 _ASUNAME
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 for as_dir in $PATH
2329 IFS=$as_save_IFS
2330 test -z "$as_dir" && as_dir=.
2331 $as_echo "PATH: $as_dir"
2332 done
2333 IFS=$as_save_IFS
2335 } >&5
2337 cat >&5 <<_ACEOF
2340 ## ----------- ##
2341 ## Core tests. ##
2342 ## ----------- ##
2344 _ACEOF
2347 # Keep a trace of the command line.
2348 # Strip out --no-create and --no-recursion so they do not pile up.
2349 # Strip out --silent because we don't want to record it for future runs.
2350 # Also quote any args containing shell meta-characters.
2351 # Make two passes to allow for proper duplicate-argument suppression.
2352 ac_configure_args=
2353 ac_configure_args0=
2354 ac_configure_args1=
2355 ac_must_keep_next=false
2356 for ac_pass in 1 2
2358 for ac_arg
2360 case $ac_arg in
2361 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2363 | -silent | --silent | --silen | --sile | --sil)
2364 continue ;;
2365 *\'*)
2366 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2367 esac
2368 case $ac_pass in
2369 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2371 as_fn_append ac_configure_args1 " '$ac_arg'"
2372 if test $ac_must_keep_next = true; then
2373 ac_must_keep_next=false # Got value, back to normal.
2374 else
2375 case $ac_arg in
2376 *=* | --config-cache | -C | -disable-* | --disable-* \
2377 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2378 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2379 | -with-* | --with-* | -without-* | --without-* | --x)
2380 case "$ac_configure_args0 " in
2381 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2382 esac
2384 -* ) ac_must_keep_next=true ;;
2385 esac
2387 as_fn_append ac_configure_args " '$ac_arg'"
2389 esac
2390 done
2391 done
2392 { ac_configure_args0=; unset ac_configure_args0;}
2393 { ac_configure_args1=; unset ac_configure_args1;}
2395 # When interrupted or exit'd, cleanup temporary files, and complete
2396 # config.log. We remove comments because anyway the quotes in there
2397 # would cause problems or look ugly.
2398 # WARNING: Use '\'' to represent an apostrophe within the trap.
2399 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2400 trap 'exit_status=$?
2401 # Save into config.log some information that might help in debugging.
2403 echo
2405 $as_echo "## ---------------- ##
2406 ## Cache variables. ##
2407 ## ---------------- ##"
2408 echo
2409 # The following way of writing the cache mishandles newlines in values,
2411 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2412 eval ac_val=\$$ac_var
2413 case $ac_val in #(
2414 *${as_nl}*)
2415 case $ac_var in #(
2416 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2417 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2418 esac
2419 case $ac_var in #(
2420 _ | IFS | as_nl) ;; #(
2421 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2422 *) { eval $ac_var=; unset $ac_var;} ;;
2423 esac ;;
2424 esac
2425 done
2426 (set) 2>&1 |
2427 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2428 *${as_nl}ac_space=\ *)
2429 sed -n \
2430 "s/'\''/'\''\\\\'\'''\''/g;
2431 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2432 ;; #(
2434 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2436 esac |
2437 sort
2439 echo
2441 $as_echo "## ----------------- ##
2442 ## Output variables. ##
2443 ## ----------------- ##"
2444 echo
2445 for ac_var in $ac_subst_vars
2447 eval ac_val=\$$ac_var
2448 case $ac_val in
2449 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2450 esac
2451 $as_echo "$ac_var='\''$ac_val'\''"
2452 done | sort
2453 echo
2455 if test -n "$ac_subst_files"; then
2456 $as_echo "## ------------------- ##
2457 ## File substitutions. ##
2458 ## ------------------- ##"
2459 echo
2460 for ac_var in $ac_subst_files
2462 eval ac_val=\$$ac_var
2463 case $ac_val in
2464 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2465 esac
2466 $as_echo "$ac_var='\''$ac_val'\''"
2467 done | sort
2468 echo
2471 if test -s confdefs.h; then
2472 $as_echo "## ----------- ##
2473 ## confdefs.h. ##
2474 ## ----------- ##"
2475 echo
2476 cat confdefs.h
2477 echo
2479 test "$ac_signal" != 0 &&
2480 $as_echo "$as_me: caught signal $ac_signal"
2481 $as_echo "$as_me: exit $exit_status"
2482 } >&5
2483 rm -f core *.core core.conftest.* &&
2484 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2485 exit $exit_status
2487 for ac_signal in 1 2 13 15; do
2488 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2489 done
2490 ac_signal=0
2492 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2493 rm -f -r conftest* confdefs.h
2495 $as_echo "/* confdefs.h */" > confdefs.h
2497 # Predefined preprocessor variables.
2499 cat >>confdefs.h <<_ACEOF
2500 #define PACKAGE_NAME "$PACKAGE_NAME"
2501 _ACEOF
2503 cat >>confdefs.h <<_ACEOF
2504 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2505 _ACEOF
2507 cat >>confdefs.h <<_ACEOF
2508 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2509 _ACEOF
2511 cat >>confdefs.h <<_ACEOF
2512 #define PACKAGE_STRING "$PACKAGE_STRING"
2513 _ACEOF
2515 cat >>confdefs.h <<_ACEOF
2516 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2517 _ACEOF
2519 cat >>confdefs.h <<_ACEOF
2520 #define PACKAGE_URL "$PACKAGE_URL"
2521 _ACEOF
2524 # Let the site file select an alternate cache file if it wants to.
2525 # Prefer an explicitly selected file to automatically selected ones.
2526 ac_site_file1=NONE
2527 ac_site_file2=NONE
2528 if test -n "$CONFIG_SITE"; then
2529 # We do not want a PATH search for config.site.
2530 case $CONFIG_SITE in #((
2531 -*) ac_site_file1=./$CONFIG_SITE;;
2532 */*) ac_site_file1=$CONFIG_SITE;;
2533 *) ac_site_file1=./$CONFIG_SITE;;
2534 esac
2535 elif test "x$prefix" != xNONE; then
2536 ac_site_file1=$prefix/share/config.site
2537 ac_site_file2=$prefix/etc/config.site
2538 else
2539 ac_site_file1=$ac_default_prefix/share/config.site
2540 ac_site_file2=$ac_default_prefix/etc/config.site
2542 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2544 test "x$ac_site_file" = xNONE && continue
2545 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2547 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2548 sed 's/^/| /' "$ac_site_file" >&5
2549 . "$ac_site_file" \
2550 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2552 as_fn_error $? "failed to load site script $ac_site_file
2553 See \`config.log' for more details" "$LINENO" 5; }
2555 done
2557 if test -r "$cache_file"; then
2558 # Some versions of bash will fail to source /dev/null (special files
2559 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2560 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2562 $as_echo "$as_me: loading cache $cache_file" >&6;}
2563 case $cache_file in
2564 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2565 *) . "./$cache_file";;
2566 esac
2568 else
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2570 $as_echo "$as_me: creating cache $cache_file" >&6;}
2571 >$cache_file
2574 # Check that the precious variables saved in the cache have kept the same
2575 # value.
2576 ac_cache_corrupted=false
2577 for ac_var in $ac_precious_vars; do
2578 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2579 eval ac_new_set=\$ac_env_${ac_var}_set
2580 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2581 eval ac_new_val=\$ac_env_${ac_var}_value
2582 case $ac_old_set,$ac_new_set in
2583 set,)
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2585 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2586 ac_cache_corrupted=: ;;
2587 ,set)
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2589 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2590 ac_cache_corrupted=: ;;
2591 ,);;
2593 if test "x$ac_old_val" != "x$ac_new_val"; then
2594 # differences in whitespace do not lead to failure.
2595 ac_old_val_w=`echo x $ac_old_val`
2596 ac_new_val_w=`echo x $ac_new_val`
2597 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2599 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2600 ac_cache_corrupted=:
2601 else
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2603 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2604 eval $ac_var=\$ac_old_val
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2607 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2609 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2610 fi;;
2611 esac
2612 # Pass precious variables to config.status.
2613 if test "$ac_new_set" = set; then
2614 case $ac_new_val in
2615 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2616 *) ac_arg=$ac_var=$ac_new_val ;;
2617 esac
2618 case " $ac_configure_args " in
2619 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2620 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2621 esac
2623 done
2624 if $ac_cache_corrupted; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2628 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2629 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2631 ## -------------------- ##
2632 ## Main body of script. ##
2633 ## -------------------- ##
2635 ac_ext=c
2636 ac_cpp='$CPP $CPPFLAGS'
2637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2645 ac_config_headers="$ac_config_headers fficonfig.h"
2648 # Default to --enable-multilib
2649 # Check whether --enable-multilib was given.
2650 if test "${enable_multilib+set}" = set; then :
2651 enableval=$enable_multilib; case "$enableval" in
2652 yes) multilib=yes ;;
2653 no) multilib=no ;;
2654 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2655 esac
2656 else
2657 multilib=yes
2661 # We may get other options which we leave undocumented:
2662 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2663 # See config-ml.in if you want the gory details.
2665 if test "$srcdir" = "."; then
2666 if test "$with_target_subdir" != "."; then
2667 multi_basedir="$srcdir/$with_multisrctop../.."
2668 else
2669 multi_basedir="$srcdir/$with_multisrctop.."
2671 else
2672 multi_basedir="$srcdir/.."
2676 # Even if the default multilib is not a cross compilation,
2677 # it may be that some of the other multilibs are.
2678 if test $cross_compiling = no && test $multilib = yes \
2679 && test "x${with_multisubdir}" != x ; then
2680 cross_compiling=maybe
2683 ac_config_commands="$ac_config_commands default-1"
2686 ac_aux_dir=
2687 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2688 if test -f "$ac_dir/install-sh"; then
2689 ac_aux_dir=$ac_dir
2690 ac_install_sh="$ac_aux_dir/install-sh -c"
2691 break
2692 elif test -f "$ac_dir/install.sh"; then
2693 ac_aux_dir=$ac_dir
2694 ac_install_sh="$ac_aux_dir/install.sh -c"
2695 break
2696 elif test -f "$ac_dir/shtool"; then
2697 ac_aux_dir=$ac_dir
2698 ac_install_sh="$ac_aux_dir/shtool install -c"
2699 break
2701 done
2702 if test -z "$ac_aux_dir"; then
2703 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2706 # These three variables are undocumented and unsupported,
2707 # and are intended to be withdrawn in a future Autoconf release.
2708 # They can cause serious problems if a builder's source tree is in a directory
2709 # whose full name contains unusual characters.
2710 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2711 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2712 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2715 # Make sure we can run config.sub.
2716 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2717 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2720 $as_echo_n "checking build system type... " >&6; }
2721 if ${ac_cv_build+:} false; then :
2722 $as_echo_n "(cached) " >&6
2723 else
2724 ac_build_alias=$build_alias
2725 test "x$ac_build_alias" = x &&
2726 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2727 test "x$ac_build_alias" = x &&
2728 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2729 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2730 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2734 $as_echo "$ac_cv_build" >&6; }
2735 case $ac_cv_build in
2736 *-*-*) ;;
2737 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2738 esac
2739 build=$ac_cv_build
2740 ac_save_IFS=$IFS; IFS='-'
2741 set x $ac_cv_build
2742 shift
2743 build_cpu=$1
2744 build_vendor=$2
2745 shift; shift
2746 # Remember, the first character of IFS is used to create $*,
2747 # except with old shells:
2748 build_os=$*
2749 IFS=$ac_save_IFS
2750 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2754 $as_echo_n "checking host system type... " >&6; }
2755 if ${ac_cv_host+:} false; then :
2756 $as_echo_n "(cached) " >&6
2757 else
2758 if test "x$host_alias" = x; then
2759 ac_cv_host=$ac_cv_build
2760 else
2761 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2762 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2767 $as_echo "$ac_cv_host" >&6; }
2768 case $ac_cv_host in
2769 *-*-*) ;;
2770 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2771 esac
2772 host=$ac_cv_host
2773 ac_save_IFS=$IFS; IFS='-'
2774 set x $ac_cv_host
2775 shift
2776 host_cpu=$1
2777 host_vendor=$2
2778 shift; shift
2779 # Remember, the first character of IFS is used to create $*,
2780 # except with old shells:
2781 host_os=$*
2782 IFS=$ac_save_IFS
2783 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2787 $as_echo_n "checking target system type... " >&6; }
2788 if ${ac_cv_target+:} false; then :
2789 $as_echo_n "(cached) " >&6
2790 else
2791 if test "x$target_alias" = x; then
2792 ac_cv_target=$ac_cv_host
2793 else
2794 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2795 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2800 $as_echo "$ac_cv_target" >&6; }
2801 case $ac_cv_target in
2802 *-*-*) ;;
2803 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2804 esac
2805 target=$ac_cv_target
2806 ac_save_IFS=$IFS; IFS='-'
2807 set x $ac_cv_target
2808 shift
2809 target_cpu=$1
2810 target_vendor=$2
2811 shift; shift
2812 # Remember, the first character of IFS is used to create $*,
2813 # except with old shells:
2814 target_os=$*
2815 IFS=$ac_save_IFS
2816 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2819 # The aliases save the names the user supplied, while $host etc.
2820 # will get canonicalized.
2821 test -n "$target_alias" &&
2822 test "$program_prefix$program_suffix$program_transform_name" = \
2823 NONENONEs,x,x, &&
2824 program_prefix=${target_alias}-
2826 target_alias=${target_alias-$host_alias}
2828 am__api_version='1.15'
2830 # Find a good install program. We prefer a C program (faster),
2831 # so one script is as good as another. But avoid the broken or
2832 # incompatible versions:
2833 # SysV /etc/install, /usr/sbin/install
2834 # SunOS /usr/etc/install
2835 # IRIX /sbin/install
2836 # AIX /bin/install
2837 # AmigaOS /C/install, which installs bootblocks on floppy discs
2838 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2839 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2840 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2841 # OS/2's system install, which has a completely different semantic
2842 # ./install, which can be erroneously created by make from ./install.sh.
2843 # Reject install programs that cannot install multiple files.
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2845 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2846 if test -z "$INSTALL"; then
2847 if ${ac_cv_path_install+:} false; then :
2848 $as_echo_n "(cached) " >&6
2849 else
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 for as_dir in $PATH
2853 IFS=$as_save_IFS
2854 test -z "$as_dir" && as_dir=.
2855 # Account for people who put trailing slashes in PATH elements.
2856 case $as_dir/ in #((
2857 ./ | .// | /[cC]/* | \
2858 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2859 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2860 /usr/ucb/* ) ;;
2862 # OSF1 and SCO ODT 3.0 have their own names for install.
2863 # Don't use installbsd from OSF since it installs stuff as root
2864 # by default.
2865 for ac_prog in ginstall scoinst install; do
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2868 if test $ac_prog = install &&
2869 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2870 # AIX install. It has an incompatible calling convention.
2872 elif test $ac_prog = install &&
2873 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2874 # program-specific install script used by HP pwplus--don't use.
2876 else
2877 rm -rf conftest.one conftest.two conftest.dir
2878 echo one > conftest.one
2879 echo two > conftest.two
2880 mkdir conftest.dir
2881 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2882 test -s conftest.one && test -s conftest.two &&
2883 test -s conftest.dir/conftest.one &&
2884 test -s conftest.dir/conftest.two
2885 then
2886 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2887 break 3
2891 done
2892 done
2894 esac
2896 done
2897 IFS=$as_save_IFS
2899 rm -rf conftest.one conftest.two conftest.dir
2902 if test "${ac_cv_path_install+set}" = set; then
2903 INSTALL=$ac_cv_path_install
2904 else
2905 # As a last resort, use the slow shell script. Don't cache a
2906 # value for INSTALL within a source directory, because that will
2907 # break other packages using the cache if that directory is
2908 # removed, or if the value is a relative name.
2909 INSTALL=$ac_install_sh
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2913 $as_echo "$INSTALL" >&6; }
2915 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2916 # It thinks the first close brace ends the variable substitution.
2917 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2919 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2921 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2924 $as_echo_n "checking whether build environment is sane... " >&6; }
2925 # Reject unsafe characters in $srcdir or the absolute working directory
2926 # name. Accept space and tab only in the latter.
2927 am_lf='
2929 case `pwd` in
2930 *[\\\"\#\$\&\'\`$am_lf]*)
2931 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2932 esac
2933 case $srcdir in
2934 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2935 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2936 esac
2938 # Do 'set' in a subshell so we don't clobber the current shell's
2939 # arguments. Must try -L first in case configure is actually a
2940 # symlink; some systems play weird games with the mod time of symlinks
2941 # (eg FreeBSD returns the mod time of the symlink's containing
2942 # directory).
2943 if (
2944 am_has_slept=no
2945 for am_try in 1 2; do
2946 echo "timestamp, slept: $am_has_slept" > conftest.file
2947 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2948 if test "$*" = "X"; then
2949 # -L didn't work.
2950 set X `ls -t "$srcdir/configure" conftest.file`
2952 if test "$*" != "X $srcdir/configure conftest.file" \
2953 && test "$*" != "X conftest.file $srcdir/configure"; then
2955 # If neither matched, then we have a broken ls. This can happen
2956 # if, for instance, CONFIG_SHELL is bash and it inherits a
2957 # broken ls alias from the environment. This has actually
2958 # happened. Such a system could not be considered "sane".
2959 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2960 alias in your environment" "$LINENO" 5
2962 if test "$2" = conftest.file || test $am_try -eq 2; then
2963 break
2965 # Just in case.
2966 sleep 1
2967 am_has_slept=yes
2968 done
2969 test "$2" = conftest.file
2971 then
2972 # Ok.
2974 else
2975 as_fn_error $? "newly created file is older than distributed files!
2976 Check your system clock" "$LINENO" 5
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2979 $as_echo "yes" >&6; }
2980 # If we didn't sleep, we still need to ensure time stamps of config.status and
2981 # generated files are strictly newer.
2982 am_sleep_pid=
2983 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2984 ( sleep 1 ) &
2985 am_sleep_pid=$!
2988 rm -f conftest.file
2990 test "$program_prefix" != NONE &&
2991 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2992 # Use a double $ so make ignores it.
2993 test "$program_suffix" != NONE &&
2994 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2995 # Double any \ or $.
2996 # By default was `s,x,x', remove it if useless.
2997 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2998 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3000 # Expand $ac_aux_dir to an absolute path.
3001 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3003 if test x"${MISSING+set}" != xset; then
3004 case $am_aux_dir in
3005 *\ * | *\ *)
3006 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3008 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3009 esac
3011 # Use eval to expand $SHELL
3012 if eval "$MISSING --is-lightweight"; then
3013 am_missing_run="$MISSING "
3014 else
3015 am_missing_run=
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3017 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3020 if test x"${install_sh+set}" != xset; then
3021 case $am_aux_dir in
3022 *\ * | *\ *)
3023 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3025 install_sh="\${SHELL} $am_aux_dir/install-sh"
3026 esac
3029 # Installed binaries are usually stripped using 'strip' when the user
3030 # run "make install-strip". However 'strip' might not be the right
3031 # tool to use in cross-compilation environments, therefore Automake
3032 # will honor the 'STRIP' environment variable to overrule this program.
3033 if test "$cross_compiling" != no; then
3034 if test -n "$ac_tool_prefix"; then
3035 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3036 set dummy ${ac_tool_prefix}strip; ac_word=$2
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038 $as_echo_n "checking for $ac_word... " >&6; }
3039 if ${ac_cv_prog_STRIP+:} false; then :
3040 $as_echo_n "(cached) " >&6
3041 else
3042 if test -n "$STRIP"; then
3043 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3044 else
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 for as_dir in $PATH
3048 IFS=$as_save_IFS
3049 test -z "$as_dir" && as_dir=.
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3052 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 break 2
3056 done
3057 done
3058 IFS=$as_save_IFS
3062 STRIP=$ac_cv_prog_STRIP
3063 if test -n "$STRIP"; then
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3065 $as_echo "$STRIP" >&6; }
3066 else
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068 $as_echo "no" >&6; }
3073 if test -z "$ac_cv_prog_STRIP"; then
3074 ac_ct_STRIP=$STRIP
3075 # Extract the first word of "strip", so it can be a program name with args.
3076 set dummy strip; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3080 $as_echo_n "(cached) " >&6
3081 else
3082 if test -n "$ac_ct_STRIP"; then
3083 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3084 else
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3088 IFS=$as_save_IFS
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092 ac_cv_prog_ac_ct_STRIP="strip"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 break 2
3096 done
3097 done
3098 IFS=$as_save_IFS
3102 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3103 if test -n "$ac_ct_STRIP"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3105 $as_echo "$ac_ct_STRIP" >&6; }
3106 else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3111 if test "x$ac_ct_STRIP" = x; then
3112 STRIP=":"
3113 else
3114 case $cross_compiling:$ac_tool_warned in
3115 yes:)
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3118 ac_tool_warned=yes ;;
3119 esac
3120 STRIP=$ac_ct_STRIP
3122 else
3123 STRIP="$ac_cv_prog_STRIP"
3127 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3130 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3131 if test -z "$MKDIR_P"; then
3132 if ${ac_cv_path_mkdir+:} false; then :
3133 $as_echo_n "(cached) " >&6
3134 else
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3138 IFS=$as_save_IFS
3139 test -z "$as_dir" && as_dir=.
3140 for ac_prog in mkdir gmkdir; do
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3143 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3144 'mkdir (GNU coreutils) '* | \
3145 'mkdir (coreutils) '* | \
3146 'mkdir (fileutils) '4.1*)
3147 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3148 break 3;;
3149 esac
3150 done
3151 done
3152 done
3153 IFS=$as_save_IFS
3157 test -d ./--version && rmdir ./--version
3158 if test "${ac_cv_path_mkdir+set}" = set; then
3159 MKDIR_P="$ac_cv_path_mkdir -p"
3160 else
3161 # As a last resort, use the slow shell script. Don't cache a
3162 # value for MKDIR_P within a source directory, because that will
3163 # break other packages using the cache if that directory is
3164 # removed, or if the value is a relative name.
3165 MKDIR_P="$ac_install_sh -d"
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3169 $as_echo "$MKDIR_P" >&6; }
3171 for ac_prog in gawk mawk nawk awk
3173 # Extract the first word of "$ac_prog", so it can be a program name with args.
3174 set dummy $ac_prog; ac_word=$2
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176 $as_echo_n "checking for $ac_word... " >&6; }
3177 if ${ac_cv_prog_AWK+:} false; then :
3178 $as_echo_n "(cached) " >&6
3179 else
3180 if test -n "$AWK"; then
3181 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3186 IFS=$as_save_IFS
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190 ac_cv_prog_AWK="$ac_prog"
3191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 break 2
3194 done
3195 done
3196 IFS=$as_save_IFS
3200 AWK=$ac_cv_prog_AWK
3201 if test -n "$AWK"; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3203 $as_echo "$AWK" >&6; }
3204 else
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3210 test -n "$AWK" && break
3211 done
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3214 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3215 set x ${MAKE-make}
3216 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3217 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3218 $as_echo_n "(cached) " >&6
3219 else
3220 cat >conftest.make <<\_ACEOF
3221 SHELL = /bin/sh
3222 all:
3223 @echo '@@@%%%=$(MAKE)=@@@%%%'
3224 _ACEOF
3225 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3226 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3227 *@@@%%%=?*=@@@%%%*)
3228 eval ac_cv_prog_make_${ac_make}_set=yes;;
3230 eval ac_cv_prog_make_${ac_make}_set=no;;
3231 esac
3232 rm -f conftest.make
3234 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3236 $as_echo "yes" >&6; }
3237 SET_MAKE=
3238 else
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3241 SET_MAKE="MAKE=${MAKE-make}"
3244 rm -rf .tst 2>/dev/null
3245 mkdir .tst 2>/dev/null
3246 if test -d .tst; then
3247 am__leading_dot=.
3248 else
3249 am__leading_dot=_
3251 rmdir .tst 2>/dev/null
3253 # Check whether --enable-silent-rules was given.
3254 if test "${enable_silent_rules+set}" = set; then :
3255 enableval=$enable_silent_rules;
3258 case $enable_silent_rules in # (((
3259 yes) AM_DEFAULT_VERBOSITY=0;;
3260 no) AM_DEFAULT_VERBOSITY=1;;
3261 *) AM_DEFAULT_VERBOSITY=1;;
3262 esac
3263 am_make=${MAKE-make}
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3265 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3266 if ${am_cv_make_support_nested_variables+:} false; then :
3267 $as_echo_n "(cached) " >&6
3268 else
3269 if $as_echo 'TRUE=$(BAR$(V))
3270 BAR0=false
3271 BAR1=true
3273 am__doit:
3274 @$(TRUE)
3275 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3276 am_cv_make_support_nested_variables=yes
3277 else
3278 am_cv_make_support_nested_variables=no
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3282 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3283 if test $am_cv_make_support_nested_variables = yes; then
3284 AM_V='$(V)'
3285 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3286 else
3287 AM_V=$AM_DEFAULT_VERBOSITY
3288 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3290 AM_BACKSLASH='\'
3292 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3293 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3294 # is not polluted with repeated "-I."
3295 am__isrc=' -I$(srcdir)'
3296 # test to see if srcdir already configured
3297 if test -f $srcdir/config.status; then
3298 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3302 # test whether we have cygpath
3303 if test -z "$CYGPATH_W"; then
3304 if (cygpath --version) >/dev/null 2>/dev/null; then
3305 CYGPATH_W='cygpath -w'
3306 else
3307 CYGPATH_W=echo
3312 # Define the identity of the package.
3313 PACKAGE='libffi'
3314 VERSION='3.99999'
3317 cat >>confdefs.h <<_ACEOF
3318 #define PACKAGE "$PACKAGE"
3319 _ACEOF
3322 cat >>confdefs.h <<_ACEOF
3323 #define VERSION "$VERSION"
3324 _ACEOF
3326 # Some tools Automake needs.
3328 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3331 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3334 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3337 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3340 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3342 # For better backward compatibility. To be removed once Automake 1.9.x
3343 # dies out for good. For more background, see:
3344 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3345 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3346 mkdir_p='$(MKDIR_P)'
3348 # We need awk for the "check" target (and possibly the TAP driver). The
3349 # system "awk" is bad on some platforms.
3350 # Always define AMTAR for backward compatibility. Yes, it's still used
3351 # in the wild :-( We should find a proper way to deprecate it ...
3352 AMTAR='$${TAR-tar}'
3355 # We'll loop over all known methods to create a tar archive until one works.
3356 _am_tools='gnutar pax cpio none'
3358 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3365 # POSIX will say in a future version that running "rm -f" with no argument
3366 # is OK; and we want to be able to make that assumption in our Makefile
3367 # recipes. So use an aggressive probe to check that the usage we want is
3368 # actually supported "in the wild" to an acceptable degree.
3369 # See automake bug#10828.
3370 # To make any issue more visible, cause the running configure to be aborted
3371 # by default if the 'rm' program in use doesn't match our expectations; the
3372 # user can still override this though.
3373 if rm -f && rm -fr && rm -rf; then : OK; else
3374 cat >&2 <<'END'
3375 Oops!
3377 Your 'rm' program seems unable to run without file operands specified
3378 on the command line, even when the '-f' option is present. This is contrary
3379 to the behaviour of most rm programs out there, and not conforming with
3380 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3382 Please tell bug-automake@gnu.org about your system, including the value
3383 of your $PATH and any error possibly output before this message. This
3384 can help us improve future automake versions.
3387 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3388 echo 'Configuration will proceed anyway, since you have set the' >&2
3389 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3390 echo >&2
3391 else
3392 cat >&2 <<'END'
3393 Aborting the configuration process, to ensure you take notice of the issue.
3395 You can download and install GNU coreutils to get an 'rm' implementation
3396 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3398 If you want to complete the configuration process using your problematic
3399 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3400 to "yes", and re-run configure.
3403 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3408 # See if makeinfo has been installed and is modern enough
3409 # that we can use it.
3411 # Extract the first word of "makeinfo", so it can be a program name with args.
3412 set dummy makeinfo; ac_word=$2
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414 $as_echo_n "checking for $ac_word... " >&6; }
3415 if ${ac_cv_prog_MAKEINFO+:} false; then :
3416 $as_echo_n "(cached) " >&6
3417 else
3418 if test -n "$MAKEINFO"; then
3419 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3420 else
3421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 for as_dir in $PATH
3424 IFS=$as_save_IFS
3425 test -z "$as_dir" && as_dir=.
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3428 ac_cv_prog_MAKEINFO="makeinfo"
3429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3430 break 2
3432 done
3433 done
3434 IFS=$as_save_IFS
3438 MAKEINFO=$ac_cv_prog_MAKEINFO
3439 if test -n "$MAKEINFO"; then
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
3441 $as_echo "$MAKEINFO" >&6; }
3442 else
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 $as_echo "no" >&6; }
3448 if test -n "$MAKEINFO"; then
3449 # Found it, now check the version.
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
3451 $as_echo_n "checking for modern makeinfo... " >&6; }
3452 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
3453 $as_echo_n "(cached) " >&6
3454 else
3455 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3456 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3458 case $ac_prog_version in
3459 '') gcc_cv_prog_makeinfo_modern=no;;
3460 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
3461 *) gcc_cv_prog_makeinfo_modern=no;;
3462 esac
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
3466 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
3467 else
3468 gcc_cv_prog_makeinfo_modern=no
3470 if test $gcc_cv_prog_makeinfo_modern = no; then
3471 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3474 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3475 BUILD_INFO_TRUE=
3476 BUILD_INFO_FALSE='#'
3477 else
3478 BUILD_INFO_TRUE='#'
3479 BUILD_INFO_FALSE=
3483 # We would like our source tree to be readonly. However when releases or
3484 # pre-releases are generated, the flex/bison generated files as well as the
3485 # various formats of manuals need to be included along with the rest of the
3486 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3487 # just that.
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
3489 $as_echo_n "checking generated-files-in-srcdir... " >&6; }
3490 # Check whether --enable-generated-files-in-srcdir was given.
3491 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3492 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
3493 yes) enable_generated_files_in_srcdir=yes ;;
3494 no) enable_generated_files_in_srcdir=no ;;
3495 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3496 esac
3497 else
3498 enable_generated_files_in_srcdir=no
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
3502 $as_echo "$enable_generated_files_in_srcdir" >&6; }
3503 if test "$enable_generated_files_in_srcdir" = yes; then
3504 GENINSRC_TRUE=
3505 GENINSRC_FALSE='#'
3506 else
3507 GENINSRC_TRUE='#'
3508 GENINSRC_FALSE=
3512 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3513 # We must force CC to /not/ be precious variables; otherwise
3514 # the wrong, non-multilib-adjusted value will be used in multilibs.
3515 # As a side effect, we have to subst CFLAGS ourselves.
3516 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3517 # defaults of its own if none are provided.
3521 save_CFLAGS=$CFLAGS
3522 ac_ext=c
3523 ac_cpp='$CPP $CPPFLAGS'
3524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3527 if test -n "$ac_tool_prefix"; then
3528 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3529 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531 $as_echo_n "checking for $ac_word... " >&6; }
3532 if ${ac_cv_prog_CC+:} false; then :
3533 $as_echo_n "(cached) " >&6
3534 else
3535 if test -n "$CC"; then
3536 ac_cv_prog_CC="$CC" # Let the user override the test.
3537 else
3538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539 for as_dir in $PATH
3541 IFS=$as_save_IFS
3542 test -z "$as_dir" && as_dir=.
3543 for ac_exec_ext in '' $ac_executable_extensions; do
3544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3545 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3547 break 2
3549 done
3550 done
3551 IFS=$as_save_IFS
3555 CC=$ac_cv_prog_CC
3556 if test -n "$CC"; then
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3558 $as_echo "$CC" >&6; }
3559 else
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 $as_echo "no" >&6; }
3566 if test -z "$ac_cv_prog_CC"; then
3567 ac_ct_CC=$CC
3568 # Extract the first word of "gcc", so it can be a program name with args.
3569 set dummy gcc; ac_word=$2
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3571 $as_echo_n "checking for $ac_word... " >&6; }
3572 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3573 $as_echo_n "(cached) " >&6
3574 else
3575 if test -n "$ac_ct_CC"; then
3576 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3577 else
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 for as_dir in $PATH
3581 IFS=$as_save_IFS
3582 test -z "$as_dir" && as_dir=.
3583 for ac_exec_ext in '' $ac_executable_extensions; do
3584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3585 ac_cv_prog_ac_ct_CC="gcc"
3586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3587 break 2
3589 done
3590 done
3591 IFS=$as_save_IFS
3595 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3596 if test -n "$ac_ct_CC"; then
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3598 $as_echo "$ac_ct_CC" >&6; }
3599 else
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3601 $as_echo "no" >&6; }
3604 if test "x$ac_ct_CC" = x; then
3605 CC=""
3606 else
3607 case $cross_compiling:$ac_tool_warned in
3608 yes:)
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3611 ac_tool_warned=yes ;;
3612 esac
3613 CC=$ac_ct_CC
3615 else
3616 CC="$ac_cv_prog_CC"
3619 if test -z "$CC"; then
3620 if test -n "$ac_tool_prefix"; then
3621 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3622 set dummy ${ac_tool_prefix}cc; ac_word=$2
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3624 $as_echo_n "checking for $ac_word... " >&6; }
3625 if ${ac_cv_prog_CC+:} false; then :
3626 $as_echo_n "(cached) " >&6
3627 else
3628 if test -n "$CC"; then
3629 ac_cv_prog_CC="$CC" # Let the user override the test.
3630 else
3631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632 for as_dir in $PATH
3634 IFS=$as_save_IFS
3635 test -z "$as_dir" && as_dir=.
3636 for ac_exec_ext in '' $ac_executable_extensions; do
3637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3638 ac_cv_prog_CC="${ac_tool_prefix}cc"
3639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3640 break 2
3642 done
3643 done
3644 IFS=$as_save_IFS
3648 CC=$ac_cv_prog_CC
3649 if test -n "$CC"; then
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3651 $as_echo "$CC" >&6; }
3652 else
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3654 $as_echo "no" >&6; }
3660 if test -z "$CC"; then
3661 # Extract the first word of "cc", so it can be a program name with args.
3662 set dummy cc; ac_word=$2
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3664 $as_echo_n "checking for $ac_word... " >&6; }
3665 if ${ac_cv_prog_CC+:} false; then :
3666 $as_echo_n "(cached) " >&6
3667 else
3668 if test -n "$CC"; then
3669 ac_cv_prog_CC="$CC" # Let the user override the test.
3670 else
3671 ac_prog_rejected=no
3672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3673 for as_dir in $PATH
3675 IFS=$as_save_IFS
3676 test -z "$as_dir" && as_dir=.
3677 for ac_exec_ext in '' $ac_executable_extensions; do
3678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3679 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3680 ac_prog_rejected=yes
3681 continue
3683 ac_cv_prog_CC="cc"
3684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3685 break 2
3687 done
3688 done
3689 IFS=$as_save_IFS
3691 if test $ac_prog_rejected = yes; then
3692 # We found a bogon in the path, so make sure we never use it.
3693 set dummy $ac_cv_prog_CC
3694 shift
3695 if test $# != 0; then
3696 # We chose a different compiler from the bogus one.
3697 # However, it has the same basename, so the bogon will be chosen
3698 # first if we set CC to just the basename; use the full file name.
3699 shift
3700 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3705 CC=$ac_cv_prog_CC
3706 if test -n "$CC"; then
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3708 $as_echo "$CC" >&6; }
3709 else
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711 $as_echo "no" >&6; }
3716 if test -z "$CC"; then
3717 if test -n "$ac_tool_prefix"; then
3718 for ac_prog in cl.exe
3720 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3721 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3723 $as_echo_n "checking for $ac_word... " >&6; }
3724 if ${ac_cv_prog_CC+:} false; then :
3725 $as_echo_n "(cached) " >&6
3726 else
3727 if test -n "$CC"; then
3728 ac_cv_prog_CC="$CC" # Let the user override the test.
3729 else
3730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731 for as_dir in $PATH
3733 IFS=$as_save_IFS
3734 test -z "$as_dir" && as_dir=.
3735 for ac_exec_ext in '' $ac_executable_extensions; do
3736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3737 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3739 break 2
3741 done
3742 done
3743 IFS=$as_save_IFS
3747 CC=$ac_cv_prog_CC
3748 if test -n "$CC"; then
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3750 $as_echo "$CC" >&6; }
3751 else
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3753 $as_echo "no" >&6; }
3757 test -n "$CC" && break
3758 done
3760 if test -z "$CC"; then
3761 ac_ct_CC=$CC
3762 for ac_prog in cl.exe
3764 # Extract the first word of "$ac_prog", so it can be a program name with args.
3765 set dummy $ac_prog; ac_word=$2
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3767 $as_echo_n "checking for $ac_word... " >&6; }
3768 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3769 $as_echo_n "(cached) " >&6
3770 else
3771 if test -n "$ac_ct_CC"; then
3772 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3773 else
3774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 for as_dir in $PATH
3777 IFS=$as_save_IFS
3778 test -z "$as_dir" && as_dir=.
3779 for ac_exec_ext in '' $ac_executable_extensions; do
3780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3781 ac_cv_prog_ac_ct_CC="$ac_prog"
3782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3783 break 2
3785 done
3786 done
3787 IFS=$as_save_IFS
3791 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3792 if test -n "$ac_ct_CC"; then
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3794 $as_echo "$ac_ct_CC" >&6; }
3795 else
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3797 $as_echo "no" >&6; }
3801 test -n "$ac_ct_CC" && break
3802 done
3804 if test "x$ac_ct_CC" = x; then
3805 CC=""
3806 else
3807 case $cross_compiling:$ac_tool_warned in
3808 yes:)
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3811 ac_tool_warned=yes ;;
3812 esac
3813 CC=$ac_ct_CC
3820 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3822 as_fn_error $? "no acceptable C compiler found in \$PATH
3823 See \`config.log' for more details" "$LINENO" 5; }
3825 # Provide some information about the compiler.
3826 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3827 set X $ac_compile
3828 ac_compiler=$2
3829 for ac_option in --version -v -V -qversion; do
3830 { { ac_try="$ac_compiler $ac_option >&5"
3831 case "(($ac_try" in
3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3834 esac
3835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3836 $as_echo "$ac_try_echo"; } >&5
3837 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3838 ac_status=$?
3839 if test -s conftest.err; then
3840 sed '10a\
3841 ... rest of stderr output deleted ...
3842 10q' conftest.err >conftest.er1
3843 cat conftest.er1 >&5
3845 rm -f conftest.er1 conftest.err
3846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3847 test $ac_status = 0; }
3848 done
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3854 main ()
3858 return 0;
3860 _ACEOF
3861 ac_clean_files_save=$ac_clean_files
3862 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3863 # Try to create an executable without -o first, disregard a.out.
3864 # It will help us diagnose broken compilers, and finding out an intuition
3865 # of exeext.
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3867 $as_echo_n "checking whether the C compiler works... " >&6; }
3868 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3870 # The possible output files:
3871 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3873 ac_rmfiles=
3874 for ac_file in $ac_files
3876 case $ac_file in
3877 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3878 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3879 esac
3880 done
3881 rm -f $ac_rmfiles
3883 if { { ac_try="$ac_link_default"
3884 case "(($ac_try" in
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3887 esac
3888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3889 $as_echo "$ac_try_echo"; } >&5
3890 (eval "$ac_link_default") 2>&5
3891 ac_status=$?
3892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893 test $ac_status = 0; }; then :
3894 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3895 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3896 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3897 # so that the user can short-circuit this test for compilers unknown to
3898 # Autoconf.
3899 for ac_file in $ac_files ''
3901 test -f "$ac_file" || continue
3902 case $ac_file in
3903 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3905 [ab].out )
3906 # We found the default executable, but exeext='' is most
3907 # certainly right.
3908 break;;
3909 *.* )
3910 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3911 then :; else
3912 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3914 # We set ac_cv_exeext here because the later test for it is not
3915 # safe: cross compilers may not add the suffix if given an `-o'
3916 # argument, so we may need to know it at that point already.
3917 # Even if this section looks crufty: it has the advantage of
3918 # actually working.
3919 break;;
3921 break;;
3922 esac
3923 done
3924 test "$ac_cv_exeext" = no && ac_cv_exeext=
3926 else
3927 ac_file=''
3929 if test -z "$ac_file"; then :
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931 $as_echo "no" >&6; }
3932 $as_echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3937 as_fn_error 77 "C compiler cannot create executables
3938 See \`config.log' for more details" "$LINENO" 5; }
3939 else
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3941 $as_echo "yes" >&6; }
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3944 $as_echo_n "checking for C compiler default output file name... " >&6; }
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3946 $as_echo "$ac_file" >&6; }
3947 ac_exeext=$ac_cv_exeext
3949 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3950 ac_clean_files=$ac_clean_files_save
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3952 $as_echo_n "checking for suffix of executables... " >&6; }
3953 if { { ac_try="$ac_link"
3954 case "(($ac_try" in
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3957 esac
3958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3959 $as_echo "$ac_try_echo"; } >&5
3960 (eval "$ac_link") 2>&5
3961 ac_status=$?
3962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3963 test $ac_status = 0; }; then :
3964 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3965 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3966 # work properly (i.e., refer to `conftest.exe'), while it won't with
3967 # `rm'.
3968 for ac_file in conftest.exe conftest conftest.*; do
3969 test -f "$ac_file" || continue
3970 case $ac_file in
3971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3972 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3973 break;;
3974 * ) break;;
3975 esac
3976 done
3977 else
3978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3980 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3981 See \`config.log' for more details" "$LINENO" 5; }
3983 rm -f conftest conftest$ac_cv_exeext
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3985 $as_echo "$ac_cv_exeext" >&6; }
3987 rm -f conftest.$ac_ext
3988 EXEEXT=$ac_cv_exeext
3989 ac_exeext=$EXEEXT
3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h. */
3992 #include <stdio.h>
3994 main ()
3996 FILE *f = fopen ("conftest.out", "w");
3997 return ferror (f) || fclose (f) != 0;
4000 return 0;
4002 _ACEOF
4003 ac_clean_files="$ac_clean_files conftest.out"
4004 # Check that the compiler produces executables we can run. If not, either
4005 # the compiler is broken, or we cross compile.
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4007 $as_echo_n "checking whether we are cross compiling... " >&6; }
4008 if test "$cross_compiling" != yes; then
4009 { { ac_try="$ac_link"
4010 case "(($ac_try" in
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4013 esac
4014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4015 $as_echo "$ac_try_echo"; } >&5
4016 (eval "$ac_link") 2>&5
4017 ac_status=$?
4018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4019 test $ac_status = 0; }
4020 if { ac_try='./conftest$ac_cv_exeext'
4021 { { case "(($ac_try" in
4022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023 *) ac_try_echo=$ac_try;;
4024 esac
4025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4026 $as_echo "$ac_try_echo"; } >&5
4027 (eval "$ac_try") 2>&5
4028 ac_status=$?
4029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4030 test $ac_status = 0; }; }; then
4031 cross_compiling=no
4032 else
4033 if test "$cross_compiling" = maybe; then
4034 cross_compiling=yes
4035 else
4036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4038 as_fn_error $? "cannot run C compiled programs.
4039 If you meant to cross compile, use \`--host'.
4040 See \`config.log' for more details" "$LINENO" 5; }
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4045 $as_echo "$cross_compiling" >&6; }
4047 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4048 ac_clean_files=$ac_clean_files_save
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4050 $as_echo_n "checking for suffix of object files... " >&6; }
4051 if ${ac_cv_objext+:} false; then :
4052 $as_echo_n "(cached) " >&6
4053 else
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4058 main ()
4062 return 0;
4064 _ACEOF
4065 rm -f conftest.o conftest.obj
4066 if { { ac_try="$ac_compile"
4067 case "(($ac_try" in
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4070 esac
4071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4072 $as_echo "$ac_try_echo"; } >&5
4073 (eval "$ac_compile") 2>&5
4074 ac_status=$?
4075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4076 test $ac_status = 0; }; then :
4077 for ac_file in conftest.o conftest.obj conftest.*; do
4078 test -f "$ac_file" || continue;
4079 case $ac_file in
4080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4081 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4082 break;;
4083 esac
4084 done
4085 else
4086 $as_echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4091 as_fn_error $? "cannot compute suffix of object files: cannot compile
4092 See \`config.log' for more details" "$LINENO" 5; }
4094 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4097 $as_echo "$ac_cv_objext" >&6; }
4098 OBJEXT=$ac_cv_objext
4099 ac_objext=$OBJEXT
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4101 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4102 if ${ac_cv_c_compiler_gnu+:} false; then :
4103 $as_echo_n "(cached) " >&6
4104 else
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4109 main ()
4111 #ifndef __GNUC__
4112 choke me
4113 #endif
4116 return 0;
4118 _ACEOF
4119 if ac_fn_c_try_compile "$LINENO"; then :
4120 ac_compiler_gnu=yes
4121 else
4122 ac_compiler_gnu=no
4124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4125 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4129 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4130 if test $ac_compiler_gnu = yes; then
4131 GCC=yes
4132 else
4133 GCC=
4135 ac_test_CFLAGS=${CFLAGS+set}
4136 ac_save_CFLAGS=$CFLAGS
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4138 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4139 if ${ac_cv_prog_cc_g+:} false; then :
4140 $as_echo_n "(cached) " >&6
4141 else
4142 ac_save_c_werror_flag=$ac_c_werror_flag
4143 ac_c_werror_flag=yes
4144 ac_cv_prog_cc_g=no
4145 CFLAGS="-g"
4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147 /* end confdefs.h. */
4150 main ()
4154 return 0;
4156 _ACEOF
4157 if ac_fn_c_try_compile "$LINENO"; then :
4158 ac_cv_prog_cc_g=yes
4159 else
4160 CFLAGS=""
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4165 main ()
4169 return 0;
4171 _ACEOF
4172 if ac_fn_c_try_compile "$LINENO"; then :
4174 else
4175 ac_c_werror_flag=$ac_save_c_werror_flag
4176 CFLAGS="-g"
4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h. */
4181 main ()
4185 return 0;
4187 _ACEOF
4188 if ac_fn_c_try_compile "$LINENO"; then :
4189 ac_cv_prog_cc_g=yes
4191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196 ac_c_werror_flag=$ac_save_c_werror_flag
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4199 $as_echo "$ac_cv_prog_cc_g" >&6; }
4200 if test "$ac_test_CFLAGS" = set; then
4201 CFLAGS=$ac_save_CFLAGS
4202 elif test $ac_cv_prog_cc_g = yes; then
4203 if test "$GCC" = yes; then
4204 CFLAGS="-g -O2"
4205 else
4206 CFLAGS="-g"
4208 else
4209 if test "$GCC" = yes; then
4210 CFLAGS="-O2"
4211 else
4212 CFLAGS=
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4216 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4217 if ${ac_cv_prog_cc_c89+:} false; then :
4218 $as_echo_n "(cached) " >&6
4219 else
4220 ac_cv_prog_cc_c89=no
4221 ac_save_CC=$CC
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4224 #include <stdarg.h>
4225 #include <stdio.h>
4226 struct stat;
4227 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4228 struct buf { int x; };
4229 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4230 static char *e (p, i)
4231 char **p;
4232 int i;
4234 return p[i];
4236 static char *f (char * (*g) (char **, int), char **p, ...)
4238 char *s;
4239 va_list v;
4240 va_start (v,p);
4241 s = g (p, va_arg (v,int));
4242 va_end (v);
4243 return s;
4246 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4247 function prototypes and stuff, but not '\xHH' hex character constants.
4248 These don't provoke an error unfortunately, instead are silently treated
4249 as 'x'. The following induces an error, until -std is added to get
4250 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4251 array size at least. It's necessary to write '\x00'==0 to get something
4252 that's true only with -std. */
4253 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4255 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4256 inside strings and character constants. */
4257 #define FOO(x) 'x'
4258 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4260 int test (int i, double x);
4261 struct s1 {int (*f) (int a);};
4262 struct s2 {int (*f) (double a);};
4263 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4264 int argc;
4265 char **argv;
4267 main ()
4269 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4271 return 0;
4273 _ACEOF
4274 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4275 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4277 CC="$ac_save_CC $ac_arg"
4278 if ac_fn_c_try_compile "$LINENO"; then :
4279 ac_cv_prog_cc_c89=$ac_arg
4281 rm -f core conftest.err conftest.$ac_objext
4282 test "x$ac_cv_prog_cc_c89" != "xno" && break
4283 done
4284 rm -f conftest.$ac_ext
4285 CC=$ac_save_CC
4288 # AC_CACHE_VAL
4289 case "x$ac_cv_prog_cc_c89" in
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4292 $as_echo "none needed" >&6; } ;;
4293 xno)
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4295 $as_echo "unsupported" >&6; } ;;
4297 CC="$CC $ac_cv_prog_cc_c89"
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4299 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4300 esac
4301 if test "x$ac_cv_prog_cc_c89" != xno; then :
4305 ac_ext=c
4306 ac_cpp='$CPP $CPPFLAGS'
4307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4311 ac_ext=c
4312 ac_cpp='$CPP $CPPFLAGS'
4313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4317 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4318 if ${am_cv_prog_cc_c_o+:} false; then :
4319 $as_echo_n "(cached) " >&6
4320 else
4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h. */
4325 main ()
4329 return 0;
4331 _ACEOF
4332 # Make sure it works both with $CC and with simple cc.
4333 # Following AC_PROG_CC_C_O, we do the test twice because some
4334 # compilers refuse to overwrite an existing .o file with -o,
4335 # though they will create one.
4336 am_cv_prog_cc_c_o=yes
4337 for am_i in 1 2; do
4338 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4339 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4340 ac_status=$?
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } \
4343 && test -f conftest2.$ac_objext; then
4344 : OK
4345 else
4346 am_cv_prog_cc_c_o=no
4347 break
4349 done
4350 rm -f core conftest*
4351 unset am_i
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4354 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4355 if test "$am_cv_prog_cc_c_o" != yes; then
4356 # Losing compiler, so override with the script.
4357 # FIXME: It is wrong to rewrite CC.
4358 # But if we don't then we get into trouble of one sort or another.
4359 # A longer-term fix would be to have automake use am__CC in this case,
4360 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4361 CC="$am_aux_dir/compile $CC"
4363 ac_ext=c
4364 ac_cpp='$CPP $CPPFLAGS'
4365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4369 DEPDIR="${am__leading_dot}deps"
4371 ac_config_commands="$ac_config_commands depfiles"
4374 am_make=${MAKE-make}
4375 cat > confinc << 'END'
4376 am__doit:
4377 @echo this is the am__doit target
4378 .PHONY: am__doit
4380 # If we don't find an include directive, just comment out the code.
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4382 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4383 am__include="#"
4384 am__quote=
4385 _am_result=none
4386 # First try GNU make style include.
4387 echo "include confinc" > confmf
4388 # Ignore all kinds of additional output from 'make'.
4389 case `$am_make -s -f confmf 2> /dev/null` in #(
4390 *the\ am__doit\ target*)
4391 am__include=include
4392 am__quote=
4393 _am_result=GNU
4395 esac
4396 # Now try BSD make style include.
4397 if test "$am__include" = "#"; then
4398 echo '.include "confinc"' > confmf
4399 case `$am_make -s -f confmf 2> /dev/null` in #(
4400 *the\ am__doit\ target*)
4401 am__include=.include
4402 am__quote="\""
4403 _am_result=BSD
4405 esac
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4410 $as_echo "$_am_result" >&6; }
4411 rm -f confinc confmf
4413 # Check whether --enable-dependency-tracking was given.
4414 if test "${enable_dependency_tracking+set}" = set; then :
4415 enableval=$enable_dependency_tracking;
4418 if test "x$enable_dependency_tracking" != xno; then
4419 am_depcomp="$ac_aux_dir/depcomp"
4420 AMDEPBACKSLASH='\'
4421 am__nodep='_no'
4423 if test "x$enable_dependency_tracking" != xno; then
4424 AMDEP_TRUE=
4425 AMDEP_FALSE='#'
4426 else
4427 AMDEP_TRUE='#'
4428 AMDEP_FALSE=
4433 depcc="$CC" am_compiler_list=
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4436 $as_echo_n "checking dependency style of $depcc... " >&6; }
4437 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4438 $as_echo_n "(cached) " >&6
4439 else
4440 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4441 # We make a subdir and do the tests there. Otherwise we can end up
4442 # making bogus files that we don't know about and never remove. For
4443 # instance it was reported that on HP-UX the gcc test will end up
4444 # making a dummy file named 'D' -- because '-MD' means "put the output
4445 # in D".
4446 rm -rf conftest.dir
4447 mkdir conftest.dir
4448 # Copy depcomp to subdir because otherwise we won't find it if we're
4449 # using a relative directory.
4450 cp "$am_depcomp" conftest.dir
4451 cd conftest.dir
4452 # We will build objects and dependencies in a subdirectory because
4453 # it helps to detect inapplicable dependency modes. For instance
4454 # both Tru64's cc and ICC support -MD to output dependencies as a
4455 # side effect of compilation, but ICC will put the dependencies in
4456 # the current directory while Tru64 will put them in the object
4457 # directory.
4458 mkdir sub
4460 am_cv_CC_dependencies_compiler_type=none
4461 if test "$am_compiler_list" = ""; then
4462 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4464 am__universal=false
4465 case " $depcc " in #(
4466 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4467 esac
4469 for depmode in $am_compiler_list; do
4470 # Setup a source with many dependencies, because some compilers
4471 # like to wrap large dependency lists on column 80 (with \), and
4472 # we should not choose a depcomp mode which is confused by this.
4474 # We need to recreate these files for each test, as the compiler may
4475 # overwrite some of them when testing with obscure command lines.
4476 # This happens at least with the AIX C compiler.
4477 : > sub/conftest.c
4478 for i in 1 2 3 4 5 6; do
4479 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4480 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4481 # Solaris 10 /bin/sh.
4482 echo '/* dummy */' > sub/conftst$i.h
4483 done
4484 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4486 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4487 # mode. It turns out that the SunPro C++ compiler does not properly
4488 # handle '-M -o', and we need to detect this. Also, some Intel
4489 # versions had trouble with output in subdirs.
4490 am__obj=sub/conftest.${OBJEXT-o}
4491 am__minus_obj="-o $am__obj"
4492 case $depmode in
4493 gcc)
4494 # This depmode causes a compiler race in universal mode.
4495 test "$am__universal" = false || continue
4497 nosideeffect)
4498 # After this tag, mechanisms are not by side-effect, so they'll
4499 # only be used when explicitly requested.
4500 if test "x$enable_dependency_tracking" = xyes; then
4501 continue
4502 else
4503 break
4506 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4507 # This compiler won't grok '-c -o', but also, the minuso test has
4508 # not run yet. These depmodes are late enough in the game, and
4509 # so weak that their functioning should not be impacted.
4510 am__obj=conftest.${OBJEXT-o}
4511 am__minus_obj=
4513 none) break ;;
4514 esac
4515 if depmode=$depmode \
4516 source=sub/conftest.c object=$am__obj \
4517 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4518 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4519 >/dev/null 2>conftest.err &&
4520 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4521 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4522 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4523 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4524 # icc doesn't choke on unknown options, it will just issue warnings
4525 # or remarks (even with -Werror). So we grep stderr for any message
4526 # that says an option was ignored or not supported.
4527 # When given -MP, icc 7.0 and 7.1 complain thusly:
4528 # icc: Command line warning: ignoring option '-M'; no argument required
4529 # The diagnosis changed in icc 8.0:
4530 # icc: Command line remark: option '-MP' not supported
4531 if (grep 'ignoring option' conftest.err ||
4532 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4533 am_cv_CC_dependencies_compiler_type=$depmode
4534 break
4537 done
4539 cd ..
4540 rm -rf conftest.dir
4541 else
4542 am_cv_CC_dependencies_compiler_type=none
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4547 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4548 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4551 test "x$enable_dependency_tracking" != xno \
4552 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4553 am__fastdepCC_TRUE=
4554 am__fastdepCC_FALSE='#'
4555 else
4556 am__fastdepCC_TRUE='#'
4557 am__fastdepCC_FALSE=
4561 ac_ext=cpp
4562 ac_cpp='$CXXCPP $CPPFLAGS'
4563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4566 if test -z "$CXX"; then
4567 if test -n "$CCC"; then
4568 CXX=$CCC
4569 else
4570 if test -n "$ac_tool_prefix"; then
4571 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4573 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4574 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4576 $as_echo_n "checking for $ac_word... " >&6; }
4577 if ${ac_cv_prog_CXX+:} false; then :
4578 $as_echo_n "(cached) " >&6
4579 else
4580 if test -n "$CXX"; then
4581 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4582 else
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 for as_dir in $PATH
4586 IFS=$as_save_IFS
4587 test -z "$as_dir" && as_dir=.
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4590 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4592 break 2
4594 done
4595 done
4596 IFS=$as_save_IFS
4600 CXX=$ac_cv_prog_CXX
4601 if test -n "$CXX"; then
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4603 $as_echo "$CXX" >&6; }
4604 else
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4606 $as_echo "no" >&6; }
4610 test -n "$CXX" && break
4611 done
4613 if test -z "$CXX"; then
4614 ac_ct_CXX=$CXX
4615 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4617 # Extract the first word of "$ac_prog", so it can be a program name with args.
4618 set dummy $ac_prog; ac_word=$2
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4620 $as_echo_n "checking for $ac_word... " >&6; }
4621 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4622 $as_echo_n "(cached) " >&6
4623 else
4624 if test -n "$ac_ct_CXX"; then
4625 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4626 else
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 for as_dir in $PATH
4630 IFS=$as_save_IFS
4631 test -z "$as_dir" && as_dir=.
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4634 ac_cv_prog_ac_ct_CXX="$ac_prog"
4635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4636 break 2
4638 done
4639 done
4640 IFS=$as_save_IFS
4644 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4645 if test -n "$ac_ct_CXX"; then
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4647 $as_echo "$ac_ct_CXX" >&6; }
4648 else
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4650 $as_echo "no" >&6; }
4654 test -n "$ac_ct_CXX" && break
4655 done
4657 if test "x$ac_ct_CXX" = x; then
4658 CXX="g++"
4659 else
4660 case $cross_compiling:$ac_tool_warned in
4661 yes:)
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4664 ac_tool_warned=yes ;;
4665 esac
4666 CXX=$ac_ct_CXX
4672 # Provide some information about the compiler.
4673 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4674 set X $ac_compile
4675 ac_compiler=$2
4676 for ac_option in --version -v -V -qversion; do
4677 { { ac_try="$ac_compiler $ac_option >&5"
4678 case "(($ac_try" in
4679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4681 esac
4682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4683 $as_echo "$ac_try_echo"; } >&5
4684 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4685 ac_status=$?
4686 if test -s conftest.err; then
4687 sed '10a\
4688 ... rest of stderr output deleted ...
4689 10q' conftest.err >conftest.er1
4690 cat conftest.er1 >&5
4692 rm -f conftest.er1 conftest.err
4693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4694 test $ac_status = 0; }
4695 done
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4698 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4699 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4700 $as_echo_n "(cached) " >&6
4701 else
4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703 /* end confdefs.h. */
4706 main ()
4708 #ifndef __GNUC__
4709 choke me
4710 #endif
4713 return 0;
4715 _ACEOF
4716 if ac_fn_cxx_try_compile "$LINENO"; then :
4717 ac_compiler_gnu=yes
4718 else
4719 ac_compiler_gnu=no
4721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4722 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4726 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4727 if test $ac_compiler_gnu = yes; then
4728 GXX=yes
4729 else
4730 GXX=
4732 ac_test_CXXFLAGS=${CXXFLAGS+set}
4733 ac_save_CXXFLAGS=$CXXFLAGS
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4735 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4736 if ${ac_cv_prog_cxx_g+:} false; then :
4737 $as_echo_n "(cached) " >&6
4738 else
4739 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4740 ac_cxx_werror_flag=yes
4741 ac_cv_prog_cxx_g=no
4742 CXXFLAGS="-g"
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4747 main ()
4751 return 0;
4753 _ACEOF
4754 if ac_fn_cxx_try_compile "$LINENO"; then :
4755 ac_cv_prog_cxx_g=yes
4756 else
4757 CXXFLAGS=""
4758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4759 /* end confdefs.h. */
4762 main ()
4766 return 0;
4768 _ACEOF
4769 if ac_fn_cxx_try_compile "$LINENO"; then :
4771 else
4772 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4773 CXXFLAGS="-g"
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4778 main ()
4782 return 0;
4784 _ACEOF
4785 if ac_fn_cxx_try_compile "$LINENO"; then :
4786 ac_cv_prog_cxx_g=yes
4788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4793 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4796 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4797 if test "$ac_test_CXXFLAGS" = set; then
4798 CXXFLAGS=$ac_save_CXXFLAGS
4799 elif test $ac_cv_prog_cxx_g = yes; then
4800 if test "$GXX" = yes; then
4801 CXXFLAGS="-g -O2"
4802 else
4803 CXXFLAGS="-g"
4805 else
4806 if test "$GXX" = yes; then
4807 CXXFLAGS="-O2"
4808 else
4809 CXXFLAGS=
4812 ac_ext=c
4813 ac_cpp='$CPP $CPPFLAGS'
4814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4818 depcc="$CXX" am_compiler_list=
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4821 $as_echo_n "checking dependency style of $depcc... " >&6; }
4822 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4823 $as_echo_n "(cached) " >&6
4824 else
4825 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4826 # We make a subdir and do the tests there. Otherwise we can end up
4827 # making bogus files that we don't know about and never remove. For
4828 # instance it was reported that on HP-UX the gcc test will end up
4829 # making a dummy file named 'D' -- because '-MD' means "put the output
4830 # in D".
4831 rm -rf conftest.dir
4832 mkdir conftest.dir
4833 # Copy depcomp to subdir because otherwise we won't find it if we're
4834 # using a relative directory.
4835 cp "$am_depcomp" conftest.dir
4836 cd conftest.dir
4837 # We will build objects and dependencies in a subdirectory because
4838 # it helps to detect inapplicable dependency modes. For instance
4839 # both Tru64's cc and ICC support -MD to output dependencies as a
4840 # side effect of compilation, but ICC will put the dependencies in
4841 # the current directory while Tru64 will put them in the object
4842 # directory.
4843 mkdir sub
4845 am_cv_CXX_dependencies_compiler_type=none
4846 if test "$am_compiler_list" = ""; then
4847 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4849 am__universal=false
4850 case " $depcc " in #(
4851 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4852 esac
4854 for depmode in $am_compiler_list; do
4855 # Setup a source with many dependencies, because some compilers
4856 # like to wrap large dependency lists on column 80 (with \), and
4857 # we should not choose a depcomp mode which is confused by this.
4859 # We need to recreate these files for each test, as the compiler may
4860 # overwrite some of them when testing with obscure command lines.
4861 # This happens at least with the AIX C compiler.
4862 : > sub/conftest.c
4863 for i in 1 2 3 4 5 6; do
4864 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4865 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4866 # Solaris 10 /bin/sh.
4867 echo '/* dummy */' > sub/conftst$i.h
4868 done
4869 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4871 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4872 # mode. It turns out that the SunPro C++ compiler does not properly
4873 # handle '-M -o', and we need to detect this. Also, some Intel
4874 # versions had trouble with output in subdirs.
4875 am__obj=sub/conftest.${OBJEXT-o}
4876 am__minus_obj="-o $am__obj"
4877 case $depmode in
4878 gcc)
4879 # This depmode causes a compiler race in universal mode.
4880 test "$am__universal" = false || continue
4882 nosideeffect)
4883 # After this tag, mechanisms are not by side-effect, so they'll
4884 # only be used when explicitly requested.
4885 if test "x$enable_dependency_tracking" = xyes; then
4886 continue
4887 else
4888 break
4891 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4892 # This compiler won't grok '-c -o', but also, the minuso test has
4893 # not run yet. These depmodes are late enough in the game, and
4894 # so weak that their functioning should not be impacted.
4895 am__obj=conftest.${OBJEXT-o}
4896 am__minus_obj=
4898 none) break ;;
4899 esac
4900 if depmode=$depmode \
4901 source=sub/conftest.c object=$am__obj \
4902 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4903 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4904 >/dev/null 2>conftest.err &&
4905 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4906 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4907 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4908 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4909 # icc doesn't choke on unknown options, it will just issue warnings
4910 # or remarks (even with -Werror). So we grep stderr for any message
4911 # that says an option was ignored or not supported.
4912 # When given -MP, icc 7.0 and 7.1 complain thusly:
4913 # icc: Command line warning: ignoring option '-M'; no argument required
4914 # The diagnosis changed in icc 8.0:
4915 # icc: Command line remark: option '-MP' not supported
4916 if (grep 'ignoring option' conftest.err ||
4917 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4918 am_cv_CXX_dependencies_compiler_type=$depmode
4919 break
4922 done
4924 cd ..
4925 rm -rf conftest.dir
4926 else
4927 am_cv_CXX_dependencies_compiler_type=none
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4932 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4933 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4936 test "x$enable_dependency_tracking" != xno \
4937 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4938 am__fastdepCXX_TRUE=
4939 am__fastdepCXX_FALSE='#'
4940 else
4941 am__fastdepCXX_TRUE='#'
4942 am__fastdepCXX_FALSE=
4946 CFLAGS=$save_CFLAGS
4952 # By default we simply use the C compiler to build assembly code.
4954 test "${CCAS+set}" = set || CCAS=$CC
4955 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4959 depcc="$CCAS" am_compiler_list=
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4962 $as_echo_n "checking dependency style of $depcc... " >&6; }
4963 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4964 $as_echo_n "(cached) " >&6
4965 else
4966 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4967 # We make a subdir and do the tests there. Otherwise we can end up
4968 # making bogus files that we don't know about and never remove. For
4969 # instance it was reported that on HP-UX the gcc test will end up
4970 # making a dummy file named 'D' -- because '-MD' means "put the output
4971 # in D".
4972 rm -rf conftest.dir
4973 mkdir conftest.dir
4974 # Copy depcomp to subdir because otherwise we won't find it if we're
4975 # using a relative directory.
4976 cp "$am_depcomp" conftest.dir
4977 cd conftest.dir
4978 # We will build objects and dependencies in a subdirectory because
4979 # it helps to detect inapplicable dependency modes. For instance
4980 # both Tru64's cc and ICC support -MD to output dependencies as a
4981 # side effect of compilation, but ICC will put the dependencies in
4982 # the current directory while Tru64 will put them in the object
4983 # directory.
4984 mkdir sub
4986 am_cv_CCAS_dependencies_compiler_type=none
4987 if test "$am_compiler_list" = ""; then
4988 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4990 am__universal=false
4993 for depmode in $am_compiler_list; do
4994 # Setup a source with many dependencies, because some compilers
4995 # like to wrap large dependency lists on column 80 (with \), and
4996 # we should not choose a depcomp mode which is confused by this.
4998 # We need to recreate these files for each test, as the compiler may
4999 # overwrite some of them when testing with obscure command lines.
5000 # This happens at least with the AIX C compiler.
5001 : > sub/conftest.c
5002 for i in 1 2 3 4 5 6; do
5003 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5004 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5005 # Solaris 10 /bin/sh.
5006 echo '/* dummy */' > sub/conftst$i.h
5007 done
5008 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5010 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5011 # mode. It turns out that the SunPro C++ compiler does not properly
5012 # handle '-M -o', and we need to detect this. Also, some Intel
5013 # versions had trouble with output in subdirs.
5014 am__obj=sub/conftest.${OBJEXT-o}
5015 am__minus_obj="-o $am__obj"
5016 case $depmode in
5017 gcc)
5018 # This depmode causes a compiler race in universal mode.
5019 test "$am__universal" = false || continue
5021 nosideeffect)
5022 # After this tag, mechanisms are not by side-effect, so they'll
5023 # only be used when explicitly requested.
5024 if test "x$enable_dependency_tracking" = xyes; then
5025 continue
5026 else
5027 break
5030 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5031 # This compiler won't grok '-c -o', but also, the minuso test has
5032 # not run yet. These depmodes are late enough in the game, and
5033 # so weak that their functioning should not be impacted.
5034 am__obj=conftest.${OBJEXT-o}
5035 am__minus_obj=
5037 none) break ;;
5038 esac
5039 if depmode=$depmode \
5040 source=sub/conftest.c object=$am__obj \
5041 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5042 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5043 >/dev/null 2>conftest.err &&
5044 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5045 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5046 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5047 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5048 # icc doesn't choke on unknown options, it will just issue warnings
5049 # or remarks (even with -Werror). So we grep stderr for any message
5050 # that says an option was ignored or not supported.
5051 # When given -MP, icc 7.0 and 7.1 complain thusly:
5052 # icc: Command line warning: ignoring option '-M'; no argument required
5053 # The diagnosis changed in icc 8.0:
5054 # icc: Command line remark: option '-MP' not supported
5055 if (grep 'ignoring option' conftest.err ||
5056 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5057 am_cv_CCAS_dependencies_compiler_type=$depmode
5058 break
5061 done
5063 cd ..
5064 rm -rf conftest.dir
5065 else
5066 am_cv_CCAS_dependencies_compiler_type=none
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5071 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5072 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5075 test "x$enable_dependency_tracking" != xno \
5076 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5077 am__fastdepCCAS_TRUE=
5078 am__fastdepCCAS_FALSE='#'
5079 else
5080 am__fastdepCCAS_TRUE='#'
5081 am__fastdepCCAS_FALSE=
5086 case `pwd` in
5087 *\ * | *\ *)
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5089 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5090 esac
5094 macro_version='2.2.7a'
5095 macro_revision='1.3134'
5109 ltmain="$ac_aux_dir/ltmain.sh"
5111 # Backslashify metacharacters that are still active within
5112 # double-quoted strings.
5113 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5115 # Same as above, but do not quote variable references.
5116 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5118 # Sed substitution to delay expansion of an escaped shell variable in a
5119 # double_quote_subst'ed string.
5120 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5122 # Sed substitution to delay expansion of an escaped single quote.
5123 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5125 # Sed substitution to avoid accidental globbing in evaled expressions
5126 no_glob_subst='s/\*/\\\*/g'
5128 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5129 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5130 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5133 $as_echo_n "checking how to print strings... " >&6; }
5134 # Test print first, because it will be a builtin if present.
5135 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5136 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5137 ECHO='print -r --'
5138 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5139 ECHO='printf %s\n'
5140 else
5141 # Use this function as a fallback that always works.
5142 func_fallback_echo ()
5144 eval 'cat <<_LTECHO_EOF
5146 _LTECHO_EOF'
5148 ECHO='func_fallback_echo'
5151 # func_echo_all arg...
5152 # Invoke $ECHO with all args, space-separated.
5153 func_echo_all ()
5155 $ECHO ""
5158 case "$ECHO" in
5159 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5160 $as_echo "printf" >&6; } ;;
5161 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5162 $as_echo "print -r" >&6; } ;;
5163 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5164 $as_echo "cat" >&6; } ;;
5165 esac
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5181 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5182 if ${ac_cv_path_SED+:} false; then :
5183 $as_echo_n "(cached) " >&6
5184 else
5185 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5186 for ac_i in 1 2 3 4 5 6 7; do
5187 ac_script="$ac_script$as_nl$ac_script"
5188 done
5189 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5190 { ac_script=; unset ac_script;}
5191 if test -z "$SED"; then
5192 ac_path_SED_found=false
5193 # Loop through the user's path and test for each of PROGNAME-LIST
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_prog in sed gsed; do
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5202 as_fn_executable_p "$ac_path_SED" || continue
5203 # Check for GNU ac_path_SED and select it if it is found.
5204 # Check for GNU $ac_path_SED
5205 case `"$ac_path_SED" --version 2>&1` in
5206 *GNU*)
5207 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5209 ac_count=0
5210 $as_echo_n 0123456789 >"conftest.in"
5211 while :
5213 cat "conftest.in" "conftest.in" >"conftest.tmp"
5214 mv "conftest.tmp" "conftest.in"
5215 cp "conftest.in" "conftest.nl"
5216 $as_echo '' >> "conftest.nl"
5217 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5219 as_fn_arith $ac_count + 1 && ac_count=$as_val
5220 if test $ac_count -gt ${ac_path_SED_max-0}; then
5221 # Best one so far, save it but keep looking for a better one
5222 ac_cv_path_SED="$ac_path_SED"
5223 ac_path_SED_max=$ac_count
5225 # 10*(2^10) chars as input seems more than enough
5226 test $ac_count -gt 10 && break
5227 done
5228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5229 esac
5231 $ac_path_SED_found && break 3
5232 done
5233 done
5234 done
5235 IFS=$as_save_IFS
5236 if test -z "$ac_cv_path_SED"; then
5237 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5239 else
5240 ac_cv_path_SED=$SED
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5245 $as_echo "$ac_cv_path_SED" >&6; }
5246 SED="$ac_cv_path_SED"
5247 rm -f conftest.sed
5249 test -z "$SED" && SED=sed
5250 Xsed="$SED -e 1s/^X//"
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5263 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5264 if ${ac_cv_path_GREP+:} false; then :
5265 $as_echo_n "(cached) " >&6
5266 else
5267 if test -z "$GREP"; then
5268 ac_path_GREP_found=false
5269 # Loop through the user's path and test for each of PROGNAME-LIST
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5273 IFS=$as_save_IFS
5274 test -z "$as_dir" && as_dir=.
5275 for ac_prog in grep ggrep; do
5276 for ac_exec_ext in '' $ac_executable_extensions; do
5277 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5278 as_fn_executable_p "$ac_path_GREP" || continue
5279 # Check for GNU ac_path_GREP and select it if it is found.
5280 # Check for GNU $ac_path_GREP
5281 case `"$ac_path_GREP" --version 2>&1` in
5282 *GNU*)
5283 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5285 ac_count=0
5286 $as_echo_n 0123456789 >"conftest.in"
5287 while :
5289 cat "conftest.in" "conftest.in" >"conftest.tmp"
5290 mv "conftest.tmp" "conftest.in"
5291 cp "conftest.in" "conftest.nl"
5292 $as_echo 'GREP' >> "conftest.nl"
5293 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5294 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5295 as_fn_arith $ac_count + 1 && ac_count=$as_val
5296 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5297 # Best one so far, save it but keep looking for a better one
5298 ac_cv_path_GREP="$ac_path_GREP"
5299 ac_path_GREP_max=$ac_count
5301 # 10*(2^10) chars as input seems more than enough
5302 test $ac_count -gt 10 && break
5303 done
5304 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5305 esac
5307 $ac_path_GREP_found && break 3
5308 done
5309 done
5310 done
5311 IFS=$as_save_IFS
5312 if test -z "$ac_cv_path_GREP"; then
5313 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5315 else
5316 ac_cv_path_GREP=$GREP
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5321 $as_echo "$ac_cv_path_GREP" >&6; }
5322 GREP="$ac_cv_path_GREP"
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5326 $as_echo_n "checking for egrep... " >&6; }
5327 if ${ac_cv_path_EGREP+:} false; then :
5328 $as_echo_n "(cached) " >&6
5329 else
5330 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5331 then ac_cv_path_EGREP="$GREP -E"
5332 else
5333 if test -z "$EGREP"; then
5334 ac_path_EGREP_found=false
5335 # Loop through the user's path and test for each of PROGNAME-LIST
5336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5339 IFS=$as_save_IFS
5340 test -z "$as_dir" && as_dir=.
5341 for ac_prog in egrep; do
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5344 as_fn_executable_p "$ac_path_EGREP" || continue
5345 # Check for GNU ac_path_EGREP and select it if it is found.
5346 # Check for GNU $ac_path_EGREP
5347 case `"$ac_path_EGREP" --version 2>&1` in
5348 *GNU*)
5349 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5351 ac_count=0
5352 $as_echo_n 0123456789 >"conftest.in"
5353 while :
5355 cat "conftest.in" "conftest.in" >"conftest.tmp"
5356 mv "conftest.tmp" "conftest.in"
5357 cp "conftest.in" "conftest.nl"
5358 $as_echo 'EGREP' >> "conftest.nl"
5359 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5360 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5361 as_fn_arith $ac_count + 1 && ac_count=$as_val
5362 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5363 # Best one so far, save it but keep looking for a better one
5364 ac_cv_path_EGREP="$ac_path_EGREP"
5365 ac_path_EGREP_max=$ac_count
5367 # 10*(2^10) chars as input seems more than enough
5368 test $ac_count -gt 10 && break
5369 done
5370 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5371 esac
5373 $ac_path_EGREP_found && break 3
5374 done
5375 done
5376 done
5377 IFS=$as_save_IFS
5378 if test -z "$ac_cv_path_EGREP"; then
5379 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5381 else
5382 ac_cv_path_EGREP=$EGREP
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5388 $as_echo "$ac_cv_path_EGREP" >&6; }
5389 EGREP="$ac_cv_path_EGREP"
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5393 $as_echo_n "checking for fgrep... " >&6; }
5394 if ${ac_cv_path_FGREP+:} false; then :
5395 $as_echo_n "(cached) " >&6
5396 else
5397 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5398 then ac_cv_path_FGREP="$GREP -F"
5399 else
5400 if test -z "$FGREP"; then
5401 ac_path_FGREP_found=false
5402 # Loop through the user's path and test for each of PROGNAME-LIST
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5406 IFS=$as_save_IFS
5407 test -z "$as_dir" && as_dir=.
5408 for ac_prog in fgrep; do
5409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5411 as_fn_executable_p "$ac_path_FGREP" || continue
5412 # Check for GNU ac_path_FGREP and select it if it is found.
5413 # Check for GNU $ac_path_FGREP
5414 case `"$ac_path_FGREP" --version 2>&1` in
5415 *GNU*)
5416 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5418 ac_count=0
5419 $as_echo_n 0123456789 >"conftest.in"
5420 while :
5422 cat "conftest.in" "conftest.in" >"conftest.tmp"
5423 mv "conftest.tmp" "conftest.in"
5424 cp "conftest.in" "conftest.nl"
5425 $as_echo 'FGREP' >> "conftest.nl"
5426 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5427 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5428 as_fn_arith $ac_count + 1 && ac_count=$as_val
5429 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5430 # Best one so far, save it but keep looking for a better one
5431 ac_cv_path_FGREP="$ac_path_FGREP"
5432 ac_path_FGREP_max=$ac_count
5434 # 10*(2^10) chars as input seems more than enough
5435 test $ac_count -gt 10 && break
5436 done
5437 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5438 esac
5440 $ac_path_FGREP_found && break 3
5441 done
5442 done
5443 done
5444 IFS=$as_save_IFS
5445 if test -z "$ac_cv_path_FGREP"; then
5446 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5448 else
5449 ac_cv_path_FGREP=$FGREP
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5455 $as_echo "$ac_cv_path_FGREP" >&6; }
5456 FGREP="$ac_cv_path_FGREP"
5459 test -z "$GREP" && GREP=grep
5479 # Check whether --with-gnu-ld was given.
5480 if test "${with_gnu_ld+set}" = set; then :
5481 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5482 else
5483 with_gnu_ld=no
5486 ac_prog=ld
5487 if test "$GCC" = yes; then
5488 # Check if gcc -print-prog-name=ld gives a path.
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5490 $as_echo_n "checking for ld used by $CC... " >&6; }
5491 case $host in
5492 *-*-mingw*)
5493 # gcc leaves a trailing carriage return which upsets mingw
5494 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5496 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5497 esac
5498 case $ac_prog in
5499 # Accept absolute paths.
5500 [\\/]* | ?:[\\/]*)
5501 re_direlt='/[^/][^/]*/\.\./'
5502 # Canonicalize the pathname of ld
5503 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5504 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5505 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5506 done
5507 test -z "$LD" && LD="$ac_prog"
5510 # If it fails, then pretend we aren't using GCC.
5511 ac_prog=ld
5514 # If it is relative, then search for the first ld in PATH.
5515 with_gnu_ld=unknown
5517 esac
5518 elif test "$with_gnu_ld" = yes; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5520 $as_echo_n "checking for GNU ld... " >&6; }
5521 else
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5523 $as_echo_n "checking for non-GNU ld... " >&6; }
5525 if ${lt_cv_path_LD+:} false; then :
5526 $as_echo_n "(cached) " >&6
5527 else
5528 if test -z "$LD"; then
5529 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5530 for ac_dir in $PATH; do
5531 IFS="$lt_save_ifs"
5532 test -z "$ac_dir" && ac_dir=.
5533 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5534 lt_cv_path_LD="$ac_dir/$ac_prog"
5535 # Check to see if the program is GNU ld. I'd rather use --version,
5536 # but apparently some variants of GNU ld only accept -v.
5537 # Break only if it was the GNU/non-GNU ld that we prefer.
5538 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5539 *GNU* | *'with BFD'*)
5540 test "$with_gnu_ld" != no && break
5543 test "$with_gnu_ld" != yes && break
5545 esac
5547 done
5548 IFS="$lt_save_ifs"
5549 else
5550 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5554 LD="$lt_cv_path_LD"
5555 if test -n "$LD"; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5557 $as_echo "$LD" >&6; }
5558 else
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5560 $as_echo "no" >&6; }
5562 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5564 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5565 if ${lt_cv_prog_gnu_ld+:} false; then :
5566 $as_echo_n "(cached) " >&6
5567 else
5568 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5569 case `$LD -v 2>&1 </dev/null` in
5570 *GNU* | *'with BFD'*)
5571 lt_cv_prog_gnu_ld=yes
5574 lt_cv_prog_gnu_ld=no
5576 esac
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5579 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5580 with_gnu_ld=$lt_cv_prog_gnu_ld
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5591 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5592 if ${lt_cv_path_NM+:} false; then :
5593 $as_echo_n "(cached) " >&6
5594 else
5595 if test -n "$NM"; then
5596 # Let the user override the test.
5597 lt_cv_path_NM="$NM"
5598 else
5599 lt_nm_to_check="${ac_tool_prefix}nm"
5600 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5601 lt_nm_to_check="$lt_nm_to_check nm"
5603 for lt_tmp_nm in $lt_nm_to_check; do
5604 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5605 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5606 IFS="$lt_save_ifs"
5607 test -z "$ac_dir" && ac_dir=.
5608 tmp_nm="$ac_dir/$lt_tmp_nm"
5609 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5610 # Check to see if the nm accepts a BSD-compat flag.
5611 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5612 # nm: unknown option "B" ignored
5613 # Tru64's nm complains that /dev/null is an invalid object file
5614 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5615 */dev/null* | *'Invalid file or object type'*)
5616 lt_cv_path_NM="$tmp_nm -B"
5617 break
5620 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5621 */dev/null*)
5622 lt_cv_path_NM="$tmp_nm -p"
5623 break
5626 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5627 continue # so that we can try to find one that supports BSD flags
5629 esac
5631 esac
5633 done
5634 IFS="$lt_save_ifs"
5635 done
5636 : ${lt_cv_path_NM=no}
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5640 $as_echo "$lt_cv_path_NM" >&6; }
5641 if test "$lt_cv_path_NM" != "no"; then
5642 NM="$lt_cv_path_NM"
5643 else
5644 # Didn't find any BSD compatible name lister, look for dumpbin.
5645 if test -n "$DUMPBIN"; then :
5646 # Let the user override the test.
5647 else
5648 if test -n "$ac_tool_prefix"; then
5649 for ac_prog in dumpbin "link -dump"
5651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5654 $as_echo_n "checking for $ac_word... " >&6; }
5655 if ${ac_cv_prog_DUMPBIN+:} false; then :
5656 $as_echo_n "(cached) " >&6
5657 else
5658 if test -n "$DUMPBIN"; then
5659 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5660 else
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662 for as_dir in $PATH
5664 IFS=$as_save_IFS
5665 test -z "$as_dir" && as_dir=.
5666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5668 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 break 2
5672 done
5673 done
5674 IFS=$as_save_IFS
5678 DUMPBIN=$ac_cv_prog_DUMPBIN
5679 if test -n "$DUMPBIN"; then
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5681 $as_echo "$DUMPBIN" >&6; }
5682 else
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684 $as_echo "no" >&6; }
5688 test -n "$DUMPBIN" && break
5689 done
5691 if test -z "$DUMPBIN"; then
5692 ac_ct_DUMPBIN=$DUMPBIN
5693 for ac_prog in dumpbin "link -dump"
5695 # Extract the first word of "$ac_prog", so it can be a program name with args.
5696 set dummy $ac_prog; ac_word=$2
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698 $as_echo_n "checking for $ac_word... " >&6; }
5699 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5700 $as_echo_n "(cached) " >&6
5701 else
5702 if test -n "$ac_ct_DUMPBIN"; then
5703 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5704 else
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 for as_dir in $PATH
5708 IFS=$as_save_IFS
5709 test -z "$as_dir" && as_dir=.
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5712 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 break 2
5716 done
5717 done
5718 IFS=$as_save_IFS
5722 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5723 if test -n "$ac_ct_DUMPBIN"; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5725 $as_echo "$ac_ct_DUMPBIN" >&6; }
5726 else
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 $as_echo "no" >&6; }
5732 test -n "$ac_ct_DUMPBIN" && break
5733 done
5735 if test "x$ac_ct_DUMPBIN" = x; then
5736 DUMPBIN=":"
5737 else
5738 case $cross_compiling:$ac_tool_warned in
5739 yes:)
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5742 ac_tool_warned=yes ;;
5743 esac
5744 DUMPBIN=$ac_ct_DUMPBIN
5748 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5749 *COFF*)
5750 DUMPBIN="$DUMPBIN -symbols"
5753 DUMPBIN=:
5755 esac
5758 if test "$DUMPBIN" != ":"; then
5759 NM="$DUMPBIN"
5762 test -z "$NM" && NM=nm
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5770 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5771 if ${lt_cv_nm_interface+:} false; then :
5772 $as_echo_n "(cached) " >&6
5773 else
5774 lt_cv_nm_interface="BSD nm"
5775 echo "int some_variable = 0;" > conftest.$ac_ext
5776 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5777 (eval "$ac_compile" 2>conftest.err)
5778 cat conftest.err >&5
5779 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5780 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5781 cat conftest.err >&5
5782 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5783 cat conftest.out >&5
5784 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5785 lt_cv_nm_interface="MS dumpbin"
5787 rm -f conftest*
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5790 $as_echo "$lt_cv_nm_interface" >&6; }
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5793 $as_echo_n "checking whether ln -s works... " >&6; }
5794 LN_S=$as_ln_s
5795 if test "$LN_S" = "ln -s"; then
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5797 $as_echo "yes" >&6; }
5798 else
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5800 $as_echo "no, using $LN_S" >&6; }
5803 # find the maximum length of command line arguments
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5805 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5806 if ${lt_cv_sys_max_cmd_len+:} false; then :
5807 $as_echo_n "(cached) " >&6
5808 else
5810 teststring="ABCD"
5812 case $build_os in
5813 msdosdjgpp*)
5814 # On DJGPP, this test can blow up pretty badly due to problems in libc
5815 # (any single argument exceeding 2000 bytes causes a buffer overrun
5816 # during glob expansion). Even if it were fixed, the result of this
5817 # check would be larger than it should be.
5818 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5821 gnu*)
5822 # Under GNU Hurd, this test is not required because there is
5823 # no limit to the length of command line arguments.
5824 # Libtool will interpret -1 as no limit whatsoever
5825 lt_cv_sys_max_cmd_len=-1;
5828 cygwin* | mingw* | cegcc*)
5829 # On Win9x/ME, this test blows up -- it succeeds, but takes
5830 # about 5 minutes as the teststring grows exponentially.
5831 # Worse, since 9x/ME are not pre-emptively multitasking,
5832 # you end up with a "frozen" computer, even though with patience
5833 # the test eventually succeeds (with a max line length of 256k).
5834 # Instead, let's just punt: use the minimum linelength reported by
5835 # all of the supported platforms: 8192 (on NT/2K/XP).
5836 lt_cv_sys_max_cmd_len=8192;
5839 mint*)
5840 # On MiNT this can take a long time and run out of memory.
5841 lt_cv_sys_max_cmd_len=8192;
5844 amigaos*)
5845 # On AmigaOS with pdksh, this test takes hours, literally.
5846 # So we just punt and use a minimum line length of 8192.
5847 lt_cv_sys_max_cmd_len=8192;
5850 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5851 # This has been around since 386BSD, at least. Likely further.
5852 if test -x /sbin/sysctl; then
5853 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5854 elif test -x /usr/sbin/sysctl; then
5855 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5856 else
5857 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5859 # And add a safety zone
5860 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5861 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5864 interix*)
5865 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5866 lt_cv_sys_max_cmd_len=196608
5869 osf*)
5870 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5871 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5872 # nice to cause kernel panics so lets avoid the loop below.
5873 # First set a reasonable default.
5874 lt_cv_sys_max_cmd_len=16384
5876 if test -x /sbin/sysconfig; then
5877 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5878 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5879 esac
5882 sco3.2v5*)
5883 lt_cv_sys_max_cmd_len=102400
5885 sysv5* | sco5v6* | sysv4.2uw2*)
5886 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5887 if test -n "$kargmax"; then
5888 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5889 else
5890 lt_cv_sys_max_cmd_len=32768
5894 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5895 if test -n "$lt_cv_sys_max_cmd_len"; then
5896 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5897 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5898 else
5899 # Make teststring a little bigger before we do anything with it.
5900 # a 1K string should be a reasonable start.
5901 for i in 1 2 3 4 5 6 7 8 ; do
5902 teststring=$teststring$teststring
5903 done
5904 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5905 # If test is not a shell built-in, we'll probably end up computing a
5906 # maximum length that is only half of the actual maximum length, but
5907 # we can't tell.
5908 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5909 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5910 test $i != 17 # 1/2 MB should be enough
5912 i=`expr $i + 1`
5913 teststring=$teststring$teststring
5914 done
5915 # Only check the string length outside the loop.
5916 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5917 teststring=
5918 # Add a significant safety factor because C++ compilers can tack on
5919 # massive amounts of additional arguments before passing them to the
5920 # linker. It appears as though 1/2 is a usable value.
5921 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5924 esac
5928 if test -n $lt_cv_sys_max_cmd_len ; then
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5930 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5931 else
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5933 $as_echo "none" >&6; }
5935 max_cmd_len=$lt_cv_sys_max_cmd_len
5942 : ${CP="cp -f"}
5943 : ${MV="mv -f"}
5944 : ${RM="rm -f"}
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5947 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5948 # Try some XSI features
5949 xsi_shell=no
5950 ( _lt_dummy="a/b/c"
5951 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5952 = c,a/b,, \
5953 && eval 'test $(( 1 + 1 )) -eq 2 \
5954 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5955 && xsi_shell=yes
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5957 $as_echo "$xsi_shell" >&6; }
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5961 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5962 lt_shell_append=no
5963 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5964 >/dev/null 2>&1 \
5965 && lt_shell_append=yes
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5967 $as_echo "$lt_shell_append" >&6; }
5970 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5971 lt_unset=unset
5972 else
5973 lt_unset=false
5980 # test EBCDIC or ASCII
5981 case `echo X|tr X '\101'` in
5982 A) # ASCII based system
5983 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5984 lt_SP2NL='tr \040 \012'
5985 lt_NL2SP='tr \015\012 \040\040'
5987 *) # EBCDIC based system
5988 lt_SP2NL='tr \100 \n'
5989 lt_NL2SP='tr \r\n \100\100'
5991 esac
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6002 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6003 if ${lt_cv_ld_reload_flag+:} false; then :
6004 $as_echo_n "(cached) " >&6
6005 else
6006 lt_cv_ld_reload_flag='-r'
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6009 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6010 reload_flag=$lt_cv_ld_reload_flag
6011 case $reload_flag in
6012 "" | " "*) ;;
6013 *) reload_flag=" $reload_flag" ;;
6014 esac
6015 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6016 case $host_os in
6017 darwin*)
6018 if test "$GCC" = yes; then
6019 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6020 else
6021 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6024 esac
6034 if test -n "$ac_tool_prefix"; then
6035 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6036 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6038 $as_echo_n "checking for $ac_word... " >&6; }
6039 if ${ac_cv_prog_OBJDUMP+:} false; then :
6040 $as_echo_n "(cached) " >&6
6041 else
6042 if test -n "$OBJDUMP"; then
6043 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6044 else
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046 for as_dir in $PATH
6048 IFS=$as_save_IFS
6049 test -z "$as_dir" && as_dir=.
6050 for ac_exec_ext in '' $ac_executable_extensions; do
6051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6052 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6054 break 2
6056 done
6057 done
6058 IFS=$as_save_IFS
6062 OBJDUMP=$ac_cv_prog_OBJDUMP
6063 if test -n "$OBJDUMP"; then
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6065 $as_echo "$OBJDUMP" >&6; }
6066 else
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068 $as_echo "no" >&6; }
6073 if test -z "$ac_cv_prog_OBJDUMP"; then
6074 ac_ct_OBJDUMP=$OBJDUMP
6075 # Extract the first word of "objdump", so it can be a program name with args.
6076 set dummy objdump; ac_word=$2
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078 $as_echo_n "checking for $ac_word... " >&6; }
6079 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6080 $as_echo_n "(cached) " >&6
6081 else
6082 if test -n "$ac_ct_OBJDUMP"; then
6083 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6084 else
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086 for as_dir in $PATH
6088 IFS=$as_save_IFS
6089 test -z "$as_dir" && as_dir=.
6090 for ac_exec_ext in '' $ac_executable_extensions; do
6091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6092 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6094 break 2
6096 done
6097 done
6098 IFS=$as_save_IFS
6102 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6103 if test -n "$ac_ct_OBJDUMP"; then
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6105 $as_echo "$ac_ct_OBJDUMP" >&6; }
6106 else
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108 $as_echo "no" >&6; }
6111 if test "x$ac_ct_OBJDUMP" = x; then
6112 OBJDUMP="false"
6113 else
6114 case $cross_compiling:$ac_tool_warned in
6115 yes:)
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6118 ac_tool_warned=yes ;;
6119 esac
6120 OBJDUMP=$ac_ct_OBJDUMP
6122 else
6123 OBJDUMP="$ac_cv_prog_OBJDUMP"
6126 test -z "$OBJDUMP" && OBJDUMP=objdump
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6137 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6138 if ${lt_cv_deplibs_check_method+:} false; then :
6139 $as_echo_n "(cached) " >&6
6140 else
6141 lt_cv_file_magic_cmd='$MAGIC_CMD'
6142 lt_cv_file_magic_test_file=
6143 lt_cv_deplibs_check_method='unknown'
6144 # Need to set the preceding variable on all platforms that support
6145 # interlibrary dependencies.
6146 # 'none' -- dependencies not supported.
6147 # `unknown' -- same as none, but documents that we really don't know.
6148 # 'pass_all' -- all dependencies passed with no checks.
6149 # 'test_compile' -- check by making test program.
6150 # 'file_magic [[regex]]' -- check by looking for files in library path
6151 # which responds to the $file_magic_cmd with a given extended regex.
6152 # If you have `file' or equivalent on your system and you're not sure
6153 # whether `pass_all' will *always* work, you probably want this one.
6155 case $host_os in
6156 aix[4-9]*)
6157 lt_cv_deplibs_check_method=pass_all
6160 beos*)
6161 lt_cv_deplibs_check_method=pass_all
6164 bsdi[45]*)
6165 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6166 lt_cv_file_magic_cmd='/usr/bin/file -L'
6167 lt_cv_file_magic_test_file=/shlib/libc.so
6170 cygwin*)
6171 # func_win32_libid is a shell function defined in ltmain.sh
6172 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6173 lt_cv_file_magic_cmd='func_win32_libid'
6176 mingw* | pw32*)
6177 # Base MSYS/MinGW do not provide the 'file' command needed by
6178 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6179 # unless we find 'file', for example because we are cross-compiling.
6180 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6181 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6182 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6183 lt_cv_file_magic_cmd='func_win32_libid'
6184 else
6185 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6186 lt_cv_file_magic_cmd='$OBJDUMP -f'
6190 cegcc*)
6191 # use the weaker test based on 'objdump'. See mingw*.
6192 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6193 lt_cv_file_magic_cmd='$OBJDUMP -f'
6196 darwin* | rhapsody*)
6197 lt_cv_deplibs_check_method=pass_all
6200 freebsd* | dragonfly*)
6201 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6202 case $host_cpu in
6203 i*86 )
6204 # Not sure whether the presence of OpenBSD here was a mistake.
6205 # Let's accept both of them until this is cleared up.
6206 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6207 lt_cv_file_magic_cmd=/usr/bin/file
6208 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6210 esac
6211 else
6212 lt_cv_deplibs_check_method=pass_all
6216 gnu*)
6217 lt_cv_deplibs_check_method=pass_all
6220 haiku*)
6221 lt_cv_deplibs_check_method=pass_all
6224 hpux10.20* | hpux11*)
6225 lt_cv_file_magic_cmd=/usr/bin/file
6226 case $host_cpu in
6227 ia64*)
6228 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6229 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6231 hppa*64*)
6232 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6233 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6236 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6237 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6239 esac
6242 interix[3-9]*)
6243 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6244 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6247 irix5* | irix6* | nonstopux*)
6248 case $LD in
6249 *-32|*"-32 ") libmagic=32-bit;;
6250 *-n32|*"-n32 ") libmagic=N32;;
6251 *-64|*"-64 ") libmagic=64-bit;;
6252 *) libmagic=never-match;;
6253 esac
6254 lt_cv_deplibs_check_method=pass_all
6257 # This must be Linux ELF.
6258 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6259 lt_cv_deplibs_check_method=pass_all
6262 netbsd*)
6263 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6265 else
6266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6270 newos6*)
6271 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6272 lt_cv_file_magic_cmd=/usr/bin/file
6273 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6276 *nto* | *qnx*)
6277 lt_cv_deplibs_check_method=pass_all
6280 openbsd*)
6281 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6283 else
6284 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6288 osf3* | osf4* | osf5*)
6289 lt_cv_deplibs_check_method=pass_all
6292 rdos*)
6293 lt_cv_deplibs_check_method=pass_all
6296 solaris*)
6297 lt_cv_deplibs_check_method=pass_all
6300 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6301 lt_cv_deplibs_check_method=pass_all
6304 sysv4 | sysv4.3*)
6305 case $host_vendor in
6306 motorola)
6307 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6308 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6310 ncr)
6311 lt_cv_deplibs_check_method=pass_all
6313 sequent)
6314 lt_cv_file_magic_cmd='/bin/file'
6315 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6317 sni)
6318 lt_cv_file_magic_cmd='/bin/file'
6319 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6320 lt_cv_file_magic_test_file=/lib/libc.so
6322 siemens)
6323 lt_cv_deplibs_check_method=pass_all
6326 lt_cv_deplibs_check_method=pass_all
6328 esac
6331 tpf*)
6332 lt_cv_deplibs_check_method=pass_all
6334 esac
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6338 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6339 file_magic_cmd=$lt_cv_file_magic_cmd
6340 deplibs_check_method=$lt_cv_deplibs_check_method
6341 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6354 if test -n "$ac_tool_prefix"; then
6355 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6356 set dummy ${ac_tool_prefix}ar; ac_word=$2
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6358 $as_echo_n "checking for $ac_word... " >&6; }
6359 if ${ac_cv_prog_AR+:} false; then :
6360 $as_echo_n "(cached) " >&6
6361 else
6362 if test -n "$AR"; then
6363 ac_cv_prog_AR="$AR" # Let the user override the test.
6364 else
6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 for as_dir in $PATH
6368 IFS=$as_save_IFS
6369 test -z "$as_dir" && as_dir=.
6370 for ac_exec_ext in '' $ac_executable_extensions; do
6371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6372 ac_cv_prog_AR="${ac_tool_prefix}ar"
6373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6374 break 2
6376 done
6377 done
6378 IFS=$as_save_IFS
6382 AR=$ac_cv_prog_AR
6383 if test -n "$AR"; then
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6385 $as_echo "$AR" >&6; }
6386 else
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6388 $as_echo "no" >&6; }
6393 if test -z "$ac_cv_prog_AR"; then
6394 ac_ct_AR=$AR
6395 # Extract the first word of "ar", so it can be a program name with args.
6396 set dummy ar; ac_word=$2
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6398 $as_echo_n "checking for $ac_word... " >&6; }
6399 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6400 $as_echo_n "(cached) " >&6
6401 else
6402 if test -n "$ac_ct_AR"; then
6403 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6404 else
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 for as_dir in $PATH
6408 IFS=$as_save_IFS
6409 test -z "$as_dir" && as_dir=.
6410 for ac_exec_ext in '' $ac_executable_extensions; do
6411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6412 ac_cv_prog_ac_ct_AR="ar"
6413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 break 2
6416 done
6417 done
6418 IFS=$as_save_IFS
6422 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6423 if test -n "$ac_ct_AR"; then
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6425 $as_echo "$ac_ct_AR" >&6; }
6426 else
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6428 $as_echo "no" >&6; }
6431 if test "x$ac_ct_AR" = x; then
6432 AR="false"
6433 else
6434 case $cross_compiling:$ac_tool_warned in
6435 yes:)
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6438 ac_tool_warned=yes ;;
6439 esac
6440 AR=$ac_ct_AR
6442 else
6443 AR="$ac_cv_prog_AR"
6446 test -z "$AR" && AR=ar
6447 test -z "$AR_FLAGS" && AR_FLAGS=cru
6459 if test -n "$ac_tool_prefix"; then
6460 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6461 set dummy ${ac_tool_prefix}strip; ac_word=$2
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6463 $as_echo_n "checking for $ac_word... " >&6; }
6464 if ${ac_cv_prog_STRIP+:} false; then :
6465 $as_echo_n "(cached) " >&6
6466 else
6467 if test -n "$STRIP"; then
6468 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6469 else
6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 for as_dir in $PATH
6473 IFS=$as_save_IFS
6474 test -z "$as_dir" && as_dir=.
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6477 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6479 break 2
6481 done
6482 done
6483 IFS=$as_save_IFS
6487 STRIP=$ac_cv_prog_STRIP
6488 if test -n "$STRIP"; then
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6490 $as_echo "$STRIP" >&6; }
6491 else
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6493 $as_echo "no" >&6; }
6498 if test -z "$ac_cv_prog_STRIP"; then
6499 ac_ct_STRIP=$STRIP
6500 # Extract the first word of "strip", so it can be a program name with args.
6501 set dummy strip; ac_word=$2
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6503 $as_echo_n "checking for $ac_word... " >&6; }
6504 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6505 $as_echo_n "(cached) " >&6
6506 else
6507 if test -n "$ac_ct_STRIP"; then
6508 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6509 else
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 for as_dir in $PATH
6513 IFS=$as_save_IFS
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6517 ac_cv_prog_ac_ct_STRIP="strip"
6518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6519 break 2
6521 done
6522 done
6523 IFS=$as_save_IFS
6527 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6528 if test -n "$ac_ct_STRIP"; then
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6530 $as_echo "$ac_ct_STRIP" >&6; }
6531 else
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533 $as_echo "no" >&6; }
6536 if test "x$ac_ct_STRIP" = x; then
6537 STRIP=":"
6538 else
6539 case $cross_compiling:$ac_tool_warned in
6540 yes:)
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6543 ac_tool_warned=yes ;;
6544 esac
6545 STRIP=$ac_ct_STRIP
6547 else
6548 STRIP="$ac_cv_prog_STRIP"
6551 test -z "$STRIP" && STRIP=:
6558 if test -n "$ac_tool_prefix"; then
6559 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6560 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6562 $as_echo_n "checking for $ac_word... " >&6; }
6563 if ${ac_cv_prog_RANLIB+:} false; then :
6564 $as_echo_n "(cached) " >&6
6565 else
6566 if test -n "$RANLIB"; then
6567 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6568 else
6569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570 for as_dir in $PATH
6572 IFS=$as_save_IFS
6573 test -z "$as_dir" && as_dir=.
6574 for ac_exec_ext in '' $ac_executable_extensions; do
6575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6576 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6578 break 2
6580 done
6581 done
6582 IFS=$as_save_IFS
6586 RANLIB=$ac_cv_prog_RANLIB
6587 if test -n "$RANLIB"; then
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6589 $as_echo "$RANLIB" >&6; }
6590 else
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6592 $as_echo "no" >&6; }
6597 if test -z "$ac_cv_prog_RANLIB"; then
6598 ac_ct_RANLIB=$RANLIB
6599 # Extract the first word of "ranlib", so it can be a program name with args.
6600 set dummy ranlib; ac_word=$2
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6602 $as_echo_n "checking for $ac_word... " >&6; }
6603 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6604 $as_echo_n "(cached) " >&6
6605 else
6606 if test -n "$ac_ct_RANLIB"; then
6607 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6608 else
6609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610 for as_dir in $PATH
6612 IFS=$as_save_IFS
6613 test -z "$as_dir" && as_dir=.
6614 for ac_exec_ext in '' $ac_executable_extensions; do
6615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6616 ac_cv_prog_ac_ct_RANLIB="ranlib"
6617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6618 break 2
6620 done
6621 done
6622 IFS=$as_save_IFS
6626 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6627 if test -n "$ac_ct_RANLIB"; then
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6629 $as_echo "$ac_ct_RANLIB" >&6; }
6630 else
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6632 $as_echo "no" >&6; }
6635 if test "x$ac_ct_RANLIB" = x; then
6636 RANLIB=":"
6637 else
6638 case $cross_compiling:$ac_tool_warned in
6639 yes:)
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6642 ac_tool_warned=yes ;;
6643 esac
6644 RANLIB=$ac_ct_RANLIB
6646 else
6647 RANLIB="$ac_cv_prog_RANLIB"
6650 test -z "$RANLIB" && RANLIB=:
6657 # Determine commands to create old-style static archives.
6658 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6659 old_postinstall_cmds='chmod 644 $oldlib'
6660 old_postuninstall_cmds=
6662 if test -n "$RANLIB"; then
6663 case $host_os in
6664 openbsd*)
6665 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6668 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6670 esac
6671 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6674 case $host_os in
6675 darwin*)
6676 lock_old_archive_extraction=yes ;;
6678 lock_old_archive_extraction=no ;;
6679 esac
6719 # If no C compiler was specified, use CC.
6720 LTCC=${LTCC-"$CC"}
6722 # If no C compiler flags were specified, use CFLAGS.
6723 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6725 # Allow CC to be a program name with arguments.
6726 compiler=$CC
6729 # Check for command to grab the raw symbol name followed by C symbol from nm.
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6731 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6732 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6733 $as_echo_n "(cached) " >&6
6734 else
6736 # These are sane defaults that work on at least a few old systems.
6737 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6739 # Character class describing NM global symbol codes.
6740 symcode='[BCDEGRST]'
6742 # Regexp to match symbols that can be accessed directly from C.
6743 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6745 # Define system-specific variables.
6746 case $host_os in
6747 aix*)
6748 symcode='[BCDT]'
6750 cygwin* | mingw* | pw32* | cegcc*)
6751 symcode='[ABCDGISTW]'
6753 hpux*)
6754 if test "$host_cpu" = ia64; then
6755 symcode='[ABCDEGRST]'
6758 irix* | nonstopux*)
6759 symcode='[BCDEGRST]'
6761 osf*)
6762 symcode='[BCDEGQRST]'
6764 solaris*)
6765 symcode='[BDRT]'
6767 sco3.2v5*)
6768 symcode='[DT]'
6770 sysv4.2uw2*)
6771 symcode='[DT]'
6773 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6774 symcode='[ABDT]'
6776 sysv4)
6777 symcode='[DFNSTU]'
6779 esac
6781 # If we're using GNU nm, then use its standard symbol codes.
6782 case `$NM -V 2>&1` in
6783 *GNU* | *'with BFD'*)
6784 symcode='[ABCDGIRSTW]' ;;
6785 esac
6787 # Transform an extracted symbol line into a proper C declaration.
6788 # Some systems (esp. on ia64) link data and code symbols differently,
6789 # so use this general approach.
6790 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6792 # Transform an extracted symbol line into symbol name and symbol address
6793 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6794 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6796 # Handle CRLF in mingw tool chain
6797 opt_cr=
6798 case $build_os in
6799 mingw*)
6800 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6802 esac
6804 # Try without a prefix underscore, then with it.
6805 for ac_symprfx in "" "_"; do
6807 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6808 symxfrm="\\1 $ac_symprfx\\2 \\2"
6810 # Write the raw and C identifiers.
6811 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6812 # Fake it for dumpbin and say T for any non-static function
6813 # and D for any global variable.
6814 # Also find C++ and __fastcall symbols from MSVC++,
6815 # which start with @ or ?.
6816 lt_cv_sys_global_symbol_pipe="$AWK '"\
6817 " {last_section=section; section=\$ 3};"\
6818 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6819 " \$ 0!~/External *\|/{next};"\
6820 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6821 " {if(hide[section]) next};"\
6822 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6823 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6824 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6825 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6826 " ' prfx=^$ac_symprfx"
6827 else
6828 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6831 # Check to see that the pipe works correctly.
6832 pipe_works=no
6834 rm -f conftest*
6835 cat > conftest.$ac_ext <<_LT_EOF
6836 #ifdef __cplusplus
6837 extern "C" {
6838 #endif
6839 char nm_test_var;
6840 void nm_test_func(void);
6841 void nm_test_func(void){}
6842 #ifdef __cplusplus
6844 #endif
6845 int main(){nm_test_var='a';nm_test_func();return(0);}
6846 _LT_EOF
6848 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6849 (eval $ac_compile) 2>&5
6850 ac_status=$?
6851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6852 test $ac_status = 0; }; then
6853 # Now try to grab the symbols.
6854 nlist=conftest.nm
6855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6856 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6857 ac_status=$?
6858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6859 test $ac_status = 0; } && test -s "$nlist"; then
6860 # Try sorting and uniquifying the output.
6861 if sort "$nlist" | uniq > "$nlist"T; then
6862 mv -f "$nlist"T "$nlist"
6863 else
6864 rm -f "$nlist"T
6867 # Make sure that we snagged all the symbols we need.
6868 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6869 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6870 cat <<_LT_EOF > conftest.$ac_ext
6871 #ifdef __cplusplus
6872 extern "C" {
6873 #endif
6875 _LT_EOF
6876 # Now generate the symbol file.
6877 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6879 cat <<_LT_EOF >> conftest.$ac_ext
6881 /* The mapping between symbol names and symbols. */
6882 const struct {
6883 const char *name;
6884 void *address;
6886 lt__PROGRAM__LTX_preloaded_symbols[] =
6888 { "@PROGRAM@", (void *) 0 },
6889 _LT_EOF
6890 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6891 cat <<\_LT_EOF >> conftest.$ac_ext
6892 {0, (void *) 0}
6895 /* This works around a problem in FreeBSD linker */
6896 #ifdef FREEBSD_WORKAROUND
6897 static const void *lt_preloaded_setup() {
6898 return lt__PROGRAM__LTX_preloaded_symbols;
6900 #endif
6902 #ifdef __cplusplus
6904 #endif
6905 _LT_EOF
6906 # Now try linking the two files.
6907 mv conftest.$ac_objext conftstm.$ac_objext
6908 lt_save_LIBS="$LIBS"
6909 lt_save_CFLAGS="$CFLAGS"
6910 LIBS="conftstm.$ac_objext"
6911 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6913 (eval $ac_link) 2>&5
6914 ac_status=$?
6915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6916 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6917 pipe_works=yes
6919 LIBS="$lt_save_LIBS"
6920 CFLAGS="$lt_save_CFLAGS"
6921 else
6922 echo "cannot find nm_test_func in $nlist" >&5
6924 else
6925 echo "cannot find nm_test_var in $nlist" >&5
6927 else
6928 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6930 else
6931 echo "$progname: failed program was:" >&5
6932 cat conftest.$ac_ext >&5
6934 rm -rf conftest* conftst*
6936 # Do not use the global_symbol_pipe unless it works.
6937 if test "$pipe_works" = yes; then
6938 break
6939 else
6940 lt_cv_sys_global_symbol_pipe=
6942 done
6946 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6947 lt_cv_sys_global_symbol_to_cdecl=
6949 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6951 $as_echo "failed" >&6; }
6952 else
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6954 $as_echo "ok" >&6; }
6979 # Check whether --enable-libtool-lock was given.
6980 if test "${enable_libtool_lock+set}" = set; then :
6981 enableval=$enable_libtool_lock;
6984 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6986 # Some flags need to be propagated to the compiler or linker for good
6987 # libtool support.
6988 case $host in
6989 ia64-*-hpux*)
6990 # Find out which ABI we are using.
6991 echo 'int i;' > conftest.$ac_ext
6992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6993 (eval $ac_compile) 2>&5
6994 ac_status=$?
6995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6996 test $ac_status = 0; }; then
6997 case `/usr/bin/file conftest.$ac_objext` in
6998 *ELF-32*)
6999 HPUX_IA64_MODE="32"
7001 *ELF-64*)
7002 HPUX_IA64_MODE="64"
7004 esac
7006 rm -rf conftest*
7008 *-*-irix6*)
7009 # Find out which ABI we are using.
7010 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7012 (eval $ac_compile) 2>&5
7013 ac_status=$?
7014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7015 test $ac_status = 0; }; then
7016 if test "$lt_cv_prog_gnu_ld" = yes; then
7017 case `/usr/bin/file conftest.$ac_objext` in
7018 *32-bit*)
7019 LD="${LD-ld} -melf32bsmip"
7021 *N32*)
7022 LD="${LD-ld} -melf32bmipn32"
7024 *64-bit*)
7025 LD="${LD-ld} -melf64bmip"
7027 esac
7028 else
7029 case `/usr/bin/file conftest.$ac_objext` in
7030 *32-bit*)
7031 LD="${LD-ld} -32"
7033 *N32*)
7034 LD="${LD-ld} -n32"
7036 *64-bit*)
7037 LD="${LD-ld} -64"
7039 esac
7042 rm -rf conftest*
7045 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7046 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7047 # Find out which ABI we are using.
7048 echo 'int i;' > conftest.$ac_ext
7049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7050 (eval $ac_compile) 2>&5
7051 ac_status=$?
7052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7053 test $ac_status = 0; }; then
7054 case `/usr/bin/file conftest.o` in
7055 *32-bit*)
7056 case $host in
7057 x86_64-*kfreebsd*-gnu)
7058 LD="${LD-ld} -m elf_i386_fbsd"
7060 x86_64-*linux*)
7061 case `/usr/bin/file conftest.o` in
7062 *x86-64*)
7063 LD="${LD-ld} -m elf32_x86_64"
7066 LD="${LD-ld} -m elf_i386"
7068 esac
7070 powerpc64le-*linux*)
7071 LD="${LD-ld} -m elf32lppclinux"
7073 powerpc64-*linux*)
7074 LD="${LD-ld} -m elf32ppclinux"
7076 s390x-*linux*)
7077 LD="${LD-ld} -m elf_s390"
7079 sparc64-*linux*)
7080 LD="${LD-ld} -m elf32_sparc"
7082 esac
7084 *64-bit*)
7085 case $host in
7086 x86_64-*kfreebsd*-gnu)
7087 LD="${LD-ld} -m elf_x86_64_fbsd"
7089 x86_64-*linux*)
7090 LD="${LD-ld} -m elf_x86_64"
7092 powerpcle-*linux*)
7093 LD="${LD-ld} -m elf64lppc"
7095 powerpc-*linux*)
7096 LD="${LD-ld} -m elf64ppc"
7098 s390*-*linux*|s390*-*tpf*)
7099 LD="${LD-ld} -m elf64_s390"
7101 sparc*-*linux*)
7102 LD="${LD-ld} -m elf64_sparc"
7104 esac
7106 esac
7108 rm -rf conftest*
7111 *-*-sco3.2v5*)
7112 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7113 SAVE_CFLAGS="$CFLAGS"
7114 CFLAGS="$CFLAGS -belf"
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7116 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7117 if ${lt_cv_cc_needs_belf+:} false; then :
7118 $as_echo_n "(cached) " >&6
7119 else
7120 ac_ext=c
7121 ac_cpp='$CPP $CPPFLAGS'
7122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127 /* end confdefs.h. */
7130 main ()
7134 return 0;
7136 _ACEOF
7137 if ac_fn_c_try_link "$LINENO"; then :
7138 lt_cv_cc_needs_belf=yes
7139 else
7140 lt_cv_cc_needs_belf=no
7142 rm -f core conftest.err conftest.$ac_objext \
7143 conftest$ac_exeext conftest.$ac_ext
7144 ac_ext=c
7145 ac_cpp='$CPP $CPPFLAGS'
7146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7152 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7153 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7154 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7155 CFLAGS="$SAVE_CFLAGS"
7158 sparc*-*solaris*)
7159 # Find out which ABI we are using.
7160 echo 'int i;' > conftest.$ac_ext
7161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7162 (eval $ac_compile) 2>&5
7163 ac_status=$?
7164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7165 test $ac_status = 0; }; then
7166 case `/usr/bin/file conftest.o` in
7167 *64-bit*)
7168 case $lt_cv_prog_gnu_ld in
7169 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7171 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7172 LD="${LD-ld} -64"
7175 esac
7177 esac
7179 rm -rf conftest*
7181 esac
7183 need_locks="$enable_libtool_lock"
7186 case $host_os in
7187 rhapsody* | darwin*)
7188 if test -n "$ac_tool_prefix"; then
7189 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7190 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7192 $as_echo_n "checking for $ac_word... " >&6; }
7193 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7194 $as_echo_n "(cached) " >&6
7195 else
7196 if test -n "$DSYMUTIL"; then
7197 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7198 else
7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 for as_dir in $PATH
7202 IFS=$as_save_IFS
7203 test -z "$as_dir" && as_dir=.
7204 for ac_exec_ext in '' $ac_executable_extensions; do
7205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7206 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 break 2
7210 done
7211 done
7212 IFS=$as_save_IFS
7216 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7217 if test -n "$DSYMUTIL"; then
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7219 $as_echo "$DSYMUTIL" >&6; }
7220 else
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222 $as_echo "no" >&6; }
7227 if test -z "$ac_cv_prog_DSYMUTIL"; then
7228 ac_ct_DSYMUTIL=$DSYMUTIL
7229 # Extract the first word of "dsymutil", so it can be a program name with args.
7230 set dummy dsymutil; ac_word=$2
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7232 $as_echo_n "checking for $ac_word... " >&6; }
7233 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7234 $as_echo_n "(cached) " >&6
7235 else
7236 if test -n "$ac_ct_DSYMUTIL"; then
7237 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7238 else
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 for as_dir in $PATH
7242 IFS=$as_save_IFS
7243 test -z "$as_dir" && as_dir=.
7244 for ac_exec_ext in '' $ac_executable_extensions; do
7245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7246 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 break 2
7250 done
7251 done
7252 IFS=$as_save_IFS
7256 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7257 if test -n "$ac_ct_DSYMUTIL"; then
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7259 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7260 else
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7262 $as_echo "no" >&6; }
7265 if test "x$ac_ct_DSYMUTIL" = x; then
7266 DSYMUTIL=":"
7267 else
7268 case $cross_compiling:$ac_tool_warned in
7269 yes:)
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7272 ac_tool_warned=yes ;;
7273 esac
7274 DSYMUTIL=$ac_ct_DSYMUTIL
7276 else
7277 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7280 if test -n "$ac_tool_prefix"; then
7281 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7282 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7284 $as_echo_n "checking for $ac_word... " >&6; }
7285 if ${ac_cv_prog_NMEDIT+:} false; then :
7286 $as_echo_n "(cached) " >&6
7287 else
7288 if test -n "$NMEDIT"; then
7289 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7290 else
7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 for as_dir in $PATH
7294 IFS=$as_save_IFS
7295 test -z "$as_dir" && as_dir=.
7296 for ac_exec_ext in '' $ac_executable_extensions; do
7297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7298 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7300 break 2
7302 done
7303 done
7304 IFS=$as_save_IFS
7308 NMEDIT=$ac_cv_prog_NMEDIT
7309 if test -n "$NMEDIT"; then
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7311 $as_echo "$NMEDIT" >&6; }
7312 else
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314 $as_echo "no" >&6; }
7319 if test -z "$ac_cv_prog_NMEDIT"; then
7320 ac_ct_NMEDIT=$NMEDIT
7321 # Extract the first word of "nmedit", so it can be a program name with args.
7322 set dummy nmedit; ac_word=$2
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7324 $as_echo_n "checking for $ac_word... " >&6; }
7325 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7326 $as_echo_n "(cached) " >&6
7327 else
7328 if test -n "$ac_ct_NMEDIT"; then
7329 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7330 else
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 for as_dir in $PATH
7334 IFS=$as_save_IFS
7335 test -z "$as_dir" && as_dir=.
7336 for ac_exec_ext in '' $ac_executable_extensions; do
7337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7338 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7340 break 2
7342 done
7343 done
7344 IFS=$as_save_IFS
7348 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7349 if test -n "$ac_ct_NMEDIT"; then
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7351 $as_echo "$ac_ct_NMEDIT" >&6; }
7352 else
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7354 $as_echo "no" >&6; }
7357 if test "x$ac_ct_NMEDIT" = x; then
7358 NMEDIT=":"
7359 else
7360 case $cross_compiling:$ac_tool_warned in
7361 yes:)
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7364 ac_tool_warned=yes ;;
7365 esac
7366 NMEDIT=$ac_ct_NMEDIT
7368 else
7369 NMEDIT="$ac_cv_prog_NMEDIT"
7372 if test -n "$ac_tool_prefix"; then
7373 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7374 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7376 $as_echo_n "checking for $ac_word... " >&6; }
7377 if ${ac_cv_prog_LIPO+:} false; then :
7378 $as_echo_n "(cached) " >&6
7379 else
7380 if test -n "$LIPO"; then
7381 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7382 else
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384 for as_dir in $PATH
7386 IFS=$as_save_IFS
7387 test -z "$as_dir" && as_dir=.
7388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7390 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7392 break 2
7394 done
7395 done
7396 IFS=$as_save_IFS
7400 LIPO=$ac_cv_prog_LIPO
7401 if test -n "$LIPO"; then
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7403 $as_echo "$LIPO" >&6; }
7404 else
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7406 $as_echo "no" >&6; }
7411 if test -z "$ac_cv_prog_LIPO"; then
7412 ac_ct_LIPO=$LIPO
7413 # Extract the first word of "lipo", so it can be a program name with args.
7414 set dummy lipo; ac_word=$2
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7416 $as_echo_n "checking for $ac_word... " >&6; }
7417 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7418 $as_echo_n "(cached) " >&6
7419 else
7420 if test -n "$ac_ct_LIPO"; then
7421 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7422 else
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 for as_dir in $PATH
7426 IFS=$as_save_IFS
7427 test -z "$as_dir" && as_dir=.
7428 for ac_exec_ext in '' $ac_executable_extensions; do
7429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7430 ac_cv_prog_ac_ct_LIPO="lipo"
7431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7432 break 2
7434 done
7435 done
7436 IFS=$as_save_IFS
7440 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7441 if test -n "$ac_ct_LIPO"; then
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7443 $as_echo "$ac_ct_LIPO" >&6; }
7444 else
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446 $as_echo "no" >&6; }
7449 if test "x$ac_ct_LIPO" = x; then
7450 LIPO=":"
7451 else
7452 case $cross_compiling:$ac_tool_warned in
7453 yes:)
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7456 ac_tool_warned=yes ;;
7457 esac
7458 LIPO=$ac_ct_LIPO
7460 else
7461 LIPO="$ac_cv_prog_LIPO"
7464 if test -n "$ac_tool_prefix"; then
7465 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7466 set dummy ${ac_tool_prefix}otool; ac_word=$2
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7468 $as_echo_n "checking for $ac_word... " >&6; }
7469 if ${ac_cv_prog_OTOOL+:} false; then :
7470 $as_echo_n "(cached) " >&6
7471 else
7472 if test -n "$OTOOL"; then
7473 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7474 else
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 for as_dir in $PATH
7478 IFS=$as_save_IFS
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7482 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 break 2
7486 done
7487 done
7488 IFS=$as_save_IFS
7492 OTOOL=$ac_cv_prog_OTOOL
7493 if test -n "$OTOOL"; then
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7495 $as_echo "$OTOOL" >&6; }
7496 else
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7498 $as_echo "no" >&6; }
7503 if test -z "$ac_cv_prog_OTOOL"; then
7504 ac_ct_OTOOL=$OTOOL
7505 # Extract the first word of "otool", so it can be a program name with args.
7506 set dummy otool; ac_word=$2
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7508 $as_echo_n "checking for $ac_word... " >&6; }
7509 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7510 $as_echo_n "(cached) " >&6
7511 else
7512 if test -n "$ac_ct_OTOOL"; then
7513 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7514 else
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH
7518 IFS=$as_save_IFS
7519 test -z "$as_dir" && as_dir=.
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7522 ac_cv_prog_ac_ct_OTOOL="otool"
7523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 break 2
7526 done
7527 done
7528 IFS=$as_save_IFS
7532 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7533 if test -n "$ac_ct_OTOOL"; then
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7535 $as_echo "$ac_ct_OTOOL" >&6; }
7536 else
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7538 $as_echo "no" >&6; }
7541 if test "x$ac_ct_OTOOL" = x; then
7542 OTOOL=":"
7543 else
7544 case $cross_compiling:$ac_tool_warned in
7545 yes:)
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7548 ac_tool_warned=yes ;;
7549 esac
7550 OTOOL=$ac_ct_OTOOL
7552 else
7553 OTOOL="$ac_cv_prog_OTOOL"
7556 if test -n "$ac_tool_prefix"; then
7557 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7558 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7560 $as_echo_n "checking for $ac_word... " >&6; }
7561 if ${ac_cv_prog_OTOOL64+:} false; then :
7562 $as_echo_n "(cached) " >&6
7563 else
7564 if test -n "$OTOOL64"; then
7565 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7566 else
7567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568 for as_dir in $PATH
7570 IFS=$as_save_IFS
7571 test -z "$as_dir" && as_dir=.
7572 for ac_exec_ext in '' $ac_executable_extensions; do
7573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7574 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7576 break 2
7578 done
7579 done
7580 IFS=$as_save_IFS
7584 OTOOL64=$ac_cv_prog_OTOOL64
7585 if test -n "$OTOOL64"; then
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7587 $as_echo "$OTOOL64" >&6; }
7588 else
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590 $as_echo "no" >&6; }
7595 if test -z "$ac_cv_prog_OTOOL64"; then
7596 ac_ct_OTOOL64=$OTOOL64
7597 # Extract the first word of "otool64", so it can be a program name with args.
7598 set dummy otool64; ac_word=$2
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7600 $as_echo_n "checking for $ac_word... " >&6; }
7601 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7602 $as_echo_n "(cached) " >&6
7603 else
7604 if test -n "$ac_ct_OTOOL64"; then
7605 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7606 else
7607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608 for as_dir in $PATH
7610 IFS=$as_save_IFS
7611 test -z "$as_dir" && as_dir=.
7612 for ac_exec_ext in '' $ac_executable_extensions; do
7613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7614 ac_cv_prog_ac_ct_OTOOL64="otool64"
7615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7616 break 2
7618 done
7619 done
7620 IFS=$as_save_IFS
7624 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7625 if test -n "$ac_ct_OTOOL64"; then
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7627 $as_echo "$ac_ct_OTOOL64" >&6; }
7628 else
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7630 $as_echo "no" >&6; }
7633 if test "x$ac_ct_OTOOL64" = x; then
7634 OTOOL64=":"
7635 else
7636 case $cross_compiling:$ac_tool_warned in
7637 yes:)
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7640 ac_tool_warned=yes ;;
7641 esac
7642 OTOOL64=$ac_ct_OTOOL64
7644 else
7645 OTOOL64="$ac_cv_prog_OTOOL64"
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7675 $as_echo_n "checking for -single_module linker flag... " >&6; }
7676 if ${lt_cv_apple_cc_single_mod+:} false; then :
7677 $as_echo_n "(cached) " >&6
7678 else
7679 lt_cv_apple_cc_single_mod=no
7680 if test -z "${LT_MULTI_MODULE}"; then
7681 # By default we will add the -single_module flag. You can override
7682 # by either setting the environment variable LT_MULTI_MODULE
7683 # non-empty at configure time, or by adding -multi_module to the
7684 # link flags.
7685 rm -rf libconftest.dylib*
7686 echo "int foo(void){return 1;}" > conftest.c
7687 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7688 -dynamiclib -Wl,-single_module conftest.c" >&5
7689 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7690 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7691 _lt_result=$?
7692 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7693 lt_cv_apple_cc_single_mod=yes
7694 else
7695 cat conftest.err >&5
7697 rm -rf libconftest.dylib*
7698 rm -f conftest.*
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7702 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7704 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7705 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7706 $as_echo_n "(cached) " >&6
7707 else
7708 lt_cv_ld_exported_symbols_list=no
7709 save_LDFLAGS=$LDFLAGS
7710 echo "_main" > conftest.sym
7711 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713 /* end confdefs.h. */
7716 main ()
7720 return 0;
7722 _ACEOF
7723 if ac_fn_c_try_link "$LINENO"; then :
7724 lt_cv_ld_exported_symbols_list=yes
7725 else
7726 lt_cv_ld_exported_symbols_list=no
7728 rm -f core conftest.err conftest.$ac_objext \
7729 conftest$ac_exeext conftest.$ac_ext
7730 LDFLAGS="$save_LDFLAGS"
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7734 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7736 $as_echo_n "checking for -force_load linker flag... " >&6; }
7737 if ${lt_cv_ld_force_load+:} false; then :
7738 $as_echo_n "(cached) " >&6
7739 else
7740 lt_cv_ld_force_load=no
7741 cat > conftest.c << _LT_EOF
7742 int forced_loaded() { return 2;}
7743 _LT_EOF
7744 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7745 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7746 echo "$AR cru libconftest.a conftest.o" >&5
7747 $AR cru libconftest.a conftest.o 2>&5
7748 cat > conftest.c << _LT_EOF
7749 int main() { return 0;}
7750 _LT_EOF
7751 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7752 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7753 _lt_result=$?
7754 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7755 lt_cv_ld_force_load=yes
7756 else
7757 cat conftest.err >&5
7759 rm -f conftest.err libconftest.a conftest conftest.c
7760 rm -rf conftest.dSYM
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7764 $as_echo "$lt_cv_ld_force_load" >&6; }
7765 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7766 # build without first building modern cctools / linker.
7767 case $host_cpu-$host_os in
7768 *-rhapsody* | *-darwin1.[012])
7769 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7770 *-darwin1.*)
7771 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7772 *-darwin*)
7773 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7774 # deployment target is forced to an earlier version.
7775 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7776 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7778 10.[012][,.]*)
7779 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7783 esac
7785 esac
7786 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7787 _lt_dar_single_mod='$single_module'
7789 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7790 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7791 else
7792 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7794 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7795 _lt_dsymutil='~$DSYMUTIL $lib || :'
7796 else
7797 _lt_dsymutil=
7800 esac
7802 ac_ext=c
7803 ac_cpp='$CPP $CPPFLAGS'
7804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7808 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7809 # On Suns, sometimes $CPP names a directory.
7810 if test -n "$CPP" && test -d "$CPP"; then
7811 CPP=
7813 if test -z "$CPP"; then
7814 if ${ac_cv_prog_CPP+:} false; then :
7815 $as_echo_n "(cached) " >&6
7816 else
7817 # Double quotes because CPP needs to be expanded
7818 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7820 ac_preproc_ok=false
7821 for ac_c_preproc_warn_flag in '' yes
7823 # Use a header file that comes with gcc, so configuring glibc
7824 # with a fresh cross-compiler works.
7825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7826 # <limits.h> exists even on freestanding compilers.
7827 # On the NeXT, cc -E runs the code through the compiler's parser,
7828 # not just through cpp. "Syntax error" is here to catch this case.
7829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h. */
7831 #ifdef __STDC__
7832 # include <limits.h>
7833 #else
7834 # include <assert.h>
7835 #endif
7836 Syntax error
7837 _ACEOF
7838 if ac_fn_c_try_cpp "$LINENO"; then :
7840 else
7841 # Broken: fails on valid input.
7842 continue
7844 rm -f conftest.err conftest.i conftest.$ac_ext
7846 # OK, works on sane cases. Now check whether nonexistent headers
7847 # can be detected and how.
7848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849 /* end confdefs.h. */
7850 #include <ac_nonexistent.h>
7851 _ACEOF
7852 if ac_fn_c_try_cpp "$LINENO"; then :
7853 # Broken: success on invalid input.
7854 continue
7855 else
7856 # Passes both tests.
7857 ac_preproc_ok=:
7858 break
7860 rm -f conftest.err conftest.i conftest.$ac_ext
7862 done
7863 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7864 rm -f conftest.i conftest.err conftest.$ac_ext
7865 if $ac_preproc_ok; then :
7866 break
7869 done
7870 ac_cv_prog_CPP=$CPP
7873 CPP=$ac_cv_prog_CPP
7874 else
7875 ac_cv_prog_CPP=$CPP
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7878 $as_echo "$CPP" >&6; }
7879 ac_preproc_ok=false
7880 for ac_c_preproc_warn_flag in '' yes
7882 # Use a header file that comes with gcc, so configuring glibc
7883 # with a fresh cross-compiler works.
7884 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7885 # <limits.h> exists even on freestanding compilers.
7886 # On the NeXT, cc -E runs the code through the compiler's parser,
7887 # not just through cpp. "Syntax error" is here to catch this case.
7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889 /* end confdefs.h. */
7890 #ifdef __STDC__
7891 # include <limits.h>
7892 #else
7893 # include <assert.h>
7894 #endif
7895 Syntax error
7896 _ACEOF
7897 if ac_fn_c_try_cpp "$LINENO"; then :
7899 else
7900 # Broken: fails on valid input.
7901 continue
7903 rm -f conftest.err conftest.i conftest.$ac_ext
7905 # OK, works on sane cases. Now check whether nonexistent headers
7906 # can be detected and how.
7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908 /* end confdefs.h. */
7909 #include <ac_nonexistent.h>
7910 _ACEOF
7911 if ac_fn_c_try_cpp "$LINENO"; then :
7912 # Broken: success on invalid input.
7913 continue
7914 else
7915 # Passes both tests.
7916 ac_preproc_ok=:
7917 break
7919 rm -f conftest.err conftest.i conftest.$ac_ext
7921 done
7922 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7923 rm -f conftest.i conftest.err conftest.$ac_ext
7924 if $ac_preproc_ok; then :
7926 else
7927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7929 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7930 See \`config.log' for more details" "$LINENO" 5; }
7933 ac_ext=c
7934 ac_cpp='$CPP $CPPFLAGS'
7935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7941 $as_echo_n "checking for ANSI C header files... " >&6; }
7942 if ${ac_cv_header_stdc+:} false; then :
7943 $as_echo_n "(cached) " >&6
7944 else
7945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946 /* end confdefs.h. */
7947 #include <stdlib.h>
7948 #include <stdarg.h>
7949 #include <string.h>
7950 #include <float.h>
7953 main ()
7957 return 0;
7959 _ACEOF
7960 if ac_fn_c_try_compile "$LINENO"; then :
7961 ac_cv_header_stdc=yes
7962 else
7963 ac_cv_header_stdc=no
7965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7967 if test $ac_cv_header_stdc = yes; then
7968 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970 /* end confdefs.h. */
7971 #include <string.h>
7973 _ACEOF
7974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7975 $EGREP "memchr" >/dev/null 2>&1; then :
7977 else
7978 ac_cv_header_stdc=no
7980 rm -f conftest*
7984 if test $ac_cv_header_stdc = yes; then
7985 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h. */
7988 #include <stdlib.h>
7990 _ACEOF
7991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7992 $EGREP "free" >/dev/null 2>&1; then :
7994 else
7995 ac_cv_header_stdc=no
7997 rm -f conftest*
8001 if test $ac_cv_header_stdc = yes; then
8002 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8003 if test "$cross_compiling" = yes; then :
8005 else
8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h. */
8008 #include <ctype.h>
8009 #include <stdlib.h>
8010 #if ((' ' & 0x0FF) == 0x020)
8011 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8012 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8013 #else
8014 # define ISLOWER(c) \
8015 (('a' <= (c) && (c) <= 'i') \
8016 || ('j' <= (c) && (c) <= 'r') \
8017 || ('s' <= (c) && (c) <= 'z'))
8018 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8019 #endif
8021 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8023 main ()
8025 int i;
8026 for (i = 0; i < 256; i++)
8027 if (XOR (islower (i), ISLOWER (i))
8028 || toupper (i) != TOUPPER (i))
8029 return 2;
8030 return 0;
8032 _ACEOF
8033 if ac_fn_c_try_run "$LINENO"; then :
8035 else
8036 ac_cv_header_stdc=no
8038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8039 conftest.$ac_objext conftest.beam conftest.$ac_ext
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8045 $as_echo "$ac_cv_header_stdc" >&6; }
8046 if test $ac_cv_header_stdc = yes; then
8048 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8052 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8053 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8054 inttypes.h stdint.h unistd.h
8055 do :
8056 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8057 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8059 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8060 cat >>confdefs.h <<_ACEOF
8061 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8062 _ACEOF
8066 done
8069 for ac_header in dlfcn.h
8070 do :
8071 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8073 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8074 cat >>confdefs.h <<_ACEOF
8075 #define HAVE_DLFCN_H 1
8076 _ACEOF
8080 done
8087 # Set options
8091 enable_dlopen=no
8094 enable_win32_dll=no
8097 # Check whether --enable-shared was given.
8098 if test "${enable_shared+set}" = set; then :
8099 enableval=$enable_shared; p=${PACKAGE-default}
8100 case $enableval in
8101 yes) enable_shared=yes ;;
8102 no) enable_shared=no ;;
8104 enable_shared=no
8105 # Look at the argument we got. We use all the common list separators.
8106 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8107 for pkg in $enableval; do
8108 IFS="$lt_save_ifs"
8109 if test "X$pkg" = "X$p"; then
8110 enable_shared=yes
8112 done
8113 IFS="$lt_save_ifs"
8115 esac
8116 else
8117 enable_shared=yes
8128 # Check whether --enable-static was given.
8129 if test "${enable_static+set}" = set; then :
8130 enableval=$enable_static; p=${PACKAGE-default}
8131 case $enableval in
8132 yes) enable_static=yes ;;
8133 no) enable_static=no ;;
8135 enable_static=no
8136 # Look at the argument we got. We use all the common list separators.
8137 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8138 for pkg in $enableval; do
8139 IFS="$lt_save_ifs"
8140 if test "X$pkg" = "X$p"; then
8141 enable_static=yes
8143 done
8144 IFS="$lt_save_ifs"
8146 esac
8147 else
8148 enable_static=yes
8160 # Check whether --with-pic was given.
8161 if test "${with_pic+set}" = set; then :
8162 withval=$with_pic; pic_mode="$withval"
8163 else
8164 pic_mode=default
8168 test -z "$pic_mode" && pic_mode=default
8176 # Check whether --enable-fast-install was given.
8177 if test "${enable_fast_install+set}" = set; then :
8178 enableval=$enable_fast_install; p=${PACKAGE-default}
8179 case $enableval in
8180 yes) enable_fast_install=yes ;;
8181 no) enable_fast_install=no ;;
8183 enable_fast_install=no
8184 # Look at the argument we got. We use all the common list separators.
8185 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8186 for pkg in $enableval; do
8187 IFS="$lt_save_ifs"
8188 if test "X$pkg" = "X$p"; then
8189 enable_fast_install=yes
8191 done
8192 IFS="$lt_save_ifs"
8194 esac
8195 else
8196 enable_fast_install=yes
8209 # This can be used to rebuild libtool when needed
8210 LIBTOOL_DEPS="$ltmain"
8212 # Always use our own libtool.
8213 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8240 test -z "$LN_S" && LN_S="ln -s"
8255 if test -n "${ZSH_VERSION+set}" ; then
8256 setopt NO_GLOB_SUBST
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8260 $as_echo_n "checking for objdir... " >&6; }
8261 if ${lt_cv_objdir+:} false; then :
8262 $as_echo_n "(cached) " >&6
8263 else
8264 rm -f .libs 2>/dev/null
8265 mkdir .libs 2>/dev/null
8266 if test -d .libs; then
8267 lt_cv_objdir=.libs
8268 else
8269 # MS-DOS does not allow filenames that begin with a dot.
8270 lt_cv_objdir=_libs
8272 rmdir .libs 2>/dev/null
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8275 $as_echo "$lt_cv_objdir" >&6; }
8276 objdir=$lt_cv_objdir
8282 cat >>confdefs.h <<_ACEOF
8283 #define LT_OBJDIR "$lt_cv_objdir/"
8284 _ACEOF
8289 case $host_os in
8290 aix3*)
8291 # AIX sometimes has problems with the GCC collect2 program. For some
8292 # reason, if we set the COLLECT_NAMES environment variable, the problems
8293 # vanish in a puff of smoke.
8294 if test "X${COLLECT_NAMES+set}" != Xset; then
8295 COLLECT_NAMES=
8296 export COLLECT_NAMES
8299 esac
8301 # Global variables:
8302 ofile=libtool
8303 can_build_shared=yes
8305 # All known linkers require a `.a' archive for static linking (except MSVC,
8306 # which needs '.lib').
8307 libext=a
8309 with_gnu_ld="$lt_cv_prog_gnu_ld"
8311 old_CC="$CC"
8312 old_CFLAGS="$CFLAGS"
8314 # Set sane defaults for various variables
8315 test -z "$CC" && CC=cc
8316 test -z "$LTCC" && LTCC=$CC
8317 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8318 test -z "$LD" && LD=ld
8319 test -z "$ac_objext" && ac_objext=o
8321 for cc_temp in $compiler""; do
8322 case $cc_temp in
8323 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8324 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8325 \-*) ;;
8326 *) break;;
8327 esac
8328 done
8329 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8332 # Only perform the check for file, if the check method requires it
8333 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8334 case $deplibs_check_method in
8335 file_magic*)
8336 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8338 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8339 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8340 $as_echo_n "(cached) " >&6
8341 else
8342 case $MAGIC_CMD in
8343 [\\/*] | ?:[\\/]*)
8344 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8347 lt_save_MAGIC_CMD="$MAGIC_CMD"
8348 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8349 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8350 for ac_dir in $ac_dummy; do
8351 IFS="$lt_save_ifs"
8352 test -z "$ac_dir" && ac_dir=.
8353 if test -f $ac_dir/${ac_tool_prefix}file; then
8354 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8355 if test -n "$file_magic_test_file"; then
8356 case $deplibs_check_method in
8357 "file_magic "*)
8358 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8359 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8360 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8361 $EGREP "$file_magic_regex" > /dev/null; then
8363 else
8364 cat <<_LT_EOF 1>&2
8366 *** Warning: the command libtool uses to detect shared libraries,
8367 *** $file_magic_cmd, produces output that libtool cannot recognize.
8368 *** The result is that libtool may fail to recognize shared libraries
8369 *** as such. This will affect the creation of libtool libraries that
8370 *** depend on shared libraries, but programs linked with such libtool
8371 *** libraries will work regardless of this problem. Nevertheless, you
8372 *** may want to report the problem to your system manager and/or to
8373 *** bug-libtool@gnu.org
8375 _LT_EOF
8376 fi ;;
8377 esac
8379 break
8381 done
8382 IFS="$lt_save_ifs"
8383 MAGIC_CMD="$lt_save_MAGIC_CMD"
8385 esac
8388 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8389 if test -n "$MAGIC_CMD"; then
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8391 $as_echo "$MAGIC_CMD" >&6; }
8392 else
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 $as_echo "no" >&6; }
8401 if test -z "$lt_cv_path_MAGIC_CMD"; then
8402 if test -n "$ac_tool_prefix"; then
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8404 $as_echo_n "checking for file... " >&6; }
8405 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8406 $as_echo_n "(cached) " >&6
8407 else
8408 case $MAGIC_CMD in
8409 [\\/*] | ?:[\\/]*)
8410 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8413 lt_save_MAGIC_CMD="$MAGIC_CMD"
8414 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8415 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8416 for ac_dir in $ac_dummy; do
8417 IFS="$lt_save_ifs"
8418 test -z "$ac_dir" && ac_dir=.
8419 if test -f $ac_dir/file; then
8420 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8421 if test -n "$file_magic_test_file"; then
8422 case $deplibs_check_method in
8423 "file_magic "*)
8424 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8425 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8426 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8427 $EGREP "$file_magic_regex" > /dev/null; then
8429 else
8430 cat <<_LT_EOF 1>&2
8432 *** Warning: the command libtool uses to detect shared libraries,
8433 *** $file_magic_cmd, produces output that libtool cannot recognize.
8434 *** The result is that libtool may fail to recognize shared libraries
8435 *** as such. This will affect the creation of libtool libraries that
8436 *** depend on shared libraries, but programs linked with such libtool
8437 *** libraries will work regardless of this problem. Nevertheless, you
8438 *** may want to report the problem to your system manager and/or to
8439 *** bug-libtool@gnu.org
8441 _LT_EOF
8442 fi ;;
8443 esac
8445 break
8447 done
8448 IFS="$lt_save_ifs"
8449 MAGIC_CMD="$lt_save_MAGIC_CMD"
8451 esac
8454 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8455 if test -n "$MAGIC_CMD"; then
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8457 $as_echo "$MAGIC_CMD" >&6; }
8458 else
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460 $as_echo "no" >&6; }
8464 else
8465 MAGIC_CMD=:
8471 esac
8473 # Use C for the default configuration in the libtool script
8475 lt_save_CC="$CC"
8476 ac_ext=c
8477 ac_cpp='$CPP $CPPFLAGS'
8478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8483 # Source file extension for C test sources.
8484 ac_ext=c
8486 # Object file extension for compiled C test sources.
8487 objext=o
8488 objext=$objext
8490 # Code to be used in simple compile tests
8491 lt_simple_compile_test_code="int some_variable = 0;"
8493 # Code to be used in simple link tests
8494 lt_simple_link_test_code='int main(){return(0);}'
8502 # If no C compiler was specified, use CC.
8503 LTCC=${LTCC-"$CC"}
8505 # If no C compiler flags were specified, use CFLAGS.
8506 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8508 # Allow CC to be a program name with arguments.
8509 compiler=$CC
8511 # Save the default compiler, since it gets overwritten when the other
8512 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8513 compiler_DEFAULT=$CC
8515 # save warnings/boilerplate of simple test code
8516 ac_outfile=conftest.$ac_objext
8517 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8518 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8519 _lt_compiler_boilerplate=`cat conftest.err`
8520 $RM conftest*
8522 ac_outfile=conftest.$ac_objext
8523 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8524 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8525 _lt_linker_boilerplate=`cat conftest.err`
8526 $RM -r conftest*
8529 ## CAVEAT EMPTOR:
8530 ## There is no encapsulation within the following macros, do not change
8531 ## the running order or otherwise move them around unless you know exactly
8532 ## what you are doing...
8533 if test -n "$compiler"; then
8535 lt_prog_compiler_no_builtin_flag=
8537 if test "$GCC" = yes; then
8538 case $cc_basename in
8539 nvcc*)
8540 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8542 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8543 esac
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8546 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8547 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8548 $as_echo_n "(cached) " >&6
8549 else
8550 lt_cv_prog_compiler_rtti_exceptions=no
8551 ac_outfile=conftest.$ac_objext
8552 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8553 lt_compiler_flag="-fno-rtti -fno-exceptions"
8554 # Insert the option either (1) after the last *FLAGS variable, or
8555 # (2) before a word containing "conftest.", or (3) at the end.
8556 # Note that $ac_compile itself does not contain backslashes and begins
8557 # with a dollar sign (not a hyphen), so the echo should work correctly.
8558 # The option is referenced via a variable to avoid confusing sed.
8559 lt_compile=`echo "$ac_compile" | $SED \
8560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8562 -e 's:$: $lt_compiler_flag:'`
8563 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8564 (eval "$lt_compile" 2>conftest.err)
8565 ac_status=$?
8566 cat conftest.err >&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 if (exit $ac_status) && test -s "$ac_outfile"; then
8569 # The compiler can only warn and ignore the option if not recognized
8570 # So say no if there are warnings other than the usual output.
8571 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8572 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8573 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8574 lt_cv_prog_compiler_rtti_exceptions=yes
8577 $RM conftest*
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8581 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8583 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8584 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8585 else
8596 lt_prog_compiler_wl=
8597 lt_prog_compiler_pic=
8598 lt_prog_compiler_static=
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8601 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8603 if test "$GCC" = yes; then
8604 lt_prog_compiler_wl='-Wl,'
8605 lt_prog_compiler_static='-static'
8607 case $host_os in
8608 aix*)
8609 # All AIX code is PIC.
8610 if test "$host_cpu" = ia64; then
8611 # AIX 5 now supports IA64 processor
8612 lt_prog_compiler_static='-Bstatic'
8614 lt_prog_compiler_pic='-fPIC'
8617 amigaos*)
8618 case $host_cpu in
8619 powerpc)
8620 # see comment about AmigaOS4 .so support
8621 lt_prog_compiler_pic='-fPIC'
8623 m68k)
8624 # FIXME: we need at least 68020 code to build shared libraries, but
8625 # adding the `-m68020' flag to GCC prevents building anything better,
8626 # like `-m68040'.
8627 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8629 esac
8632 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8633 # PIC is the default for these OSes.
8636 mingw* | cygwin* | pw32* | os2* | cegcc*)
8637 # This hack is so that the source file can tell whether it is being
8638 # built for inclusion in a dll (and should export symbols for example).
8639 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8640 # (--disable-auto-import) libraries
8641 lt_prog_compiler_pic='-DDLL_EXPORT'
8644 darwin* | rhapsody*)
8645 # PIC is the default on this platform
8646 # Common symbols not allowed in MH_DYLIB files
8647 lt_prog_compiler_pic='-fno-common'
8650 haiku*)
8651 # PIC is the default for Haiku.
8652 # The "-static" flag exists, but is broken.
8653 lt_prog_compiler_static=
8656 hpux*)
8657 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8658 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8659 # sets the default TLS model and affects inlining.
8660 case $host_cpu in
8661 hppa*64*)
8662 # +Z the default
8665 lt_prog_compiler_pic='-fPIC'
8667 esac
8670 interix[3-9]*)
8671 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8672 # Instead, we relocate shared libraries at runtime.
8675 msdosdjgpp*)
8676 # Just because we use GCC doesn't mean we suddenly get shared libraries
8677 # on systems that don't support them.
8678 lt_prog_compiler_can_build_shared=no
8679 enable_shared=no
8682 *nto* | *qnx*)
8683 # QNX uses GNU C++, but need to define -shared option too, otherwise
8684 # it will coredump.
8685 lt_prog_compiler_pic='-fPIC -shared'
8688 sysv4*MP*)
8689 if test -d /usr/nec; then
8690 lt_prog_compiler_pic=-Kconform_pic
8695 lt_prog_compiler_pic='-fPIC'
8697 esac
8699 case $cc_basename in
8700 nvcc*) # Cuda Compiler Driver 2.2
8701 lt_prog_compiler_wl='-Xlinker '
8702 lt_prog_compiler_pic='-Xcompiler -fPIC'
8704 esac
8705 else
8706 # PORTME Check for flag to pass linker flags through the system compiler.
8707 case $host_os in
8708 aix*)
8709 lt_prog_compiler_wl='-Wl,'
8710 if test "$host_cpu" = ia64; then
8711 # AIX 5 now supports IA64 processor
8712 lt_prog_compiler_static='-Bstatic'
8713 else
8714 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8718 mingw* | cygwin* | pw32* | os2* | cegcc*)
8719 # This hack is so that the source file can tell whether it is being
8720 # built for inclusion in a dll (and should export symbols for example).
8721 lt_prog_compiler_pic='-DDLL_EXPORT'
8724 hpux9* | hpux10* | hpux11*)
8725 lt_prog_compiler_wl='-Wl,'
8726 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8727 # not for PA HP-UX.
8728 case $host_cpu in
8729 hppa*64*|ia64*)
8730 # +Z the default
8733 lt_prog_compiler_pic='+Z'
8735 esac
8736 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8737 lt_prog_compiler_static='${wl}-a ${wl}archive'
8740 irix5* | irix6* | nonstopux*)
8741 lt_prog_compiler_wl='-Wl,'
8742 # PIC (with -KPIC) is the default.
8743 lt_prog_compiler_static='-non_shared'
8746 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8747 case $cc_basename in
8748 # old Intel for x86_64 which still supported -KPIC.
8749 ecc*)
8750 lt_prog_compiler_wl='-Wl,'
8751 lt_prog_compiler_pic='-KPIC'
8752 lt_prog_compiler_static='-static'
8754 # icc used to be incompatible with GCC.
8755 # ICC 10 doesn't accept -KPIC any more.
8756 icc* | ifort*)
8757 lt_prog_compiler_wl='-Wl,'
8758 lt_prog_compiler_pic='-fPIC'
8759 lt_prog_compiler_static='-static'
8761 # Lahey Fortran 8.1.
8762 lf95*)
8763 lt_prog_compiler_wl='-Wl,'
8764 lt_prog_compiler_pic='--shared'
8765 lt_prog_compiler_static='--static'
8767 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8768 # Portland Group compilers (*not* the Pentium gcc compiler,
8769 # which looks to be a dead project)
8770 lt_prog_compiler_wl='-Wl,'
8771 lt_prog_compiler_pic='-fpic'
8772 lt_prog_compiler_static='-Bstatic'
8774 ccc*)
8775 lt_prog_compiler_wl='-Wl,'
8776 # All Alpha code is PIC.
8777 lt_prog_compiler_static='-non_shared'
8779 xl* | bgxl* | bgf* | mpixl*)
8780 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8781 lt_prog_compiler_wl='-Wl,'
8782 lt_prog_compiler_pic='-qpic'
8783 lt_prog_compiler_static='-qstaticlink'
8786 case `$CC -V 2>&1 | sed 5q` in
8787 *Sun\ F* | *Sun*Fortran*)
8788 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8789 lt_prog_compiler_pic='-KPIC'
8790 lt_prog_compiler_static='-Bstatic'
8791 lt_prog_compiler_wl=''
8793 *Sun\ C*)
8794 # Sun C 5.9
8795 lt_prog_compiler_pic='-KPIC'
8796 lt_prog_compiler_static='-Bstatic'
8797 lt_prog_compiler_wl='-Wl,'
8799 esac
8801 esac
8804 newsos6)
8805 lt_prog_compiler_pic='-KPIC'
8806 lt_prog_compiler_static='-Bstatic'
8809 *nto* | *qnx*)
8810 # QNX uses GNU C++, but need to define -shared option too, otherwise
8811 # it will coredump.
8812 lt_prog_compiler_pic='-fPIC -shared'
8815 osf3* | osf4* | osf5*)
8816 lt_prog_compiler_wl='-Wl,'
8817 # All OSF/1 code is PIC.
8818 lt_prog_compiler_static='-non_shared'
8821 rdos*)
8822 lt_prog_compiler_static='-non_shared'
8825 solaris*)
8826 lt_prog_compiler_pic='-KPIC'
8827 lt_prog_compiler_static='-Bstatic'
8828 case $cc_basename in
8829 f77* | f90* | f95*)
8830 lt_prog_compiler_wl='-Qoption ld ';;
8832 lt_prog_compiler_wl='-Wl,';;
8833 esac
8836 sunos4*)
8837 lt_prog_compiler_wl='-Qoption ld '
8838 lt_prog_compiler_pic='-PIC'
8839 lt_prog_compiler_static='-Bstatic'
8842 sysv4 | sysv4.2uw2* | sysv4.3*)
8843 lt_prog_compiler_wl='-Wl,'
8844 lt_prog_compiler_pic='-KPIC'
8845 lt_prog_compiler_static='-Bstatic'
8848 sysv4*MP*)
8849 if test -d /usr/nec ;then
8850 lt_prog_compiler_pic='-Kconform_pic'
8851 lt_prog_compiler_static='-Bstatic'
8855 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8856 lt_prog_compiler_wl='-Wl,'
8857 lt_prog_compiler_pic='-KPIC'
8858 lt_prog_compiler_static='-Bstatic'
8861 unicos*)
8862 lt_prog_compiler_wl='-Wl,'
8863 lt_prog_compiler_can_build_shared=no
8866 uts4*)
8867 lt_prog_compiler_pic='-pic'
8868 lt_prog_compiler_static='-Bstatic'
8872 lt_prog_compiler_can_build_shared=no
8874 esac
8877 case $host_os in
8878 # For platforms which do not support PIC, -DPIC is meaningless:
8879 *djgpp*)
8880 lt_prog_compiler_pic=
8883 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8885 esac
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8887 $as_echo "$lt_prog_compiler_pic" >&6; }
8895 # Check to make sure the PIC flag actually works.
8897 if test -n "$lt_prog_compiler_pic"; then
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8899 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8900 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8901 $as_echo_n "(cached) " >&6
8902 else
8903 lt_cv_prog_compiler_pic_works=no
8904 ac_outfile=conftest.$ac_objext
8905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8906 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8907 # Insert the option either (1) after the last *FLAGS variable, or
8908 # (2) before a word containing "conftest.", or (3) at the end.
8909 # Note that $ac_compile itself does not contain backslashes and begins
8910 # with a dollar sign (not a hyphen), so the echo should work correctly.
8911 # The option is referenced via a variable to avoid confusing sed.
8912 lt_compile=`echo "$ac_compile" | $SED \
8913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8915 -e 's:$: $lt_compiler_flag:'`
8916 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8917 (eval "$lt_compile" 2>conftest.err)
8918 ac_status=$?
8919 cat conftest.err >&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 if (exit $ac_status) && test -s "$ac_outfile"; then
8922 # The compiler can only warn and ignore the option if not recognized
8923 # So say no if there are warnings other than the usual output.
8924 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8925 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8926 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8927 lt_cv_prog_compiler_pic_works=yes
8930 $RM conftest*
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8934 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8936 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8937 case $lt_prog_compiler_pic in
8938 "" | " "*) ;;
8939 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8940 esac
8941 else
8942 lt_prog_compiler_pic=
8943 lt_prog_compiler_can_build_shared=no
8954 # Check to make sure the static flag actually works.
8956 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8958 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8959 if ${lt_cv_prog_compiler_static_works+:} false; then :
8960 $as_echo_n "(cached) " >&6
8961 else
8962 lt_cv_prog_compiler_static_works=no
8963 save_LDFLAGS="$LDFLAGS"
8964 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8965 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8966 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8967 # The linker can only warn and ignore the option if not recognized
8968 # So say no if there are warnings
8969 if test -s conftest.err; then
8970 # Append any errors to the config.log.
8971 cat conftest.err 1>&5
8972 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8973 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8974 if diff conftest.exp conftest.er2 >/dev/null; then
8975 lt_cv_prog_compiler_static_works=yes
8977 else
8978 lt_cv_prog_compiler_static_works=yes
8981 $RM -r conftest*
8982 LDFLAGS="$save_LDFLAGS"
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8986 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8988 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8990 else
8991 lt_prog_compiler_static=
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9001 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9002 if ${lt_cv_prog_compiler_c_o+:} false; then :
9003 $as_echo_n "(cached) " >&6
9004 else
9005 lt_cv_prog_compiler_c_o=no
9006 $RM -r conftest 2>/dev/null
9007 mkdir conftest
9008 cd conftest
9009 mkdir out
9010 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9012 lt_compiler_flag="-o out/conftest2.$ac_objext"
9013 # Insert the option either (1) after the last *FLAGS variable, or
9014 # (2) before a word containing "conftest.", or (3) at the end.
9015 # Note that $ac_compile itself does not contain backslashes and begins
9016 # with a dollar sign (not a hyphen), so the echo should work correctly.
9017 lt_compile=`echo "$ac_compile" | $SED \
9018 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9020 -e 's:$: $lt_compiler_flag:'`
9021 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9022 (eval "$lt_compile" 2>out/conftest.err)
9023 ac_status=$?
9024 cat out/conftest.err >&5
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9027 then
9028 # The compiler can only warn and ignore the option if not recognized
9029 # So say no if there are warnings
9030 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9031 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9032 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9033 lt_cv_prog_compiler_c_o=yes
9036 chmod u+w . 2>&5
9037 $RM conftest*
9038 # SGI C++ compiler will create directory out/ii_files/ for
9039 # template instantiation
9040 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9041 $RM out/* && rmdir out
9042 cd ..
9043 $RM -r conftest
9044 $RM conftest*
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9048 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9056 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9057 if ${lt_cv_prog_compiler_c_o+:} false; then :
9058 $as_echo_n "(cached) " >&6
9059 else
9060 lt_cv_prog_compiler_c_o=no
9061 $RM -r conftest 2>/dev/null
9062 mkdir conftest
9063 cd conftest
9064 mkdir out
9065 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9067 lt_compiler_flag="-o out/conftest2.$ac_objext"
9068 # Insert the option either (1) after the last *FLAGS variable, or
9069 # (2) before a word containing "conftest.", or (3) at the end.
9070 # Note that $ac_compile itself does not contain backslashes and begins
9071 # with a dollar sign (not a hyphen), so the echo should work correctly.
9072 lt_compile=`echo "$ac_compile" | $SED \
9073 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9074 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9075 -e 's:$: $lt_compiler_flag:'`
9076 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9077 (eval "$lt_compile" 2>out/conftest.err)
9078 ac_status=$?
9079 cat out/conftest.err >&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9082 then
9083 # The compiler can only warn and ignore the option if not recognized
9084 # So say no if there are warnings
9085 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9086 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9087 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9088 lt_cv_prog_compiler_c_o=yes
9091 chmod u+w . 2>&5
9092 $RM conftest*
9093 # SGI C++ compiler will create directory out/ii_files/ for
9094 # template instantiation
9095 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9096 $RM out/* && rmdir out
9097 cd ..
9098 $RM -r conftest
9099 $RM conftest*
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9103 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9108 hard_links="nottested"
9109 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9110 # do not overwrite the value of need_locks provided by the user
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9112 $as_echo_n "checking if we can lock with hard links... " >&6; }
9113 hard_links=yes
9114 $RM conftest*
9115 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9116 touch conftest.a
9117 ln conftest.a conftest.b 2>&5 || hard_links=no
9118 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9120 $as_echo "$hard_links" >&6; }
9121 if test "$hard_links" = no; then
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9123 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9124 need_locks=warn
9126 else
9127 need_locks=no
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9136 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9138 runpath_var=
9139 allow_undefined_flag=
9140 always_export_symbols=no
9141 archive_cmds=
9142 archive_expsym_cmds=
9143 compiler_needs_object=no
9144 enable_shared_with_static_runtimes=no
9145 export_dynamic_flag_spec=
9146 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9147 hardcode_automatic=no
9148 hardcode_direct=no
9149 hardcode_direct_absolute=no
9150 hardcode_libdir_flag_spec=
9151 hardcode_libdir_flag_spec_ld=
9152 hardcode_libdir_separator=
9153 hardcode_minus_L=no
9154 hardcode_shlibpath_var=unsupported
9155 inherit_rpath=no
9156 link_all_deplibs=unknown
9157 module_cmds=
9158 module_expsym_cmds=
9159 old_archive_from_new_cmds=
9160 old_archive_from_expsyms_cmds=
9161 thread_safe_flag_spec=
9162 whole_archive_flag_spec=
9163 # include_expsyms should be a list of space-separated symbols to be *always*
9164 # included in the symbol list
9165 include_expsyms=
9166 # exclude_expsyms can be an extended regexp of symbols to exclude
9167 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9168 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9169 # as well as any symbol that contains `d'.
9170 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9171 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9172 # platforms (ab)use it in PIC code, but their linkers get confused if
9173 # the symbol is explicitly referenced. Since portable code cannot
9174 # rely on this symbol name, it's probably fine to never include it in
9175 # preloaded symbol tables.
9176 # Exclude shared library initialization/finalization symbols.
9177 extract_expsyms_cmds=
9179 case $host_os in
9180 cygwin* | mingw* | pw32* | cegcc*)
9181 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9182 # When not using gcc, we currently assume that we are using
9183 # Microsoft Visual C++.
9184 if test "$GCC" != yes; then
9185 with_gnu_ld=no
9188 interix*)
9189 # we just hope/assume this is gcc and not c89 (= MSVC++)
9190 with_gnu_ld=yes
9192 openbsd*)
9193 with_gnu_ld=no
9195 esac
9197 ld_shlibs=yes
9199 # On some targets, GNU ld is compatible enough with the native linker
9200 # that we're better off using the native interface for both.
9201 lt_use_gnu_ld_interface=no
9202 if test "$with_gnu_ld" = yes; then
9203 case $host_os in
9204 aix*)
9205 # The AIX port of GNU ld has always aspired to compatibility
9206 # with the native linker. However, as the warning in the GNU ld
9207 # block says, versions before 2.19.5* couldn't really create working
9208 # shared libraries, regardless of the interface used.
9209 case `$LD -v 2>&1` in
9210 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9211 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9212 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9214 lt_use_gnu_ld_interface=yes
9216 esac
9219 lt_use_gnu_ld_interface=yes
9221 esac
9224 if test "$lt_use_gnu_ld_interface" = yes; then
9225 # If archive_cmds runs LD, not CC, wlarc should be empty
9226 wlarc='${wl}'
9228 # Set some defaults for GNU ld with shared library support. These
9229 # are reset later if shared libraries are not supported. Putting them
9230 # here allows them to be overridden if necessary.
9231 runpath_var=LD_RUN_PATH
9232 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9233 export_dynamic_flag_spec='${wl}--export-dynamic'
9234 # ancient GNU ld didn't support --whole-archive et. al.
9235 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9236 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9237 else
9238 whole_archive_flag_spec=
9240 supports_anon_versioning=no
9241 case `$LD -v 2>&1` in
9242 *GNU\ gold*) supports_anon_versioning=yes ;;
9243 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9244 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9245 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9246 *\ 2.11.*) ;; # other 2.11 versions
9247 *) supports_anon_versioning=yes ;;
9248 esac
9250 # See if GNU ld supports shared libraries.
9251 case $host_os in
9252 aix[3-9]*)
9253 # On AIX/PPC, the GNU linker is very broken
9254 if test "$host_cpu" != ia64; then
9255 ld_shlibs=no
9256 cat <<_LT_EOF 1>&2
9258 *** Warning: the GNU linker, at least up to release 2.19, is reported
9259 *** to be unable to reliably create shared libraries on AIX.
9260 *** Therefore, libtool is disabling shared libraries support. If you
9261 *** really care for shared libraries, you may want to install binutils
9262 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9263 *** You will then need to restart the configuration process.
9265 _LT_EOF
9269 amigaos*)
9270 case $host_cpu in
9271 powerpc)
9272 # see comment about AmigaOS4 .so support
9273 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9274 archive_expsym_cmds=''
9276 m68k)
9277 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9278 hardcode_libdir_flag_spec='-L$libdir'
9279 hardcode_minus_L=yes
9281 esac
9284 beos*)
9285 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9286 allow_undefined_flag=unsupported
9287 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9288 # support --undefined. This deserves some investigation. FIXME
9289 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9290 else
9291 ld_shlibs=no
9295 cygwin* | mingw* | pw32* | cegcc*)
9296 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9297 # as there is no search path for DLLs.
9298 hardcode_libdir_flag_spec='-L$libdir'
9299 export_dynamic_flag_spec='${wl}--export-all-symbols'
9300 allow_undefined_flag=unsupported
9301 always_export_symbols=no
9302 enable_shared_with_static_runtimes=yes
9303 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9305 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9306 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9307 # If the export-symbols file already is a .def file (1st line
9308 # is EXPORTS), use it as is; otherwise, prepend...
9309 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9310 cp $export_symbols $output_objdir/$soname.def;
9311 else
9312 echo EXPORTS > $output_objdir/$soname.def;
9313 cat $export_symbols >> $output_objdir/$soname.def;
9315 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9316 else
9317 ld_shlibs=no
9321 haiku*)
9322 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9323 link_all_deplibs=yes
9326 interix[3-9]*)
9327 hardcode_direct=no
9328 hardcode_shlibpath_var=no
9329 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9330 export_dynamic_flag_spec='${wl}-E'
9331 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9332 # Instead, shared libraries are loaded at an image base (0x10000000 by
9333 # default) and relocated if they conflict, which is a slow very memory
9334 # consuming and fragmenting process. To avoid this, we pick a random,
9335 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9336 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9337 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9338 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9341 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9342 tmp_diet=no
9343 if test "$host_os" = linux-dietlibc; then
9344 case $cc_basename in
9345 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9346 esac
9348 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9349 && test "$tmp_diet" = no
9350 then
9351 tmp_addflag=' $pic_flag'
9352 tmp_sharedflag='-shared'
9353 case $cc_basename,$host_cpu in
9354 pgcc*) # Portland Group C compiler
9355 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9356 tmp_addflag=' $pic_flag'
9358 pgf77* | pgf90* | pgf95* | pgfortran*)
9359 # Portland Group f77 and f90 compilers
9360 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9361 tmp_addflag=' $pic_flag -Mnomain' ;;
9362 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9363 tmp_addflag=' -i_dynamic' ;;
9364 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9365 tmp_addflag=' -i_dynamic -nofor_main' ;;
9366 ifc* | ifort*) # Intel Fortran compiler
9367 tmp_addflag=' -nofor_main' ;;
9368 lf95*) # Lahey Fortran 8.1
9369 whole_archive_flag_spec=
9370 tmp_sharedflag='--shared' ;;
9371 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9372 tmp_sharedflag='-qmkshrobj'
9373 tmp_addflag= ;;
9374 nvcc*) # Cuda Compiler Driver 2.2
9375 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9376 compiler_needs_object=yes
9378 esac
9379 case `$CC -V 2>&1 | sed 5q` in
9380 *Sun\ C*) # Sun C 5.9
9381 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9382 compiler_needs_object=yes
9383 tmp_sharedflag='-G' ;;
9384 *Sun\ F*) # Sun Fortran 8.3
9385 tmp_sharedflag='-G' ;;
9386 esac
9387 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9389 if test "x$supports_anon_versioning" = xyes; then
9390 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9391 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9392 echo "local: *; };" >> $output_objdir/$libname.ver~
9393 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9396 case $cc_basename in
9397 xlf* | bgf* | bgxlf* | mpixlf*)
9398 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9399 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9400 hardcode_libdir_flag_spec=
9401 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9402 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9403 if test "x$supports_anon_versioning" = xyes; then
9404 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9405 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9406 echo "local: *; };" >> $output_objdir/$libname.ver~
9407 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9410 esac
9411 else
9412 ld_shlibs=no
9416 netbsd*)
9417 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9418 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9419 wlarc=
9420 else
9421 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9422 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9426 solaris*)
9427 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9428 ld_shlibs=no
9429 cat <<_LT_EOF 1>&2
9431 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9432 *** create shared libraries on Solaris systems. Therefore, libtool
9433 *** is disabling shared libraries support. We urge you to upgrade GNU
9434 *** binutils to release 2.9.1 or newer. Another option is to modify
9435 *** your PATH or compiler configuration so that the native linker is
9436 *** used, and then restart.
9438 _LT_EOF
9439 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9440 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9441 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9442 else
9443 ld_shlibs=no
9447 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9448 case `$LD -v 2>&1` in
9449 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9450 ld_shlibs=no
9451 cat <<_LT_EOF 1>&2
9453 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9454 *** reliably create shared libraries on SCO systems. Therefore, libtool
9455 *** is disabling shared libraries support. We urge you to upgrade GNU
9456 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9457 *** your PATH or compiler configuration so that the native linker is
9458 *** used, and then restart.
9460 _LT_EOF
9463 # For security reasons, it is highly recommended that you always
9464 # use absolute paths for naming shared libraries, and exclude the
9465 # DT_RUNPATH tag from executables and libraries. But doing so
9466 # requires that you compile everything twice, which is a pain.
9467 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9468 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9469 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9470 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9471 else
9472 ld_shlibs=no
9475 esac
9478 sunos4*)
9479 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9480 wlarc=
9481 hardcode_direct=yes
9482 hardcode_shlibpath_var=no
9486 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9487 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9488 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9489 else
9490 ld_shlibs=no
9493 esac
9495 if test "$ld_shlibs" = no; then
9496 runpath_var=
9497 hardcode_libdir_flag_spec=
9498 export_dynamic_flag_spec=
9499 whole_archive_flag_spec=
9501 else
9502 # PORTME fill in a description of your system's linker (not GNU ld)
9503 case $host_os in
9504 aix3*)
9505 allow_undefined_flag=unsupported
9506 always_export_symbols=yes
9507 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9508 # Note: this linker hardcodes the directories in LIBPATH if there
9509 # are no directories specified by -L.
9510 hardcode_minus_L=yes
9511 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9512 # Neither direct hardcoding nor static linking is supported with a
9513 # broken collect2.
9514 hardcode_direct=unsupported
9518 aix[4-9]*)
9519 if test "$host_cpu" = ia64; then
9520 # On IA64, the linker does run time linking by default, so we don't
9521 # have to do anything special.
9522 aix_use_runtimelinking=no
9523 exp_sym_flag='-Bexport'
9524 no_entry_flag=""
9525 else
9526 # If we're using GNU nm, then we don't want the "-C" option.
9527 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9528 # Also, AIX nm treats weak defined symbols like other global
9529 # defined symbols, whereas GNU nm marks them as "W".
9530 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9531 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9532 else
9533 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9535 aix_use_runtimelinking=no
9537 # Test if we are trying to use run time linking or normal
9538 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9539 # need to do runtime linking.
9540 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9541 for ld_flag in $LDFLAGS; do
9542 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9543 aix_use_runtimelinking=yes
9544 break
9546 done
9548 esac
9550 exp_sym_flag='-bexport'
9551 no_entry_flag='-bnoentry'
9554 # When large executables or shared objects are built, AIX ld can
9555 # have problems creating the table of contents. If linking a library
9556 # or program results in "error TOC overflow" add -mminimal-toc to
9557 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9558 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9560 archive_cmds=''
9561 hardcode_direct=yes
9562 hardcode_direct_absolute=yes
9563 hardcode_libdir_separator=':'
9564 link_all_deplibs=yes
9565 file_list_spec='${wl}-f,'
9567 if test "$GCC" = yes; then
9568 case $host_os in aix4.[012]|aix4.[012].*)
9569 # We only want to do this on AIX 4.2 and lower, the check
9570 # below for broken collect2 doesn't work under 4.3+
9571 collect2name=`${CC} -print-prog-name=collect2`
9572 if test -f "$collect2name" &&
9573 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9574 then
9575 # We have reworked collect2
9577 else
9578 # We have old collect2
9579 hardcode_direct=unsupported
9580 # It fails to find uninstalled libraries when the uninstalled
9581 # path is not listed in the libpath. Setting hardcode_minus_L
9582 # to unsupported forces relinking
9583 hardcode_minus_L=yes
9584 hardcode_libdir_flag_spec='-L$libdir'
9585 hardcode_libdir_separator=
9588 esac
9589 shared_flag='-shared'
9590 if test "$aix_use_runtimelinking" = yes; then
9591 shared_flag="$shared_flag "'${wl}-G'
9593 else
9594 # not using gcc
9595 if test "$host_cpu" = ia64; then
9596 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9597 # chokes on -Wl,-G. The following line is correct:
9598 shared_flag='-G'
9599 else
9600 if test "$aix_use_runtimelinking" = yes; then
9601 shared_flag='${wl}-G'
9602 else
9603 shared_flag='${wl}-bM:SRE'
9608 export_dynamic_flag_spec='${wl}-bexpall'
9609 # It seems that -bexpall does not export symbols beginning with
9610 # underscore (_), so it is better to generate a list of symbols to export.
9611 always_export_symbols=yes
9612 if test "$aix_use_runtimelinking" = yes; then
9613 # Warning - without using the other runtime loading flags (-brtl),
9614 # -berok will link without error, but may produce a broken library.
9615 allow_undefined_flag='-berok'
9616 # Determine the default libpath from the value encoded in an
9617 # empty executable.
9618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9619 /* end confdefs.h. */
9622 main ()
9626 return 0;
9628 _ACEOF
9629 if ac_fn_c_try_link "$LINENO"; then :
9631 lt_aix_libpath_sed='
9632 /Import File Strings/,/^$/ {
9633 /^0/ {
9634 s/^0 *\(.*\)$/\1/
9638 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9639 # Check for a 64-bit object if we didn't find anything.
9640 if test -z "$aix_libpath"; then
9641 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9644 rm -f core conftest.err conftest.$ac_objext \
9645 conftest$ac_exeext conftest.$ac_ext
9646 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9648 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9649 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9650 else
9651 if test "$host_cpu" = ia64; then
9652 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9653 allow_undefined_flag="-z nodefs"
9654 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9655 else
9656 # Determine the default libpath from the value encoded in an
9657 # empty executable.
9658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9659 /* end confdefs.h. */
9662 main ()
9666 return 0;
9668 _ACEOF
9669 if ac_fn_c_try_link "$LINENO"; then :
9671 lt_aix_libpath_sed='
9672 /Import File Strings/,/^$/ {
9673 /^0/ {
9674 s/^0 *\(.*\)$/\1/
9678 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9679 # Check for a 64-bit object if we didn't find anything.
9680 if test -z "$aix_libpath"; then
9681 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9684 rm -f core conftest.err conftest.$ac_objext \
9685 conftest$ac_exeext conftest.$ac_ext
9686 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9688 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9689 # Warning - without using the other run time loading flags,
9690 # -berok will link without error, but may produce a broken library.
9691 no_undefined_flag=' ${wl}-bernotok'
9692 allow_undefined_flag=' ${wl}-berok'
9693 if test "$with_gnu_ld" = yes; then
9694 # We only use this code for GNU lds that support --whole-archive.
9695 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9696 else
9697 # Exported symbols can be pulled into shared objects from archives
9698 whole_archive_flag_spec='$convenience'
9700 archive_cmds_need_lc=yes
9701 # This is similar to how AIX traditionally builds its shared libraries.
9702 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9707 amigaos*)
9708 case $host_cpu in
9709 powerpc)
9710 # see comment about AmigaOS4 .so support
9711 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9712 archive_expsym_cmds=''
9714 m68k)
9715 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9716 hardcode_libdir_flag_spec='-L$libdir'
9717 hardcode_minus_L=yes
9719 esac
9722 bsdi[45]*)
9723 export_dynamic_flag_spec=-rdynamic
9726 cygwin* | mingw* | pw32* | cegcc*)
9727 # When not using gcc, we currently assume that we are using
9728 # Microsoft Visual C++.
9729 # hardcode_libdir_flag_spec is actually meaningless, as there is
9730 # no search path for DLLs.
9731 hardcode_libdir_flag_spec=' '
9732 allow_undefined_flag=unsupported
9733 # Tell ltmain to make .lib files, not .a files.
9734 libext=lib
9735 # Tell ltmain to make .dll files, not .so files.
9736 shrext_cmds=".dll"
9737 # FIXME: Setting linknames here is a bad hack.
9738 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9739 # The linker will automatically build a .lib file if we build a DLL.
9740 old_archive_from_new_cmds='true'
9741 # FIXME: Should let the user specify the lib program.
9742 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9743 fix_srcfile_path='`cygpath -w "$srcfile"`'
9744 enable_shared_with_static_runtimes=yes
9747 darwin* | rhapsody*)
9750 archive_cmds_need_lc=no
9751 hardcode_direct=no
9752 hardcode_automatic=yes
9753 hardcode_shlibpath_var=unsupported
9754 if test "$lt_cv_ld_force_load" = "yes"; then
9755 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9756 else
9757 whole_archive_flag_spec=''
9759 link_all_deplibs=yes
9760 allow_undefined_flag="$_lt_dar_allow_undefined"
9761 case $cc_basename in
9762 ifort*) _lt_dar_can_shared=yes ;;
9763 *) _lt_dar_can_shared=$GCC ;;
9764 esac
9765 if test "$_lt_dar_can_shared" = "yes"; then
9766 output_verbose_link_cmd=func_echo_all
9767 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9768 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9769 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9770 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9772 else
9773 ld_shlibs=no
9778 dgux*)
9779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9780 hardcode_libdir_flag_spec='-L$libdir'
9781 hardcode_shlibpath_var=no
9784 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9785 # support. Future versions do this automatically, but an explicit c++rt0.o
9786 # does not break anything, and helps significantly (at the cost of a little
9787 # extra space).
9788 freebsd2.2*)
9789 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9790 hardcode_libdir_flag_spec='-R$libdir'
9791 hardcode_direct=yes
9792 hardcode_shlibpath_var=no
9795 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9796 freebsd2.*)
9797 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9798 hardcode_direct=yes
9799 hardcode_minus_L=yes
9800 hardcode_shlibpath_var=no
9803 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9804 freebsd* | dragonfly*)
9805 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9806 hardcode_libdir_flag_spec='-R$libdir'
9807 hardcode_direct=yes
9808 hardcode_shlibpath_var=no
9811 hpux9*)
9812 if test "$GCC" = yes; then
9813 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9814 else
9815 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9817 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9818 hardcode_libdir_separator=:
9819 hardcode_direct=yes
9821 # hardcode_minus_L: Not really in the search PATH,
9822 # but as the default location of the library.
9823 hardcode_minus_L=yes
9824 export_dynamic_flag_spec='${wl}-E'
9827 hpux10*)
9828 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9829 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9830 else
9831 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9833 if test "$with_gnu_ld" = no; then
9834 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9835 hardcode_libdir_flag_spec_ld='+b $libdir'
9836 hardcode_libdir_separator=:
9837 hardcode_direct=yes
9838 hardcode_direct_absolute=yes
9839 export_dynamic_flag_spec='${wl}-E'
9840 # hardcode_minus_L: Not really in the search PATH,
9841 # but as the default location of the library.
9842 hardcode_minus_L=yes
9846 hpux11*)
9847 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9848 case $host_cpu in
9849 hppa*64*)
9850 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9852 ia64*)
9853 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9856 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9858 esac
9859 else
9860 case $host_cpu in
9861 hppa*64*)
9862 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9864 ia64*)
9865 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9869 # Older versions of the 11.00 compiler do not understand -b yet
9870 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9872 $as_echo_n "checking if $CC understands -b... " >&6; }
9873 if ${lt_cv_prog_compiler__b+:} false; then :
9874 $as_echo_n "(cached) " >&6
9875 else
9876 lt_cv_prog_compiler__b=no
9877 save_LDFLAGS="$LDFLAGS"
9878 LDFLAGS="$LDFLAGS -b"
9879 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9880 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9881 # The linker can only warn and ignore the option if not recognized
9882 # So say no if there are warnings
9883 if test -s conftest.err; then
9884 # Append any errors to the config.log.
9885 cat conftest.err 1>&5
9886 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9887 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9888 if diff conftest.exp conftest.er2 >/dev/null; then
9889 lt_cv_prog_compiler__b=yes
9891 else
9892 lt_cv_prog_compiler__b=yes
9895 $RM -r conftest*
9896 LDFLAGS="$save_LDFLAGS"
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9900 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9902 if test x"$lt_cv_prog_compiler__b" = xyes; then
9903 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9904 else
9905 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9909 esac
9911 if test "$with_gnu_ld" = no; then
9912 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9913 hardcode_libdir_separator=:
9915 case $host_cpu in
9916 hppa*64*|ia64*)
9917 hardcode_direct=no
9918 hardcode_shlibpath_var=no
9921 hardcode_direct=yes
9922 hardcode_direct_absolute=yes
9923 export_dynamic_flag_spec='${wl}-E'
9925 # hardcode_minus_L: Not really in the search PATH,
9926 # but as the default location of the library.
9927 hardcode_minus_L=yes
9929 esac
9933 irix5* | irix6* | nonstopux*)
9934 if test "$GCC" = yes; then
9935 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9936 # Try to use the -exported_symbol ld option, if it does not
9937 # work, assume that -exports_file does not work either and
9938 # implicitly export all symbols.
9939 save_LDFLAGS="$LDFLAGS"
9940 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9942 /* end confdefs.h. */
9943 int foo(void) {}
9944 _ACEOF
9945 if ac_fn_c_try_link "$LINENO"; then :
9946 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9949 rm -f core conftest.err conftest.$ac_objext \
9950 conftest$ac_exeext conftest.$ac_ext
9951 LDFLAGS="$save_LDFLAGS"
9952 else
9953 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9954 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9956 archive_cmds_need_lc='no'
9957 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9958 hardcode_libdir_separator=:
9959 inherit_rpath=yes
9960 link_all_deplibs=yes
9963 netbsd*)
9964 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9965 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9966 else
9967 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9969 hardcode_libdir_flag_spec='-R$libdir'
9970 hardcode_direct=yes
9971 hardcode_shlibpath_var=no
9974 newsos6)
9975 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9976 hardcode_direct=yes
9977 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9978 hardcode_libdir_separator=:
9979 hardcode_shlibpath_var=no
9982 *nto* | *qnx*)
9985 openbsd*)
9986 if test -f /usr/libexec/ld.so; then
9987 hardcode_direct=yes
9988 hardcode_shlibpath_var=no
9989 hardcode_direct_absolute=yes
9990 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9991 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9992 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9993 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9994 export_dynamic_flag_spec='${wl}-E'
9995 else
9996 case $host_os in
9997 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9998 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9999 hardcode_libdir_flag_spec='-R$libdir'
10002 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10003 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10005 esac
10007 else
10008 ld_shlibs=no
10012 os2*)
10013 hardcode_libdir_flag_spec='-L$libdir'
10014 hardcode_minus_L=yes
10015 allow_undefined_flag=unsupported
10016 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10017 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10020 osf3*)
10021 if test "$GCC" = yes; then
10022 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10023 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10024 else
10025 allow_undefined_flag=' -expect_unresolved \*'
10026 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10028 archive_cmds_need_lc='no'
10029 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10030 hardcode_libdir_separator=:
10033 osf4* | osf5*) # as osf3* with the addition of -msym flag
10034 if test "$GCC" = yes; then
10035 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10036 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10037 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10038 else
10039 allow_undefined_flag=' -expect_unresolved \*'
10040 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10041 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10042 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10044 # Both c and cxx compiler support -rpath directly
10045 hardcode_libdir_flag_spec='-rpath $libdir'
10047 archive_cmds_need_lc='no'
10048 hardcode_libdir_separator=:
10051 solaris*)
10052 no_undefined_flag=' -z defs'
10053 if test "$GCC" = yes; then
10054 wlarc='${wl}'
10055 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10056 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10057 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10058 else
10059 case `$CC -V 2>&1` in
10060 *"Compilers 5.0"*)
10061 wlarc=''
10062 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10063 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10064 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10067 wlarc='${wl}'
10068 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10069 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10070 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10072 esac
10074 hardcode_libdir_flag_spec='-R$libdir'
10075 hardcode_shlibpath_var=no
10076 case $host_os in
10077 solaris2.[0-5] | solaris2.[0-5].*) ;;
10079 # The compiler driver will combine and reorder linker options,
10080 # but understands `-z linker_flag'. GCC discards it without `$wl',
10081 # but is careful enough not to reorder.
10082 # Supported since Solaris 2.6 (maybe 2.5.1?)
10083 if test "$GCC" = yes; then
10084 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10085 else
10086 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10089 esac
10090 link_all_deplibs=yes
10093 sunos4*)
10094 if test "x$host_vendor" = xsequent; then
10095 # Use $CC to link under sequent, because it throws in some extra .o
10096 # files that make .init and .fini sections work.
10097 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10098 else
10099 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10101 hardcode_libdir_flag_spec='-L$libdir'
10102 hardcode_direct=yes
10103 hardcode_minus_L=yes
10104 hardcode_shlibpath_var=no
10107 sysv4)
10108 case $host_vendor in
10109 sni)
10110 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10111 hardcode_direct=yes # is this really true???
10113 siemens)
10114 ## LD is ld it makes a PLAMLIB
10115 ## CC just makes a GrossModule.
10116 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10117 reload_cmds='$CC -r -o $output$reload_objs'
10118 hardcode_direct=no
10120 motorola)
10121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10122 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10124 esac
10125 runpath_var='LD_RUN_PATH'
10126 hardcode_shlibpath_var=no
10129 sysv4.3*)
10130 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10131 hardcode_shlibpath_var=no
10132 export_dynamic_flag_spec='-Bexport'
10135 sysv4*MP*)
10136 if test -d /usr/nec; then
10137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10138 hardcode_shlibpath_var=no
10139 runpath_var=LD_RUN_PATH
10140 hardcode_runpath_var=yes
10141 ld_shlibs=yes
10145 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10146 no_undefined_flag='${wl}-z,text'
10147 archive_cmds_need_lc=no
10148 hardcode_shlibpath_var=no
10149 runpath_var='LD_RUN_PATH'
10151 if test "$GCC" = yes; then
10152 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10153 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10154 else
10155 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10156 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10160 sysv5* | sco3.2v5* | sco5v6*)
10161 # Note: We can NOT use -z defs as we might desire, because we do not
10162 # link with -lc, and that would cause any symbols used from libc to
10163 # always be unresolved, which means just about no library would
10164 # ever link correctly. If we're not using GNU ld we use -z text
10165 # though, which does catch some bad symbols but isn't as heavy-handed
10166 # as -z defs.
10167 no_undefined_flag='${wl}-z,text'
10168 allow_undefined_flag='${wl}-z,nodefs'
10169 archive_cmds_need_lc=no
10170 hardcode_shlibpath_var=no
10171 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10172 hardcode_libdir_separator=':'
10173 link_all_deplibs=yes
10174 export_dynamic_flag_spec='${wl}-Bexport'
10175 runpath_var='LD_RUN_PATH'
10177 if test "$GCC" = yes; then
10178 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10179 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10180 else
10181 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10182 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10186 uts4*)
10187 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10188 hardcode_libdir_flag_spec='-L$libdir'
10189 hardcode_shlibpath_var=no
10193 ld_shlibs=no
10195 esac
10197 if test x$host_vendor = xsni; then
10198 case $host in
10199 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10200 export_dynamic_flag_spec='${wl}-Blargedynsym'
10202 esac
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10207 $as_echo "$ld_shlibs" >&6; }
10208 test "$ld_shlibs" = no && can_build_shared=no
10210 with_gnu_ld=$with_gnu_ld
10227 # Do we need to explicitly link libc?
10229 case "x$archive_cmds_need_lc" in
10230 x|xyes)
10231 # Assume -lc should be added
10232 archive_cmds_need_lc=yes
10234 if test "$enable_shared" = yes && test "$GCC" = yes; then
10235 case $archive_cmds in
10236 *'~'*)
10237 # FIXME: we may have to deal with multi-command sequences.
10239 '$CC '*)
10240 # Test whether the compiler implicitly links with -lc since on some
10241 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10242 # to ld, don't add -lc before -lgcc.
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10244 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10245 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10246 $as_echo_n "(cached) " >&6
10247 else
10248 $RM conftest*
10249 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10252 (eval $ac_compile) 2>&5
10253 ac_status=$?
10254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10255 test $ac_status = 0; } 2>conftest.err; then
10256 soname=conftest
10257 lib=conftest
10258 libobjs=conftest.$ac_objext
10259 deplibs=
10260 wl=$lt_prog_compiler_wl
10261 pic_flag=$lt_prog_compiler_pic
10262 compiler_flags=-v
10263 linker_flags=-v
10264 verstring=
10265 output_objdir=.
10266 libname=conftest
10267 lt_save_allow_undefined_flag=$allow_undefined_flag
10268 allow_undefined_flag=
10269 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10270 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10271 ac_status=$?
10272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10273 test $ac_status = 0; }
10274 then
10275 lt_cv_archive_cmds_need_lc=no
10276 else
10277 lt_cv_archive_cmds_need_lc=yes
10279 allow_undefined_flag=$lt_save_allow_undefined_flag
10280 else
10281 cat conftest.err 1>&5
10283 $RM conftest*
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10287 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10288 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10290 esac
10293 esac
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10452 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10454 if test "$GCC" = yes; then
10455 case $host_os in
10456 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10457 *) lt_awk_arg="/^libraries:/" ;;
10458 esac
10459 case $host_os in
10460 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10461 *) lt_sed_strip_eq="s,=/,/,g" ;;
10462 esac
10463 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10464 case $lt_search_path_spec in
10465 *\;*)
10466 # if the path contains ";" then we assume it to be the separator
10467 # otherwise default to the standard path separator (i.e. ":") - it is
10468 # assumed that no part of a normal pathname contains ";" but that should
10469 # okay in the real world where ";" in dirpaths is itself problematic.
10470 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10473 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10475 esac
10476 # Ok, now we have the path, separated by spaces, we can step through it
10477 # and add multilib dir if necessary.
10478 lt_tmp_lt_search_path_spec=
10479 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10480 for lt_sys_path in $lt_search_path_spec; do
10481 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10482 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10483 else
10484 test -d "$lt_sys_path" && \
10485 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10487 done
10488 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10489 BEGIN {RS=" "; FS="/|\n";} {
10490 lt_foo="";
10491 lt_count=0;
10492 for (lt_i = NF; lt_i > 0; lt_i--) {
10493 if ($lt_i != "" && $lt_i != ".") {
10494 if ($lt_i == "..") {
10495 lt_count++;
10496 } else {
10497 if (lt_count == 0) {
10498 lt_foo="/" $lt_i lt_foo;
10499 } else {
10500 lt_count--;
10505 if (lt_foo != "") { lt_freq[lt_foo]++; }
10506 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10508 # AWK program above erroneously prepends '/' to C:/dos/paths
10509 # for these hosts.
10510 case $host_os in
10511 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10512 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10513 esac
10514 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10515 else
10516 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10518 library_names_spec=
10519 libname_spec='lib$name'
10520 soname_spec=
10521 shrext_cmds=".so"
10522 postinstall_cmds=
10523 postuninstall_cmds=
10524 finish_cmds=
10525 finish_eval=
10526 shlibpath_var=
10527 shlibpath_overrides_runpath=unknown
10528 version_type=none
10529 dynamic_linker="$host_os ld.so"
10530 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10531 need_lib_prefix=unknown
10532 hardcode_into_libs=no
10534 # when you set need_version to no, make sure it does not cause -set_version
10535 # flags to be left without arguments
10536 need_version=unknown
10538 case $host_os in
10539 aix3*)
10540 version_type=linux
10541 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10542 shlibpath_var=LIBPATH
10544 # AIX 3 has no versioning support, so we append a major version to the name.
10545 soname_spec='${libname}${release}${shared_ext}$major'
10548 aix[4-9]*)
10549 version_type=linux
10550 need_lib_prefix=no
10551 need_version=no
10552 hardcode_into_libs=yes
10553 if test "$host_cpu" = ia64; then
10554 # AIX 5 supports IA64
10555 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10556 shlibpath_var=LD_LIBRARY_PATH
10557 else
10558 # With GCC up to 2.95.x, collect2 would create an import file
10559 # for dependence libraries. The import file would start with
10560 # the line `#! .'. This would cause the generated library to
10561 # depend on `.', always an invalid library. This was fixed in
10562 # development snapshots of GCC prior to 3.0.
10563 case $host_os in
10564 aix4 | aix4.[01] | aix4.[01].*)
10565 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10566 echo ' yes '
10567 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10569 else
10570 can_build_shared=no
10573 esac
10574 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10575 # soname into executable. Probably we can add versioning support to
10576 # collect2, so additional links can be useful in future.
10577 if test "$aix_use_runtimelinking" = yes; then
10578 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10579 # instead of lib<name>.a to let people know that these are not
10580 # typical AIX shared libraries.
10581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10582 else
10583 # We preserve .a as extension for shared libraries through AIX4.2
10584 # and later when we are not doing run time linking.
10585 library_names_spec='${libname}${release}.a $libname.a'
10586 soname_spec='${libname}${release}${shared_ext}$major'
10588 shlibpath_var=LIBPATH
10592 amigaos*)
10593 case $host_cpu in
10594 powerpc)
10595 # Since July 2007 AmigaOS4 officially supports .so libraries.
10596 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10599 m68k)
10600 library_names_spec='$libname.ixlibrary $libname.a'
10601 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10602 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10604 esac
10607 beos*)
10608 library_names_spec='${libname}${shared_ext}'
10609 dynamic_linker="$host_os ld.so"
10610 shlibpath_var=LIBRARY_PATH
10613 bsdi[45]*)
10614 version_type=linux
10615 need_version=no
10616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10617 soname_spec='${libname}${release}${shared_ext}$major'
10618 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10619 shlibpath_var=LD_LIBRARY_PATH
10620 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10621 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10622 # the default ld.so.conf also contains /usr/contrib/lib and
10623 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10624 # libtool to hard-code these into programs
10627 cygwin* | mingw* | pw32* | cegcc*)
10628 version_type=windows
10629 shrext_cmds=".dll"
10630 need_version=no
10631 need_lib_prefix=no
10633 case $GCC,$host_os in
10634 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10635 library_names_spec='$libname.dll.a'
10636 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10637 postinstall_cmds='base_file=`basename \${file}`~
10638 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10639 dldir=$destdir/`dirname \$dlpath`~
10640 test -d \$dldir || mkdir -p \$dldir~
10641 $install_prog $dir/$dlname \$dldir/$dlname~
10642 chmod a+x \$dldir/$dlname~
10643 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10644 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10646 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10647 dlpath=$dir/\$dldll~
10648 $RM \$dlpath'
10649 shlibpath_overrides_runpath=yes
10651 case $host_os in
10652 cygwin*)
10653 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10654 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10656 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10658 mingw* | cegcc*)
10659 # MinGW DLLs use traditional 'lib' prefix
10660 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10662 pw32*)
10663 # pw32 DLLs use 'pw' prefix rather than 'lib'
10664 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10666 esac
10670 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10672 esac
10673 dynamic_linker='Win32 ld.exe'
10674 # FIXME: first we should search . and the directory the executable is in
10675 shlibpath_var=PATH
10678 darwin* | rhapsody*)
10679 dynamic_linker="$host_os dyld"
10680 version_type=darwin
10681 need_lib_prefix=no
10682 need_version=no
10683 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10684 soname_spec='${libname}${release}${major}$shared_ext'
10685 shlibpath_overrides_runpath=yes
10686 shlibpath_var=DYLD_LIBRARY_PATH
10687 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10689 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10690 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10693 dgux*)
10694 version_type=linux
10695 need_lib_prefix=no
10696 need_version=no
10697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10698 soname_spec='${libname}${release}${shared_ext}$major'
10699 shlibpath_var=LD_LIBRARY_PATH
10702 freebsd* | dragonfly*)
10703 # DragonFly does not have aout. When/if they implement a new
10704 # versioning mechanism, adjust this.
10705 if test -x /usr/bin/objformat; then
10706 objformat=`/usr/bin/objformat`
10707 else
10708 case $host_os in
10709 freebsd[23].*) objformat=aout ;;
10710 *) objformat=elf ;;
10711 esac
10713 version_type=freebsd-$objformat
10714 case $version_type in
10715 freebsd-elf*)
10716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10717 need_version=no
10718 need_lib_prefix=no
10720 freebsd-*)
10721 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10722 need_version=yes
10724 esac
10725 shlibpath_var=LD_LIBRARY_PATH
10726 case $host_os in
10727 freebsd2.*)
10728 shlibpath_overrides_runpath=yes
10730 freebsd3.[01]* | freebsdelf3.[01]*)
10731 shlibpath_overrides_runpath=yes
10732 hardcode_into_libs=yes
10734 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10735 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10736 shlibpath_overrides_runpath=no
10737 hardcode_into_libs=yes
10739 *) # from 4.6 on, and DragonFly
10740 shlibpath_overrides_runpath=yes
10741 hardcode_into_libs=yes
10743 esac
10746 haiku*)
10747 version_type=linux
10748 need_lib_prefix=no
10749 need_version=no
10750 dynamic_linker="$host_os runtime_loader"
10751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10752 soname_spec='${libname}${release}${shared_ext}$major'
10753 shlibpath_var=LIBRARY_PATH
10754 shlibpath_overrides_runpath=yes
10755 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10756 hardcode_into_libs=yes
10759 hpux9* | hpux10* | hpux11*)
10760 # Give a soname corresponding to the major version so that dld.sl refuses to
10761 # link against other versions.
10762 version_type=sunos
10763 need_lib_prefix=no
10764 need_version=no
10765 case $host_cpu in
10766 ia64*)
10767 shrext_cmds='.so'
10768 hardcode_into_libs=yes
10769 dynamic_linker="$host_os dld.so"
10770 shlibpath_var=LD_LIBRARY_PATH
10771 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10773 soname_spec='${libname}${release}${shared_ext}$major'
10774 if test "X$HPUX_IA64_MODE" = X32; then
10775 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10776 else
10777 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10779 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10781 hppa*64*)
10782 shrext_cmds='.sl'
10783 hardcode_into_libs=yes
10784 dynamic_linker="$host_os dld.sl"
10785 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10786 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10788 soname_spec='${libname}${release}${shared_ext}$major'
10789 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10790 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10793 shrext_cmds='.sl'
10794 dynamic_linker="$host_os dld.sl"
10795 shlibpath_var=SHLIB_PATH
10796 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10798 soname_spec='${libname}${release}${shared_ext}$major'
10800 esac
10801 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10802 postinstall_cmds='chmod 555 $lib'
10803 # or fails outright, so override atomically:
10804 install_override_mode=555
10807 interix[3-9]*)
10808 version_type=linux
10809 need_lib_prefix=no
10810 need_version=no
10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10812 soname_spec='${libname}${release}${shared_ext}$major'
10813 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10814 shlibpath_var=LD_LIBRARY_PATH
10815 shlibpath_overrides_runpath=no
10816 hardcode_into_libs=yes
10819 irix5* | irix6* | nonstopux*)
10820 case $host_os in
10821 nonstopux*) version_type=nonstopux ;;
10823 if test "$lt_cv_prog_gnu_ld" = yes; then
10824 version_type=linux
10825 else
10826 version_type=irix
10827 fi ;;
10828 esac
10829 need_lib_prefix=no
10830 need_version=no
10831 soname_spec='${libname}${release}${shared_ext}$major'
10832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10833 case $host_os in
10834 irix5* | nonstopux*)
10835 libsuff= shlibsuff=
10838 case $LD in # libtool.m4 will add one of these switches to LD
10839 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10840 libsuff= shlibsuff= libmagic=32-bit;;
10841 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10842 libsuff=32 shlibsuff=N32 libmagic=N32;;
10843 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10844 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10845 *) libsuff= shlibsuff= libmagic=never-match;;
10846 esac
10848 esac
10849 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10850 shlibpath_overrides_runpath=no
10851 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10852 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10853 hardcode_into_libs=yes
10856 # No shared lib support for Linux oldld, aout, or coff.
10857 linux*oldld* | linux*aout* | linux*coff*)
10858 dynamic_linker=no
10861 # This must be Linux ELF.
10863 # uclinux* changes (here and below) have been submitted to the libtool
10864 # project, but have not yet been accepted: they are GCC-local changes
10865 # for the time being. (See
10866 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10867 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10868 version_type=linux
10869 need_lib_prefix=no
10870 need_version=no
10871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10872 soname_spec='${libname}${release}${shared_ext}$major'
10873 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10874 shlibpath_var=LD_LIBRARY_PATH
10875 shlibpath_overrides_runpath=no
10877 # Some binutils ld are patched to set DT_RUNPATH
10878 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10879 $as_echo_n "(cached) " >&6
10880 else
10881 lt_cv_shlibpath_overrides_runpath=no
10882 save_LDFLAGS=$LDFLAGS
10883 save_libdir=$libdir
10884 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10885 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10887 /* end confdefs.h. */
10890 main ()
10894 return 0;
10896 _ACEOF
10897 if ac_fn_c_try_link "$LINENO"; then :
10898 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10899 lt_cv_shlibpath_overrides_runpath=yes
10902 rm -f core conftest.err conftest.$ac_objext \
10903 conftest$ac_exeext conftest.$ac_ext
10904 LDFLAGS=$save_LDFLAGS
10905 libdir=$save_libdir
10909 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10911 # This implies no fast_install, which is unacceptable.
10912 # Some rework will be needed to allow for fast_install
10913 # before this can be enabled.
10914 hardcode_into_libs=yes
10916 # Append ld.so.conf contents to the search path
10917 if test -f /etc/ld.so.conf; then
10918 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' ' '`
10919 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10922 # We used to test for /lib/ld.so.1 and disable shared libraries on
10923 # powerpc, because MkLinux only supported shared libraries with the
10924 # GNU dynamic linker. Since this was broken with cross compilers,
10925 # most powerpc-linux boxes support dynamic linking these days and
10926 # people can always --disable-shared, the test was removed, and we
10927 # assume the GNU/Linux dynamic linker is in use.
10928 dynamic_linker='GNU/Linux ld.so'
10931 netbsd*)
10932 version_type=sunos
10933 need_lib_prefix=no
10934 need_version=no
10935 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10937 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10938 dynamic_linker='NetBSD (a.out) ld.so'
10939 else
10940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10941 soname_spec='${libname}${release}${shared_ext}$major'
10942 dynamic_linker='NetBSD ld.elf_so'
10944 shlibpath_var=LD_LIBRARY_PATH
10945 shlibpath_overrides_runpath=yes
10946 hardcode_into_libs=yes
10949 newsos6)
10950 version_type=linux
10951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10952 shlibpath_var=LD_LIBRARY_PATH
10953 shlibpath_overrides_runpath=yes
10956 *nto* | *qnx*)
10957 version_type=qnx
10958 need_lib_prefix=no
10959 need_version=no
10960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10961 soname_spec='${libname}${release}${shared_ext}$major'
10962 shlibpath_var=LD_LIBRARY_PATH
10963 shlibpath_overrides_runpath=no
10964 hardcode_into_libs=yes
10965 dynamic_linker='ldqnx.so'
10968 openbsd*)
10969 version_type=sunos
10970 sys_lib_dlsearch_path_spec="/usr/lib"
10971 need_lib_prefix=no
10972 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10973 case $host_os in
10974 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10975 *) need_version=no ;;
10976 esac
10977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10978 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10979 shlibpath_var=LD_LIBRARY_PATH
10980 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10981 case $host_os in
10982 openbsd2.[89] | openbsd2.[89].*)
10983 shlibpath_overrides_runpath=no
10986 shlibpath_overrides_runpath=yes
10988 esac
10989 else
10990 shlibpath_overrides_runpath=yes
10994 os2*)
10995 libname_spec='$name'
10996 shrext_cmds=".dll"
10997 need_lib_prefix=no
10998 library_names_spec='$libname${shared_ext} $libname.a'
10999 dynamic_linker='OS/2 ld.exe'
11000 shlibpath_var=LIBPATH
11003 osf3* | osf4* | osf5*)
11004 version_type=osf
11005 need_lib_prefix=no
11006 need_version=no
11007 soname_spec='${libname}${release}${shared_ext}$major'
11008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11009 shlibpath_var=LD_LIBRARY_PATH
11010 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11011 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11014 rdos*)
11015 dynamic_linker=no
11018 solaris*)
11019 version_type=linux
11020 need_lib_prefix=no
11021 need_version=no
11022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11023 soname_spec='${libname}${release}${shared_ext}$major'
11024 shlibpath_var=LD_LIBRARY_PATH
11025 shlibpath_overrides_runpath=yes
11026 hardcode_into_libs=yes
11027 # ldd complains unless libraries are executable
11028 postinstall_cmds='chmod +x $lib'
11031 sunos4*)
11032 version_type=sunos
11033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11034 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11035 shlibpath_var=LD_LIBRARY_PATH
11036 shlibpath_overrides_runpath=yes
11037 if test "$with_gnu_ld" = yes; then
11038 need_lib_prefix=no
11040 need_version=yes
11043 sysv4 | sysv4.3*)
11044 version_type=linux
11045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11046 soname_spec='${libname}${release}${shared_ext}$major'
11047 shlibpath_var=LD_LIBRARY_PATH
11048 case $host_vendor in
11049 sni)
11050 shlibpath_overrides_runpath=no
11051 need_lib_prefix=no
11052 runpath_var=LD_RUN_PATH
11054 siemens)
11055 need_lib_prefix=no
11057 motorola)
11058 need_lib_prefix=no
11059 need_version=no
11060 shlibpath_overrides_runpath=no
11061 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11063 esac
11066 sysv4*MP*)
11067 if test -d /usr/nec ;then
11068 version_type=linux
11069 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11070 soname_spec='$libname${shared_ext}.$major'
11071 shlibpath_var=LD_LIBRARY_PATH
11075 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11076 version_type=freebsd-elf
11077 need_lib_prefix=no
11078 need_version=no
11079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11080 soname_spec='${libname}${release}${shared_ext}$major'
11081 shlibpath_var=LD_LIBRARY_PATH
11082 shlibpath_overrides_runpath=yes
11083 hardcode_into_libs=yes
11084 if test "$with_gnu_ld" = yes; then
11085 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11086 else
11087 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11088 case $host_os in
11089 sco3.2v5*)
11090 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11092 esac
11094 sys_lib_dlsearch_path_spec='/usr/lib'
11097 tpf*)
11098 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11099 version_type=linux
11100 need_lib_prefix=no
11101 need_version=no
11102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11103 shlibpath_var=LD_LIBRARY_PATH
11104 shlibpath_overrides_runpath=no
11105 hardcode_into_libs=yes
11108 uts4*)
11109 version_type=linux
11110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11111 soname_spec='${libname}${release}${shared_ext}$major'
11112 shlibpath_var=LD_LIBRARY_PATH
11116 dynamic_linker=no
11118 esac
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11120 $as_echo "$dynamic_linker" >&6; }
11121 test "$dynamic_linker" = no && can_build_shared=no
11123 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11124 if test "$GCC" = yes; then
11125 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11128 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11129 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11131 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11132 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11227 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11228 hardcode_action=
11229 if test -n "$hardcode_libdir_flag_spec" ||
11230 test -n "$runpath_var" ||
11231 test "X$hardcode_automatic" = "Xyes" ; then
11233 # We can hardcode non-existent directories.
11234 if test "$hardcode_direct" != no &&
11235 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11236 # have to relink, otherwise we might link with an installed library
11237 # when we should be linking with a yet-to-be-installed one
11238 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11239 test "$hardcode_minus_L" != no; then
11240 # Linking always hardcodes the temporary library directory.
11241 hardcode_action=relink
11242 else
11243 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11244 hardcode_action=immediate
11246 else
11247 # We cannot hardcode anything, or else we can only hardcode existing
11248 # directories.
11249 hardcode_action=unsupported
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11252 $as_echo "$hardcode_action" >&6; }
11254 if test "$hardcode_action" = relink ||
11255 test "$inherit_rpath" = yes; then
11256 # Fast installation is not supported
11257 enable_fast_install=no
11258 elif test "$shlibpath_overrides_runpath" = yes ||
11259 test "$enable_shared" = no; then
11260 # Fast installation is not necessary
11261 enable_fast_install=needless
11269 if test "x$enable_dlopen" != xyes; then
11270 enable_dlopen=unknown
11271 enable_dlopen_self=unknown
11272 enable_dlopen_self_static=unknown
11273 else
11274 lt_cv_dlopen=no
11275 lt_cv_dlopen_libs=
11277 case $host_os in
11278 beos*)
11279 lt_cv_dlopen="load_add_on"
11280 lt_cv_dlopen_libs=
11281 lt_cv_dlopen_self=yes
11284 mingw* | pw32* | cegcc*)
11285 lt_cv_dlopen="LoadLibrary"
11286 lt_cv_dlopen_libs=
11289 cygwin*)
11290 lt_cv_dlopen="dlopen"
11291 lt_cv_dlopen_libs=
11294 darwin*)
11295 # if libdl is installed we need to link against it
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11297 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11298 if ${ac_cv_lib_dl_dlopen+:} false; then :
11299 $as_echo_n "(cached) " >&6
11300 else
11301 ac_check_lib_save_LIBS=$LIBS
11302 LIBS="-ldl $LIBS"
11303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11304 /* end confdefs.h. */
11306 /* Override any GCC internal prototype to avoid an error.
11307 Use char because int might match the return type of a GCC
11308 builtin and then its argument prototype would still apply. */
11309 #ifdef __cplusplus
11310 extern "C"
11311 #endif
11312 char dlopen ();
11314 main ()
11316 return dlopen ();
11318 return 0;
11320 _ACEOF
11321 if ac_fn_c_try_link "$LINENO"; then :
11322 ac_cv_lib_dl_dlopen=yes
11323 else
11324 ac_cv_lib_dl_dlopen=no
11326 rm -f core conftest.err conftest.$ac_objext \
11327 conftest$ac_exeext conftest.$ac_ext
11328 LIBS=$ac_check_lib_save_LIBS
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11331 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11332 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11333 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11334 else
11336 lt_cv_dlopen="dyld"
11337 lt_cv_dlopen_libs=
11338 lt_cv_dlopen_self=yes
11345 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11346 if test "x$ac_cv_func_shl_load" = xyes; then :
11347 lt_cv_dlopen="shl_load"
11348 else
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11350 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11351 if ${ac_cv_lib_dld_shl_load+:} false; then :
11352 $as_echo_n "(cached) " >&6
11353 else
11354 ac_check_lib_save_LIBS=$LIBS
11355 LIBS="-ldld $LIBS"
11356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11357 /* end confdefs.h. */
11359 /* Override any GCC internal prototype to avoid an error.
11360 Use char because int might match the return type of a GCC
11361 builtin and then its argument prototype would still apply. */
11362 #ifdef __cplusplus
11363 extern "C"
11364 #endif
11365 char shl_load ();
11367 main ()
11369 return shl_load ();
11371 return 0;
11373 _ACEOF
11374 if ac_fn_c_try_link "$LINENO"; then :
11375 ac_cv_lib_dld_shl_load=yes
11376 else
11377 ac_cv_lib_dld_shl_load=no
11379 rm -f core conftest.err conftest.$ac_objext \
11380 conftest$ac_exeext conftest.$ac_ext
11381 LIBS=$ac_check_lib_save_LIBS
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11384 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11385 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11386 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11387 else
11388 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11389 if test "x$ac_cv_func_dlopen" = xyes; then :
11390 lt_cv_dlopen="dlopen"
11391 else
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11393 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11394 if ${ac_cv_lib_dl_dlopen+:} false; then :
11395 $as_echo_n "(cached) " >&6
11396 else
11397 ac_check_lib_save_LIBS=$LIBS
11398 LIBS="-ldl $LIBS"
11399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11400 /* end confdefs.h. */
11402 /* Override any GCC internal prototype to avoid an error.
11403 Use char because int might match the return type of a GCC
11404 builtin and then its argument prototype would still apply. */
11405 #ifdef __cplusplus
11406 extern "C"
11407 #endif
11408 char dlopen ();
11410 main ()
11412 return dlopen ();
11414 return 0;
11416 _ACEOF
11417 if ac_fn_c_try_link "$LINENO"; then :
11418 ac_cv_lib_dl_dlopen=yes
11419 else
11420 ac_cv_lib_dl_dlopen=no
11422 rm -f core conftest.err conftest.$ac_objext \
11423 conftest$ac_exeext conftest.$ac_ext
11424 LIBS=$ac_check_lib_save_LIBS
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11427 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11428 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11429 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11430 else
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11432 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11433 if ${ac_cv_lib_svld_dlopen+:} false; then :
11434 $as_echo_n "(cached) " >&6
11435 else
11436 ac_check_lib_save_LIBS=$LIBS
11437 LIBS="-lsvld $LIBS"
11438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11439 /* end confdefs.h. */
11441 /* Override any GCC internal prototype to avoid an error.
11442 Use char because int might match the return type of a GCC
11443 builtin and then its argument prototype would still apply. */
11444 #ifdef __cplusplus
11445 extern "C"
11446 #endif
11447 char dlopen ();
11449 main ()
11451 return dlopen ();
11453 return 0;
11455 _ACEOF
11456 if ac_fn_c_try_link "$LINENO"; then :
11457 ac_cv_lib_svld_dlopen=yes
11458 else
11459 ac_cv_lib_svld_dlopen=no
11461 rm -f core conftest.err conftest.$ac_objext \
11462 conftest$ac_exeext conftest.$ac_ext
11463 LIBS=$ac_check_lib_save_LIBS
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11466 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11467 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11468 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11469 else
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11471 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11472 if ${ac_cv_lib_dld_dld_link+:} false; then :
11473 $as_echo_n "(cached) " >&6
11474 else
11475 ac_check_lib_save_LIBS=$LIBS
11476 LIBS="-ldld $LIBS"
11477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11478 /* end confdefs.h. */
11480 /* Override any GCC internal prototype to avoid an error.
11481 Use char because int might match the return type of a GCC
11482 builtin and then its argument prototype would still apply. */
11483 #ifdef __cplusplus
11484 extern "C"
11485 #endif
11486 char dld_link ();
11488 main ()
11490 return dld_link ();
11492 return 0;
11494 _ACEOF
11495 if ac_fn_c_try_link "$LINENO"; then :
11496 ac_cv_lib_dld_dld_link=yes
11497 else
11498 ac_cv_lib_dld_dld_link=no
11500 rm -f core conftest.err conftest.$ac_objext \
11501 conftest$ac_exeext conftest.$ac_ext
11502 LIBS=$ac_check_lib_save_LIBS
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11505 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11506 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11507 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11526 esac
11528 if test "x$lt_cv_dlopen" != xno; then
11529 enable_dlopen=yes
11530 else
11531 enable_dlopen=no
11534 case $lt_cv_dlopen in
11535 dlopen)
11536 save_CPPFLAGS="$CPPFLAGS"
11537 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11539 save_LDFLAGS="$LDFLAGS"
11540 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11542 save_LIBS="$LIBS"
11543 LIBS="$lt_cv_dlopen_libs $LIBS"
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11546 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11547 if ${lt_cv_dlopen_self+:} false; then :
11548 $as_echo_n "(cached) " >&6
11549 else
11550 if test "$cross_compiling" = yes; then :
11551 lt_cv_dlopen_self=cross
11552 else
11553 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11554 lt_status=$lt_dlunknown
11555 cat > conftest.$ac_ext <<_LT_EOF
11556 #line 11566 "configure"
11557 #include "confdefs.h"
11559 #if HAVE_DLFCN_H
11560 #include <dlfcn.h>
11561 #endif
11563 #include <stdio.h>
11565 #ifdef RTLD_GLOBAL
11566 # define LT_DLGLOBAL RTLD_GLOBAL
11567 #else
11568 # ifdef DL_GLOBAL
11569 # define LT_DLGLOBAL DL_GLOBAL
11570 # else
11571 # define LT_DLGLOBAL 0
11572 # endif
11573 #endif
11575 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11576 find out it does not work in some platform. */
11577 #ifndef LT_DLLAZY_OR_NOW
11578 # ifdef RTLD_LAZY
11579 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11580 # else
11581 # ifdef DL_LAZY
11582 # define LT_DLLAZY_OR_NOW DL_LAZY
11583 # else
11584 # ifdef RTLD_NOW
11585 # define LT_DLLAZY_OR_NOW RTLD_NOW
11586 # else
11587 # ifdef DL_NOW
11588 # define LT_DLLAZY_OR_NOW DL_NOW
11589 # else
11590 # define LT_DLLAZY_OR_NOW 0
11591 # endif
11592 # endif
11593 # endif
11594 # endif
11595 #endif
11597 /* When -fvisbility=hidden is used, assume the code has been annotated
11598 correspondingly for the symbols needed. */
11599 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11600 void fnord () __attribute__((visibility("default")));
11601 #endif
11603 void fnord () { int i=42; }
11604 int main ()
11606 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11607 int status = $lt_dlunknown;
11609 if (self)
11611 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11612 else
11614 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11615 else puts (dlerror ());
11617 /* dlclose (self); */
11619 else
11620 puts (dlerror ());
11622 return status;
11624 _LT_EOF
11625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11626 (eval $ac_link) 2>&5
11627 ac_status=$?
11628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11629 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11630 (./conftest; exit; ) >&5 2>/dev/null
11631 lt_status=$?
11632 case x$lt_status in
11633 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11634 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11635 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11636 esac
11637 else :
11638 # compilation failed
11639 lt_cv_dlopen_self=no
11642 rm -fr conftest*
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11647 $as_echo "$lt_cv_dlopen_self" >&6; }
11649 if test "x$lt_cv_dlopen_self" = xyes; then
11650 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11652 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11653 if ${lt_cv_dlopen_self_static+:} false; then :
11654 $as_echo_n "(cached) " >&6
11655 else
11656 if test "$cross_compiling" = yes; then :
11657 lt_cv_dlopen_self_static=cross
11658 else
11659 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11660 lt_status=$lt_dlunknown
11661 cat > conftest.$ac_ext <<_LT_EOF
11662 #line 11672 "configure"
11663 #include "confdefs.h"
11665 #if HAVE_DLFCN_H
11666 #include <dlfcn.h>
11667 #endif
11669 #include <stdio.h>
11671 #ifdef RTLD_GLOBAL
11672 # define LT_DLGLOBAL RTLD_GLOBAL
11673 #else
11674 # ifdef DL_GLOBAL
11675 # define LT_DLGLOBAL DL_GLOBAL
11676 # else
11677 # define LT_DLGLOBAL 0
11678 # endif
11679 #endif
11681 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11682 find out it does not work in some platform. */
11683 #ifndef LT_DLLAZY_OR_NOW
11684 # ifdef RTLD_LAZY
11685 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11686 # else
11687 # ifdef DL_LAZY
11688 # define LT_DLLAZY_OR_NOW DL_LAZY
11689 # else
11690 # ifdef RTLD_NOW
11691 # define LT_DLLAZY_OR_NOW RTLD_NOW
11692 # else
11693 # ifdef DL_NOW
11694 # define LT_DLLAZY_OR_NOW DL_NOW
11695 # else
11696 # define LT_DLLAZY_OR_NOW 0
11697 # endif
11698 # endif
11699 # endif
11700 # endif
11701 #endif
11703 /* When -fvisbility=hidden is used, assume the code has been annotated
11704 correspondingly for the symbols needed. */
11705 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11706 void fnord () __attribute__((visibility("default")));
11707 #endif
11709 void fnord () { int i=42; }
11710 int main ()
11712 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11713 int status = $lt_dlunknown;
11715 if (self)
11717 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11718 else
11720 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11721 else puts (dlerror ());
11723 /* dlclose (self); */
11725 else
11726 puts (dlerror ());
11728 return status;
11730 _LT_EOF
11731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11732 (eval $ac_link) 2>&5
11733 ac_status=$?
11734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11735 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11736 (./conftest; exit; ) >&5 2>/dev/null
11737 lt_status=$?
11738 case x$lt_status in
11739 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11740 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11741 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11742 esac
11743 else :
11744 # compilation failed
11745 lt_cv_dlopen_self_static=no
11748 rm -fr conftest*
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11753 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11756 CPPFLAGS="$save_CPPFLAGS"
11757 LDFLAGS="$save_LDFLAGS"
11758 LIBS="$save_LIBS"
11760 esac
11762 case $lt_cv_dlopen_self in
11763 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11764 *) enable_dlopen_self=unknown ;;
11765 esac
11767 case $lt_cv_dlopen_self_static in
11768 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11769 *) enable_dlopen_self_static=unknown ;;
11770 esac
11789 striplib=
11790 old_striplib=
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11792 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11793 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11794 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11795 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11797 $as_echo "yes" >&6; }
11798 else
11799 # FIXME - insert some real tests, host_os isn't really good enough
11800 case $host_os in
11801 darwin*)
11802 if test -n "$STRIP" ; then
11803 striplib="$STRIP -x"
11804 old_striplib="$STRIP -S"
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11806 $as_echo "yes" >&6; }
11807 else
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11809 $as_echo "no" >&6; }
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11814 $as_echo "no" >&6; }
11816 esac
11830 # Report which library types will actually be built
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11832 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11834 $as_echo "$can_build_shared" >&6; }
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11837 $as_echo_n "checking whether to build shared libraries... " >&6; }
11838 test "$can_build_shared" = "no" && enable_shared=no
11840 # On AIX, shared libraries and static libraries use the same namespace, and
11841 # are all built from PIC.
11842 case $host_os in
11843 aix3*)
11844 test "$enable_shared" = yes && enable_static=no
11845 if test -n "$RANLIB"; then
11846 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11847 postinstall_cmds='$RANLIB $lib'
11851 aix[4-9]*)
11852 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11853 test "$enable_shared" = yes && enable_static=no
11856 esac
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11858 $as_echo "$enable_shared" >&6; }
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11861 $as_echo_n "checking whether to build static libraries... " >&6; }
11862 # Make sure either enable_shared or enable_static is yes.
11863 test "$enable_shared" = yes || enable_static=yes
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11865 $as_echo "$enable_static" >&6; }
11871 ac_ext=c
11872 ac_cpp='$CPP $CPPFLAGS'
11873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11877 CC="$lt_save_CC"
11879 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11880 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11881 (test "X$CXX" != "Xg++"))) ; then
11882 ac_ext=cpp
11883 ac_cpp='$CXXCPP $CPPFLAGS'
11884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11888 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11889 if test -z "$CXXCPP"; then
11890 if ${ac_cv_prog_CXXCPP+:} false; then :
11891 $as_echo_n "(cached) " >&6
11892 else
11893 # Double quotes because CXXCPP needs to be expanded
11894 for CXXCPP in "$CXX -E" "/lib/cpp"
11896 ac_preproc_ok=false
11897 for ac_cxx_preproc_warn_flag in '' yes
11899 # Use a header file that comes with gcc, so configuring glibc
11900 # with a fresh cross-compiler works.
11901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11902 # <limits.h> exists even on freestanding compilers.
11903 # On the NeXT, cc -E runs the code through the compiler's parser,
11904 # not just through cpp. "Syntax error" is here to catch this case.
11905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11906 /* end confdefs.h. */
11907 #ifdef __STDC__
11908 # include <limits.h>
11909 #else
11910 # include <assert.h>
11911 #endif
11912 Syntax error
11913 _ACEOF
11914 if ac_fn_cxx_try_cpp "$LINENO"; then :
11916 else
11917 # Broken: fails on valid input.
11918 continue
11920 rm -f conftest.err conftest.i conftest.$ac_ext
11922 # OK, works on sane cases. Now check whether nonexistent headers
11923 # can be detected and how.
11924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11925 /* end confdefs.h. */
11926 #include <ac_nonexistent.h>
11927 _ACEOF
11928 if ac_fn_cxx_try_cpp "$LINENO"; then :
11929 # Broken: success on invalid input.
11930 continue
11931 else
11932 # Passes both tests.
11933 ac_preproc_ok=:
11934 break
11936 rm -f conftest.err conftest.i conftest.$ac_ext
11938 done
11939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11940 rm -f conftest.i conftest.err conftest.$ac_ext
11941 if $ac_preproc_ok; then :
11942 break
11945 done
11946 ac_cv_prog_CXXCPP=$CXXCPP
11949 CXXCPP=$ac_cv_prog_CXXCPP
11950 else
11951 ac_cv_prog_CXXCPP=$CXXCPP
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11954 $as_echo "$CXXCPP" >&6; }
11955 ac_preproc_ok=false
11956 for ac_cxx_preproc_warn_flag in '' yes
11958 # Use a header file that comes with gcc, so configuring glibc
11959 # with a fresh cross-compiler works.
11960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11961 # <limits.h> exists even on freestanding compilers.
11962 # On the NeXT, cc -E runs the code through the compiler's parser,
11963 # not just through cpp. "Syntax error" is here to catch this case.
11964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11965 /* end confdefs.h. */
11966 #ifdef __STDC__
11967 # include <limits.h>
11968 #else
11969 # include <assert.h>
11970 #endif
11971 Syntax error
11972 _ACEOF
11973 if ac_fn_cxx_try_cpp "$LINENO"; then :
11975 else
11976 # Broken: fails on valid input.
11977 continue
11979 rm -f conftest.err conftest.i conftest.$ac_ext
11981 # OK, works on sane cases. Now check whether nonexistent headers
11982 # can be detected and how.
11983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11984 /* end confdefs.h. */
11985 #include <ac_nonexistent.h>
11986 _ACEOF
11987 if ac_fn_cxx_try_cpp "$LINENO"; then :
11988 # Broken: success on invalid input.
11989 continue
11990 else
11991 # Passes both tests.
11992 ac_preproc_ok=:
11993 break
11995 rm -f conftest.err conftest.i conftest.$ac_ext
11997 done
11998 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11999 rm -f conftest.i conftest.err conftest.$ac_ext
12000 if $ac_preproc_ok; then :
12002 else
12003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12005 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12006 See \`config.log' for more details" "$LINENO" 5; }
12009 ac_ext=c
12010 ac_cpp='$CPP $CPPFLAGS'
12011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12015 else
12016 _lt_caught_CXX_error=yes
12019 ac_ext=cpp
12020 ac_cpp='$CXXCPP $CPPFLAGS'
12021 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12022 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12023 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12025 archive_cmds_need_lc_CXX=no
12026 allow_undefined_flag_CXX=
12027 always_export_symbols_CXX=no
12028 archive_expsym_cmds_CXX=
12029 compiler_needs_object_CXX=no
12030 export_dynamic_flag_spec_CXX=
12031 hardcode_direct_CXX=no
12032 hardcode_direct_absolute_CXX=no
12033 hardcode_libdir_flag_spec_CXX=
12034 hardcode_libdir_flag_spec_ld_CXX=
12035 hardcode_libdir_separator_CXX=
12036 hardcode_minus_L_CXX=no
12037 hardcode_shlibpath_var_CXX=unsupported
12038 hardcode_automatic_CXX=no
12039 inherit_rpath_CXX=no
12040 module_cmds_CXX=
12041 module_expsym_cmds_CXX=
12042 link_all_deplibs_CXX=unknown
12043 old_archive_cmds_CXX=$old_archive_cmds
12044 reload_flag_CXX=$reload_flag
12045 reload_cmds_CXX=$reload_cmds
12046 no_undefined_flag_CXX=
12047 whole_archive_flag_spec_CXX=
12048 enable_shared_with_static_runtimes_CXX=no
12050 # Source file extension for C++ test sources.
12051 ac_ext=cpp
12053 # Object file extension for compiled C++ test sources.
12054 objext=o
12055 objext_CXX=$objext
12057 # No sense in running all these tests if we already determined that
12058 # the CXX compiler isn't working. Some variables (like enable_shared)
12059 # are currently assumed to apply to all compilers on this platform,
12060 # and will be corrupted by setting them based on a non-working compiler.
12061 if test "$_lt_caught_CXX_error" != yes; then
12062 # Code to be used in simple compile tests
12063 lt_simple_compile_test_code="int some_variable = 0;"
12065 # Code to be used in simple link tests
12066 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12068 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12075 # If no C compiler was specified, use CC.
12076 LTCC=${LTCC-"$CC"}
12078 # If no C compiler flags were specified, use CFLAGS.
12079 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12081 # Allow CC to be a program name with arguments.
12082 compiler=$CC
12085 # save warnings/boilerplate of simple test code
12086 ac_outfile=conftest.$ac_objext
12087 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12088 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12089 _lt_compiler_boilerplate=`cat conftest.err`
12090 $RM conftest*
12092 ac_outfile=conftest.$ac_objext
12093 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12094 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12095 _lt_linker_boilerplate=`cat conftest.err`
12096 $RM -r conftest*
12099 # Allow CC to be a program name with arguments.
12100 lt_save_CC=$CC
12101 lt_save_LD=$LD
12102 lt_save_GCC=$GCC
12103 GCC=$GXX
12104 lt_save_with_gnu_ld=$with_gnu_ld
12105 lt_save_path_LD=$lt_cv_path_LD
12106 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12107 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12108 else
12109 $as_unset lt_cv_prog_gnu_ld
12111 if test -n "${lt_cv_path_LDCXX+set}"; then
12112 lt_cv_path_LD=$lt_cv_path_LDCXX
12113 else
12114 $as_unset lt_cv_path_LD
12116 test -z "${LDCXX+set}" || LD=$LDCXX
12117 CC=${CXX-"c++"}
12118 compiler=$CC
12119 compiler_CXX=$CC
12120 for cc_temp in $compiler""; do
12121 case $cc_temp in
12122 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12123 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12124 \-*) ;;
12125 *) break;;
12126 esac
12127 done
12128 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12131 if test -n "$compiler"; then
12132 # We don't want -fno-exception when compiling C++ code, so set the
12133 # no_builtin_flag separately
12134 if test "$GXX" = yes; then
12135 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12136 else
12137 lt_prog_compiler_no_builtin_flag_CXX=
12140 if test "$GXX" = yes; then
12141 # Set up default GNU C++ configuration
12145 # Check whether --with-gnu-ld was given.
12146 if test "${with_gnu_ld+set}" = set; then :
12147 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12148 else
12149 with_gnu_ld=no
12152 ac_prog=ld
12153 if test "$GCC" = yes; then
12154 # Check if gcc -print-prog-name=ld gives a path.
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12156 $as_echo_n "checking for ld used by $CC... " >&6; }
12157 case $host in
12158 *-*-mingw*)
12159 # gcc leaves a trailing carriage return which upsets mingw
12160 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12162 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12163 esac
12164 case $ac_prog in
12165 # Accept absolute paths.
12166 [\\/]* | ?:[\\/]*)
12167 re_direlt='/[^/][^/]*/\.\./'
12168 # Canonicalize the pathname of ld
12169 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12170 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12171 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12172 done
12173 test -z "$LD" && LD="$ac_prog"
12176 # If it fails, then pretend we aren't using GCC.
12177 ac_prog=ld
12180 # If it is relative, then search for the first ld in PATH.
12181 with_gnu_ld=unknown
12183 esac
12184 elif test "$with_gnu_ld" = yes; then
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12186 $as_echo_n "checking for GNU ld... " >&6; }
12187 else
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12189 $as_echo_n "checking for non-GNU ld... " >&6; }
12191 if ${lt_cv_path_LD+:} false; then :
12192 $as_echo_n "(cached) " >&6
12193 else
12194 if test -z "$LD"; then
12195 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12196 for ac_dir in $PATH; do
12197 IFS="$lt_save_ifs"
12198 test -z "$ac_dir" && ac_dir=.
12199 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12200 lt_cv_path_LD="$ac_dir/$ac_prog"
12201 # Check to see if the program is GNU ld. I'd rather use --version,
12202 # but apparently some variants of GNU ld only accept -v.
12203 # Break only if it was the GNU/non-GNU ld that we prefer.
12204 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12205 *GNU* | *'with BFD'*)
12206 test "$with_gnu_ld" != no && break
12209 test "$with_gnu_ld" != yes && break
12211 esac
12213 done
12214 IFS="$lt_save_ifs"
12215 else
12216 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12220 LD="$lt_cv_path_LD"
12221 if test -n "$LD"; then
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12223 $as_echo "$LD" >&6; }
12224 else
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12226 $as_echo "no" >&6; }
12228 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12230 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12231 if ${lt_cv_prog_gnu_ld+:} false; then :
12232 $as_echo_n "(cached) " >&6
12233 else
12234 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12235 case `$LD -v 2>&1 </dev/null` in
12236 *GNU* | *'with BFD'*)
12237 lt_cv_prog_gnu_ld=yes
12240 lt_cv_prog_gnu_ld=no
12242 esac
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12245 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12246 with_gnu_ld=$lt_cv_prog_gnu_ld
12254 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12255 # archiving commands below assume that GNU ld is being used.
12256 if test "$with_gnu_ld" = yes; then
12257 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12258 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'
12260 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12261 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12263 # If archive_cmds runs LD, not CC, wlarc should be empty
12264 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12265 # investigate it a little bit more. (MM)
12266 wlarc='${wl}'
12268 # ancient GNU ld didn't support --whole-archive et. al.
12269 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12270 $GREP 'no-whole-archive' > /dev/null; then
12271 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12272 else
12273 whole_archive_flag_spec_CXX=
12275 else
12276 with_gnu_ld=no
12277 wlarc=
12279 # A generic and very simple default shared library creation
12280 # command for GNU C++ for the case where it uses the native
12281 # linker, instead of GNU ld. If possible, this setting should
12282 # overridden to take advantage of the native linker features on
12283 # the platform it is being used on.
12284 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12287 # Commands to make compiler produce verbose output that lists
12288 # what "hidden" libraries, object files and flags are used when
12289 # linking a shared library.
12290 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12292 else
12293 GXX=no
12294 with_gnu_ld=no
12295 wlarc=
12298 # PORTME: fill in a description of your system's C++ link characteristics
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12300 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12301 ld_shlibs_CXX=yes
12302 case $host_os in
12303 aix3*)
12304 # FIXME: insert proper C++ library support
12305 ld_shlibs_CXX=no
12307 aix[4-9]*)
12308 if test "$host_cpu" = ia64; then
12309 # On IA64, the linker does run time linking by default, so we don't
12310 # have to do anything special.
12311 aix_use_runtimelinking=no
12312 exp_sym_flag='-Bexport'
12313 no_entry_flag=""
12314 else
12315 aix_use_runtimelinking=no
12317 # Test if we are trying to use run time linking or normal
12318 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12319 # need to do runtime linking.
12320 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12321 for ld_flag in $LDFLAGS; do
12322 case $ld_flag in
12323 *-brtl*)
12324 aix_use_runtimelinking=yes
12325 break
12327 esac
12328 done
12330 esac
12332 exp_sym_flag='-bexport'
12333 no_entry_flag='-bnoentry'
12336 # When large executables or shared objects are built, AIX ld can
12337 # have problems creating the table of contents. If linking a library
12338 # or program results in "error TOC overflow" add -mminimal-toc to
12339 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12340 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12342 archive_cmds_CXX=''
12343 hardcode_direct_CXX=yes
12344 hardcode_direct_absolute_CXX=yes
12345 hardcode_libdir_separator_CXX=':'
12346 link_all_deplibs_CXX=yes
12347 file_list_spec_CXX='${wl}-f,'
12349 if test "$GXX" = yes; then
12350 case $host_os in aix4.[012]|aix4.[012].*)
12351 # We only want to do this on AIX 4.2 and lower, the check
12352 # below for broken collect2 doesn't work under 4.3+
12353 collect2name=`${CC} -print-prog-name=collect2`
12354 if test -f "$collect2name" &&
12355 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12356 then
12357 # We have reworked collect2
12359 else
12360 # We have old collect2
12361 hardcode_direct_CXX=unsupported
12362 # It fails to find uninstalled libraries when the uninstalled
12363 # path is not listed in the libpath. Setting hardcode_minus_L
12364 # to unsupported forces relinking
12365 hardcode_minus_L_CXX=yes
12366 hardcode_libdir_flag_spec_CXX='-L$libdir'
12367 hardcode_libdir_separator_CXX=
12369 esac
12370 shared_flag='-shared'
12371 if test "$aix_use_runtimelinking" = yes; then
12372 shared_flag="$shared_flag "'${wl}-G'
12374 else
12375 # not using gcc
12376 if test "$host_cpu" = ia64; then
12377 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12378 # chokes on -Wl,-G. The following line is correct:
12379 shared_flag='-G'
12380 else
12381 if test "$aix_use_runtimelinking" = yes; then
12382 shared_flag='${wl}-G'
12383 else
12384 shared_flag='${wl}-bM:SRE'
12389 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12390 # It seems that -bexpall does not export symbols beginning with
12391 # underscore (_), so it is better to generate a list of symbols to
12392 # export.
12393 always_export_symbols_CXX=yes
12394 if test "$aix_use_runtimelinking" = yes; then
12395 # Warning - without using the other runtime loading flags (-brtl),
12396 # -berok will link without error, but may produce a broken library.
12397 allow_undefined_flag_CXX='-berok'
12398 # Determine the default libpath from the value encoded in an empty
12399 # executable.
12400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12401 /* end confdefs.h. */
12404 main ()
12408 return 0;
12410 _ACEOF
12411 if ac_fn_cxx_try_link "$LINENO"; then :
12413 lt_aix_libpath_sed='
12414 /Import File Strings/,/^$/ {
12415 /^0/ {
12416 s/^0 *\(.*\)$/\1/
12420 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12421 # Check for a 64-bit object if we didn't find anything.
12422 if test -z "$aix_libpath"; then
12423 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12426 rm -f core conftest.err conftest.$ac_objext \
12427 conftest$ac_exeext conftest.$ac_ext
12428 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12430 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12432 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"
12433 else
12434 if test "$host_cpu" = ia64; then
12435 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12436 allow_undefined_flag_CXX="-z nodefs"
12437 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"
12438 else
12439 # Determine the default libpath from the value encoded in an
12440 # empty executable.
12441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12442 /* end confdefs.h. */
12445 main ()
12449 return 0;
12451 _ACEOF
12452 if ac_fn_cxx_try_link "$LINENO"; then :
12454 lt_aix_libpath_sed='
12455 /Import File Strings/,/^$/ {
12456 /^0/ {
12457 s/^0 *\(.*\)$/\1/
12461 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12462 # Check for a 64-bit object if we didn't find anything.
12463 if test -z "$aix_libpath"; then
12464 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12467 rm -f core conftest.err conftest.$ac_objext \
12468 conftest$ac_exeext conftest.$ac_ext
12469 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12471 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12472 # Warning - without using the other run time loading flags,
12473 # -berok will link without error, but may produce a broken library.
12474 no_undefined_flag_CXX=' ${wl}-bernotok'
12475 allow_undefined_flag_CXX=' ${wl}-berok'
12476 if test "$with_gnu_ld" = yes; then
12477 # We only use this code for GNU lds that support --whole-archive.
12478 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12479 else
12480 # Exported symbols can be pulled into shared objects from archives
12481 whole_archive_flag_spec_CXX='$convenience'
12483 archive_cmds_need_lc_CXX=yes
12484 # This is similar to how AIX traditionally builds its shared
12485 # libraries.
12486 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'
12491 beos*)
12492 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12493 allow_undefined_flag_CXX=unsupported
12494 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12495 # support --undefined. This deserves some investigation. FIXME
12496 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12497 else
12498 ld_shlibs_CXX=no
12502 chorus*)
12503 case $cc_basename in
12505 # FIXME: insert proper C++ library support
12506 ld_shlibs_CXX=no
12508 esac
12511 cygwin* | mingw* | pw32* | cegcc*)
12512 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12513 # as there is no search path for DLLs.
12514 hardcode_libdir_flag_spec_CXX='-L$libdir'
12515 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12516 allow_undefined_flag_CXX=unsupported
12517 always_export_symbols_CXX=no
12518 enable_shared_with_static_runtimes_CXX=yes
12520 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12521 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'
12522 # If the export-symbols file already is a .def file (1st line
12523 # is EXPORTS), use it as is; otherwise, prepend...
12524 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12525 cp $export_symbols $output_objdir/$soname.def;
12526 else
12527 echo EXPORTS > $output_objdir/$soname.def;
12528 cat $export_symbols >> $output_objdir/$soname.def;
12530 $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'
12531 else
12532 ld_shlibs_CXX=no
12535 darwin* | rhapsody*)
12538 archive_cmds_need_lc_CXX=no
12539 hardcode_direct_CXX=no
12540 hardcode_automatic_CXX=yes
12541 hardcode_shlibpath_var_CXX=unsupported
12542 if test "$lt_cv_ld_force_load" = "yes"; then
12543 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\"`'
12544 else
12545 whole_archive_flag_spec_CXX=''
12547 link_all_deplibs_CXX=yes
12548 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12549 case $cc_basename in
12550 ifort*) _lt_dar_can_shared=yes ;;
12551 *) _lt_dar_can_shared=$GCC ;;
12552 esac
12553 if test "$_lt_dar_can_shared" = "yes"; then
12554 output_verbose_link_cmd=func_echo_all
12555 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}"
12556 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12557 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}"
12558 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}"
12559 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12560 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}"
12561 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}"
12564 else
12565 ld_shlibs_CXX=no
12570 dgux*)
12571 case $cc_basename in
12572 ec++*)
12573 # FIXME: insert proper C++ library support
12574 ld_shlibs_CXX=no
12576 ghcx*)
12577 # Green Hills C++ Compiler
12578 # FIXME: insert proper C++ library support
12579 ld_shlibs_CXX=no
12582 # FIXME: insert proper C++ library support
12583 ld_shlibs_CXX=no
12585 esac
12588 freebsd2.*)
12589 # C++ shared libraries reported to be fairly broken before
12590 # switch to ELF
12591 ld_shlibs_CXX=no
12594 freebsd-elf*)
12595 archive_cmds_need_lc_CXX=no
12598 freebsd* | dragonfly*)
12599 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12600 # conventions
12601 ld_shlibs_CXX=yes
12604 gnu*)
12607 haiku*)
12608 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12609 link_all_deplibs_CXX=yes
12612 hpux9*)
12613 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12614 hardcode_libdir_separator_CXX=:
12615 export_dynamic_flag_spec_CXX='${wl}-E'
12616 hardcode_direct_CXX=yes
12617 hardcode_minus_L_CXX=yes # Not in the search PATH,
12618 # but as the default
12619 # location of the library.
12621 case $cc_basename in
12622 CC*)
12623 # FIXME: insert proper C++ library support
12624 ld_shlibs_CXX=no
12626 aCC*)
12627 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'
12628 # Commands to make compiler produce verbose output that lists
12629 # what "hidden" libraries, object files and flags are used when
12630 # linking a shared library.
12632 # There doesn't appear to be a way to prevent this compiler from
12633 # explicitly linking system object files so we need to strip them
12634 # from the output so that they don't get included in the library
12635 # dependencies.
12636 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"'
12639 if test "$GXX" = yes; then
12640 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'
12641 else
12642 # FIXME: insert proper C++ library support
12643 ld_shlibs_CXX=no
12646 esac
12649 hpux10*|hpux11*)
12650 if test $with_gnu_ld = no; then
12651 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12652 hardcode_libdir_separator_CXX=:
12654 case $host_cpu in
12655 hppa*64*|ia64*)
12658 export_dynamic_flag_spec_CXX='${wl}-E'
12660 esac
12662 case $host_cpu in
12663 hppa*64*|ia64*)
12664 hardcode_direct_CXX=no
12665 hardcode_shlibpath_var_CXX=no
12668 hardcode_direct_CXX=yes
12669 hardcode_direct_absolute_CXX=yes
12670 hardcode_minus_L_CXX=yes # Not in the search PATH,
12671 # but as the default
12672 # location of the library.
12674 esac
12676 case $cc_basename in
12677 CC*)
12678 # FIXME: insert proper C++ library support
12679 ld_shlibs_CXX=no
12681 aCC*)
12682 case $host_cpu in
12683 hppa*64*)
12684 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12686 ia64*)
12687 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12690 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12692 esac
12693 # Commands to make compiler produce verbose output that lists
12694 # what "hidden" libraries, object files and flags are used when
12695 # linking a shared library.
12697 # There doesn't appear to be a way to prevent this compiler from
12698 # explicitly linking system object files so we need to strip them
12699 # from the output so that they don't get included in the library
12700 # dependencies.
12701 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"'
12704 if test "$GXX" = yes; then
12705 if test $with_gnu_ld = no; then
12706 case $host_cpu in
12707 hppa*64*)
12708 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12710 ia64*)
12711 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12714 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'
12716 esac
12718 else
12719 # FIXME: insert proper C++ library support
12720 ld_shlibs_CXX=no
12723 esac
12726 interix[3-9]*)
12727 hardcode_direct_CXX=no
12728 hardcode_shlibpath_var_CXX=no
12729 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12730 export_dynamic_flag_spec_CXX='${wl}-E'
12731 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12732 # Instead, shared libraries are loaded at an image base (0x10000000 by
12733 # default) and relocated if they conflict, which is a slow very memory
12734 # consuming and fragmenting process. To avoid this, we pick a random,
12735 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12736 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12737 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'
12738 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'
12740 irix5* | irix6*)
12741 case $cc_basename in
12742 CC*)
12743 # SGI C++
12744 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'
12746 # Archives containing C++ object files must be created using
12747 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12748 # necessary to make sure instantiated templates are included
12749 # in the archive.
12750 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12753 if test "$GXX" = yes; then
12754 if test "$with_gnu_ld" = no; then
12755 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'
12756 else
12757 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'
12760 link_all_deplibs_CXX=yes
12762 esac
12763 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12764 hardcode_libdir_separator_CXX=:
12765 inherit_rpath_CXX=yes
12768 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12769 case $cc_basename in
12770 KCC*)
12771 # Kuck and Associates, Inc. (KAI) C++ Compiler
12773 # KCC will only create a shared library if the output file
12774 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12775 # to its proper name (with version) after linking.
12776 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'
12777 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'
12778 # Commands to make compiler produce verbose output that lists
12779 # what "hidden" libraries, object files and flags are used when
12780 # linking a shared library.
12782 # There doesn't appear to be a way to prevent this compiler from
12783 # explicitly linking system object files so we need to strip them
12784 # from the output so that they don't get included in the library
12785 # dependencies.
12786 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"'
12788 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12789 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12791 # Archives containing C++ object files must be created using
12792 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12793 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12795 icpc* | ecpc* )
12796 # Intel C++
12797 with_gnu_ld=yes
12798 # version 8.0 and above of icpc choke on multiply defined symbols
12799 # if we add $predep_objects and $postdep_objects, however 7.1 and
12800 # earlier do not add the objects themselves.
12801 case `$CC -V 2>&1` in
12802 *"Version 7."*)
12803 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12804 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'
12806 *) # Version 8.0 or newer
12807 tmp_idyn=
12808 case $host_cpu in
12809 ia64*) tmp_idyn=' -i_dynamic';;
12810 esac
12811 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12812 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'
12814 esac
12815 archive_cmds_need_lc_CXX=no
12816 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12817 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12818 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12820 pgCC* | pgcpp*)
12821 # Portland Group C++ compiler
12822 case `$CC -V` in
12823 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12824 prelink_cmds_CXX='tpldir=Template.dir~
12825 rm -rf $tpldir~
12826 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12827 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12828 old_archive_cmds_CXX='tpldir=Template.dir~
12829 rm -rf $tpldir~
12830 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12831 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12832 $RANLIB $oldlib'
12833 archive_cmds_CXX='tpldir=Template.dir~
12834 rm -rf $tpldir~
12835 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12836 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12837 archive_expsym_cmds_CXX='tpldir=Template.dir~
12838 rm -rf $tpldir~
12839 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12840 $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'
12842 *) # Version 6 and above use weak symbols
12843 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12844 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'
12846 esac
12848 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12849 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12850 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'
12852 cxx*)
12853 # Compaq C++
12854 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12855 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'
12857 runpath_var=LD_RUN_PATH
12858 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12859 hardcode_libdir_separator_CXX=:
12861 # Commands to make compiler produce verbose output that lists
12862 # what "hidden" libraries, object files and flags are used when
12863 # linking a shared library.
12865 # There doesn't appear to be a way to prevent this compiler from
12866 # explicitly linking system object files so we need to strip them
12867 # from the output so that they don't get included in the library
12868 # dependencies.
12869 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'
12871 xl* | mpixl* | bgxl*)
12872 # IBM XL 8.0 on PPC, with GNU ld
12873 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12874 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12875 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12876 if test "x$supports_anon_versioning" = xyes; then
12877 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12878 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12879 echo "local: *; };" >> $output_objdir/$libname.ver~
12880 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12884 case `$CC -V 2>&1 | sed 5q` in
12885 *Sun\ C*)
12886 # Sun C++ 5.9
12887 no_undefined_flag_CXX=' -zdefs'
12888 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12889 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'
12890 hardcode_libdir_flag_spec_CXX='-R$libdir'
12891 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'
12892 compiler_needs_object_CXX=yes
12894 # Not sure whether something based on
12895 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12896 # would be better.
12897 output_verbose_link_cmd='func_echo_all'
12899 # Archives containing C++ object files must be created using
12900 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12901 # necessary to make sure instantiated templates are included
12902 # in the archive.
12903 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12905 esac
12907 esac
12910 lynxos*)
12911 # FIXME: insert proper C++ library support
12912 ld_shlibs_CXX=no
12915 m88k*)
12916 # FIXME: insert proper C++ library support
12917 ld_shlibs_CXX=no
12920 mvs*)
12921 case $cc_basename in
12922 cxx*)
12923 # FIXME: insert proper C++ library support
12924 ld_shlibs_CXX=no
12927 # FIXME: insert proper C++ library support
12928 ld_shlibs_CXX=no
12930 esac
12933 netbsd*)
12934 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12935 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12936 wlarc=
12937 hardcode_libdir_flag_spec_CXX='-R$libdir'
12938 hardcode_direct_CXX=yes
12939 hardcode_shlibpath_var_CXX=no
12941 # Workaround some broken pre-1.5 toolchains
12942 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12945 *nto* | *qnx*)
12946 ld_shlibs_CXX=yes
12949 openbsd2*)
12950 # C++ shared libraries are fairly broken
12951 ld_shlibs_CXX=no
12954 openbsd*)
12955 if test -f /usr/libexec/ld.so; then
12956 hardcode_direct_CXX=yes
12957 hardcode_shlibpath_var_CXX=no
12958 hardcode_direct_absolute_CXX=yes
12959 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12960 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12961 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12962 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12963 export_dynamic_flag_spec_CXX='${wl}-E'
12964 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12966 output_verbose_link_cmd=func_echo_all
12967 else
12968 ld_shlibs_CXX=no
12972 osf3* | osf4* | osf5*)
12973 case $cc_basename in
12974 KCC*)
12975 # Kuck and Associates, Inc. (KAI) C++ Compiler
12977 # KCC will only create a shared library if the output file
12978 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12979 # to its proper name (with version) after linking.
12980 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'
12982 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12983 hardcode_libdir_separator_CXX=:
12985 # Archives containing C++ object files must be created using
12986 # the KAI C++ compiler.
12987 case $host in
12988 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12989 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12990 esac
12992 RCC*)
12993 # Rational C++ 2.4.1
12994 # FIXME: insert proper C++ library support
12995 ld_shlibs_CXX=no
12997 cxx*)
12998 case $host in
12999 osf3*)
13000 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13001 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'
13002 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13005 allow_undefined_flag_CXX=' -expect_unresolved \*'
13006 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'
13007 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13008 echo "-hidden">> $lib.exp~
13009 $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~
13010 $RM $lib.exp'
13011 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13013 esac
13015 hardcode_libdir_separator_CXX=:
13017 # Commands to make compiler produce verbose output that lists
13018 # what "hidden" libraries, object files and flags are used when
13019 # linking a shared library.
13021 # There doesn't appear to be a way to prevent this compiler from
13022 # explicitly linking system object files so we need to strip them
13023 # from the output so that they don't get included in the library
13024 # dependencies.
13025 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"'
13028 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13029 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13030 case $host in
13031 osf3*)
13032 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'
13035 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'
13037 esac
13039 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13040 hardcode_libdir_separator_CXX=:
13042 # Commands to make compiler produce verbose output that lists
13043 # what "hidden" libraries, object files and flags are used when
13044 # linking a shared library.
13045 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13047 else
13048 # FIXME: insert proper C++ library support
13049 ld_shlibs_CXX=no
13052 esac
13055 psos*)
13056 # FIXME: insert proper C++ library support
13057 ld_shlibs_CXX=no
13060 sunos4*)
13061 case $cc_basename in
13062 CC*)
13063 # Sun C++ 4.x
13064 # FIXME: insert proper C++ library support
13065 ld_shlibs_CXX=no
13067 lcc*)
13068 # Lucid
13069 # FIXME: insert proper C++ library support
13070 ld_shlibs_CXX=no
13073 # FIXME: insert proper C++ library support
13074 ld_shlibs_CXX=no
13076 esac
13079 solaris*)
13080 case $cc_basename in
13081 CC*)
13082 # Sun C++ 4.2, 5.x and Centerline C++
13083 archive_cmds_need_lc_CXX=yes
13084 no_undefined_flag_CXX=' -zdefs'
13085 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13086 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13087 $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'
13089 hardcode_libdir_flag_spec_CXX='-R$libdir'
13090 hardcode_shlibpath_var_CXX=no
13091 case $host_os in
13092 solaris2.[0-5] | solaris2.[0-5].*) ;;
13094 # The compiler driver will combine and reorder linker options,
13095 # but understands `-z linker_flag'.
13096 # Supported since Solaris 2.6 (maybe 2.5.1?)
13097 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13099 esac
13100 link_all_deplibs_CXX=yes
13102 output_verbose_link_cmd='func_echo_all'
13104 # Archives containing C++ object files must be created using
13105 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13106 # necessary to make sure instantiated templates are included
13107 # in the archive.
13108 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13110 gcx*)
13111 # Green Hills C++ Compiler
13112 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13114 # The C++ compiler must be used to create the archive.
13115 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13118 # GNU C++ compiler with Solaris linker
13119 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13120 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13121 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13122 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13123 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13124 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13126 # Commands to make compiler produce verbose output that lists
13127 # what "hidden" libraries, object files and flags are used when
13128 # linking a shared library.
13129 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13130 else
13131 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13132 # platform.
13133 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13134 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13135 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13137 # Commands to make compiler produce verbose output that lists
13138 # what "hidden" libraries, object files and flags are used when
13139 # linking a shared library.
13140 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13143 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13144 case $host_os in
13145 solaris2.[0-5] | solaris2.[0-5].*) ;;
13147 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13149 esac
13152 esac
13155 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13156 no_undefined_flag_CXX='${wl}-z,text'
13157 archive_cmds_need_lc_CXX=no
13158 hardcode_shlibpath_var_CXX=no
13159 runpath_var='LD_RUN_PATH'
13161 case $cc_basename in
13162 CC*)
13163 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13164 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13167 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13168 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13170 esac
13173 sysv5* | sco3.2v5* | sco5v6*)
13174 # Note: We can NOT use -z defs as we might desire, because we do not
13175 # link with -lc, and that would cause any symbols used from libc to
13176 # always be unresolved, which means just about no library would
13177 # ever link correctly. If we're not using GNU ld we use -z text
13178 # though, which does catch some bad symbols but isn't as heavy-handed
13179 # as -z defs.
13180 no_undefined_flag_CXX='${wl}-z,text'
13181 allow_undefined_flag_CXX='${wl}-z,nodefs'
13182 archive_cmds_need_lc_CXX=no
13183 hardcode_shlibpath_var_CXX=no
13184 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13185 hardcode_libdir_separator_CXX=':'
13186 link_all_deplibs_CXX=yes
13187 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13188 runpath_var='LD_RUN_PATH'
13190 case $cc_basename in
13191 CC*)
13192 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13193 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13194 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13195 '"$old_archive_cmds_CXX"
13196 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13197 '"$reload_cmds_CXX"
13200 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13201 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13203 esac
13206 tandem*)
13207 case $cc_basename in
13208 NCC*)
13209 # NonStop-UX NCC 3.20
13210 # FIXME: insert proper C++ library support
13211 ld_shlibs_CXX=no
13214 # FIXME: insert proper C++ library support
13215 ld_shlibs_CXX=no
13217 esac
13220 vxworks*)
13221 # FIXME: insert proper C++ library support
13222 ld_shlibs_CXX=no
13226 # FIXME: insert proper C++ library support
13227 ld_shlibs_CXX=no
13229 esac
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13232 $as_echo "$ld_shlibs_CXX" >&6; }
13233 test "$ld_shlibs_CXX" = no && can_build_shared=no
13235 GCC_CXX="$GXX"
13236 LD_CXX="$LD"
13238 ## CAVEAT EMPTOR:
13239 ## There is no encapsulation within the following macros, do not change
13240 ## the running order or otherwise move them around unless you know exactly
13241 ## what you are doing...
13242 # Dependencies to place before and after the object being linked:
13243 predep_objects_CXX=
13244 postdep_objects_CXX=
13245 predeps_CXX=
13246 postdeps_CXX=
13247 compiler_lib_search_path_CXX=
13249 cat > conftest.$ac_ext <<_LT_EOF
13250 class Foo
13252 public:
13253 Foo (void) { a = 0; }
13254 private:
13255 int a;
13257 _LT_EOF
13259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13260 (eval $ac_compile) 2>&5
13261 ac_status=$?
13262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13263 test $ac_status = 0; }; then
13264 # Parse the compiler output and extract the necessary
13265 # objects, libraries and library flags.
13267 # Sentinel used to keep track of whether or not we are before
13268 # the conftest object file.
13269 pre_test_object_deps_done=no
13271 for p in `eval "$output_verbose_link_cmd"`; do
13272 case $p in
13274 -L* | -R* | -l*)
13275 # Some compilers place space between "-{L,R}" and the path.
13276 # Remove the space.
13277 if test $p = "-L" ||
13278 test $p = "-R"; then
13279 prev=$p
13280 continue
13281 else
13282 prev=
13285 if test "$pre_test_object_deps_done" = no; then
13286 case $p in
13287 -L* | -R*)
13288 # Internal compiler library paths should come after those
13289 # provided the user. The postdeps already come after the
13290 # user supplied libs so there is no need to process them.
13291 if test -z "$compiler_lib_search_path_CXX"; then
13292 compiler_lib_search_path_CXX="${prev}${p}"
13293 else
13294 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13297 # The "-l" case would never come before the object being
13298 # linked, so don't bother handling this case.
13299 esac
13300 else
13301 if test -z "$postdeps_CXX"; then
13302 postdeps_CXX="${prev}${p}"
13303 else
13304 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13309 *.$objext)
13310 # This assumes that the test object file only shows up
13311 # once in the compiler output.
13312 if test "$p" = "conftest.$objext"; then
13313 pre_test_object_deps_done=yes
13314 continue
13317 if test "$pre_test_object_deps_done" = no; then
13318 if test -z "$predep_objects_CXX"; then
13319 predep_objects_CXX="$p"
13320 else
13321 predep_objects_CXX="$predep_objects_CXX $p"
13323 else
13324 if test -z "$postdep_objects_CXX"; then
13325 postdep_objects_CXX="$p"
13326 else
13327 postdep_objects_CXX="$postdep_objects_CXX $p"
13332 *) ;; # Ignore the rest.
13334 esac
13335 done
13337 # Clean up.
13338 rm -f a.out a.exe
13339 else
13340 echo "libtool.m4: error: problem compiling CXX test program"
13343 $RM -f confest.$objext
13345 # PORTME: override above test on systems where it is broken
13346 case $host_os in
13347 interix[3-9]*)
13348 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13349 # hack all around it, let's just trust "g++" to DTRT.
13350 predep_objects_CXX=
13351 postdep_objects_CXX=
13352 postdeps_CXX=
13355 linux*)
13356 case `$CC -V 2>&1 | sed 5q` in
13357 *Sun\ C*)
13358 # Sun C++ 5.9
13360 # The more standards-conforming stlport4 library is
13361 # incompatible with the Cstd library. Avoid specifying
13362 # it if it's in CXXFLAGS. Ignore libCrun as
13363 # -library=stlport4 depends on it.
13364 case " $CXX $CXXFLAGS " in
13365 *" -library=stlport4 "*)
13366 solaris_use_stlport4=yes
13368 esac
13370 if test "$solaris_use_stlport4" != yes; then
13371 postdeps_CXX='-library=Cstd -library=Crun'
13374 esac
13377 solaris*)
13378 case $cc_basename in
13379 CC*)
13380 # The more standards-conforming stlport4 library is
13381 # incompatible with the Cstd library. Avoid specifying
13382 # it if it's in CXXFLAGS. Ignore libCrun as
13383 # -library=stlport4 depends on it.
13384 case " $CXX $CXXFLAGS " in
13385 *" -library=stlport4 "*)
13386 solaris_use_stlport4=yes
13388 esac
13390 # Adding this requires a known-good setup of shared libraries for
13391 # Sun compiler versions before 5.6, else PIC objects from an old
13392 # archive will be linked into the output, leading to subtle bugs.
13393 if test "$solaris_use_stlport4" != yes; then
13394 postdeps_CXX='-library=Cstd -library=Crun'
13397 esac
13399 esac
13402 case " $postdeps_CXX " in
13403 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13404 esac
13405 compiler_lib_search_dirs_CXX=
13406 if test -n "${compiler_lib_search_path_CXX}"; then
13407 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13440 lt_prog_compiler_wl_CXX=
13441 lt_prog_compiler_pic_CXX=
13442 lt_prog_compiler_static_CXX=
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13445 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13447 # C++ specific cases for pic, static, wl, etc.
13448 if test "$GXX" = yes; then
13449 lt_prog_compiler_wl_CXX='-Wl,'
13450 lt_prog_compiler_static_CXX='-static'
13452 case $host_os in
13453 aix*)
13454 # All AIX code is PIC.
13455 if test "$host_cpu" = ia64; then
13456 # AIX 5 now supports IA64 processor
13457 lt_prog_compiler_static_CXX='-Bstatic'
13459 lt_prog_compiler_pic_CXX='-fPIC'
13462 amigaos*)
13463 case $host_cpu in
13464 powerpc)
13465 # see comment about AmigaOS4 .so support
13466 lt_prog_compiler_pic_CXX='-fPIC'
13468 m68k)
13469 # FIXME: we need at least 68020 code to build shared libraries, but
13470 # adding the `-m68020' flag to GCC prevents building anything better,
13471 # like `-m68040'.
13472 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13474 esac
13477 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13478 # PIC is the default for these OSes.
13480 mingw* | cygwin* | os2* | pw32* | cegcc*)
13481 # This hack is so that the source file can tell whether it is being
13482 # built for inclusion in a dll (and should export symbols for example).
13483 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13484 # (--disable-auto-import) libraries
13485 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13487 darwin* | rhapsody*)
13488 # PIC is the default on this platform
13489 # Common symbols not allowed in MH_DYLIB files
13490 lt_prog_compiler_pic_CXX='-fno-common'
13492 *djgpp*)
13493 # DJGPP does not support shared libraries at all
13494 lt_prog_compiler_pic_CXX=
13496 haiku*)
13497 # PIC is the default for Haiku.
13498 # The "-static" flag exists, but is broken.
13499 lt_prog_compiler_static_CXX=
13501 interix[3-9]*)
13502 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13503 # Instead, we relocate shared libraries at runtime.
13505 sysv4*MP*)
13506 if test -d /usr/nec; then
13507 lt_prog_compiler_pic_CXX=-Kconform_pic
13510 hpux*)
13511 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13512 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13513 # sets the default TLS model and affects inlining.
13514 case $host_cpu in
13515 hppa*64*)
13518 lt_prog_compiler_pic_CXX='-fPIC'
13520 esac
13522 *qnx* | *nto*)
13523 # QNX uses GNU C++, but need to define -shared option too, otherwise
13524 # it will coredump.
13525 lt_prog_compiler_pic_CXX='-fPIC -shared'
13528 lt_prog_compiler_pic_CXX='-fPIC'
13530 esac
13531 else
13532 case $host_os in
13533 aix[4-9]*)
13534 # All AIX code is PIC.
13535 if test "$host_cpu" = ia64; then
13536 # AIX 5 now supports IA64 processor
13537 lt_prog_compiler_static_CXX='-Bstatic'
13538 else
13539 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13542 chorus*)
13543 case $cc_basename in
13544 cxch68*)
13545 # Green Hills C++ Compiler
13546 # _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"
13548 esac
13550 dgux*)
13551 case $cc_basename in
13552 ec++*)
13553 lt_prog_compiler_pic_CXX='-KPIC'
13555 ghcx*)
13556 # Green Hills C++ Compiler
13557 lt_prog_compiler_pic_CXX='-pic'
13561 esac
13563 freebsd* | dragonfly*)
13564 # FreeBSD uses GNU C++
13566 hpux9* | hpux10* | hpux11*)
13567 case $cc_basename in
13568 CC*)
13569 lt_prog_compiler_wl_CXX='-Wl,'
13570 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13571 if test "$host_cpu" != ia64; then
13572 lt_prog_compiler_pic_CXX='+Z'
13575 aCC*)
13576 lt_prog_compiler_wl_CXX='-Wl,'
13577 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13578 case $host_cpu in
13579 hppa*64*|ia64*)
13580 # +Z the default
13583 lt_prog_compiler_pic_CXX='+Z'
13585 esac
13589 esac
13591 interix*)
13592 # This is c89, which is MS Visual C++ (no shared libs)
13593 # Anyone wants to do a port?
13595 irix5* | irix6* | nonstopux*)
13596 case $cc_basename in
13597 CC*)
13598 lt_prog_compiler_wl_CXX='-Wl,'
13599 lt_prog_compiler_static_CXX='-non_shared'
13600 # CC pic flag -KPIC is the default.
13604 esac
13606 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13607 case $cc_basename in
13608 KCC*)
13609 # KAI C++ Compiler
13610 lt_prog_compiler_wl_CXX='--backend -Wl,'
13611 lt_prog_compiler_pic_CXX='-fPIC'
13613 ecpc* )
13614 # old Intel C++ for x86_64 which still supported -KPIC.
13615 lt_prog_compiler_wl_CXX='-Wl,'
13616 lt_prog_compiler_pic_CXX='-KPIC'
13617 lt_prog_compiler_static_CXX='-static'
13619 icpc* )
13620 # Intel C++, used to be incompatible with GCC.
13621 # ICC 10 doesn't accept -KPIC any more.
13622 lt_prog_compiler_wl_CXX='-Wl,'
13623 lt_prog_compiler_pic_CXX='-fPIC'
13624 lt_prog_compiler_static_CXX='-static'
13626 pgCC* | pgcpp*)
13627 # Portland Group C++ compiler
13628 lt_prog_compiler_wl_CXX='-Wl,'
13629 lt_prog_compiler_pic_CXX='-fpic'
13630 lt_prog_compiler_static_CXX='-Bstatic'
13632 cxx*)
13633 # Compaq C++
13634 # Make sure the PIC flag is empty. It appears that all Alpha
13635 # Linux and Compaq Tru64 Unix objects are PIC.
13636 lt_prog_compiler_pic_CXX=
13637 lt_prog_compiler_static_CXX='-non_shared'
13639 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13640 # IBM XL 8.0, 9.0 on PPC and BlueGene
13641 lt_prog_compiler_wl_CXX='-Wl,'
13642 lt_prog_compiler_pic_CXX='-qpic'
13643 lt_prog_compiler_static_CXX='-qstaticlink'
13646 case `$CC -V 2>&1 | sed 5q` in
13647 *Sun\ C*)
13648 # Sun C++ 5.9
13649 lt_prog_compiler_pic_CXX='-KPIC'
13650 lt_prog_compiler_static_CXX='-Bstatic'
13651 lt_prog_compiler_wl_CXX='-Qoption ld '
13653 esac
13655 esac
13657 lynxos*)
13659 m88k*)
13661 mvs*)
13662 case $cc_basename in
13663 cxx*)
13664 lt_prog_compiler_pic_CXX='-W c,exportall'
13668 esac
13670 netbsd*)
13672 *qnx* | *nto*)
13673 # QNX uses GNU C++, but need to define -shared option too, otherwise
13674 # it will coredump.
13675 lt_prog_compiler_pic_CXX='-fPIC -shared'
13677 osf3* | osf4* | osf5*)
13678 case $cc_basename in
13679 KCC*)
13680 lt_prog_compiler_wl_CXX='--backend -Wl,'
13682 RCC*)
13683 # Rational C++ 2.4.1
13684 lt_prog_compiler_pic_CXX='-pic'
13686 cxx*)
13687 # Digital/Compaq C++
13688 lt_prog_compiler_wl_CXX='-Wl,'
13689 # Make sure the PIC flag is empty. It appears that all Alpha
13690 # Linux and Compaq Tru64 Unix objects are PIC.
13691 lt_prog_compiler_pic_CXX=
13692 lt_prog_compiler_static_CXX='-non_shared'
13696 esac
13698 psos*)
13700 solaris*)
13701 case $cc_basename in
13702 CC*)
13703 # Sun C++ 4.2, 5.x and Centerline C++
13704 lt_prog_compiler_pic_CXX='-KPIC'
13705 lt_prog_compiler_static_CXX='-Bstatic'
13706 lt_prog_compiler_wl_CXX='-Qoption ld '
13708 gcx*)
13709 # Green Hills C++ Compiler
13710 lt_prog_compiler_pic_CXX='-PIC'
13714 esac
13716 sunos4*)
13717 case $cc_basename in
13718 CC*)
13719 # Sun C++ 4.x
13720 lt_prog_compiler_pic_CXX='-pic'
13721 lt_prog_compiler_static_CXX='-Bstatic'
13723 lcc*)
13724 # Lucid
13725 lt_prog_compiler_pic_CXX='-pic'
13729 esac
13731 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13732 case $cc_basename in
13733 CC*)
13734 lt_prog_compiler_wl_CXX='-Wl,'
13735 lt_prog_compiler_pic_CXX='-KPIC'
13736 lt_prog_compiler_static_CXX='-Bstatic'
13738 esac
13740 tandem*)
13741 case $cc_basename in
13742 NCC*)
13743 # NonStop-UX NCC 3.20
13744 lt_prog_compiler_pic_CXX='-KPIC'
13748 esac
13750 vxworks*)
13753 lt_prog_compiler_can_build_shared_CXX=no
13755 esac
13758 case $host_os in
13759 # For platforms which do not support PIC, -DPIC is meaningless:
13760 *djgpp*)
13761 lt_prog_compiler_pic_CXX=
13764 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13766 esac
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13768 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13773 # Check to make sure the PIC flag actually works.
13775 if test -n "$lt_prog_compiler_pic_CXX"; then
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13777 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13778 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13779 $as_echo_n "(cached) " >&6
13780 else
13781 lt_cv_prog_compiler_pic_works_CXX=no
13782 ac_outfile=conftest.$ac_objext
13783 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13784 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13785 # Insert the option either (1) after the last *FLAGS variable, or
13786 # (2) before a word containing "conftest.", or (3) at the end.
13787 # Note that $ac_compile itself does not contain backslashes and begins
13788 # with a dollar sign (not a hyphen), so the echo should work correctly.
13789 # The option is referenced via a variable to avoid confusing sed.
13790 lt_compile=`echo "$ac_compile" | $SED \
13791 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13792 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13793 -e 's:$: $lt_compiler_flag:'`
13794 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13795 (eval "$lt_compile" 2>conftest.err)
13796 ac_status=$?
13797 cat conftest.err >&5
13798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 if (exit $ac_status) && test -s "$ac_outfile"; then
13800 # The compiler can only warn and ignore the option if not recognized
13801 # So say no if there are warnings other than the usual output.
13802 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13803 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13804 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13805 lt_cv_prog_compiler_pic_works_CXX=yes
13808 $RM conftest*
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13812 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13814 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13815 case $lt_prog_compiler_pic_CXX in
13816 "" | " "*) ;;
13817 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13818 esac
13819 else
13820 lt_prog_compiler_pic_CXX=
13821 lt_prog_compiler_can_build_shared_CXX=no
13829 # Check to make sure the static flag actually works.
13831 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13833 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13834 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13835 $as_echo_n "(cached) " >&6
13836 else
13837 lt_cv_prog_compiler_static_works_CXX=no
13838 save_LDFLAGS="$LDFLAGS"
13839 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13840 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13841 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13842 # The linker can only warn and ignore the option if not recognized
13843 # So say no if there are warnings
13844 if test -s conftest.err; then
13845 # Append any errors to the config.log.
13846 cat conftest.err 1>&5
13847 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13848 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13849 if diff conftest.exp conftest.er2 >/dev/null; then
13850 lt_cv_prog_compiler_static_works_CXX=yes
13852 else
13853 lt_cv_prog_compiler_static_works_CXX=yes
13856 $RM -r conftest*
13857 LDFLAGS="$save_LDFLAGS"
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13861 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13863 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13865 else
13866 lt_prog_compiler_static_CXX=
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13873 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13874 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13875 $as_echo_n "(cached) " >&6
13876 else
13877 lt_cv_prog_compiler_c_o_CXX=no
13878 $RM -r conftest 2>/dev/null
13879 mkdir conftest
13880 cd conftest
13881 mkdir out
13882 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13884 lt_compiler_flag="-o out/conftest2.$ac_objext"
13885 # Insert the option either (1) after the last *FLAGS variable, or
13886 # (2) before a word containing "conftest.", or (3) at the end.
13887 # Note that $ac_compile itself does not contain backslashes and begins
13888 # with a dollar sign (not a hyphen), so the echo should work correctly.
13889 lt_compile=`echo "$ac_compile" | $SED \
13890 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13891 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13892 -e 's:$: $lt_compiler_flag:'`
13893 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13894 (eval "$lt_compile" 2>out/conftest.err)
13895 ac_status=$?
13896 cat out/conftest.err >&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13899 then
13900 # The compiler can only warn and ignore the option if not recognized
13901 # So say no if there are warnings
13902 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13903 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13904 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13905 lt_cv_prog_compiler_c_o_CXX=yes
13908 chmod u+w . 2>&5
13909 $RM conftest*
13910 # SGI C++ compiler will create directory out/ii_files/ for
13911 # template instantiation
13912 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13913 $RM out/* && rmdir out
13914 cd ..
13915 $RM -r conftest
13916 $RM conftest*
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13920 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13925 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13926 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13927 $as_echo_n "(cached) " >&6
13928 else
13929 lt_cv_prog_compiler_c_o_CXX=no
13930 $RM -r conftest 2>/dev/null
13931 mkdir conftest
13932 cd conftest
13933 mkdir out
13934 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13936 lt_compiler_flag="-o out/conftest2.$ac_objext"
13937 # Insert the option either (1) after the last *FLAGS variable, or
13938 # (2) before a word containing "conftest.", or (3) at the end.
13939 # Note that $ac_compile itself does not contain backslashes and begins
13940 # with a dollar sign (not a hyphen), so the echo should work correctly.
13941 lt_compile=`echo "$ac_compile" | $SED \
13942 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13944 -e 's:$: $lt_compiler_flag:'`
13945 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13946 (eval "$lt_compile" 2>out/conftest.err)
13947 ac_status=$?
13948 cat out/conftest.err >&5
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13951 then
13952 # The compiler can only warn and ignore the option if not recognized
13953 # So say no if there are warnings
13954 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13955 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13956 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13957 lt_cv_prog_compiler_c_o_CXX=yes
13960 chmod u+w . 2>&5
13961 $RM conftest*
13962 # SGI C++ compiler will create directory out/ii_files/ for
13963 # template instantiation
13964 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13965 $RM out/* && rmdir out
13966 cd ..
13967 $RM -r conftest
13968 $RM conftest*
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13972 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13977 hard_links="nottested"
13978 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13979 # do not overwrite the value of need_locks provided by the user
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13981 $as_echo_n "checking if we can lock with hard links... " >&6; }
13982 hard_links=yes
13983 $RM conftest*
13984 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13985 touch conftest.a
13986 ln conftest.a conftest.b 2>&5 || hard_links=no
13987 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13989 $as_echo "$hard_links" >&6; }
13990 if test "$hard_links" = no; then
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13992 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13993 need_locks=warn
13995 else
13996 need_locks=no
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14002 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14004 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14005 case $host_os in
14006 aix[4-9]*)
14007 # If we're using GNU nm, then we don't want the "-C" option.
14008 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14009 # Also, AIX nm treats weak defined symbols like other global defined
14010 # symbols, whereas GNU nm marks them as "W".
14011 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14012 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'
14013 else
14014 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'
14017 pw32*)
14018 export_symbols_cmds_CXX="$ltdll_cmds"
14020 cygwin* | mingw* | cegcc*)
14021 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'
14024 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14026 esac
14027 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14030 $as_echo "$ld_shlibs_CXX" >&6; }
14031 test "$ld_shlibs_CXX" = no && can_build_shared=no
14033 with_gnu_ld_CXX=$with_gnu_ld
14041 # Do we need to explicitly link libc?
14043 case "x$archive_cmds_need_lc_CXX" in
14044 x|xyes)
14045 # Assume -lc should be added
14046 archive_cmds_need_lc_CXX=yes
14048 if test "$enable_shared" = yes && test "$GCC" = yes; then
14049 case $archive_cmds_CXX in
14050 *'~'*)
14051 # FIXME: we may have to deal with multi-command sequences.
14053 '$CC '*)
14054 # Test whether the compiler implicitly links with -lc since on some
14055 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14056 # to ld, don't add -lc before -lgcc.
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14058 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14059 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14060 $as_echo_n "(cached) " >&6
14061 else
14062 $RM conftest*
14063 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14065 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14066 (eval $ac_compile) 2>&5
14067 ac_status=$?
14068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14069 test $ac_status = 0; } 2>conftest.err; then
14070 soname=conftest
14071 lib=conftest
14072 libobjs=conftest.$ac_objext
14073 deplibs=
14074 wl=$lt_prog_compiler_wl_CXX
14075 pic_flag=$lt_prog_compiler_pic_CXX
14076 compiler_flags=-v
14077 linker_flags=-v
14078 verstring=
14079 output_objdir=.
14080 libname=conftest
14081 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14082 allow_undefined_flag_CXX=
14083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14084 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14085 ac_status=$?
14086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14087 test $ac_status = 0; }
14088 then
14089 lt_cv_archive_cmds_need_lc_CXX=no
14090 else
14091 lt_cv_archive_cmds_need_lc_CXX=yes
14093 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14094 else
14095 cat conftest.err 1>&5
14097 $RM conftest*
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14101 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14102 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14104 esac
14107 esac
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14173 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14175 library_names_spec=
14176 libname_spec='lib$name'
14177 soname_spec=
14178 shrext_cmds=".so"
14179 postinstall_cmds=
14180 postuninstall_cmds=
14181 finish_cmds=
14182 finish_eval=
14183 shlibpath_var=
14184 shlibpath_overrides_runpath=unknown
14185 version_type=none
14186 dynamic_linker="$host_os ld.so"
14187 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14188 need_lib_prefix=unknown
14189 hardcode_into_libs=no
14191 # when you set need_version to no, make sure it does not cause -set_version
14192 # flags to be left without arguments
14193 need_version=unknown
14195 case $host_os in
14196 aix3*)
14197 version_type=linux
14198 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14199 shlibpath_var=LIBPATH
14201 # AIX 3 has no versioning support, so we append a major version to the name.
14202 soname_spec='${libname}${release}${shared_ext}$major'
14205 aix[4-9]*)
14206 version_type=linux
14207 need_lib_prefix=no
14208 need_version=no
14209 hardcode_into_libs=yes
14210 if test "$host_cpu" = ia64; then
14211 # AIX 5 supports IA64
14212 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14213 shlibpath_var=LD_LIBRARY_PATH
14214 else
14215 # With GCC up to 2.95.x, collect2 would create an import file
14216 # for dependence libraries. The import file would start with
14217 # the line `#! .'. This would cause the generated library to
14218 # depend on `.', always an invalid library. This was fixed in
14219 # development snapshots of GCC prior to 3.0.
14220 case $host_os in
14221 aix4 | aix4.[01] | aix4.[01].*)
14222 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14223 echo ' yes '
14224 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14226 else
14227 can_build_shared=no
14230 esac
14231 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14232 # soname into executable. Probably we can add versioning support to
14233 # collect2, so additional links can be useful in future.
14234 if test "$aix_use_runtimelinking" = yes; then
14235 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14236 # instead of lib<name>.a to let people know that these are not
14237 # typical AIX shared libraries.
14238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14239 else
14240 # We preserve .a as extension for shared libraries through AIX4.2
14241 # and later when we are not doing run time linking.
14242 library_names_spec='${libname}${release}.a $libname.a'
14243 soname_spec='${libname}${release}${shared_ext}$major'
14245 shlibpath_var=LIBPATH
14249 amigaos*)
14250 case $host_cpu in
14251 powerpc)
14252 # Since July 2007 AmigaOS4 officially supports .so libraries.
14253 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14256 m68k)
14257 library_names_spec='$libname.ixlibrary $libname.a'
14258 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14259 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'
14261 esac
14264 beos*)
14265 library_names_spec='${libname}${shared_ext}'
14266 dynamic_linker="$host_os ld.so"
14267 shlibpath_var=LIBRARY_PATH
14270 bsdi[45]*)
14271 version_type=linux
14272 need_version=no
14273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14274 soname_spec='${libname}${release}${shared_ext}$major'
14275 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14276 shlibpath_var=LD_LIBRARY_PATH
14277 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14278 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14279 # the default ld.so.conf also contains /usr/contrib/lib and
14280 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14281 # libtool to hard-code these into programs
14284 cygwin* | mingw* | pw32* | cegcc*)
14285 version_type=windows
14286 shrext_cmds=".dll"
14287 need_version=no
14288 need_lib_prefix=no
14290 case $GCC,$host_os in
14291 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14292 library_names_spec='$libname.dll.a'
14293 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14294 postinstall_cmds='base_file=`basename \${file}`~
14295 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14296 dldir=$destdir/`dirname \$dlpath`~
14297 test -d \$dldir || mkdir -p \$dldir~
14298 $install_prog $dir/$dlname \$dldir/$dlname~
14299 chmod a+x \$dldir/$dlname~
14300 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14301 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14303 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14304 dlpath=$dir/\$dldll~
14305 $RM \$dlpath'
14306 shlibpath_overrides_runpath=yes
14308 case $host_os in
14309 cygwin*)
14310 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14311 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14314 mingw* | cegcc*)
14315 # MinGW DLLs use traditional 'lib' prefix
14316 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14318 pw32*)
14319 # pw32 DLLs use 'pw' prefix rather than 'lib'
14320 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14322 esac
14326 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14328 esac
14329 dynamic_linker='Win32 ld.exe'
14330 # FIXME: first we should search . and the directory the executable is in
14331 shlibpath_var=PATH
14334 darwin* | rhapsody*)
14335 dynamic_linker="$host_os dyld"
14336 version_type=darwin
14337 need_lib_prefix=no
14338 need_version=no
14339 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14340 soname_spec='${libname}${release}${major}$shared_ext'
14341 shlibpath_overrides_runpath=yes
14342 shlibpath_var=DYLD_LIBRARY_PATH
14343 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14345 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14348 dgux*)
14349 version_type=linux
14350 need_lib_prefix=no
14351 need_version=no
14352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14353 soname_spec='${libname}${release}${shared_ext}$major'
14354 shlibpath_var=LD_LIBRARY_PATH
14357 freebsd* | dragonfly*)
14358 # DragonFly does not have aout. When/if they implement a new
14359 # versioning mechanism, adjust this.
14360 if test -x /usr/bin/objformat; then
14361 objformat=`/usr/bin/objformat`
14362 else
14363 case $host_os in
14364 freebsd[23].*) objformat=aout ;;
14365 *) objformat=elf ;;
14366 esac
14368 version_type=freebsd-$objformat
14369 case $version_type in
14370 freebsd-elf*)
14371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14372 need_version=no
14373 need_lib_prefix=no
14375 freebsd-*)
14376 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14377 need_version=yes
14379 esac
14380 shlibpath_var=LD_LIBRARY_PATH
14381 case $host_os in
14382 freebsd2.*)
14383 shlibpath_overrides_runpath=yes
14385 freebsd3.[01]* | freebsdelf3.[01]*)
14386 shlibpath_overrides_runpath=yes
14387 hardcode_into_libs=yes
14389 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14390 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14391 shlibpath_overrides_runpath=no
14392 hardcode_into_libs=yes
14394 *) # from 4.6 on, and DragonFly
14395 shlibpath_overrides_runpath=yes
14396 hardcode_into_libs=yes
14398 esac
14401 gnu*)
14402 version_type=linux
14403 need_lib_prefix=no
14404 need_version=no
14405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14406 soname_spec='${libname}${release}${shared_ext}$major'
14407 shlibpath_var=LD_LIBRARY_PATH
14408 hardcode_into_libs=yes
14411 haiku*)
14412 version_type=linux
14413 need_lib_prefix=no
14414 need_version=no
14415 dynamic_linker="$host_os runtime_loader"
14416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14417 soname_spec='${libname}${release}${shared_ext}$major'
14418 shlibpath_var=LIBRARY_PATH
14419 shlibpath_overrides_runpath=yes
14420 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14421 hardcode_into_libs=yes
14424 hpux9* | hpux10* | hpux11*)
14425 # Give a soname corresponding to the major version so that dld.sl refuses to
14426 # link against other versions.
14427 version_type=sunos
14428 need_lib_prefix=no
14429 need_version=no
14430 case $host_cpu in
14431 ia64*)
14432 shrext_cmds='.so'
14433 hardcode_into_libs=yes
14434 dynamic_linker="$host_os dld.so"
14435 shlibpath_var=LD_LIBRARY_PATH
14436 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14438 soname_spec='${libname}${release}${shared_ext}$major'
14439 if test "X$HPUX_IA64_MODE" = X32; then
14440 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14441 else
14442 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14444 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14446 hppa*64*)
14447 shrext_cmds='.sl'
14448 hardcode_into_libs=yes
14449 dynamic_linker="$host_os dld.sl"
14450 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14451 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14453 soname_spec='${libname}${release}${shared_ext}$major'
14454 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14455 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14458 shrext_cmds='.sl'
14459 dynamic_linker="$host_os dld.sl"
14460 shlibpath_var=SHLIB_PATH
14461 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14463 soname_spec='${libname}${release}${shared_ext}$major'
14465 esac
14466 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14467 postinstall_cmds='chmod 555 $lib'
14468 # or fails outright, so override atomically:
14469 install_override_mode=555
14472 interix[3-9]*)
14473 version_type=linux
14474 need_lib_prefix=no
14475 need_version=no
14476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14477 soname_spec='${libname}${release}${shared_ext}$major'
14478 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14479 shlibpath_var=LD_LIBRARY_PATH
14480 shlibpath_overrides_runpath=no
14481 hardcode_into_libs=yes
14484 irix5* | irix6* | nonstopux*)
14485 case $host_os in
14486 nonstopux*) version_type=nonstopux ;;
14488 if test "$lt_cv_prog_gnu_ld" = yes; then
14489 version_type=linux
14490 else
14491 version_type=irix
14492 fi ;;
14493 esac
14494 need_lib_prefix=no
14495 need_version=no
14496 soname_spec='${libname}${release}${shared_ext}$major'
14497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14498 case $host_os in
14499 irix5* | nonstopux*)
14500 libsuff= shlibsuff=
14503 case $LD in # libtool.m4 will add one of these switches to LD
14504 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14505 libsuff= shlibsuff= libmagic=32-bit;;
14506 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14507 libsuff=32 shlibsuff=N32 libmagic=N32;;
14508 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14509 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14510 *) libsuff= shlibsuff= libmagic=never-match;;
14511 esac
14513 esac
14514 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14515 shlibpath_overrides_runpath=no
14516 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14517 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14518 hardcode_into_libs=yes
14521 # No shared lib support for Linux oldld, aout, or coff.
14522 linux*oldld* | linux*aout* | linux*coff*)
14523 dynamic_linker=no
14526 # This must be Linux ELF.
14528 # uclinux* changes (here and below) have been submitted to the libtool
14529 # project, but have not yet been accepted: they are GCC-local changes
14530 # for the time being. (See
14531 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14532 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14533 version_type=linux
14534 need_lib_prefix=no
14535 need_version=no
14536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14537 soname_spec='${libname}${release}${shared_ext}$major'
14538 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14539 shlibpath_var=LD_LIBRARY_PATH
14540 shlibpath_overrides_runpath=no
14542 # Some binutils ld are patched to set DT_RUNPATH
14543 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14544 $as_echo_n "(cached) " >&6
14545 else
14546 lt_cv_shlibpath_overrides_runpath=no
14547 save_LDFLAGS=$LDFLAGS
14548 save_libdir=$libdir
14549 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14550 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14552 /* end confdefs.h. */
14555 main ()
14559 return 0;
14561 _ACEOF
14562 if ac_fn_cxx_try_link "$LINENO"; then :
14563 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14564 lt_cv_shlibpath_overrides_runpath=yes
14567 rm -f core conftest.err conftest.$ac_objext \
14568 conftest$ac_exeext conftest.$ac_ext
14569 LDFLAGS=$save_LDFLAGS
14570 libdir=$save_libdir
14574 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14576 # This implies no fast_install, which is unacceptable.
14577 # Some rework will be needed to allow for fast_install
14578 # before this can be enabled.
14579 hardcode_into_libs=yes
14581 # Append ld.so.conf contents to the search path
14582 if test -f /etc/ld.so.conf; then
14583 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' ' '`
14584 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14587 # We used to test for /lib/ld.so.1 and disable shared libraries on
14588 # powerpc, because MkLinux only supported shared libraries with the
14589 # GNU dynamic linker. Since this was broken with cross compilers,
14590 # most powerpc-linux boxes support dynamic linking these days and
14591 # people can always --disable-shared, the test was removed, and we
14592 # assume the GNU/Linux dynamic linker is in use.
14593 dynamic_linker='GNU/Linux ld.so'
14596 netbsd*)
14597 version_type=sunos
14598 need_lib_prefix=no
14599 need_version=no
14600 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14602 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14603 dynamic_linker='NetBSD (a.out) ld.so'
14604 else
14605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14606 soname_spec='${libname}${release}${shared_ext}$major'
14607 dynamic_linker='NetBSD ld.elf_so'
14609 shlibpath_var=LD_LIBRARY_PATH
14610 shlibpath_overrides_runpath=yes
14611 hardcode_into_libs=yes
14614 newsos6)
14615 version_type=linux
14616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14617 shlibpath_var=LD_LIBRARY_PATH
14618 shlibpath_overrides_runpath=yes
14621 *nto* | *qnx*)
14622 version_type=qnx
14623 need_lib_prefix=no
14624 need_version=no
14625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14626 soname_spec='${libname}${release}${shared_ext}$major'
14627 shlibpath_var=LD_LIBRARY_PATH
14628 shlibpath_overrides_runpath=no
14629 hardcode_into_libs=yes
14630 dynamic_linker='ldqnx.so'
14633 openbsd*)
14634 version_type=sunos
14635 sys_lib_dlsearch_path_spec="/usr/lib"
14636 need_lib_prefix=no
14637 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14638 case $host_os in
14639 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14640 *) need_version=no ;;
14641 esac
14642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14643 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14644 shlibpath_var=LD_LIBRARY_PATH
14645 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14646 case $host_os in
14647 openbsd2.[89] | openbsd2.[89].*)
14648 shlibpath_overrides_runpath=no
14651 shlibpath_overrides_runpath=yes
14653 esac
14654 else
14655 shlibpath_overrides_runpath=yes
14659 os2*)
14660 libname_spec='$name'
14661 shrext_cmds=".dll"
14662 need_lib_prefix=no
14663 library_names_spec='$libname${shared_ext} $libname.a'
14664 dynamic_linker='OS/2 ld.exe'
14665 shlibpath_var=LIBPATH
14668 osf3* | osf4* | osf5*)
14669 version_type=osf
14670 need_lib_prefix=no
14671 need_version=no
14672 soname_spec='${libname}${release}${shared_ext}$major'
14673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14674 shlibpath_var=LD_LIBRARY_PATH
14675 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14676 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14679 rdos*)
14680 dynamic_linker=no
14683 solaris*)
14684 version_type=linux
14685 need_lib_prefix=no
14686 need_version=no
14687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14688 soname_spec='${libname}${release}${shared_ext}$major'
14689 shlibpath_var=LD_LIBRARY_PATH
14690 shlibpath_overrides_runpath=yes
14691 hardcode_into_libs=yes
14692 # ldd complains unless libraries are executable
14693 postinstall_cmds='chmod +x $lib'
14696 sunos4*)
14697 version_type=sunos
14698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14699 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14700 shlibpath_var=LD_LIBRARY_PATH
14701 shlibpath_overrides_runpath=yes
14702 if test "$with_gnu_ld" = yes; then
14703 need_lib_prefix=no
14705 need_version=yes
14708 sysv4 | sysv4.3*)
14709 version_type=linux
14710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14711 soname_spec='${libname}${release}${shared_ext}$major'
14712 shlibpath_var=LD_LIBRARY_PATH
14713 case $host_vendor in
14714 sni)
14715 shlibpath_overrides_runpath=no
14716 need_lib_prefix=no
14717 runpath_var=LD_RUN_PATH
14719 siemens)
14720 need_lib_prefix=no
14722 motorola)
14723 need_lib_prefix=no
14724 need_version=no
14725 shlibpath_overrides_runpath=no
14726 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14728 esac
14731 sysv4*MP*)
14732 if test -d /usr/nec ;then
14733 version_type=linux
14734 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14735 soname_spec='$libname${shared_ext}.$major'
14736 shlibpath_var=LD_LIBRARY_PATH
14740 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14741 version_type=freebsd-elf
14742 need_lib_prefix=no
14743 need_version=no
14744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14745 soname_spec='${libname}${release}${shared_ext}$major'
14746 shlibpath_var=LD_LIBRARY_PATH
14747 shlibpath_overrides_runpath=yes
14748 hardcode_into_libs=yes
14749 if test "$with_gnu_ld" = yes; then
14750 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14751 else
14752 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14753 case $host_os in
14754 sco3.2v5*)
14755 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14757 esac
14759 sys_lib_dlsearch_path_spec='/usr/lib'
14762 tpf*)
14763 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14764 version_type=linux
14765 need_lib_prefix=no
14766 need_version=no
14767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14768 shlibpath_var=LD_LIBRARY_PATH
14769 shlibpath_overrides_runpath=no
14770 hardcode_into_libs=yes
14773 uts4*)
14774 version_type=linux
14775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14776 soname_spec='${libname}${release}${shared_ext}$major'
14777 shlibpath_var=LD_LIBRARY_PATH
14781 dynamic_linker=no
14783 esac
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14785 $as_echo "$dynamic_linker" >&6; }
14786 test "$dynamic_linker" = no && can_build_shared=no
14788 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14789 if test "$GCC" = yes; then
14790 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14793 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14794 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14796 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14797 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14838 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14839 hardcode_action_CXX=
14840 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14841 test -n "$runpath_var_CXX" ||
14842 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14844 # We can hardcode non-existent directories.
14845 if test "$hardcode_direct_CXX" != no &&
14846 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14847 # have to relink, otherwise we might link with an installed library
14848 # when we should be linking with a yet-to-be-installed one
14849 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14850 test "$hardcode_minus_L_CXX" != no; then
14851 # Linking always hardcodes the temporary library directory.
14852 hardcode_action_CXX=relink
14853 else
14854 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14855 hardcode_action_CXX=immediate
14857 else
14858 # We cannot hardcode anything, or else we can only hardcode existing
14859 # directories.
14860 hardcode_action_CXX=unsupported
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14863 $as_echo "$hardcode_action_CXX" >&6; }
14865 if test "$hardcode_action_CXX" = relink ||
14866 test "$inherit_rpath_CXX" = yes; then
14867 # Fast installation is not supported
14868 enable_fast_install=no
14869 elif test "$shlibpath_overrides_runpath" = yes ||
14870 test "$enable_shared" = no; then
14871 # Fast installation is not necessary
14872 enable_fast_install=needless
14881 fi # test -n "$compiler"
14883 CC=$lt_save_CC
14884 LDCXX=$LD
14885 LD=$lt_save_LD
14886 GCC=$lt_save_GCC
14887 with_gnu_ld=$lt_save_with_gnu_ld
14888 lt_cv_path_LDCXX=$lt_cv_path_LD
14889 lt_cv_path_LD=$lt_save_path_LD
14890 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14891 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14892 fi # test "$_lt_caught_CXX_error" != yes
14894 ac_ext=c
14895 ac_cpp='$CPP $CPPFLAGS'
14896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14912 ac_config_commands="$ac_config_commands libtool"
14917 # Only expand once:
14921 # Test for 64-bit build.
14922 # The cast to long int works around a bug in the HP C Compiler
14923 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14924 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14925 # This bug is HP SR number 8606223364.
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14927 $as_echo_n "checking size of size_t... " >&6; }
14928 if ${ac_cv_sizeof_size_t+:} false; then :
14929 $as_echo_n "(cached) " >&6
14930 else
14931 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
14933 else
14934 if test "$ac_cv_type_size_t" = yes; then
14935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14937 as_fn_error 77 "cannot compute sizeof (size_t)
14938 See \`config.log' for more details" "$LINENO" 5; }
14939 else
14940 ac_cv_sizeof_size_t=0
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14946 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14950 cat >>confdefs.h <<_ACEOF
14951 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14952 _ACEOF
14956 cat > local.exp <<EOF
14957 set CC_FOR_TARGET "$CC"
14958 set CXX_FOR_TARGET "$CXX"
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14963 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14964 # Check whether --enable-maintainer-mode was given.
14965 if test "${enable_maintainer_mode+set}" = set; then :
14966 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14967 else
14968 USE_MAINTAINER_MODE=no
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14972 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14973 if test $USE_MAINTAINER_MODE = yes; then
14974 MAINTAINER_MODE_TRUE=
14975 MAINTAINER_MODE_FALSE='#'
14976 else
14977 MAINTAINER_MODE_TRUE='#'
14978 MAINTAINER_MODE_FALSE=
14981 MAINT=$MAINTAINER_MODE_TRUE
14985 for ac_header in sys/mman.h
14986 do :
14987 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
14988 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
14989 cat >>confdefs.h <<_ACEOF
14990 #define HAVE_SYS_MMAN_H 1
14991 _ACEOF
14995 done
14997 for ac_func in mmap mkostemp
14998 do :
14999 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15000 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15001 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15002 cat >>confdefs.h <<_ACEOF
15003 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15004 _ACEOF
15007 done
15010 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15011 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
15012 libffi_header_sys_mman_h=yes
15013 else
15014 libffi_header_sys_mman_h=no
15018 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
15019 if test "x$ac_cv_func_mmap" = xyes; then :
15020 libffi_func_mmap=yes
15021 else
15022 libffi_func_mmap=no
15025 if test "$libffi_header_sys_mman_h" != yes \
15026 || test "$libffi_func_mmap" != yes; then
15027 ac_cv_func_mmap_file=no
15028 ac_cv_func_mmap_dev_zero=no
15029 ac_cv_func_mmap_anon=no
15030 else
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
15032 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
15033 if ${ac_cv_func_mmap_file+:} false; then :
15034 $as_echo_n "(cached) " >&6
15035 else
15036 # Add a system to this blacklist if
15037 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
15038 # memory area containing the same data that you'd get if you applied
15039 # read() to the same fd. The only system known to have a problem here
15040 # is VMS, where text files have record structure.
15041 case "$host_os" in
15042 vms* | ultrix*)
15043 ac_cv_func_mmap_file=no ;;
15045 ac_cv_func_mmap_file=yes;;
15046 esac
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
15049 $as_echo "$ac_cv_func_mmap_file" >&6; }
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
15051 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
15052 if ${ac_cv_func_mmap_dev_zero+:} false; then :
15053 $as_echo_n "(cached) " >&6
15054 else
15055 # Add a system to this blacklist if it has mmap() but /dev/zero
15056 # does not exist, or if mmapping /dev/zero does not give anonymous
15057 # zeroed pages with both the following properties:
15058 # 1. If you map N consecutive pages in with one call, and then
15059 # unmap any subset of those pages, the pages that were not
15060 # explicitly unmapped remain accessible.
15061 # 2. If you map two adjacent blocks of memory and then unmap them
15062 # both at once, they must both go away.
15063 # Systems known to be in this category are Windows (all variants),
15064 # VMS, and Darwin.
15065 case "$host_os" in
15066 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
15067 ac_cv_func_mmap_dev_zero=no ;;
15069 ac_cv_func_mmap_dev_zero=yes;;
15070 esac
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
15073 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
15075 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
15077 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
15078 if ${ac_cv_decl_map_anon+:} false; then :
15079 $as_echo_n "(cached) " >&6
15080 else
15081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15082 /* end confdefs.h. */
15083 #include <sys/types.h>
15084 #include <sys/mman.h>
15085 #include <unistd.h>
15087 #ifndef MAP_ANONYMOUS
15088 #define MAP_ANONYMOUS MAP_ANON
15089 #endif
15092 main ()
15094 int n = MAP_ANONYMOUS;
15096 return 0;
15098 _ACEOF
15099 if ac_fn_c_try_compile "$LINENO"; then :
15100 ac_cv_decl_map_anon=yes
15101 else
15102 ac_cv_decl_map_anon=no
15104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
15107 $as_echo "$ac_cv_decl_map_anon" >&6; }
15109 if test $ac_cv_decl_map_anon = no; then
15110 ac_cv_func_mmap_anon=no
15111 else
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
15113 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
15114 if ${ac_cv_func_mmap_anon+:} false; then :
15115 $as_echo_n "(cached) " >&6
15116 else
15117 # Add a system to this blacklist if it has mmap() and MAP_ANON or
15118 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
15119 # doesn't give anonymous zeroed pages with the same properties listed
15120 # above for use of /dev/zero.
15121 # Systems known to be in this category are Windows, VMS, and SCO Unix.
15122 case "$host_os" in
15123 vms* | cygwin* | pe | mingw* | sco* | udk* )
15124 ac_cv_func_mmap_anon=no ;;
15126 ac_cv_func_mmap_anon=yes;;
15127 esac
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
15130 $as_echo "$ac_cv_func_mmap_anon" >&6; }
15134 if test $ac_cv_func_mmap_file = yes; then
15136 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
15139 if test $ac_cv_func_mmap_dev_zero = yes; then
15141 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
15144 if test $ac_cv_func_mmap_anon = yes; then
15146 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
15151 if test -d $srcdir/testsuite; then
15152 TESTSUBDIR_TRUE=
15153 TESTSUBDIR_FALSE='#'
15154 else
15155 TESTSUBDIR_TRUE='#'
15156 TESTSUBDIR_FALSE=
15160 TARGETDIR="unknown"
15161 HAVE_LONG_DOUBLE_VARIANT=0
15163 . ${srcdir}/configure.host
15165 if test -n "${UNSUPPORTED}"; then
15166 as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15173 $as_echo_n "checking for ANSI C header files... " >&6; }
15174 if ${ac_cv_header_stdc+:} false; then :
15175 $as_echo_n "(cached) " >&6
15176 else
15177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15178 /* end confdefs.h. */
15179 #include <stdlib.h>
15180 #include <stdarg.h>
15181 #include <string.h>
15182 #include <float.h>
15185 main ()
15189 return 0;
15191 _ACEOF
15192 if ac_fn_c_try_compile "$LINENO"; then :
15193 ac_cv_header_stdc=yes
15194 else
15195 ac_cv_header_stdc=no
15197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15199 if test $ac_cv_header_stdc = yes; then
15200 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15202 /* end confdefs.h. */
15203 #include <string.h>
15205 _ACEOF
15206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15207 $EGREP "memchr" >/dev/null 2>&1; then :
15209 else
15210 ac_cv_header_stdc=no
15212 rm -f conftest*
15216 if test $ac_cv_header_stdc = yes; then
15217 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15219 /* end confdefs.h. */
15220 #include <stdlib.h>
15222 _ACEOF
15223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15224 $EGREP "free" >/dev/null 2>&1; then :
15226 else
15227 ac_cv_header_stdc=no
15229 rm -f conftest*
15233 if test $ac_cv_header_stdc = yes; then
15234 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15235 if test "$cross_compiling" = yes; then :
15237 else
15238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15239 /* end confdefs.h. */
15240 #include <ctype.h>
15241 #include <stdlib.h>
15242 #if ((' ' & 0x0FF) == 0x020)
15243 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15244 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15245 #else
15246 # define ISLOWER(c) \
15247 (('a' <= (c) && (c) <= 'i') \
15248 || ('j' <= (c) && (c) <= 'r') \
15249 || ('s' <= (c) && (c) <= 'z'))
15250 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15251 #endif
15253 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15255 main ()
15257 int i;
15258 for (i = 0; i < 256; i++)
15259 if (XOR (islower (i), ISLOWER (i))
15260 || toupper (i) != TOUPPER (i))
15261 return 2;
15262 return 0;
15264 _ACEOF
15265 if ac_fn_c_try_run "$LINENO"; then :
15267 else
15268 ac_cv_header_stdc=no
15270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15271 conftest.$ac_objext conftest.beam conftest.$ac_ext
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15277 $as_echo "$ac_cv_header_stdc" >&6; }
15278 if test $ac_cv_header_stdc = yes; then
15280 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15284 for ac_func in memcpy
15285 do :
15286 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
15287 if test "x$ac_cv_func_memcpy" = xyes; then :
15288 cat >>confdefs.h <<_ACEOF
15289 #define HAVE_MEMCPY 1
15290 _ACEOF
15293 done
15295 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15296 if test "x$ac_cv_type_size_t" = xyes; then :
15298 else
15300 cat >>confdefs.h <<_ACEOF
15301 #define size_t unsigned int
15302 _ACEOF
15306 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15307 # for constant arguments. Useless!
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15309 $as_echo_n "checking for working alloca.h... " >&6; }
15310 if ${ac_cv_working_alloca_h+:} false; then :
15311 $as_echo_n "(cached) " >&6
15312 else
15313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15314 /* end confdefs.h. */
15315 #include <alloca.h>
15317 main ()
15319 char *p = (char *) alloca (2 * sizeof (int));
15320 if (p) return 0;
15322 return 0;
15324 _ACEOF
15325 if ac_fn_c_try_link "$LINENO"; then :
15326 ac_cv_working_alloca_h=yes
15327 else
15328 ac_cv_working_alloca_h=no
15330 rm -f core conftest.err conftest.$ac_objext \
15331 conftest$ac_exeext conftest.$ac_ext
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15334 $as_echo "$ac_cv_working_alloca_h" >&6; }
15335 if test $ac_cv_working_alloca_h = yes; then
15337 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15342 $as_echo_n "checking for alloca... " >&6; }
15343 if ${ac_cv_func_alloca_works+:} false; then :
15344 $as_echo_n "(cached) " >&6
15345 else
15346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15347 /* end confdefs.h. */
15348 #ifdef __GNUC__
15349 # define alloca __builtin_alloca
15350 #else
15351 # ifdef _MSC_VER
15352 # include <malloc.h>
15353 # define alloca _alloca
15354 # else
15355 # ifdef HAVE_ALLOCA_H
15356 # include <alloca.h>
15357 # else
15358 # ifdef _AIX
15359 #pragma alloca
15360 # else
15361 # ifndef alloca /* predefined by HP cc +Olibcalls */
15362 void *alloca (size_t);
15363 # endif
15364 # endif
15365 # endif
15366 # endif
15367 #endif
15370 main ()
15372 char *p = (char *) alloca (1);
15373 if (p) return 0;
15375 return 0;
15377 _ACEOF
15378 if ac_fn_c_try_link "$LINENO"; then :
15379 ac_cv_func_alloca_works=yes
15380 else
15381 ac_cv_func_alloca_works=no
15383 rm -f core conftest.err conftest.$ac_objext \
15384 conftest$ac_exeext conftest.$ac_ext
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15387 $as_echo "$ac_cv_func_alloca_works" >&6; }
15389 if test $ac_cv_func_alloca_works = yes; then
15391 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15393 else
15394 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15395 # that cause trouble. Some versions do not even contain alloca or
15396 # contain a buggy version. If you still want to use their alloca,
15397 # use ar to extract alloca.o from them instead of compiling alloca.c.
15399 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15401 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15405 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15406 if ${ac_cv_os_cray+:} false; then :
15407 $as_echo_n "(cached) " >&6
15408 else
15409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15410 /* end confdefs.h. */
15411 #if defined CRAY && ! defined CRAY2
15412 webecray
15413 #else
15414 wenotbecray
15415 #endif
15417 _ACEOF
15418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15419 $EGREP "webecray" >/dev/null 2>&1; then :
15420 ac_cv_os_cray=yes
15421 else
15422 ac_cv_os_cray=no
15424 rm -f conftest*
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15428 $as_echo "$ac_cv_os_cray" >&6; }
15429 if test $ac_cv_os_cray = yes; then
15430 for ac_func in _getb67 GETB67 getb67; do
15431 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15432 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15433 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15435 cat >>confdefs.h <<_ACEOF
15436 #define CRAY_STACKSEG_END $ac_func
15437 _ACEOF
15439 break
15442 done
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15446 $as_echo_n "checking stack direction for C alloca... " >&6; }
15447 if ${ac_cv_c_stack_direction+:} false; then :
15448 $as_echo_n "(cached) " >&6
15449 else
15450 if test "$cross_compiling" = yes; then :
15451 ac_cv_c_stack_direction=0
15452 else
15453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15454 /* end confdefs.h. */
15455 $ac_includes_default
15457 find_stack_direction (int *addr, int depth)
15459 int dir, dummy = 0;
15460 if (! addr)
15461 addr = &dummy;
15462 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15463 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15464 return dir + dummy;
15468 main (int argc, char **argv)
15470 return find_stack_direction (0, argc + !argv + 20) < 0;
15472 _ACEOF
15473 if ac_fn_c_try_run "$LINENO"; then :
15474 ac_cv_c_stack_direction=1
15475 else
15476 ac_cv_c_stack_direction=-1
15478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15479 conftest.$ac_objext conftest.beam conftest.$ac_ext
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15484 $as_echo "$ac_cv_c_stack_direction" >&6; }
15485 cat >>confdefs.h <<_ACEOF
15486 #define STACK_DIRECTION $ac_cv_c_stack_direction
15487 _ACEOF
15493 # The cast to long int works around a bug in the HP C Compiler
15494 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15495 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15496 # This bug is HP SR number 8606223364.
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
15498 $as_echo_n "checking size of double... " >&6; }
15499 if ${ac_cv_sizeof_double+:} false; then :
15500 $as_echo_n "(cached) " >&6
15501 else
15502 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
15504 else
15505 if test "$ac_cv_type_double" = yes; then
15506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15508 as_fn_error 77 "cannot compute sizeof (double)
15509 See \`config.log' for more details" "$LINENO" 5; }
15510 else
15511 ac_cv_sizeof_double=0
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
15517 $as_echo "$ac_cv_sizeof_double" >&6; }
15521 cat >>confdefs.h <<_ACEOF
15522 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
15523 _ACEOF
15526 # The cast to long int works around a bug in the HP C Compiler
15527 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15528 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15529 # This bug is HP SR number 8606223364.
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
15531 $as_echo_n "checking size of long double... " >&6; }
15532 if ${ac_cv_sizeof_long_double+:} false; then :
15533 $as_echo_n "(cached) " >&6
15534 else
15535 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
15537 else
15538 if test "$ac_cv_type_long_double" = yes; then
15539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15541 as_fn_error 77 "cannot compute sizeof (long double)
15542 See \`config.log' for more details" "$LINENO" 5; }
15543 else
15544 ac_cv_sizeof_long_double=0
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
15550 $as_echo "$ac_cv_sizeof_long_double" >&6; }
15554 cat >>confdefs.h <<_ACEOF
15555 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
15556 _ACEOF
15560 # Also AC_SUBST this variable for ffi.h.
15561 if test -z "$HAVE_LONG_DOUBLE"; then
15562 HAVE_LONG_DOUBLE=0
15563 if test $ac_cv_sizeof_long_double != 0; then
15564 if test $HAVE_LONG_DOUBLE_VARIANT != 0; then
15566 $as_echo "#define HAVE_LONG_DOUBLE_VARIANT 1" >>confdefs.h
15568 HAVE_LONG_DOUBLE=1
15569 else
15570 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
15571 HAVE_LONG_DOUBLE=1
15573 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15583 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15584 if ${ac_cv_c_bigendian+:} false; then :
15585 $as_echo_n "(cached) " >&6
15586 else
15587 ac_cv_c_bigendian=unknown
15588 # See if we're dealing with a universal compiler.
15589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15590 /* end confdefs.h. */
15591 #ifndef __APPLE_CC__
15592 not a universal capable compiler
15593 #endif
15594 typedef int dummy;
15596 _ACEOF
15597 if ac_fn_c_try_compile "$LINENO"; then :
15599 # Check for potential -arch flags. It is not universal unless
15600 # there are at least two -arch flags with different values.
15601 ac_arch=
15602 ac_prev=
15603 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15604 if test -n "$ac_prev"; then
15605 case $ac_word in
15606 i?86 | x86_64 | ppc | ppc64)
15607 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15608 ac_arch=$ac_word
15609 else
15610 ac_cv_c_bigendian=universal
15611 break
15614 esac
15615 ac_prev=
15616 elif test "x$ac_word" = "x-arch"; then
15617 ac_prev=arch
15619 done
15621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15622 if test $ac_cv_c_bigendian = unknown; then
15623 # See if sys/param.h defines the BYTE_ORDER macro.
15624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15625 /* end confdefs.h. */
15626 #include <sys/types.h>
15627 #include <sys/param.h>
15630 main ()
15632 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15633 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15634 && LITTLE_ENDIAN)
15635 bogus endian macros
15636 #endif
15639 return 0;
15641 _ACEOF
15642 if ac_fn_c_try_compile "$LINENO"; then :
15643 # It does; now see whether it defined to BIG_ENDIAN or not.
15644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15645 /* end confdefs.h. */
15646 #include <sys/types.h>
15647 #include <sys/param.h>
15650 main ()
15652 #if BYTE_ORDER != BIG_ENDIAN
15653 not big endian
15654 #endif
15657 return 0;
15659 _ACEOF
15660 if ac_fn_c_try_compile "$LINENO"; then :
15661 ac_cv_c_bigendian=yes
15662 else
15663 ac_cv_c_bigendian=no
15665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15669 if test $ac_cv_c_bigendian = unknown; then
15670 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15672 /* end confdefs.h. */
15673 #include <limits.h>
15676 main ()
15678 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15679 bogus endian macros
15680 #endif
15683 return 0;
15685 _ACEOF
15686 if ac_fn_c_try_compile "$LINENO"; then :
15687 # It does; now see whether it defined to _BIG_ENDIAN or not.
15688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15689 /* end confdefs.h. */
15690 #include <limits.h>
15693 main ()
15695 #ifndef _BIG_ENDIAN
15696 not big endian
15697 #endif
15700 return 0;
15702 _ACEOF
15703 if ac_fn_c_try_compile "$LINENO"; then :
15704 ac_cv_c_bigendian=yes
15705 else
15706 ac_cv_c_bigendian=no
15708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15712 if test $ac_cv_c_bigendian = unknown; then
15713 # Compile a test program.
15714 if test "$cross_compiling" = yes; then :
15715 # Try to guess by grepping values from an object file.
15716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15717 /* end confdefs.h. */
15718 short int ascii_mm[] =
15719 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15720 short int ascii_ii[] =
15721 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15722 int use_ascii (int i) {
15723 return ascii_mm[i] + ascii_ii[i];
15725 short int ebcdic_ii[] =
15726 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15727 short int ebcdic_mm[] =
15728 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15729 int use_ebcdic (int i) {
15730 return ebcdic_mm[i] + ebcdic_ii[i];
15732 extern int foo;
15735 main ()
15737 return use_ascii (foo) == use_ebcdic (foo);
15739 return 0;
15741 _ACEOF
15742 if ac_fn_c_try_compile "$LINENO"; then :
15743 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15744 ac_cv_c_bigendian=yes
15746 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15747 if test "$ac_cv_c_bigendian" = unknown; then
15748 ac_cv_c_bigendian=no
15749 else
15750 # finding both strings is unlikely to happen, but who knows?
15751 ac_cv_c_bigendian=unknown
15755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15756 else
15757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15758 /* end confdefs.h. */
15759 $ac_includes_default
15761 main ()
15764 /* Are we little or big endian? From Harbison&Steele. */
15765 union
15767 long int l;
15768 char c[sizeof (long int)];
15769 } u;
15770 u.l = 1;
15771 return u.c[sizeof (long int) - 1] == 1;
15774 return 0;
15776 _ACEOF
15777 if ac_fn_c_try_run "$LINENO"; then :
15778 ac_cv_c_bigendian=no
15779 else
15780 ac_cv_c_bigendian=yes
15782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15783 conftest.$ac_objext conftest.beam conftest.$ac_ext
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15789 $as_echo "$ac_cv_c_bigendian" >&6; }
15790 case $ac_cv_c_bigendian in #(
15791 yes)
15792 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15793 ;; #(
15795 ;; #(
15796 universal)
15798 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15800 ;; #(
15802 as_fn_error $? "unknown endianness
15803 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15804 esac
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
15808 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
15809 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
15810 $as_echo_n "(cached) " >&6
15811 else
15813 gcc_cv_as_cfi_pseudo_op=unknown
15814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15815 /* end confdefs.h. */
15816 asm (".cfi_startproc\n\t.cfi_endproc");
15818 main ()
15822 return 0;
15824 _ACEOF
15825 if ac_fn_c_try_compile "$LINENO"; then :
15826 gcc_cv_as_cfi_pseudo_op=yes
15827 else
15828 gcc_cv_as_cfi_pseudo_op=no
15830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
15834 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
15835 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
15837 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
15842 case "$TARGET" in
15843 SPARC)
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
15845 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
15846 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
15847 $as_echo_n "(cached) " >&6
15848 else
15850 save_CFLAGS="$CFLAGS"
15851 save_LDFLAGS="$LDFLAGS"
15852 CFLAGS="$CFLAGS -fpic"
15853 LDFLAGS="$LDFLAGS -shared"
15854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15855 /* end confdefs.h. */
15856 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
15858 main ()
15862 return 0;
15864 _ACEOF
15865 if ac_fn_c_try_link "$LINENO"; then :
15866 libffi_cv_as_sparc_ua_pcrel=yes
15867 else
15868 libffi_cv_as_sparc_ua_pcrel=no
15870 rm -f core conftest.err conftest.$ac_objext \
15871 conftest$ac_exeext conftest.$ac_ext
15872 CFLAGS="$save_CFLAGS"
15873 LDFLAGS="$save_LDFLAGS"
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
15876 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
15877 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
15879 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
15884 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
15885 if ${libffi_cv_as_register_pseudo_op+:} false; then :
15886 $as_echo_n "(cached) " >&6
15887 else
15889 libffi_cv_as_register_pseudo_op=unknown
15890 # Check if we have .register
15891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15892 /* end confdefs.h. */
15895 main ()
15897 asm (".register %g2, #scratch");
15899 return 0;
15901 _ACEOF
15902 if ac_fn_c_try_compile "$LINENO"; then :
15903 libffi_cv_as_register_pseudo_op=yes
15904 else
15905 libffi_cv_as_register_pseudo_op=no
15907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
15911 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
15912 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
15914 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
15919 X86*)
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15921 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15922 if ${libffi_cv_as_x86_pcrel+:} false; then :
15923 $as_echo_n "(cached) " >&6
15924 else
15926 libffi_cv_as_x86_pcrel=no
15927 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15928 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15929 libffi_cv_as_x86_pcrel=yes
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
15934 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
15935 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
15937 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15942 S390)
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler uses zarch features" >&5
15944 $as_echo_n "checking compiler uses zarch features... " >&6; }
15945 if ${libffi_cv_as_s390_zarch+:} false; then :
15946 $as_echo_n "(cached) " >&6
15947 else
15949 libffi_cv_as_s390_zarch=no
15950 echo 'void foo(void) { bar(); bar(); }' > conftest.c
15951 if $CC $CFLAGS -S conftest.c > /dev/null 2>&1; then
15952 if grep -q brasl conftest.s; then
15953 libffi_cv_as_s390_zarch=yes
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_s390_zarch" >&5
15959 $as_echo "$libffi_cv_as_s390_zarch" >&6; }
15960 if test "x$libffi_cv_as_s390_zarch" = xyes; then
15962 $as_echo "#define HAVE_AS_S390_ZARCH 1" >>confdefs.h
15966 esac
15968 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
15969 # Check whether --enable-pax_emutramp was given.
15970 if test "${enable_pax_emutramp+set}" = set; then :
15971 enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
15973 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
15979 FFI_EXEC_TRAMPOLINE_TABLE=0
15980 case "$target" in
15981 *arm*-apple-darwin* | aarch64-apple-darwin*)
15982 FFI_EXEC_TRAMPOLINE_TABLE=1
15984 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
15987 *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
15989 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
15992 esac
15993 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
15994 FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
15995 FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
15996 else
15997 FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
15998 FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
16003 if test x$TARGET = xX86_64; then
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking toolchain supports unwind section type" >&5
16005 $as_echo_n "checking toolchain supports unwind section type... " >&6; }
16006 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
16007 $as_echo_n "(cached) " >&6
16008 else
16010 cat > conftest1.s << EOF
16011 .text
16012 .globl foo
16013 foo:
16014 jmp bar
16015 .section .eh_frame,"a",@unwind
16016 bar:
16019 cat > conftest2.c << EOF
16020 extern void foo();
16021 int main(){foo();}
16024 libffi_cv_as_x86_64_unwind_section_type=no
16025 # we ensure that we can compile _and_ link an assembly file containing an @unwind section
16026 # since the compiler can support it and not the linker (ie old binutils)
16027 if $CC -Wa,--fatal-warnings $CFLAGS -c conftest1.s > /dev/null 2>&1 && \
16028 $CC conftest2.c conftest1.o > /dev/null 2>&1 ; then
16029 libffi_cv_as_x86_64_unwind_section_type=yes
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
16034 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
16035 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
16037 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
16042 if test "x$GCC" = "xyes"; then
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
16044 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
16045 if ${libffi_cv_ro_eh_frame+:} false; then :
16046 $as_echo_n "(cached) " >&6
16047 else
16049 libffi_cv_ro_eh_frame=no
16050 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
16051 if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c > /dev/null 2>&1; then
16052 objdump -h conftest.o > conftest.dump 2>&1
16053 libffi_eh_frame_line=`grep -n eh_frame conftest.dump | cut -d: -f 1`
16054 if test "x$libffi_eh_frame_line" != "x"; then
16055 libffi_test_line=`expr $libffi_eh_frame_line + 1`p
16056 sed -n $libffi_test_line conftest.dump > conftest.line
16057 if grep READONLY conftest.line > /dev/null; then
16058 libffi_cv_ro_eh_frame=yes
16062 rm -f conftest.*
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
16066 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
16067 if test "x$libffi_cv_ro_eh_frame" = xyes; then
16069 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
16072 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
16074 else
16076 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
16081 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
16082 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
16083 $as_echo_n "(cached) " >&6
16084 else
16086 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
16087 libffi_cv_hidden_visibility_attribute=no
16088 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
16089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16090 (eval $ac_try) 2>&5
16091 ac_status=$?
16092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16093 test $ac_status = 0; }; }; then
16094 if grep '\.hidden.*foo' conftest.s >/dev/null; then
16095 libffi_cv_hidden_visibility_attribute=yes
16098 rm -f conftest.*
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
16102 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
16103 if test $libffi_cv_hidden_visibility_attribute = yes; then
16105 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
16116 TARGET_OBJ=
16117 for i in $SOURCES; do
16118 TARGET_OBJ="${TARGET_OBJ} src/${TARGETDIR}/"`echo $i | sed 's/[cS]$/lo/'`
16119 done
16125 # Check whether --enable-debug was given.
16126 if test "${enable_debug+set}" = set; then :
16127 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
16129 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
16134 if test "$enable_debug" = "yes"; then
16135 FFI_DEBUG_TRUE=
16136 FFI_DEBUG_FALSE='#'
16137 else
16138 FFI_DEBUG_TRUE='#'
16139 FFI_DEBUG_FALSE=
16143 # Check whether --enable-structs was given.
16144 if test "${enable_structs+set}" = set; then :
16145 enableval=$enable_structs; if test "$enable_structs" = "no"; then
16147 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
16152 if test "$enable_debug" = "yes"; then
16153 FFI_DEBUG_TRUE=
16154 FFI_DEBUG_FALSE='#'
16155 else
16156 FFI_DEBUG_TRUE='#'
16157 FFI_DEBUG_FALSE=
16161 # Check whether --enable-raw-api was given.
16162 if test "${enable_raw_api+set}" = set; then :
16163 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
16165 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
16171 # Check whether --enable-purify-safety was given.
16172 if test "${enable_purify_safety+set}" = set; then :
16173 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
16175 $as_echo "#define USING_PURIFY 1" >>confdefs.h
16182 # Check whether --with-toolexeclibdir was given.
16183 if test "${with_toolexeclibdir+set}" = set; then :
16184 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
16188 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
16190 esac
16191 else
16192 with_toolexeclibdir=no
16197 if test -n "$with_cross_host" &&
16198 test x"$with_cross_host" != x"no"; then
16199 toolexecdir='$(exec_prefix)/$(target_alias)'
16200 case ${with_toolexeclibdir} in
16202 toolexeclibdir='$(toolexecdir)/lib'
16205 toolexeclibdir=${with_toolexeclibdir}
16207 esac
16208 else
16209 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16210 toolexeclibdir='$(libdir)'
16212 multi_os_directory=`$CC -print-multi-os-directory`
16213 case $multi_os_directory in
16214 .) ;; # Avoid trailing /.
16215 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
16216 esac
16220 if test "${multilib}" = "yes"; then
16221 multilib_arg="--enable-multilib"
16222 else
16223 multilib_arg=
16226 # Check linker support.
16229 # Check whether --with-gnu-ld was given.
16230 if test "${with_gnu_ld+set}" = set; then :
16231 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16232 else
16233 with_gnu_ld=no
16236 ac_prog=ld
16237 if test "$GCC" = yes; then
16238 # Check if gcc -print-prog-name=ld gives a path.
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16240 $as_echo_n "checking for ld used by $CC... " >&6; }
16241 case $host in
16242 *-*-mingw*)
16243 # gcc leaves a trailing carriage return which upsets mingw
16244 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16246 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16247 esac
16248 case $ac_prog in
16249 # Accept absolute paths.
16250 [\\/]* | ?:[\\/]*)
16251 re_direlt='/[^/][^/]*/\.\./'
16252 # Canonicalize the pathname of ld
16253 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16254 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16255 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16256 done
16257 test -z "$LD" && LD="$ac_prog"
16260 # If it fails, then pretend we aren't using GCC.
16261 ac_prog=ld
16264 # If it is relative, then search for the first ld in PATH.
16265 with_gnu_ld=unknown
16267 esac
16268 elif test "$with_gnu_ld" = yes; then
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16270 $as_echo_n "checking for GNU ld... " >&6; }
16271 else
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16273 $as_echo_n "checking for non-GNU ld... " >&6; }
16275 if ${lt_cv_path_LD+:} false; then :
16276 $as_echo_n "(cached) " >&6
16277 else
16278 if test -z "$LD"; then
16279 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16280 for ac_dir in $PATH; do
16281 IFS="$lt_save_ifs"
16282 test -z "$ac_dir" && ac_dir=.
16283 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16284 lt_cv_path_LD="$ac_dir/$ac_prog"
16285 # Check to see if the program is GNU ld. I'd rather use --version,
16286 # but apparently some variants of GNU ld only accept -v.
16287 # Break only if it was the GNU/non-GNU ld that we prefer.
16288 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16289 *GNU* | *'with BFD'*)
16290 test "$with_gnu_ld" != no && break
16293 test "$with_gnu_ld" != yes && break
16295 esac
16297 done
16298 IFS="$lt_save_ifs"
16299 else
16300 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16304 LD="$lt_cv_path_LD"
16305 if test -n "$LD"; then
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16307 $as_echo "$LD" >&6; }
16308 else
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16310 $as_echo "no" >&6; }
16312 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16314 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16315 if ${lt_cv_prog_gnu_ld+:} false; then :
16316 $as_echo_n "(cached) " >&6
16317 else
16318 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16319 case `$LD -v 2>&1 </dev/null` in
16320 *GNU* | *'with BFD'*)
16321 lt_cv_prog_gnu_ld=yes
16324 lt_cv_prog_gnu_ld=no
16326 esac
16328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16329 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16330 with_gnu_ld=$lt_cv_prog_gnu_ld
16338 # If we're not using GNU ld, then there's no point in even trying these
16339 # tests. Check for that first. We should have already tested for gld
16340 # by now (in libtool), but require it now just to be safe...
16341 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16342 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16346 # The name set by libtool depends on the version of libtool. Shame on us
16347 # for depending on an impl detail, but c'est la vie. Older versions used
16348 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16349 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16350 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16351 # set (hence we're using an older libtool), then set it.
16352 if test x${with_gnu_ld+set} != xset; then
16353 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16354 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16355 with_gnu_ld=no
16356 else
16357 with_gnu_ld=$ac_cv_prog_gnu_ld
16361 # Start by getting the version number. I think the libtool test already
16362 # does some of this, but throws away the result.
16363 libat_ld_is_gold=no
16364 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16365 libat_ld_is_gold=yes
16368 ldver=`$LD --version 2>/dev/null |
16369 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
16371 libat_gnu_ld_version=`echo $ldver | \
16372 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16374 # Set --gc-sections.
16375 if test "$with_gnu_ld" = "notbroken"; then
16376 # GNU ld it is! Joy and bunny rabbits!
16378 # All these tests are for C++; save the language and the compiler flags.
16379 # Need to do this so that g++ won't try to link in libstdc++
16380 ac_test_CFLAGS="${CFLAGS+set}"
16381 ac_save_CFLAGS="$CFLAGS"
16382 CFLAGS='-x c++ -Wl,--gc-sections'
16384 # Check for -Wl,--gc-sections
16385 # XXX This test is broken at the moment, as symbols required for linking
16386 # are now in libsupc++ (not built yet). In addition, this test has
16387 # cored on solaris in the past. In addition, --gc-sections doesn't
16388 # really work at the moment (keeps on discarding used sections, first
16389 # .eh_frame and now some of the glibc sections for iconv).
16390 # Bzzzzt. Thanks for playing, maybe next time.
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16392 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16393 if test "$cross_compiling" = yes; then :
16394 ac_sectionLDflags=yes
16395 else
16396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16397 /* end confdefs.h. */
16399 int main(void)
16401 try { throw 1; }
16402 catch (...) { };
16403 return 0;
16406 _ACEOF
16407 if ac_fn_c_try_run "$LINENO"; then :
16408 ac_sectionLDflags=yes
16409 else
16410 ac_sectionLDflags=no
16412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16413 conftest.$ac_objext conftest.beam conftest.$ac_ext
16416 if test "$ac_test_CFLAGS" = set; then
16417 CFLAGS="$ac_save_CFLAGS"
16418 else
16419 # this is the suspicious part
16420 CFLAGS=''
16422 if test "$ac_sectionLDflags" = "yes"; then
16423 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16426 $as_echo "$ac_sectionLDflags" >&6; }
16429 # Set linker optimization flags.
16430 if test x"$with_gnu_ld" = x"yes"; then
16431 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16439 # Check whether --enable-symvers was given.
16440 if test "${enable_symvers+set}" = set; then :
16441 enableval=$enable_symvers;
16442 case "$enableval" in
16443 yes|no|gnu*|sun) ;;
16444 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16445 esac
16447 else
16448 enable_symvers=yes
16453 # If we never went through the LIBAT_CHECK_LINKER_FEATURES macro, then we
16454 # don't know enough about $LD to do tricks...
16457 # Turn a 'yes' into a suitable default.
16458 if test x$enable_symvers = xyes ; then
16459 # FIXME The following test is too strict, in theory.
16460 if test $enable_shared = no || test "x$LD" = x; then
16461 enable_symvers=no
16462 else
16463 if test $with_gnu_ld = yes ; then
16464 enable_symvers=gnu
16465 else
16466 case ${target_os} in
16467 # Sun symbol versioning exists since Solaris 2.5.
16468 solaris2.[5-9]* | solaris2.1[0-9]*)
16469 enable_symvers=sun ;;
16471 enable_symvers=no ;;
16472 esac
16477 # Check if 'sun' was requested on non-Solaris 2 platforms.
16478 if test x$enable_symvers = xsun ; then
16479 case ${target_os} in
16480 solaris2*)
16481 # All fine.
16484 # Unlikely to work.
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16486 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16488 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16490 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16491 enable_symvers=no
16493 esac
16496 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16497 if test $enable_symvers != no; then
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16499 $as_echo_n "checking for shared libgcc... " >&6; }
16500 ac_save_CFLAGS="$CFLAGS"
16501 CFLAGS=' -lgcc_s'
16502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503 /* end confdefs.h. */
16506 main ()
16508 return 0;
16510 return 0;
16512 _ACEOF
16513 if ac_fn_c_try_link "$LINENO"; then :
16514 libat_shared_libgcc=yes
16515 else
16516 libat_shared_libgcc=no
16518 rm -f core conftest.err conftest.$ac_objext \
16519 conftest$ac_exeext conftest.$ac_ext
16520 CFLAGS="$ac_save_CFLAGS"
16521 if test $libat_shared_libgcc = no; then
16522 cat > conftest.c <<EOF
16523 int main (void) { return 0; }
16525 libat_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16526 -shared -shared-libgcc -o conftest.so \
16527 conftest.c -v 2>&1 >/dev/null \
16528 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16529 rm -f conftest.c conftest.so
16530 if test x${libat_libgcc_s_suffix+set} = xset; then
16531 CFLAGS=" -lgcc_s$libat_libgcc_s_suffix"
16532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16533 /* end confdefs.h. */
16536 main ()
16538 return 0;
16540 return 0;
16542 _ACEOF
16543 if ac_fn_c_try_link "$LINENO"; then :
16544 libat_shared_libgcc=yes
16546 rm -f core conftest.err conftest.$ac_objext \
16547 conftest$ac_exeext conftest.$ac_ext
16548 CFLAGS="$ac_save_CFLAGS"
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5
16552 $as_echo "$libat_shared_libgcc" >&6; }
16555 # For GNU ld, we need at least this version. The format is described in
16556 # LIBAT_CHECK_LINKER_FEATURES above.
16557 libat_min_gnu_ld_version=21400
16558 # XXXXXXXXXXX libat_gnu_ld_version=21390
16560 # Check to see if unspecified "yes" value can win, given results above.
16561 # Change "yes" into either "no" or a style name.
16562 if test $enable_symvers != no && test $libat_shared_libgcc = yes; then
16563 if test $with_gnu_ld = yes; then
16564 if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
16565 enable_symvers=gnu
16566 elif test $libat_ld_is_gold = yes ; then
16567 enable_symvers=gnu
16568 else
16569 # The right tools, the right setup, but too old. Fallbacks?
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
16571 $as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;}
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16573 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16575 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5
16577 $as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;}
16578 if test $libat_gnu_ld_version -ge 21200 ; then
16579 # Globbing fix is present, proper block support is not.
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16581 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16582 enable_symvers=no
16583 else
16584 # 2.11 or older.
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16586 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16587 enable_symvers=no
16590 elif test $enable_symvers = sun; then
16591 : All interesting versions of Sun ld support sun style symbol versioning.
16592 else
16593 # just fail for now
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16595 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16597 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16599 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16601 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16602 enable_symvers=no
16605 if test $enable_symvers = gnu; then
16607 $as_echo "#define LIBAT_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16611 if test $enable_symvers != no; then
16612 LIBAT_BUILD_VERSIONED_SHLIB_TRUE=
16613 LIBAT_BUILD_VERSIONED_SHLIB_FALSE='#'
16614 else
16615 LIBAT_BUILD_VERSIONED_SHLIB_TRUE='#'
16616 LIBAT_BUILD_VERSIONED_SHLIB_FALSE=
16619 if test $enable_symvers = gnu; then
16620 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16621 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16622 else
16623 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16624 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16627 if test $enable_symvers = sun; then
16628 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16629 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16630 else
16631 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16632 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16636 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16639 # Determine what GCC version number to use in filesystem paths.
16641 get_gcc_base_ver="cat"
16643 # Check whether --with-gcc-major-version-only was given.
16644 if test "${with_gcc_major_version_only+set}" = set; then :
16645 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
16646 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
16654 ac_config_commands="$ac_config_commands include"
16656 ac_config_commands="$ac_config_commands src"
16659 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
16662 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
16665 cat >confcache <<\_ACEOF
16666 # This file is a shell script that caches the results of configure
16667 # tests run on this system so they can be shared between configure
16668 # scripts and configure runs, see configure's option --config-cache.
16669 # It is not useful on other systems. If it contains results you don't
16670 # want to keep, you may remove or edit it.
16672 # config.status only pays attention to the cache file if you give it
16673 # the --recheck option to rerun configure.
16675 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16676 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16677 # following values.
16679 _ACEOF
16681 # The following way of writing the cache mishandles newlines in values,
16682 # but we know of no workaround that is simple, portable, and efficient.
16683 # So, we kill variables containing newlines.
16684 # Ultrix sh set writes to stderr and can't be redirected directly,
16685 # and sets the high bit in the cache file unless we assign to the vars.
16687 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16688 eval ac_val=\$$ac_var
16689 case $ac_val in #(
16690 *${as_nl}*)
16691 case $ac_var in #(
16692 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16693 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16694 esac
16695 case $ac_var in #(
16696 _ | IFS | as_nl) ;; #(
16697 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16698 *) { eval $ac_var=; unset $ac_var;} ;;
16699 esac ;;
16700 esac
16701 done
16703 (set) 2>&1 |
16704 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16705 *${as_nl}ac_space=\ *)
16706 # `set' does not quote correctly, so add quotes: double-quote
16707 # substitution turns \\\\ into \\, and sed turns \\ into \.
16708 sed -n \
16709 "s/'/'\\\\''/g;
16710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16711 ;; #(
16713 # `set' quotes correctly as required by POSIX, so do not add quotes.
16714 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16716 esac |
16717 sort
16719 sed '
16720 /^ac_cv_env_/b end
16721 t clear
16722 :clear
16723 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16724 t end
16725 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16726 :end' >>confcache
16727 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16728 if test -w "$cache_file"; then
16729 if test "x$cache_file" != "x/dev/null"; then
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16731 $as_echo "$as_me: updating cache $cache_file" >&6;}
16732 if test ! -f "$cache_file" || test -h "$cache_file"; then
16733 cat confcache >"$cache_file"
16734 else
16735 case $cache_file in #(
16736 */* | ?:*)
16737 mv -f confcache "$cache_file"$$ &&
16738 mv -f "$cache_file"$$ "$cache_file" ;; #(
16740 mv -f confcache "$cache_file" ;;
16741 esac
16744 else
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16746 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16749 rm -f confcache
16751 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16752 # Let make expand exec_prefix.
16753 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16755 DEFS=-DHAVE_CONFIG_H
16757 ac_libobjs=
16758 ac_ltlibobjs=
16760 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16761 # 1. Remove the extension, and $U if already installed.
16762 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16763 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16764 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16765 # will be set to the directory where LIBOBJS objects are built.
16766 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16767 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16768 done
16769 LIBOBJS=$ac_libobjs
16771 LTLIBOBJS=$ac_ltlibobjs
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16775 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16776 if test -n "$am_sleep_pid"; then
16777 # Hide warnings about reused PIDs.
16778 wait $am_sleep_pid 2>/dev/null
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16781 $as_echo "done" >&6; }
16782 if test -n "$EXEEXT"; then
16783 am__EXEEXT_TRUE=
16784 am__EXEEXT_FALSE='#'
16785 else
16786 am__EXEEXT_TRUE='#'
16787 am__EXEEXT_FALSE=
16790 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16791 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
16792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16794 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16795 as_fn_error $? "conditional \"GENINSRC\" was never defined.
16796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16798 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16799 as_fn_error $? "conditional \"AMDEP\" was never defined.
16800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16802 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16803 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16806 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16807 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16810 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16811 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
16812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16814 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16815 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16818 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16819 as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
16820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16823 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
16824 as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
16825 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16827 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
16828 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
16829 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16831 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
16832 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
16833 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16835 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_FALSE}"; then
16836 as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB\" was never defined.
16837 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16839 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
16840 as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
16841 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16843 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
16844 as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
16845 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16848 : "${CONFIG_STATUS=./config.status}"
16849 ac_write_fail=0
16850 ac_clean_files_save=$ac_clean_files
16851 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16853 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16854 as_write_fail=0
16855 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16856 #! $SHELL
16857 # Generated by $as_me.
16858 # Run this file to recreate the current configuration.
16859 # Compiler output produced by configure, useful for debugging
16860 # configure, is in config.log if it exists.
16862 debug=false
16863 ac_cs_recheck=false
16864 ac_cs_silent=false
16866 SHELL=\${CONFIG_SHELL-$SHELL}
16867 export SHELL
16868 _ASEOF
16869 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16870 ## -------------------- ##
16871 ## M4sh Initialization. ##
16872 ## -------------------- ##
16874 # Be more Bourne compatible
16875 DUALCASE=1; export DUALCASE # for MKS sh
16876 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16877 emulate sh
16878 NULLCMD=:
16879 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16880 # is contrary to our usage. Disable this feature.
16881 alias -g '${1+"$@"}'='"$@"'
16882 setopt NO_GLOB_SUBST
16883 else
16884 case `(set -o) 2>/dev/null` in #(
16885 *posix*) :
16886 set -o posix ;; #(
16887 *) :
16889 esac
16893 as_nl='
16895 export as_nl
16896 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16897 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16898 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16899 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16900 # Prefer a ksh shell builtin over an external printf program on Solaris,
16901 # but without wasting forks for bash or zsh.
16902 if test -z "$BASH_VERSION$ZSH_VERSION" \
16903 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16904 as_echo='print -r --'
16905 as_echo_n='print -rn --'
16906 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16907 as_echo='printf %s\n'
16908 as_echo_n='printf %s'
16909 else
16910 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16911 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16912 as_echo_n='/usr/ucb/echo -n'
16913 else
16914 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16915 as_echo_n_body='eval
16916 arg=$1;
16917 case $arg in #(
16918 *"$as_nl"*)
16919 expr "X$arg" : "X\\(.*\\)$as_nl";
16920 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16921 esac;
16922 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16924 export as_echo_n_body
16925 as_echo_n='sh -c $as_echo_n_body as_echo'
16927 export as_echo_body
16928 as_echo='sh -c $as_echo_body as_echo'
16931 # The user is always right.
16932 if test "${PATH_SEPARATOR+set}" != set; then
16933 PATH_SEPARATOR=:
16934 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16935 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16936 PATH_SEPARATOR=';'
16941 # IFS
16942 # We need space, tab and new line, in precisely that order. Quoting is
16943 # there to prevent editors from complaining about space-tab.
16944 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16945 # splitting by setting IFS to empty value.)
16946 IFS=" "" $as_nl"
16948 # Find who we are. Look in the path if we contain no directory separator.
16949 as_myself=
16950 case $0 in #((
16951 *[\\/]* ) as_myself=$0 ;;
16952 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16953 for as_dir in $PATH
16955 IFS=$as_save_IFS
16956 test -z "$as_dir" && as_dir=.
16957 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16958 done
16959 IFS=$as_save_IFS
16962 esac
16963 # We did not find ourselves, most probably we were run as `sh COMMAND'
16964 # in which case we are not to be found in the path.
16965 if test "x$as_myself" = x; then
16966 as_myself=$0
16968 if test ! -f "$as_myself"; then
16969 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16970 exit 1
16973 # Unset variables that we do not need and which cause bugs (e.g. in
16974 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16975 # suppresses any "Segmentation fault" message there. '((' could
16976 # trigger a bug in pdksh 5.2.14.
16977 for as_var in BASH_ENV ENV MAIL MAILPATH
16978 do eval test x\${$as_var+set} = xset \
16979 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16980 done
16981 PS1='$ '
16982 PS2='> '
16983 PS4='+ '
16985 # NLS nuisances.
16986 LC_ALL=C
16987 export LC_ALL
16988 LANGUAGE=C
16989 export LANGUAGE
16991 # CDPATH.
16992 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16995 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16996 # ----------------------------------------
16997 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16998 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16999 # script with STATUS, using 1 if that was 0.
17000 as_fn_error ()
17002 as_status=$1; test $as_status -eq 0 && as_status=1
17003 if test "$4"; then
17004 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17005 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17007 $as_echo "$as_me: error: $2" >&2
17008 as_fn_exit $as_status
17009 } # as_fn_error
17012 # as_fn_set_status STATUS
17013 # -----------------------
17014 # Set $? to STATUS, without forking.
17015 as_fn_set_status ()
17017 return $1
17018 } # as_fn_set_status
17020 # as_fn_exit STATUS
17021 # -----------------
17022 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17023 as_fn_exit ()
17025 set +e
17026 as_fn_set_status $1
17027 exit $1
17028 } # as_fn_exit
17030 # as_fn_unset VAR
17031 # ---------------
17032 # Portably unset VAR.
17033 as_fn_unset ()
17035 { eval $1=; unset $1;}
17037 as_unset=as_fn_unset
17038 # as_fn_append VAR VALUE
17039 # ----------------------
17040 # Append the text in VALUE to the end of the definition contained in VAR. Take
17041 # advantage of any shell optimizations that allow amortized linear growth over
17042 # repeated appends, instead of the typical quadratic growth present in naive
17043 # implementations.
17044 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17045 eval 'as_fn_append ()
17047 eval $1+=\$2
17049 else
17050 as_fn_append ()
17052 eval $1=\$$1\$2
17054 fi # as_fn_append
17056 # as_fn_arith ARG...
17057 # ------------------
17058 # Perform arithmetic evaluation on the ARGs, and store the result in the
17059 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17060 # must be portable across $(()) and expr.
17061 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17062 eval 'as_fn_arith ()
17064 as_val=$(( $* ))
17066 else
17067 as_fn_arith ()
17069 as_val=`expr "$@" || test $? -eq 1`
17071 fi # as_fn_arith
17074 if expr a : '\(a\)' >/dev/null 2>&1 &&
17075 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17076 as_expr=expr
17077 else
17078 as_expr=false
17081 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17082 as_basename=basename
17083 else
17084 as_basename=false
17087 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17088 as_dirname=dirname
17089 else
17090 as_dirname=false
17093 as_me=`$as_basename -- "$0" ||
17094 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17095 X"$0" : 'X\(//\)$' \| \
17096 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17097 $as_echo X/"$0" |
17098 sed '/^.*\/\([^/][^/]*\)\/*$/{
17099 s//\1/
17102 /^X\/\(\/\/\)$/{
17103 s//\1/
17106 /^X\/\(\/\).*/{
17107 s//\1/
17110 s/.*/./; q'`
17112 # Avoid depending upon Character Ranges.
17113 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17114 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17115 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17116 as_cr_digits='0123456789'
17117 as_cr_alnum=$as_cr_Letters$as_cr_digits
17119 ECHO_C= ECHO_N= ECHO_T=
17120 case `echo -n x` in #(((((
17121 -n*)
17122 case `echo 'xy\c'` in
17123 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17124 xy) ECHO_C='\c';;
17125 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17126 ECHO_T=' ';;
17127 esac;;
17129 ECHO_N='-n';;
17130 esac
17132 rm -f conf$$ conf$$.exe conf$$.file
17133 if test -d conf$$.dir; then
17134 rm -f conf$$.dir/conf$$.file
17135 else
17136 rm -f conf$$.dir
17137 mkdir conf$$.dir 2>/dev/null
17139 if (echo >conf$$.file) 2>/dev/null; then
17140 if ln -s conf$$.file conf$$ 2>/dev/null; then
17141 as_ln_s='ln -s'
17142 # ... but there are two gotchas:
17143 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17144 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17145 # In both cases, we have to default to `cp -pR'.
17146 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17147 as_ln_s='cp -pR'
17148 elif ln conf$$.file conf$$ 2>/dev/null; then
17149 as_ln_s=ln
17150 else
17151 as_ln_s='cp -pR'
17153 else
17154 as_ln_s='cp -pR'
17156 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17157 rmdir conf$$.dir 2>/dev/null
17160 # as_fn_mkdir_p
17161 # -------------
17162 # Create "$as_dir" as a directory, including parents if necessary.
17163 as_fn_mkdir_p ()
17166 case $as_dir in #(
17167 -*) as_dir=./$as_dir;;
17168 esac
17169 test -d "$as_dir" || eval $as_mkdir_p || {
17170 as_dirs=
17171 while :; do
17172 case $as_dir in #(
17173 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17174 *) as_qdir=$as_dir;;
17175 esac
17176 as_dirs="'$as_qdir' $as_dirs"
17177 as_dir=`$as_dirname -- "$as_dir" ||
17178 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17179 X"$as_dir" : 'X\(//\)[^/]' \| \
17180 X"$as_dir" : 'X\(//\)$' \| \
17181 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17182 $as_echo X"$as_dir" |
17183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17184 s//\1/
17187 /^X\(\/\/\)[^/].*/{
17188 s//\1/
17191 /^X\(\/\/\)$/{
17192 s//\1/
17195 /^X\(\/\).*/{
17196 s//\1/
17199 s/.*/./; q'`
17200 test -d "$as_dir" && break
17201 done
17202 test -z "$as_dirs" || eval "mkdir $as_dirs"
17203 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17206 } # as_fn_mkdir_p
17207 if mkdir -p . 2>/dev/null; then
17208 as_mkdir_p='mkdir -p "$as_dir"'
17209 else
17210 test -d ./-p && rmdir ./-p
17211 as_mkdir_p=false
17215 # as_fn_executable_p FILE
17216 # -----------------------
17217 # Test if FILE is an executable regular file.
17218 as_fn_executable_p ()
17220 test -f "$1" && test -x "$1"
17221 } # as_fn_executable_p
17222 as_test_x='test -x'
17223 as_executable_p=as_fn_executable_p
17225 # Sed expression to map a string onto a valid CPP name.
17226 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17228 # Sed expression to map a string onto a valid variable name.
17229 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17232 exec 6>&1
17233 ## ----------------------------------- ##
17234 ## Main body of $CONFIG_STATUS script. ##
17235 ## ----------------------------------- ##
17236 _ASEOF
17237 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17240 # Save the log message, to keep $0 and so on meaningful, and to
17241 # report actual input values of CONFIG_FILES etc. instead of their
17242 # values after options handling.
17243 ac_log="
17244 This file was extended by libffi $as_me 3.99999, which was
17245 generated by GNU Autoconf 2.69. Invocation command line was
17247 CONFIG_FILES = $CONFIG_FILES
17248 CONFIG_HEADERS = $CONFIG_HEADERS
17249 CONFIG_LINKS = $CONFIG_LINKS
17250 CONFIG_COMMANDS = $CONFIG_COMMANDS
17251 $ $0 $@
17253 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17256 _ACEOF
17258 case $ac_config_files in *"
17259 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17260 esac
17262 case $ac_config_headers in *"
17263 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17264 esac
17267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17268 # Files that config.status was made for.
17269 config_files="$ac_config_files"
17270 config_headers="$ac_config_headers"
17271 config_links="$ac_config_links"
17272 config_commands="$ac_config_commands"
17274 _ACEOF
17276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17277 ac_cs_usage="\
17278 \`$as_me' instantiates files and other configuration actions
17279 from templates according to the current configuration. Unless the files
17280 and actions are specified as TAGs, all are instantiated by default.
17282 Usage: $0 [OPTION]... [TAG]...
17284 -h, --help print this help, then exit
17285 -V, --version print version number and configuration settings, then exit
17286 --config print configuration, then exit
17287 -q, --quiet, --silent
17288 do not print progress messages
17289 -d, --debug don't remove temporary files
17290 --recheck update $as_me by reconfiguring in the same conditions
17291 --file=FILE[:TEMPLATE]
17292 instantiate the configuration file FILE
17293 --header=FILE[:TEMPLATE]
17294 instantiate the configuration header FILE
17296 Configuration files:
17297 $config_files
17299 Configuration headers:
17300 $config_headers
17302 Configuration links:
17303 $config_links
17305 Configuration commands:
17306 $config_commands
17308 Report bugs to <http://github.com/atgreen/libffi/issues>."
17310 _ACEOF
17311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17312 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17313 ac_cs_version="\\
17314 libffi config.status 3.99999
17315 configured by $0, generated by GNU Autoconf 2.69,
17316 with options \\"\$ac_cs_config\\"
17318 Copyright (C) 2012 Free Software Foundation, Inc.
17319 This config.status script is free software; the Free Software Foundation
17320 gives unlimited permission to copy, distribute and modify it."
17322 ac_pwd='$ac_pwd'
17323 srcdir='$srcdir'
17324 INSTALL='$INSTALL'
17325 MKDIR_P='$MKDIR_P'
17326 AWK='$AWK'
17327 test -n "\$AWK" || AWK=awk
17328 _ACEOF
17330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17331 # The default lists apply if the user does not specify any file.
17332 ac_need_defaults=:
17333 while test $# != 0
17335 case $1 in
17336 --*=?*)
17337 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17338 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17339 ac_shift=:
17341 --*=)
17342 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17343 ac_optarg=
17344 ac_shift=:
17347 ac_option=$1
17348 ac_optarg=$2
17349 ac_shift=shift
17351 esac
17353 case $ac_option in
17354 # Handling of the options.
17355 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17356 ac_cs_recheck=: ;;
17357 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17358 $as_echo "$ac_cs_version"; exit ;;
17359 --config | --confi | --conf | --con | --co | --c )
17360 $as_echo "$ac_cs_config"; exit ;;
17361 --debug | --debu | --deb | --de | --d | -d )
17362 debug=: ;;
17363 --file | --fil | --fi | --f )
17364 $ac_shift
17365 case $ac_optarg in
17366 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17367 '') as_fn_error $? "missing file argument" ;;
17368 esac
17369 as_fn_append CONFIG_FILES " '$ac_optarg'"
17370 ac_need_defaults=false;;
17371 --header | --heade | --head | --hea )
17372 $ac_shift
17373 case $ac_optarg in
17374 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17375 esac
17376 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17377 ac_need_defaults=false;;
17378 --he | --h)
17379 # Conflict between --help and --header
17380 as_fn_error $? "ambiguous option: \`$1'
17381 Try \`$0 --help' for more information.";;
17382 --help | --hel | -h )
17383 $as_echo "$ac_cs_usage"; exit ;;
17384 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17385 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17386 ac_cs_silent=: ;;
17388 # This is an error.
17389 -*) as_fn_error $? "unrecognized option: \`$1'
17390 Try \`$0 --help' for more information." ;;
17392 *) as_fn_append ac_config_targets " $1"
17393 ac_need_defaults=false ;;
17395 esac
17396 shift
17397 done
17399 ac_configure_extra_args=
17401 if $ac_cs_silent; then
17402 exec 6>/dev/null
17403 ac_configure_extra_args="$ac_configure_extra_args --silent"
17406 _ACEOF
17407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17408 if \$ac_cs_recheck; then
17409 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17410 shift
17411 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17412 CONFIG_SHELL='$SHELL'
17413 export CONFIG_SHELL
17414 exec "\$@"
17417 _ACEOF
17418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17419 exec 5>>config.log
17421 echo
17422 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17423 ## Running $as_me. ##
17424 _ASBOX
17425 $as_echo "$ac_log"
17426 } >&5
17428 _ACEOF
17429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17431 # INIT-COMMANDS
17434 srcdir="$srcdir"
17435 host="$host"
17436 target="$target"
17437 with_multisubdir="$with_multisubdir"
17438 with_multisrctop="$with_multisrctop"
17439 with_target_subdir="$with_target_subdir"
17440 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17441 multi_basedir="$multi_basedir"
17442 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17443 CC="$CC"
17444 CXX="$CXX"
17445 GFORTRAN="$GFORTRAN"
17446 GDC="$GDC"
17447 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17450 # The HP-UX ksh and POSIX shell print the target directory to stdout
17451 # if CDPATH is set.
17452 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17454 sed_quote_subst='$sed_quote_subst'
17455 double_quote_subst='$double_quote_subst'
17456 delay_variable_subst='$delay_variable_subst'
17457 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17458 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17459 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17460 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17461 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17462 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17463 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17464 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17465 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17466 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17467 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17468 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17469 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17470 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17471 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17472 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17473 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17474 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17475 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17476 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17477 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17478 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17479 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17480 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17481 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17482 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17483 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17484 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17485 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17486 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17487 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17488 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17489 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17490 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17491 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17492 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17493 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17494 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17495 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17496 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17497 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17498 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17499 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17500 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17501 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17502 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17503 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17504 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17505 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"`'
17506 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17507 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17508 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17509 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17510 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17511 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17512 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17513 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17514 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17515 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17516 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17517 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17518 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17519 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17520 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17521 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17522 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17523 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17524 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17525 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17526 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17527 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17528 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17529 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17530 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17531 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17532 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17533 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17534 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17535 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17536 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17537 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17538 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17539 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17540 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17541 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17542 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17543 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17544 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17545 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17546 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17547 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17548 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17549 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17550 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17551 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17552 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17553 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17554 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17555 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17556 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17557 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17558 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17559 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17560 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17561 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17562 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17563 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17564 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17565 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17566 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17567 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17568 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17569 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17570 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17571 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17572 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17573 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17574 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17575 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17576 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17577 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17578 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17579 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17580 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17581 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17582 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17583 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17584 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17585 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17586 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17587 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17588 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17589 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17590 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17591 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17592 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17593 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17594 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17595 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17596 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17597 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17598 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17599 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17600 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17601 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17602 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17603 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17604 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17605 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17606 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17607 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17608 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17609 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17610 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17611 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17612 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17613 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17614 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17615 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17616 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17617 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17618 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17619 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17620 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17621 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17622 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17623 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17624 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17625 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17626 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17627 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17628 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17629 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17630 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17631 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17633 LTCC='$LTCC'
17634 LTCFLAGS='$LTCFLAGS'
17635 compiler='$compiler_DEFAULT'
17637 # A function that is used when there is no print builtin or printf.
17638 func_fallback_echo ()
17640 eval 'cat <<_LTECHO_EOF
17642 _LTECHO_EOF'
17645 # Quote evaled strings.
17646 for var in SHELL \
17647 ECHO \
17648 SED \
17649 GREP \
17650 EGREP \
17651 FGREP \
17652 LD \
17653 NM \
17654 LN_S \
17655 lt_SP2NL \
17656 lt_NL2SP \
17657 reload_flag \
17658 OBJDUMP \
17659 deplibs_check_method \
17660 file_magic_cmd \
17661 AR \
17662 AR_FLAGS \
17663 STRIP \
17664 RANLIB \
17665 CC \
17666 CFLAGS \
17667 compiler \
17668 lt_cv_sys_global_symbol_pipe \
17669 lt_cv_sys_global_symbol_to_cdecl \
17670 lt_cv_sys_global_symbol_to_c_name_address \
17671 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17672 lt_prog_compiler_no_builtin_flag \
17673 lt_prog_compiler_wl \
17674 lt_prog_compiler_pic \
17675 lt_prog_compiler_static \
17676 lt_cv_prog_compiler_c_o \
17677 need_locks \
17678 DSYMUTIL \
17679 NMEDIT \
17680 LIPO \
17681 OTOOL \
17682 OTOOL64 \
17683 shrext_cmds \
17684 export_dynamic_flag_spec \
17685 whole_archive_flag_spec \
17686 compiler_needs_object \
17687 with_gnu_ld \
17688 allow_undefined_flag \
17689 no_undefined_flag \
17690 hardcode_libdir_flag_spec \
17691 hardcode_libdir_flag_spec_ld \
17692 hardcode_libdir_separator \
17693 fix_srcfile_path \
17694 exclude_expsyms \
17695 include_expsyms \
17696 file_list_spec \
17697 variables_saved_for_relink \
17698 libname_spec \
17699 library_names_spec \
17700 soname_spec \
17701 install_override_mode \
17702 finish_eval \
17703 old_striplib \
17704 striplib \
17705 compiler_lib_search_dirs \
17706 predep_objects \
17707 postdep_objects \
17708 predeps \
17709 postdeps \
17710 compiler_lib_search_path \
17711 LD_CXX \
17712 reload_flag_CXX \
17713 compiler_CXX \
17714 lt_prog_compiler_no_builtin_flag_CXX \
17715 lt_prog_compiler_wl_CXX \
17716 lt_prog_compiler_pic_CXX \
17717 lt_prog_compiler_static_CXX \
17718 lt_cv_prog_compiler_c_o_CXX \
17719 export_dynamic_flag_spec_CXX \
17720 whole_archive_flag_spec_CXX \
17721 compiler_needs_object_CXX \
17722 with_gnu_ld_CXX \
17723 allow_undefined_flag_CXX \
17724 no_undefined_flag_CXX \
17725 hardcode_libdir_flag_spec_CXX \
17726 hardcode_libdir_flag_spec_ld_CXX \
17727 hardcode_libdir_separator_CXX \
17728 fix_srcfile_path_CXX \
17729 exclude_expsyms_CXX \
17730 include_expsyms_CXX \
17731 file_list_spec_CXX \
17732 compiler_lib_search_dirs_CXX \
17733 predep_objects_CXX \
17734 postdep_objects_CXX \
17735 predeps_CXX \
17736 postdeps_CXX \
17737 compiler_lib_search_path_CXX; do
17738 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17739 *[\\\\\\\`\\"\\\$]*)
17740 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17743 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17745 esac
17746 done
17748 # Double-quote double-evaled strings.
17749 for var in reload_cmds \
17750 old_postinstall_cmds \
17751 old_postuninstall_cmds \
17752 old_archive_cmds \
17753 extract_expsyms_cmds \
17754 old_archive_from_new_cmds \
17755 old_archive_from_expsyms_cmds \
17756 archive_cmds \
17757 archive_expsym_cmds \
17758 module_cmds \
17759 module_expsym_cmds \
17760 export_symbols_cmds \
17761 prelink_cmds \
17762 postinstall_cmds \
17763 postuninstall_cmds \
17764 finish_cmds \
17765 sys_lib_search_path_spec \
17766 sys_lib_dlsearch_path_spec \
17767 reload_cmds_CXX \
17768 old_archive_cmds_CXX \
17769 old_archive_from_new_cmds_CXX \
17770 old_archive_from_expsyms_cmds_CXX \
17771 archive_cmds_CXX \
17772 archive_expsym_cmds_CXX \
17773 module_cmds_CXX \
17774 module_expsym_cmds_CXX \
17775 export_symbols_cmds_CXX \
17776 prelink_cmds_CXX; do
17777 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17778 *[\\\\\\\`\\"\\\$]*)
17779 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17782 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17784 esac
17785 done
17787 ac_aux_dir='$ac_aux_dir'
17788 xsi_shell='$xsi_shell'
17789 lt_shell_append='$lt_shell_append'
17791 # See if we are running on zsh, and set the options which allow our
17792 # commands through without removal of \ escapes INIT.
17793 if test -n "\${ZSH_VERSION+set}" ; then
17794 setopt NO_GLOB_SUBST
17798 PACKAGE='$PACKAGE'
17799 VERSION='$VERSION'
17800 TIMESTAMP='$TIMESTAMP'
17801 RM='$RM'
17802 ofile='$ofile'
17808 TARGETDIR="$TARGETDIR"
17810 _ACEOF
17812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17814 # Handling of arguments.
17815 for ac_config_target in $ac_config_targets
17817 case $ac_config_target in
17818 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
17819 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17820 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17821 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17822 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
17823 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
17824 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
17825 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17826 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
17827 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17828 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17829 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
17830 "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
17832 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17833 esac
17834 done
17837 # If the user did not use the arguments to specify the items to instantiate,
17838 # then the envvar interface is used. Set only those that are not.
17839 # We use the long form for the default assignment because of an extremely
17840 # bizarre bug on SunOS 4.1.3.
17841 if $ac_need_defaults; then
17842 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17843 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17844 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17845 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17848 # Have a temporary directory for convenience. Make it in the build tree
17849 # simply because there is no reason against having it here, and in addition,
17850 # creating and moving files from /tmp can sometimes cause problems.
17851 # Hook for its removal unless debugging.
17852 # Note that there is a small window in which the directory will not be cleaned:
17853 # after its creation but before its name has been assigned to `$tmp'.
17854 $debug ||
17856 tmp= ac_tmp=
17857 trap 'exit_status=$?
17858 : "${ac_tmp:=$tmp}"
17859 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17861 trap 'as_fn_exit 1' 1 2 13 15
17863 # Create a (secure) tmp directory for tmp files.
17866 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17867 test -d "$tmp"
17868 } ||
17870 tmp=./conf$$-$RANDOM
17871 (umask 077 && mkdir "$tmp")
17872 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17873 ac_tmp=$tmp
17875 # Set up the scripts for CONFIG_FILES section.
17876 # No need to generate them if there are no CONFIG_FILES.
17877 # This happens for instance with `./config.status config.h'.
17878 if test -n "$CONFIG_FILES"; then
17881 ac_cr=`echo X | tr X '\015'`
17882 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17883 # But we know of no other shell where ac_cr would be empty at this
17884 # point, so we can use a bashism as a fallback.
17885 if test "x$ac_cr" = x; then
17886 eval ac_cr=\$\'\\r\'
17888 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17889 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17890 ac_cs_awk_cr='\\r'
17891 else
17892 ac_cs_awk_cr=$ac_cr
17895 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17896 _ACEOF
17900 echo "cat >conf$$subs.awk <<_ACEOF" &&
17901 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17902 echo "_ACEOF"
17903 } >conf$$subs.sh ||
17904 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17905 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17906 ac_delim='%!_!# '
17907 for ac_last_try in false false false false false :; do
17908 . ./conf$$subs.sh ||
17909 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17911 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17912 if test $ac_delim_n = $ac_delim_num; then
17913 break
17914 elif $ac_last_try; then
17915 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17916 else
17917 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17919 done
17920 rm -f conf$$subs.sh
17922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17923 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17924 _ACEOF
17925 sed -n '
17927 s/^/S["/; s/!.*/"]=/
17930 s/^[^!]*!//
17931 :repl
17932 t repl
17933 s/'"$ac_delim"'$//
17934 t delim
17937 s/\(.\{148\}\)..*/\1/
17938 t more1
17939 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17942 b repl
17943 :more1
17944 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17947 s/.\{148\}//
17948 t nl
17949 :delim
17951 s/\(.\{148\}\)..*/\1/
17952 t more2
17953 s/["\\]/\\&/g; s/^/"/; s/$/"/
17956 :more2
17957 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17960 s/.\{148\}//
17961 t delim
17962 ' <conf$$subs.awk | sed '
17963 /^[^""]/{
17965 s/\n//
17967 ' >>$CONFIG_STATUS || ac_write_fail=1
17968 rm -f conf$$subs.awk
17969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17970 _ACAWK
17971 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17972 for (key in S) S_is_set[key] = 1
17973 FS = "\a"
17977 line = $ 0
17978 nfields = split(line, field, "@")
17979 substed = 0
17980 len = length(field[1])
17981 for (i = 2; i < nfields; i++) {
17982 key = field[i]
17983 keylen = length(key)
17984 if (S_is_set[key]) {
17985 value = S[key]
17986 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17987 len += length(value) + length(field[++i])
17988 substed = 1
17989 } else
17990 len += 1 + keylen
17993 print line
17996 _ACAWK
17997 _ACEOF
17998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17999 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18000 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18001 else
18003 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18004 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18005 _ACEOF
18007 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18008 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18009 # trailing colons and then remove the whole line if VPATH becomes empty
18010 # (actually we leave an empty line to preserve line numbers).
18011 if test "x$srcdir" = x.; then
18012 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18014 s///
18015 s/^/:/
18016 s/[ ]*$/:/
18017 s/:\$(srcdir):/:/g
18018 s/:\${srcdir}:/:/g
18019 s/:@srcdir@:/:/g
18020 s/^:*//
18021 s/:*$//
18023 s/\(=[ ]*\).*/\1/
18025 s/\n//
18026 s/^[^=]*=[ ]*$//
18030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18031 fi # test -n "$CONFIG_FILES"
18033 # Set up the scripts for CONFIG_HEADERS section.
18034 # No need to generate them if there are no CONFIG_HEADERS.
18035 # This happens for instance with `./config.status Makefile'.
18036 if test -n "$CONFIG_HEADERS"; then
18037 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18038 BEGIN {
18039 _ACEOF
18041 # Transform confdefs.h into an awk script `defines.awk', embedded as
18042 # here-document in config.status, that substitutes the proper values into
18043 # config.h.in to produce config.h.
18045 # Create a delimiter string that does not exist in confdefs.h, to ease
18046 # handling of long lines.
18047 ac_delim='%!_!# '
18048 for ac_last_try in false false :; do
18049 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18050 if test -z "$ac_tt"; then
18051 break
18052 elif $ac_last_try; then
18053 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18054 else
18055 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18057 done
18059 # For the awk script, D is an array of macro values keyed by name,
18060 # likewise P contains macro parameters if any. Preserve backslash
18061 # newline sequences.
18063 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18064 sed -n '
18065 s/.\{148\}/&'"$ac_delim"'/g
18066 t rset
18067 :rset
18068 s/^[ ]*#[ ]*define[ ][ ]*/ /
18069 t def
18071 :def
18072 s/\\$//
18073 t bsnl
18074 s/["\\]/\\&/g
18075 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18076 D["\1"]=" \3"/p
18077 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18079 :bsnl
18080 s/["\\]/\\&/g
18081 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18082 D["\1"]=" \3\\\\\\n"\\/p
18083 t cont
18084 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18085 t cont
18087 :cont
18089 s/.\{148\}/&'"$ac_delim"'/g
18090 t clear
18091 :clear
18092 s/\\$//
18093 t bsnlc
18094 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18096 :bsnlc
18097 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18098 b cont
18099 ' <confdefs.h | sed '
18100 s/'"$ac_delim"'/"\\\
18101 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18104 for (key in D) D_is_set[key] = 1
18105 FS = "\a"
18107 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18108 line = \$ 0
18109 split(line, arg, " ")
18110 if (arg[1] == "#") {
18111 defundef = arg[2]
18112 mac1 = arg[3]
18113 } else {
18114 defundef = substr(arg[1], 2)
18115 mac1 = arg[2]
18117 split(mac1, mac2, "(") #)
18118 macro = mac2[1]
18119 prefix = substr(line, 1, index(line, defundef) - 1)
18120 if (D_is_set[macro]) {
18121 # Preserve the white space surrounding the "#".
18122 print prefix "define", macro P[macro] D[macro]
18123 next
18124 } else {
18125 # Replace #undef with comments. This is necessary, for example,
18126 # in the case of _POSIX_SOURCE, which is predefined and required
18127 # on some systems where configure will not decide to define it.
18128 if (defundef == "undef") {
18129 print "/*", prefix defundef, macro, "*/"
18130 next
18134 { print }
18135 _ACAWK
18136 _ACEOF
18137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18138 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18139 fi # test -n "$CONFIG_HEADERS"
18142 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18143 shift
18144 for ac_tag
18146 case $ac_tag in
18147 :[FHLC]) ac_mode=$ac_tag; continue;;
18148 esac
18149 case $ac_mode$ac_tag in
18150 :[FHL]*:*);;
18151 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18152 :[FH]-) ac_tag=-:-;;
18153 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18154 esac
18155 ac_save_IFS=$IFS
18156 IFS=:
18157 set x $ac_tag
18158 IFS=$ac_save_IFS
18159 shift
18160 ac_file=$1
18161 shift
18163 case $ac_mode in
18164 :L) ac_source=$1;;
18165 :[FH])
18166 ac_file_inputs=
18167 for ac_f
18169 case $ac_f in
18170 -) ac_f="$ac_tmp/stdin";;
18171 *) # Look for the file first in the build tree, then in the source tree
18172 # (if the path is not absolute). The absolute path cannot be DOS-style,
18173 # because $ac_f cannot contain `:'.
18174 test -f "$ac_f" ||
18175 case $ac_f in
18176 [\\/$]*) false;;
18177 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18178 esac ||
18179 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18180 esac
18181 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18182 as_fn_append ac_file_inputs " '$ac_f'"
18183 done
18185 # Let's still pretend it is `configure' which instantiates (i.e., don't
18186 # use $as_me), people would be surprised to read:
18187 # /* config.h. Generated by config.status. */
18188 configure_input='Generated from '`
18189 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18190 `' by configure.'
18191 if test x"$ac_file" != x-; then
18192 configure_input="$ac_file. $configure_input"
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18194 $as_echo "$as_me: creating $ac_file" >&6;}
18196 # Neutralize special characters interpreted by sed in replacement strings.
18197 case $configure_input in #(
18198 *\&* | *\|* | *\\* )
18199 ac_sed_conf_input=`$as_echo "$configure_input" |
18200 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18201 *) ac_sed_conf_input=$configure_input;;
18202 esac
18204 case $ac_tag in
18205 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18206 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18207 esac
18209 esac
18211 ac_dir=`$as_dirname -- "$ac_file" ||
18212 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18213 X"$ac_file" : 'X\(//\)[^/]' \| \
18214 X"$ac_file" : 'X\(//\)$' \| \
18215 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18216 $as_echo X"$ac_file" |
18217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18218 s//\1/
18221 /^X\(\/\/\)[^/].*/{
18222 s//\1/
18225 /^X\(\/\/\)$/{
18226 s//\1/
18229 /^X\(\/\).*/{
18230 s//\1/
18233 s/.*/./; q'`
18234 as_dir="$ac_dir"; as_fn_mkdir_p
18235 ac_builddir=.
18237 case "$ac_dir" in
18238 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18240 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18241 # A ".." for each directory in $ac_dir_suffix.
18242 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18243 case $ac_top_builddir_sub in
18244 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18245 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18246 esac ;;
18247 esac
18248 ac_abs_top_builddir=$ac_pwd
18249 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18250 # for backward compatibility:
18251 ac_top_builddir=$ac_top_build_prefix
18253 case $srcdir in
18254 .) # We are building in place.
18255 ac_srcdir=.
18256 ac_top_srcdir=$ac_top_builddir_sub
18257 ac_abs_top_srcdir=$ac_pwd ;;
18258 [\\/]* | ?:[\\/]* ) # Absolute name.
18259 ac_srcdir=$srcdir$ac_dir_suffix;
18260 ac_top_srcdir=$srcdir
18261 ac_abs_top_srcdir=$srcdir ;;
18262 *) # Relative name.
18263 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18264 ac_top_srcdir=$ac_top_build_prefix$srcdir
18265 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18266 esac
18267 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18270 case $ac_mode in
18273 # CONFIG_FILE
18276 case $INSTALL in
18277 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18278 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18279 esac
18280 ac_MKDIR_P=$MKDIR_P
18281 case $MKDIR_P in
18282 [\\/$]* | ?:[\\/]* ) ;;
18283 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18284 esac
18285 _ACEOF
18287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18288 # If the template does not know about datarootdir, expand it.
18289 # FIXME: This hack should be removed a few years after 2.60.
18290 ac_datarootdir_hack=; ac_datarootdir_seen=
18291 ac_sed_dataroot='
18292 /datarootdir/ {
18296 /@datadir@/p
18297 /@docdir@/p
18298 /@infodir@/p
18299 /@localedir@/p
18300 /@mandir@/p'
18301 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18302 *datarootdir*) ac_datarootdir_seen=yes;;
18303 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18305 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18306 _ACEOF
18307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18308 ac_datarootdir_hack='
18309 s&@datadir@&$datadir&g
18310 s&@docdir@&$docdir&g
18311 s&@infodir@&$infodir&g
18312 s&@localedir@&$localedir&g
18313 s&@mandir@&$mandir&g
18314 s&\\\${datarootdir}&$datarootdir&g' ;;
18315 esac
18316 _ACEOF
18318 # Neutralize VPATH when `$srcdir' = `.'.
18319 # Shell code in configure.ac might set extrasub.
18320 # FIXME: do we really want to maintain this feature?
18321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18322 ac_sed_extra="$ac_vpsub
18323 $extrasub
18324 _ACEOF
18325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18327 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18328 s|@configure_input@|$ac_sed_conf_input|;t t
18329 s&@top_builddir@&$ac_top_builddir_sub&;t t
18330 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18331 s&@srcdir@&$ac_srcdir&;t t
18332 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18333 s&@top_srcdir@&$ac_top_srcdir&;t t
18334 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18335 s&@builddir@&$ac_builddir&;t t
18336 s&@abs_builddir@&$ac_abs_builddir&;t t
18337 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18338 s&@INSTALL@&$ac_INSTALL&;t t
18339 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18340 $ac_datarootdir_hack
18342 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18343 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18345 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18346 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18347 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18348 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18350 which seems to be undefined. Please make sure it is defined" >&5
18351 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18352 which seems to be undefined. Please make sure it is defined" >&2;}
18354 rm -f "$ac_tmp/stdin"
18355 case $ac_file in
18356 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18357 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18358 esac \
18359 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18363 # CONFIG_HEADER
18365 if test x"$ac_file" != x-; then
18367 $as_echo "/* $configure_input */" \
18368 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18369 } >"$ac_tmp/config.h" \
18370 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18371 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18373 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18374 else
18375 rm -f "$ac_file"
18376 mv "$ac_tmp/config.h" "$ac_file" \
18377 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18379 else
18380 $as_echo "/* $configure_input */" \
18381 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18382 || as_fn_error $? "could not create -" "$LINENO" 5
18384 # Compute "$ac_file"'s index in $config_headers.
18385 _am_arg="$ac_file"
18386 _am_stamp_count=1
18387 for _am_header in $config_headers :; do
18388 case $_am_header in
18389 $_am_arg | $_am_arg:* )
18390 break ;;
18392 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18393 esac
18394 done
18395 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18396 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18397 X"$_am_arg" : 'X\(//\)[^/]' \| \
18398 X"$_am_arg" : 'X\(//\)$' \| \
18399 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18400 $as_echo X"$_am_arg" |
18401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18402 s//\1/
18405 /^X\(\/\/\)[^/].*/{
18406 s//\1/
18409 /^X\(\/\/\)$/{
18410 s//\1/
18413 /^X\(\/\).*/{
18414 s//\1/
18417 s/.*/./; q'`/stamp-h$_am_stamp_count
18421 # CONFIG_LINK
18424 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18426 else
18427 # Prefer the file from the source tree if names are identical.
18428 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18429 ac_source=$srcdir/$ac_source
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18433 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18435 if test ! -r "$ac_source"; then
18436 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
18438 rm -f "$ac_file"
18440 # Try a relative symlink, then a hard link, then a copy.
18441 case $ac_source in
18442 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18443 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18444 esac
18445 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18446 ln "$ac_source" "$ac_file" 2>/dev/null ||
18447 cp -p "$ac_source" "$ac_file" ||
18448 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18451 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18452 $as_echo "$as_me: executing $ac_file commands" >&6;}
18454 esac
18457 case $ac_file$ac_mode in
18458 "default-1":C)
18459 # Only add multilib support code if we just rebuilt the top-level
18460 # Makefile.
18461 case " $CONFIG_FILES " in
18462 *" Makefile "*)
18463 ac_file=Makefile . ${multi_basedir}/config-ml.in
18465 esac ;;
18466 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18467 # Older Autoconf quotes --file arguments for eval, but not when files
18468 # are listed without --file. Let's play safe and only enable the eval
18469 # if we detect the quoting.
18470 case $CONFIG_FILES in
18471 *\'*) eval set x "$CONFIG_FILES" ;;
18472 *) set x $CONFIG_FILES ;;
18473 esac
18474 shift
18475 for mf
18477 # Strip MF so we end up with the name of the file.
18478 mf=`echo "$mf" | sed -e 's/:.*$//'`
18479 # Check whether this is an Automake generated Makefile or not.
18480 # We used to match only the files named 'Makefile.in', but
18481 # some people rename them; so instead we look at the file content.
18482 # Grep'ing the first line is not enough: some people post-process
18483 # each Makefile.in and add a new line on top of each file to say so.
18484 # Grep'ing the whole file is not good either: AIX grep has a line
18485 # limit of 2048, but all sed's we know have understand at least 4000.
18486 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18487 dirpart=`$as_dirname -- "$mf" ||
18488 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18489 X"$mf" : 'X\(//\)[^/]' \| \
18490 X"$mf" : 'X\(//\)$' \| \
18491 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18492 $as_echo X"$mf" |
18493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18494 s//\1/
18497 /^X\(\/\/\)[^/].*/{
18498 s//\1/
18501 /^X\(\/\/\)$/{
18502 s//\1/
18505 /^X\(\/\).*/{
18506 s//\1/
18509 s/.*/./; q'`
18510 else
18511 continue
18513 # Extract the definition of DEPDIR, am__include, and am__quote
18514 # from the Makefile without running 'make'.
18515 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18516 test -z "$DEPDIR" && continue
18517 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18518 test -z "$am__include" && continue
18519 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18520 # Find all dependency output files, they are included files with
18521 # $(DEPDIR) in their names. We invoke sed twice because it is the
18522 # simplest approach to changing $(DEPDIR) to its actual value in the
18523 # expansion.
18524 for file in `sed -n "
18525 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18526 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18527 # Make sure the directory exists.
18528 test -f "$dirpart/$file" && continue
18529 fdir=`$as_dirname -- "$file" ||
18530 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18531 X"$file" : 'X\(//\)[^/]' \| \
18532 X"$file" : 'X\(//\)$' \| \
18533 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18534 $as_echo X"$file" |
18535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18536 s//\1/
18539 /^X\(\/\/\)[^/].*/{
18540 s//\1/
18543 /^X\(\/\/\)$/{
18544 s//\1/
18547 /^X\(\/\).*/{
18548 s//\1/
18551 s/.*/./; q'`
18552 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18553 # echo "creating $dirpart/$file"
18554 echo '# dummy' > "$dirpart/$file"
18555 done
18556 done
18559 "libtool":C)
18561 # See if we are running on zsh, and set the options which allow our
18562 # commands through without removal of \ escapes.
18563 if test -n "${ZSH_VERSION+set}" ; then
18564 setopt NO_GLOB_SUBST
18567 cfgfile="${ofile}T"
18568 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18569 $RM "$cfgfile"
18571 cat <<_LT_EOF >> "$cfgfile"
18572 #! $SHELL
18574 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18575 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18576 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18577 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18579 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18580 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18581 # Written by Gordon Matzigkeit, 1996
18583 # This file is part of GNU Libtool.
18585 # GNU Libtool is free software; you can redistribute it and/or
18586 # modify it under the terms of the GNU General Public License as
18587 # published by the Free Software Foundation; either version 2 of
18588 # the License, or (at your option) any later version.
18590 # As a special exception to the GNU General Public License,
18591 # if you distribute this file as part of a program or library that
18592 # is built using GNU Libtool, you may include this file under the
18593 # same distribution terms that you use for the rest of that program.
18595 # GNU Libtool is distributed in the hope that it will be useful,
18596 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18597 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18598 # GNU General Public License for more details.
18600 # You should have received a copy of the GNU General Public License
18601 # along with GNU Libtool; see the file COPYING. If not, a copy
18602 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18603 # obtained by writing to the Free Software Foundation, Inc.,
18604 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18607 # The names of the tagged configurations supported by this script.
18608 available_tags="CXX "
18610 # ### BEGIN LIBTOOL CONFIG
18612 # Which release of libtool.m4 was used?
18613 macro_version=$macro_version
18614 macro_revision=$macro_revision
18616 # Whether or not to build shared libraries.
18617 build_libtool_libs=$enable_shared
18619 # Whether or not to build static libraries.
18620 build_old_libs=$enable_static
18622 # What type of objects to build.
18623 pic_mode=$pic_mode
18625 # Whether or not to optimize for fast installation.
18626 fast_install=$enable_fast_install
18628 # Shell to use when invoking shell scripts.
18629 SHELL=$lt_SHELL
18631 # An echo program that protects backslashes.
18632 ECHO=$lt_ECHO
18634 # The host system.
18635 host_alias=$host_alias
18636 host=$host
18637 host_os=$host_os
18639 # The build system.
18640 build_alias=$build_alias
18641 build=$build
18642 build_os=$build_os
18644 # A sed program that does not truncate output.
18645 SED=$lt_SED
18647 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18648 Xsed="\$SED -e 1s/^X//"
18650 # A grep program that handles long lines.
18651 GREP=$lt_GREP
18653 # An ERE matcher.
18654 EGREP=$lt_EGREP
18656 # A literal string matcher.
18657 FGREP=$lt_FGREP
18659 # A BSD- or MS-compatible name lister.
18660 NM=$lt_NM
18662 # Whether we need soft or hard links.
18663 LN_S=$lt_LN_S
18665 # What is the maximum length of a command?
18666 max_cmd_len=$max_cmd_len
18668 # Object file suffix (normally "o").
18669 objext=$ac_objext
18671 # Executable file suffix (normally "").
18672 exeext=$exeext
18674 # whether the shell understands "unset".
18675 lt_unset=$lt_unset
18677 # turn spaces into newlines.
18678 SP2NL=$lt_lt_SP2NL
18680 # turn newlines into spaces.
18681 NL2SP=$lt_lt_NL2SP
18683 # An object symbol dumper.
18684 OBJDUMP=$lt_OBJDUMP
18686 # Method to check whether dependent libraries are shared objects.
18687 deplibs_check_method=$lt_deplibs_check_method
18689 # Command to use when deplibs_check_method == "file_magic".
18690 file_magic_cmd=$lt_file_magic_cmd
18692 # The archiver.
18693 AR=$lt_AR
18694 AR_FLAGS=$lt_AR_FLAGS
18696 # A symbol stripping program.
18697 STRIP=$lt_STRIP
18699 # Commands used to install an old-style archive.
18700 RANLIB=$lt_RANLIB
18701 old_postinstall_cmds=$lt_old_postinstall_cmds
18702 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18704 # Whether to use a lock for old archive extraction.
18705 lock_old_archive_extraction=$lock_old_archive_extraction
18707 # A C compiler.
18708 LTCC=$lt_CC
18710 # LTCC compiler flags.
18711 LTCFLAGS=$lt_CFLAGS
18713 # Take the output of nm and produce a listing of raw symbols and C names.
18714 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18716 # Transform the output of nm in a proper C declaration.
18717 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18719 # Transform the output of nm in a C name address pair.
18720 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18722 # Transform the output of nm in a C name address pair when lib prefix is needed.
18723 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18725 # The name of the directory that contains temporary libtool files.
18726 objdir=$objdir
18728 # Used to examine libraries when file_magic_cmd begins with "file".
18729 MAGIC_CMD=$MAGIC_CMD
18731 # Must we lock files when doing compilation?
18732 need_locks=$lt_need_locks
18734 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18735 DSYMUTIL=$lt_DSYMUTIL
18737 # Tool to change global to local symbols on Mac OS X.
18738 NMEDIT=$lt_NMEDIT
18740 # Tool to manipulate fat objects and archives on Mac OS X.
18741 LIPO=$lt_LIPO
18743 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18744 OTOOL=$lt_OTOOL
18746 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18747 OTOOL64=$lt_OTOOL64
18749 # Old archive suffix (normally "a").
18750 libext=$libext
18752 # Shared library suffix (normally ".so").
18753 shrext_cmds=$lt_shrext_cmds
18755 # The commands to extract the exported symbol list from a shared archive.
18756 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18758 # Variables whose values should be saved in libtool wrapper scripts and
18759 # restored at link time.
18760 variables_saved_for_relink=$lt_variables_saved_for_relink
18762 # Do we need the "lib" prefix for modules?
18763 need_lib_prefix=$need_lib_prefix
18765 # Do we need a version for libraries?
18766 need_version=$need_version
18768 # Library versioning type.
18769 version_type=$version_type
18771 # Shared library runtime path variable.
18772 runpath_var=$runpath_var
18774 # Shared library path variable.
18775 shlibpath_var=$shlibpath_var
18777 # Is shlibpath searched before the hard-coded library search path?
18778 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18780 # Format of library name prefix.
18781 libname_spec=$lt_libname_spec
18783 # List of archive names. First name is the real one, the rest are links.
18784 # The last name is the one that the linker finds with -lNAME
18785 library_names_spec=$lt_library_names_spec
18787 # The coded name of the library, if different from the real name.
18788 soname_spec=$lt_soname_spec
18790 # Permission mode override for installation of shared libraries.
18791 install_override_mode=$lt_install_override_mode
18793 # Command to use after installation of a shared archive.
18794 postinstall_cmds=$lt_postinstall_cmds
18796 # Command to use after uninstallation of a shared archive.
18797 postuninstall_cmds=$lt_postuninstall_cmds
18799 # Commands used to finish a libtool library installation in a directory.
18800 finish_cmds=$lt_finish_cmds
18802 # As "finish_cmds", except a single script fragment to be evaled but
18803 # not shown.
18804 finish_eval=$lt_finish_eval
18806 # Whether we should hardcode library paths into libraries.
18807 hardcode_into_libs=$hardcode_into_libs
18809 # Compile-time system search path for libraries.
18810 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18812 # Run-time system search path for libraries.
18813 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18815 # Whether dlopen is supported.
18816 dlopen_support=$enable_dlopen
18818 # Whether dlopen of programs is supported.
18819 dlopen_self=$enable_dlopen_self
18821 # Whether dlopen of statically linked programs is supported.
18822 dlopen_self_static=$enable_dlopen_self_static
18824 # Commands to strip libraries.
18825 old_striplib=$lt_old_striplib
18826 striplib=$lt_striplib
18829 # The linker used to build libraries.
18830 LD=$lt_LD
18832 # How to create reloadable object files.
18833 reload_flag=$lt_reload_flag
18834 reload_cmds=$lt_reload_cmds
18836 # Commands used to build an old-style archive.
18837 old_archive_cmds=$lt_old_archive_cmds
18839 # A language specific compiler.
18840 CC=$lt_compiler
18842 # Is the compiler the GNU compiler?
18843 with_gcc=$GCC
18845 # Compiler flag to turn off builtin functions.
18846 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18848 # How to pass a linker flag through the compiler.
18849 wl=$lt_lt_prog_compiler_wl
18851 # Additional compiler flags for building library objects.
18852 pic_flag=$lt_lt_prog_compiler_pic
18854 # Compiler flag to prevent dynamic linking.
18855 link_static_flag=$lt_lt_prog_compiler_static
18857 # Does compiler simultaneously support -c and -o options?
18858 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18860 # Whether or not to add -lc for building shared libraries.
18861 build_libtool_need_lc=$archive_cmds_need_lc
18863 # Whether or not to disallow shared libs when runtime libs are static.
18864 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18866 # Compiler flag to allow reflexive dlopens.
18867 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18869 # Compiler flag to generate shared objects directly from archives.
18870 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18872 # Whether the compiler copes with passing no objects directly.
18873 compiler_needs_object=$lt_compiler_needs_object
18875 # Create an old-style archive from a shared archive.
18876 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18878 # Create a temporary old-style archive to link instead of a shared archive.
18879 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18881 # Commands used to build a shared archive.
18882 archive_cmds=$lt_archive_cmds
18883 archive_expsym_cmds=$lt_archive_expsym_cmds
18885 # Commands used to build a loadable module if different from building
18886 # a shared archive.
18887 module_cmds=$lt_module_cmds
18888 module_expsym_cmds=$lt_module_expsym_cmds
18890 # Whether we are building with GNU ld or not.
18891 with_gnu_ld=$lt_with_gnu_ld
18893 # Flag that allows shared libraries with undefined symbols to be built.
18894 allow_undefined_flag=$lt_allow_undefined_flag
18896 # Flag that enforces no undefined symbols.
18897 no_undefined_flag=$lt_no_undefined_flag
18899 # Flag to hardcode \$libdir into a binary during linking.
18900 # This must work even if \$libdir does not exist
18901 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18903 # If ld is used when linking, flag to hardcode \$libdir into a binary
18904 # during linking. This must work even if \$libdir does not exist.
18905 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18907 # Whether we need a single "-rpath" flag with a separated argument.
18908 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18910 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18911 # DIR into the resulting binary.
18912 hardcode_direct=$hardcode_direct
18914 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18915 # DIR into the resulting binary and the resulting library dependency is
18916 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18917 # library is relocated.
18918 hardcode_direct_absolute=$hardcode_direct_absolute
18920 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18921 # into the resulting binary.
18922 hardcode_minus_L=$hardcode_minus_L
18924 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18925 # into the resulting binary.
18926 hardcode_shlibpath_var=$hardcode_shlibpath_var
18928 # Set to "yes" if building a shared library automatically hardcodes DIR
18929 # into the library and all subsequent libraries and executables linked
18930 # against it.
18931 hardcode_automatic=$hardcode_automatic
18933 # Set to yes if linker adds runtime paths of dependent libraries
18934 # to runtime path list.
18935 inherit_rpath=$inherit_rpath
18937 # Whether libtool must link a program against all its dependency libraries.
18938 link_all_deplibs=$link_all_deplibs
18940 # Fix the shell variable \$srcfile for the compiler.
18941 fix_srcfile_path=$lt_fix_srcfile_path
18943 # Set to "yes" if exported symbols are required.
18944 always_export_symbols=$always_export_symbols
18946 # The commands to list exported symbols.
18947 export_symbols_cmds=$lt_export_symbols_cmds
18949 # Symbols that should not be listed in the preloaded symbols.
18950 exclude_expsyms=$lt_exclude_expsyms
18952 # Symbols that must always be exported.
18953 include_expsyms=$lt_include_expsyms
18955 # Commands necessary for linking programs (against libraries) with templates.
18956 prelink_cmds=$lt_prelink_cmds
18958 # Specify filename containing input files.
18959 file_list_spec=$lt_file_list_spec
18961 # How to hardcode a shared library path into an executable.
18962 hardcode_action=$hardcode_action
18964 # The directories searched by this compiler when creating a shared library.
18965 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18967 # Dependencies to place before and after the objects being linked to
18968 # create a shared library.
18969 predep_objects=$lt_predep_objects
18970 postdep_objects=$lt_postdep_objects
18971 predeps=$lt_predeps
18972 postdeps=$lt_postdeps
18974 # The library search path used internally by the compiler when linking
18975 # a shared library.
18976 compiler_lib_search_path=$lt_compiler_lib_search_path
18978 # ### END LIBTOOL CONFIG
18980 _LT_EOF
18982 case $host_os in
18983 aix3*)
18984 cat <<\_LT_EOF >> "$cfgfile"
18985 # AIX sometimes has problems with the GCC collect2 program. For some
18986 # reason, if we set the COLLECT_NAMES environment variable, the problems
18987 # vanish in a puff of smoke.
18988 if test "X${COLLECT_NAMES+set}" != Xset; then
18989 COLLECT_NAMES=
18990 export COLLECT_NAMES
18992 _LT_EOF
18994 esac
18997 ltmain="$ac_aux_dir/ltmain.sh"
19000 # We use sed instead of cat because bash on DJGPP gets confused if
19001 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19002 # text mode, it properly converts lines to CR/LF. This bash problem
19003 # is reportedly fixed, but why not run on old versions too?
19004 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19005 || (rm -f "$cfgfile"; exit 1)
19007 case $xsi_shell in
19008 yes)
19009 cat << \_LT_EOF >> "$cfgfile"
19011 # func_dirname file append nondir_replacement
19012 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19013 # otherwise set result to NONDIR_REPLACEMENT.
19014 func_dirname ()
19016 case ${1} in
19017 */*) func_dirname_result="${1%/*}${2}" ;;
19018 * ) func_dirname_result="${3}" ;;
19019 esac
19022 # func_basename file
19023 func_basename ()
19025 func_basename_result="${1##*/}"
19028 # func_dirname_and_basename file append nondir_replacement
19029 # perform func_basename and func_dirname in a single function
19030 # call:
19031 # dirname: Compute the dirname of FILE. If nonempty,
19032 # add APPEND to the result, otherwise set result
19033 # to NONDIR_REPLACEMENT.
19034 # value returned in "$func_dirname_result"
19035 # basename: Compute filename of FILE.
19036 # value retuned in "$func_basename_result"
19037 # Implementation must be kept synchronized with func_dirname
19038 # and func_basename. For efficiency, we do not delegate to
19039 # those functions but instead duplicate the functionality here.
19040 func_dirname_and_basename ()
19042 case ${1} in
19043 */*) func_dirname_result="${1%/*}${2}" ;;
19044 * ) func_dirname_result="${3}" ;;
19045 esac
19046 func_basename_result="${1##*/}"
19049 # func_stripname prefix suffix name
19050 # strip PREFIX and SUFFIX off of NAME.
19051 # PREFIX and SUFFIX must not contain globbing or regex special
19052 # characters, hashes, percent signs, but SUFFIX may contain a leading
19053 # dot (in which case that matches only a dot).
19054 func_stripname ()
19056 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19057 # positional parameters, so assign one to ordinary parameter first.
19058 func_stripname_result=${3}
19059 func_stripname_result=${func_stripname_result#"${1}"}
19060 func_stripname_result=${func_stripname_result%"${2}"}
19063 # func_opt_split
19064 func_opt_split ()
19066 func_opt_split_opt=${1%%=*}
19067 func_opt_split_arg=${1#*=}
19070 # func_lo2o object
19071 func_lo2o ()
19073 case ${1} in
19074 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19075 *) func_lo2o_result=${1} ;;
19076 esac
19079 # func_xform libobj-or-source
19080 func_xform ()
19082 func_xform_result=${1%.*}.lo
19085 # func_arith arithmetic-term...
19086 func_arith ()
19088 func_arith_result=$(( $* ))
19091 # func_len string
19092 # STRING may not start with a hyphen.
19093 func_len ()
19095 func_len_result=${#1}
19098 _LT_EOF
19100 *) # Bourne compatible functions.
19101 cat << \_LT_EOF >> "$cfgfile"
19103 # func_dirname file append nondir_replacement
19104 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19105 # otherwise set result to NONDIR_REPLACEMENT.
19106 func_dirname ()
19108 # Extract subdirectory from the argument.
19109 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19110 if test "X$func_dirname_result" = "X${1}"; then
19111 func_dirname_result="${3}"
19112 else
19113 func_dirname_result="$func_dirname_result${2}"
19117 # func_basename file
19118 func_basename ()
19120 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19124 # func_stripname prefix suffix name
19125 # strip PREFIX and SUFFIX off of NAME.
19126 # PREFIX and SUFFIX must not contain globbing or regex special
19127 # characters, hashes, percent signs, but SUFFIX may contain a leading
19128 # dot (in which case that matches only a dot).
19129 # func_strip_suffix prefix name
19130 func_stripname ()
19132 case ${2} in
19133 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19134 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19135 esac
19138 # sed scripts:
19139 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19140 my_sed_long_arg='1s/^-[^=]*=//'
19142 # func_opt_split
19143 func_opt_split ()
19145 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19146 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19149 # func_lo2o object
19150 func_lo2o ()
19152 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19155 # func_xform libobj-or-source
19156 func_xform ()
19158 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19161 # func_arith arithmetic-term...
19162 func_arith ()
19164 func_arith_result=`expr "$@"`
19167 # func_len string
19168 # STRING may not start with a hyphen.
19169 func_len ()
19171 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19174 _LT_EOF
19175 esac
19177 case $lt_shell_append in
19178 yes)
19179 cat << \_LT_EOF >> "$cfgfile"
19181 # func_append var value
19182 # Append VALUE to the end of shell variable VAR.
19183 func_append ()
19185 eval "$1+=\$2"
19187 _LT_EOF
19190 cat << \_LT_EOF >> "$cfgfile"
19192 # func_append var value
19193 # Append VALUE to the end of shell variable VAR.
19194 func_append ()
19196 eval "$1=\$$1\$2"
19199 _LT_EOF
19201 esac
19204 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19205 || (rm -f "$cfgfile"; exit 1)
19207 mv -f "$cfgfile" "$ofile" ||
19208 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19209 chmod +x "$ofile"
19212 cat <<_LT_EOF >> "$ofile"
19214 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19216 # The linker used to build libraries.
19217 LD=$lt_LD_CXX
19219 # How to create reloadable object files.
19220 reload_flag=$lt_reload_flag_CXX
19221 reload_cmds=$lt_reload_cmds_CXX
19223 # Commands used to build an old-style archive.
19224 old_archive_cmds=$lt_old_archive_cmds_CXX
19226 # A language specific compiler.
19227 CC=$lt_compiler_CXX
19229 # Is the compiler the GNU compiler?
19230 with_gcc=$GCC_CXX
19232 # Compiler flag to turn off builtin functions.
19233 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19235 # How to pass a linker flag through the compiler.
19236 wl=$lt_lt_prog_compiler_wl_CXX
19238 # Additional compiler flags for building library objects.
19239 pic_flag=$lt_lt_prog_compiler_pic_CXX
19241 # Compiler flag to prevent dynamic linking.
19242 link_static_flag=$lt_lt_prog_compiler_static_CXX
19244 # Does compiler simultaneously support -c and -o options?
19245 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19247 # Whether or not to add -lc for building shared libraries.
19248 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19250 # Whether or not to disallow shared libs when runtime libs are static.
19251 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19253 # Compiler flag to allow reflexive dlopens.
19254 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19256 # Compiler flag to generate shared objects directly from archives.
19257 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19259 # Whether the compiler copes with passing no objects directly.
19260 compiler_needs_object=$lt_compiler_needs_object_CXX
19262 # Create an old-style archive from a shared archive.
19263 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19265 # Create a temporary old-style archive to link instead of a shared archive.
19266 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19268 # Commands used to build a shared archive.
19269 archive_cmds=$lt_archive_cmds_CXX
19270 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19272 # Commands used to build a loadable module if different from building
19273 # a shared archive.
19274 module_cmds=$lt_module_cmds_CXX
19275 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19277 # Whether we are building with GNU ld or not.
19278 with_gnu_ld=$lt_with_gnu_ld_CXX
19280 # Flag that allows shared libraries with undefined symbols to be built.
19281 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19283 # Flag that enforces no undefined symbols.
19284 no_undefined_flag=$lt_no_undefined_flag_CXX
19286 # Flag to hardcode \$libdir into a binary during linking.
19287 # This must work even if \$libdir does not exist
19288 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19290 # If ld is used when linking, flag to hardcode \$libdir into a binary
19291 # during linking. This must work even if \$libdir does not exist.
19292 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19294 # Whether we need a single "-rpath" flag with a separated argument.
19295 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19297 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19298 # DIR into the resulting binary.
19299 hardcode_direct=$hardcode_direct_CXX
19301 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19302 # DIR into the resulting binary and the resulting library dependency is
19303 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19304 # library is relocated.
19305 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19307 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19308 # into the resulting binary.
19309 hardcode_minus_L=$hardcode_minus_L_CXX
19311 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19312 # into the resulting binary.
19313 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19315 # Set to "yes" if building a shared library automatically hardcodes DIR
19316 # into the library and all subsequent libraries and executables linked
19317 # against it.
19318 hardcode_automatic=$hardcode_automatic_CXX
19320 # Set to yes if linker adds runtime paths of dependent libraries
19321 # to runtime path list.
19322 inherit_rpath=$inherit_rpath_CXX
19324 # Whether libtool must link a program against all its dependency libraries.
19325 link_all_deplibs=$link_all_deplibs_CXX
19327 # Fix the shell variable \$srcfile for the compiler.
19328 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19330 # Set to "yes" if exported symbols are required.
19331 always_export_symbols=$always_export_symbols_CXX
19333 # The commands to list exported symbols.
19334 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19336 # Symbols that should not be listed in the preloaded symbols.
19337 exclude_expsyms=$lt_exclude_expsyms_CXX
19339 # Symbols that must always be exported.
19340 include_expsyms=$lt_include_expsyms_CXX
19342 # Commands necessary for linking programs (against libraries) with templates.
19343 prelink_cmds=$lt_prelink_cmds_CXX
19345 # Specify filename containing input files.
19346 file_list_spec=$lt_file_list_spec_CXX
19348 # How to hardcode a shared library path into an executable.
19349 hardcode_action=$hardcode_action_CXX
19351 # The directories searched by this compiler when creating a shared library.
19352 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19354 # Dependencies to place before and after the objects being linked to
19355 # create a shared library.
19356 predep_objects=$lt_predep_objects_CXX
19357 postdep_objects=$lt_postdep_objects_CXX
19358 predeps=$lt_predeps_CXX
19359 postdeps=$lt_postdeps_CXX
19361 # The library search path used internally by the compiler when linking
19362 # a shared library.
19363 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19365 # ### END LIBTOOL TAG CONFIG: CXX
19366 _LT_EOF
19369 "include":C) test -d include || mkdir include ;;
19370 "src":C)
19371 test -d src || mkdir src
19372 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
19375 esac
19376 done # for ac_tag
19379 as_fn_exit 0
19380 _ACEOF
19381 ac_clean_files=$ac_clean_files_save
19383 test $ac_write_fail = 0 ||
19384 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19387 # configure is writing to config.log, and then calls config.status.
19388 # config.status does its own redirection, appending to config.log.
19389 # Unfortunately, on DOS this fails, as config.log is still kept open
19390 # by configure, so config.status won't be able to write to it; its
19391 # output is simply discarded. So we exec the FD to /dev/null,
19392 # effectively closing config.log, so it can be properly (re)opened and
19393 # appended to by config.status. When coming back to configure, we
19394 # need to make the FD available again.
19395 if test "$no_create" != yes; then
19396 ac_cs_success=:
19397 ac_config_status_args=
19398 test "$silent" = yes &&
19399 ac_config_status_args="$ac_config_status_args --quiet"
19400 exec 5>/dev/null
19401 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19402 exec 5>>config.log
19403 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19404 # would make configure fail if this is the last instruction.
19405 $ac_cs_success || as_fn_exit 1
19407 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19409 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}