re PR target/86753 (gcc.target/aarch64/sve/vcond_[45].c fail after recent combine...
[official-gcc.git] / libffi / configure
blob77e91a1ef6ff1d5b84c984c82bcf5289e1cc7728
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 enable_symvers
817 with_gcc_major_version_only
819 ac_precious_vars='build_alias
820 host_alias
821 target_alias
822 CCAS
823 CCASFLAGS
825 CPPFLAGS
826 CXXCPP'
829 # Initialize some variables set by options.
830 ac_init_help=
831 ac_init_version=false
832 ac_unrecognized_opts=
833 ac_unrecognized_sep=
834 # The variables have the same names as the options, with
835 # dashes changed to underlines.
836 cache_file=/dev/null
837 exec_prefix=NONE
838 no_create=
839 no_recursion=
840 prefix=NONE
841 program_prefix=NONE
842 program_suffix=NONE
843 program_transform_name=s,x,x,
844 silent=
845 site=
846 srcdir=
847 verbose=
848 x_includes=NONE
849 x_libraries=NONE
851 # Installation directory options.
852 # These are left unexpanded so users can "make install exec_prefix=/foo"
853 # and all the variables that are supposed to be based on exec_prefix
854 # by default will actually change.
855 # Use braces instead of parens because sh, perl, etc. also accept them.
856 # (The list follows the same order as the GNU Coding Standards.)
857 bindir='${exec_prefix}/bin'
858 sbindir='${exec_prefix}/sbin'
859 libexecdir='${exec_prefix}/libexec'
860 datarootdir='${prefix}/share'
861 datadir='${datarootdir}'
862 sysconfdir='${prefix}/etc'
863 sharedstatedir='${prefix}/com'
864 localstatedir='${prefix}/var'
865 includedir='${prefix}/include'
866 oldincludedir='/usr/include'
867 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
868 infodir='${datarootdir}/info'
869 htmldir='${docdir}'
870 dvidir='${docdir}'
871 pdfdir='${docdir}'
872 psdir='${docdir}'
873 libdir='${exec_prefix}/lib'
874 localedir='${datarootdir}/locale'
875 mandir='${datarootdir}/man'
877 ac_prev=
878 ac_dashdash=
879 for ac_option
881 # If the previous option needs an argument, assign it.
882 if test -n "$ac_prev"; then
883 eval $ac_prev=\$ac_option
884 ac_prev=
885 continue
888 case $ac_option in
889 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890 *=) ac_optarg= ;;
891 *) ac_optarg=yes ;;
892 esac
894 # Accept the important Cygnus configure options, so we can diagnose typos.
896 case $ac_dashdash$ac_option in
898 ac_dashdash=yes ;;
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 ac_prev=bindir ;;
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903 bindir=$ac_optarg ;;
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
917 --config-cache | -C)
918 cache_file=config.cache ;;
920 -datadir | --datadir | --datadi | --datad)
921 ac_prev=datadir ;;
922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
923 datadir=$ac_optarg ;;
925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
932 -disable-* | --disable-*)
933 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error $? "invalid feature name: $ac_useropt"
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
941 "enable_$ac_useropt"
942 "*) ;;
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
945 esac
946 eval enable_$ac_useropt=no ;;
948 -docdir | --docdir | --docdi | --doc | --do)
949 ac_prev=docdir ;;
950 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
951 docdir=$ac_optarg ;;
953 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
954 ac_prev=dvidir ;;
955 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
956 dvidir=$ac_optarg ;;
958 -enable-* | --enable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error $? "invalid feature name: $ac_useropt"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
967 "enable_$ac_useropt"
968 "*) ;;
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
971 esac
972 eval enable_$ac_useropt=\$ac_optarg ;;
974 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
975 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
976 | --exec | --exe | --ex)
977 ac_prev=exec_prefix ;;
978 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
979 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
980 | --exec=* | --exe=* | --ex=*)
981 exec_prefix=$ac_optarg ;;
983 -gas | --gas | --ga | --g)
984 # Obsolete; use --with-gas.
985 with_gas=yes ;;
987 -help | --help | --hel | --he | -h)
988 ac_init_help=long ;;
989 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
990 ac_init_help=recursive ;;
991 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
992 ac_init_help=short ;;
994 -host | --host | --hos | --ho)
995 ac_prev=host_alias ;;
996 -host=* | --host=* | --hos=* | --ho=*)
997 host_alias=$ac_optarg ;;
999 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1000 ac_prev=htmldir ;;
1001 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1002 | --ht=*)
1003 htmldir=$ac_optarg ;;
1005 -includedir | --includedir | --includedi | --included | --include \
1006 | --includ | --inclu | --incl | --inc)
1007 ac_prev=includedir ;;
1008 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1009 | --includ=* | --inclu=* | --incl=* | --inc=*)
1010 includedir=$ac_optarg ;;
1012 -infodir | --infodir | --infodi | --infod | --info | --inf)
1013 ac_prev=infodir ;;
1014 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1015 infodir=$ac_optarg ;;
1017 -libdir | --libdir | --libdi | --libd)
1018 ac_prev=libdir ;;
1019 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1020 libdir=$ac_optarg ;;
1022 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1023 | --libexe | --libex | --libe)
1024 ac_prev=libexecdir ;;
1025 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1026 | --libexe=* | --libex=* | --libe=*)
1027 libexecdir=$ac_optarg ;;
1029 -localedir | --localedir | --localedi | --localed | --locale)
1030 ac_prev=localedir ;;
1031 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1032 localedir=$ac_optarg ;;
1034 -localstatedir | --localstatedir | --localstatedi | --localstated \
1035 | --localstate | --localstat | --localsta | --localst | --locals)
1036 ac_prev=localstatedir ;;
1037 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1038 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1039 localstatedir=$ac_optarg ;;
1041 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1042 ac_prev=mandir ;;
1043 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1044 mandir=$ac_optarg ;;
1046 -nfp | --nfp | --nf)
1047 # Obsolete; use --without-fp.
1048 with_fp=no ;;
1050 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1051 | --no-cr | --no-c | -n)
1052 no_create=yes ;;
1054 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1055 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1056 no_recursion=yes ;;
1058 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1059 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1060 | --oldin | --oldi | --old | --ol | --o)
1061 ac_prev=oldincludedir ;;
1062 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1063 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1064 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1065 oldincludedir=$ac_optarg ;;
1067 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1068 ac_prev=prefix ;;
1069 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1070 prefix=$ac_optarg ;;
1072 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1073 | --program-pre | --program-pr | --program-p)
1074 ac_prev=program_prefix ;;
1075 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1076 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1077 program_prefix=$ac_optarg ;;
1079 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1080 | --program-suf | --program-su | --program-s)
1081 ac_prev=program_suffix ;;
1082 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1083 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1084 program_suffix=$ac_optarg ;;
1086 -program-transform-name | --program-transform-name \
1087 | --program-transform-nam | --program-transform-na \
1088 | --program-transform-n | --program-transform- \
1089 | --program-transform | --program-transfor \
1090 | --program-transfo | --program-transf \
1091 | --program-trans | --program-tran \
1092 | --progr-tra | --program-tr | --program-t)
1093 ac_prev=program_transform_name ;;
1094 -program-transform-name=* | --program-transform-name=* \
1095 | --program-transform-nam=* | --program-transform-na=* \
1096 | --program-transform-n=* | --program-transform-=* \
1097 | --program-transform=* | --program-transfor=* \
1098 | --program-transfo=* | --program-transf=* \
1099 | --program-trans=* | --program-tran=* \
1100 | --progr-tra=* | --program-tr=* | --program-t=*)
1101 program_transform_name=$ac_optarg ;;
1103 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1104 ac_prev=pdfdir ;;
1105 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1106 pdfdir=$ac_optarg ;;
1108 -psdir | --psdir | --psdi | --psd | --ps)
1109 ac_prev=psdir ;;
1110 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1111 psdir=$ac_optarg ;;
1113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1114 | -silent | --silent | --silen | --sile | --sil)
1115 silent=yes ;;
1117 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1118 ac_prev=sbindir ;;
1119 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1120 | --sbi=* | --sb=*)
1121 sbindir=$ac_optarg ;;
1123 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1124 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1125 | --sharedst | --shareds | --shared | --share | --shar \
1126 | --sha | --sh)
1127 ac_prev=sharedstatedir ;;
1128 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1129 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1130 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1131 | --sha=* | --sh=*)
1132 sharedstatedir=$ac_optarg ;;
1134 -site | --site | --sit)
1135 ac_prev=site ;;
1136 -site=* | --site=* | --sit=*)
1137 site=$ac_optarg ;;
1139 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1140 ac_prev=srcdir ;;
1141 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1142 srcdir=$ac_optarg ;;
1144 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1145 | --syscon | --sysco | --sysc | --sys | --sy)
1146 ac_prev=sysconfdir ;;
1147 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1148 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1149 sysconfdir=$ac_optarg ;;
1151 -target | --target | --targe | --targ | --tar | --ta | --t)
1152 ac_prev=target_alias ;;
1153 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1154 target_alias=$ac_optarg ;;
1156 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1157 verbose=yes ;;
1159 -version | --version | --versio | --versi | --vers | -V)
1160 ac_init_version=: ;;
1162 -with-* | --with-*)
1163 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 as_fn_error $? "invalid package name: $ac_useropt"
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1171 "with_$ac_useropt"
1172 "*) ;;
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
1175 esac
1176 eval with_$ac_useropt=\$ac_optarg ;;
1178 -without-* | --without-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error $? "invalid package name: $ac_useropt"
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1187 "with_$ac_useropt"
1188 "*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1191 esac
1192 eval with_$ac_useropt=no ;;
1194 --x)
1195 # Obsolete; use --with-x.
1196 with_x=yes ;;
1198 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1199 | --x-incl | --x-inc | --x-in | --x-i)
1200 ac_prev=x_includes ;;
1201 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1202 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1203 x_includes=$ac_optarg ;;
1205 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1206 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1207 ac_prev=x_libraries ;;
1208 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1209 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1210 x_libraries=$ac_optarg ;;
1212 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1213 Try \`$0 --help' for more information"
1216 *=*)
1217 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218 # Reject names that are not valid shell variable names.
1219 case $ac_envvar in #(
1220 '' | [0-9]* | *[!_$as_cr_alnum]* )
1221 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1222 esac
1223 eval $ac_envvar=\$ac_optarg
1224 export $ac_envvar ;;
1227 # FIXME: should be removed in autoconf 3.0.
1228 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1229 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1231 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1234 esac
1235 done
1237 if test -n "$ac_prev"; then
1238 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1239 as_fn_error $? "missing argument to $ac_option"
1242 if test -n "$ac_unrecognized_opts"; then
1243 case $enable_option_checking in
1244 no) ;;
1245 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1246 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1247 esac
1250 # Check all directory arguments for consistency.
1251 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1252 datadir sysconfdir sharedstatedir localstatedir includedir \
1253 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1254 libdir localedir mandir
1256 eval ac_val=\$$ac_var
1257 # Remove trailing slashes.
1258 case $ac_val in
1259 */ )
1260 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1261 eval $ac_var=\$ac_val;;
1262 esac
1263 # Be sure to have absolute directory names.
1264 case $ac_val in
1265 [\\/$]* | ?:[\\/]* ) continue;;
1266 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1267 esac
1268 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1269 done
1271 # There might be people who depend on the old broken behavior: `$host'
1272 # used to hold the argument of --host etc.
1273 # FIXME: To remove some day.
1274 build=$build_alias
1275 host=$host_alias
1276 target=$target_alias
1278 # FIXME: To remove some day.
1279 if test "x$host_alias" != x; then
1280 if test "x$build_alias" = x; then
1281 cross_compiling=maybe
1282 elif test "x$build_alias" != "x$host_alias"; then
1283 cross_compiling=yes
1287 ac_tool_prefix=
1288 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1290 test "$silent" = yes && exec 6>/dev/null
1293 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1294 ac_ls_di=`ls -di .` &&
1295 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1296 as_fn_error $? "working directory cannot be determined"
1297 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1298 as_fn_error $? "pwd does not report name of working directory"
1301 # Find the source files, if location was not specified.
1302 if test -z "$srcdir"; then
1303 ac_srcdir_defaulted=yes
1304 # Try the directory containing this script, then the parent directory.
1305 ac_confdir=`$as_dirname -- "$as_myself" ||
1306 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1307 X"$as_myself" : 'X\(//\)[^/]' \| \
1308 X"$as_myself" : 'X\(//\)$' \| \
1309 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1310 $as_echo X"$as_myself" |
1311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1312 s//\1/
1315 /^X\(\/\/\)[^/].*/{
1316 s//\1/
1319 /^X\(\/\/\)$/{
1320 s//\1/
1323 /^X\(\/\).*/{
1324 s//\1/
1327 s/.*/./; q'`
1328 srcdir=$ac_confdir
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330 srcdir=..
1332 else
1333 ac_srcdir_defaulted=no
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1336 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1337 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1339 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1340 ac_abs_confdir=`(
1341 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1342 pwd)`
1343 # When building in place, set srcdir=.
1344 if test "$ac_abs_confdir" = "$ac_pwd"; then
1345 srcdir=.
1347 # Remove unnecessary trailing slashes from srcdir.
1348 # Double slashes in file names in object file debugging info
1349 # mess up M-x gdb in Emacs.
1350 case $srcdir in
1351 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1352 esac
1353 for ac_var in $ac_precious_vars; do
1354 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1355 eval ac_env_${ac_var}_value=\$${ac_var}
1356 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1358 done
1361 # Report the --help message.
1363 if test "$ac_init_help" = "long"; then
1364 # Omit some internal or obsolete options to make the list less imposing.
1365 # This message is too long to be a string in the A/UX 3.1 sh.
1366 cat <<_ACEOF
1367 \`configure' configures libffi 3.99999 to adapt to many kinds of systems.
1369 Usage: $0 [OPTION]... [VAR=VALUE]...
1371 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1372 VAR=VALUE. See below for descriptions of some of the useful variables.
1374 Defaults for the options are specified in brackets.
1376 Configuration:
1377 -h, --help display this help and exit
1378 --help=short display options specific to this package
1379 --help=recursive display the short help of all the included packages
1380 -V, --version display version information and exit
1381 -q, --quiet, --silent do not print \`checking ...' messages
1382 --cache-file=FILE cache test results in FILE [disabled]
1383 -C, --config-cache alias for \`--cache-file=config.cache'
1384 -n, --no-create do not create output files
1385 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1387 Installation directories:
1388 --prefix=PREFIX install architecture-independent files in PREFIX
1389 [$ac_default_prefix]
1390 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1391 [PREFIX]
1393 By default, \`make install' will install all the files in
1394 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1395 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1396 for instance \`--prefix=\$HOME'.
1398 For better control, use the options below.
1400 Fine tuning of the installation directories:
1401 --bindir=DIR user executables [EPREFIX/bin]
1402 --sbindir=DIR system admin executables [EPREFIX/sbin]
1403 --libexecdir=DIR program executables [EPREFIX/libexec]
1404 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1405 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1406 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1407 --libdir=DIR object code libraries [EPREFIX/lib]
1408 --includedir=DIR C header files [PREFIX/include]
1409 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1410 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1411 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1412 --infodir=DIR info documentation [DATAROOTDIR/info]
1413 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1414 --mandir=DIR man documentation [DATAROOTDIR/man]
1415 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1416 --htmldir=DIR html documentation [DOCDIR]
1417 --dvidir=DIR dvi documentation [DOCDIR]
1418 --pdfdir=DIR pdf documentation [DOCDIR]
1419 --psdir=DIR ps documentation [DOCDIR]
1420 _ACEOF
1422 cat <<\_ACEOF
1424 Program names:
1425 --program-prefix=PREFIX prepend PREFIX to installed program names
1426 --program-suffix=SUFFIX append SUFFIX to installed program names
1427 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1429 System types:
1430 --build=BUILD configure for building on BUILD [guessed]
1431 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1432 --target=TARGET configure for building compilers for TARGET [HOST]
1433 _ACEOF
1436 if test -n "$ac_init_help"; then
1437 case $ac_init_help in
1438 short | recursive ) echo "Configuration of libffi 3.99999:";;
1439 esac
1440 cat <<\_ACEOF
1442 Optional Features:
1443 --disable-option-checking ignore unrecognized --enable/--with options
1444 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1445 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1446 --enable-multilib build many library versions (default)
1447 --enable-silent-rules less verbose build output (undo: "make V=1")
1448 --disable-silent-rules verbose build output (undo: "make V=0")
1449 --enable-generated-files-in-srcdir
1450 put copies of generated files in source dir intended
1451 for creating source tarballs for users without
1452 texinfo bison or flex
1453 --enable-dependency-tracking
1454 do not reject slow dependency extractors
1455 --disable-dependency-tracking
1456 speeds up one-time build
1457 --enable-shared[=PKGS] build shared libraries [default=yes]
1458 --enable-static[=PKGS] build static libraries [default=yes]
1459 --enable-fast-install[=PKGS]
1460 optimize for fast installation [default=yes]
1461 --disable-libtool-lock avoid locking (might break parallel builds)
1462 --enable-maintainer-mode
1463 enable make rules and dependencies not useful (and
1464 sometimes confusing) to the casual installer
1465 --enable-pax_emutramp enable pax emulated trampolines, for we can't use PROT_EXEC
1466 --enable-debug debugging mode
1467 --disable-structs omit code for struct support
1468 --disable-raw-api make the raw api unavailable
1469 --enable-purify-safety purify-safe mode
1470 --enable-symvers=STYLE enables symbol versioning of the shared library
1471 [default=yes]
1473 Optional Packages:
1474 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1475 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1476 --with-pic try to use only PIC/non-PIC objects [default=use
1477 both]
1478 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1479 --with-gcc-major-version-only
1480 use only GCC major number in filesystem paths
1482 Some influential environment variables:
1483 CC C compiler command
1484 CFLAGS C compiler flags
1485 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1486 nonstandard directory <lib dir>
1487 LIBS libraries to pass to the linker, e.g. -l<library>
1488 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1489 you have headers in a nonstandard directory <include dir>
1490 CXX C++ compiler command
1491 CXXFLAGS C++ compiler flags
1492 CCAS assembler compiler command (defaults to CC)
1493 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1494 CPP C preprocessor
1495 CXXCPP C++ preprocessor
1497 Use these variables to override the choices made by `configure' or to help
1498 it to find libraries and programs with nonstandard names/locations.
1500 Report bugs to <http://github.com/atgreen/libffi/issues>.
1501 _ACEOF
1502 ac_status=$?
1505 if test "$ac_init_help" = "recursive"; then
1506 # If there are subdirs, report their specific --help.
1507 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1508 test -d "$ac_dir" ||
1509 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1510 continue
1511 ac_builddir=.
1513 case "$ac_dir" in
1514 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1517 # A ".." for each directory in $ac_dir_suffix.
1518 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1519 case $ac_top_builddir_sub in
1520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1522 esac ;;
1523 esac
1524 ac_abs_top_builddir=$ac_pwd
1525 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1526 # for backward compatibility:
1527 ac_top_builddir=$ac_top_build_prefix
1529 case $srcdir in
1530 .) # We are building in place.
1531 ac_srcdir=.
1532 ac_top_srcdir=$ac_top_builddir_sub
1533 ac_abs_top_srcdir=$ac_pwd ;;
1534 [\\/]* | ?:[\\/]* ) # Absolute name.
1535 ac_srcdir=$srcdir$ac_dir_suffix;
1536 ac_top_srcdir=$srcdir
1537 ac_abs_top_srcdir=$srcdir ;;
1538 *) # Relative name.
1539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1540 ac_top_srcdir=$ac_top_build_prefix$srcdir
1541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1542 esac
1543 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1545 cd "$ac_dir" || { ac_status=$?; continue; }
1546 # Check for guested configure.
1547 if test -f "$ac_srcdir/configure.gnu"; then
1548 echo &&
1549 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1550 elif test -f "$ac_srcdir/configure"; then
1551 echo &&
1552 $SHELL "$ac_srcdir/configure" --help=recursive
1553 else
1554 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1555 fi || ac_status=$?
1556 cd "$ac_pwd" || { ac_status=$?; break; }
1557 done
1560 test -n "$ac_init_help" && exit $ac_status
1561 if $ac_init_version; then
1562 cat <<\_ACEOF
1563 libffi configure 3.99999
1564 generated by GNU Autoconf 2.69
1566 Copyright (C) 2012 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1569 _ACEOF
1570 exit
1573 ## ------------------------ ##
1574 ## Autoconf initialization. ##
1575 ## ------------------------ ##
1577 # ac_fn_c_try_compile LINENO
1578 # --------------------------
1579 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_c_try_compile ()
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 rm -f conftest.$ac_objext
1584 if { { ac_try="$ac_compile"
1585 case "(($ac_try" in
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1588 esac
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_compile") 2>conftest.err
1592 ac_status=$?
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } && {
1600 test -z "$ac_c_werror_flag" ||
1601 test ! -s conftest.err
1602 } && test -s conftest.$ac_objext; then :
1603 ac_retval=0
1604 else
1605 $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1608 ac_retval=1
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611 as_fn_set_status $ac_retval
1613 } # ac_fn_c_try_compile
1615 # ac_fn_cxx_try_compile LINENO
1616 # ----------------------------
1617 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1618 ac_fn_cxx_try_compile ()
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 rm -f conftest.$ac_objext
1622 if { { ac_try="$ac_compile"
1623 case "(($ac_try" in
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1626 esac
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_compile") 2>conftest.err
1630 ac_status=$?
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } && {
1638 test -z "$ac_cxx_werror_flag" ||
1639 test ! -s conftest.err
1640 } && test -s conftest.$ac_objext; then :
1641 ac_retval=0
1642 else
1643 $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1646 ac_retval=1
1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649 as_fn_set_status $ac_retval
1651 } # ac_fn_cxx_try_compile
1653 # ac_fn_c_try_link LINENO
1654 # -----------------------
1655 # Try to link conftest.$ac_ext, and return whether this succeeded.
1656 ac_fn_c_try_link ()
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 rm -f conftest.$ac_objext conftest$ac_exeext
1660 if { { ac_try="$ac_link"
1661 case "(($ac_try" in
1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663 *) ac_try_echo=$ac_try;;
1664 esac
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 $as_echo "$ac_try_echo"; } >&5
1667 (eval "$ac_link") 2>conftest.err
1668 ac_status=$?
1669 if test -s conftest.err; then
1670 grep -v '^ *+' conftest.err >conftest.er1
1671 cat conftest.er1 >&5
1672 mv -f conftest.er1 conftest.err
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; } && {
1676 test -z "$ac_c_werror_flag" ||
1677 test ! -s conftest.err
1678 } && test -s conftest$ac_exeext && {
1679 test "$cross_compiling" = yes ||
1680 test -x conftest$ac_exeext
1681 }; then :
1682 ac_retval=0
1683 else
1684 $as_echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1687 ac_retval=1
1689 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1690 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1691 # interfere with the next link command; also delete a directory that is
1692 # left behind by Apple's compiler. We do this before executing the actions.
1693 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695 as_fn_set_status $ac_retval
1697 } # ac_fn_c_try_link
1699 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1700 # -------------------------------------------------------
1701 # Tests whether HEADER exists and can be compiled using the include files in
1702 # INCLUDES, setting the cache variable VAR accordingly.
1703 ac_fn_c_check_header_compile ()
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 $as_echo_n "checking for $2... " >&6; }
1708 if eval \${$3+:} false; then :
1709 $as_echo_n "(cached) " >&6
1710 else
1711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1712 /* end confdefs.h. */
1714 #include <$2>
1715 _ACEOF
1716 if ac_fn_c_try_compile "$LINENO"; then :
1717 eval "$3=yes"
1718 else
1719 eval "$3=no"
1721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1723 eval ac_res=\$$3
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1725 $as_echo "$ac_res" >&6; }
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728 } # ac_fn_c_check_header_compile
1730 # ac_fn_c_try_cpp LINENO
1731 # ----------------------
1732 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1733 ac_fn_c_try_cpp ()
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 if { { ac_try="$ac_cpp conftest.$ac_ext"
1737 case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1744 ac_status=$?
1745 if test -s conftest.err; then
1746 grep -v '^ *+' conftest.err >conftest.er1
1747 cat conftest.er1 >&5
1748 mv -f conftest.er1 conftest.err
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } > conftest.i && {
1752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1753 test ! -s conftest.err
1754 }; then :
1755 ac_retval=0
1756 else
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1760 ac_retval=1
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763 as_fn_set_status $ac_retval
1765 } # ac_fn_c_try_cpp
1767 # ac_fn_c_try_run LINENO
1768 # ----------------------
1769 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1770 # that executables *can* be run.
1771 ac_fn_c_try_run ()
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 if { { ac_try="$ac_link"
1775 case "(($ac_try" in
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_link") 2>&5
1782 ac_status=$?
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1785 { { case "(($ac_try" in
1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
1788 esac
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791 (eval "$ac_try") 2>&5
1792 ac_status=$?
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; }; }; then :
1795 ac_retval=0
1796 else
1797 $as_echo "$as_me: program exited with status $ac_status" >&5
1798 $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1801 ac_retval=$ac_status
1803 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 as_fn_set_status $ac_retval
1807 } # ac_fn_c_try_run
1809 # ac_fn_c_check_func LINENO FUNC VAR
1810 # ----------------------------------
1811 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1812 ac_fn_c_check_func ()
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 $as_echo_n "checking for $2... " >&6; }
1817 if eval \${$3+:} false; then :
1818 $as_echo_n "(cached) " >&6
1819 else
1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821 /* end confdefs.h. */
1822 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1824 #define $2 innocuous_$2
1826 /* System header to define __stub macros and hopefully few prototypes,
1827 which can conflict with char $2 (); below.
1828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1829 <limits.h> exists even on freestanding compilers. */
1831 #ifdef __STDC__
1832 # include <limits.h>
1833 #else
1834 # include <assert.h>
1835 #endif
1837 #undef $2
1839 /* Override any GCC internal prototype to avoid an error.
1840 Use char because int might match the return type of a GCC
1841 builtin and then its argument prototype would still apply. */
1842 #ifdef __cplusplus
1843 extern "C"
1844 #endif
1845 char $2 ();
1846 /* The GNU C library defines this for functions which it implements
1847 to always fail with ENOSYS. Some functions are actually named
1848 something starting with __ and the normal name is an alias. */
1849 #if defined __stub_$2 || defined __stub___$2
1850 choke me
1851 #endif
1854 main ()
1856 return $2 ();
1858 return 0;
1860 _ACEOF
1861 if ac_fn_c_try_link "$LINENO"; then :
1862 eval "$3=yes"
1863 else
1864 eval "$3=no"
1866 rm -f core conftest.err conftest.$ac_objext \
1867 conftest$ac_exeext conftest.$ac_ext
1869 eval ac_res=\$$3
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871 $as_echo "$ac_res" >&6; }
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874 } # ac_fn_c_check_func
1876 # ac_fn_cxx_try_cpp LINENO
1877 # ------------------------
1878 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1879 ac_fn_cxx_try_cpp ()
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 if { { ac_try="$ac_cpp conftest.$ac_ext"
1883 case "(($ac_try" in
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1886 esac
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1890 ac_status=$?
1891 if test -s conftest.err; then
1892 grep -v '^ *+' conftest.err >conftest.er1
1893 cat conftest.er1 >&5
1894 mv -f conftest.er1 conftest.err
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; } > conftest.i && {
1898 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1899 test ! -s conftest.err
1900 }; then :
1901 ac_retval=0
1902 else
1903 $as_echo "$as_me: failed program was:" >&5
1904 sed 's/^/| /' conftest.$ac_ext >&5
1906 ac_retval=1
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909 as_fn_set_status $ac_retval
1911 } # ac_fn_cxx_try_cpp
1913 # ac_fn_cxx_try_link LINENO
1914 # -------------------------
1915 # Try to link conftest.$ac_ext, and return whether this succeeded.
1916 ac_fn_cxx_try_link ()
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 rm -f conftest.$ac_objext conftest$ac_exeext
1920 if { { ac_try="$ac_link"
1921 case "(($ac_try" in
1922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923 *) ac_try_echo=$ac_try;;
1924 esac
1925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926 $as_echo "$ac_try_echo"; } >&5
1927 (eval "$ac_link") 2>conftest.err
1928 ac_status=$?
1929 if test -s conftest.err; then
1930 grep -v '^ *+' conftest.err >conftest.er1
1931 cat conftest.er1 >&5
1932 mv -f conftest.er1 conftest.err
1934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935 test $ac_status = 0; } && {
1936 test -z "$ac_cxx_werror_flag" ||
1937 test ! -s conftest.err
1938 } && test -s conftest$ac_exeext && {
1939 test "$cross_compiling" = yes ||
1940 test -x conftest$ac_exeext
1941 }; then :
1942 ac_retval=0
1943 else
1944 $as_echo "$as_me: failed program was:" >&5
1945 sed 's/^/| /' conftest.$ac_ext >&5
1947 ac_retval=1
1949 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1950 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1951 # interfere with the next link command; also delete a directory that is
1952 # left behind by Apple's compiler. We do this before executing the actions.
1953 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955 as_fn_set_status $ac_retval
1957 } # ac_fn_cxx_try_link
1959 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1960 # --------------------------------------------
1961 # Tries to find the compile-time value of EXPR in a program that includes
1962 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1963 # computed
1964 ac_fn_c_compute_int ()
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 if test "$cross_compiling" = yes; then
1968 # Depending upon the size, compute the lo and hi bounds.
1969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h. */
1973 main ()
1975 static int test_array [1 - 2 * !(($2) >= 0)];
1976 test_array [0] = 0;
1977 return test_array [0];
1980 return 0;
1982 _ACEOF
1983 if ac_fn_c_try_compile "$LINENO"; then :
1984 ac_lo=0 ac_mid=0
1985 while :; do
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1990 main ()
1992 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1993 test_array [0] = 0;
1994 return test_array [0];
1997 return 0;
1999 _ACEOF
2000 if ac_fn_c_try_compile "$LINENO"; then :
2001 ac_hi=$ac_mid; break
2002 else
2003 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2004 if test $ac_lo -le $ac_mid; then
2005 ac_lo= ac_hi=
2006 break
2008 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011 done
2012 else
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2017 main ()
2019 static int test_array [1 - 2 * !(($2) < 0)];
2020 test_array [0] = 0;
2021 return test_array [0];
2024 return 0;
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028 ac_hi=-1 ac_mid=-1
2029 while :; do
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2034 main ()
2036 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2037 test_array [0] = 0;
2038 return test_array [0];
2041 return 0;
2043 _ACEOF
2044 if ac_fn_c_try_compile "$LINENO"; then :
2045 ac_lo=$ac_mid; break
2046 else
2047 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2048 if test $ac_mid -le $ac_hi; then
2049 ac_lo= ac_hi=
2050 break
2052 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 done
2056 else
2057 ac_lo= ac_hi=
2059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062 # Binary search between lo and hi bounds.
2063 while test "x$ac_lo" != "x$ac_hi"; do
2064 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2069 main ()
2071 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2072 test_array [0] = 0;
2073 return test_array [0];
2076 return 0;
2078 _ACEOF
2079 if ac_fn_c_try_compile "$LINENO"; then :
2080 ac_hi=$ac_mid
2081 else
2082 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 done
2086 case $ac_lo in #((
2087 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2088 '') ac_retval=1 ;;
2089 esac
2090 else
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2094 static long int longval () { return $2; }
2095 static unsigned long int ulongval () { return $2; }
2096 #include <stdio.h>
2097 #include <stdlib.h>
2099 main ()
2102 FILE *f = fopen ("conftest.val", "w");
2103 if (! f)
2104 return 1;
2105 if (($2) < 0)
2107 long int i = longval ();
2108 if (i != ($2))
2109 return 1;
2110 fprintf (f, "%ld", i);
2112 else
2114 unsigned long int i = ulongval ();
2115 if (i != ($2))
2116 return 1;
2117 fprintf (f, "%lu", i);
2119 /* Do not output a trailing newline, as this causes \r\n confusion
2120 on some platforms. */
2121 return ferror (f) || fclose (f) != 0;
2124 return 0;
2126 _ACEOF
2127 if ac_fn_c_try_run "$LINENO"; then :
2128 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2129 else
2130 ac_retval=1
2132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2133 conftest.$ac_objext conftest.beam conftest.$ac_ext
2134 rm -f conftest.val
2137 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2138 as_fn_set_status $ac_retval
2140 } # ac_fn_c_compute_int
2142 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2143 # -------------------------------------------------------
2144 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2145 # the include files in INCLUDES and setting the cache variable VAR
2146 # accordingly.
2147 ac_fn_c_check_header_mongrel ()
2149 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150 if eval \${$3+:} false; then :
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2152 $as_echo_n "checking for $2... " >&6; }
2153 if eval \${$3+:} false; then :
2154 $as_echo_n "(cached) " >&6
2156 eval ac_res=\$$3
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2158 $as_echo "$ac_res" >&6; }
2159 else
2160 # Is the header compilable?
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2162 $as_echo_n "checking $2 usability... " >&6; }
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h. */
2166 #include <$2>
2167 _ACEOF
2168 if ac_fn_c_try_compile "$LINENO"; then :
2169 ac_header_compiler=yes
2170 else
2171 ac_header_compiler=no
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2175 $as_echo "$ac_header_compiler" >&6; }
2177 # Is the header present?
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2179 $as_echo_n "checking $2 presence... " >&6; }
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h. */
2182 #include <$2>
2183 _ACEOF
2184 if ac_fn_c_try_cpp "$LINENO"; then :
2185 ac_header_preproc=yes
2186 else
2187 ac_header_preproc=no
2189 rm -f conftest.err conftest.i conftest.$ac_ext
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2191 $as_echo "$ac_header_preproc" >&6; }
2193 # So? What about this header?
2194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2195 yes:no: )
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2197 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2199 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2201 no:yes:* )
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2203 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2205 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2207 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2209 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2211 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2212 ( $as_echo "## ------------------------------------------------------ ##
2213 ## Report this to http://github.com/atgreen/libffi/issues ##
2214 ## ------------------------------------------------------ ##"
2215 ) | sed "s/^/$as_me: WARNING: /" >&2
2217 esac
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2219 $as_echo_n "checking for $2... " >&6; }
2220 if eval \${$3+:} false; then :
2221 $as_echo_n "(cached) " >&6
2222 else
2223 eval "$3=\$ac_header_compiler"
2225 eval ac_res=\$$3
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2227 $as_echo "$ac_res" >&6; }
2229 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2231 } # ac_fn_c_check_header_mongrel
2233 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2234 # -------------------------------------------
2235 # Tests whether TYPE exists after having included INCLUDES, setting cache
2236 # variable VAR accordingly.
2237 ac_fn_c_check_type ()
2239 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2241 $as_echo_n "checking for $2... " >&6; }
2242 if eval \${$3+:} false; then :
2243 $as_echo_n "(cached) " >&6
2244 else
2245 eval "$3=no"
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2250 main ()
2252 if (sizeof ($2))
2253 return 0;
2255 return 0;
2257 _ACEOF
2258 if ac_fn_c_try_compile "$LINENO"; then :
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2263 main ()
2265 if (sizeof (($2)))
2266 return 0;
2268 return 0;
2270 _ACEOF
2271 if ac_fn_c_try_compile "$LINENO"; then :
2273 else
2274 eval "$3=yes"
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280 eval ac_res=\$$3
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2282 $as_echo "$ac_res" >&6; }
2283 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2285 } # ac_fn_c_check_type
2286 cat >config.log <<_ACEOF
2287 This file contains any messages produced by compilers while
2288 running configure, to aid debugging if configure makes a mistake.
2290 It was created by libffi $as_me 3.99999, which was
2291 generated by GNU Autoconf 2.69. Invocation command line was
2293 $ $0 $@
2295 _ACEOF
2296 exec 5>>config.log
2298 cat <<_ASUNAME
2299 ## --------- ##
2300 ## Platform. ##
2301 ## --------- ##
2303 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2304 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2305 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2306 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2307 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2309 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2310 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2312 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2313 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2314 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2315 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2316 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2317 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2318 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2320 _ASUNAME
2322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323 for as_dir in $PATH
2325 IFS=$as_save_IFS
2326 test -z "$as_dir" && as_dir=.
2327 $as_echo "PATH: $as_dir"
2328 done
2329 IFS=$as_save_IFS
2331 } >&5
2333 cat >&5 <<_ACEOF
2336 ## ----------- ##
2337 ## Core tests. ##
2338 ## ----------- ##
2340 _ACEOF
2343 # Keep a trace of the command line.
2344 # Strip out --no-create and --no-recursion so they do not pile up.
2345 # Strip out --silent because we don't want to record it for future runs.
2346 # Also quote any args containing shell meta-characters.
2347 # Make two passes to allow for proper duplicate-argument suppression.
2348 ac_configure_args=
2349 ac_configure_args0=
2350 ac_configure_args1=
2351 ac_must_keep_next=false
2352 for ac_pass in 1 2
2354 for ac_arg
2356 case $ac_arg in
2357 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2358 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2359 | -silent | --silent | --silen | --sile | --sil)
2360 continue ;;
2361 *\'*)
2362 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2363 esac
2364 case $ac_pass in
2365 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2367 as_fn_append ac_configure_args1 " '$ac_arg'"
2368 if test $ac_must_keep_next = true; then
2369 ac_must_keep_next=false # Got value, back to normal.
2370 else
2371 case $ac_arg in
2372 *=* | --config-cache | -C | -disable-* | --disable-* \
2373 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2374 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2375 | -with-* | --with-* | -without-* | --without-* | --x)
2376 case "$ac_configure_args0 " in
2377 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2378 esac
2380 -* ) ac_must_keep_next=true ;;
2381 esac
2383 as_fn_append ac_configure_args " '$ac_arg'"
2385 esac
2386 done
2387 done
2388 { ac_configure_args0=; unset ac_configure_args0;}
2389 { ac_configure_args1=; unset ac_configure_args1;}
2391 # When interrupted or exit'd, cleanup temporary files, and complete
2392 # config.log. We remove comments because anyway the quotes in there
2393 # would cause problems or look ugly.
2394 # WARNING: Use '\'' to represent an apostrophe within the trap.
2395 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2396 trap 'exit_status=$?
2397 # Save into config.log some information that might help in debugging.
2399 echo
2401 $as_echo "## ---------------- ##
2402 ## Cache variables. ##
2403 ## ---------------- ##"
2404 echo
2405 # The following way of writing the cache mishandles newlines in values,
2407 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2408 eval ac_val=\$$ac_var
2409 case $ac_val in #(
2410 *${as_nl}*)
2411 case $ac_var in #(
2412 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2413 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2414 esac
2415 case $ac_var in #(
2416 _ | IFS | as_nl) ;; #(
2417 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2418 *) { eval $ac_var=; unset $ac_var;} ;;
2419 esac ;;
2420 esac
2421 done
2422 (set) 2>&1 |
2423 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2424 *${as_nl}ac_space=\ *)
2425 sed -n \
2426 "s/'\''/'\''\\\\'\'''\''/g;
2427 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2428 ;; #(
2430 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2432 esac |
2433 sort
2435 echo
2437 $as_echo "## ----------------- ##
2438 ## Output variables. ##
2439 ## ----------------- ##"
2440 echo
2441 for ac_var in $ac_subst_vars
2443 eval ac_val=\$$ac_var
2444 case $ac_val in
2445 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2446 esac
2447 $as_echo "$ac_var='\''$ac_val'\''"
2448 done | sort
2449 echo
2451 if test -n "$ac_subst_files"; then
2452 $as_echo "## ------------------- ##
2453 ## File substitutions. ##
2454 ## ------------------- ##"
2455 echo
2456 for ac_var in $ac_subst_files
2458 eval ac_val=\$$ac_var
2459 case $ac_val in
2460 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2461 esac
2462 $as_echo "$ac_var='\''$ac_val'\''"
2463 done | sort
2464 echo
2467 if test -s confdefs.h; then
2468 $as_echo "## ----------- ##
2469 ## confdefs.h. ##
2470 ## ----------- ##"
2471 echo
2472 cat confdefs.h
2473 echo
2475 test "$ac_signal" != 0 &&
2476 $as_echo "$as_me: caught signal $ac_signal"
2477 $as_echo "$as_me: exit $exit_status"
2478 } >&5
2479 rm -f core *.core core.conftest.* &&
2480 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2481 exit $exit_status
2483 for ac_signal in 1 2 13 15; do
2484 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2485 done
2486 ac_signal=0
2488 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2489 rm -f -r conftest* confdefs.h
2491 $as_echo "/* confdefs.h */" > confdefs.h
2493 # Predefined preprocessor variables.
2495 cat >>confdefs.h <<_ACEOF
2496 #define PACKAGE_NAME "$PACKAGE_NAME"
2497 _ACEOF
2499 cat >>confdefs.h <<_ACEOF
2500 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2501 _ACEOF
2503 cat >>confdefs.h <<_ACEOF
2504 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2505 _ACEOF
2507 cat >>confdefs.h <<_ACEOF
2508 #define PACKAGE_STRING "$PACKAGE_STRING"
2509 _ACEOF
2511 cat >>confdefs.h <<_ACEOF
2512 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2513 _ACEOF
2515 cat >>confdefs.h <<_ACEOF
2516 #define PACKAGE_URL "$PACKAGE_URL"
2517 _ACEOF
2520 # Let the site file select an alternate cache file if it wants to.
2521 # Prefer an explicitly selected file to automatically selected ones.
2522 ac_site_file1=NONE
2523 ac_site_file2=NONE
2524 if test -n "$CONFIG_SITE"; then
2525 # We do not want a PATH search for config.site.
2526 case $CONFIG_SITE in #((
2527 -*) ac_site_file1=./$CONFIG_SITE;;
2528 */*) ac_site_file1=$CONFIG_SITE;;
2529 *) ac_site_file1=./$CONFIG_SITE;;
2530 esac
2531 elif test "x$prefix" != xNONE; then
2532 ac_site_file1=$prefix/share/config.site
2533 ac_site_file2=$prefix/etc/config.site
2534 else
2535 ac_site_file1=$ac_default_prefix/share/config.site
2536 ac_site_file2=$ac_default_prefix/etc/config.site
2538 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2540 test "x$ac_site_file" = xNONE && continue
2541 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2543 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2544 sed 's/^/| /' "$ac_site_file" >&5
2545 . "$ac_site_file" \
2546 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2548 as_fn_error $? "failed to load site script $ac_site_file
2549 See \`config.log' for more details" "$LINENO" 5; }
2551 done
2553 if test -r "$cache_file"; then
2554 # Some versions of bash will fail to source /dev/null (special files
2555 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2556 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2558 $as_echo "$as_me: loading cache $cache_file" >&6;}
2559 case $cache_file in
2560 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2561 *) . "./$cache_file";;
2562 esac
2564 else
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2566 $as_echo "$as_me: creating cache $cache_file" >&6;}
2567 >$cache_file
2570 # Check that the precious variables saved in the cache have kept the same
2571 # value.
2572 ac_cache_corrupted=false
2573 for ac_var in $ac_precious_vars; do
2574 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2575 eval ac_new_set=\$ac_env_${ac_var}_set
2576 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2577 eval ac_new_val=\$ac_env_${ac_var}_value
2578 case $ac_old_set,$ac_new_set in
2579 set,)
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2581 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2582 ac_cache_corrupted=: ;;
2583 ,set)
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2585 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2586 ac_cache_corrupted=: ;;
2587 ,);;
2589 if test "x$ac_old_val" != "x$ac_new_val"; then
2590 # differences in whitespace do not lead to failure.
2591 ac_old_val_w=`echo x $ac_old_val`
2592 ac_new_val_w=`echo x $ac_new_val`
2593 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2595 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2596 ac_cache_corrupted=:
2597 else
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2599 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2600 eval $ac_var=\$ac_old_val
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2603 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2605 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2606 fi;;
2607 esac
2608 # Pass precious variables to config.status.
2609 if test "$ac_new_set" = set; then
2610 case $ac_new_val in
2611 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2612 *) ac_arg=$ac_var=$ac_new_val ;;
2613 esac
2614 case " $ac_configure_args " in
2615 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2616 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2617 esac
2619 done
2620 if $ac_cache_corrupted; then
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2624 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2625 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2627 ## -------------------- ##
2628 ## Main body of script. ##
2629 ## -------------------- ##
2631 ac_ext=c
2632 ac_cpp='$CPP $CPPFLAGS'
2633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2641 ac_config_headers="$ac_config_headers fficonfig.h"
2644 # Default to --enable-multilib
2645 # Check whether --enable-multilib was given.
2646 if test "${enable_multilib+set}" = set; then :
2647 enableval=$enable_multilib; case "$enableval" in
2648 yes) multilib=yes ;;
2649 no) multilib=no ;;
2650 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2651 esac
2652 else
2653 multilib=yes
2657 # We may get other options which we leave undocumented:
2658 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2659 # See config-ml.in if you want the gory details.
2661 if test "$srcdir" = "."; then
2662 if test "$with_target_subdir" != "."; then
2663 multi_basedir="$srcdir/$with_multisrctop../.."
2664 else
2665 multi_basedir="$srcdir/$with_multisrctop.."
2667 else
2668 multi_basedir="$srcdir/.."
2672 # Even if the default multilib is not a cross compilation,
2673 # it may be that some of the other multilibs are.
2674 if test $cross_compiling = no && test $multilib = yes \
2675 && test "x${with_multisubdir}" != x ; then
2676 cross_compiling=maybe
2679 ac_config_commands="$ac_config_commands default-1"
2682 ac_aux_dir=
2683 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2684 if test -f "$ac_dir/install-sh"; then
2685 ac_aux_dir=$ac_dir
2686 ac_install_sh="$ac_aux_dir/install-sh -c"
2687 break
2688 elif 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/shtool"; then
2693 ac_aux_dir=$ac_dir
2694 ac_install_sh="$ac_aux_dir/shtool install -c"
2695 break
2697 done
2698 if test -z "$ac_aux_dir"; then
2699 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2702 # These three variables are undocumented and unsupported,
2703 # and are intended to be withdrawn in a future Autoconf release.
2704 # They can cause serious problems if a builder's source tree is in a directory
2705 # whose full name contains unusual characters.
2706 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2707 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2708 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2711 # Make sure we can run config.sub.
2712 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2713 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2716 $as_echo_n "checking build system type... " >&6; }
2717 if ${ac_cv_build+:} false; then :
2718 $as_echo_n "(cached) " >&6
2719 else
2720 ac_build_alias=$build_alias
2721 test "x$ac_build_alias" = x &&
2722 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2723 test "x$ac_build_alias" = x &&
2724 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2725 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2726 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2730 $as_echo "$ac_cv_build" >&6; }
2731 case $ac_cv_build in
2732 *-*-*) ;;
2733 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2734 esac
2735 build=$ac_cv_build
2736 ac_save_IFS=$IFS; IFS='-'
2737 set x $ac_cv_build
2738 shift
2739 build_cpu=$1
2740 build_vendor=$2
2741 shift; shift
2742 # Remember, the first character of IFS is used to create $*,
2743 # except with old shells:
2744 build_os=$*
2745 IFS=$ac_save_IFS
2746 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2750 $as_echo_n "checking host system type... " >&6; }
2751 if ${ac_cv_host+:} false; then :
2752 $as_echo_n "(cached) " >&6
2753 else
2754 if test "x$host_alias" = x; then
2755 ac_cv_host=$ac_cv_build
2756 else
2757 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2758 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2763 $as_echo "$ac_cv_host" >&6; }
2764 case $ac_cv_host in
2765 *-*-*) ;;
2766 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2767 esac
2768 host=$ac_cv_host
2769 ac_save_IFS=$IFS; IFS='-'
2770 set x $ac_cv_host
2771 shift
2772 host_cpu=$1
2773 host_vendor=$2
2774 shift; shift
2775 # Remember, the first character of IFS is used to create $*,
2776 # except with old shells:
2777 host_os=$*
2778 IFS=$ac_save_IFS
2779 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2783 $as_echo_n "checking target system type... " >&6; }
2784 if ${ac_cv_target+:} false; then :
2785 $as_echo_n "(cached) " >&6
2786 else
2787 if test "x$target_alias" = x; then
2788 ac_cv_target=$ac_cv_host
2789 else
2790 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2791 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2796 $as_echo "$ac_cv_target" >&6; }
2797 case $ac_cv_target in
2798 *-*-*) ;;
2799 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2800 esac
2801 target=$ac_cv_target
2802 ac_save_IFS=$IFS; IFS='-'
2803 set x $ac_cv_target
2804 shift
2805 target_cpu=$1
2806 target_vendor=$2
2807 shift; shift
2808 # Remember, the first character of IFS is used to create $*,
2809 # except with old shells:
2810 target_os=$*
2811 IFS=$ac_save_IFS
2812 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2815 # The aliases save the names the user supplied, while $host etc.
2816 # will get canonicalized.
2817 test -n "$target_alias" &&
2818 test "$program_prefix$program_suffix$program_transform_name" = \
2819 NONENONEs,x,x, &&
2820 program_prefix=${target_alias}-
2822 target_alias=${target_alias-$host_alias}
2824 am__api_version='1.15'
2826 # Find a good install program. We prefer a C program (faster),
2827 # so one script is as good as another. But avoid the broken or
2828 # incompatible versions:
2829 # SysV /etc/install, /usr/sbin/install
2830 # SunOS /usr/etc/install
2831 # IRIX /sbin/install
2832 # AIX /bin/install
2833 # AmigaOS /C/install, which installs bootblocks on floppy discs
2834 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2835 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2836 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2837 # OS/2's system install, which has a completely different semantic
2838 # ./install, which can be erroneously created by make from ./install.sh.
2839 # Reject install programs that cannot install multiple files.
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2841 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2842 if test -z "$INSTALL"; then
2843 if ${ac_cv_path_install+:} false; then :
2844 $as_echo_n "(cached) " >&6
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
2851 # Account for people who put trailing slashes in PATH elements.
2852 case $as_dir/ in #((
2853 ./ | .// | /[cC]/* | \
2854 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2855 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2856 /usr/ucb/* ) ;;
2858 # OSF1 and SCO ODT 3.0 have their own names for install.
2859 # Don't use installbsd from OSF since it installs stuff as root
2860 # by default.
2861 for ac_prog in ginstall scoinst install; do
2862 for ac_exec_ext in '' $ac_executable_extensions; do
2863 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2864 if test $ac_prog = install &&
2865 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2866 # AIX install. It has an incompatible calling convention.
2868 elif test $ac_prog = install &&
2869 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2870 # program-specific install script used by HP pwplus--don't use.
2872 else
2873 rm -rf conftest.one conftest.two conftest.dir
2874 echo one > conftest.one
2875 echo two > conftest.two
2876 mkdir conftest.dir
2877 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2878 test -s conftest.one && test -s conftest.two &&
2879 test -s conftest.dir/conftest.one &&
2880 test -s conftest.dir/conftest.two
2881 then
2882 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2883 break 3
2887 done
2888 done
2890 esac
2892 done
2893 IFS=$as_save_IFS
2895 rm -rf conftest.one conftest.two conftest.dir
2898 if test "${ac_cv_path_install+set}" = set; then
2899 INSTALL=$ac_cv_path_install
2900 else
2901 # As a last resort, use the slow shell script. Don't cache a
2902 # value for INSTALL within a source directory, because that will
2903 # break other packages using the cache if that directory is
2904 # removed, or if the value is a relative name.
2905 INSTALL=$ac_install_sh
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2909 $as_echo "$INSTALL" >&6; }
2911 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2912 # It thinks the first close brace ends the variable substitution.
2913 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2915 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2917 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2920 $as_echo_n "checking whether build environment is sane... " >&6; }
2921 # Reject unsafe characters in $srcdir or the absolute working directory
2922 # name. Accept space and tab only in the latter.
2923 am_lf='
2925 case `pwd` in
2926 *[\\\"\#\$\&\'\`$am_lf]*)
2927 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2928 esac
2929 case $srcdir in
2930 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2931 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2932 esac
2934 # Do 'set' in a subshell so we don't clobber the current shell's
2935 # arguments. Must try -L first in case configure is actually a
2936 # symlink; some systems play weird games with the mod time of symlinks
2937 # (eg FreeBSD returns the mod time of the symlink's containing
2938 # directory).
2939 if (
2940 am_has_slept=no
2941 for am_try in 1 2; do
2942 echo "timestamp, slept: $am_has_slept" > conftest.file
2943 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2944 if test "$*" = "X"; then
2945 # -L didn't work.
2946 set X `ls -t "$srcdir/configure" conftest.file`
2948 if test "$*" != "X $srcdir/configure conftest.file" \
2949 && test "$*" != "X conftest.file $srcdir/configure"; then
2951 # If neither matched, then we have a broken ls. This can happen
2952 # if, for instance, CONFIG_SHELL is bash and it inherits a
2953 # broken ls alias from the environment. This has actually
2954 # happened. Such a system could not be considered "sane".
2955 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2956 alias in your environment" "$LINENO" 5
2958 if test "$2" = conftest.file || test $am_try -eq 2; then
2959 break
2961 # Just in case.
2962 sleep 1
2963 am_has_slept=yes
2964 done
2965 test "$2" = conftest.file
2967 then
2968 # Ok.
2970 else
2971 as_fn_error $? "newly created file is older than distributed files!
2972 Check your system clock" "$LINENO" 5
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2975 $as_echo "yes" >&6; }
2976 # If we didn't sleep, we still need to ensure time stamps of config.status and
2977 # generated files are strictly newer.
2978 am_sleep_pid=
2979 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2980 ( sleep 1 ) &
2981 am_sleep_pid=$!
2984 rm -f conftest.file
2986 test "$program_prefix" != NONE &&
2987 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2988 # Use a double $ so make ignores it.
2989 test "$program_suffix" != NONE &&
2990 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2991 # Double any \ or $.
2992 # By default was `s,x,x', remove it if useless.
2993 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2994 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2996 # Expand $ac_aux_dir to an absolute path.
2997 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2999 if test x"${MISSING+set}" != xset; then
3000 case $am_aux_dir in
3001 *\ * | *\ *)
3002 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3004 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3005 esac
3007 # Use eval to expand $SHELL
3008 if eval "$MISSING --is-lightweight"; then
3009 am_missing_run="$MISSING "
3010 else
3011 am_missing_run=
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3013 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3016 if test x"${install_sh+set}" != xset; then
3017 case $am_aux_dir in
3018 *\ * | *\ *)
3019 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3021 install_sh="\${SHELL} $am_aux_dir/install-sh"
3022 esac
3025 # Installed binaries are usually stripped using 'strip' when the user
3026 # run "make install-strip". However 'strip' might not be the right
3027 # tool to use in cross-compilation environments, therefore Automake
3028 # will honor the 'STRIP' environment variable to overrule this program.
3029 if test "$cross_compiling" != no; then
3030 if test -n "$ac_tool_prefix"; then
3031 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3032 set dummy ${ac_tool_prefix}strip; ac_word=$2
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034 $as_echo_n "checking for $ac_word... " >&6; }
3035 if ${ac_cv_prog_STRIP+:} false; then :
3036 $as_echo_n "(cached) " >&6
3037 else
3038 if test -n "$STRIP"; then
3039 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3040 else
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 for as_dir in $PATH
3044 IFS=$as_save_IFS
3045 test -z "$as_dir" && as_dir=.
3046 for ac_exec_ext in '' $ac_executable_extensions; do
3047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3048 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3050 break 2
3052 done
3053 done
3054 IFS=$as_save_IFS
3058 STRIP=$ac_cv_prog_STRIP
3059 if test -n "$STRIP"; then
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3061 $as_echo "$STRIP" >&6; }
3062 else
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064 $as_echo "no" >&6; }
3069 if test -z "$ac_cv_prog_STRIP"; then
3070 ac_ct_STRIP=$STRIP
3071 # Extract the first word of "strip", so it can be a program name with args.
3072 set dummy strip; ac_word=$2
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074 $as_echo_n "checking for $ac_word... " >&6; }
3075 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3076 $as_echo_n "(cached) " >&6
3077 else
3078 if test -n "$ac_ct_STRIP"; then
3079 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3080 else
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 for as_dir in $PATH
3084 IFS=$as_save_IFS
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088 ac_cv_prog_ac_ct_STRIP="strip"
3089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 break 2
3092 done
3093 done
3094 IFS=$as_save_IFS
3098 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3099 if test -n "$ac_ct_STRIP"; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3101 $as_echo "$ac_ct_STRIP" >&6; }
3102 else
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3107 if test "x$ac_ct_STRIP" = x; then
3108 STRIP=":"
3109 else
3110 case $cross_compiling:$ac_tool_warned in
3111 yes:)
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3114 ac_tool_warned=yes ;;
3115 esac
3116 STRIP=$ac_ct_STRIP
3118 else
3119 STRIP="$ac_cv_prog_STRIP"
3123 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3126 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3127 if test -z "$MKDIR_P"; then
3128 if ${ac_cv_path_mkdir+:} false; then :
3129 $as_echo_n "(cached) " >&6
3130 else
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3134 IFS=$as_save_IFS
3135 test -z "$as_dir" && as_dir=.
3136 for ac_prog in mkdir gmkdir; do
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3139 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3140 'mkdir (GNU coreutils) '* | \
3141 'mkdir (coreutils) '* | \
3142 'mkdir (fileutils) '4.1*)
3143 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3144 break 3;;
3145 esac
3146 done
3147 done
3148 done
3149 IFS=$as_save_IFS
3153 test -d ./--version && rmdir ./--version
3154 if test "${ac_cv_path_mkdir+set}" = set; then
3155 MKDIR_P="$ac_cv_path_mkdir -p"
3156 else
3157 # As a last resort, use the slow shell script. Don't cache a
3158 # value for MKDIR_P within a source directory, because that will
3159 # break other packages using the cache if that directory is
3160 # removed, or if the value is a relative name.
3161 MKDIR_P="$ac_install_sh -d"
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3165 $as_echo "$MKDIR_P" >&6; }
3167 for ac_prog in gawk mawk nawk awk
3169 # Extract the first word of "$ac_prog", so it can be a program name with args.
3170 set dummy $ac_prog; ac_word=$2
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3172 $as_echo_n "checking for $ac_word... " >&6; }
3173 if ${ac_cv_prog_AWK+:} false; then :
3174 $as_echo_n "(cached) " >&6
3175 else
3176 if test -n "$AWK"; then
3177 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3178 else
3179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 for as_dir in $PATH
3182 IFS=$as_save_IFS
3183 test -z "$as_dir" && as_dir=.
3184 for ac_exec_ext in '' $ac_executable_extensions; do
3185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3186 ac_cv_prog_AWK="$ac_prog"
3187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3188 break 2
3190 done
3191 done
3192 IFS=$as_save_IFS
3196 AWK=$ac_cv_prog_AWK
3197 if test -n "$AWK"; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3199 $as_echo "$AWK" >&6; }
3200 else
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 $as_echo "no" >&6; }
3206 test -n "$AWK" && break
3207 done
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3210 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3211 set x ${MAKE-make}
3212 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3213 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3214 $as_echo_n "(cached) " >&6
3215 else
3216 cat >conftest.make <<\_ACEOF
3217 SHELL = /bin/sh
3218 all:
3219 @echo '@@@%%%=$(MAKE)=@@@%%%'
3220 _ACEOF
3221 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3222 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3223 *@@@%%%=?*=@@@%%%*)
3224 eval ac_cv_prog_make_${ac_make}_set=yes;;
3226 eval ac_cv_prog_make_${ac_make}_set=no;;
3227 esac
3228 rm -f conftest.make
3230 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3232 $as_echo "yes" >&6; }
3233 SET_MAKE=
3234 else
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3237 SET_MAKE="MAKE=${MAKE-make}"
3240 rm -rf .tst 2>/dev/null
3241 mkdir .tst 2>/dev/null
3242 if test -d .tst; then
3243 am__leading_dot=.
3244 else
3245 am__leading_dot=_
3247 rmdir .tst 2>/dev/null
3249 # Check whether --enable-silent-rules was given.
3250 if test "${enable_silent_rules+set}" = set; then :
3251 enableval=$enable_silent_rules;
3254 case $enable_silent_rules in # (((
3255 yes) AM_DEFAULT_VERBOSITY=0;;
3256 no) AM_DEFAULT_VERBOSITY=1;;
3257 *) AM_DEFAULT_VERBOSITY=1;;
3258 esac
3259 am_make=${MAKE-make}
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3261 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3262 if ${am_cv_make_support_nested_variables+:} false; then :
3263 $as_echo_n "(cached) " >&6
3264 else
3265 if $as_echo 'TRUE=$(BAR$(V))
3266 BAR0=false
3267 BAR1=true
3269 am__doit:
3270 @$(TRUE)
3271 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3272 am_cv_make_support_nested_variables=yes
3273 else
3274 am_cv_make_support_nested_variables=no
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3278 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3279 if test $am_cv_make_support_nested_variables = yes; then
3280 AM_V='$(V)'
3281 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3282 else
3283 AM_V=$AM_DEFAULT_VERBOSITY
3284 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3286 AM_BACKSLASH='\'
3288 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3289 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3290 # is not polluted with repeated "-I."
3291 am__isrc=' -I$(srcdir)'
3292 # test to see if srcdir already configured
3293 if test -f $srcdir/config.status; then
3294 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3298 # test whether we have cygpath
3299 if test -z "$CYGPATH_W"; then
3300 if (cygpath --version) >/dev/null 2>/dev/null; then
3301 CYGPATH_W='cygpath -w'
3302 else
3303 CYGPATH_W=echo
3308 # Define the identity of the package.
3309 PACKAGE='libffi'
3310 VERSION='3.99999'
3313 cat >>confdefs.h <<_ACEOF
3314 #define PACKAGE "$PACKAGE"
3315 _ACEOF
3318 cat >>confdefs.h <<_ACEOF
3319 #define VERSION "$VERSION"
3320 _ACEOF
3322 # Some tools Automake needs.
3324 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3327 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3330 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3333 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3336 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3338 # For better backward compatibility. To be removed once Automake 1.9.x
3339 # dies out for good. For more background, see:
3340 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3341 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3342 mkdir_p='$(MKDIR_P)'
3344 # We need awk for the "check" target (and possibly the TAP driver). The
3345 # system "awk" is bad on some platforms.
3346 # Always define AMTAR for backward compatibility. Yes, it's still used
3347 # in the wild :-( We should find a proper way to deprecate it ...
3348 AMTAR='$${TAR-tar}'
3351 # We'll loop over all known methods to create a tar archive until one works.
3352 _am_tools='gnutar pax cpio none'
3354 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3361 # POSIX will say in a future version that running "rm -f" with no argument
3362 # is OK; and we want to be able to make that assumption in our Makefile
3363 # recipes. So use an aggressive probe to check that the usage we want is
3364 # actually supported "in the wild" to an acceptable degree.
3365 # See automake bug#10828.
3366 # To make any issue more visible, cause the running configure to be aborted
3367 # by default if the 'rm' program in use doesn't match our expectations; the
3368 # user can still override this though.
3369 if rm -f && rm -fr && rm -rf; then : OK; else
3370 cat >&2 <<'END'
3371 Oops!
3373 Your 'rm' program seems unable to run without file operands specified
3374 on the command line, even when the '-f' option is present. This is contrary
3375 to the behaviour of most rm programs out there, and not conforming with
3376 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3378 Please tell bug-automake@gnu.org about your system, including the value
3379 of your $PATH and any error possibly output before this message. This
3380 can help us improve future automake versions.
3383 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3384 echo 'Configuration will proceed anyway, since you have set the' >&2
3385 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3386 echo >&2
3387 else
3388 cat >&2 <<'END'
3389 Aborting the configuration process, to ensure you take notice of the issue.
3391 You can download and install GNU coreutils to get an 'rm' implementation
3392 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3394 If you want to complete the configuration process using your problematic
3395 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3396 to "yes", and re-run configure.
3399 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3404 # See if makeinfo has been installed and is modern enough
3405 # that we can use it.
3407 # Extract the first word of "makeinfo", so it can be a program name with args.
3408 set dummy makeinfo; ac_word=$2
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3410 $as_echo_n "checking for $ac_word... " >&6; }
3411 if ${ac_cv_prog_MAKEINFO+:} false; then :
3412 $as_echo_n "(cached) " >&6
3413 else
3414 if test -n "$MAKEINFO"; then
3415 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3416 else
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 for as_dir in $PATH
3420 IFS=$as_save_IFS
3421 test -z "$as_dir" && as_dir=.
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3424 ac_cv_prog_MAKEINFO="makeinfo"
3425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 break 2
3428 done
3429 done
3430 IFS=$as_save_IFS
3434 MAKEINFO=$ac_cv_prog_MAKEINFO
3435 if test -n "$MAKEINFO"; then
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
3437 $as_echo "$MAKEINFO" >&6; }
3438 else
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440 $as_echo "no" >&6; }
3444 if test -n "$MAKEINFO"; then
3445 # Found it, now check the version.
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
3447 $as_echo_n "checking for modern makeinfo... " >&6; }
3448 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
3449 $as_echo_n "(cached) " >&6
3450 else
3451 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3452 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3454 case $ac_prog_version in
3455 '') gcc_cv_prog_makeinfo_modern=no;;
3456 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
3457 *) gcc_cv_prog_makeinfo_modern=no;;
3458 esac
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
3462 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
3463 else
3464 gcc_cv_prog_makeinfo_modern=no
3466 if test $gcc_cv_prog_makeinfo_modern = no; then
3467 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3470 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3471 BUILD_INFO_TRUE=
3472 BUILD_INFO_FALSE='#'
3473 else
3474 BUILD_INFO_TRUE='#'
3475 BUILD_INFO_FALSE=
3479 # We would like our source tree to be readonly. However when releases or
3480 # pre-releases are generated, the flex/bison generated files as well as the
3481 # various formats of manuals need to be included along with the rest of the
3482 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3483 # just that.
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
3485 $as_echo_n "checking generated-files-in-srcdir... " >&6; }
3486 # Check whether --enable-generated-files-in-srcdir was given.
3487 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3488 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
3489 yes) enable_generated_files_in_srcdir=yes ;;
3490 no) enable_generated_files_in_srcdir=no ;;
3491 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3492 esac
3493 else
3494 enable_generated_files_in_srcdir=no
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
3498 $as_echo "$enable_generated_files_in_srcdir" >&6; }
3499 if test "$enable_generated_files_in_srcdir" = yes; then
3500 GENINSRC_TRUE=
3501 GENINSRC_FALSE='#'
3502 else
3503 GENINSRC_TRUE='#'
3504 GENINSRC_FALSE=
3508 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3509 # We must force CC to /not/ be precious variables; otherwise
3510 # the wrong, non-multilib-adjusted value will be used in multilibs.
3511 # As a side effect, we have to subst CFLAGS ourselves.
3512 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3513 # defaults of its own if none are provided.
3517 save_CFLAGS=$CFLAGS
3518 ac_ext=c
3519 ac_cpp='$CPP $CPPFLAGS'
3520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3523 if test -n "$ac_tool_prefix"; then
3524 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3525 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3527 $as_echo_n "checking for $ac_word... " >&6; }
3528 if ${ac_cv_prog_CC+:} false; then :
3529 $as_echo_n "(cached) " >&6
3530 else
3531 if test -n "$CC"; then
3532 ac_cv_prog_CC="$CC" # Let the user override the test.
3533 else
3534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535 for as_dir in $PATH
3537 IFS=$as_save_IFS
3538 test -z "$as_dir" && as_dir=.
3539 for ac_exec_ext in '' $ac_executable_extensions; do
3540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3541 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3543 break 2
3545 done
3546 done
3547 IFS=$as_save_IFS
3551 CC=$ac_cv_prog_CC
3552 if test -n "$CC"; then
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3554 $as_echo "$CC" >&6; }
3555 else
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3557 $as_echo "no" >&6; }
3562 if test -z "$ac_cv_prog_CC"; then
3563 ac_ct_CC=$CC
3564 # Extract the first word of "gcc", so it can be a program name with args.
3565 set dummy gcc; ac_word=$2
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3567 $as_echo_n "checking for $ac_word... " >&6; }
3568 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3569 $as_echo_n "(cached) " >&6
3570 else
3571 if test -n "$ac_ct_CC"; then
3572 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3573 else
3574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 for as_dir in $PATH
3577 IFS=$as_save_IFS
3578 test -z "$as_dir" && as_dir=.
3579 for ac_exec_ext in '' $ac_executable_extensions; do
3580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3581 ac_cv_prog_ac_ct_CC="gcc"
3582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3583 break 2
3585 done
3586 done
3587 IFS=$as_save_IFS
3591 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3592 if test -n "$ac_ct_CC"; then
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3594 $as_echo "$ac_ct_CC" >&6; }
3595 else
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597 $as_echo "no" >&6; }
3600 if test "x$ac_ct_CC" = x; then
3601 CC=""
3602 else
3603 case $cross_compiling:$ac_tool_warned in
3604 yes:)
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3607 ac_tool_warned=yes ;;
3608 esac
3609 CC=$ac_ct_CC
3611 else
3612 CC="$ac_cv_prog_CC"
3615 if test -z "$CC"; then
3616 if test -n "$ac_tool_prefix"; then
3617 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3618 set dummy ${ac_tool_prefix}cc; ac_word=$2
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3620 $as_echo_n "checking for $ac_word... " >&6; }
3621 if ${ac_cv_prog_CC+:} false; then :
3622 $as_echo_n "(cached) " >&6
3623 else
3624 if test -n "$CC"; then
3625 ac_cv_prog_CC="$CC" # Let the user override the test.
3626 else
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 for as_dir in $PATH
3630 IFS=$as_save_IFS
3631 test -z "$as_dir" && as_dir=.
3632 for ac_exec_ext in '' $ac_executable_extensions; do
3633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3634 ac_cv_prog_CC="${ac_tool_prefix}cc"
3635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3636 break 2
3638 done
3639 done
3640 IFS=$as_save_IFS
3644 CC=$ac_cv_prog_CC
3645 if test -n "$CC"; then
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3647 $as_echo "$CC" >&6; }
3648 else
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3650 $as_echo "no" >&6; }
3656 if test -z "$CC"; then
3657 # Extract the first word of "cc", so it can be a program name with args.
3658 set dummy cc; ac_word=$2
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3660 $as_echo_n "checking for $ac_word... " >&6; }
3661 if ${ac_cv_prog_CC+:} false; then :
3662 $as_echo_n "(cached) " >&6
3663 else
3664 if test -n "$CC"; then
3665 ac_cv_prog_CC="$CC" # Let the user override the test.
3666 else
3667 ac_prog_rejected=no
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 for as_dir in $PATH
3671 IFS=$as_save_IFS
3672 test -z "$as_dir" && as_dir=.
3673 for ac_exec_ext in '' $ac_executable_extensions; do
3674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3675 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3676 ac_prog_rejected=yes
3677 continue
3679 ac_cv_prog_CC="cc"
3680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3681 break 2
3683 done
3684 done
3685 IFS=$as_save_IFS
3687 if test $ac_prog_rejected = yes; then
3688 # We found a bogon in the path, so make sure we never use it.
3689 set dummy $ac_cv_prog_CC
3690 shift
3691 if test $# != 0; then
3692 # We chose a different compiler from the bogus one.
3693 # However, it has the same basename, so the bogon will be chosen
3694 # first if we set CC to just the basename; use the full file name.
3695 shift
3696 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3701 CC=$ac_cv_prog_CC
3702 if test -n "$CC"; then
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3704 $as_echo "$CC" >&6; }
3705 else
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707 $as_echo "no" >&6; }
3712 if test -z "$CC"; then
3713 if test -n "$ac_tool_prefix"; then
3714 for ac_prog in cl.exe
3716 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3717 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3719 $as_echo_n "checking for $ac_word... " >&6; }
3720 if ${ac_cv_prog_CC+:} false; then :
3721 $as_echo_n "(cached) " >&6
3722 else
3723 if test -n "$CC"; then
3724 ac_cv_prog_CC="$CC" # Let the user override the test.
3725 else
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 for as_dir in $PATH
3729 IFS=$as_save_IFS
3730 test -z "$as_dir" && as_dir=.
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3733 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3735 break 2
3737 done
3738 done
3739 IFS=$as_save_IFS
3743 CC=$ac_cv_prog_CC
3744 if test -n "$CC"; then
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3746 $as_echo "$CC" >&6; }
3747 else
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749 $as_echo "no" >&6; }
3753 test -n "$CC" && break
3754 done
3756 if test -z "$CC"; then
3757 ac_ct_CC=$CC
3758 for ac_prog in cl.exe
3760 # Extract the first word of "$ac_prog", so it can be a program name with args.
3761 set dummy $ac_prog; ac_word=$2
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3763 $as_echo_n "checking for $ac_word... " >&6; }
3764 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3765 $as_echo_n "(cached) " >&6
3766 else
3767 if test -n "$ac_ct_CC"; then
3768 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3769 else
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771 for as_dir in $PATH
3773 IFS=$as_save_IFS
3774 test -z "$as_dir" && as_dir=.
3775 for ac_exec_ext in '' $ac_executable_extensions; do
3776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3777 ac_cv_prog_ac_ct_CC="$ac_prog"
3778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3779 break 2
3781 done
3782 done
3783 IFS=$as_save_IFS
3787 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3788 if test -n "$ac_ct_CC"; then
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3790 $as_echo "$ac_ct_CC" >&6; }
3791 else
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793 $as_echo "no" >&6; }
3797 test -n "$ac_ct_CC" && break
3798 done
3800 if test "x$ac_ct_CC" = x; then
3801 CC=""
3802 else
3803 case $cross_compiling:$ac_tool_warned in
3804 yes:)
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3807 ac_tool_warned=yes ;;
3808 esac
3809 CC=$ac_ct_CC
3816 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3818 as_fn_error $? "no acceptable C compiler found in \$PATH
3819 See \`config.log' for more details" "$LINENO" 5; }
3821 # Provide some information about the compiler.
3822 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3823 set X $ac_compile
3824 ac_compiler=$2
3825 for ac_option in --version -v -V -qversion; do
3826 { { ac_try="$ac_compiler $ac_option >&5"
3827 case "(($ac_try" in
3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829 *) ac_try_echo=$ac_try;;
3830 esac
3831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3832 $as_echo "$ac_try_echo"; } >&5
3833 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3834 ac_status=$?
3835 if test -s conftest.err; then
3836 sed '10a\
3837 ... rest of stderr output deleted ...
3838 10q' conftest.err >conftest.er1
3839 cat conftest.er1 >&5
3841 rm -f conftest.er1 conftest.err
3842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3843 test $ac_status = 0; }
3844 done
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3850 main ()
3854 return 0;
3856 _ACEOF
3857 ac_clean_files_save=$ac_clean_files
3858 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3859 # Try to create an executable without -o first, disregard a.out.
3860 # It will help us diagnose broken compilers, and finding out an intuition
3861 # of exeext.
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3863 $as_echo_n "checking whether the C compiler works... " >&6; }
3864 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3866 # The possible output files:
3867 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3869 ac_rmfiles=
3870 for ac_file in $ac_files
3872 case $ac_file in
3873 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3874 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3875 esac
3876 done
3877 rm -f $ac_rmfiles
3879 if { { ac_try="$ac_link_default"
3880 case "(($ac_try" in
3881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882 *) ac_try_echo=$ac_try;;
3883 esac
3884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3885 $as_echo "$ac_try_echo"; } >&5
3886 (eval "$ac_link_default") 2>&5
3887 ac_status=$?
3888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3889 test $ac_status = 0; }; then :
3890 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3891 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3892 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3893 # so that the user can short-circuit this test for compilers unknown to
3894 # Autoconf.
3895 for ac_file in $ac_files ''
3897 test -f "$ac_file" || continue
3898 case $ac_file in
3899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3901 [ab].out )
3902 # We found the default executable, but exeext='' is most
3903 # certainly right.
3904 break;;
3905 *.* )
3906 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3907 then :; else
3908 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3910 # We set ac_cv_exeext here because the later test for it is not
3911 # safe: cross compilers may not add the suffix if given an `-o'
3912 # argument, so we may need to know it at that point already.
3913 # Even if this section looks crufty: it has the advantage of
3914 # actually working.
3915 break;;
3917 break;;
3918 esac
3919 done
3920 test "$ac_cv_exeext" = no && ac_cv_exeext=
3922 else
3923 ac_file=''
3925 if test -z "$ac_file"; then :
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3927 $as_echo "no" >&6; }
3928 $as_echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3933 as_fn_error 77 "C compiler cannot create executables
3934 See \`config.log' for more details" "$LINENO" 5; }
3935 else
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3937 $as_echo "yes" >&6; }
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3940 $as_echo_n "checking for C compiler default output file name... " >&6; }
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3942 $as_echo "$ac_file" >&6; }
3943 ac_exeext=$ac_cv_exeext
3945 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3946 ac_clean_files=$ac_clean_files_save
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3948 $as_echo_n "checking for suffix of executables... " >&6; }
3949 if { { ac_try="$ac_link"
3950 case "(($ac_try" in
3951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952 *) ac_try_echo=$ac_try;;
3953 esac
3954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3955 $as_echo "$ac_try_echo"; } >&5
3956 (eval "$ac_link") 2>&5
3957 ac_status=$?
3958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3959 test $ac_status = 0; }; then :
3960 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3961 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3962 # work properly (i.e., refer to `conftest.exe'), while it won't with
3963 # `rm'.
3964 for ac_file in conftest.exe conftest conftest.*; do
3965 test -f "$ac_file" || continue
3966 case $ac_file in
3967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3968 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3969 break;;
3970 * ) break;;
3971 esac
3972 done
3973 else
3974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3976 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3977 See \`config.log' for more details" "$LINENO" 5; }
3979 rm -f conftest conftest$ac_cv_exeext
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3981 $as_echo "$ac_cv_exeext" >&6; }
3983 rm -f conftest.$ac_ext
3984 EXEEXT=$ac_cv_exeext
3985 ac_exeext=$EXEEXT
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3988 #include <stdio.h>
3990 main ()
3992 FILE *f = fopen ("conftest.out", "w");
3993 return ferror (f) || fclose (f) != 0;
3996 return 0;
3998 _ACEOF
3999 ac_clean_files="$ac_clean_files conftest.out"
4000 # Check that the compiler produces executables we can run. If not, either
4001 # the compiler is broken, or we cross compile.
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4003 $as_echo_n "checking whether we are cross compiling... " >&6; }
4004 if test "$cross_compiling" != yes; then
4005 { { ac_try="$ac_link"
4006 case "(($ac_try" in
4007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008 *) ac_try_echo=$ac_try;;
4009 esac
4010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4011 $as_echo "$ac_try_echo"; } >&5
4012 (eval "$ac_link") 2>&5
4013 ac_status=$?
4014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4015 test $ac_status = 0; }
4016 if { ac_try='./conftest$ac_cv_exeext'
4017 { { case "(($ac_try" in
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4020 esac
4021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4022 $as_echo "$ac_try_echo"; } >&5
4023 (eval "$ac_try") 2>&5
4024 ac_status=$?
4025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4026 test $ac_status = 0; }; }; then
4027 cross_compiling=no
4028 else
4029 if test "$cross_compiling" = maybe; then
4030 cross_compiling=yes
4031 else
4032 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4034 as_fn_error $? "cannot run C compiled programs.
4035 If you meant to cross compile, use \`--host'.
4036 See \`config.log' for more details" "$LINENO" 5; }
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4041 $as_echo "$cross_compiling" >&6; }
4043 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4044 ac_clean_files=$ac_clean_files_save
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4046 $as_echo_n "checking for suffix of object files... " >&6; }
4047 if ${ac_cv_objext+:} false; then :
4048 $as_echo_n "(cached) " >&6
4049 else
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4054 main ()
4058 return 0;
4060 _ACEOF
4061 rm -f conftest.o conftest.obj
4062 if { { ac_try="$ac_compile"
4063 case "(($ac_try" in
4064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065 *) ac_try_echo=$ac_try;;
4066 esac
4067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4068 $as_echo "$ac_try_echo"; } >&5
4069 (eval "$ac_compile") 2>&5
4070 ac_status=$?
4071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4072 test $ac_status = 0; }; then :
4073 for ac_file in conftest.o conftest.obj conftest.*; do
4074 test -f "$ac_file" || continue;
4075 case $ac_file in
4076 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4077 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4078 break;;
4079 esac
4080 done
4081 else
4082 $as_echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
4085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4087 as_fn_error $? "cannot compute suffix of object files: cannot compile
4088 See \`config.log' for more details" "$LINENO" 5; }
4090 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4093 $as_echo "$ac_cv_objext" >&6; }
4094 OBJEXT=$ac_cv_objext
4095 ac_objext=$OBJEXT
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4097 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4098 if ${ac_cv_c_compiler_gnu+:} false; then :
4099 $as_echo_n "(cached) " >&6
4100 else
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4105 main ()
4107 #ifndef __GNUC__
4108 choke me
4109 #endif
4112 return 0;
4114 _ACEOF
4115 if ac_fn_c_try_compile "$LINENO"; then :
4116 ac_compiler_gnu=yes
4117 else
4118 ac_compiler_gnu=no
4120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4125 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4126 if test $ac_compiler_gnu = yes; then
4127 GCC=yes
4128 else
4129 GCC=
4131 ac_test_CFLAGS=${CFLAGS+set}
4132 ac_save_CFLAGS=$CFLAGS
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4134 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4135 if ${ac_cv_prog_cc_g+:} false; then :
4136 $as_echo_n "(cached) " >&6
4137 else
4138 ac_save_c_werror_flag=$ac_c_werror_flag
4139 ac_c_werror_flag=yes
4140 ac_cv_prog_cc_g=no
4141 CFLAGS="-g"
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4146 main ()
4150 return 0;
4152 _ACEOF
4153 if ac_fn_c_try_compile "$LINENO"; then :
4154 ac_cv_prog_cc_g=yes
4155 else
4156 CFLAGS=""
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4161 main ()
4165 return 0;
4167 _ACEOF
4168 if ac_fn_c_try_compile "$LINENO"; then :
4170 else
4171 ac_c_werror_flag=$ac_save_c_werror_flag
4172 CFLAGS="-g"
4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h. */
4177 main ()
4181 return 0;
4183 _ACEOF
4184 if ac_fn_c_try_compile "$LINENO"; then :
4185 ac_cv_prog_cc_g=yes
4187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4192 ac_c_werror_flag=$ac_save_c_werror_flag
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4195 $as_echo "$ac_cv_prog_cc_g" >&6; }
4196 if test "$ac_test_CFLAGS" = set; then
4197 CFLAGS=$ac_save_CFLAGS
4198 elif test $ac_cv_prog_cc_g = yes; then
4199 if test "$GCC" = yes; then
4200 CFLAGS="-g -O2"
4201 else
4202 CFLAGS="-g"
4204 else
4205 if test "$GCC" = yes; then
4206 CFLAGS="-O2"
4207 else
4208 CFLAGS=
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4212 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4213 if ${ac_cv_prog_cc_c89+:} false; then :
4214 $as_echo_n "(cached) " >&6
4215 else
4216 ac_cv_prog_cc_c89=no
4217 ac_save_CC=$CC
4218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219 /* end confdefs.h. */
4220 #include <stdarg.h>
4221 #include <stdio.h>
4222 struct stat;
4223 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4224 struct buf { int x; };
4225 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4226 static char *e (p, i)
4227 char **p;
4228 int i;
4230 return p[i];
4232 static char *f (char * (*g) (char **, int), char **p, ...)
4234 char *s;
4235 va_list v;
4236 va_start (v,p);
4237 s = g (p, va_arg (v,int));
4238 va_end (v);
4239 return s;
4242 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4243 function prototypes and stuff, but not '\xHH' hex character constants.
4244 These don't provoke an error unfortunately, instead are silently treated
4245 as 'x'. The following induces an error, until -std is added to get
4246 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4247 array size at least. It's necessary to write '\x00'==0 to get something
4248 that's true only with -std. */
4249 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4251 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4252 inside strings and character constants. */
4253 #define FOO(x) 'x'
4254 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4256 int test (int i, double x);
4257 struct s1 {int (*f) (int a);};
4258 struct s2 {int (*f) (double a);};
4259 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4260 int argc;
4261 char **argv;
4263 main ()
4265 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4267 return 0;
4269 _ACEOF
4270 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4271 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4273 CC="$ac_save_CC $ac_arg"
4274 if ac_fn_c_try_compile "$LINENO"; then :
4275 ac_cv_prog_cc_c89=$ac_arg
4277 rm -f core conftest.err conftest.$ac_objext
4278 test "x$ac_cv_prog_cc_c89" != "xno" && break
4279 done
4280 rm -f conftest.$ac_ext
4281 CC=$ac_save_CC
4284 # AC_CACHE_VAL
4285 case "x$ac_cv_prog_cc_c89" in
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4288 $as_echo "none needed" >&6; } ;;
4289 xno)
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4291 $as_echo "unsupported" >&6; } ;;
4293 CC="$CC $ac_cv_prog_cc_c89"
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4295 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4296 esac
4297 if test "x$ac_cv_prog_cc_c89" != xno; then :
4301 ac_ext=c
4302 ac_cpp='$CPP $CPPFLAGS'
4303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4307 ac_ext=c
4308 ac_cpp='$CPP $CPPFLAGS'
4309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4313 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4314 if ${am_cv_prog_cc_c_o+:} false; then :
4315 $as_echo_n "(cached) " >&6
4316 else
4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h. */
4321 main ()
4325 return 0;
4327 _ACEOF
4328 # Make sure it works both with $CC and with simple cc.
4329 # Following AC_PROG_CC_C_O, we do the test twice because some
4330 # compilers refuse to overwrite an existing .o file with -o,
4331 # though they will create one.
4332 am_cv_prog_cc_c_o=yes
4333 for am_i in 1 2; do
4334 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4335 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4336 ac_status=$?
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } \
4339 && test -f conftest2.$ac_objext; then
4340 : OK
4341 else
4342 am_cv_prog_cc_c_o=no
4343 break
4345 done
4346 rm -f core conftest*
4347 unset am_i
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4350 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4351 if test "$am_cv_prog_cc_c_o" != yes; then
4352 # Losing compiler, so override with the script.
4353 # FIXME: It is wrong to rewrite CC.
4354 # But if we don't then we get into trouble of one sort or another.
4355 # A longer-term fix would be to have automake use am__CC in this case,
4356 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4357 CC="$am_aux_dir/compile $CC"
4359 ac_ext=c
4360 ac_cpp='$CPP $CPPFLAGS'
4361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4365 DEPDIR="${am__leading_dot}deps"
4367 ac_config_commands="$ac_config_commands depfiles"
4370 am_make=${MAKE-make}
4371 cat > confinc << 'END'
4372 am__doit:
4373 @echo this is the am__doit target
4374 .PHONY: am__doit
4376 # If we don't find an include directive, just comment out the code.
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4378 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4379 am__include="#"
4380 am__quote=
4381 _am_result=none
4382 # First try GNU make style include.
4383 echo "include confinc" > confmf
4384 # Ignore all kinds of additional output from 'make'.
4385 case `$am_make -s -f confmf 2> /dev/null` in #(
4386 *the\ am__doit\ target*)
4387 am__include=include
4388 am__quote=
4389 _am_result=GNU
4391 esac
4392 # Now try BSD make style include.
4393 if test "$am__include" = "#"; then
4394 echo '.include "confinc"' > confmf
4395 case `$am_make -s -f confmf 2> /dev/null` in #(
4396 *the\ am__doit\ target*)
4397 am__include=.include
4398 am__quote="\""
4399 _am_result=BSD
4401 esac
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4406 $as_echo "$_am_result" >&6; }
4407 rm -f confinc confmf
4409 # Check whether --enable-dependency-tracking was given.
4410 if test "${enable_dependency_tracking+set}" = set; then :
4411 enableval=$enable_dependency_tracking;
4414 if test "x$enable_dependency_tracking" != xno; then
4415 am_depcomp="$ac_aux_dir/depcomp"
4416 AMDEPBACKSLASH='\'
4417 am__nodep='_no'
4419 if test "x$enable_dependency_tracking" != xno; then
4420 AMDEP_TRUE=
4421 AMDEP_FALSE='#'
4422 else
4423 AMDEP_TRUE='#'
4424 AMDEP_FALSE=
4429 depcc="$CC" am_compiler_list=
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4432 $as_echo_n "checking dependency style of $depcc... " >&6; }
4433 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4434 $as_echo_n "(cached) " >&6
4435 else
4436 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4437 # We make a subdir and do the tests there. Otherwise we can end up
4438 # making bogus files that we don't know about and never remove. For
4439 # instance it was reported that on HP-UX the gcc test will end up
4440 # making a dummy file named 'D' -- because '-MD' means "put the output
4441 # in D".
4442 rm -rf conftest.dir
4443 mkdir conftest.dir
4444 # Copy depcomp to subdir because otherwise we won't find it if we're
4445 # using a relative directory.
4446 cp "$am_depcomp" conftest.dir
4447 cd conftest.dir
4448 # We will build objects and dependencies in a subdirectory because
4449 # it helps to detect inapplicable dependency modes. For instance
4450 # both Tru64's cc and ICC support -MD to output dependencies as a
4451 # side effect of compilation, but ICC will put the dependencies in
4452 # the current directory while Tru64 will put them in the object
4453 # directory.
4454 mkdir sub
4456 am_cv_CC_dependencies_compiler_type=none
4457 if test "$am_compiler_list" = ""; then
4458 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4460 am__universal=false
4461 case " $depcc " in #(
4462 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4463 esac
4465 for depmode in $am_compiler_list; do
4466 # Setup a source with many dependencies, because some compilers
4467 # like to wrap large dependency lists on column 80 (with \), and
4468 # we should not choose a depcomp mode which is confused by this.
4470 # We need to recreate these files for each test, as the compiler may
4471 # overwrite some of them when testing with obscure command lines.
4472 # This happens at least with the AIX C compiler.
4473 : > sub/conftest.c
4474 for i in 1 2 3 4 5 6; do
4475 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4476 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4477 # Solaris 10 /bin/sh.
4478 echo '/* dummy */' > sub/conftst$i.h
4479 done
4480 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4482 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4483 # mode. It turns out that the SunPro C++ compiler does not properly
4484 # handle '-M -o', and we need to detect this. Also, some Intel
4485 # versions had trouble with output in subdirs.
4486 am__obj=sub/conftest.${OBJEXT-o}
4487 am__minus_obj="-o $am__obj"
4488 case $depmode in
4489 gcc)
4490 # This depmode causes a compiler race in universal mode.
4491 test "$am__universal" = false || continue
4493 nosideeffect)
4494 # After this tag, mechanisms are not by side-effect, so they'll
4495 # only be used when explicitly requested.
4496 if test "x$enable_dependency_tracking" = xyes; then
4497 continue
4498 else
4499 break
4502 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4503 # This compiler won't grok '-c -o', but also, the minuso test has
4504 # not run yet. These depmodes are late enough in the game, and
4505 # so weak that their functioning should not be impacted.
4506 am__obj=conftest.${OBJEXT-o}
4507 am__minus_obj=
4509 none) break ;;
4510 esac
4511 if depmode=$depmode \
4512 source=sub/conftest.c object=$am__obj \
4513 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4514 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4515 >/dev/null 2>conftest.err &&
4516 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4517 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4518 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4519 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4520 # icc doesn't choke on unknown options, it will just issue warnings
4521 # or remarks (even with -Werror). So we grep stderr for any message
4522 # that says an option was ignored or not supported.
4523 # When given -MP, icc 7.0 and 7.1 complain thusly:
4524 # icc: Command line warning: ignoring option '-M'; no argument required
4525 # The diagnosis changed in icc 8.0:
4526 # icc: Command line remark: option '-MP' not supported
4527 if (grep 'ignoring option' conftest.err ||
4528 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4529 am_cv_CC_dependencies_compiler_type=$depmode
4530 break
4533 done
4535 cd ..
4536 rm -rf conftest.dir
4537 else
4538 am_cv_CC_dependencies_compiler_type=none
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4543 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4544 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4547 test "x$enable_dependency_tracking" != xno \
4548 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4549 am__fastdepCC_TRUE=
4550 am__fastdepCC_FALSE='#'
4551 else
4552 am__fastdepCC_TRUE='#'
4553 am__fastdepCC_FALSE=
4557 ac_ext=cpp
4558 ac_cpp='$CXXCPP $CPPFLAGS'
4559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4562 if test -z "$CXX"; then
4563 if test -n "$CCC"; then
4564 CXX=$CCC
4565 else
4566 if test -n "$ac_tool_prefix"; then
4567 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4569 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4570 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4572 $as_echo_n "checking for $ac_word... " >&6; }
4573 if ${ac_cv_prog_CXX+:} false; then :
4574 $as_echo_n "(cached) " >&6
4575 else
4576 if test -n "$CXX"; then
4577 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4578 else
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH
4582 IFS=$as_save_IFS
4583 test -z "$as_dir" && as_dir=.
4584 for ac_exec_ext in '' $ac_executable_extensions; do
4585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4586 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 break 2
4590 done
4591 done
4592 IFS=$as_save_IFS
4596 CXX=$ac_cv_prog_CXX
4597 if test -n "$CXX"; then
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4599 $as_echo "$CXX" >&6; }
4600 else
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4602 $as_echo "no" >&6; }
4606 test -n "$CXX" && break
4607 done
4609 if test -z "$CXX"; then
4610 ac_ct_CXX=$CXX
4611 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4613 # Extract the first word of "$ac_prog", so it can be a program name with args.
4614 set dummy $ac_prog; ac_word=$2
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4616 $as_echo_n "checking for $ac_word... " >&6; }
4617 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4618 $as_echo_n "(cached) " >&6
4619 else
4620 if test -n "$ac_ct_CXX"; then
4621 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4622 else
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 for as_dir in $PATH
4626 IFS=$as_save_IFS
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4630 ac_cv_prog_ac_ct_CXX="$ac_prog"
4631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4632 break 2
4634 done
4635 done
4636 IFS=$as_save_IFS
4640 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4641 if test -n "$ac_ct_CXX"; then
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4643 $as_echo "$ac_ct_CXX" >&6; }
4644 else
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646 $as_echo "no" >&6; }
4650 test -n "$ac_ct_CXX" && break
4651 done
4653 if test "x$ac_ct_CXX" = x; then
4654 CXX="g++"
4655 else
4656 case $cross_compiling:$ac_tool_warned in
4657 yes:)
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4660 ac_tool_warned=yes ;;
4661 esac
4662 CXX=$ac_ct_CXX
4668 # Provide some information about the compiler.
4669 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4670 set X $ac_compile
4671 ac_compiler=$2
4672 for ac_option in --version -v -V -qversion; do
4673 { { ac_try="$ac_compiler $ac_option >&5"
4674 case "(($ac_try" in
4675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676 *) ac_try_echo=$ac_try;;
4677 esac
4678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4679 $as_echo "$ac_try_echo"; } >&5
4680 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4681 ac_status=$?
4682 if test -s conftest.err; then
4683 sed '10a\
4684 ... rest of stderr output deleted ...
4685 10q' conftest.err >conftest.er1
4686 cat conftest.er1 >&5
4688 rm -f conftest.er1 conftest.err
4689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4690 test $ac_status = 0; }
4691 done
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4694 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4695 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4696 $as_echo_n "(cached) " >&6
4697 else
4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h. */
4702 main ()
4704 #ifndef __GNUC__
4705 choke me
4706 #endif
4709 return 0;
4711 _ACEOF
4712 if ac_fn_cxx_try_compile "$LINENO"; then :
4713 ac_compiler_gnu=yes
4714 else
4715 ac_compiler_gnu=no
4717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4718 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4722 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4723 if test $ac_compiler_gnu = yes; then
4724 GXX=yes
4725 else
4726 GXX=
4728 ac_test_CXXFLAGS=${CXXFLAGS+set}
4729 ac_save_CXXFLAGS=$CXXFLAGS
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4731 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4732 if ${ac_cv_prog_cxx_g+:} false; then :
4733 $as_echo_n "(cached) " >&6
4734 else
4735 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4736 ac_cxx_werror_flag=yes
4737 ac_cv_prog_cxx_g=no
4738 CXXFLAGS="-g"
4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h. */
4743 main ()
4747 return 0;
4749 _ACEOF
4750 if ac_fn_cxx_try_compile "$LINENO"; then :
4751 ac_cv_prog_cxx_g=yes
4752 else
4753 CXXFLAGS=""
4754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h. */
4758 main ()
4762 return 0;
4764 _ACEOF
4765 if ac_fn_cxx_try_compile "$LINENO"; then :
4767 else
4768 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4769 CXXFLAGS="-g"
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771 /* end confdefs.h. */
4774 main ()
4778 return 0;
4780 _ACEOF
4781 if ac_fn_cxx_try_compile "$LINENO"; then :
4782 ac_cv_prog_cxx_g=yes
4784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4789 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4792 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4793 if test "$ac_test_CXXFLAGS" = set; then
4794 CXXFLAGS=$ac_save_CXXFLAGS
4795 elif test $ac_cv_prog_cxx_g = yes; then
4796 if test "$GXX" = yes; then
4797 CXXFLAGS="-g -O2"
4798 else
4799 CXXFLAGS="-g"
4801 else
4802 if test "$GXX" = yes; then
4803 CXXFLAGS="-O2"
4804 else
4805 CXXFLAGS=
4808 ac_ext=c
4809 ac_cpp='$CPP $CPPFLAGS'
4810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4814 depcc="$CXX" am_compiler_list=
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4817 $as_echo_n "checking dependency style of $depcc... " >&6; }
4818 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4819 $as_echo_n "(cached) " >&6
4820 else
4821 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4822 # We make a subdir and do the tests there. Otherwise we can end up
4823 # making bogus files that we don't know about and never remove. For
4824 # instance it was reported that on HP-UX the gcc test will end up
4825 # making a dummy file named 'D' -- because '-MD' means "put the output
4826 # in D".
4827 rm -rf conftest.dir
4828 mkdir conftest.dir
4829 # Copy depcomp to subdir because otherwise we won't find it if we're
4830 # using a relative directory.
4831 cp "$am_depcomp" conftest.dir
4832 cd conftest.dir
4833 # We will build objects and dependencies in a subdirectory because
4834 # it helps to detect inapplicable dependency modes. For instance
4835 # both Tru64's cc and ICC support -MD to output dependencies as a
4836 # side effect of compilation, but ICC will put the dependencies in
4837 # the current directory while Tru64 will put them in the object
4838 # directory.
4839 mkdir sub
4841 am_cv_CXX_dependencies_compiler_type=none
4842 if test "$am_compiler_list" = ""; then
4843 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4845 am__universal=false
4846 case " $depcc " in #(
4847 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4848 esac
4850 for depmode in $am_compiler_list; do
4851 # Setup a source with many dependencies, because some compilers
4852 # like to wrap large dependency lists on column 80 (with \), and
4853 # we should not choose a depcomp mode which is confused by this.
4855 # We need to recreate these files for each test, as the compiler may
4856 # overwrite some of them when testing with obscure command lines.
4857 # This happens at least with the AIX C compiler.
4858 : > sub/conftest.c
4859 for i in 1 2 3 4 5 6; do
4860 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4861 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4862 # Solaris 10 /bin/sh.
4863 echo '/* dummy */' > sub/conftst$i.h
4864 done
4865 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4867 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4868 # mode. It turns out that the SunPro C++ compiler does not properly
4869 # handle '-M -o', and we need to detect this. Also, some Intel
4870 # versions had trouble with output in subdirs.
4871 am__obj=sub/conftest.${OBJEXT-o}
4872 am__minus_obj="-o $am__obj"
4873 case $depmode in
4874 gcc)
4875 # This depmode causes a compiler race in universal mode.
4876 test "$am__universal" = false || continue
4878 nosideeffect)
4879 # After this tag, mechanisms are not by side-effect, so they'll
4880 # only be used when explicitly requested.
4881 if test "x$enable_dependency_tracking" = xyes; then
4882 continue
4883 else
4884 break
4887 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4888 # This compiler won't grok '-c -o', but also, the minuso test has
4889 # not run yet. These depmodes are late enough in the game, and
4890 # so weak that their functioning should not be impacted.
4891 am__obj=conftest.${OBJEXT-o}
4892 am__minus_obj=
4894 none) break ;;
4895 esac
4896 if depmode=$depmode \
4897 source=sub/conftest.c object=$am__obj \
4898 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4899 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4900 >/dev/null 2>conftest.err &&
4901 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4902 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4903 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4904 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4905 # icc doesn't choke on unknown options, it will just issue warnings
4906 # or remarks (even with -Werror). So we grep stderr for any message
4907 # that says an option was ignored or not supported.
4908 # When given -MP, icc 7.0 and 7.1 complain thusly:
4909 # icc: Command line warning: ignoring option '-M'; no argument required
4910 # The diagnosis changed in icc 8.0:
4911 # icc: Command line remark: option '-MP' not supported
4912 if (grep 'ignoring option' conftest.err ||
4913 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4914 am_cv_CXX_dependencies_compiler_type=$depmode
4915 break
4918 done
4920 cd ..
4921 rm -rf conftest.dir
4922 else
4923 am_cv_CXX_dependencies_compiler_type=none
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4928 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4929 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4932 test "x$enable_dependency_tracking" != xno \
4933 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4934 am__fastdepCXX_TRUE=
4935 am__fastdepCXX_FALSE='#'
4936 else
4937 am__fastdepCXX_TRUE='#'
4938 am__fastdepCXX_FALSE=
4942 CFLAGS=$save_CFLAGS
4948 # By default we simply use the C compiler to build assembly code.
4950 test "${CCAS+set}" = set || CCAS=$CC
4951 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4955 depcc="$CCAS" am_compiler_list=
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4958 $as_echo_n "checking dependency style of $depcc... " >&6; }
4959 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4960 $as_echo_n "(cached) " >&6
4961 else
4962 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4963 # We make a subdir and do the tests there. Otherwise we can end up
4964 # making bogus files that we don't know about and never remove. For
4965 # instance it was reported that on HP-UX the gcc test will end up
4966 # making a dummy file named 'D' -- because '-MD' means "put the output
4967 # in D".
4968 rm -rf conftest.dir
4969 mkdir conftest.dir
4970 # Copy depcomp to subdir because otherwise we won't find it if we're
4971 # using a relative directory.
4972 cp "$am_depcomp" conftest.dir
4973 cd conftest.dir
4974 # We will build objects and dependencies in a subdirectory because
4975 # it helps to detect inapplicable dependency modes. For instance
4976 # both Tru64's cc and ICC support -MD to output dependencies as a
4977 # side effect of compilation, but ICC will put the dependencies in
4978 # the current directory while Tru64 will put them in the object
4979 # directory.
4980 mkdir sub
4982 am_cv_CCAS_dependencies_compiler_type=none
4983 if test "$am_compiler_list" = ""; then
4984 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4986 am__universal=false
4989 for depmode in $am_compiler_list; do
4990 # Setup a source with many dependencies, because some compilers
4991 # like to wrap large dependency lists on column 80 (with \), and
4992 # we should not choose a depcomp mode which is confused by this.
4994 # We need to recreate these files for each test, as the compiler may
4995 # overwrite some of them when testing with obscure command lines.
4996 # This happens at least with the AIX C compiler.
4997 : > sub/conftest.c
4998 for i in 1 2 3 4 5 6; do
4999 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5000 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5001 # Solaris 10 /bin/sh.
5002 echo '/* dummy */' > sub/conftst$i.h
5003 done
5004 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5006 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5007 # mode. It turns out that the SunPro C++ compiler does not properly
5008 # handle '-M -o', and we need to detect this. Also, some Intel
5009 # versions had trouble with output in subdirs.
5010 am__obj=sub/conftest.${OBJEXT-o}
5011 am__minus_obj="-o $am__obj"
5012 case $depmode in
5013 gcc)
5014 # This depmode causes a compiler race in universal mode.
5015 test "$am__universal" = false || continue
5017 nosideeffect)
5018 # After this tag, mechanisms are not by side-effect, so they'll
5019 # only be used when explicitly requested.
5020 if test "x$enable_dependency_tracking" = xyes; then
5021 continue
5022 else
5023 break
5026 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5027 # This compiler won't grok '-c -o', but also, the minuso test has
5028 # not run yet. These depmodes are late enough in the game, and
5029 # so weak that their functioning should not be impacted.
5030 am__obj=conftest.${OBJEXT-o}
5031 am__minus_obj=
5033 none) break ;;
5034 esac
5035 if depmode=$depmode \
5036 source=sub/conftest.c object=$am__obj \
5037 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5038 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5039 >/dev/null 2>conftest.err &&
5040 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5041 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5042 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5043 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5044 # icc doesn't choke on unknown options, it will just issue warnings
5045 # or remarks (even with -Werror). So we grep stderr for any message
5046 # that says an option was ignored or not supported.
5047 # When given -MP, icc 7.0 and 7.1 complain thusly:
5048 # icc: Command line warning: ignoring option '-M'; no argument required
5049 # The diagnosis changed in icc 8.0:
5050 # icc: Command line remark: option '-MP' not supported
5051 if (grep 'ignoring option' conftest.err ||
5052 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5053 am_cv_CCAS_dependencies_compiler_type=$depmode
5054 break
5057 done
5059 cd ..
5060 rm -rf conftest.dir
5061 else
5062 am_cv_CCAS_dependencies_compiler_type=none
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5067 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5068 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5071 test "x$enable_dependency_tracking" != xno \
5072 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5073 am__fastdepCCAS_TRUE=
5074 am__fastdepCCAS_FALSE='#'
5075 else
5076 am__fastdepCCAS_TRUE='#'
5077 am__fastdepCCAS_FALSE=
5082 case `pwd` in
5083 *\ * | *\ *)
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5085 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5086 esac
5090 macro_version='2.2.7a'
5091 macro_revision='1.3134'
5105 ltmain="$ac_aux_dir/ltmain.sh"
5107 # Backslashify metacharacters that are still active within
5108 # double-quoted strings.
5109 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5111 # Same as above, but do not quote variable references.
5112 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5114 # Sed substitution to delay expansion of an escaped shell variable in a
5115 # double_quote_subst'ed string.
5116 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5118 # Sed substitution to delay expansion of an escaped single quote.
5119 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5121 # Sed substitution to avoid accidental globbing in evaled expressions
5122 no_glob_subst='s/\*/\\\*/g'
5124 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5125 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5126 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5129 $as_echo_n "checking how to print strings... " >&6; }
5130 # Test print first, because it will be a builtin if present.
5131 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5132 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5133 ECHO='print -r --'
5134 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5135 ECHO='printf %s\n'
5136 else
5137 # Use this function as a fallback that always works.
5138 func_fallback_echo ()
5140 eval 'cat <<_LTECHO_EOF
5142 _LTECHO_EOF'
5144 ECHO='func_fallback_echo'
5147 # func_echo_all arg...
5148 # Invoke $ECHO with all args, space-separated.
5149 func_echo_all ()
5151 $ECHO ""
5154 case "$ECHO" in
5155 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5156 $as_echo "printf" >&6; } ;;
5157 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5158 $as_echo "print -r" >&6; } ;;
5159 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5160 $as_echo "cat" >&6; } ;;
5161 esac
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5177 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5178 if ${ac_cv_path_SED+:} false; then :
5179 $as_echo_n "(cached) " >&6
5180 else
5181 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5182 for ac_i in 1 2 3 4 5 6 7; do
5183 ac_script="$ac_script$as_nl$ac_script"
5184 done
5185 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5186 { ac_script=; unset ac_script;}
5187 if test -z "$SED"; then
5188 ac_path_SED_found=false
5189 # Loop through the user's path and test for each of PROGNAME-LIST
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH
5193 IFS=$as_save_IFS
5194 test -z "$as_dir" && as_dir=.
5195 for ac_prog in sed gsed; do
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5198 as_fn_executable_p "$ac_path_SED" || continue
5199 # Check for GNU ac_path_SED and select it if it is found.
5200 # Check for GNU $ac_path_SED
5201 case `"$ac_path_SED" --version 2>&1` in
5202 *GNU*)
5203 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5205 ac_count=0
5206 $as_echo_n 0123456789 >"conftest.in"
5207 while :
5209 cat "conftest.in" "conftest.in" >"conftest.tmp"
5210 mv "conftest.tmp" "conftest.in"
5211 cp "conftest.in" "conftest.nl"
5212 $as_echo '' >> "conftest.nl"
5213 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5214 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5215 as_fn_arith $ac_count + 1 && ac_count=$as_val
5216 if test $ac_count -gt ${ac_path_SED_max-0}; then
5217 # Best one so far, save it but keep looking for a better one
5218 ac_cv_path_SED="$ac_path_SED"
5219 ac_path_SED_max=$ac_count
5221 # 10*(2^10) chars as input seems more than enough
5222 test $ac_count -gt 10 && break
5223 done
5224 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5225 esac
5227 $ac_path_SED_found && break 3
5228 done
5229 done
5230 done
5231 IFS=$as_save_IFS
5232 if test -z "$ac_cv_path_SED"; then
5233 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5235 else
5236 ac_cv_path_SED=$SED
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5241 $as_echo "$ac_cv_path_SED" >&6; }
5242 SED="$ac_cv_path_SED"
5243 rm -f conftest.sed
5245 test -z "$SED" && SED=sed
5246 Xsed="$SED -e 1s/^X//"
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5259 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5260 if ${ac_cv_path_GREP+:} false; then :
5261 $as_echo_n "(cached) " >&6
5262 else
5263 if test -z "$GREP"; then
5264 ac_path_GREP_found=false
5265 # Loop through the user's path and test for each of PROGNAME-LIST
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5269 IFS=$as_save_IFS
5270 test -z "$as_dir" && as_dir=.
5271 for ac_prog in grep ggrep; do
5272 for ac_exec_ext in '' $ac_executable_extensions; do
5273 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5274 as_fn_executable_p "$ac_path_GREP" || continue
5275 # Check for GNU ac_path_GREP and select it if it is found.
5276 # Check for GNU $ac_path_GREP
5277 case `"$ac_path_GREP" --version 2>&1` in
5278 *GNU*)
5279 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5281 ac_count=0
5282 $as_echo_n 0123456789 >"conftest.in"
5283 while :
5285 cat "conftest.in" "conftest.in" >"conftest.tmp"
5286 mv "conftest.tmp" "conftest.in"
5287 cp "conftest.in" "conftest.nl"
5288 $as_echo 'GREP' >> "conftest.nl"
5289 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5290 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5291 as_fn_arith $ac_count + 1 && ac_count=$as_val
5292 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5293 # Best one so far, save it but keep looking for a better one
5294 ac_cv_path_GREP="$ac_path_GREP"
5295 ac_path_GREP_max=$ac_count
5297 # 10*(2^10) chars as input seems more than enough
5298 test $ac_count -gt 10 && break
5299 done
5300 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5301 esac
5303 $ac_path_GREP_found && break 3
5304 done
5305 done
5306 done
5307 IFS=$as_save_IFS
5308 if test -z "$ac_cv_path_GREP"; then
5309 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5311 else
5312 ac_cv_path_GREP=$GREP
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5317 $as_echo "$ac_cv_path_GREP" >&6; }
5318 GREP="$ac_cv_path_GREP"
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5322 $as_echo_n "checking for egrep... " >&6; }
5323 if ${ac_cv_path_EGREP+:} false; then :
5324 $as_echo_n "(cached) " >&6
5325 else
5326 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5327 then ac_cv_path_EGREP="$GREP -E"
5328 else
5329 if test -z "$EGREP"; then
5330 ac_path_EGREP_found=false
5331 # Loop through the user's path and test for each of PROGNAME-LIST
5332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5335 IFS=$as_save_IFS
5336 test -z "$as_dir" && as_dir=.
5337 for ac_prog in egrep; do
5338 for ac_exec_ext in '' $ac_executable_extensions; do
5339 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5340 as_fn_executable_p "$ac_path_EGREP" || continue
5341 # Check for GNU ac_path_EGREP and select it if it is found.
5342 # Check for GNU $ac_path_EGREP
5343 case `"$ac_path_EGREP" --version 2>&1` in
5344 *GNU*)
5345 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5347 ac_count=0
5348 $as_echo_n 0123456789 >"conftest.in"
5349 while :
5351 cat "conftest.in" "conftest.in" >"conftest.tmp"
5352 mv "conftest.tmp" "conftest.in"
5353 cp "conftest.in" "conftest.nl"
5354 $as_echo 'EGREP' >> "conftest.nl"
5355 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5356 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5357 as_fn_arith $ac_count + 1 && ac_count=$as_val
5358 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5359 # Best one so far, save it but keep looking for a better one
5360 ac_cv_path_EGREP="$ac_path_EGREP"
5361 ac_path_EGREP_max=$ac_count
5363 # 10*(2^10) chars as input seems more than enough
5364 test $ac_count -gt 10 && break
5365 done
5366 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5367 esac
5369 $ac_path_EGREP_found && break 3
5370 done
5371 done
5372 done
5373 IFS=$as_save_IFS
5374 if test -z "$ac_cv_path_EGREP"; then
5375 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5377 else
5378 ac_cv_path_EGREP=$EGREP
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5384 $as_echo "$ac_cv_path_EGREP" >&6; }
5385 EGREP="$ac_cv_path_EGREP"
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5389 $as_echo_n "checking for fgrep... " >&6; }
5390 if ${ac_cv_path_FGREP+:} false; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5394 then ac_cv_path_FGREP="$GREP -F"
5395 else
5396 if test -z "$FGREP"; then
5397 ac_path_FGREP_found=false
5398 # Loop through the user's path and test for each of PROGNAME-LIST
5399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5402 IFS=$as_save_IFS
5403 test -z "$as_dir" && as_dir=.
5404 for ac_prog in fgrep; do
5405 for ac_exec_ext in '' $ac_executable_extensions; do
5406 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5407 as_fn_executable_p "$ac_path_FGREP" || continue
5408 # Check for GNU ac_path_FGREP and select it if it is found.
5409 # Check for GNU $ac_path_FGREP
5410 case `"$ac_path_FGREP" --version 2>&1` in
5411 *GNU*)
5412 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5414 ac_count=0
5415 $as_echo_n 0123456789 >"conftest.in"
5416 while :
5418 cat "conftest.in" "conftest.in" >"conftest.tmp"
5419 mv "conftest.tmp" "conftest.in"
5420 cp "conftest.in" "conftest.nl"
5421 $as_echo 'FGREP' >> "conftest.nl"
5422 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5423 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5424 as_fn_arith $ac_count + 1 && ac_count=$as_val
5425 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5426 # Best one so far, save it but keep looking for a better one
5427 ac_cv_path_FGREP="$ac_path_FGREP"
5428 ac_path_FGREP_max=$ac_count
5430 # 10*(2^10) chars as input seems more than enough
5431 test $ac_count -gt 10 && break
5432 done
5433 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5434 esac
5436 $ac_path_FGREP_found && break 3
5437 done
5438 done
5439 done
5440 IFS=$as_save_IFS
5441 if test -z "$ac_cv_path_FGREP"; then
5442 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5444 else
5445 ac_cv_path_FGREP=$FGREP
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5451 $as_echo "$ac_cv_path_FGREP" >&6; }
5452 FGREP="$ac_cv_path_FGREP"
5455 test -z "$GREP" && GREP=grep
5475 # Check whether --with-gnu-ld was given.
5476 if test "${with_gnu_ld+set}" = set; then :
5477 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5478 else
5479 with_gnu_ld=no
5482 ac_prog=ld
5483 if test "$GCC" = yes; then
5484 # Check if gcc -print-prog-name=ld gives a path.
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5486 $as_echo_n "checking for ld used by $CC... " >&6; }
5487 case $host in
5488 *-*-mingw*)
5489 # gcc leaves a trailing carriage return which upsets mingw
5490 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5492 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5493 esac
5494 case $ac_prog in
5495 # Accept absolute paths.
5496 [\\/]* | ?:[\\/]*)
5497 re_direlt='/[^/][^/]*/\.\./'
5498 # Canonicalize the pathname of ld
5499 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5500 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5501 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5502 done
5503 test -z "$LD" && LD="$ac_prog"
5506 # If it fails, then pretend we aren't using GCC.
5507 ac_prog=ld
5510 # If it is relative, then search for the first ld in PATH.
5511 with_gnu_ld=unknown
5513 esac
5514 elif test "$with_gnu_ld" = yes; then
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5516 $as_echo_n "checking for GNU ld... " >&6; }
5517 else
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5519 $as_echo_n "checking for non-GNU ld... " >&6; }
5521 if ${lt_cv_path_LD+:} false; then :
5522 $as_echo_n "(cached) " >&6
5523 else
5524 if test -z "$LD"; then
5525 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5526 for ac_dir in $PATH; do
5527 IFS="$lt_save_ifs"
5528 test -z "$ac_dir" && ac_dir=.
5529 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5530 lt_cv_path_LD="$ac_dir/$ac_prog"
5531 # Check to see if the program is GNU ld. I'd rather use --version,
5532 # but apparently some variants of GNU ld only accept -v.
5533 # Break only if it was the GNU/non-GNU ld that we prefer.
5534 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5535 *GNU* | *'with BFD'*)
5536 test "$with_gnu_ld" != no && break
5539 test "$with_gnu_ld" != yes && break
5541 esac
5543 done
5544 IFS="$lt_save_ifs"
5545 else
5546 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5550 LD="$lt_cv_path_LD"
5551 if test -n "$LD"; then
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5553 $as_echo "$LD" >&6; }
5554 else
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556 $as_echo "no" >&6; }
5558 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5560 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5561 if ${lt_cv_prog_gnu_ld+:} false; then :
5562 $as_echo_n "(cached) " >&6
5563 else
5564 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5565 case `$LD -v 2>&1 </dev/null` in
5566 *GNU* | *'with BFD'*)
5567 lt_cv_prog_gnu_ld=yes
5570 lt_cv_prog_gnu_ld=no
5572 esac
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5575 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5576 with_gnu_ld=$lt_cv_prog_gnu_ld
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5587 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5588 if ${lt_cv_path_NM+:} false; then :
5589 $as_echo_n "(cached) " >&6
5590 else
5591 if test -n "$NM"; then
5592 # Let the user override the test.
5593 lt_cv_path_NM="$NM"
5594 else
5595 lt_nm_to_check="${ac_tool_prefix}nm"
5596 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5597 lt_nm_to_check="$lt_nm_to_check nm"
5599 for lt_tmp_nm in $lt_nm_to_check; do
5600 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5601 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5602 IFS="$lt_save_ifs"
5603 test -z "$ac_dir" && ac_dir=.
5604 tmp_nm="$ac_dir/$lt_tmp_nm"
5605 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5606 # Check to see if the nm accepts a BSD-compat flag.
5607 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5608 # nm: unknown option "B" ignored
5609 # Tru64's nm complains that /dev/null is an invalid object file
5610 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5611 */dev/null* | *'Invalid file or object type'*)
5612 lt_cv_path_NM="$tmp_nm -B"
5613 break
5616 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5617 */dev/null*)
5618 lt_cv_path_NM="$tmp_nm -p"
5619 break
5622 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5623 continue # so that we can try to find one that supports BSD flags
5625 esac
5627 esac
5629 done
5630 IFS="$lt_save_ifs"
5631 done
5632 : ${lt_cv_path_NM=no}
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5636 $as_echo "$lt_cv_path_NM" >&6; }
5637 if test "$lt_cv_path_NM" != "no"; then
5638 NM="$lt_cv_path_NM"
5639 else
5640 # Didn't find any BSD compatible name lister, look for dumpbin.
5641 if test -n "$DUMPBIN"; then :
5642 # Let the user override the test.
5643 else
5644 if test -n "$ac_tool_prefix"; then
5645 for ac_prog in dumpbin "link -dump"
5647 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5648 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5650 $as_echo_n "checking for $ac_word... " >&6; }
5651 if ${ac_cv_prog_DUMPBIN+:} false; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 if test -n "$DUMPBIN"; then
5655 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5656 else
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH
5660 IFS=$as_save_IFS
5661 test -z "$as_dir" && as_dir=.
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5664 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 break 2
5668 done
5669 done
5670 IFS=$as_save_IFS
5674 DUMPBIN=$ac_cv_prog_DUMPBIN
5675 if test -n "$DUMPBIN"; then
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5677 $as_echo "$DUMPBIN" >&6; }
5678 else
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680 $as_echo "no" >&6; }
5684 test -n "$DUMPBIN" && break
5685 done
5687 if test -z "$DUMPBIN"; then
5688 ac_ct_DUMPBIN=$DUMPBIN
5689 for ac_prog in dumpbin "link -dump"
5691 # Extract the first word of "$ac_prog", so it can be a program name with args.
5692 set dummy $ac_prog; ac_word=$2
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5694 $as_echo_n "checking for $ac_word... " >&6; }
5695 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5696 $as_echo_n "(cached) " >&6
5697 else
5698 if test -n "$ac_ct_DUMPBIN"; then
5699 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5700 else
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH
5704 IFS=$as_save_IFS
5705 test -z "$as_dir" && as_dir=.
5706 for ac_exec_ext in '' $ac_executable_extensions; do
5707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5708 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5710 break 2
5712 done
5713 done
5714 IFS=$as_save_IFS
5718 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5719 if test -n "$ac_ct_DUMPBIN"; then
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5721 $as_echo "$ac_ct_DUMPBIN" >&6; }
5722 else
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724 $as_echo "no" >&6; }
5728 test -n "$ac_ct_DUMPBIN" && break
5729 done
5731 if test "x$ac_ct_DUMPBIN" = x; then
5732 DUMPBIN=":"
5733 else
5734 case $cross_compiling:$ac_tool_warned in
5735 yes:)
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5738 ac_tool_warned=yes ;;
5739 esac
5740 DUMPBIN=$ac_ct_DUMPBIN
5744 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5745 *COFF*)
5746 DUMPBIN="$DUMPBIN -symbols"
5749 DUMPBIN=:
5751 esac
5754 if test "$DUMPBIN" != ":"; then
5755 NM="$DUMPBIN"
5758 test -z "$NM" && NM=nm
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5766 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5767 if ${lt_cv_nm_interface+:} false; then :
5768 $as_echo_n "(cached) " >&6
5769 else
5770 lt_cv_nm_interface="BSD nm"
5771 echo "int some_variable = 0;" > conftest.$ac_ext
5772 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5773 (eval "$ac_compile" 2>conftest.err)
5774 cat conftest.err >&5
5775 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5776 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5777 cat conftest.err >&5
5778 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5779 cat conftest.out >&5
5780 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5781 lt_cv_nm_interface="MS dumpbin"
5783 rm -f conftest*
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5786 $as_echo "$lt_cv_nm_interface" >&6; }
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5789 $as_echo_n "checking whether ln -s works... " >&6; }
5790 LN_S=$as_ln_s
5791 if test "$LN_S" = "ln -s"; then
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5793 $as_echo "yes" >&6; }
5794 else
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5796 $as_echo "no, using $LN_S" >&6; }
5799 # find the maximum length of command line arguments
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5801 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5802 if ${lt_cv_sys_max_cmd_len+:} false; then :
5803 $as_echo_n "(cached) " >&6
5804 else
5806 teststring="ABCD"
5808 case $build_os in
5809 msdosdjgpp*)
5810 # On DJGPP, this test can blow up pretty badly due to problems in libc
5811 # (any single argument exceeding 2000 bytes causes a buffer overrun
5812 # during glob expansion). Even if it were fixed, the result of this
5813 # check would be larger than it should be.
5814 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5817 gnu*)
5818 # Under GNU Hurd, this test is not required because there is
5819 # no limit to the length of command line arguments.
5820 # Libtool will interpret -1 as no limit whatsoever
5821 lt_cv_sys_max_cmd_len=-1;
5824 cygwin* | mingw* | cegcc*)
5825 # On Win9x/ME, this test blows up -- it succeeds, but takes
5826 # about 5 minutes as the teststring grows exponentially.
5827 # Worse, since 9x/ME are not pre-emptively multitasking,
5828 # you end up with a "frozen" computer, even though with patience
5829 # the test eventually succeeds (with a max line length of 256k).
5830 # Instead, let's just punt: use the minimum linelength reported by
5831 # all of the supported platforms: 8192 (on NT/2K/XP).
5832 lt_cv_sys_max_cmd_len=8192;
5835 mint*)
5836 # On MiNT this can take a long time and run out of memory.
5837 lt_cv_sys_max_cmd_len=8192;
5840 amigaos*)
5841 # On AmigaOS with pdksh, this test takes hours, literally.
5842 # So we just punt and use a minimum line length of 8192.
5843 lt_cv_sys_max_cmd_len=8192;
5846 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5847 # This has been around since 386BSD, at least. Likely further.
5848 if test -x /sbin/sysctl; then
5849 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5850 elif test -x /usr/sbin/sysctl; then
5851 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5852 else
5853 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5855 # And add a safety zone
5856 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5857 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5860 interix*)
5861 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5862 lt_cv_sys_max_cmd_len=196608
5865 osf*)
5866 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5867 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5868 # nice to cause kernel panics so lets avoid the loop below.
5869 # First set a reasonable default.
5870 lt_cv_sys_max_cmd_len=16384
5872 if test -x /sbin/sysconfig; then
5873 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5874 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5875 esac
5878 sco3.2v5*)
5879 lt_cv_sys_max_cmd_len=102400
5881 sysv5* | sco5v6* | sysv4.2uw2*)
5882 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5883 if test -n "$kargmax"; then
5884 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5885 else
5886 lt_cv_sys_max_cmd_len=32768
5890 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5891 if test -n "$lt_cv_sys_max_cmd_len"; then
5892 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5893 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5894 else
5895 # Make teststring a little bigger before we do anything with it.
5896 # a 1K string should be a reasonable start.
5897 for i in 1 2 3 4 5 6 7 8 ; do
5898 teststring=$teststring$teststring
5899 done
5900 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5901 # If test is not a shell built-in, we'll probably end up computing a
5902 # maximum length that is only half of the actual maximum length, but
5903 # we can't tell.
5904 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5905 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5906 test $i != 17 # 1/2 MB should be enough
5908 i=`expr $i + 1`
5909 teststring=$teststring$teststring
5910 done
5911 # Only check the string length outside the loop.
5912 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5913 teststring=
5914 # Add a significant safety factor because C++ compilers can tack on
5915 # massive amounts of additional arguments before passing them to the
5916 # linker. It appears as though 1/2 is a usable value.
5917 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5920 esac
5924 if test -n $lt_cv_sys_max_cmd_len ; then
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5926 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5927 else
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5929 $as_echo "none" >&6; }
5931 max_cmd_len=$lt_cv_sys_max_cmd_len
5938 : ${CP="cp -f"}
5939 : ${MV="mv -f"}
5940 : ${RM="rm -f"}
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5943 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5944 # Try some XSI features
5945 xsi_shell=no
5946 ( _lt_dummy="a/b/c"
5947 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5948 = c,a/b,, \
5949 && eval 'test $(( 1 + 1 )) -eq 2 \
5950 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5951 && xsi_shell=yes
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5953 $as_echo "$xsi_shell" >&6; }
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5957 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5958 lt_shell_append=no
5959 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5960 >/dev/null 2>&1 \
5961 && lt_shell_append=yes
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5963 $as_echo "$lt_shell_append" >&6; }
5966 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5967 lt_unset=unset
5968 else
5969 lt_unset=false
5976 # test EBCDIC or ASCII
5977 case `echo X|tr X '\101'` in
5978 A) # ASCII based system
5979 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5980 lt_SP2NL='tr \040 \012'
5981 lt_NL2SP='tr \015\012 \040\040'
5983 *) # EBCDIC based system
5984 lt_SP2NL='tr \100 \n'
5985 lt_NL2SP='tr \r\n \100\100'
5987 esac
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5998 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5999 if ${lt_cv_ld_reload_flag+:} false; then :
6000 $as_echo_n "(cached) " >&6
6001 else
6002 lt_cv_ld_reload_flag='-r'
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6005 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6006 reload_flag=$lt_cv_ld_reload_flag
6007 case $reload_flag in
6008 "" | " "*) ;;
6009 *) reload_flag=" $reload_flag" ;;
6010 esac
6011 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6012 case $host_os in
6013 darwin*)
6014 if test "$GCC" = yes; then
6015 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6016 else
6017 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6020 esac
6030 if test -n "$ac_tool_prefix"; then
6031 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6032 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034 $as_echo_n "checking for $ac_word... " >&6; }
6035 if ${ac_cv_prog_OBJDUMP+:} false; then :
6036 $as_echo_n "(cached) " >&6
6037 else
6038 if test -n "$OBJDUMP"; then
6039 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6040 else
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 for as_dir in $PATH
6044 IFS=$as_save_IFS
6045 test -z "$as_dir" && as_dir=.
6046 for ac_exec_ext in '' $ac_executable_extensions; do
6047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6048 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 break 2
6052 done
6053 done
6054 IFS=$as_save_IFS
6058 OBJDUMP=$ac_cv_prog_OBJDUMP
6059 if test -n "$OBJDUMP"; then
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6061 $as_echo "$OBJDUMP" >&6; }
6062 else
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6069 if test -z "$ac_cv_prog_OBJDUMP"; then
6070 ac_ct_OBJDUMP=$OBJDUMP
6071 # Extract the first word of "objdump", so it can be a program name with args.
6072 set dummy objdump; ac_word=$2
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074 $as_echo_n "checking for $ac_word... " >&6; }
6075 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6076 $as_echo_n "(cached) " >&6
6077 else
6078 if test -n "$ac_ct_OBJDUMP"; then
6079 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6080 else
6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 for as_dir in $PATH
6084 IFS=$as_save_IFS
6085 test -z "$as_dir" && as_dir=.
6086 for ac_exec_ext in '' $ac_executable_extensions; do
6087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6088 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6090 break 2
6092 done
6093 done
6094 IFS=$as_save_IFS
6098 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6099 if test -n "$ac_ct_OBJDUMP"; then
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6101 $as_echo "$ac_ct_OBJDUMP" >&6; }
6102 else
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 $as_echo "no" >&6; }
6107 if test "x$ac_ct_OBJDUMP" = x; then
6108 OBJDUMP="false"
6109 else
6110 case $cross_compiling:$ac_tool_warned in
6111 yes:)
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6114 ac_tool_warned=yes ;;
6115 esac
6116 OBJDUMP=$ac_ct_OBJDUMP
6118 else
6119 OBJDUMP="$ac_cv_prog_OBJDUMP"
6122 test -z "$OBJDUMP" && OBJDUMP=objdump
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6133 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6134 if ${lt_cv_deplibs_check_method+:} false; then :
6135 $as_echo_n "(cached) " >&6
6136 else
6137 lt_cv_file_magic_cmd='$MAGIC_CMD'
6138 lt_cv_file_magic_test_file=
6139 lt_cv_deplibs_check_method='unknown'
6140 # Need to set the preceding variable on all platforms that support
6141 # interlibrary dependencies.
6142 # 'none' -- dependencies not supported.
6143 # `unknown' -- same as none, but documents that we really don't know.
6144 # 'pass_all' -- all dependencies passed with no checks.
6145 # 'test_compile' -- check by making test program.
6146 # 'file_magic [[regex]]' -- check by looking for files in library path
6147 # which responds to the $file_magic_cmd with a given extended regex.
6148 # If you have `file' or equivalent on your system and you're not sure
6149 # whether `pass_all' will *always* work, you probably want this one.
6151 case $host_os in
6152 aix[4-9]*)
6153 lt_cv_deplibs_check_method=pass_all
6156 beos*)
6157 lt_cv_deplibs_check_method=pass_all
6160 bsdi[45]*)
6161 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6162 lt_cv_file_magic_cmd='/usr/bin/file -L'
6163 lt_cv_file_magic_test_file=/shlib/libc.so
6166 cygwin*)
6167 # func_win32_libid is a shell function defined in ltmain.sh
6168 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6169 lt_cv_file_magic_cmd='func_win32_libid'
6172 mingw* | pw32*)
6173 # Base MSYS/MinGW do not provide the 'file' command needed by
6174 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6175 # unless we find 'file', for example because we are cross-compiling.
6176 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6177 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6178 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6179 lt_cv_file_magic_cmd='func_win32_libid'
6180 else
6181 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6182 lt_cv_file_magic_cmd='$OBJDUMP -f'
6186 cegcc*)
6187 # use the weaker test based on 'objdump'. See mingw*.
6188 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6189 lt_cv_file_magic_cmd='$OBJDUMP -f'
6192 darwin* | rhapsody*)
6193 lt_cv_deplibs_check_method=pass_all
6196 freebsd* | dragonfly*)
6197 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6198 case $host_cpu in
6199 i*86 )
6200 # Not sure whether the presence of OpenBSD here was a mistake.
6201 # Let's accept both of them until this is cleared up.
6202 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6203 lt_cv_file_magic_cmd=/usr/bin/file
6204 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6206 esac
6207 else
6208 lt_cv_deplibs_check_method=pass_all
6212 gnu*)
6213 lt_cv_deplibs_check_method=pass_all
6216 haiku*)
6217 lt_cv_deplibs_check_method=pass_all
6220 hpux10.20* | hpux11*)
6221 lt_cv_file_magic_cmd=/usr/bin/file
6222 case $host_cpu in
6223 ia64*)
6224 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6225 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6227 hppa*64*)
6228 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]'
6229 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6232 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6233 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6235 esac
6238 interix[3-9]*)
6239 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6240 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6243 irix5* | irix6* | nonstopux*)
6244 case $LD in
6245 *-32|*"-32 ") libmagic=32-bit;;
6246 *-n32|*"-n32 ") libmagic=N32;;
6247 *-64|*"-64 ") libmagic=64-bit;;
6248 *) libmagic=never-match;;
6249 esac
6250 lt_cv_deplibs_check_method=pass_all
6253 # This must be Linux ELF.
6254 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6255 lt_cv_deplibs_check_method=pass_all
6258 netbsd*)
6259 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6260 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6261 else
6262 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6266 newos6*)
6267 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6268 lt_cv_file_magic_cmd=/usr/bin/file
6269 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6272 *nto* | *qnx*)
6273 lt_cv_deplibs_check_method=pass_all
6276 openbsd*)
6277 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6278 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6279 else
6280 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6284 osf3* | osf4* | osf5*)
6285 lt_cv_deplibs_check_method=pass_all
6288 rdos*)
6289 lt_cv_deplibs_check_method=pass_all
6292 solaris*)
6293 lt_cv_deplibs_check_method=pass_all
6296 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6297 lt_cv_deplibs_check_method=pass_all
6300 sysv4 | sysv4.3*)
6301 case $host_vendor in
6302 motorola)
6303 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]'
6304 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6306 ncr)
6307 lt_cv_deplibs_check_method=pass_all
6309 sequent)
6310 lt_cv_file_magic_cmd='/bin/file'
6311 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6313 sni)
6314 lt_cv_file_magic_cmd='/bin/file'
6315 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6316 lt_cv_file_magic_test_file=/lib/libc.so
6318 siemens)
6319 lt_cv_deplibs_check_method=pass_all
6322 lt_cv_deplibs_check_method=pass_all
6324 esac
6327 tpf*)
6328 lt_cv_deplibs_check_method=pass_all
6330 esac
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6334 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6335 file_magic_cmd=$lt_cv_file_magic_cmd
6336 deplibs_check_method=$lt_cv_deplibs_check_method
6337 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6350 if test -n "$ac_tool_prefix"; then
6351 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6352 set dummy ${ac_tool_prefix}ar; ac_word=$2
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6354 $as_echo_n "checking for $ac_word... " >&6; }
6355 if ${ac_cv_prog_AR+:} false; then :
6356 $as_echo_n "(cached) " >&6
6357 else
6358 if test -n "$AR"; then
6359 ac_cv_prog_AR="$AR" # Let the user override the test.
6360 else
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 for as_dir in $PATH
6364 IFS=$as_save_IFS
6365 test -z "$as_dir" && as_dir=.
6366 for ac_exec_ext in '' $ac_executable_extensions; do
6367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6368 ac_cv_prog_AR="${ac_tool_prefix}ar"
6369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6370 break 2
6372 done
6373 done
6374 IFS=$as_save_IFS
6378 AR=$ac_cv_prog_AR
6379 if test -n "$AR"; then
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6381 $as_echo "$AR" >&6; }
6382 else
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6384 $as_echo "no" >&6; }
6389 if test -z "$ac_cv_prog_AR"; then
6390 ac_ct_AR=$AR
6391 # Extract the first word of "ar", so it can be a program name with args.
6392 set dummy ar; ac_word=$2
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6394 $as_echo_n "checking for $ac_word... " >&6; }
6395 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6396 $as_echo_n "(cached) " >&6
6397 else
6398 if test -n "$ac_ct_AR"; then
6399 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6400 else
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 for as_dir in $PATH
6404 IFS=$as_save_IFS
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6408 ac_cv_prog_ac_ct_AR="ar"
6409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 break 2
6412 done
6413 done
6414 IFS=$as_save_IFS
6418 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6419 if test -n "$ac_ct_AR"; then
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6421 $as_echo "$ac_ct_AR" >&6; }
6422 else
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424 $as_echo "no" >&6; }
6427 if test "x$ac_ct_AR" = x; then
6428 AR="false"
6429 else
6430 case $cross_compiling:$ac_tool_warned in
6431 yes:)
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6434 ac_tool_warned=yes ;;
6435 esac
6436 AR=$ac_ct_AR
6438 else
6439 AR="$ac_cv_prog_AR"
6442 test -z "$AR" && AR=ar
6443 test -z "$AR_FLAGS" && AR_FLAGS=cru
6455 if test -n "$ac_tool_prefix"; then
6456 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6457 set dummy ${ac_tool_prefix}strip; ac_word=$2
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6459 $as_echo_n "checking for $ac_word... " >&6; }
6460 if ${ac_cv_prog_STRIP+:} false; then :
6461 $as_echo_n "(cached) " >&6
6462 else
6463 if test -n "$STRIP"; then
6464 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6465 else
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 for as_dir in $PATH
6469 IFS=$as_save_IFS
6470 test -z "$as_dir" && as_dir=.
6471 for ac_exec_ext in '' $ac_executable_extensions; do
6472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6473 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6475 break 2
6477 done
6478 done
6479 IFS=$as_save_IFS
6483 STRIP=$ac_cv_prog_STRIP
6484 if test -n "$STRIP"; then
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6486 $as_echo "$STRIP" >&6; }
6487 else
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6489 $as_echo "no" >&6; }
6494 if test -z "$ac_cv_prog_STRIP"; then
6495 ac_ct_STRIP=$STRIP
6496 # Extract the first word of "strip", so it can be a program name with args.
6497 set dummy strip; ac_word=$2
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6499 $as_echo_n "checking for $ac_word... " >&6; }
6500 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6501 $as_echo_n "(cached) " >&6
6502 else
6503 if test -n "$ac_ct_STRIP"; then
6504 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6505 else
6506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507 for as_dir in $PATH
6509 IFS=$as_save_IFS
6510 test -z "$as_dir" && as_dir=.
6511 for ac_exec_ext in '' $ac_executable_extensions; do
6512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6513 ac_cv_prog_ac_ct_STRIP="strip"
6514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6515 break 2
6517 done
6518 done
6519 IFS=$as_save_IFS
6523 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6524 if test -n "$ac_ct_STRIP"; then
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6526 $as_echo "$ac_ct_STRIP" >&6; }
6527 else
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6529 $as_echo "no" >&6; }
6532 if test "x$ac_ct_STRIP" = x; then
6533 STRIP=":"
6534 else
6535 case $cross_compiling:$ac_tool_warned in
6536 yes:)
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6539 ac_tool_warned=yes ;;
6540 esac
6541 STRIP=$ac_ct_STRIP
6543 else
6544 STRIP="$ac_cv_prog_STRIP"
6547 test -z "$STRIP" && STRIP=:
6554 if test -n "$ac_tool_prefix"; then
6555 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6556 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6558 $as_echo_n "checking for $ac_word... " >&6; }
6559 if ${ac_cv_prog_RANLIB+:} false; then :
6560 $as_echo_n "(cached) " >&6
6561 else
6562 if test -n "$RANLIB"; then
6563 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6564 else
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 for as_dir in $PATH
6568 IFS=$as_save_IFS
6569 test -z "$as_dir" && as_dir=.
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6572 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6574 break 2
6576 done
6577 done
6578 IFS=$as_save_IFS
6582 RANLIB=$ac_cv_prog_RANLIB
6583 if test -n "$RANLIB"; then
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6585 $as_echo "$RANLIB" >&6; }
6586 else
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588 $as_echo "no" >&6; }
6593 if test -z "$ac_cv_prog_RANLIB"; then
6594 ac_ct_RANLIB=$RANLIB
6595 # Extract the first word of "ranlib", so it can be a program name with args.
6596 set dummy ranlib; ac_word=$2
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598 $as_echo_n "checking for $ac_word... " >&6; }
6599 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6600 $as_echo_n "(cached) " >&6
6601 else
6602 if test -n "$ac_ct_RANLIB"; then
6603 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6604 else
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 for as_dir in $PATH
6608 IFS=$as_save_IFS
6609 test -z "$as_dir" && as_dir=.
6610 for ac_exec_ext in '' $ac_executable_extensions; do
6611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6612 ac_cv_prog_ac_ct_RANLIB="ranlib"
6613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6614 break 2
6616 done
6617 done
6618 IFS=$as_save_IFS
6622 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6623 if test -n "$ac_ct_RANLIB"; then
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6625 $as_echo "$ac_ct_RANLIB" >&6; }
6626 else
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6628 $as_echo "no" >&6; }
6631 if test "x$ac_ct_RANLIB" = x; then
6632 RANLIB=":"
6633 else
6634 case $cross_compiling:$ac_tool_warned in
6635 yes:)
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6638 ac_tool_warned=yes ;;
6639 esac
6640 RANLIB=$ac_ct_RANLIB
6642 else
6643 RANLIB="$ac_cv_prog_RANLIB"
6646 test -z "$RANLIB" && RANLIB=:
6653 # Determine commands to create old-style static archives.
6654 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6655 old_postinstall_cmds='chmod 644 $oldlib'
6656 old_postuninstall_cmds=
6658 if test -n "$RANLIB"; then
6659 case $host_os in
6660 openbsd*)
6661 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6664 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6666 esac
6667 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6670 case $host_os in
6671 darwin*)
6672 lock_old_archive_extraction=yes ;;
6674 lock_old_archive_extraction=no ;;
6675 esac
6715 # If no C compiler was specified, use CC.
6716 LTCC=${LTCC-"$CC"}
6718 # If no C compiler flags were specified, use CFLAGS.
6719 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6721 # Allow CC to be a program name with arguments.
6722 compiler=$CC
6725 # Check for command to grab the raw symbol name followed by C symbol from nm.
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6727 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6728 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6729 $as_echo_n "(cached) " >&6
6730 else
6732 # These are sane defaults that work on at least a few old systems.
6733 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6735 # Character class describing NM global symbol codes.
6736 symcode='[BCDEGRST]'
6738 # Regexp to match symbols that can be accessed directly from C.
6739 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6741 # Define system-specific variables.
6742 case $host_os in
6743 aix*)
6744 symcode='[BCDT]'
6746 cygwin* | mingw* | pw32* | cegcc*)
6747 symcode='[ABCDGISTW]'
6749 hpux*)
6750 if test "$host_cpu" = ia64; then
6751 symcode='[ABCDEGRST]'
6754 irix* | nonstopux*)
6755 symcode='[BCDEGRST]'
6757 osf*)
6758 symcode='[BCDEGQRST]'
6760 solaris*)
6761 symcode='[BDRT]'
6763 sco3.2v5*)
6764 symcode='[DT]'
6766 sysv4.2uw2*)
6767 symcode='[DT]'
6769 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6770 symcode='[ABDT]'
6772 sysv4)
6773 symcode='[DFNSTU]'
6775 esac
6777 # If we're using GNU nm, then use its standard symbol codes.
6778 case `$NM -V 2>&1` in
6779 *GNU* | *'with BFD'*)
6780 symcode='[ABCDGIRSTW]' ;;
6781 esac
6783 # Transform an extracted symbol line into a proper C declaration.
6784 # Some systems (esp. on ia64) link data and code symbols differently,
6785 # so use this general approach.
6786 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6788 # Transform an extracted symbol line into symbol name and symbol address
6789 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6790 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'"
6792 # Handle CRLF in mingw tool chain
6793 opt_cr=
6794 case $build_os in
6795 mingw*)
6796 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6798 esac
6800 # Try without a prefix underscore, then with it.
6801 for ac_symprfx in "" "_"; do
6803 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6804 symxfrm="\\1 $ac_symprfx\\2 \\2"
6806 # Write the raw and C identifiers.
6807 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6808 # Fake it for dumpbin and say T for any non-static function
6809 # and D for any global variable.
6810 # Also find C++ and __fastcall symbols from MSVC++,
6811 # which start with @ or ?.
6812 lt_cv_sys_global_symbol_pipe="$AWK '"\
6813 " {last_section=section; section=\$ 3};"\
6814 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6815 " \$ 0!~/External *\|/{next};"\
6816 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6817 " {if(hide[section]) next};"\
6818 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6819 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6820 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6821 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6822 " ' prfx=^$ac_symprfx"
6823 else
6824 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6827 # Check to see that the pipe works correctly.
6828 pipe_works=no
6830 rm -f conftest*
6831 cat > conftest.$ac_ext <<_LT_EOF
6832 #ifdef __cplusplus
6833 extern "C" {
6834 #endif
6835 char nm_test_var;
6836 void nm_test_func(void);
6837 void nm_test_func(void){}
6838 #ifdef __cplusplus
6840 #endif
6841 int main(){nm_test_var='a';nm_test_func();return(0);}
6842 _LT_EOF
6844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6845 (eval $ac_compile) 2>&5
6846 ac_status=$?
6847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6848 test $ac_status = 0; }; then
6849 # Now try to grab the symbols.
6850 nlist=conftest.nm
6851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6852 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6853 ac_status=$?
6854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6855 test $ac_status = 0; } && test -s "$nlist"; then
6856 # Try sorting and uniquifying the output.
6857 if sort "$nlist" | uniq > "$nlist"T; then
6858 mv -f "$nlist"T "$nlist"
6859 else
6860 rm -f "$nlist"T
6863 # Make sure that we snagged all the symbols we need.
6864 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6865 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6866 cat <<_LT_EOF > conftest.$ac_ext
6867 #ifdef __cplusplus
6868 extern "C" {
6869 #endif
6871 _LT_EOF
6872 # Now generate the symbol file.
6873 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6875 cat <<_LT_EOF >> conftest.$ac_ext
6877 /* The mapping between symbol names and symbols. */
6878 const struct {
6879 const char *name;
6880 void *address;
6882 lt__PROGRAM__LTX_preloaded_symbols[] =
6884 { "@PROGRAM@", (void *) 0 },
6885 _LT_EOF
6886 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6887 cat <<\_LT_EOF >> conftest.$ac_ext
6888 {0, (void *) 0}
6891 /* This works around a problem in FreeBSD linker */
6892 #ifdef FREEBSD_WORKAROUND
6893 static const void *lt_preloaded_setup() {
6894 return lt__PROGRAM__LTX_preloaded_symbols;
6896 #endif
6898 #ifdef __cplusplus
6900 #endif
6901 _LT_EOF
6902 # Now try linking the two files.
6903 mv conftest.$ac_objext conftstm.$ac_objext
6904 lt_save_LIBS="$LIBS"
6905 lt_save_CFLAGS="$CFLAGS"
6906 LIBS="conftstm.$ac_objext"
6907 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6908 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6909 (eval $ac_link) 2>&5
6910 ac_status=$?
6911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6912 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6913 pipe_works=yes
6915 LIBS="$lt_save_LIBS"
6916 CFLAGS="$lt_save_CFLAGS"
6917 else
6918 echo "cannot find nm_test_func in $nlist" >&5
6920 else
6921 echo "cannot find nm_test_var in $nlist" >&5
6923 else
6924 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6926 else
6927 echo "$progname: failed program was:" >&5
6928 cat conftest.$ac_ext >&5
6930 rm -rf conftest* conftst*
6932 # Do not use the global_symbol_pipe unless it works.
6933 if test "$pipe_works" = yes; then
6934 break
6935 else
6936 lt_cv_sys_global_symbol_pipe=
6938 done
6942 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6943 lt_cv_sys_global_symbol_to_cdecl=
6945 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6947 $as_echo "failed" >&6; }
6948 else
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6950 $as_echo "ok" >&6; }
6975 # Check whether --enable-libtool-lock was given.
6976 if test "${enable_libtool_lock+set}" = set; then :
6977 enableval=$enable_libtool_lock;
6980 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6982 # Some flags need to be propagated to the compiler or linker for good
6983 # libtool support.
6984 case $host in
6985 ia64-*-hpux*)
6986 # Find out which ABI we are using.
6987 echo 'int i;' > conftest.$ac_ext
6988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6989 (eval $ac_compile) 2>&5
6990 ac_status=$?
6991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6992 test $ac_status = 0; }; then
6993 case `/usr/bin/file conftest.$ac_objext` in
6994 *ELF-32*)
6995 HPUX_IA64_MODE="32"
6997 *ELF-64*)
6998 HPUX_IA64_MODE="64"
7000 esac
7002 rm -rf conftest*
7004 *-*-irix6*)
7005 # Find out which ABI we are using.
7006 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7007 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7008 (eval $ac_compile) 2>&5
7009 ac_status=$?
7010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7011 test $ac_status = 0; }; then
7012 if test "$lt_cv_prog_gnu_ld" = yes; then
7013 case `/usr/bin/file conftest.$ac_objext` in
7014 *32-bit*)
7015 LD="${LD-ld} -melf32bsmip"
7017 *N32*)
7018 LD="${LD-ld} -melf32bmipn32"
7020 *64-bit*)
7021 LD="${LD-ld} -melf64bmip"
7023 esac
7024 else
7025 case `/usr/bin/file conftest.$ac_objext` in
7026 *32-bit*)
7027 LD="${LD-ld} -32"
7029 *N32*)
7030 LD="${LD-ld} -n32"
7032 *64-bit*)
7033 LD="${LD-ld} -64"
7035 esac
7038 rm -rf conftest*
7041 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7042 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7043 # Find out which ABI we are using.
7044 echo 'int i;' > conftest.$ac_ext
7045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7046 (eval $ac_compile) 2>&5
7047 ac_status=$?
7048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7049 test $ac_status = 0; }; then
7050 case `/usr/bin/file conftest.o` in
7051 *32-bit*)
7052 case $host in
7053 x86_64-*kfreebsd*-gnu)
7054 LD="${LD-ld} -m elf_i386_fbsd"
7056 x86_64-*linux*)
7057 case `/usr/bin/file conftest.o` in
7058 *x86-64*)
7059 LD="${LD-ld} -m elf32_x86_64"
7062 LD="${LD-ld} -m elf_i386"
7064 esac
7066 powerpc64le-*linux*)
7067 LD="${LD-ld} -m elf32lppclinux"
7069 powerpc64-*linux*)
7070 LD="${LD-ld} -m elf32ppclinux"
7072 s390x-*linux*)
7073 LD="${LD-ld} -m elf_s390"
7075 sparc64-*linux*)
7076 LD="${LD-ld} -m elf32_sparc"
7078 esac
7080 *64-bit*)
7081 case $host in
7082 x86_64-*kfreebsd*-gnu)
7083 LD="${LD-ld} -m elf_x86_64_fbsd"
7085 x86_64-*linux*)
7086 LD="${LD-ld} -m elf_x86_64"
7088 powerpcle-*linux*)
7089 LD="${LD-ld} -m elf64lppc"
7091 powerpc-*linux*)
7092 LD="${LD-ld} -m elf64ppc"
7094 s390*-*linux*|s390*-*tpf*)
7095 LD="${LD-ld} -m elf64_s390"
7097 sparc*-*linux*)
7098 LD="${LD-ld} -m elf64_sparc"
7100 esac
7102 esac
7104 rm -rf conftest*
7107 *-*-sco3.2v5*)
7108 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7109 SAVE_CFLAGS="$CFLAGS"
7110 CFLAGS="$CFLAGS -belf"
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7112 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7113 if ${lt_cv_cc_needs_belf+:} false; then :
7114 $as_echo_n "(cached) " >&6
7115 else
7116 ac_ext=c
7117 ac_cpp='$CPP $CPPFLAGS'
7118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7123 /* end confdefs.h. */
7126 main ()
7130 return 0;
7132 _ACEOF
7133 if ac_fn_c_try_link "$LINENO"; then :
7134 lt_cv_cc_needs_belf=yes
7135 else
7136 lt_cv_cc_needs_belf=no
7138 rm -f core conftest.err conftest.$ac_objext \
7139 conftest$ac_exeext conftest.$ac_ext
7140 ac_ext=c
7141 ac_cpp='$CPP $CPPFLAGS'
7142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7148 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7149 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7150 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7151 CFLAGS="$SAVE_CFLAGS"
7154 sparc*-*solaris*)
7155 # Find out which ABI we are using.
7156 echo 'int i;' > conftest.$ac_ext
7157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7158 (eval $ac_compile) 2>&5
7159 ac_status=$?
7160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7161 test $ac_status = 0; }; then
7162 case `/usr/bin/file conftest.o` in
7163 *64-bit*)
7164 case $lt_cv_prog_gnu_ld in
7165 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7167 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7168 LD="${LD-ld} -64"
7171 esac
7173 esac
7175 rm -rf conftest*
7177 esac
7179 need_locks="$enable_libtool_lock"
7182 case $host_os in
7183 rhapsody* | darwin*)
7184 if test -n "$ac_tool_prefix"; then
7185 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7186 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7188 $as_echo_n "checking for $ac_word... " >&6; }
7189 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7190 $as_echo_n "(cached) " >&6
7191 else
7192 if test -n "$DSYMUTIL"; then
7193 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7194 else
7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196 for as_dir in $PATH
7198 IFS=$as_save_IFS
7199 test -z "$as_dir" && as_dir=.
7200 for ac_exec_ext in '' $ac_executable_extensions; do
7201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7202 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7204 break 2
7206 done
7207 done
7208 IFS=$as_save_IFS
7212 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7213 if test -n "$DSYMUTIL"; then
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7215 $as_echo "$DSYMUTIL" >&6; }
7216 else
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7218 $as_echo "no" >&6; }
7223 if test -z "$ac_cv_prog_DSYMUTIL"; then
7224 ac_ct_DSYMUTIL=$DSYMUTIL
7225 # Extract the first word of "dsymutil", so it can be a program name with args.
7226 set dummy dsymutil; ac_word=$2
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7228 $as_echo_n "checking for $ac_word... " >&6; }
7229 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7230 $as_echo_n "(cached) " >&6
7231 else
7232 if test -n "$ac_ct_DSYMUTIL"; then
7233 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7234 else
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 for as_dir in $PATH
7238 IFS=$as_save_IFS
7239 test -z "$as_dir" && as_dir=.
7240 for ac_exec_ext in '' $ac_executable_extensions; do
7241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7242 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7244 break 2
7246 done
7247 done
7248 IFS=$as_save_IFS
7252 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7253 if test -n "$ac_ct_DSYMUTIL"; then
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7255 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7256 else
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258 $as_echo "no" >&6; }
7261 if test "x$ac_ct_DSYMUTIL" = x; then
7262 DSYMUTIL=":"
7263 else
7264 case $cross_compiling:$ac_tool_warned in
7265 yes:)
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7268 ac_tool_warned=yes ;;
7269 esac
7270 DSYMUTIL=$ac_ct_DSYMUTIL
7272 else
7273 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7276 if test -n "$ac_tool_prefix"; then
7277 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7278 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7280 $as_echo_n "checking for $ac_word... " >&6; }
7281 if ${ac_cv_prog_NMEDIT+:} false; then :
7282 $as_echo_n "(cached) " >&6
7283 else
7284 if test -n "$NMEDIT"; then
7285 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7286 else
7287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288 for as_dir in $PATH
7290 IFS=$as_save_IFS
7291 test -z "$as_dir" && as_dir=.
7292 for ac_exec_ext in '' $ac_executable_extensions; do
7293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7294 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7296 break 2
7298 done
7299 done
7300 IFS=$as_save_IFS
7304 NMEDIT=$ac_cv_prog_NMEDIT
7305 if test -n "$NMEDIT"; then
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7307 $as_echo "$NMEDIT" >&6; }
7308 else
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7310 $as_echo "no" >&6; }
7315 if test -z "$ac_cv_prog_NMEDIT"; then
7316 ac_ct_NMEDIT=$NMEDIT
7317 # Extract the first word of "nmedit", so it can be a program name with args.
7318 set dummy nmedit; ac_word=$2
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7320 $as_echo_n "checking for $ac_word... " >&6; }
7321 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7322 $as_echo_n "(cached) " >&6
7323 else
7324 if test -n "$ac_ct_NMEDIT"; then
7325 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7326 else
7327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328 for as_dir in $PATH
7330 IFS=$as_save_IFS
7331 test -z "$as_dir" && as_dir=.
7332 for ac_exec_ext in '' $ac_executable_extensions; do
7333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7334 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7336 break 2
7338 done
7339 done
7340 IFS=$as_save_IFS
7344 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7345 if test -n "$ac_ct_NMEDIT"; then
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7347 $as_echo "$ac_ct_NMEDIT" >&6; }
7348 else
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7350 $as_echo "no" >&6; }
7353 if test "x$ac_ct_NMEDIT" = x; then
7354 NMEDIT=":"
7355 else
7356 case $cross_compiling:$ac_tool_warned in
7357 yes:)
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7360 ac_tool_warned=yes ;;
7361 esac
7362 NMEDIT=$ac_ct_NMEDIT
7364 else
7365 NMEDIT="$ac_cv_prog_NMEDIT"
7368 if test -n "$ac_tool_prefix"; then
7369 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7370 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7372 $as_echo_n "checking for $ac_word... " >&6; }
7373 if ${ac_cv_prog_LIPO+:} false; then :
7374 $as_echo_n "(cached) " >&6
7375 else
7376 if test -n "$LIPO"; then
7377 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7378 else
7379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 for as_dir in $PATH
7382 IFS=$as_save_IFS
7383 test -z "$as_dir" && as_dir=.
7384 for ac_exec_ext in '' $ac_executable_extensions; do
7385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7386 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7388 break 2
7390 done
7391 done
7392 IFS=$as_save_IFS
7396 LIPO=$ac_cv_prog_LIPO
7397 if test -n "$LIPO"; then
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7399 $as_echo "$LIPO" >&6; }
7400 else
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7402 $as_echo "no" >&6; }
7407 if test -z "$ac_cv_prog_LIPO"; then
7408 ac_ct_LIPO=$LIPO
7409 # Extract the first word of "lipo", so it can be a program name with args.
7410 set dummy lipo; ac_word=$2
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7412 $as_echo_n "checking for $ac_word... " >&6; }
7413 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7414 $as_echo_n "(cached) " >&6
7415 else
7416 if test -n "$ac_ct_LIPO"; then
7417 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7418 else
7419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 for as_dir in $PATH
7422 IFS=$as_save_IFS
7423 test -z "$as_dir" && as_dir=.
7424 for ac_exec_ext in '' $ac_executable_extensions; do
7425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7426 ac_cv_prog_ac_ct_LIPO="lipo"
7427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7428 break 2
7430 done
7431 done
7432 IFS=$as_save_IFS
7436 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7437 if test -n "$ac_ct_LIPO"; then
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7439 $as_echo "$ac_ct_LIPO" >&6; }
7440 else
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7442 $as_echo "no" >&6; }
7445 if test "x$ac_ct_LIPO" = x; then
7446 LIPO=":"
7447 else
7448 case $cross_compiling:$ac_tool_warned in
7449 yes:)
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7452 ac_tool_warned=yes ;;
7453 esac
7454 LIPO=$ac_ct_LIPO
7456 else
7457 LIPO="$ac_cv_prog_LIPO"
7460 if test -n "$ac_tool_prefix"; then
7461 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7462 set dummy ${ac_tool_prefix}otool; ac_word=$2
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7464 $as_echo_n "checking for $ac_word... " >&6; }
7465 if ${ac_cv_prog_OTOOL+:} false; then :
7466 $as_echo_n "(cached) " >&6
7467 else
7468 if test -n "$OTOOL"; then
7469 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7470 else
7471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472 for as_dir in $PATH
7474 IFS=$as_save_IFS
7475 test -z "$as_dir" && as_dir=.
7476 for ac_exec_ext in '' $ac_executable_extensions; do
7477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7478 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7480 break 2
7482 done
7483 done
7484 IFS=$as_save_IFS
7488 OTOOL=$ac_cv_prog_OTOOL
7489 if test -n "$OTOOL"; then
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7491 $as_echo "$OTOOL" >&6; }
7492 else
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7494 $as_echo "no" >&6; }
7499 if test -z "$ac_cv_prog_OTOOL"; then
7500 ac_ct_OTOOL=$OTOOL
7501 # Extract the first word of "otool", so it can be a program name with args.
7502 set dummy otool; ac_word=$2
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7504 $as_echo_n "checking for $ac_word... " >&6; }
7505 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7506 $as_echo_n "(cached) " >&6
7507 else
7508 if test -n "$ac_ct_OTOOL"; then
7509 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7510 else
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 for as_dir in $PATH
7514 IFS=$as_save_IFS
7515 test -z "$as_dir" && as_dir=.
7516 for ac_exec_ext in '' $ac_executable_extensions; do
7517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7518 ac_cv_prog_ac_ct_OTOOL="otool"
7519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7520 break 2
7522 done
7523 done
7524 IFS=$as_save_IFS
7528 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7529 if test -n "$ac_ct_OTOOL"; then
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7531 $as_echo "$ac_ct_OTOOL" >&6; }
7532 else
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7534 $as_echo "no" >&6; }
7537 if test "x$ac_ct_OTOOL" = x; then
7538 OTOOL=":"
7539 else
7540 case $cross_compiling:$ac_tool_warned in
7541 yes:)
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7544 ac_tool_warned=yes ;;
7545 esac
7546 OTOOL=$ac_ct_OTOOL
7548 else
7549 OTOOL="$ac_cv_prog_OTOOL"
7552 if test -n "$ac_tool_prefix"; then
7553 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7554 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7556 $as_echo_n "checking for $ac_word... " >&6; }
7557 if ${ac_cv_prog_OTOOL64+:} false; then :
7558 $as_echo_n "(cached) " >&6
7559 else
7560 if test -n "$OTOOL64"; then
7561 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7562 else
7563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7564 for as_dir in $PATH
7566 IFS=$as_save_IFS
7567 test -z "$as_dir" && as_dir=.
7568 for ac_exec_ext in '' $ac_executable_extensions; do
7569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7570 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7572 break 2
7574 done
7575 done
7576 IFS=$as_save_IFS
7580 OTOOL64=$ac_cv_prog_OTOOL64
7581 if test -n "$OTOOL64"; then
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7583 $as_echo "$OTOOL64" >&6; }
7584 else
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7586 $as_echo "no" >&6; }
7591 if test -z "$ac_cv_prog_OTOOL64"; then
7592 ac_ct_OTOOL64=$OTOOL64
7593 # Extract the first word of "otool64", so it can be a program name with args.
7594 set dummy otool64; ac_word=$2
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596 $as_echo_n "checking for $ac_word... " >&6; }
7597 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7598 $as_echo_n "(cached) " >&6
7599 else
7600 if test -n "$ac_ct_OTOOL64"; then
7601 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7602 else
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604 for as_dir in $PATH
7606 IFS=$as_save_IFS
7607 test -z "$as_dir" && as_dir=.
7608 for ac_exec_ext in '' $ac_executable_extensions; do
7609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7610 ac_cv_prog_ac_ct_OTOOL64="otool64"
7611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 break 2
7614 done
7615 done
7616 IFS=$as_save_IFS
7620 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7621 if test -n "$ac_ct_OTOOL64"; then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7623 $as_echo "$ac_ct_OTOOL64" >&6; }
7624 else
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626 $as_echo "no" >&6; }
7629 if test "x$ac_ct_OTOOL64" = x; then
7630 OTOOL64=":"
7631 else
7632 case $cross_compiling:$ac_tool_warned in
7633 yes:)
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7636 ac_tool_warned=yes ;;
7637 esac
7638 OTOOL64=$ac_ct_OTOOL64
7640 else
7641 OTOOL64="$ac_cv_prog_OTOOL64"
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7671 $as_echo_n "checking for -single_module linker flag... " >&6; }
7672 if ${lt_cv_apple_cc_single_mod+:} false; then :
7673 $as_echo_n "(cached) " >&6
7674 else
7675 lt_cv_apple_cc_single_mod=no
7676 if test -z "${LT_MULTI_MODULE}"; then
7677 # By default we will add the -single_module flag. You can override
7678 # by either setting the environment variable LT_MULTI_MODULE
7679 # non-empty at configure time, or by adding -multi_module to the
7680 # link flags.
7681 rm -rf libconftest.dylib*
7682 echo "int foo(void){return 1;}" > conftest.c
7683 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7684 -dynamiclib -Wl,-single_module conftest.c" >&5
7685 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7686 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7687 _lt_result=$?
7688 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7689 lt_cv_apple_cc_single_mod=yes
7690 else
7691 cat conftest.err >&5
7693 rm -rf libconftest.dylib*
7694 rm -f conftest.*
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7698 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7700 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7701 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7702 $as_echo_n "(cached) " >&6
7703 else
7704 lt_cv_ld_exported_symbols_list=no
7705 save_LDFLAGS=$LDFLAGS
7706 echo "_main" > conftest.sym
7707 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709 /* end confdefs.h. */
7712 main ()
7716 return 0;
7718 _ACEOF
7719 if ac_fn_c_try_link "$LINENO"; then :
7720 lt_cv_ld_exported_symbols_list=yes
7721 else
7722 lt_cv_ld_exported_symbols_list=no
7724 rm -f core conftest.err conftest.$ac_objext \
7725 conftest$ac_exeext conftest.$ac_ext
7726 LDFLAGS="$save_LDFLAGS"
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7730 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7732 $as_echo_n "checking for -force_load linker flag... " >&6; }
7733 if ${lt_cv_ld_force_load+:} false; then :
7734 $as_echo_n "(cached) " >&6
7735 else
7736 lt_cv_ld_force_load=no
7737 cat > conftest.c << _LT_EOF
7738 int forced_loaded() { return 2;}
7739 _LT_EOF
7740 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7741 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7742 echo "$AR cru libconftest.a conftest.o" >&5
7743 $AR cru libconftest.a conftest.o 2>&5
7744 cat > conftest.c << _LT_EOF
7745 int main() { return 0;}
7746 _LT_EOF
7747 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7748 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7749 _lt_result=$?
7750 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7751 lt_cv_ld_force_load=yes
7752 else
7753 cat conftest.err >&5
7755 rm -f conftest.err libconftest.a conftest conftest.c
7756 rm -rf conftest.dSYM
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7760 $as_echo "$lt_cv_ld_force_load" >&6; }
7761 case $host_os in
7762 rhapsody* | darwin1.[012])
7763 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7764 darwin1.*)
7765 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7766 darwin*) # darwin 5.x on
7767 # if running on 10.5 or later, the deployment target defaults
7768 # to the OS version, if on x86, and 10.4, the deployment
7769 # target defaults to 10.4. Don't you love it?
7770 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7771 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7772 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7773 10.[012][,.]*)
7774 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7775 10.*)
7776 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7777 esac
7779 esac
7780 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7781 _lt_dar_single_mod='$single_module'
7783 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7784 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7785 else
7786 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7788 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7789 _lt_dsymutil='~$DSYMUTIL $lib || :'
7790 else
7791 _lt_dsymutil=
7794 esac
7796 ac_ext=c
7797 ac_cpp='$CPP $CPPFLAGS'
7798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7802 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7803 # On Suns, sometimes $CPP names a directory.
7804 if test -n "$CPP" && test -d "$CPP"; then
7805 CPP=
7807 if test -z "$CPP"; then
7808 if ${ac_cv_prog_CPP+:} false; then :
7809 $as_echo_n "(cached) " >&6
7810 else
7811 # Double quotes because CPP needs to be expanded
7812 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7814 ac_preproc_ok=false
7815 for ac_c_preproc_warn_flag in '' yes
7817 # Use a header file that comes with gcc, so configuring glibc
7818 # with a fresh cross-compiler works.
7819 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7820 # <limits.h> exists even on freestanding compilers.
7821 # On the NeXT, cc -E runs the code through the compiler's parser,
7822 # not just through cpp. "Syntax error" is here to catch this case.
7823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824 /* end confdefs.h. */
7825 #ifdef __STDC__
7826 # include <limits.h>
7827 #else
7828 # include <assert.h>
7829 #endif
7830 Syntax error
7831 _ACEOF
7832 if ac_fn_c_try_cpp "$LINENO"; then :
7834 else
7835 # Broken: fails on valid input.
7836 continue
7838 rm -f conftest.err conftest.i conftest.$ac_ext
7840 # OK, works on sane cases. Now check whether nonexistent headers
7841 # can be detected and how.
7842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843 /* end confdefs.h. */
7844 #include <ac_nonexistent.h>
7845 _ACEOF
7846 if ac_fn_c_try_cpp "$LINENO"; then :
7847 # Broken: success on invalid input.
7848 continue
7849 else
7850 # Passes both tests.
7851 ac_preproc_ok=:
7852 break
7854 rm -f conftest.err conftest.i conftest.$ac_ext
7856 done
7857 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7858 rm -f conftest.i conftest.err conftest.$ac_ext
7859 if $ac_preproc_ok; then :
7860 break
7863 done
7864 ac_cv_prog_CPP=$CPP
7867 CPP=$ac_cv_prog_CPP
7868 else
7869 ac_cv_prog_CPP=$CPP
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7872 $as_echo "$CPP" >&6; }
7873 ac_preproc_ok=false
7874 for ac_c_preproc_warn_flag in '' yes
7876 # Use a header file that comes with gcc, so configuring glibc
7877 # with a fresh cross-compiler works.
7878 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7879 # <limits.h> exists even on freestanding compilers.
7880 # On the NeXT, cc -E runs the code through the compiler's parser,
7881 # not just through cpp. "Syntax error" is here to catch this case.
7882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7883 /* end confdefs.h. */
7884 #ifdef __STDC__
7885 # include <limits.h>
7886 #else
7887 # include <assert.h>
7888 #endif
7889 Syntax error
7890 _ACEOF
7891 if ac_fn_c_try_cpp "$LINENO"; then :
7893 else
7894 # Broken: fails on valid input.
7895 continue
7897 rm -f conftest.err conftest.i conftest.$ac_ext
7899 # OK, works on sane cases. Now check whether nonexistent headers
7900 # can be detected and how.
7901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902 /* end confdefs.h. */
7903 #include <ac_nonexistent.h>
7904 _ACEOF
7905 if ac_fn_c_try_cpp "$LINENO"; then :
7906 # Broken: success on invalid input.
7907 continue
7908 else
7909 # Passes both tests.
7910 ac_preproc_ok=:
7911 break
7913 rm -f conftest.err conftest.i conftest.$ac_ext
7915 done
7916 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7917 rm -f conftest.i conftest.err conftest.$ac_ext
7918 if $ac_preproc_ok; then :
7920 else
7921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7923 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7924 See \`config.log' for more details" "$LINENO" 5; }
7927 ac_ext=c
7928 ac_cpp='$CPP $CPPFLAGS'
7929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7935 $as_echo_n "checking for ANSI C header files... " >&6; }
7936 if ${ac_cv_header_stdc+:} false; then :
7937 $as_echo_n "(cached) " >&6
7938 else
7939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7940 /* end confdefs.h. */
7941 #include <stdlib.h>
7942 #include <stdarg.h>
7943 #include <string.h>
7944 #include <float.h>
7947 main ()
7951 return 0;
7953 _ACEOF
7954 if ac_fn_c_try_compile "$LINENO"; then :
7955 ac_cv_header_stdc=yes
7956 else
7957 ac_cv_header_stdc=no
7959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7961 if test $ac_cv_header_stdc = yes; then
7962 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964 /* end confdefs.h. */
7965 #include <string.h>
7967 _ACEOF
7968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7969 $EGREP "memchr" >/dev/null 2>&1; then :
7971 else
7972 ac_cv_header_stdc=no
7974 rm -f conftest*
7978 if test $ac_cv_header_stdc = yes; then
7979 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h. */
7982 #include <stdlib.h>
7984 _ACEOF
7985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7986 $EGREP "free" >/dev/null 2>&1; then :
7988 else
7989 ac_cv_header_stdc=no
7991 rm -f conftest*
7995 if test $ac_cv_header_stdc = yes; then
7996 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7997 if test "$cross_compiling" = yes; then :
7999 else
8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h. */
8002 #include <ctype.h>
8003 #include <stdlib.h>
8004 #if ((' ' & 0x0FF) == 0x020)
8005 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8006 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8007 #else
8008 # define ISLOWER(c) \
8009 (('a' <= (c) && (c) <= 'i') \
8010 || ('j' <= (c) && (c) <= 'r') \
8011 || ('s' <= (c) && (c) <= 'z'))
8012 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8013 #endif
8015 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8017 main ()
8019 int i;
8020 for (i = 0; i < 256; i++)
8021 if (XOR (islower (i), ISLOWER (i))
8022 || toupper (i) != TOUPPER (i))
8023 return 2;
8024 return 0;
8026 _ACEOF
8027 if ac_fn_c_try_run "$LINENO"; then :
8029 else
8030 ac_cv_header_stdc=no
8032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8033 conftest.$ac_objext conftest.beam conftest.$ac_ext
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8039 $as_echo "$ac_cv_header_stdc" >&6; }
8040 if test $ac_cv_header_stdc = yes; then
8042 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8046 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8047 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8048 inttypes.h stdint.h unistd.h
8049 do :
8050 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8051 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8053 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8054 cat >>confdefs.h <<_ACEOF
8055 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8056 _ACEOF
8060 done
8063 for ac_header in dlfcn.h
8064 do :
8065 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8067 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8068 cat >>confdefs.h <<_ACEOF
8069 #define HAVE_DLFCN_H 1
8070 _ACEOF
8074 done
8081 # Set options
8085 enable_dlopen=no
8088 enable_win32_dll=no
8091 # Check whether --enable-shared was given.
8092 if test "${enable_shared+set}" = set; then :
8093 enableval=$enable_shared; p=${PACKAGE-default}
8094 case $enableval in
8095 yes) enable_shared=yes ;;
8096 no) enable_shared=no ;;
8098 enable_shared=no
8099 # Look at the argument we got. We use all the common list separators.
8100 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8101 for pkg in $enableval; do
8102 IFS="$lt_save_ifs"
8103 if test "X$pkg" = "X$p"; then
8104 enable_shared=yes
8106 done
8107 IFS="$lt_save_ifs"
8109 esac
8110 else
8111 enable_shared=yes
8122 # Check whether --enable-static was given.
8123 if test "${enable_static+set}" = set; then :
8124 enableval=$enable_static; p=${PACKAGE-default}
8125 case $enableval in
8126 yes) enable_static=yes ;;
8127 no) enable_static=no ;;
8129 enable_static=no
8130 # Look at the argument we got. We use all the common list separators.
8131 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8132 for pkg in $enableval; do
8133 IFS="$lt_save_ifs"
8134 if test "X$pkg" = "X$p"; then
8135 enable_static=yes
8137 done
8138 IFS="$lt_save_ifs"
8140 esac
8141 else
8142 enable_static=yes
8154 # Check whether --with-pic was given.
8155 if test "${with_pic+set}" = set; then :
8156 withval=$with_pic; pic_mode="$withval"
8157 else
8158 pic_mode=default
8162 test -z "$pic_mode" && pic_mode=default
8170 # Check whether --enable-fast-install was given.
8171 if test "${enable_fast_install+set}" = set; then :
8172 enableval=$enable_fast_install; p=${PACKAGE-default}
8173 case $enableval in
8174 yes) enable_fast_install=yes ;;
8175 no) enable_fast_install=no ;;
8177 enable_fast_install=no
8178 # Look at the argument we got. We use all the common list separators.
8179 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8180 for pkg in $enableval; do
8181 IFS="$lt_save_ifs"
8182 if test "X$pkg" = "X$p"; then
8183 enable_fast_install=yes
8185 done
8186 IFS="$lt_save_ifs"
8188 esac
8189 else
8190 enable_fast_install=yes
8203 # This can be used to rebuild libtool when needed
8204 LIBTOOL_DEPS="$ltmain"
8206 # Always use our own libtool.
8207 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8234 test -z "$LN_S" && LN_S="ln -s"
8249 if test -n "${ZSH_VERSION+set}" ; then
8250 setopt NO_GLOB_SUBST
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8254 $as_echo_n "checking for objdir... " >&6; }
8255 if ${lt_cv_objdir+:} false; then :
8256 $as_echo_n "(cached) " >&6
8257 else
8258 rm -f .libs 2>/dev/null
8259 mkdir .libs 2>/dev/null
8260 if test -d .libs; then
8261 lt_cv_objdir=.libs
8262 else
8263 # MS-DOS does not allow filenames that begin with a dot.
8264 lt_cv_objdir=_libs
8266 rmdir .libs 2>/dev/null
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8269 $as_echo "$lt_cv_objdir" >&6; }
8270 objdir=$lt_cv_objdir
8276 cat >>confdefs.h <<_ACEOF
8277 #define LT_OBJDIR "$lt_cv_objdir/"
8278 _ACEOF
8283 case $host_os in
8284 aix3*)
8285 # AIX sometimes has problems with the GCC collect2 program. For some
8286 # reason, if we set the COLLECT_NAMES environment variable, the problems
8287 # vanish in a puff of smoke.
8288 if test "X${COLLECT_NAMES+set}" != Xset; then
8289 COLLECT_NAMES=
8290 export COLLECT_NAMES
8293 esac
8295 # Global variables:
8296 ofile=libtool
8297 can_build_shared=yes
8299 # All known linkers require a `.a' archive for static linking (except MSVC,
8300 # which needs '.lib').
8301 libext=a
8303 with_gnu_ld="$lt_cv_prog_gnu_ld"
8305 old_CC="$CC"
8306 old_CFLAGS="$CFLAGS"
8308 # Set sane defaults for various variables
8309 test -z "$CC" && CC=cc
8310 test -z "$LTCC" && LTCC=$CC
8311 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8312 test -z "$LD" && LD=ld
8313 test -z "$ac_objext" && ac_objext=o
8315 for cc_temp in $compiler""; do
8316 case $cc_temp in
8317 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8318 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8319 \-*) ;;
8320 *) break;;
8321 esac
8322 done
8323 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8326 # Only perform the check for file, if the check method requires it
8327 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8328 case $deplibs_check_method in
8329 file_magic*)
8330 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8332 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8333 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8334 $as_echo_n "(cached) " >&6
8335 else
8336 case $MAGIC_CMD in
8337 [\\/*] | ?:[\\/]*)
8338 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8341 lt_save_MAGIC_CMD="$MAGIC_CMD"
8342 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8343 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8344 for ac_dir in $ac_dummy; do
8345 IFS="$lt_save_ifs"
8346 test -z "$ac_dir" && ac_dir=.
8347 if test -f $ac_dir/${ac_tool_prefix}file; then
8348 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8349 if test -n "$file_magic_test_file"; then
8350 case $deplibs_check_method in
8351 "file_magic "*)
8352 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8353 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8354 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8355 $EGREP "$file_magic_regex" > /dev/null; then
8357 else
8358 cat <<_LT_EOF 1>&2
8360 *** Warning: the command libtool uses to detect shared libraries,
8361 *** $file_magic_cmd, produces output that libtool cannot recognize.
8362 *** The result is that libtool may fail to recognize shared libraries
8363 *** as such. This will affect the creation of libtool libraries that
8364 *** depend on shared libraries, but programs linked with such libtool
8365 *** libraries will work regardless of this problem. Nevertheless, you
8366 *** may want to report the problem to your system manager and/or to
8367 *** bug-libtool@gnu.org
8369 _LT_EOF
8370 fi ;;
8371 esac
8373 break
8375 done
8376 IFS="$lt_save_ifs"
8377 MAGIC_CMD="$lt_save_MAGIC_CMD"
8379 esac
8382 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8383 if test -n "$MAGIC_CMD"; then
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8385 $as_echo "$MAGIC_CMD" >&6; }
8386 else
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8395 if test -z "$lt_cv_path_MAGIC_CMD"; then
8396 if test -n "$ac_tool_prefix"; then
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8398 $as_echo_n "checking for file... " >&6; }
8399 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8400 $as_echo_n "(cached) " >&6
8401 else
8402 case $MAGIC_CMD in
8403 [\\/*] | ?:[\\/]*)
8404 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8407 lt_save_MAGIC_CMD="$MAGIC_CMD"
8408 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8409 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8410 for ac_dir in $ac_dummy; do
8411 IFS="$lt_save_ifs"
8412 test -z "$ac_dir" && ac_dir=.
8413 if test -f $ac_dir/file; then
8414 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8415 if test -n "$file_magic_test_file"; then
8416 case $deplibs_check_method in
8417 "file_magic "*)
8418 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8419 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8420 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8421 $EGREP "$file_magic_regex" > /dev/null; then
8423 else
8424 cat <<_LT_EOF 1>&2
8426 *** Warning: the command libtool uses to detect shared libraries,
8427 *** $file_magic_cmd, produces output that libtool cannot recognize.
8428 *** The result is that libtool may fail to recognize shared libraries
8429 *** as such. This will affect the creation of libtool libraries that
8430 *** depend on shared libraries, but programs linked with such libtool
8431 *** libraries will work regardless of this problem. Nevertheless, you
8432 *** may want to report the problem to your system manager and/or to
8433 *** bug-libtool@gnu.org
8435 _LT_EOF
8436 fi ;;
8437 esac
8439 break
8441 done
8442 IFS="$lt_save_ifs"
8443 MAGIC_CMD="$lt_save_MAGIC_CMD"
8445 esac
8448 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8449 if test -n "$MAGIC_CMD"; then
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8451 $as_echo "$MAGIC_CMD" >&6; }
8452 else
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8454 $as_echo "no" >&6; }
8458 else
8459 MAGIC_CMD=:
8465 esac
8467 # Use C for the default configuration in the libtool script
8469 lt_save_CC="$CC"
8470 ac_ext=c
8471 ac_cpp='$CPP $CPPFLAGS'
8472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8477 # Source file extension for C test sources.
8478 ac_ext=c
8480 # Object file extension for compiled C test sources.
8481 objext=o
8482 objext=$objext
8484 # Code to be used in simple compile tests
8485 lt_simple_compile_test_code="int some_variable = 0;"
8487 # Code to be used in simple link tests
8488 lt_simple_link_test_code='int main(){return(0);}'
8496 # If no C compiler was specified, use CC.
8497 LTCC=${LTCC-"$CC"}
8499 # If no C compiler flags were specified, use CFLAGS.
8500 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8502 # Allow CC to be a program name with arguments.
8503 compiler=$CC
8505 # Save the default compiler, since it gets overwritten when the other
8506 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8507 compiler_DEFAULT=$CC
8509 # save warnings/boilerplate of simple test code
8510 ac_outfile=conftest.$ac_objext
8511 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8512 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8513 _lt_compiler_boilerplate=`cat conftest.err`
8514 $RM conftest*
8516 ac_outfile=conftest.$ac_objext
8517 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8518 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8519 _lt_linker_boilerplate=`cat conftest.err`
8520 $RM -r conftest*
8523 ## CAVEAT EMPTOR:
8524 ## There is no encapsulation within the following macros, do not change
8525 ## the running order or otherwise move them around unless you know exactly
8526 ## what you are doing...
8527 if test -n "$compiler"; then
8529 lt_prog_compiler_no_builtin_flag=
8531 if test "$GCC" = yes; then
8532 case $cc_basename in
8533 nvcc*)
8534 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8536 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8537 esac
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8540 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8541 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8542 $as_echo_n "(cached) " >&6
8543 else
8544 lt_cv_prog_compiler_rtti_exceptions=no
8545 ac_outfile=conftest.$ac_objext
8546 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8547 lt_compiler_flag="-fno-rtti -fno-exceptions"
8548 # Insert the option either (1) after the last *FLAGS variable, or
8549 # (2) before a word containing "conftest.", or (3) at the end.
8550 # Note that $ac_compile itself does not contain backslashes and begins
8551 # with a dollar sign (not a hyphen), so the echo should work correctly.
8552 # The option is referenced via a variable to avoid confusing sed.
8553 lt_compile=`echo "$ac_compile" | $SED \
8554 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8555 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8556 -e 's:$: $lt_compiler_flag:'`
8557 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8558 (eval "$lt_compile" 2>conftest.err)
8559 ac_status=$?
8560 cat conftest.err >&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 if (exit $ac_status) && test -s "$ac_outfile"; then
8563 # The compiler can only warn and ignore the option if not recognized
8564 # So say no if there are warnings other than the usual output.
8565 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8566 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8567 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8568 lt_cv_prog_compiler_rtti_exceptions=yes
8571 $RM conftest*
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8575 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8577 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8578 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8579 else
8590 lt_prog_compiler_wl=
8591 lt_prog_compiler_pic=
8592 lt_prog_compiler_static=
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8595 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8597 if test "$GCC" = yes; then
8598 lt_prog_compiler_wl='-Wl,'
8599 lt_prog_compiler_static='-static'
8601 case $host_os in
8602 aix*)
8603 # All AIX code is PIC.
8604 if test "$host_cpu" = ia64; then
8605 # AIX 5 now supports IA64 processor
8606 lt_prog_compiler_static='-Bstatic'
8608 lt_prog_compiler_pic='-fPIC'
8611 amigaos*)
8612 case $host_cpu in
8613 powerpc)
8614 # see comment about AmigaOS4 .so support
8615 lt_prog_compiler_pic='-fPIC'
8617 m68k)
8618 # FIXME: we need at least 68020 code to build shared libraries, but
8619 # adding the `-m68020' flag to GCC prevents building anything better,
8620 # like `-m68040'.
8621 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8623 esac
8626 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8627 # PIC is the default for these OSes.
8630 mingw* | cygwin* | pw32* | os2* | cegcc*)
8631 # This hack is so that the source file can tell whether it is being
8632 # built for inclusion in a dll (and should export symbols for example).
8633 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8634 # (--disable-auto-import) libraries
8635 lt_prog_compiler_pic='-DDLL_EXPORT'
8638 darwin* | rhapsody*)
8639 # PIC is the default on this platform
8640 # Common symbols not allowed in MH_DYLIB files
8641 lt_prog_compiler_pic='-fno-common'
8644 haiku*)
8645 # PIC is the default for Haiku.
8646 # The "-static" flag exists, but is broken.
8647 lt_prog_compiler_static=
8650 hpux*)
8651 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8652 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8653 # sets the default TLS model and affects inlining.
8654 case $host_cpu in
8655 hppa*64*)
8656 # +Z the default
8659 lt_prog_compiler_pic='-fPIC'
8661 esac
8664 interix[3-9]*)
8665 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8666 # Instead, we relocate shared libraries at runtime.
8669 msdosdjgpp*)
8670 # Just because we use GCC doesn't mean we suddenly get shared libraries
8671 # on systems that don't support them.
8672 lt_prog_compiler_can_build_shared=no
8673 enable_shared=no
8676 *nto* | *qnx*)
8677 # QNX uses GNU C++, but need to define -shared option too, otherwise
8678 # it will coredump.
8679 lt_prog_compiler_pic='-fPIC -shared'
8682 sysv4*MP*)
8683 if test -d /usr/nec; then
8684 lt_prog_compiler_pic=-Kconform_pic
8689 lt_prog_compiler_pic='-fPIC'
8691 esac
8693 case $cc_basename in
8694 nvcc*) # Cuda Compiler Driver 2.2
8695 lt_prog_compiler_wl='-Xlinker '
8696 lt_prog_compiler_pic='-Xcompiler -fPIC'
8698 esac
8699 else
8700 # PORTME Check for flag to pass linker flags through the system compiler.
8701 case $host_os in
8702 aix*)
8703 lt_prog_compiler_wl='-Wl,'
8704 if test "$host_cpu" = ia64; then
8705 # AIX 5 now supports IA64 processor
8706 lt_prog_compiler_static='-Bstatic'
8707 else
8708 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8712 mingw* | cygwin* | pw32* | os2* | cegcc*)
8713 # This hack is so that the source file can tell whether it is being
8714 # built for inclusion in a dll (and should export symbols for example).
8715 lt_prog_compiler_pic='-DDLL_EXPORT'
8718 hpux9* | hpux10* | hpux11*)
8719 lt_prog_compiler_wl='-Wl,'
8720 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8721 # not for PA HP-UX.
8722 case $host_cpu in
8723 hppa*64*|ia64*)
8724 # +Z the default
8727 lt_prog_compiler_pic='+Z'
8729 esac
8730 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8731 lt_prog_compiler_static='${wl}-a ${wl}archive'
8734 irix5* | irix6* | nonstopux*)
8735 lt_prog_compiler_wl='-Wl,'
8736 # PIC (with -KPIC) is the default.
8737 lt_prog_compiler_static='-non_shared'
8740 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8741 case $cc_basename in
8742 # old Intel for x86_64 which still supported -KPIC.
8743 ecc*)
8744 lt_prog_compiler_wl='-Wl,'
8745 lt_prog_compiler_pic='-KPIC'
8746 lt_prog_compiler_static='-static'
8748 # icc used to be incompatible with GCC.
8749 # ICC 10 doesn't accept -KPIC any more.
8750 icc* | ifort*)
8751 lt_prog_compiler_wl='-Wl,'
8752 lt_prog_compiler_pic='-fPIC'
8753 lt_prog_compiler_static='-static'
8755 # Lahey Fortran 8.1.
8756 lf95*)
8757 lt_prog_compiler_wl='-Wl,'
8758 lt_prog_compiler_pic='--shared'
8759 lt_prog_compiler_static='--static'
8761 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8762 # Portland Group compilers (*not* the Pentium gcc compiler,
8763 # which looks to be a dead project)
8764 lt_prog_compiler_wl='-Wl,'
8765 lt_prog_compiler_pic='-fpic'
8766 lt_prog_compiler_static='-Bstatic'
8768 ccc*)
8769 lt_prog_compiler_wl='-Wl,'
8770 # All Alpha code is PIC.
8771 lt_prog_compiler_static='-non_shared'
8773 xl* | bgxl* | bgf* | mpixl*)
8774 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8775 lt_prog_compiler_wl='-Wl,'
8776 lt_prog_compiler_pic='-qpic'
8777 lt_prog_compiler_static='-qstaticlink'
8780 case `$CC -V 2>&1 | sed 5q` in
8781 *Sun\ F* | *Sun*Fortran*)
8782 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8783 lt_prog_compiler_pic='-KPIC'
8784 lt_prog_compiler_static='-Bstatic'
8785 lt_prog_compiler_wl=''
8787 *Sun\ C*)
8788 # Sun C 5.9
8789 lt_prog_compiler_pic='-KPIC'
8790 lt_prog_compiler_static='-Bstatic'
8791 lt_prog_compiler_wl='-Wl,'
8793 esac
8795 esac
8798 newsos6)
8799 lt_prog_compiler_pic='-KPIC'
8800 lt_prog_compiler_static='-Bstatic'
8803 *nto* | *qnx*)
8804 # QNX uses GNU C++, but need to define -shared option too, otherwise
8805 # it will coredump.
8806 lt_prog_compiler_pic='-fPIC -shared'
8809 osf3* | osf4* | osf5*)
8810 lt_prog_compiler_wl='-Wl,'
8811 # All OSF/1 code is PIC.
8812 lt_prog_compiler_static='-non_shared'
8815 rdos*)
8816 lt_prog_compiler_static='-non_shared'
8819 solaris*)
8820 lt_prog_compiler_pic='-KPIC'
8821 lt_prog_compiler_static='-Bstatic'
8822 case $cc_basename in
8823 f77* | f90* | f95*)
8824 lt_prog_compiler_wl='-Qoption ld ';;
8826 lt_prog_compiler_wl='-Wl,';;
8827 esac
8830 sunos4*)
8831 lt_prog_compiler_wl='-Qoption ld '
8832 lt_prog_compiler_pic='-PIC'
8833 lt_prog_compiler_static='-Bstatic'
8836 sysv4 | sysv4.2uw2* | sysv4.3*)
8837 lt_prog_compiler_wl='-Wl,'
8838 lt_prog_compiler_pic='-KPIC'
8839 lt_prog_compiler_static='-Bstatic'
8842 sysv4*MP*)
8843 if test -d /usr/nec ;then
8844 lt_prog_compiler_pic='-Kconform_pic'
8845 lt_prog_compiler_static='-Bstatic'
8849 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8850 lt_prog_compiler_wl='-Wl,'
8851 lt_prog_compiler_pic='-KPIC'
8852 lt_prog_compiler_static='-Bstatic'
8855 unicos*)
8856 lt_prog_compiler_wl='-Wl,'
8857 lt_prog_compiler_can_build_shared=no
8860 uts4*)
8861 lt_prog_compiler_pic='-pic'
8862 lt_prog_compiler_static='-Bstatic'
8866 lt_prog_compiler_can_build_shared=no
8868 esac
8871 case $host_os in
8872 # For platforms which do not support PIC, -DPIC is meaningless:
8873 *djgpp*)
8874 lt_prog_compiler_pic=
8877 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8879 esac
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8881 $as_echo "$lt_prog_compiler_pic" >&6; }
8889 # Check to make sure the PIC flag actually works.
8891 if test -n "$lt_prog_compiler_pic"; then
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8893 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8894 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8895 $as_echo_n "(cached) " >&6
8896 else
8897 lt_cv_prog_compiler_pic_works=no
8898 ac_outfile=conftest.$ac_objext
8899 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8900 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8901 # Insert the option either (1) after the last *FLAGS variable, or
8902 # (2) before a word containing "conftest.", or (3) at the end.
8903 # Note that $ac_compile itself does not contain backslashes and begins
8904 # with a dollar sign (not a hyphen), so the echo should work correctly.
8905 # The option is referenced via a variable to avoid confusing sed.
8906 lt_compile=`echo "$ac_compile" | $SED \
8907 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8908 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8909 -e 's:$: $lt_compiler_flag:'`
8910 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8911 (eval "$lt_compile" 2>conftest.err)
8912 ac_status=$?
8913 cat conftest.err >&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 if (exit $ac_status) && test -s "$ac_outfile"; then
8916 # The compiler can only warn and ignore the option if not recognized
8917 # So say no if there are warnings other than the usual output.
8918 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8919 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8920 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8921 lt_cv_prog_compiler_pic_works=yes
8924 $RM conftest*
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8928 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8930 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8931 case $lt_prog_compiler_pic in
8932 "" | " "*) ;;
8933 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8934 esac
8935 else
8936 lt_prog_compiler_pic=
8937 lt_prog_compiler_can_build_shared=no
8948 # Check to make sure the static flag actually works.
8950 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8952 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8953 if ${lt_cv_prog_compiler_static_works+:} false; then :
8954 $as_echo_n "(cached) " >&6
8955 else
8956 lt_cv_prog_compiler_static_works=no
8957 save_LDFLAGS="$LDFLAGS"
8958 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8959 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8960 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8961 # The linker can only warn and ignore the option if not recognized
8962 # So say no if there are warnings
8963 if test -s conftest.err; then
8964 # Append any errors to the config.log.
8965 cat conftest.err 1>&5
8966 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8967 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8968 if diff conftest.exp conftest.er2 >/dev/null; then
8969 lt_cv_prog_compiler_static_works=yes
8971 else
8972 lt_cv_prog_compiler_static_works=yes
8975 $RM -r conftest*
8976 LDFLAGS="$save_LDFLAGS"
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8980 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8982 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8984 else
8985 lt_prog_compiler_static=
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8995 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8996 if ${lt_cv_prog_compiler_c_o+:} false; then :
8997 $as_echo_n "(cached) " >&6
8998 else
8999 lt_cv_prog_compiler_c_o=no
9000 $RM -r conftest 2>/dev/null
9001 mkdir conftest
9002 cd conftest
9003 mkdir out
9004 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9006 lt_compiler_flag="-o out/conftest2.$ac_objext"
9007 # Insert the option either (1) after the last *FLAGS variable, or
9008 # (2) before a word containing "conftest.", or (3) at the end.
9009 # Note that $ac_compile itself does not contain backslashes and begins
9010 # with a dollar sign (not a hyphen), so the echo should work correctly.
9011 lt_compile=`echo "$ac_compile" | $SED \
9012 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9013 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9014 -e 's:$: $lt_compiler_flag:'`
9015 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9016 (eval "$lt_compile" 2>out/conftest.err)
9017 ac_status=$?
9018 cat out/conftest.err >&5
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9021 then
9022 # The compiler can only warn and ignore the option if not recognized
9023 # So say no if there are warnings
9024 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9025 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9026 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9027 lt_cv_prog_compiler_c_o=yes
9030 chmod u+w . 2>&5
9031 $RM conftest*
9032 # SGI C++ compiler will create directory out/ii_files/ for
9033 # template instantiation
9034 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9035 $RM out/* && rmdir out
9036 cd ..
9037 $RM -r conftest
9038 $RM conftest*
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9042 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9050 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9051 if ${lt_cv_prog_compiler_c_o+:} false; then :
9052 $as_echo_n "(cached) " >&6
9053 else
9054 lt_cv_prog_compiler_c_o=no
9055 $RM -r conftest 2>/dev/null
9056 mkdir conftest
9057 cd conftest
9058 mkdir out
9059 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9061 lt_compiler_flag="-o out/conftest2.$ac_objext"
9062 # Insert the option either (1) after the last *FLAGS variable, or
9063 # (2) before a word containing "conftest.", or (3) at the end.
9064 # Note that $ac_compile itself does not contain backslashes and begins
9065 # with a dollar sign (not a hyphen), so the echo should work correctly.
9066 lt_compile=`echo "$ac_compile" | $SED \
9067 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9068 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9069 -e 's:$: $lt_compiler_flag:'`
9070 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9071 (eval "$lt_compile" 2>out/conftest.err)
9072 ac_status=$?
9073 cat out/conftest.err >&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9076 then
9077 # The compiler can only warn and ignore the option if not recognized
9078 # So say no if there are warnings
9079 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9080 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9081 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9082 lt_cv_prog_compiler_c_o=yes
9085 chmod u+w . 2>&5
9086 $RM conftest*
9087 # SGI C++ compiler will create directory out/ii_files/ for
9088 # template instantiation
9089 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9090 $RM out/* && rmdir out
9091 cd ..
9092 $RM -r conftest
9093 $RM conftest*
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9097 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9102 hard_links="nottested"
9103 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9104 # do not overwrite the value of need_locks provided by the user
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9106 $as_echo_n "checking if we can lock with hard links... " >&6; }
9107 hard_links=yes
9108 $RM conftest*
9109 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9110 touch conftest.a
9111 ln conftest.a conftest.b 2>&5 || hard_links=no
9112 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9114 $as_echo "$hard_links" >&6; }
9115 if test "$hard_links" = no; then
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9117 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9118 need_locks=warn
9120 else
9121 need_locks=no
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9130 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9132 runpath_var=
9133 allow_undefined_flag=
9134 always_export_symbols=no
9135 archive_cmds=
9136 archive_expsym_cmds=
9137 compiler_needs_object=no
9138 enable_shared_with_static_runtimes=no
9139 export_dynamic_flag_spec=
9140 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9141 hardcode_automatic=no
9142 hardcode_direct=no
9143 hardcode_direct_absolute=no
9144 hardcode_libdir_flag_spec=
9145 hardcode_libdir_flag_spec_ld=
9146 hardcode_libdir_separator=
9147 hardcode_minus_L=no
9148 hardcode_shlibpath_var=unsupported
9149 inherit_rpath=no
9150 link_all_deplibs=unknown
9151 module_cmds=
9152 module_expsym_cmds=
9153 old_archive_from_new_cmds=
9154 old_archive_from_expsyms_cmds=
9155 thread_safe_flag_spec=
9156 whole_archive_flag_spec=
9157 # include_expsyms should be a list of space-separated symbols to be *always*
9158 # included in the symbol list
9159 include_expsyms=
9160 # exclude_expsyms can be an extended regexp of symbols to exclude
9161 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9162 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9163 # as well as any symbol that contains `d'.
9164 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9165 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9166 # platforms (ab)use it in PIC code, but their linkers get confused if
9167 # the symbol is explicitly referenced. Since portable code cannot
9168 # rely on this symbol name, it's probably fine to never include it in
9169 # preloaded symbol tables.
9170 # Exclude shared library initialization/finalization symbols.
9171 extract_expsyms_cmds=
9173 case $host_os in
9174 cygwin* | mingw* | pw32* | cegcc*)
9175 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9176 # When not using gcc, we currently assume that we are using
9177 # Microsoft Visual C++.
9178 if test "$GCC" != yes; then
9179 with_gnu_ld=no
9182 interix*)
9183 # we just hope/assume this is gcc and not c89 (= MSVC++)
9184 with_gnu_ld=yes
9186 openbsd*)
9187 with_gnu_ld=no
9189 esac
9191 ld_shlibs=yes
9193 # On some targets, GNU ld is compatible enough with the native linker
9194 # that we're better off using the native interface for both.
9195 lt_use_gnu_ld_interface=no
9196 if test "$with_gnu_ld" = yes; then
9197 case $host_os in
9198 aix*)
9199 # The AIX port of GNU ld has always aspired to compatibility
9200 # with the native linker. However, as the warning in the GNU ld
9201 # block says, versions before 2.19.5* couldn't really create working
9202 # shared libraries, regardless of the interface used.
9203 case `$LD -v 2>&1` in
9204 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9205 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9206 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9208 lt_use_gnu_ld_interface=yes
9210 esac
9213 lt_use_gnu_ld_interface=yes
9215 esac
9218 if test "$lt_use_gnu_ld_interface" = yes; then
9219 # If archive_cmds runs LD, not CC, wlarc should be empty
9220 wlarc='${wl}'
9222 # Set some defaults for GNU ld with shared library support. These
9223 # are reset later if shared libraries are not supported. Putting them
9224 # here allows them to be overridden if necessary.
9225 runpath_var=LD_RUN_PATH
9226 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9227 export_dynamic_flag_spec='${wl}--export-dynamic'
9228 # ancient GNU ld didn't support --whole-archive et. al.
9229 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9230 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9231 else
9232 whole_archive_flag_spec=
9234 supports_anon_versioning=no
9235 case `$LD -v 2>&1` in
9236 *GNU\ gold*) supports_anon_versioning=yes ;;
9237 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9238 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9239 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9240 *\ 2.11.*) ;; # other 2.11 versions
9241 *) supports_anon_versioning=yes ;;
9242 esac
9244 # See if GNU ld supports shared libraries.
9245 case $host_os in
9246 aix[3-9]*)
9247 # On AIX/PPC, the GNU linker is very broken
9248 if test "$host_cpu" != ia64; then
9249 ld_shlibs=no
9250 cat <<_LT_EOF 1>&2
9252 *** Warning: the GNU linker, at least up to release 2.19, is reported
9253 *** to be unable to reliably create shared libraries on AIX.
9254 *** Therefore, libtool is disabling shared libraries support. If you
9255 *** really care for shared libraries, you may want to install binutils
9256 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9257 *** You will then need to restart the configuration process.
9259 _LT_EOF
9263 amigaos*)
9264 case $host_cpu in
9265 powerpc)
9266 # see comment about AmigaOS4 .so support
9267 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9268 archive_expsym_cmds=''
9270 m68k)
9271 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)'
9272 hardcode_libdir_flag_spec='-L$libdir'
9273 hardcode_minus_L=yes
9275 esac
9278 beos*)
9279 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9280 allow_undefined_flag=unsupported
9281 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9282 # support --undefined. This deserves some investigation. FIXME
9283 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9284 else
9285 ld_shlibs=no
9289 cygwin* | mingw* | pw32* | cegcc*)
9290 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9291 # as there is no search path for DLLs.
9292 hardcode_libdir_flag_spec='-L$libdir'
9293 export_dynamic_flag_spec='${wl}--export-all-symbols'
9294 allow_undefined_flag=unsupported
9295 always_export_symbols=no
9296 enable_shared_with_static_runtimes=yes
9297 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9299 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9300 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9301 # If the export-symbols file already is a .def file (1st line
9302 # is EXPORTS), use it as is; otherwise, prepend...
9303 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9304 cp $export_symbols $output_objdir/$soname.def;
9305 else
9306 echo EXPORTS > $output_objdir/$soname.def;
9307 cat $export_symbols >> $output_objdir/$soname.def;
9309 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9310 else
9311 ld_shlibs=no
9315 haiku*)
9316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9317 link_all_deplibs=yes
9320 interix[3-9]*)
9321 hardcode_direct=no
9322 hardcode_shlibpath_var=no
9323 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9324 export_dynamic_flag_spec='${wl}-E'
9325 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9326 # Instead, shared libraries are loaded at an image base (0x10000000 by
9327 # default) and relocated if they conflict, which is a slow very memory
9328 # consuming and fragmenting process. To avoid this, we pick a random,
9329 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9330 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9331 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9332 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'
9335 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9336 tmp_diet=no
9337 if test "$host_os" = linux-dietlibc; then
9338 case $cc_basename in
9339 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9340 esac
9342 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9343 && test "$tmp_diet" = no
9344 then
9345 tmp_addflag=' $pic_flag'
9346 tmp_sharedflag='-shared'
9347 case $cc_basename,$host_cpu in
9348 pgcc*) # Portland Group C compiler
9349 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'
9350 tmp_addflag=' $pic_flag'
9352 pgf77* | pgf90* | pgf95* | pgfortran*)
9353 # Portland Group f77 and f90 compilers
9354 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'
9355 tmp_addflag=' $pic_flag -Mnomain' ;;
9356 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9357 tmp_addflag=' -i_dynamic' ;;
9358 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9359 tmp_addflag=' -i_dynamic -nofor_main' ;;
9360 ifc* | ifort*) # Intel Fortran compiler
9361 tmp_addflag=' -nofor_main' ;;
9362 lf95*) # Lahey Fortran 8.1
9363 whole_archive_flag_spec=
9364 tmp_sharedflag='--shared' ;;
9365 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9366 tmp_sharedflag='-qmkshrobj'
9367 tmp_addflag= ;;
9368 nvcc*) # Cuda Compiler Driver 2.2
9369 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'
9370 compiler_needs_object=yes
9372 esac
9373 case `$CC -V 2>&1 | sed 5q` in
9374 *Sun\ C*) # Sun C 5.9
9375 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'
9376 compiler_needs_object=yes
9377 tmp_sharedflag='-G' ;;
9378 *Sun\ F*) # Sun Fortran 8.3
9379 tmp_sharedflag='-G' ;;
9380 esac
9381 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9383 if test "x$supports_anon_versioning" = xyes; then
9384 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9385 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9386 echo "local: *; };" >> $output_objdir/$libname.ver~
9387 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9390 case $cc_basename in
9391 xlf* | bgf* | bgxlf* | mpixlf*)
9392 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9393 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9394 hardcode_libdir_flag_spec=
9395 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9396 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9397 if test "x$supports_anon_versioning" = xyes; then
9398 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9399 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9400 echo "local: *; };" >> $output_objdir/$libname.ver~
9401 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9404 esac
9405 else
9406 ld_shlibs=no
9410 netbsd*)
9411 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9412 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9413 wlarc=
9414 else
9415 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9416 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9420 solaris*)
9421 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9422 ld_shlibs=no
9423 cat <<_LT_EOF 1>&2
9425 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9426 *** create shared libraries on Solaris systems. Therefore, libtool
9427 *** is disabling shared libraries support. We urge you to upgrade GNU
9428 *** binutils to release 2.9.1 or newer. Another option is to modify
9429 *** your PATH or compiler configuration so that the native linker is
9430 *** used, and then restart.
9432 _LT_EOF
9433 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9434 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9435 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9436 else
9437 ld_shlibs=no
9441 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9442 case `$LD -v 2>&1` in
9443 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9444 ld_shlibs=no
9445 cat <<_LT_EOF 1>&2
9447 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9448 *** reliably create shared libraries on SCO systems. Therefore, libtool
9449 *** is disabling shared libraries support. We urge you to upgrade GNU
9450 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9451 *** your PATH or compiler configuration so that the native linker is
9452 *** used, and then restart.
9454 _LT_EOF
9457 # For security reasons, it is highly recommended that you always
9458 # use absolute paths for naming shared libraries, and exclude the
9459 # DT_RUNPATH tag from executables and libraries. But doing so
9460 # requires that you compile everything twice, which is a pain.
9461 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9462 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9463 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9464 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9465 else
9466 ld_shlibs=no
9469 esac
9472 sunos4*)
9473 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9474 wlarc=
9475 hardcode_direct=yes
9476 hardcode_shlibpath_var=no
9480 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9481 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9482 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9483 else
9484 ld_shlibs=no
9487 esac
9489 if test "$ld_shlibs" = no; then
9490 runpath_var=
9491 hardcode_libdir_flag_spec=
9492 export_dynamic_flag_spec=
9493 whole_archive_flag_spec=
9495 else
9496 # PORTME fill in a description of your system's linker (not GNU ld)
9497 case $host_os in
9498 aix3*)
9499 allow_undefined_flag=unsupported
9500 always_export_symbols=yes
9501 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'
9502 # Note: this linker hardcodes the directories in LIBPATH if there
9503 # are no directories specified by -L.
9504 hardcode_minus_L=yes
9505 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9506 # Neither direct hardcoding nor static linking is supported with a
9507 # broken collect2.
9508 hardcode_direct=unsupported
9512 aix[4-9]*)
9513 if test "$host_cpu" = ia64; then
9514 # On IA64, the linker does run time linking by default, so we don't
9515 # have to do anything special.
9516 aix_use_runtimelinking=no
9517 exp_sym_flag='-Bexport'
9518 no_entry_flag=""
9519 else
9520 # If we're using GNU nm, then we don't want the "-C" option.
9521 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9522 # Also, AIX nm treats weak defined symbols like other global
9523 # defined symbols, whereas GNU nm marks them as "W".
9524 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9525 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'
9526 else
9527 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'
9529 aix_use_runtimelinking=no
9531 # Test if we are trying to use run time linking or normal
9532 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9533 # need to do runtime linking.
9534 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9535 for ld_flag in $LDFLAGS; do
9536 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9537 aix_use_runtimelinking=yes
9538 break
9540 done
9542 esac
9544 exp_sym_flag='-bexport'
9545 no_entry_flag='-bnoentry'
9548 # When large executables or shared objects are built, AIX ld can
9549 # have problems creating the table of contents. If linking a library
9550 # or program results in "error TOC overflow" add -mminimal-toc to
9551 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9552 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9554 archive_cmds=''
9555 hardcode_direct=yes
9556 hardcode_direct_absolute=yes
9557 hardcode_libdir_separator=':'
9558 link_all_deplibs=yes
9559 file_list_spec='${wl}-f,'
9561 if test "$GCC" = yes; then
9562 case $host_os in aix4.[012]|aix4.[012].*)
9563 # We only want to do this on AIX 4.2 and lower, the check
9564 # below for broken collect2 doesn't work under 4.3+
9565 collect2name=`${CC} -print-prog-name=collect2`
9566 if test -f "$collect2name" &&
9567 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9568 then
9569 # We have reworked collect2
9571 else
9572 # We have old collect2
9573 hardcode_direct=unsupported
9574 # It fails to find uninstalled libraries when the uninstalled
9575 # path is not listed in the libpath. Setting hardcode_minus_L
9576 # to unsupported forces relinking
9577 hardcode_minus_L=yes
9578 hardcode_libdir_flag_spec='-L$libdir'
9579 hardcode_libdir_separator=
9582 esac
9583 shared_flag='-shared'
9584 if test "$aix_use_runtimelinking" = yes; then
9585 shared_flag="$shared_flag "'${wl}-G'
9587 else
9588 # not using gcc
9589 if test "$host_cpu" = ia64; then
9590 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9591 # chokes on -Wl,-G. The following line is correct:
9592 shared_flag='-G'
9593 else
9594 if test "$aix_use_runtimelinking" = yes; then
9595 shared_flag='${wl}-G'
9596 else
9597 shared_flag='${wl}-bM:SRE'
9602 export_dynamic_flag_spec='${wl}-bexpall'
9603 # It seems that -bexpall does not export symbols beginning with
9604 # underscore (_), so it is better to generate a list of symbols to export.
9605 always_export_symbols=yes
9606 if test "$aix_use_runtimelinking" = yes; then
9607 # Warning - without using the other runtime loading flags (-brtl),
9608 # -berok will link without error, but may produce a broken library.
9609 allow_undefined_flag='-berok'
9610 # Determine the default libpath from the value encoded in an
9611 # empty executable.
9612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9613 /* end confdefs.h. */
9616 main ()
9620 return 0;
9622 _ACEOF
9623 if ac_fn_c_try_link "$LINENO"; then :
9625 lt_aix_libpath_sed='
9626 /Import File Strings/,/^$/ {
9627 /^0/ {
9628 s/^0 *\(.*\)$/\1/
9632 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9633 # Check for a 64-bit object if we didn't find anything.
9634 if test -z "$aix_libpath"; then
9635 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9638 rm -f core conftest.err conftest.$ac_objext \
9639 conftest$ac_exeext conftest.$ac_ext
9640 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9642 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9643 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"
9644 else
9645 if test "$host_cpu" = ia64; then
9646 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9647 allow_undefined_flag="-z nodefs"
9648 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"
9649 else
9650 # Determine the default libpath from the value encoded in an
9651 # empty executable.
9652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9653 /* end confdefs.h. */
9656 main ()
9660 return 0;
9662 _ACEOF
9663 if ac_fn_c_try_link "$LINENO"; then :
9665 lt_aix_libpath_sed='
9666 /Import File Strings/,/^$/ {
9667 /^0/ {
9668 s/^0 *\(.*\)$/\1/
9672 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9673 # Check for a 64-bit object if we didn't find anything.
9674 if test -z "$aix_libpath"; then
9675 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9678 rm -f core conftest.err conftest.$ac_objext \
9679 conftest$ac_exeext conftest.$ac_ext
9680 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9682 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9683 # Warning - without using the other run time loading flags,
9684 # -berok will link without error, but may produce a broken library.
9685 no_undefined_flag=' ${wl}-bernotok'
9686 allow_undefined_flag=' ${wl}-berok'
9687 if test "$with_gnu_ld" = yes; then
9688 # We only use this code for GNU lds that support --whole-archive.
9689 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9690 else
9691 # Exported symbols can be pulled into shared objects from archives
9692 whole_archive_flag_spec='$convenience'
9694 archive_cmds_need_lc=yes
9695 # This is similar to how AIX traditionally builds its shared libraries.
9696 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'
9701 amigaos*)
9702 case $host_cpu in
9703 powerpc)
9704 # see comment about AmigaOS4 .so support
9705 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9706 archive_expsym_cmds=''
9708 m68k)
9709 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)'
9710 hardcode_libdir_flag_spec='-L$libdir'
9711 hardcode_minus_L=yes
9713 esac
9716 bsdi[45]*)
9717 export_dynamic_flag_spec=-rdynamic
9720 cygwin* | mingw* | pw32* | cegcc*)
9721 # When not using gcc, we currently assume that we are using
9722 # Microsoft Visual C++.
9723 # hardcode_libdir_flag_spec is actually meaningless, as there is
9724 # no search path for DLLs.
9725 hardcode_libdir_flag_spec=' '
9726 allow_undefined_flag=unsupported
9727 # Tell ltmain to make .lib files, not .a files.
9728 libext=lib
9729 # Tell ltmain to make .dll files, not .so files.
9730 shrext_cmds=".dll"
9731 # FIXME: Setting linknames here is a bad hack.
9732 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9733 # The linker will automatically build a .lib file if we build a DLL.
9734 old_archive_from_new_cmds='true'
9735 # FIXME: Should let the user specify the lib program.
9736 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9737 fix_srcfile_path='`cygpath -w "$srcfile"`'
9738 enable_shared_with_static_runtimes=yes
9741 darwin* | rhapsody*)
9744 archive_cmds_need_lc=no
9745 hardcode_direct=no
9746 hardcode_automatic=yes
9747 hardcode_shlibpath_var=unsupported
9748 if test "$lt_cv_ld_force_load" = "yes"; then
9749 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\"`'
9750 else
9751 whole_archive_flag_spec=''
9753 link_all_deplibs=yes
9754 allow_undefined_flag="$_lt_dar_allow_undefined"
9755 case $cc_basename in
9756 ifort*) _lt_dar_can_shared=yes ;;
9757 *) _lt_dar_can_shared=$GCC ;;
9758 esac
9759 if test "$_lt_dar_can_shared" = "yes"; then
9760 output_verbose_link_cmd=func_echo_all
9761 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9762 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9763 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}"
9764 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}"
9766 else
9767 ld_shlibs=no
9772 dgux*)
9773 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9774 hardcode_libdir_flag_spec='-L$libdir'
9775 hardcode_shlibpath_var=no
9778 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9779 # support. Future versions do this automatically, but an explicit c++rt0.o
9780 # does not break anything, and helps significantly (at the cost of a little
9781 # extra space).
9782 freebsd2.2*)
9783 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9784 hardcode_libdir_flag_spec='-R$libdir'
9785 hardcode_direct=yes
9786 hardcode_shlibpath_var=no
9789 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9790 freebsd2.*)
9791 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9792 hardcode_direct=yes
9793 hardcode_minus_L=yes
9794 hardcode_shlibpath_var=no
9797 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9798 freebsd* | dragonfly*)
9799 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9800 hardcode_libdir_flag_spec='-R$libdir'
9801 hardcode_direct=yes
9802 hardcode_shlibpath_var=no
9805 hpux9*)
9806 if test "$GCC" = yes; then
9807 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'
9808 else
9809 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'
9811 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9812 hardcode_libdir_separator=:
9813 hardcode_direct=yes
9815 # hardcode_minus_L: Not really in the search PATH,
9816 # but as the default location of the library.
9817 hardcode_minus_L=yes
9818 export_dynamic_flag_spec='${wl}-E'
9821 hpux10*)
9822 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9823 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9824 else
9825 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9827 if test "$with_gnu_ld" = no; then
9828 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9829 hardcode_libdir_flag_spec_ld='+b $libdir'
9830 hardcode_libdir_separator=:
9831 hardcode_direct=yes
9832 hardcode_direct_absolute=yes
9833 export_dynamic_flag_spec='${wl}-E'
9834 # hardcode_minus_L: Not really in the search PATH,
9835 # but as the default location of the library.
9836 hardcode_minus_L=yes
9840 hpux11*)
9841 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9842 case $host_cpu in
9843 hppa*64*)
9844 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9846 ia64*)
9847 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9850 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9852 esac
9853 else
9854 case $host_cpu in
9855 hppa*64*)
9856 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9858 ia64*)
9859 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9863 # Older versions of the 11.00 compiler do not understand -b yet
9864 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9866 $as_echo_n "checking if $CC understands -b... " >&6; }
9867 if ${lt_cv_prog_compiler__b+:} false; then :
9868 $as_echo_n "(cached) " >&6
9869 else
9870 lt_cv_prog_compiler__b=no
9871 save_LDFLAGS="$LDFLAGS"
9872 LDFLAGS="$LDFLAGS -b"
9873 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9874 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9875 # The linker can only warn and ignore the option if not recognized
9876 # So say no if there are warnings
9877 if test -s conftest.err; then
9878 # Append any errors to the config.log.
9879 cat conftest.err 1>&5
9880 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9881 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9882 if diff conftest.exp conftest.er2 >/dev/null; then
9883 lt_cv_prog_compiler__b=yes
9885 else
9886 lt_cv_prog_compiler__b=yes
9889 $RM -r conftest*
9890 LDFLAGS="$save_LDFLAGS"
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9894 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9896 if test x"$lt_cv_prog_compiler__b" = xyes; then
9897 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9898 else
9899 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9903 esac
9905 if test "$with_gnu_ld" = no; then
9906 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9907 hardcode_libdir_separator=:
9909 case $host_cpu in
9910 hppa*64*|ia64*)
9911 hardcode_direct=no
9912 hardcode_shlibpath_var=no
9915 hardcode_direct=yes
9916 hardcode_direct_absolute=yes
9917 export_dynamic_flag_spec='${wl}-E'
9919 # hardcode_minus_L: Not really in the search PATH,
9920 # but as the default location of the library.
9921 hardcode_minus_L=yes
9923 esac
9927 irix5* | irix6* | nonstopux*)
9928 if test "$GCC" = yes; then
9929 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'
9930 # Try to use the -exported_symbol ld option, if it does not
9931 # work, assume that -exports_file does not work either and
9932 # implicitly export all symbols.
9933 save_LDFLAGS="$LDFLAGS"
9934 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936 /* end confdefs.h. */
9937 int foo(void) {}
9938 _ACEOF
9939 if ac_fn_c_try_link "$LINENO"; then :
9940 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'
9943 rm -f core conftest.err conftest.$ac_objext \
9944 conftest$ac_exeext conftest.$ac_ext
9945 LDFLAGS="$save_LDFLAGS"
9946 else
9947 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'
9948 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'
9950 archive_cmds_need_lc='no'
9951 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9952 hardcode_libdir_separator=:
9953 inherit_rpath=yes
9954 link_all_deplibs=yes
9957 netbsd*)
9958 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9959 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9960 else
9961 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9963 hardcode_libdir_flag_spec='-R$libdir'
9964 hardcode_direct=yes
9965 hardcode_shlibpath_var=no
9968 newsos6)
9969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9970 hardcode_direct=yes
9971 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9972 hardcode_libdir_separator=:
9973 hardcode_shlibpath_var=no
9976 *nto* | *qnx*)
9979 openbsd*)
9980 if test -f /usr/libexec/ld.so; then
9981 hardcode_direct=yes
9982 hardcode_shlibpath_var=no
9983 hardcode_direct_absolute=yes
9984 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9985 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9986 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9987 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9988 export_dynamic_flag_spec='${wl}-E'
9989 else
9990 case $host_os in
9991 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9992 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9993 hardcode_libdir_flag_spec='-R$libdir'
9996 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9997 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9999 esac
10001 else
10002 ld_shlibs=no
10006 os2*)
10007 hardcode_libdir_flag_spec='-L$libdir'
10008 hardcode_minus_L=yes
10009 allow_undefined_flag=unsupported
10010 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'
10011 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10014 osf3*)
10015 if test "$GCC" = yes; then
10016 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10017 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'
10018 else
10019 allow_undefined_flag=' -expect_unresolved \*'
10020 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'
10022 archive_cmds_need_lc='no'
10023 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10024 hardcode_libdir_separator=:
10027 osf4* | osf5*) # as osf3* with the addition of -msym flag
10028 if test "$GCC" = yes; then
10029 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10030 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'
10031 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10032 else
10033 allow_undefined_flag=' -expect_unresolved \*'
10034 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'
10035 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~
10036 $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'
10038 # Both c and cxx compiler support -rpath directly
10039 hardcode_libdir_flag_spec='-rpath $libdir'
10041 archive_cmds_need_lc='no'
10042 hardcode_libdir_separator=:
10045 solaris*)
10046 no_undefined_flag=' -z defs'
10047 if test "$GCC" = yes; then
10048 wlarc='${wl}'
10049 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10050 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10051 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10052 else
10053 case `$CC -V 2>&1` in
10054 *"Compilers 5.0"*)
10055 wlarc=''
10056 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10057 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10058 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10061 wlarc='${wl}'
10062 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10063 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10064 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10066 esac
10068 hardcode_libdir_flag_spec='-R$libdir'
10069 hardcode_shlibpath_var=no
10070 case $host_os in
10071 solaris2.[0-5] | solaris2.[0-5].*) ;;
10073 # The compiler driver will combine and reorder linker options,
10074 # but understands `-z linker_flag'. GCC discards it without `$wl',
10075 # but is careful enough not to reorder.
10076 # Supported since Solaris 2.6 (maybe 2.5.1?)
10077 if test "$GCC" = yes; then
10078 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10079 else
10080 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10083 esac
10084 link_all_deplibs=yes
10087 sunos4*)
10088 if test "x$host_vendor" = xsequent; then
10089 # Use $CC to link under sequent, because it throws in some extra .o
10090 # files that make .init and .fini sections work.
10091 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10092 else
10093 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10095 hardcode_libdir_flag_spec='-L$libdir'
10096 hardcode_direct=yes
10097 hardcode_minus_L=yes
10098 hardcode_shlibpath_var=no
10101 sysv4)
10102 case $host_vendor in
10103 sni)
10104 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10105 hardcode_direct=yes # is this really true???
10107 siemens)
10108 ## LD is ld it makes a PLAMLIB
10109 ## CC just makes a GrossModule.
10110 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10111 reload_cmds='$CC -r -o $output$reload_objs'
10112 hardcode_direct=no
10114 motorola)
10115 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10116 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10118 esac
10119 runpath_var='LD_RUN_PATH'
10120 hardcode_shlibpath_var=no
10123 sysv4.3*)
10124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10125 hardcode_shlibpath_var=no
10126 export_dynamic_flag_spec='-Bexport'
10129 sysv4*MP*)
10130 if test -d /usr/nec; then
10131 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10132 hardcode_shlibpath_var=no
10133 runpath_var=LD_RUN_PATH
10134 hardcode_runpath_var=yes
10135 ld_shlibs=yes
10139 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10140 no_undefined_flag='${wl}-z,text'
10141 archive_cmds_need_lc=no
10142 hardcode_shlibpath_var=no
10143 runpath_var='LD_RUN_PATH'
10145 if test "$GCC" = yes; then
10146 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10147 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10148 else
10149 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10150 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10154 sysv5* | sco3.2v5* | sco5v6*)
10155 # Note: We can NOT use -z defs as we might desire, because we do not
10156 # link with -lc, and that would cause any symbols used from libc to
10157 # always be unresolved, which means just about no library would
10158 # ever link correctly. If we're not using GNU ld we use -z text
10159 # though, which does catch some bad symbols but isn't as heavy-handed
10160 # as -z defs.
10161 no_undefined_flag='${wl}-z,text'
10162 allow_undefined_flag='${wl}-z,nodefs'
10163 archive_cmds_need_lc=no
10164 hardcode_shlibpath_var=no
10165 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10166 hardcode_libdir_separator=':'
10167 link_all_deplibs=yes
10168 export_dynamic_flag_spec='${wl}-Bexport'
10169 runpath_var='LD_RUN_PATH'
10171 if test "$GCC" = yes; then
10172 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10173 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10174 else
10175 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10176 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10180 uts4*)
10181 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10182 hardcode_libdir_flag_spec='-L$libdir'
10183 hardcode_shlibpath_var=no
10187 ld_shlibs=no
10189 esac
10191 if test x$host_vendor = xsni; then
10192 case $host in
10193 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10194 export_dynamic_flag_spec='${wl}-Blargedynsym'
10196 esac
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10201 $as_echo "$ld_shlibs" >&6; }
10202 test "$ld_shlibs" = no && can_build_shared=no
10204 with_gnu_ld=$with_gnu_ld
10221 # Do we need to explicitly link libc?
10223 case "x$archive_cmds_need_lc" in
10224 x|xyes)
10225 # Assume -lc should be added
10226 archive_cmds_need_lc=yes
10228 if test "$enable_shared" = yes && test "$GCC" = yes; then
10229 case $archive_cmds in
10230 *'~'*)
10231 # FIXME: we may have to deal with multi-command sequences.
10233 '$CC '*)
10234 # Test whether the compiler implicitly links with -lc since on some
10235 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10236 # to ld, don't add -lc before -lgcc.
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10238 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10239 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10240 $as_echo_n "(cached) " >&6
10241 else
10242 $RM conftest*
10243 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10246 (eval $ac_compile) 2>&5
10247 ac_status=$?
10248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10249 test $ac_status = 0; } 2>conftest.err; then
10250 soname=conftest
10251 lib=conftest
10252 libobjs=conftest.$ac_objext
10253 deplibs=
10254 wl=$lt_prog_compiler_wl
10255 pic_flag=$lt_prog_compiler_pic
10256 compiler_flags=-v
10257 linker_flags=-v
10258 verstring=
10259 output_objdir=.
10260 libname=conftest
10261 lt_save_allow_undefined_flag=$allow_undefined_flag
10262 allow_undefined_flag=
10263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10264 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10265 ac_status=$?
10266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10267 test $ac_status = 0; }
10268 then
10269 lt_cv_archive_cmds_need_lc=no
10270 else
10271 lt_cv_archive_cmds_need_lc=yes
10273 allow_undefined_flag=$lt_save_allow_undefined_flag
10274 else
10275 cat conftest.err 1>&5
10277 $RM conftest*
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10281 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10282 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10284 esac
10287 esac
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10446 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10448 if test "$GCC" = yes; then
10449 case $host_os in
10450 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10451 *) lt_awk_arg="/^libraries:/" ;;
10452 esac
10453 case $host_os in
10454 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10455 *) lt_sed_strip_eq="s,=/,/,g" ;;
10456 esac
10457 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10458 case $lt_search_path_spec in
10459 *\;*)
10460 # if the path contains ";" then we assume it to be the separator
10461 # otherwise default to the standard path separator (i.e. ":") - it is
10462 # assumed that no part of a normal pathname contains ";" but that should
10463 # okay in the real world where ";" in dirpaths is itself problematic.
10464 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10467 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10469 esac
10470 # Ok, now we have the path, separated by spaces, we can step through it
10471 # and add multilib dir if necessary.
10472 lt_tmp_lt_search_path_spec=
10473 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10474 for lt_sys_path in $lt_search_path_spec; do
10475 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10476 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10477 else
10478 test -d "$lt_sys_path" && \
10479 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10481 done
10482 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10483 BEGIN {RS=" "; FS="/|\n";} {
10484 lt_foo="";
10485 lt_count=0;
10486 for (lt_i = NF; lt_i > 0; lt_i--) {
10487 if ($lt_i != "" && $lt_i != ".") {
10488 if ($lt_i == "..") {
10489 lt_count++;
10490 } else {
10491 if (lt_count == 0) {
10492 lt_foo="/" $lt_i lt_foo;
10493 } else {
10494 lt_count--;
10499 if (lt_foo != "") { lt_freq[lt_foo]++; }
10500 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10502 # AWK program above erroneously prepends '/' to C:/dos/paths
10503 # for these hosts.
10504 case $host_os in
10505 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10506 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10507 esac
10508 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10509 else
10510 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10512 library_names_spec=
10513 libname_spec='lib$name'
10514 soname_spec=
10515 shrext_cmds=".so"
10516 postinstall_cmds=
10517 postuninstall_cmds=
10518 finish_cmds=
10519 finish_eval=
10520 shlibpath_var=
10521 shlibpath_overrides_runpath=unknown
10522 version_type=none
10523 dynamic_linker="$host_os ld.so"
10524 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10525 need_lib_prefix=unknown
10526 hardcode_into_libs=no
10528 # when you set need_version to no, make sure it does not cause -set_version
10529 # flags to be left without arguments
10530 need_version=unknown
10532 case $host_os in
10533 aix3*)
10534 version_type=linux
10535 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10536 shlibpath_var=LIBPATH
10538 # AIX 3 has no versioning support, so we append a major version to the name.
10539 soname_spec='${libname}${release}${shared_ext}$major'
10542 aix[4-9]*)
10543 version_type=linux
10544 need_lib_prefix=no
10545 need_version=no
10546 hardcode_into_libs=yes
10547 if test "$host_cpu" = ia64; then
10548 # AIX 5 supports IA64
10549 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10550 shlibpath_var=LD_LIBRARY_PATH
10551 else
10552 # With GCC up to 2.95.x, collect2 would create an import file
10553 # for dependence libraries. The import file would start with
10554 # the line `#! .'. This would cause the generated library to
10555 # depend on `.', always an invalid library. This was fixed in
10556 # development snapshots of GCC prior to 3.0.
10557 case $host_os in
10558 aix4 | aix4.[01] | aix4.[01].*)
10559 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10560 echo ' yes '
10561 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10563 else
10564 can_build_shared=no
10567 esac
10568 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10569 # soname into executable. Probably we can add versioning support to
10570 # collect2, so additional links can be useful in future.
10571 if test "$aix_use_runtimelinking" = yes; then
10572 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10573 # instead of lib<name>.a to let people know that these are not
10574 # typical AIX shared libraries.
10575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10576 else
10577 # We preserve .a as extension for shared libraries through AIX4.2
10578 # and later when we are not doing run time linking.
10579 library_names_spec='${libname}${release}.a $libname.a'
10580 soname_spec='${libname}${release}${shared_ext}$major'
10582 shlibpath_var=LIBPATH
10586 amigaos*)
10587 case $host_cpu in
10588 powerpc)
10589 # Since July 2007 AmigaOS4 officially supports .so libraries.
10590 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10593 m68k)
10594 library_names_spec='$libname.ixlibrary $libname.a'
10595 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10596 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'
10598 esac
10601 beos*)
10602 library_names_spec='${libname}${shared_ext}'
10603 dynamic_linker="$host_os ld.so"
10604 shlibpath_var=LIBRARY_PATH
10607 bsdi[45]*)
10608 version_type=linux
10609 need_version=no
10610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10611 soname_spec='${libname}${release}${shared_ext}$major'
10612 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10613 shlibpath_var=LD_LIBRARY_PATH
10614 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10615 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10616 # the default ld.so.conf also contains /usr/contrib/lib and
10617 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10618 # libtool to hard-code these into programs
10621 cygwin* | mingw* | pw32* | cegcc*)
10622 version_type=windows
10623 shrext_cmds=".dll"
10624 need_version=no
10625 need_lib_prefix=no
10627 case $GCC,$host_os in
10628 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10629 library_names_spec='$libname.dll.a'
10630 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10631 postinstall_cmds='base_file=`basename \${file}`~
10632 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10633 dldir=$destdir/`dirname \$dlpath`~
10634 test -d \$dldir || mkdir -p \$dldir~
10635 $install_prog $dir/$dlname \$dldir/$dlname~
10636 chmod a+x \$dldir/$dlname~
10637 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10638 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10640 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10641 dlpath=$dir/\$dldll~
10642 $RM \$dlpath'
10643 shlibpath_overrides_runpath=yes
10645 case $host_os in
10646 cygwin*)
10647 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10648 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10650 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10652 mingw* | cegcc*)
10653 # MinGW DLLs use traditional 'lib' prefix
10654 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10656 pw32*)
10657 # pw32 DLLs use 'pw' prefix rather than 'lib'
10658 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10660 esac
10664 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10666 esac
10667 dynamic_linker='Win32 ld.exe'
10668 # FIXME: first we should search . and the directory the executable is in
10669 shlibpath_var=PATH
10672 darwin* | rhapsody*)
10673 dynamic_linker="$host_os dyld"
10674 version_type=darwin
10675 need_lib_prefix=no
10676 need_version=no
10677 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10678 soname_spec='${libname}${release}${major}$shared_ext'
10679 shlibpath_overrides_runpath=yes
10680 shlibpath_var=DYLD_LIBRARY_PATH
10681 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10683 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10684 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10687 dgux*)
10688 version_type=linux
10689 need_lib_prefix=no
10690 need_version=no
10691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10692 soname_spec='${libname}${release}${shared_ext}$major'
10693 shlibpath_var=LD_LIBRARY_PATH
10696 freebsd* | dragonfly*)
10697 # DragonFly does not have aout. When/if they implement a new
10698 # versioning mechanism, adjust this.
10699 if test -x /usr/bin/objformat; then
10700 objformat=`/usr/bin/objformat`
10701 else
10702 case $host_os in
10703 freebsd[23].*) objformat=aout ;;
10704 *) objformat=elf ;;
10705 esac
10707 version_type=freebsd-$objformat
10708 case $version_type in
10709 freebsd-elf*)
10710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10711 need_version=no
10712 need_lib_prefix=no
10714 freebsd-*)
10715 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10716 need_version=yes
10718 esac
10719 shlibpath_var=LD_LIBRARY_PATH
10720 case $host_os in
10721 freebsd2.*)
10722 shlibpath_overrides_runpath=yes
10724 freebsd3.[01]* | freebsdelf3.[01]*)
10725 shlibpath_overrides_runpath=yes
10726 hardcode_into_libs=yes
10728 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10729 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10730 shlibpath_overrides_runpath=no
10731 hardcode_into_libs=yes
10733 *) # from 4.6 on, and DragonFly
10734 shlibpath_overrides_runpath=yes
10735 hardcode_into_libs=yes
10737 esac
10740 gnu*)
10741 version_type=linux
10742 need_lib_prefix=no
10743 need_version=no
10744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10745 soname_spec='${libname}${release}${shared_ext}$major'
10746 shlibpath_var=LD_LIBRARY_PATH
10747 hardcode_into_libs=yes
10750 haiku*)
10751 version_type=linux
10752 need_lib_prefix=no
10753 need_version=no
10754 dynamic_linker="$host_os runtime_loader"
10755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10756 soname_spec='${libname}${release}${shared_ext}$major'
10757 shlibpath_var=LIBRARY_PATH
10758 shlibpath_overrides_runpath=yes
10759 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10760 hardcode_into_libs=yes
10763 hpux9* | hpux10* | hpux11*)
10764 # Give a soname corresponding to the major version so that dld.sl refuses to
10765 # link against other versions.
10766 version_type=sunos
10767 need_lib_prefix=no
10768 need_version=no
10769 case $host_cpu in
10770 ia64*)
10771 shrext_cmds='.so'
10772 hardcode_into_libs=yes
10773 dynamic_linker="$host_os dld.so"
10774 shlibpath_var=LD_LIBRARY_PATH
10775 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10777 soname_spec='${libname}${release}${shared_ext}$major'
10778 if test "X$HPUX_IA64_MODE" = X32; then
10779 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10780 else
10781 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10783 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10785 hppa*64*)
10786 shrext_cmds='.sl'
10787 hardcode_into_libs=yes
10788 dynamic_linker="$host_os dld.sl"
10789 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10790 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10792 soname_spec='${libname}${release}${shared_ext}$major'
10793 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10794 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10797 shrext_cmds='.sl'
10798 dynamic_linker="$host_os dld.sl"
10799 shlibpath_var=SHLIB_PATH
10800 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10802 soname_spec='${libname}${release}${shared_ext}$major'
10804 esac
10805 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10806 postinstall_cmds='chmod 555 $lib'
10807 # or fails outright, so override atomically:
10808 install_override_mode=555
10811 interix[3-9]*)
10812 version_type=linux
10813 need_lib_prefix=no
10814 need_version=no
10815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10816 soname_spec='${libname}${release}${shared_ext}$major'
10817 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10818 shlibpath_var=LD_LIBRARY_PATH
10819 shlibpath_overrides_runpath=no
10820 hardcode_into_libs=yes
10823 irix5* | irix6* | nonstopux*)
10824 case $host_os in
10825 nonstopux*) version_type=nonstopux ;;
10827 if test "$lt_cv_prog_gnu_ld" = yes; then
10828 version_type=linux
10829 else
10830 version_type=irix
10831 fi ;;
10832 esac
10833 need_lib_prefix=no
10834 need_version=no
10835 soname_spec='${libname}${release}${shared_ext}$major'
10836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10837 case $host_os in
10838 irix5* | nonstopux*)
10839 libsuff= shlibsuff=
10842 case $LD in # libtool.m4 will add one of these switches to LD
10843 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10844 libsuff= shlibsuff= libmagic=32-bit;;
10845 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10846 libsuff=32 shlibsuff=N32 libmagic=N32;;
10847 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10848 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10849 *) libsuff= shlibsuff= libmagic=never-match;;
10850 esac
10852 esac
10853 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10854 shlibpath_overrides_runpath=no
10855 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10856 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10857 hardcode_into_libs=yes
10860 # No shared lib support for Linux oldld, aout, or coff.
10861 linux*oldld* | linux*aout* | linux*coff*)
10862 dynamic_linker=no
10865 # This must be Linux ELF.
10867 # uclinux* changes (here and below) have been submitted to the libtool
10868 # project, but have not yet been accepted: they are GCC-local changes
10869 # for the time being. (See
10870 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10871 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10872 version_type=linux
10873 need_lib_prefix=no
10874 need_version=no
10875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10876 soname_spec='${libname}${release}${shared_ext}$major'
10877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10878 shlibpath_var=LD_LIBRARY_PATH
10879 shlibpath_overrides_runpath=no
10881 # Some binutils ld are patched to set DT_RUNPATH
10882 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10883 $as_echo_n "(cached) " >&6
10884 else
10885 lt_cv_shlibpath_overrides_runpath=no
10886 save_LDFLAGS=$LDFLAGS
10887 save_libdir=$libdir
10888 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10889 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10891 /* end confdefs.h. */
10894 main ()
10898 return 0;
10900 _ACEOF
10901 if ac_fn_c_try_link "$LINENO"; then :
10902 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10903 lt_cv_shlibpath_overrides_runpath=yes
10906 rm -f core conftest.err conftest.$ac_objext \
10907 conftest$ac_exeext conftest.$ac_ext
10908 LDFLAGS=$save_LDFLAGS
10909 libdir=$save_libdir
10913 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10915 # This implies no fast_install, which is unacceptable.
10916 # Some rework will be needed to allow for fast_install
10917 # before this can be enabled.
10918 hardcode_into_libs=yes
10920 # Append ld.so.conf contents to the search path
10921 if test -f /etc/ld.so.conf; then
10922 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' ' '`
10923 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10926 # We used to test for /lib/ld.so.1 and disable shared libraries on
10927 # powerpc, because MkLinux only supported shared libraries with the
10928 # GNU dynamic linker. Since this was broken with cross compilers,
10929 # most powerpc-linux boxes support dynamic linking these days and
10930 # people can always --disable-shared, the test was removed, and we
10931 # assume the GNU/Linux dynamic linker is in use.
10932 dynamic_linker='GNU/Linux ld.so'
10935 netbsd*)
10936 version_type=sunos
10937 need_lib_prefix=no
10938 need_version=no
10939 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10942 dynamic_linker='NetBSD (a.out) ld.so'
10943 else
10944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10945 soname_spec='${libname}${release}${shared_ext}$major'
10946 dynamic_linker='NetBSD ld.elf_so'
10948 shlibpath_var=LD_LIBRARY_PATH
10949 shlibpath_overrides_runpath=yes
10950 hardcode_into_libs=yes
10953 newsos6)
10954 version_type=linux
10955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10956 shlibpath_var=LD_LIBRARY_PATH
10957 shlibpath_overrides_runpath=yes
10960 *nto* | *qnx*)
10961 version_type=qnx
10962 need_lib_prefix=no
10963 need_version=no
10964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10965 soname_spec='${libname}${release}${shared_ext}$major'
10966 shlibpath_var=LD_LIBRARY_PATH
10967 shlibpath_overrides_runpath=no
10968 hardcode_into_libs=yes
10969 dynamic_linker='ldqnx.so'
10972 openbsd*)
10973 version_type=sunos
10974 sys_lib_dlsearch_path_spec="/usr/lib"
10975 need_lib_prefix=no
10976 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10977 case $host_os in
10978 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10979 *) need_version=no ;;
10980 esac
10981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10982 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10983 shlibpath_var=LD_LIBRARY_PATH
10984 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10985 case $host_os in
10986 openbsd2.[89] | openbsd2.[89].*)
10987 shlibpath_overrides_runpath=no
10990 shlibpath_overrides_runpath=yes
10992 esac
10993 else
10994 shlibpath_overrides_runpath=yes
10998 os2*)
10999 libname_spec='$name'
11000 shrext_cmds=".dll"
11001 need_lib_prefix=no
11002 library_names_spec='$libname${shared_ext} $libname.a'
11003 dynamic_linker='OS/2 ld.exe'
11004 shlibpath_var=LIBPATH
11007 osf3* | osf4* | osf5*)
11008 version_type=osf
11009 need_lib_prefix=no
11010 need_version=no
11011 soname_spec='${libname}${release}${shared_ext}$major'
11012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11013 shlibpath_var=LD_LIBRARY_PATH
11014 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11015 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11018 rdos*)
11019 dynamic_linker=no
11022 solaris*)
11023 version_type=linux
11024 need_lib_prefix=no
11025 need_version=no
11026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11027 soname_spec='${libname}${release}${shared_ext}$major'
11028 shlibpath_var=LD_LIBRARY_PATH
11029 shlibpath_overrides_runpath=yes
11030 hardcode_into_libs=yes
11031 # ldd complains unless libraries are executable
11032 postinstall_cmds='chmod +x $lib'
11035 sunos4*)
11036 version_type=sunos
11037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11038 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11039 shlibpath_var=LD_LIBRARY_PATH
11040 shlibpath_overrides_runpath=yes
11041 if test "$with_gnu_ld" = yes; then
11042 need_lib_prefix=no
11044 need_version=yes
11047 sysv4 | sysv4.3*)
11048 version_type=linux
11049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11050 soname_spec='${libname}${release}${shared_ext}$major'
11051 shlibpath_var=LD_LIBRARY_PATH
11052 case $host_vendor in
11053 sni)
11054 shlibpath_overrides_runpath=no
11055 need_lib_prefix=no
11056 runpath_var=LD_RUN_PATH
11058 siemens)
11059 need_lib_prefix=no
11061 motorola)
11062 need_lib_prefix=no
11063 need_version=no
11064 shlibpath_overrides_runpath=no
11065 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11067 esac
11070 sysv4*MP*)
11071 if test -d /usr/nec ;then
11072 version_type=linux
11073 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11074 soname_spec='$libname${shared_ext}.$major'
11075 shlibpath_var=LD_LIBRARY_PATH
11079 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11080 version_type=freebsd-elf
11081 need_lib_prefix=no
11082 need_version=no
11083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11084 soname_spec='${libname}${release}${shared_ext}$major'
11085 shlibpath_var=LD_LIBRARY_PATH
11086 shlibpath_overrides_runpath=yes
11087 hardcode_into_libs=yes
11088 if test "$with_gnu_ld" = yes; then
11089 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11090 else
11091 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11092 case $host_os in
11093 sco3.2v5*)
11094 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11096 esac
11098 sys_lib_dlsearch_path_spec='/usr/lib'
11101 tpf*)
11102 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11103 version_type=linux
11104 need_lib_prefix=no
11105 need_version=no
11106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11107 shlibpath_var=LD_LIBRARY_PATH
11108 shlibpath_overrides_runpath=no
11109 hardcode_into_libs=yes
11112 uts4*)
11113 version_type=linux
11114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11115 soname_spec='${libname}${release}${shared_ext}$major'
11116 shlibpath_var=LD_LIBRARY_PATH
11120 dynamic_linker=no
11122 esac
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11124 $as_echo "$dynamic_linker" >&6; }
11125 test "$dynamic_linker" = no && can_build_shared=no
11127 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11128 if test "$GCC" = yes; then
11129 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11132 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11133 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11135 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11136 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11231 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11232 hardcode_action=
11233 if test -n "$hardcode_libdir_flag_spec" ||
11234 test -n "$runpath_var" ||
11235 test "X$hardcode_automatic" = "Xyes" ; then
11237 # We can hardcode non-existent directories.
11238 if test "$hardcode_direct" != no &&
11239 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11240 # have to relink, otherwise we might link with an installed library
11241 # when we should be linking with a yet-to-be-installed one
11242 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11243 test "$hardcode_minus_L" != no; then
11244 # Linking always hardcodes the temporary library directory.
11245 hardcode_action=relink
11246 else
11247 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11248 hardcode_action=immediate
11250 else
11251 # We cannot hardcode anything, or else we can only hardcode existing
11252 # directories.
11253 hardcode_action=unsupported
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11256 $as_echo "$hardcode_action" >&6; }
11258 if test "$hardcode_action" = relink ||
11259 test "$inherit_rpath" = yes; then
11260 # Fast installation is not supported
11261 enable_fast_install=no
11262 elif test "$shlibpath_overrides_runpath" = yes ||
11263 test "$enable_shared" = no; then
11264 # Fast installation is not necessary
11265 enable_fast_install=needless
11273 if test "x$enable_dlopen" != xyes; then
11274 enable_dlopen=unknown
11275 enable_dlopen_self=unknown
11276 enable_dlopen_self_static=unknown
11277 else
11278 lt_cv_dlopen=no
11279 lt_cv_dlopen_libs=
11281 case $host_os in
11282 beos*)
11283 lt_cv_dlopen="load_add_on"
11284 lt_cv_dlopen_libs=
11285 lt_cv_dlopen_self=yes
11288 mingw* | pw32* | cegcc*)
11289 lt_cv_dlopen="LoadLibrary"
11290 lt_cv_dlopen_libs=
11293 cygwin*)
11294 lt_cv_dlopen="dlopen"
11295 lt_cv_dlopen_libs=
11298 darwin*)
11299 # if libdl is installed we need to link against it
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11301 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11302 if ${ac_cv_lib_dl_dlopen+:} false; then :
11303 $as_echo_n "(cached) " >&6
11304 else
11305 ac_check_lib_save_LIBS=$LIBS
11306 LIBS="-ldl $LIBS"
11307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11308 /* end confdefs.h. */
11310 /* Override any GCC internal prototype to avoid an error.
11311 Use char because int might match the return type of a GCC
11312 builtin and then its argument prototype would still apply. */
11313 #ifdef __cplusplus
11314 extern "C"
11315 #endif
11316 char dlopen ();
11318 main ()
11320 return dlopen ();
11322 return 0;
11324 _ACEOF
11325 if ac_fn_c_try_link "$LINENO"; then :
11326 ac_cv_lib_dl_dlopen=yes
11327 else
11328 ac_cv_lib_dl_dlopen=no
11330 rm -f core conftest.err conftest.$ac_objext \
11331 conftest$ac_exeext conftest.$ac_ext
11332 LIBS=$ac_check_lib_save_LIBS
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11335 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11336 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11337 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11338 else
11340 lt_cv_dlopen="dyld"
11341 lt_cv_dlopen_libs=
11342 lt_cv_dlopen_self=yes
11349 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11350 if test "x$ac_cv_func_shl_load" = xyes; then :
11351 lt_cv_dlopen="shl_load"
11352 else
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11354 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11355 if ${ac_cv_lib_dld_shl_load+:} false; then :
11356 $as_echo_n "(cached) " >&6
11357 else
11358 ac_check_lib_save_LIBS=$LIBS
11359 LIBS="-ldld $LIBS"
11360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11361 /* end confdefs.h. */
11363 /* Override any GCC internal prototype to avoid an error.
11364 Use char because int might match the return type of a GCC
11365 builtin and then its argument prototype would still apply. */
11366 #ifdef __cplusplus
11367 extern "C"
11368 #endif
11369 char shl_load ();
11371 main ()
11373 return shl_load ();
11375 return 0;
11377 _ACEOF
11378 if ac_fn_c_try_link "$LINENO"; then :
11379 ac_cv_lib_dld_shl_load=yes
11380 else
11381 ac_cv_lib_dld_shl_load=no
11383 rm -f core conftest.err conftest.$ac_objext \
11384 conftest$ac_exeext conftest.$ac_ext
11385 LIBS=$ac_check_lib_save_LIBS
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11388 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11389 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11390 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11391 else
11392 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11393 if test "x$ac_cv_func_dlopen" = xyes; then :
11394 lt_cv_dlopen="dlopen"
11395 else
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11397 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11398 if ${ac_cv_lib_dl_dlopen+:} false; then :
11399 $as_echo_n "(cached) " >&6
11400 else
11401 ac_check_lib_save_LIBS=$LIBS
11402 LIBS="-ldl $LIBS"
11403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11404 /* end confdefs.h. */
11406 /* Override any GCC internal prototype to avoid an error.
11407 Use char because int might match the return type of a GCC
11408 builtin and then its argument prototype would still apply. */
11409 #ifdef __cplusplus
11410 extern "C"
11411 #endif
11412 char dlopen ();
11414 main ()
11416 return dlopen ();
11418 return 0;
11420 _ACEOF
11421 if ac_fn_c_try_link "$LINENO"; then :
11422 ac_cv_lib_dl_dlopen=yes
11423 else
11424 ac_cv_lib_dl_dlopen=no
11426 rm -f core conftest.err conftest.$ac_objext \
11427 conftest$ac_exeext conftest.$ac_ext
11428 LIBS=$ac_check_lib_save_LIBS
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11431 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11432 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11433 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11434 else
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11436 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11437 if ${ac_cv_lib_svld_dlopen+:} false; then :
11438 $as_echo_n "(cached) " >&6
11439 else
11440 ac_check_lib_save_LIBS=$LIBS
11441 LIBS="-lsvld $LIBS"
11442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h. */
11445 /* Override any GCC internal prototype to avoid an error.
11446 Use char because int might match the return type of a GCC
11447 builtin and then its argument prototype would still apply. */
11448 #ifdef __cplusplus
11449 extern "C"
11450 #endif
11451 char dlopen ();
11453 main ()
11455 return dlopen ();
11457 return 0;
11459 _ACEOF
11460 if ac_fn_c_try_link "$LINENO"; then :
11461 ac_cv_lib_svld_dlopen=yes
11462 else
11463 ac_cv_lib_svld_dlopen=no
11465 rm -f core conftest.err conftest.$ac_objext \
11466 conftest$ac_exeext conftest.$ac_ext
11467 LIBS=$ac_check_lib_save_LIBS
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11470 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11471 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11472 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11473 else
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11475 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11476 if ${ac_cv_lib_dld_dld_link+:} false; then :
11477 $as_echo_n "(cached) " >&6
11478 else
11479 ac_check_lib_save_LIBS=$LIBS
11480 LIBS="-ldld $LIBS"
11481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11482 /* end confdefs.h. */
11484 /* Override any GCC internal prototype to avoid an error.
11485 Use char because int might match the return type of a GCC
11486 builtin and then its argument prototype would still apply. */
11487 #ifdef __cplusplus
11488 extern "C"
11489 #endif
11490 char dld_link ();
11492 main ()
11494 return dld_link ();
11496 return 0;
11498 _ACEOF
11499 if ac_fn_c_try_link "$LINENO"; then :
11500 ac_cv_lib_dld_dld_link=yes
11501 else
11502 ac_cv_lib_dld_dld_link=no
11504 rm -f core conftest.err conftest.$ac_objext \
11505 conftest$ac_exeext conftest.$ac_ext
11506 LIBS=$ac_check_lib_save_LIBS
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11509 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11510 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11511 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11530 esac
11532 if test "x$lt_cv_dlopen" != xno; then
11533 enable_dlopen=yes
11534 else
11535 enable_dlopen=no
11538 case $lt_cv_dlopen in
11539 dlopen)
11540 save_CPPFLAGS="$CPPFLAGS"
11541 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11543 save_LDFLAGS="$LDFLAGS"
11544 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11546 save_LIBS="$LIBS"
11547 LIBS="$lt_cv_dlopen_libs $LIBS"
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11550 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11551 if ${lt_cv_dlopen_self+:} false; then :
11552 $as_echo_n "(cached) " >&6
11553 else
11554 if test "$cross_compiling" = yes; then :
11555 lt_cv_dlopen_self=cross
11556 else
11557 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11558 lt_status=$lt_dlunknown
11559 cat > conftest.$ac_ext <<_LT_EOF
11560 #line 11560 "configure"
11561 #include "confdefs.h"
11563 #if HAVE_DLFCN_H
11564 #include <dlfcn.h>
11565 #endif
11567 #include <stdio.h>
11569 #ifdef RTLD_GLOBAL
11570 # define LT_DLGLOBAL RTLD_GLOBAL
11571 #else
11572 # ifdef DL_GLOBAL
11573 # define LT_DLGLOBAL DL_GLOBAL
11574 # else
11575 # define LT_DLGLOBAL 0
11576 # endif
11577 #endif
11579 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11580 find out it does not work in some platform. */
11581 #ifndef LT_DLLAZY_OR_NOW
11582 # ifdef RTLD_LAZY
11583 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11584 # else
11585 # ifdef DL_LAZY
11586 # define LT_DLLAZY_OR_NOW DL_LAZY
11587 # else
11588 # ifdef RTLD_NOW
11589 # define LT_DLLAZY_OR_NOW RTLD_NOW
11590 # else
11591 # ifdef DL_NOW
11592 # define LT_DLLAZY_OR_NOW DL_NOW
11593 # else
11594 # define LT_DLLAZY_OR_NOW 0
11595 # endif
11596 # endif
11597 # endif
11598 # endif
11599 #endif
11601 /* When -fvisbility=hidden is used, assume the code has been annotated
11602 correspondingly for the symbols needed. */
11603 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11604 void fnord () __attribute__((visibility("default")));
11605 #endif
11607 void fnord () { int i=42; }
11608 int main ()
11610 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11611 int status = $lt_dlunknown;
11613 if (self)
11615 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11616 else
11618 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11619 else puts (dlerror ());
11621 /* dlclose (self); */
11623 else
11624 puts (dlerror ());
11626 return status;
11628 _LT_EOF
11629 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11630 (eval $ac_link) 2>&5
11631 ac_status=$?
11632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11633 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11634 (./conftest; exit; ) >&5 2>/dev/null
11635 lt_status=$?
11636 case x$lt_status in
11637 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11638 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11639 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11640 esac
11641 else :
11642 # compilation failed
11643 lt_cv_dlopen_self=no
11646 rm -fr conftest*
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11651 $as_echo "$lt_cv_dlopen_self" >&6; }
11653 if test "x$lt_cv_dlopen_self" = xyes; then
11654 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11656 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11657 if ${lt_cv_dlopen_self_static+:} false; then :
11658 $as_echo_n "(cached) " >&6
11659 else
11660 if test "$cross_compiling" = yes; then :
11661 lt_cv_dlopen_self_static=cross
11662 else
11663 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11664 lt_status=$lt_dlunknown
11665 cat > conftest.$ac_ext <<_LT_EOF
11666 #line 11666 "configure"
11667 #include "confdefs.h"
11669 #if HAVE_DLFCN_H
11670 #include <dlfcn.h>
11671 #endif
11673 #include <stdio.h>
11675 #ifdef RTLD_GLOBAL
11676 # define LT_DLGLOBAL RTLD_GLOBAL
11677 #else
11678 # ifdef DL_GLOBAL
11679 # define LT_DLGLOBAL DL_GLOBAL
11680 # else
11681 # define LT_DLGLOBAL 0
11682 # endif
11683 #endif
11685 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11686 find out it does not work in some platform. */
11687 #ifndef LT_DLLAZY_OR_NOW
11688 # ifdef RTLD_LAZY
11689 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11690 # else
11691 # ifdef DL_LAZY
11692 # define LT_DLLAZY_OR_NOW DL_LAZY
11693 # else
11694 # ifdef RTLD_NOW
11695 # define LT_DLLAZY_OR_NOW RTLD_NOW
11696 # else
11697 # ifdef DL_NOW
11698 # define LT_DLLAZY_OR_NOW DL_NOW
11699 # else
11700 # define LT_DLLAZY_OR_NOW 0
11701 # endif
11702 # endif
11703 # endif
11704 # endif
11705 #endif
11707 /* When -fvisbility=hidden is used, assume the code has been annotated
11708 correspondingly for the symbols needed. */
11709 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11710 void fnord () __attribute__((visibility("default")));
11711 #endif
11713 void fnord () { int i=42; }
11714 int main ()
11716 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11717 int status = $lt_dlunknown;
11719 if (self)
11721 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11722 else
11724 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11725 else puts (dlerror ());
11727 /* dlclose (self); */
11729 else
11730 puts (dlerror ());
11732 return status;
11734 _LT_EOF
11735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11736 (eval $ac_link) 2>&5
11737 ac_status=$?
11738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11739 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11740 (./conftest; exit; ) >&5 2>/dev/null
11741 lt_status=$?
11742 case x$lt_status in
11743 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11744 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11745 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11746 esac
11747 else :
11748 # compilation failed
11749 lt_cv_dlopen_self_static=no
11752 rm -fr conftest*
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11757 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11760 CPPFLAGS="$save_CPPFLAGS"
11761 LDFLAGS="$save_LDFLAGS"
11762 LIBS="$save_LIBS"
11764 esac
11766 case $lt_cv_dlopen_self in
11767 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11768 *) enable_dlopen_self=unknown ;;
11769 esac
11771 case $lt_cv_dlopen_self_static in
11772 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11773 *) enable_dlopen_self_static=unknown ;;
11774 esac
11793 striplib=
11794 old_striplib=
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11796 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11797 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11798 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11799 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11801 $as_echo "yes" >&6; }
11802 else
11803 # FIXME - insert some real tests, host_os isn't really good enough
11804 case $host_os in
11805 darwin*)
11806 if test -n "$STRIP" ; then
11807 striplib="$STRIP -x"
11808 old_striplib="$STRIP -S"
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11810 $as_echo "yes" >&6; }
11811 else
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11813 $as_echo "no" >&6; }
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11818 $as_echo "no" >&6; }
11820 esac
11834 # Report which library types will actually be built
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11836 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11838 $as_echo "$can_build_shared" >&6; }
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11841 $as_echo_n "checking whether to build shared libraries... " >&6; }
11842 test "$can_build_shared" = "no" && enable_shared=no
11844 # On AIX, shared libraries and static libraries use the same namespace, and
11845 # are all built from PIC.
11846 case $host_os in
11847 aix3*)
11848 test "$enable_shared" = yes && enable_static=no
11849 if test -n "$RANLIB"; then
11850 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11851 postinstall_cmds='$RANLIB $lib'
11855 aix[4-9]*)
11856 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11857 test "$enable_shared" = yes && enable_static=no
11860 esac
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11862 $as_echo "$enable_shared" >&6; }
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11865 $as_echo_n "checking whether to build static libraries... " >&6; }
11866 # Make sure either enable_shared or enable_static is yes.
11867 test "$enable_shared" = yes || enable_static=yes
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11869 $as_echo "$enable_static" >&6; }
11875 ac_ext=c
11876 ac_cpp='$CPP $CPPFLAGS'
11877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11881 CC="$lt_save_CC"
11883 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11884 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11885 (test "X$CXX" != "Xg++"))) ; then
11886 ac_ext=cpp
11887 ac_cpp='$CXXCPP $CPPFLAGS'
11888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11892 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11893 if test -z "$CXXCPP"; then
11894 if ${ac_cv_prog_CXXCPP+:} false; then :
11895 $as_echo_n "(cached) " >&6
11896 else
11897 # Double quotes because CXXCPP needs to be expanded
11898 for CXXCPP in "$CXX -E" "/lib/cpp"
11900 ac_preproc_ok=false
11901 for ac_cxx_preproc_warn_flag in '' yes
11903 # Use a header file that comes with gcc, so configuring glibc
11904 # with a fresh cross-compiler works.
11905 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11906 # <limits.h> exists even on freestanding compilers.
11907 # On the NeXT, cc -E runs the code through the compiler's parser,
11908 # not just through cpp. "Syntax error" is here to catch this case.
11909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11910 /* end confdefs.h. */
11911 #ifdef __STDC__
11912 # include <limits.h>
11913 #else
11914 # include <assert.h>
11915 #endif
11916 Syntax error
11917 _ACEOF
11918 if ac_fn_cxx_try_cpp "$LINENO"; then :
11920 else
11921 # Broken: fails on valid input.
11922 continue
11924 rm -f conftest.err conftest.i conftest.$ac_ext
11926 # OK, works on sane cases. Now check whether nonexistent headers
11927 # can be detected and how.
11928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11929 /* end confdefs.h. */
11930 #include <ac_nonexistent.h>
11931 _ACEOF
11932 if ac_fn_cxx_try_cpp "$LINENO"; then :
11933 # Broken: success on invalid input.
11934 continue
11935 else
11936 # Passes both tests.
11937 ac_preproc_ok=:
11938 break
11940 rm -f conftest.err conftest.i conftest.$ac_ext
11942 done
11943 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11944 rm -f conftest.i conftest.err conftest.$ac_ext
11945 if $ac_preproc_ok; then :
11946 break
11949 done
11950 ac_cv_prog_CXXCPP=$CXXCPP
11953 CXXCPP=$ac_cv_prog_CXXCPP
11954 else
11955 ac_cv_prog_CXXCPP=$CXXCPP
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11958 $as_echo "$CXXCPP" >&6; }
11959 ac_preproc_ok=false
11960 for ac_cxx_preproc_warn_flag in '' yes
11962 # Use a header file that comes with gcc, so configuring glibc
11963 # with a fresh cross-compiler works.
11964 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11965 # <limits.h> exists even on freestanding compilers.
11966 # On the NeXT, cc -E runs the code through the compiler's parser,
11967 # not just through cpp. "Syntax error" is here to catch this case.
11968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11969 /* end confdefs.h. */
11970 #ifdef __STDC__
11971 # include <limits.h>
11972 #else
11973 # include <assert.h>
11974 #endif
11975 Syntax error
11976 _ACEOF
11977 if ac_fn_cxx_try_cpp "$LINENO"; then :
11979 else
11980 # Broken: fails on valid input.
11981 continue
11983 rm -f conftest.err conftest.i conftest.$ac_ext
11985 # OK, works on sane cases. Now check whether nonexistent headers
11986 # can be detected and how.
11987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11988 /* end confdefs.h. */
11989 #include <ac_nonexistent.h>
11990 _ACEOF
11991 if ac_fn_cxx_try_cpp "$LINENO"; then :
11992 # Broken: success on invalid input.
11993 continue
11994 else
11995 # Passes both tests.
11996 ac_preproc_ok=:
11997 break
11999 rm -f conftest.err conftest.i conftest.$ac_ext
12001 done
12002 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12003 rm -f conftest.i conftest.err conftest.$ac_ext
12004 if $ac_preproc_ok; then :
12006 else
12007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12009 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12010 See \`config.log' for more details" "$LINENO" 5; }
12013 ac_ext=c
12014 ac_cpp='$CPP $CPPFLAGS'
12015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12019 else
12020 _lt_caught_CXX_error=yes
12023 ac_ext=cpp
12024 ac_cpp='$CXXCPP $CPPFLAGS'
12025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12029 archive_cmds_need_lc_CXX=no
12030 allow_undefined_flag_CXX=
12031 always_export_symbols_CXX=no
12032 archive_expsym_cmds_CXX=
12033 compiler_needs_object_CXX=no
12034 export_dynamic_flag_spec_CXX=
12035 hardcode_direct_CXX=no
12036 hardcode_direct_absolute_CXX=no
12037 hardcode_libdir_flag_spec_CXX=
12038 hardcode_libdir_flag_spec_ld_CXX=
12039 hardcode_libdir_separator_CXX=
12040 hardcode_minus_L_CXX=no
12041 hardcode_shlibpath_var_CXX=unsupported
12042 hardcode_automatic_CXX=no
12043 inherit_rpath_CXX=no
12044 module_cmds_CXX=
12045 module_expsym_cmds_CXX=
12046 link_all_deplibs_CXX=unknown
12047 old_archive_cmds_CXX=$old_archive_cmds
12048 reload_flag_CXX=$reload_flag
12049 reload_cmds_CXX=$reload_cmds
12050 no_undefined_flag_CXX=
12051 whole_archive_flag_spec_CXX=
12052 enable_shared_with_static_runtimes_CXX=no
12054 # Source file extension for C++ test sources.
12055 ac_ext=cpp
12057 # Object file extension for compiled C++ test sources.
12058 objext=o
12059 objext_CXX=$objext
12061 # No sense in running all these tests if we already determined that
12062 # the CXX compiler isn't working. Some variables (like enable_shared)
12063 # are currently assumed to apply to all compilers on this platform,
12064 # and will be corrupted by setting them based on a non-working compiler.
12065 if test "$_lt_caught_CXX_error" != yes; then
12066 # Code to be used in simple compile tests
12067 lt_simple_compile_test_code="int some_variable = 0;"
12069 # Code to be used in simple link tests
12070 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12072 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12079 # If no C compiler was specified, use CC.
12080 LTCC=${LTCC-"$CC"}
12082 # If no C compiler flags were specified, use CFLAGS.
12083 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12085 # Allow CC to be a program name with arguments.
12086 compiler=$CC
12089 # save warnings/boilerplate of simple test code
12090 ac_outfile=conftest.$ac_objext
12091 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12092 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12093 _lt_compiler_boilerplate=`cat conftest.err`
12094 $RM conftest*
12096 ac_outfile=conftest.$ac_objext
12097 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12098 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12099 _lt_linker_boilerplate=`cat conftest.err`
12100 $RM -r conftest*
12103 # Allow CC to be a program name with arguments.
12104 lt_save_CC=$CC
12105 lt_save_LD=$LD
12106 lt_save_GCC=$GCC
12107 GCC=$GXX
12108 lt_save_with_gnu_ld=$with_gnu_ld
12109 lt_save_path_LD=$lt_cv_path_LD
12110 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12111 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12112 else
12113 $as_unset lt_cv_prog_gnu_ld
12115 if test -n "${lt_cv_path_LDCXX+set}"; then
12116 lt_cv_path_LD=$lt_cv_path_LDCXX
12117 else
12118 $as_unset lt_cv_path_LD
12120 test -z "${LDCXX+set}" || LD=$LDCXX
12121 CC=${CXX-"c++"}
12122 compiler=$CC
12123 compiler_CXX=$CC
12124 for cc_temp in $compiler""; do
12125 case $cc_temp in
12126 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12127 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12128 \-*) ;;
12129 *) break;;
12130 esac
12131 done
12132 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12135 if test -n "$compiler"; then
12136 # We don't want -fno-exception when compiling C++ code, so set the
12137 # no_builtin_flag separately
12138 if test "$GXX" = yes; then
12139 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12140 else
12141 lt_prog_compiler_no_builtin_flag_CXX=
12144 if test "$GXX" = yes; then
12145 # Set up default GNU C++ configuration
12149 # Check whether --with-gnu-ld was given.
12150 if test "${with_gnu_ld+set}" = set; then :
12151 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12152 else
12153 with_gnu_ld=no
12156 ac_prog=ld
12157 if test "$GCC" = yes; then
12158 # Check if gcc -print-prog-name=ld gives a path.
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12160 $as_echo_n "checking for ld used by $CC... " >&6; }
12161 case $host in
12162 *-*-mingw*)
12163 # gcc leaves a trailing carriage return which upsets mingw
12164 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12166 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12167 esac
12168 case $ac_prog in
12169 # Accept absolute paths.
12170 [\\/]* | ?:[\\/]*)
12171 re_direlt='/[^/][^/]*/\.\./'
12172 # Canonicalize the pathname of ld
12173 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12174 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12175 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12176 done
12177 test -z "$LD" && LD="$ac_prog"
12180 # If it fails, then pretend we aren't using GCC.
12181 ac_prog=ld
12184 # If it is relative, then search for the first ld in PATH.
12185 with_gnu_ld=unknown
12187 esac
12188 elif test "$with_gnu_ld" = yes; then
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12190 $as_echo_n "checking for GNU ld... " >&6; }
12191 else
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12193 $as_echo_n "checking for non-GNU ld... " >&6; }
12195 if ${lt_cv_path_LD+:} false; then :
12196 $as_echo_n "(cached) " >&6
12197 else
12198 if test -z "$LD"; then
12199 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12200 for ac_dir in $PATH; do
12201 IFS="$lt_save_ifs"
12202 test -z "$ac_dir" && ac_dir=.
12203 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12204 lt_cv_path_LD="$ac_dir/$ac_prog"
12205 # Check to see if the program is GNU ld. I'd rather use --version,
12206 # but apparently some variants of GNU ld only accept -v.
12207 # Break only if it was the GNU/non-GNU ld that we prefer.
12208 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12209 *GNU* | *'with BFD'*)
12210 test "$with_gnu_ld" != no && break
12213 test "$with_gnu_ld" != yes && break
12215 esac
12217 done
12218 IFS="$lt_save_ifs"
12219 else
12220 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12224 LD="$lt_cv_path_LD"
12225 if test -n "$LD"; then
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12227 $as_echo "$LD" >&6; }
12228 else
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12230 $as_echo "no" >&6; }
12232 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12234 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12235 if ${lt_cv_prog_gnu_ld+:} false; then :
12236 $as_echo_n "(cached) " >&6
12237 else
12238 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12239 case `$LD -v 2>&1 </dev/null` in
12240 *GNU* | *'with BFD'*)
12241 lt_cv_prog_gnu_ld=yes
12244 lt_cv_prog_gnu_ld=no
12246 esac
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12249 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12250 with_gnu_ld=$lt_cv_prog_gnu_ld
12258 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12259 # archiving commands below assume that GNU ld is being used.
12260 if test "$with_gnu_ld" = yes; then
12261 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12262 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'
12264 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12265 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12267 # If archive_cmds runs LD, not CC, wlarc should be empty
12268 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12269 # investigate it a little bit more. (MM)
12270 wlarc='${wl}'
12272 # ancient GNU ld didn't support --whole-archive et. al.
12273 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12274 $GREP 'no-whole-archive' > /dev/null; then
12275 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12276 else
12277 whole_archive_flag_spec_CXX=
12279 else
12280 with_gnu_ld=no
12281 wlarc=
12283 # A generic and very simple default shared library creation
12284 # command for GNU C++ for the case where it uses the native
12285 # linker, instead of GNU ld. If possible, this setting should
12286 # overridden to take advantage of the native linker features on
12287 # the platform it is being used on.
12288 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12291 # Commands to make compiler produce verbose output that lists
12292 # what "hidden" libraries, object files and flags are used when
12293 # linking a shared library.
12294 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12296 else
12297 GXX=no
12298 with_gnu_ld=no
12299 wlarc=
12302 # PORTME: fill in a description of your system's C++ link characteristics
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12304 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12305 ld_shlibs_CXX=yes
12306 case $host_os in
12307 aix3*)
12308 # FIXME: insert proper C++ library support
12309 ld_shlibs_CXX=no
12311 aix[4-9]*)
12312 if test "$host_cpu" = ia64; then
12313 # On IA64, the linker does run time linking by default, so we don't
12314 # have to do anything special.
12315 aix_use_runtimelinking=no
12316 exp_sym_flag='-Bexport'
12317 no_entry_flag=""
12318 else
12319 aix_use_runtimelinking=no
12321 # Test if we are trying to use run time linking or normal
12322 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12323 # need to do runtime linking.
12324 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12325 for ld_flag in $LDFLAGS; do
12326 case $ld_flag in
12327 *-brtl*)
12328 aix_use_runtimelinking=yes
12329 break
12331 esac
12332 done
12334 esac
12336 exp_sym_flag='-bexport'
12337 no_entry_flag='-bnoentry'
12340 # When large executables or shared objects are built, AIX ld can
12341 # have problems creating the table of contents. If linking a library
12342 # or program results in "error TOC overflow" add -mminimal-toc to
12343 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12344 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12346 archive_cmds_CXX=''
12347 hardcode_direct_CXX=yes
12348 hardcode_direct_absolute_CXX=yes
12349 hardcode_libdir_separator_CXX=':'
12350 link_all_deplibs_CXX=yes
12351 file_list_spec_CXX='${wl}-f,'
12353 if test "$GXX" = yes; then
12354 case $host_os in aix4.[012]|aix4.[012].*)
12355 # We only want to do this on AIX 4.2 and lower, the check
12356 # below for broken collect2 doesn't work under 4.3+
12357 collect2name=`${CC} -print-prog-name=collect2`
12358 if test -f "$collect2name" &&
12359 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12360 then
12361 # We have reworked collect2
12363 else
12364 # We have old collect2
12365 hardcode_direct_CXX=unsupported
12366 # It fails to find uninstalled libraries when the uninstalled
12367 # path is not listed in the libpath. Setting hardcode_minus_L
12368 # to unsupported forces relinking
12369 hardcode_minus_L_CXX=yes
12370 hardcode_libdir_flag_spec_CXX='-L$libdir'
12371 hardcode_libdir_separator_CXX=
12373 esac
12374 shared_flag='-shared'
12375 if test "$aix_use_runtimelinking" = yes; then
12376 shared_flag="$shared_flag "'${wl}-G'
12378 else
12379 # not using gcc
12380 if test "$host_cpu" = ia64; then
12381 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12382 # chokes on -Wl,-G. The following line is correct:
12383 shared_flag='-G'
12384 else
12385 if test "$aix_use_runtimelinking" = yes; then
12386 shared_flag='${wl}-G'
12387 else
12388 shared_flag='${wl}-bM:SRE'
12393 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12394 # It seems that -bexpall does not export symbols beginning with
12395 # underscore (_), so it is better to generate a list of symbols to
12396 # export.
12397 always_export_symbols_CXX=yes
12398 if test "$aix_use_runtimelinking" = yes; then
12399 # Warning - without using the other runtime loading flags (-brtl),
12400 # -berok will link without error, but may produce a broken library.
12401 allow_undefined_flag_CXX='-berok'
12402 # Determine the default libpath from the value encoded in an empty
12403 # executable.
12404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12405 /* end confdefs.h. */
12408 main ()
12412 return 0;
12414 _ACEOF
12415 if ac_fn_cxx_try_link "$LINENO"; then :
12417 lt_aix_libpath_sed='
12418 /Import File Strings/,/^$/ {
12419 /^0/ {
12420 s/^0 *\(.*\)$/\1/
12424 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12425 # Check for a 64-bit object if we didn't find anything.
12426 if test -z "$aix_libpath"; then
12427 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12430 rm -f core conftest.err conftest.$ac_objext \
12431 conftest$ac_exeext conftest.$ac_ext
12432 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12434 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12436 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"
12437 else
12438 if test "$host_cpu" = ia64; then
12439 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12440 allow_undefined_flag_CXX="-z nodefs"
12441 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"
12442 else
12443 # Determine the default libpath from the value encoded in an
12444 # empty executable.
12445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12446 /* end confdefs.h. */
12449 main ()
12453 return 0;
12455 _ACEOF
12456 if ac_fn_cxx_try_link "$LINENO"; then :
12458 lt_aix_libpath_sed='
12459 /Import File Strings/,/^$/ {
12460 /^0/ {
12461 s/^0 *\(.*\)$/\1/
12465 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12466 # Check for a 64-bit object if we didn't find anything.
12467 if test -z "$aix_libpath"; then
12468 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12471 rm -f core conftest.err conftest.$ac_objext \
12472 conftest$ac_exeext conftest.$ac_ext
12473 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12475 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12476 # Warning - without using the other run time loading flags,
12477 # -berok will link without error, but may produce a broken library.
12478 no_undefined_flag_CXX=' ${wl}-bernotok'
12479 allow_undefined_flag_CXX=' ${wl}-berok'
12480 if test "$with_gnu_ld" = yes; then
12481 # We only use this code for GNU lds that support --whole-archive.
12482 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12483 else
12484 # Exported symbols can be pulled into shared objects from archives
12485 whole_archive_flag_spec_CXX='$convenience'
12487 archive_cmds_need_lc_CXX=yes
12488 # This is similar to how AIX traditionally builds its shared
12489 # libraries.
12490 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'
12495 beos*)
12496 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12497 allow_undefined_flag_CXX=unsupported
12498 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12499 # support --undefined. This deserves some investigation. FIXME
12500 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12501 else
12502 ld_shlibs_CXX=no
12506 chorus*)
12507 case $cc_basename in
12509 # FIXME: insert proper C++ library support
12510 ld_shlibs_CXX=no
12512 esac
12515 cygwin* | mingw* | pw32* | cegcc*)
12516 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12517 # as there is no search path for DLLs.
12518 hardcode_libdir_flag_spec_CXX='-L$libdir'
12519 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12520 allow_undefined_flag_CXX=unsupported
12521 always_export_symbols_CXX=no
12522 enable_shared_with_static_runtimes_CXX=yes
12524 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12525 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'
12526 # If the export-symbols file already is a .def file (1st line
12527 # is EXPORTS), use it as is; otherwise, prepend...
12528 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12529 cp $export_symbols $output_objdir/$soname.def;
12530 else
12531 echo EXPORTS > $output_objdir/$soname.def;
12532 cat $export_symbols >> $output_objdir/$soname.def;
12534 $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'
12535 else
12536 ld_shlibs_CXX=no
12539 darwin* | rhapsody*)
12542 archive_cmds_need_lc_CXX=no
12543 hardcode_direct_CXX=no
12544 hardcode_automatic_CXX=yes
12545 hardcode_shlibpath_var_CXX=unsupported
12546 if test "$lt_cv_ld_force_load" = "yes"; then
12547 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\"`'
12548 else
12549 whole_archive_flag_spec_CXX=''
12551 link_all_deplibs_CXX=yes
12552 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12553 case $cc_basename in
12554 ifort*) _lt_dar_can_shared=yes ;;
12555 *) _lt_dar_can_shared=$GCC ;;
12556 esac
12557 if test "$_lt_dar_can_shared" = "yes"; then
12558 output_verbose_link_cmd=func_echo_all
12559 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}"
12560 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12561 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}"
12562 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}"
12563 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12564 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}"
12565 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}"
12568 else
12569 ld_shlibs_CXX=no
12574 dgux*)
12575 case $cc_basename in
12576 ec++*)
12577 # FIXME: insert proper C++ library support
12578 ld_shlibs_CXX=no
12580 ghcx*)
12581 # Green Hills C++ Compiler
12582 # FIXME: insert proper C++ library support
12583 ld_shlibs_CXX=no
12586 # FIXME: insert proper C++ library support
12587 ld_shlibs_CXX=no
12589 esac
12592 freebsd2.*)
12593 # C++ shared libraries reported to be fairly broken before
12594 # switch to ELF
12595 ld_shlibs_CXX=no
12598 freebsd-elf*)
12599 archive_cmds_need_lc_CXX=no
12602 freebsd* | dragonfly*)
12603 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12604 # conventions
12605 ld_shlibs_CXX=yes
12608 gnu*)
12611 haiku*)
12612 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12613 link_all_deplibs_CXX=yes
12616 hpux9*)
12617 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12618 hardcode_libdir_separator_CXX=:
12619 export_dynamic_flag_spec_CXX='${wl}-E'
12620 hardcode_direct_CXX=yes
12621 hardcode_minus_L_CXX=yes # Not in the search PATH,
12622 # but as the default
12623 # location of the library.
12625 case $cc_basename in
12626 CC*)
12627 # FIXME: insert proper C++ library support
12628 ld_shlibs_CXX=no
12630 aCC*)
12631 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'
12632 # Commands to make compiler produce verbose output that lists
12633 # what "hidden" libraries, object files and flags are used when
12634 # linking a shared library.
12636 # There doesn't appear to be a way to prevent this compiler from
12637 # explicitly linking system object files so we need to strip them
12638 # from the output so that they don't get included in the library
12639 # dependencies.
12640 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"'
12643 if test "$GXX" = yes; then
12644 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'
12645 else
12646 # FIXME: insert proper C++ library support
12647 ld_shlibs_CXX=no
12650 esac
12653 hpux10*|hpux11*)
12654 if test $with_gnu_ld = no; then
12655 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12656 hardcode_libdir_separator_CXX=:
12658 case $host_cpu in
12659 hppa*64*|ia64*)
12662 export_dynamic_flag_spec_CXX='${wl}-E'
12664 esac
12666 case $host_cpu in
12667 hppa*64*|ia64*)
12668 hardcode_direct_CXX=no
12669 hardcode_shlibpath_var_CXX=no
12672 hardcode_direct_CXX=yes
12673 hardcode_direct_absolute_CXX=yes
12674 hardcode_minus_L_CXX=yes # Not in the search PATH,
12675 # but as the default
12676 # location of the library.
12678 esac
12680 case $cc_basename in
12681 CC*)
12682 # FIXME: insert proper C++ library support
12683 ld_shlibs_CXX=no
12685 aCC*)
12686 case $host_cpu in
12687 hppa*64*)
12688 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12690 ia64*)
12691 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12694 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12696 esac
12697 # Commands to make compiler produce verbose output that lists
12698 # what "hidden" libraries, object files and flags are used when
12699 # linking a shared library.
12701 # There doesn't appear to be a way to prevent this compiler from
12702 # explicitly linking system object files so we need to strip them
12703 # from the output so that they don't get included in the library
12704 # dependencies.
12705 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"'
12708 if test "$GXX" = yes; then
12709 if test $with_gnu_ld = no; then
12710 case $host_cpu in
12711 hppa*64*)
12712 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12714 ia64*)
12715 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12718 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'
12720 esac
12722 else
12723 # FIXME: insert proper C++ library support
12724 ld_shlibs_CXX=no
12727 esac
12730 interix[3-9]*)
12731 hardcode_direct_CXX=no
12732 hardcode_shlibpath_var_CXX=no
12733 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12734 export_dynamic_flag_spec_CXX='${wl}-E'
12735 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12736 # Instead, shared libraries are loaded at an image base (0x10000000 by
12737 # default) and relocated if they conflict, which is a slow very memory
12738 # consuming and fragmenting process. To avoid this, we pick a random,
12739 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12740 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12741 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'
12742 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'
12744 irix5* | irix6*)
12745 case $cc_basename in
12746 CC*)
12747 # SGI C++
12748 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'
12750 # Archives containing C++ object files must be created using
12751 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12752 # necessary to make sure instantiated templates are included
12753 # in the archive.
12754 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12757 if test "$GXX" = yes; then
12758 if test "$with_gnu_ld" = no; then
12759 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'
12760 else
12761 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'
12764 link_all_deplibs_CXX=yes
12766 esac
12767 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12768 hardcode_libdir_separator_CXX=:
12769 inherit_rpath_CXX=yes
12772 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12773 case $cc_basename in
12774 KCC*)
12775 # Kuck and Associates, Inc. (KAI) C++ Compiler
12777 # KCC will only create a shared library if the output file
12778 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12779 # to its proper name (with version) after linking.
12780 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'
12781 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'
12782 # Commands to make compiler produce verbose output that lists
12783 # what "hidden" libraries, object files and flags are used when
12784 # linking a shared library.
12786 # There doesn't appear to be a way to prevent this compiler from
12787 # explicitly linking system object files so we need to strip them
12788 # from the output so that they don't get included in the library
12789 # dependencies.
12790 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"'
12792 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12793 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12795 # Archives containing C++ object files must be created using
12796 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12797 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12799 icpc* | ecpc* )
12800 # Intel C++
12801 with_gnu_ld=yes
12802 # version 8.0 and above of icpc choke on multiply defined symbols
12803 # if we add $predep_objects and $postdep_objects, however 7.1 and
12804 # earlier do not add the objects themselves.
12805 case `$CC -V 2>&1` in
12806 *"Version 7."*)
12807 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12808 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'
12810 *) # Version 8.0 or newer
12811 tmp_idyn=
12812 case $host_cpu in
12813 ia64*) tmp_idyn=' -i_dynamic';;
12814 esac
12815 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12816 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'
12818 esac
12819 archive_cmds_need_lc_CXX=no
12820 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12821 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12822 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12824 pgCC* | pgcpp*)
12825 # Portland Group C++ compiler
12826 case `$CC -V` in
12827 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12828 prelink_cmds_CXX='tpldir=Template.dir~
12829 rm -rf $tpldir~
12830 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12831 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12832 old_archive_cmds_CXX='tpldir=Template.dir~
12833 rm -rf $tpldir~
12834 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12835 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12836 $RANLIB $oldlib'
12837 archive_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 -o $lib'
12841 archive_expsym_cmds_CXX='tpldir=Template.dir~
12842 rm -rf $tpldir~
12843 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12844 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12846 *) # Version 6 and above use weak symbols
12847 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12848 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'
12850 esac
12852 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12853 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12854 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'
12856 cxx*)
12857 # Compaq C++
12858 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12859 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'
12861 runpath_var=LD_RUN_PATH
12862 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12863 hardcode_libdir_separator_CXX=:
12865 # Commands to make compiler produce verbose output that lists
12866 # what "hidden" libraries, object files and flags are used when
12867 # linking a shared library.
12869 # There doesn't appear to be a way to prevent this compiler from
12870 # explicitly linking system object files so we need to strip them
12871 # from the output so that they don't get included in the library
12872 # dependencies.
12873 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'
12875 xl* | mpixl* | bgxl*)
12876 # IBM XL 8.0 on PPC, with GNU ld
12877 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12878 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12879 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12880 if test "x$supports_anon_versioning" = xyes; then
12881 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12882 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12883 echo "local: *; };" >> $output_objdir/$libname.ver~
12884 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12888 case `$CC -V 2>&1 | sed 5q` in
12889 *Sun\ C*)
12890 # Sun C++ 5.9
12891 no_undefined_flag_CXX=' -zdefs'
12892 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12893 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'
12894 hardcode_libdir_flag_spec_CXX='-R$libdir'
12895 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'
12896 compiler_needs_object_CXX=yes
12898 # Not sure whether something based on
12899 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12900 # would be better.
12901 output_verbose_link_cmd='func_echo_all'
12903 # Archives containing C++ object files must be created using
12904 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12905 # necessary to make sure instantiated templates are included
12906 # in the archive.
12907 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12909 esac
12911 esac
12914 lynxos*)
12915 # FIXME: insert proper C++ library support
12916 ld_shlibs_CXX=no
12919 m88k*)
12920 # FIXME: insert proper C++ library support
12921 ld_shlibs_CXX=no
12924 mvs*)
12925 case $cc_basename in
12926 cxx*)
12927 # FIXME: insert proper C++ library support
12928 ld_shlibs_CXX=no
12931 # FIXME: insert proper C++ library support
12932 ld_shlibs_CXX=no
12934 esac
12937 netbsd*)
12938 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12939 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12940 wlarc=
12941 hardcode_libdir_flag_spec_CXX='-R$libdir'
12942 hardcode_direct_CXX=yes
12943 hardcode_shlibpath_var_CXX=no
12945 # Workaround some broken pre-1.5 toolchains
12946 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12949 *nto* | *qnx*)
12950 ld_shlibs_CXX=yes
12953 openbsd2*)
12954 # C++ shared libraries are fairly broken
12955 ld_shlibs_CXX=no
12958 openbsd*)
12959 if test -f /usr/libexec/ld.so; then
12960 hardcode_direct_CXX=yes
12961 hardcode_shlibpath_var_CXX=no
12962 hardcode_direct_absolute_CXX=yes
12963 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12964 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12965 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12966 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12967 export_dynamic_flag_spec_CXX='${wl}-E'
12968 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12970 output_verbose_link_cmd=func_echo_all
12971 else
12972 ld_shlibs_CXX=no
12976 osf3* | osf4* | osf5*)
12977 case $cc_basename in
12978 KCC*)
12979 # Kuck and Associates, Inc. (KAI) C++ Compiler
12981 # KCC will only create a shared library if the output file
12982 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12983 # to its proper name (with version) after linking.
12984 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'
12986 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12987 hardcode_libdir_separator_CXX=:
12989 # Archives containing C++ object files must be created using
12990 # the KAI C++ compiler.
12991 case $host in
12992 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12993 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12994 esac
12996 RCC*)
12997 # Rational C++ 2.4.1
12998 # FIXME: insert proper C++ library support
12999 ld_shlibs_CXX=no
13001 cxx*)
13002 case $host in
13003 osf3*)
13004 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13005 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'
13006 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13009 allow_undefined_flag_CXX=' -expect_unresolved \*'
13010 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'
13011 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13012 echo "-hidden">> $lib.exp~
13013 $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~
13014 $RM $lib.exp'
13015 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13017 esac
13019 hardcode_libdir_separator_CXX=:
13021 # Commands to make compiler produce verbose output that lists
13022 # what "hidden" libraries, object files and flags are used when
13023 # linking a shared library.
13025 # There doesn't appear to be a way to prevent this compiler from
13026 # explicitly linking system object files so we need to strip them
13027 # from the output so that they don't get included in the library
13028 # dependencies.
13029 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"'
13032 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13033 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13034 case $host in
13035 osf3*)
13036 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'
13039 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'
13041 esac
13043 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13044 hardcode_libdir_separator_CXX=:
13046 # Commands to make compiler produce verbose output that lists
13047 # what "hidden" libraries, object files and flags are used when
13048 # linking a shared library.
13049 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13051 else
13052 # FIXME: insert proper C++ library support
13053 ld_shlibs_CXX=no
13056 esac
13059 psos*)
13060 # FIXME: insert proper C++ library support
13061 ld_shlibs_CXX=no
13064 sunos4*)
13065 case $cc_basename in
13066 CC*)
13067 # Sun C++ 4.x
13068 # FIXME: insert proper C++ library support
13069 ld_shlibs_CXX=no
13071 lcc*)
13072 # Lucid
13073 # FIXME: insert proper C++ library support
13074 ld_shlibs_CXX=no
13077 # FIXME: insert proper C++ library support
13078 ld_shlibs_CXX=no
13080 esac
13083 solaris*)
13084 case $cc_basename in
13085 CC*)
13086 # Sun C++ 4.2, 5.x and Centerline C++
13087 archive_cmds_need_lc_CXX=yes
13088 no_undefined_flag_CXX=' -zdefs'
13089 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13090 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13091 $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'
13093 hardcode_libdir_flag_spec_CXX='-R$libdir'
13094 hardcode_shlibpath_var_CXX=no
13095 case $host_os in
13096 solaris2.[0-5] | solaris2.[0-5].*) ;;
13098 # The compiler driver will combine and reorder linker options,
13099 # but understands `-z linker_flag'.
13100 # Supported since Solaris 2.6 (maybe 2.5.1?)
13101 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13103 esac
13104 link_all_deplibs_CXX=yes
13106 output_verbose_link_cmd='func_echo_all'
13108 # Archives containing C++ object files must be created using
13109 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13110 # necessary to make sure instantiated templates are included
13111 # in the archive.
13112 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13114 gcx*)
13115 # Green Hills C++ Compiler
13116 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13118 # The C++ compiler must be used to create the archive.
13119 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13122 # GNU C++ compiler with Solaris linker
13123 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13124 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13125 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13126 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13127 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13128 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13130 # Commands to make compiler produce verbose output that lists
13131 # what "hidden" libraries, object files and flags are used when
13132 # linking a shared library.
13133 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13134 else
13135 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13136 # platform.
13137 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13138 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13139 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13141 # Commands to make compiler produce verbose output that lists
13142 # what "hidden" libraries, object files and flags are used when
13143 # linking a shared library.
13144 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13147 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13148 case $host_os in
13149 solaris2.[0-5] | solaris2.[0-5].*) ;;
13151 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13153 esac
13156 esac
13159 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13160 no_undefined_flag_CXX='${wl}-z,text'
13161 archive_cmds_need_lc_CXX=no
13162 hardcode_shlibpath_var_CXX=no
13163 runpath_var='LD_RUN_PATH'
13165 case $cc_basename in
13166 CC*)
13167 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13168 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13171 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13172 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13174 esac
13177 sysv5* | sco3.2v5* | sco5v6*)
13178 # Note: We can NOT use -z defs as we might desire, because we do not
13179 # link with -lc, and that would cause any symbols used from libc to
13180 # always be unresolved, which means just about no library would
13181 # ever link correctly. If we're not using GNU ld we use -z text
13182 # though, which does catch some bad symbols but isn't as heavy-handed
13183 # as -z defs.
13184 no_undefined_flag_CXX='${wl}-z,text'
13185 allow_undefined_flag_CXX='${wl}-z,nodefs'
13186 archive_cmds_need_lc_CXX=no
13187 hardcode_shlibpath_var_CXX=no
13188 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13189 hardcode_libdir_separator_CXX=':'
13190 link_all_deplibs_CXX=yes
13191 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13192 runpath_var='LD_RUN_PATH'
13194 case $cc_basename in
13195 CC*)
13196 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13197 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13198 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13199 '"$old_archive_cmds_CXX"
13200 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13201 '"$reload_cmds_CXX"
13204 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13205 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13207 esac
13210 tandem*)
13211 case $cc_basename in
13212 NCC*)
13213 # NonStop-UX NCC 3.20
13214 # FIXME: insert proper C++ library support
13215 ld_shlibs_CXX=no
13218 # FIXME: insert proper C++ library support
13219 ld_shlibs_CXX=no
13221 esac
13224 vxworks*)
13225 # FIXME: insert proper C++ library support
13226 ld_shlibs_CXX=no
13230 # FIXME: insert proper C++ library support
13231 ld_shlibs_CXX=no
13233 esac
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13236 $as_echo "$ld_shlibs_CXX" >&6; }
13237 test "$ld_shlibs_CXX" = no && can_build_shared=no
13239 GCC_CXX="$GXX"
13240 LD_CXX="$LD"
13242 ## CAVEAT EMPTOR:
13243 ## There is no encapsulation within the following macros, do not change
13244 ## the running order or otherwise move them around unless you know exactly
13245 ## what you are doing...
13246 # Dependencies to place before and after the object being linked:
13247 predep_objects_CXX=
13248 postdep_objects_CXX=
13249 predeps_CXX=
13250 postdeps_CXX=
13251 compiler_lib_search_path_CXX=
13253 cat > conftest.$ac_ext <<_LT_EOF
13254 class Foo
13256 public:
13257 Foo (void) { a = 0; }
13258 private:
13259 int a;
13261 _LT_EOF
13263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13264 (eval $ac_compile) 2>&5
13265 ac_status=$?
13266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13267 test $ac_status = 0; }; then
13268 # Parse the compiler output and extract the necessary
13269 # objects, libraries and library flags.
13271 # Sentinel used to keep track of whether or not we are before
13272 # the conftest object file.
13273 pre_test_object_deps_done=no
13275 for p in `eval "$output_verbose_link_cmd"`; do
13276 case $p in
13278 -L* | -R* | -l*)
13279 # Some compilers place space between "-{L,R}" and the path.
13280 # Remove the space.
13281 if test $p = "-L" ||
13282 test $p = "-R"; then
13283 prev=$p
13284 continue
13285 else
13286 prev=
13289 if test "$pre_test_object_deps_done" = no; then
13290 case $p in
13291 -L* | -R*)
13292 # Internal compiler library paths should come after those
13293 # provided the user. The postdeps already come after the
13294 # user supplied libs so there is no need to process them.
13295 if test -z "$compiler_lib_search_path_CXX"; then
13296 compiler_lib_search_path_CXX="${prev}${p}"
13297 else
13298 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13301 # The "-l" case would never come before the object being
13302 # linked, so don't bother handling this case.
13303 esac
13304 else
13305 if test -z "$postdeps_CXX"; then
13306 postdeps_CXX="${prev}${p}"
13307 else
13308 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13313 *.$objext)
13314 # This assumes that the test object file only shows up
13315 # once in the compiler output.
13316 if test "$p" = "conftest.$objext"; then
13317 pre_test_object_deps_done=yes
13318 continue
13321 if test "$pre_test_object_deps_done" = no; then
13322 if test -z "$predep_objects_CXX"; then
13323 predep_objects_CXX="$p"
13324 else
13325 predep_objects_CXX="$predep_objects_CXX $p"
13327 else
13328 if test -z "$postdep_objects_CXX"; then
13329 postdep_objects_CXX="$p"
13330 else
13331 postdep_objects_CXX="$postdep_objects_CXX $p"
13336 *) ;; # Ignore the rest.
13338 esac
13339 done
13341 # Clean up.
13342 rm -f a.out a.exe
13343 else
13344 echo "libtool.m4: error: problem compiling CXX test program"
13347 $RM -f confest.$objext
13349 # PORTME: override above test on systems where it is broken
13350 case $host_os in
13351 interix[3-9]*)
13352 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13353 # hack all around it, let's just trust "g++" to DTRT.
13354 predep_objects_CXX=
13355 postdep_objects_CXX=
13356 postdeps_CXX=
13359 linux*)
13360 case `$CC -V 2>&1 | sed 5q` in
13361 *Sun\ C*)
13362 # Sun C++ 5.9
13364 # The more standards-conforming stlport4 library is
13365 # incompatible with the Cstd library. Avoid specifying
13366 # it if it's in CXXFLAGS. Ignore libCrun as
13367 # -library=stlport4 depends on it.
13368 case " $CXX $CXXFLAGS " in
13369 *" -library=stlport4 "*)
13370 solaris_use_stlport4=yes
13372 esac
13374 if test "$solaris_use_stlport4" != yes; then
13375 postdeps_CXX='-library=Cstd -library=Crun'
13378 esac
13381 solaris*)
13382 case $cc_basename in
13383 CC*)
13384 # The more standards-conforming stlport4 library is
13385 # incompatible with the Cstd library. Avoid specifying
13386 # it if it's in CXXFLAGS. Ignore libCrun as
13387 # -library=stlport4 depends on it.
13388 case " $CXX $CXXFLAGS " in
13389 *" -library=stlport4 "*)
13390 solaris_use_stlport4=yes
13392 esac
13394 # Adding this requires a known-good setup of shared libraries for
13395 # Sun compiler versions before 5.6, else PIC objects from an old
13396 # archive will be linked into the output, leading to subtle bugs.
13397 if test "$solaris_use_stlport4" != yes; then
13398 postdeps_CXX='-library=Cstd -library=Crun'
13401 esac
13403 esac
13406 case " $postdeps_CXX " in
13407 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13408 esac
13409 compiler_lib_search_dirs_CXX=
13410 if test -n "${compiler_lib_search_path_CXX}"; then
13411 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13444 lt_prog_compiler_wl_CXX=
13445 lt_prog_compiler_pic_CXX=
13446 lt_prog_compiler_static_CXX=
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13449 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13451 # C++ specific cases for pic, static, wl, etc.
13452 if test "$GXX" = yes; then
13453 lt_prog_compiler_wl_CXX='-Wl,'
13454 lt_prog_compiler_static_CXX='-static'
13456 case $host_os in
13457 aix*)
13458 # All AIX code is PIC.
13459 if test "$host_cpu" = ia64; then
13460 # AIX 5 now supports IA64 processor
13461 lt_prog_compiler_static_CXX='-Bstatic'
13463 lt_prog_compiler_pic_CXX='-fPIC'
13466 amigaos*)
13467 case $host_cpu in
13468 powerpc)
13469 # see comment about AmigaOS4 .so support
13470 lt_prog_compiler_pic_CXX='-fPIC'
13472 m68k)
13473 # FIXME: we need at least 68020 code to build shared libraries, but
13474 # adding the `-m68020' flag to GCC prevents building anything better,
13475 # like `-m68040'.
13476 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13478 esac
13481 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13482 # PIC is the default for these OSes.
13484 mingw* | cygwin* | os2* | pw32* | cegcc*)
13485 # This hack is so that the source file can tell whether it is being
13486 # built for inclusion in a dll (and should export symbols for example).
13487 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13488 # (--disable-auto-import) libraries
13489 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13491 darwin* | rhapsody*)
13492 # PIC is the default on this platform
13493 # Common symbols not allowed in MH_DYLIB files
13494 lt_prog_compiler_pic_CXX='-fno-common'
13496 *djgpp*)
13497 # DJGPP does not support shared libraries at all
13498 lt_prog_compiler_pic_CXX=
13500 haiku*)
13501 # PIC is the default for Haiku.
13502 # The "-static" flag exists, but is broken.
13503 lt_prog_compiler_static_CXX=
13505 interix[3-9]*)
13506 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13507 # Instead, we relocate shared libraries at runtime.
13509 sysv4*MP*)
13510 if test -d /usr/nec; then
13511 lt_prog_compiler_pic_CXX=-Kconform_pic
13514 hpux*)
13515 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13516 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13517 # sets the default TLS model and affects inlining.
13518 case $host_cpu in
13519 hppa*64*)
13522 lt_prog_compiler_pic_CXX='-fPIC'
13524 esac
13526 *qnx* | *nto*)
13527 # QNX uses GNU C++, but need to define -shared option too, otherwise
13528 # it will coredump.
13529 lt_prog_compiler_pic_CXX='-fPIC -shared'
13532 lt_prog_compiler_pic_CXX='-fPIC'
13534 esac
13535 else
13536 case $host_os in
13537 aix[4-9]*)
13538 # All AIX code is PIC.
13539 if test "$host_cpu" = ia64; then
13540 # AIX 5 now supports IA64 processor
13541 lt_prog_compiler_static_CXX='-Bstatic'
13542 else
13543 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13546 chorus*)
13547 case $cc_basename in
13548 cxch68*)
13549 # Green Hills C++ Compiler
13550 # _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"
13552 esac
13554 dgux*)
13555 case $cc_basename in
13556 ec++*)
13557 lt_prog_compiler_pic_CXX='-KPIC'
13559 ghcx*)
13560 # Green Hills C++ Compiler
13561 lt_prog_compiler_pic_CXX='-pic'
13565 esac
13567 freebsd* | dragonfly*)
13568 # FreeBSD uses GNU C++
13570 hpux9* | hpux10* | hpux11*)
13571 case $cc_basename in
13572 CC*)
13573 lt_prog_compiler_wl_CXX='-Wl,'
13574 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13575 if test "$host_cpu" != ia64; then
13576 lt_prog_compiler_pic_CXX='+Z'
13579 aCC*)
13580 lt_prog_compiler_wl_CXX='-Wl,'
13581 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13582 case $host_cpu in
13583 hppa*64*|ia64*)
13584 # +Z the default
13587 lt_prog_compiler_pic_CXX='+Z'
13589 esac
13593 esac
13595 interix*)
13596 # This is c89, which is MS Visual C++ (no shared libs)
13597 # Anyone wants to do a port?
13599 irix5* | irix6* | nonstopux*)
13600 case $cc_basename in
13601 CC*)
13602 lt_prog_compiler_wl_CXX='-Wl,'
13603 lt_prog_compiler_static_CXX='-non_shared'
13604 # CC pic flag -KPIC is the default.
13608 esac
13610 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13611 case $cc_basename in
13612 KCC*)
13613 # KAI C++ Compiler
13614 lt_prog_compiler_wl_CXX='--backend -Wl,'
13615 lt_prog_compiler_pic_CXX='-fPIC'
13617 ecpc* )
13618 # old Intel C++ for x86_64 which still supported -KPIC.
13619 lt_prog_compiler_wl_CXX='-Wl,'
13620 lt_prog_compiler_pic_CXX='-KPIC'
13621 lt_prog_compiler_static_CXX='-static'
13623 icpc* )
13624 # Intel C++, used to be incompatible with GCC.
13625 # ICC 10 doesn't accept -KPIC any more.
13626 lt_prog_compiler_wl_CXX='-Wl,'
13627 lt_prog_compiler_pic_CXX='-fPIC'
13628 lt_prog_compiler_static_CXX='-static'
13630 pgCC* | pgcpp*)
13631 # Portland Group C++ compiler
13632 lt_prog_compiler_wl_CXX='-Wl,'
13633 lt_prog_compiler_pic_CXX='-fpic'
13634 lt_prog_compiler_static_CXX='-Bstatic'
13636 cxx*)
13637 # Compaq C++
13638 # Make sure the PIC flag is empty. It appears that all Alpha
13639 # Linux and Compaq Tru64 Unix objects are PIC.
13640 lt_prog_compiler_pic_CXX=
13641 lt_prog_compiler_static_CXX='-non_shared'
13643 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13644 # IBM XL 8.0, 9.0 on PPC and BlueGene
13645 lt_prog_compiler_wl_CXX='-Wl,'
13646 lt_prog_compiler_pic_CXX='-qpic'
13647 lt_prog_compiler_static_CXX='-qstaticlink'
13650 case `$CC -V 2>&1 | sed 5q` in
13651 *Sun\ C*)
13652 # Sun C++ 5.9
13653 lt_prog_compiler_pic_CXX='-KPIC'
13654 lt_prog_compiler_static_CXX='-Bstatic'
13655 lt_prog_compiler_wl_CXX='-Qoption ld '
13657 esac
13659 esac
13661 lynxos*)
13663 m88k*)
13665 mvs*)
13666 case $cc_basename in
13667 cxx*)
13668 lt_prog_compiler_pic_CXX='-W c,exportall'
13672 esac
13674 netbsd*)
13676 *qnx* | *nto*)
13677 # QNX uses GNU C++, but need to define -shared option too, otherwise
13678 # it will coredump.
13679 lt_prog_compiler_pic_CXX='-fPIC -shared'
13681 osf3* | osf4* | osf5*)
13682 case $cc_basename in
13683 KCC*)
13684 lt_prog_compiler_wl_CXX='--backend -Wl,'
13686 RCC*)
13687 # Rational C++ 2.4.1
13688 lt_prog_compiler_pic_CXX='-pic'
13690 cxx*)
13691 # Digital/Compaq C++
13692 lt_prog_compiler_wl_CXX='-Wl,'
13693 # Make sure the PIC flag is empty. It appears that all Alpha
13694 # Linux and Compaq Tru64 Unix objects are PIC.
13695 lt_prog_compiler_pic_CXX=
13696 lt_prog_compiler_static_CXX='-non_shared'
13700 esac
13702 psos*)
13704 solaris*)
13705 case $cc_basename in
13706 CC*)
13707 # Sun C++ 4.2, 5.x and Centerline C++
13708 lt_prog_compiler_pic_CXX='-KPIC'
13709 lt_prog_compiler_static_CXX='-Bstatic'
13710 lt_prog_compiler_wl_CXX='-Qoption ld '
13712 gcx*)
13713 # Green Hills C++ Compiler
13714 lt_prog_compiler_pic_CXX='-PIC'
13718 esac
13720 sunos4*)
13721 case $cc_basename in
13722 CC*)
13723 # Sun C++ 4.x
13724 lt_prog_compiler_pic_CXX='-pic'
13725 lt_prog_compiler_static_CXX='-Bstatic'
13727 lcc*)
13728 # Lucid
13729 lt_prog_compiler_pic_CXX='-pic'
13733 esac
13735 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13736 case $cc_basename in
13737 CC*)
13738 lt_prog_compiler_wl_CXX='-Wl,'
13739 lt_prog_compiler_pic_CXX='-KPIC'
13740 lt_prog_compiler_static_CXX='-Bstatic'
13742 esac
13744 tandem*)
13745 case $cc_basename in
13746 NCC*)
13747 # NonStop-UX NCC 3.20
13748 lt_prog_compiler_pic_CXX='-KPIC'
13752 esac
13754 vxworks*)
13757 lt_prog_compiler_can_build_shared_CXX=no
13759 esac
13762 case $host_os in
13763 # For platforms which do not support PIC, -DPIC is meaningless:
13764 *djgpp*)
13765 lt_prog_compiler_pic_CXX=
13768 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13770 esac
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13772 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13777 # Check to make sure the PIC flag actually works.
13779 if test -n "$lt_prog_compiler_pic_CXX"; then
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13781 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13782 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13783 $as_echo_n "(cached) " >&6
13784 else
13785 lt_cv_prog_compiler_pic_works_CXX=no
13786 ac_outfile=conftest.$ac_objext
13787 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13788 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13789 # Insert the option either (1) after the last *FLAGS variable, or
13790 # (2) before a word containing "conftest.", or (3) at the end.
13791 # Note that $ac_compile itself does not contain backslashes and begins
13792 # with a dollar sign (not a hyphen), so the echo should work correctly.
13793 # The option is referenced via a variable to avoid confusing sed.
13794 lt_compile=`echo "$ac_compile" | $SED \
13795 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13797 -e 's:$: $lt_compiler_flag:'`
13798 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13799 (eval "$lt_compile" 2>conftest.err)
13800 ac_status=$?
13801 cat conftest.err >&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 if (exit $ac_status) && test -s "$ac_outfile"; then
13804 # The compiler can only warn and ignore the option if not recognized
13805 # So say no if there are warnings other than the usual output.
13806 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13807 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13808 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13809 lt_cv_prog_compiler_pic_works_CXX=yes
13812 $RM conftest*
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13816 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13818 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13819 case $lt_prog_compiler_pic_CXX in
13820 "" | " "*) ;;
13821 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13822 esac
13823 else
13824 lt_prog_compiler_pic_CXX=
13825 lt_prog_compiler_can_build_shared_CXX=no
13833 # Check to make sure the static flag actually works.
13835 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13837 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13838 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13839 $as_echo_n "(cached) " >&6
13840 else
13841 lt_cv_prog_compiler_static_works_CXX=no
13842 save_LDFLAGS="$LDFLAGS"
13843 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13844 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13845 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13846 # The linker can only warn and ignore the option if not recognized
13847 # So say no if there are warnings
13848 if test -s conftest.err; then
13849 # Append any errors to the config.log.
13850 cat conftest.err 1>&5
13851 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13852 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13853 if diff conftest.exp conftest.er2 >/dev/null; then
13854 lt_cv_prog_compiler_static_works_CXX=yes
13856 else
13857 lt_cv_prog_compiler_static_works_CXX=yes
13860 $RM -r conftest*
13861 LDFLAGS="$save_LDFLAGS"
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13865 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13867 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13869 else
13870 lt_prog_compiler_static_CXX=
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13877 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13878 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13879 $as_echo_n "(cached) " >&6
13880 else
13881 lt_cv_prog_compiler_c_o_CXX=no
13882 $RM -r conftest 2>/dev/null
13883 mkdir conftest
13884 cd conftest
13885 mkdir out
13886 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13888 lt_compiler_flag="-o out/conftest2.$ac_objext"
13889 # Insert the option either (1) after the last *FLAGS variable, or
13890 # (2) before a word containing "conftest.", or (3) at the end.
13891 # Note that $ac_compile itself does not contain backslashes and begins
13892 # with a dollar sign (not a hyphen), so the echo should work correctly.
13893 lt_compile=`echo "$ac_compile" | $SED \
13894 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13896 -e 's:$: $lt_compiler_flag:'`
13897 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13898 (eval "$lt_compile" 2>out/conftest.err)
13899 ac_status=$?
13900 cat out/conftest.err >&5
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13903 then
13904 # The compiler can only warn and ignore the option if not recognized
13905 # So say no if there are warnings
13906 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13907 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13908 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13909 lt_cv_prog_compiler_c_o_CXX=yes
13912 chmod u+w . 2>&5
13913 $RM conftest*
13914 # SGI C++ compiler will create directory out/ii_files/ for
13915 # template instantiation
13916 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13917 $RM out/* && rmdir out
13918 cd ..
13919 $RM -r conftest
13920 $RM conftest*
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13924 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13929 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13930 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13931 $as_echo_n "(cached) " >&6
13932 else
13933 lt_cv_prog_compiler_c_o_CXX=no
13934 $RM -r conftest 2>/dev/null
13935 mkdir conftest
13936 cd conftest
13937 mkdir out
13938 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13940 lt_compiler_flag="-o out/conftest2.$ac_objext"
13941 # Insert the option either (1) after the last *FLAGS variable, or
13942 # (2) before a word containing "conftest.", or (3) at the end.
13943 # Note that $ac_compile itself does not contain backslashes and begins
13944 # with a dollar sign (not a hyphen), so the echo should work correctly.
13945 lt_compile=`echo "$ac_compile" | $SED \
13946 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13947 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13948 -e 's:$: $lt_compiler_flag:'`
13949 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13950 (eval "$lt_compile" 2>out/conftest.err)
13951 ac_status=$?
13952 cat out/conftest.err >&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13955 then
13956 # The compiler can only warn and ignore the option if not recognized
13957 # So say no if there are warnings
13958 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13959 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13960 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13961 lt_cv_prog_compiler_c_o_CXX=yes
13964 chmod u+w . 2>&5
13965 $RM conftest*
13966 # SGI C++ compiler will create directory out/ii_files/ for
13967 # template instantiation
13968 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13969 $RM out/* && rmdir out
13970 cd ..
13971 $RM -r conftest
13972 $RM conftest*
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13976 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13981 hard_links="nottested"
13982 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13983 # do not overwrite the value of need_locks provided by the user
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13985 $as_echo_n "checking if we can lock with hard links... " >&6; }
13986 hard_links=yes
13987 $RM conftest*
13988 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13989 touch conftest.a
13990 ln conftest.a conftest.b 2>&5 || hard_links=no
13991 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13993 $as_echo "$hard_links" >&6; }
13994 if test "$hard_links" = no; then
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13996 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13997 need_locks=warn
13999 else
14000 need_locks=no
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14006 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14008 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14009 case $host_os in
14010 aix[4-9]*)
14011 # If we're using GNU nm, then we don't want the "-C" option.
14012 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14013 # Also, AIX nm treats weak defined symbols like other global defined
14014 # symbols, whereas GNU nm marks them as "W".
14015 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14016 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'
14017 else
14018 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'
14021 pw32*)
14022 export_symbols_cmds_CXX="$ltdll_cmds"
14024 cygwin* | mingw* | cegcc*)
14025 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'
14028 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14030 esac
14031 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14034 $as_echo "$ld_shlibs_CXX" >&6; }
14035 test "$ld_shlibs_CXX" = no && can_build_shared=no
14037 with_gnu_ld_CXX=$with_gnu_ld
14045 # Do we need to explicitly link libc?
14047 case "x$archive_cmds_need_lc_CXX" in
14048 x|xyes)
14049 # Assume -lc should be added
14050 archive_cmds_need_lc_CXX=yes
14052 if test "$enable_shared" = yes && test "$GCC" = yes; then
14053 case $archive_cmds_CXX in
14054 *'~'*)
14055 # FIXME: we may have to deal with multi-command sequences.
14057 '$CC '*)
14058 # Test whether the compiler implicitly links with -lc since on some
14059 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14060 # to ld, don't add -lc before -lgcc.
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14062 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14063 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14064 $as_echo_n "(cached) " >&6
14065 else
14066 $RM conftest*
14067 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14070 (eval $ac_compile) 2>&5
14071 ac_status=$?
14072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14073 test $ac_status = 0; } 2>conftest.err; then
14074 soname=conftest
14075 lib=conftest
14076 libobjs=conftest.$ac_objext
14077 deplibs=
14078 wl=$lt_prog_compiler_wl_CXX
14079 pic_flag=$lt_prog_compiler_pic_CXX
14080 compiler_flags=-v
14081 linker_flags=-v
14082 verstring=
14083 output_objdir=.
14084 libname=conftest
14085 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14086 allow_undefined_flag_CXX=
14087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14088 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14089 ac_status=$?
14090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14091 test $ac_status = 0; }
14092 then
14093 lt_cv_archive_cmds_need_lc_CXX=no
14094 else
14095 lt_cv_archive_cmds_need_lc_CXX=yes
14097 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14098 else
14099 cat conftest.err 1>&5
14101 $RM conftest*
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14105 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14106 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14108 esac
14111 esac
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14177 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14179 library_names_spec=
14180 libname_spec='lib$name'
14181 soname_spec=
14182 shrext_cmds=".so"
14183 postinstall_cmds=
14184 postuninstall_cmds=
14185 finish_cmds=
14186 finish_eval=
14187 shlibpath_var=
14188 shlibpath_overrides_runpath=unknown
14189 version_type=none
14190 dynamic_linker="$host_os ld.so"
14191 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14192 need_lib_prefix=unknown
14193 hardcode_into_libs=no
14195 # when you set need_version to no, make sure it does not cause -set_version
14196 # flags to be left without arguments
14197 need_version=unknown
14199 case $host_os in
14200 aix3*)
14201 version_type=linux
14202 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14203 shlibpath_var=LIBPATH
14205 # AIX 3 has no versioning support, so we append a major version to the name.
14206 soname_spec='${libname}${release}${shared_ext}$major'
14209 aix[4-9]*)
14210 version_type=linux
14211 need_lib_prefix=no
14212 need_version=no
14213 hardcode_into_libs=yes
14214 if test "$host_cpu" = ia64; then
14215 # AIX 5 supports IA64
14216 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14217 shlibpath_var=LD_LIBRARY_PATH
14218 else
14219 # With GCC up to 2.95.x, collect2 would create an import file
14220 # for dependence libraries. The import file would start with
14221 # the line `#! .'. This would cause the generated library to
14222 # depend on `.', always an invalid library. This was fixed in
14223 # development snapshots of GCC prior to 3.0.
14224 case $host_os in
14225 aix4 | aix4.[01] | aix4.[01].*)
14226 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14227 echo ' yes '
14228 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14230 else
14231 can_build_shared=no
14234 esac
14235 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14236 # soname into executable. Probably we can add versioning support to
14237 # collect2, so additional links can be useful in future.
14238 if test "$aix_use_runtimelinking" = yes; then
14239 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14240 # instead of lib<name>.a to let people know that these are not
14241 # typical AIX shared libraries.
14242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14243 else
14244 # We preserve .a as extension for shared libraries through AIX4.2
14245 # and later when we are not doing run time linking.
14246 library_names_spec='${libname}${release}.a $libname.a'
14247 soname_spec='${libname}${release}${shared_ext}$major'
14249 shlibpath_var=LIBPATH
14253 amigaos*)
14254 case $host_cpu in
14255 powerpc)
14256 # Since July 2007 AmigaOS4 officially supports .so libraries.
14257 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14260 m68k)
14261 library_names_spec='$libname.ixlibrary $libname.a'
14262 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14263 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'
14265 esac
14268 beos*)
14269 library_names_spec='${libname}${shared_ext}'
14270 dynamic_linker="$host_os ld.so"
14271 shlibpath_var=LIBRARY_PATH
14274 bsdi[45]*)
14275 version_type=linux
14276 need_version=no
14277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14278 soname_spec='${libname}${release}${shared_ext}$major'
14279 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14280 shlibpath_var=LD_LIBRARY_PATH
14281 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14282 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14283 # the default ld.so.conf also contains /usr/contrib/lib and
14284 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14285 # libtool to hard-code these into programs
14288 cygwin* | mingw* | pw32* | cegcc*)
14289 version_type=windows
14290 shrext_cmds=".dll"
14291 need_version=no
14292 need_lib_prefix=no
14294 case $GCC,$host_os in
14295 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14296 library_names_spec='$libname.dll.a'
14297 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14298 postinstall_cmds='base_file=`basename \${file}`~
14299 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14300 dldir=$destdir/`dirname \$dlpath`~
14301 test -d \$dldir || mkdir -p \$dldir~
14302 $install_prog $dir/$dlname \$dldir/$dlname~
14303 chmod a+x \$dldir/$dlname~
14304 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14305 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14307 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14308 dlpath=$dir/\$dldll~
14309 $RM \$dlpath'
14310 shlibpath_overrides_runpath=yes
14312 case $host_os in
14313 cygwin*)
14314 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14315 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14318 mingw* | cegcc*)
14319 # MinGW DLLs use traditional 'lib' prefix
14320 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14322 pw32*)
14323 # pw32 DLLs use 'pw' prefix rather than 'lib'
14324 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14326 esac
14330 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14332 esac
14333 dynamic_linker='Win32 ld.exe'
14334 # FIXME: first we should search . and the directory the executable is in
14335 shlibpath_var=PATH
14338 darwin* | rhapsody*)
14339 dynamic_linker="$host_os dyld"
14340 version_type=darwin
14341 need_lib_prefix=no
14342 need_version=no
14343 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14344 soname_spec='${libname}${release}${major}$shared_ext'
14345 shlibpath_overrides_runpath=yes
14346 shlibpath_var=DYLD_LIBRARY_PATH
14347 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14349 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14352 dgux*)
14353 version_type=linux
14354 need_lib_prefix=no
14355 need_version=no
14356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14357 soname_spec='${libname}${release}${shared_ext}$major'
14358 shlibpath_var=LD_LIBRARY_PATH
14361 freebsd* | dragonfly*)
14362 # DragonFly does not have aout. When/if they implement a new
14363 # versioning mechanism, adjust this.
14364 if test -x /usr/bin/objformat; then
14365 objformat=`/usr/bin/objformat`
14366 else
14367 case $host_os in
14368 freebsd[23].*) objformat=aout ;;
14369 *) objformat=elf ;;
14370 esac
14372 version_type=freebsd-$objformat
14373 case $version_type in
14374 freebsd-elf*)
14375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14376 need_version=no
14377 need_lib_prefix=no
14379 freebsd-*)
14380 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14381 need_version=yes
14383 esac
14384 shlibpath_var=LD_LIBRARY_PATH
14385 case $host_os in
14386 freebsd2.*)
14387 shlibpath_overrides_runpath=yes
14389 freebsd3.[01]* | freebsdelf3.[01]*)
14390 shlibpath_overrides_runpath=yes
14391 hardcode_into_libs=yes
14393 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14394 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14395 shlibpath_overrides_runpath=no
14396 hardcode_into_libs=yes
14398 *) # from 4.6 on, and DragonFly
14399 shlibpath_overrides_runpath=yes
14400 hardcode_into_libs=yes
14402 esac
14405 gnu*)
14406 version_type=linux
14407 need_lib_prefix=no
14408 need_version=no
14409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14410 soname_spec='${libname}${release}${shared_ext}$major'
14411 shlibpath_var=LD_LIBRARY_PATH
14412 hardcode_into_libs=yes
14415 haiku*)
14416 version_type=linux
14417 need_lib_prefix=no
14418 need_version=no
14419 dynamic_linker="$host_os runtime_loader"
14420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14421 soname_spec='${libname}${release}${shared_ext}$major'
14422 shlibpath_var=LIBRARY_PATH
14423 shlibpath_overrides_runpath=yes
14424 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14425 hardcode_into_libs=yes
14428 hpux9* | hpux10* | hpux11*)
14429 # Give a soname corresponding to the major version so that dld.sl refuses to
14430 # link against other versions.
14431 version_type=sunos
14432 need_lib_prefix=no
14433 need_version=no
14434 case $host_cpu in
14435 ia64*)
14436 shrext_cmds='.so'
14437 hardcode_into_libs=yes
14438 dynamic_linker="$host_os dld.so"
14439 shlibpath_var=LD_LIBRARY_PATH
14440 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14442 soname_spec='${libname}${release}${shared_ext}$major'
14443 if test "X$HPUX_IA64_MODE" = X32; then
14444 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14445 else
14446 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14448 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14450 hppa*64*)
14451 shrext_cmds='.sl'
14452 hardcode_into_libs=yes
14453 dynamic_linker="$host_os dld.sl"
14454 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14455 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14457 soname_spec='${libname}${release}${shared_ext}$major'
14458 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14459 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14462 shrext_cmds='.sl'
14463 dynamic_linker="$host_os dld.sl"
14464 shlibpath_var=SHLIB_PATH
14465 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14467 soname_spec='${libname}${release}${shared_ext}$major'
14469 esac
14470 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14471 postinstall_cmds='chmod 555 $lib'
14472 # or fails outright, so override atomically:
14473 install_override_mode=555
14476 interix[3-9]*)
14477 version_type=linux
14478 need_lib_prefix=no
14479 need_version=no
14480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14481 soname_spec='${libname}${release}${shared_ext}$major'
14482 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14483 shlibpath_var=LD_LIBRARY_PATH
14484 shlibpath_overrides_runpath=no
14485 hardcode_into_libs=yes
14488 irix5* | irix6* | nonstopux*)
14489 case $host_os in
14490 nonstopux*) version_type=nonstopux ;;
14492 if test "$lt_cv_prog_gnu_ld" = yes; then
14493 version_type=linux
14494 else
14495 version_type=irix
14496 fi ;;
14497 esac
14498 need_lib_prefix=no
14499 need_version=no
14500 soname_spec='${libname}${release}${shared_ext}$major'
14501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14502 case $host_os in
14503 irix5* | nonstopux*)
14504 libsuff= shlibsuff=
14507 case $LD in # libtool.m4 will add one of these switches to LD
14508 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14509 libsuff= shlibsuff= libmagic=32-bit;;
14510 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14511 libsuff=32 shlibsuff=N32 libmagic=N32;;
14512 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14513 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14514 *) libsuff= shlibsuff= libmagic=never-match;;
14515 esac
14517 esac
14518 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14519 shlibpath_overrides_runpath=no
14520 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14521 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14522 hardcode_into_libs=yes
14525 # No shared lib support for Linux oldld, aout, or coff.
14526 linux*oldld* | linux*aout* | linux*coff*)
14527 dynamic_linker=no
14530 # This must be Linux ELF.
14532 # uclinux* changes (here and below) have been submitted to the libtool
14533 # project, but have not yet been accepted: they are GCC-local changes
14534 # for the time being. (See
14535 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14536 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14537 version_type=linux
14538 need_lib_prefix=no
14539 need_version=no
14540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14541 soname_spec='${libname}${release}${shared_ext}$major'
14542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14543 shlibpath_var=LD_LIBRARY_PATH
14544 shlibpath_overrides_runpath=no
14546 # Some binutils ld are patched to set DT_RUNPATH
14547 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14548 $as_echo_n "(cached) " >&6
14549 else
14550 lt_cv_shlibpath_overrides_runpath=no
14551 save_LDFLAGS=$LDFLAGS
14552 save_libdir=$libdir
14553 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14554 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14556 /* end confdefs.h. */
14559 main ()
14563 return 0;
14565 _ACEOF
14566 if ac_fn_cxx_try_link "$LINENO"; then :
14567 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14568 lt_cv_shlibpath_overrides_runpath=yes
14571 rm -f core conftest.err conftest.$ac_objext \
14572 conftest$ac_exeext conftest.$ac_ext
14573 LDFLAGS=$save_LDFLAGS
14574 libdir=$save_libdir
14578 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14580 # This implies no fast_install, which is unacceptable.
14581 # Some rework will be needed to allow for fast_install
14582 # before this can be enabled.
14583 hardcode_into_libs=yes
14585 # Append ld.so.conf contents to the search path
14586 if test -f /etc/ld.so.conf; then
14587 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' ' '`
14588 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14591 # We used to test for /lib/ld.so.1 and disable shared libraries on
14592 # powerpc, because MkLinux only supported shared libraries with the
14593 # GNU dynamic linker. Since this was broken with cross compilers,
14594 # most powerpc-linux boxes support dynamic linking these days and
14595 # people can always --disable-shared, the test was removed, and we
14596 # assume the GNU/Linux dynamic linker is in use.
14597 dynamic_linker='GNU/Linux ld.so'
14600 netbsd*)
14601 version_type=sunos
14602 need_lib_prefix=no
14603 need_version=no
14604 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14606 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14607 dynamic_linker='NetBSD (a.out) ld.so'
14608 else
14609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14610 soname_spec='${libname}${release}${shared_ext}$major'
14611 dynamic_linker='NetBSD ld.elf_so'
14613 shlibpath_var=LD_LIBRARY_PATH
14614 shlibpath_overrides_runpath=yes
14615 hardcode_into_libs=yes
14618 newsos6)
14619 version_type=linux
14620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14621 shlibpath_var=LD_LIBRARY_PATH
14622 shlibpath_overrides_runpath=yes
14625 *nto* | *qnx*)
14626 version_type=qnx
14627 need_lib_prefix=no
14628 need_version=no
14629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14630 soname_spec='${libname}${release}${shared_ext}$major'
14631 shlibpath_var=LD_LIBRARY_PATH
14632 shlibpath_overrides_runpath=no
14633 hardcode_into_libs=yes
14634 dynamic_linker='ldqnx.so'
14637 openbsd*)
14638 version_type=sunos
14639 sys_lib_dlsearch_path_spec="/usr/lib"
14640 need_lib_prefix=no
14641 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14642 case $host_os in
14643 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14644 *) need_version=no ;;
14645 esac
14646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14647 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14648 shlibpath_var=LD_LIBRARY_PATH
14649 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14650 case $host_os in
14651 openbsd2.[89] | openbsd2.[89].*)
14652 shlibpath_overrides_runpath=no
14655 shlibpath_overrides_runpath=yes
14657 esac
14658 else
14659 shlibpath_overrides_runpath=yes
14663 os2*)
14664 libname_spec='$name'
14665 shrext_cmds=".dll"
14666 need_lib_prefix=no
14667 library_names_spec='$libname${shared_ext} $libname.a'
14668 dynamic_linker='OS/2 ld.exe'
14669 shlibpath_var=LIBPATH
14672 osf3* | osf4* | osf5*)
14673 version_type=osf
14674 need_lib_prefix=no
14675 need_version=no
14676 soname_spec='${libname}${release}${shared_ext}$major'
14677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14678 shlibpath_var=LD_LIBRARY_PATH
14679 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14680 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14683 rdos*)
14684 dynamic_linker=no
14687 solaris*)
14688 version_type=linux
14689 need_lib_prefix=no
14690 need_version=no
14691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14692 soname_spec='${libname}${release}${shared_ext}$major'
14693 shlibpath_var=LD_LIBRARY_PATH
14694 shlibpath_overrides_runpath=yes
14695 hardcode_into_libs=yes
14696 # ldd complains unless libraries are executable
14697 postinstall_cmds='chmod +x $lib'
14700 sunos4*)
14701 version_type=sunos
14702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14703 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14704 shlibpath_var=LD_LIBRARY_PATH
14705 shlibpath_overrides_runpath=yes
14706 if test "$with_gnu_ld" = yes; then
14707 need_lib_prefix=no
14709 need_version=yes
14712 sysv4 | sysv4.3*)
14713 version_type=linux
14714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14715 soname_spec='${libname}${release}${shared_ext}$major'
14716 shlibpath_var=LD_LIBRARY_PATH
14717 case $host_vendor in
14718 sni)
14719 shlibpath_overrides_runpath=no
14720 need_lib_prefix=no
14721 runpath_var=LD_RUN_PATH
14723 siemens)
14724 need_lib_prefix=no
14726 motorola)
14727 need_lib_prefix=no
14728 need_version=no
14729 shlibpath_overrides_runpath=no
14730 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14732 esac
14735 sysv4*MP*)
14736 if test -d /usr/nec ;then
14737 version_type=linux
14738 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14739 soname_spec='$libname${shared_ext}.$major'
14740 shlibpath_var=LD_LIBRARY_PATH
14744 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14745 version_type=freebsd-elf
14746 need_lib_prefix=no
14747 need_version=no
14748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14749 soname_spec='${libname}${release}${shared_ext}$major'
14750 shlibpath_var=LD_LIBRARY_PATH
14751 shlibpath_overrides_runpath=yes
14752 hardcode_into_libs=yes
14753 if test "$with_gnu_ld" = yes; then
14754 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14755 else
14756 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14757 case $host_os in
14758 sco3.2v5*)
14759 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14761 esac
14763 sys_lib_dlsearch_path_spec='/usr/lib'
14766 tpf*)
14767 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14768 version_type=linux
14769 need_lib_prefix=no
14770 need_version=no
14771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14772 shlibpath_var=LD_LIBRARY_PATH
14773 shlibpath_overrides_runpath=no
14774 hardcode_into_libs=yes
14777 uts4*)
14778 version_type=linux
14779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14780 soname_spec='${libname}${release}${shared_ext}$major'
14781 shlibpath_var=LD_LIBRARY_PATH
14785 dynamic_linker=no
14787 esac
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14789 $as_echo "$dynamic_linker" >&6; }
14790 test "$dynamic_linker" = no && can_build_shared=no
14792 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14793 if test "$GCC" = yes; then
14794 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14797 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14798 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14800 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14801 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14842 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14843 hardcode_action_CXX=
14844 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14845 test -n "$runpath_var_CXX" ||
14846 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14848 # We can hardcode non-existent directories.
14849 if test "$hardcode_direct_CXX" != no &&
14850 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14851 # have to relink, otherwise we might link with an installed library
14852 # when we should be linking with a yet-to-be-installed one
14853 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14854 test "$hardcode_minus_L_CXX" != no; then
14855 # Linking always hardcodes the temporary library directory.
14856 hardcode_action_CXX=relink
14857 else
14858 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14859 hardcode_action_CXX=immediate
14861 else
14862 # We cannot hardcode anything, or else we can only hardcode existing
14863 # directories.
14864 hardcode_action_CXX=unsupported
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14867 $as_echo "$hardcode_action_CXX" >&6; }
14869 if test "$hardcode_action_CXX" = relink ||
14870 test "$inherit_rpath_CXX" = yes; then
14871 # Fast installation is not supported
14872 enable_fast_install=no
14873 elif test "$shlibpath_overrides_runpath" = yes ||
14874 test "$enable_shared" = no; then
14875 # Fast installation is not necessary
14876 enable_fast_install=needless
14885 fi # test -n "$compiler"
14887 CC=$lt_save_CC
14888 LDCXX=$LD
14889 LD=$lt_save_LD
14890 GCC=$lt_save_GCC
14891 with_gnu_ld=$lt_save_with_gnu_ld
14892 lt_cv_path_LDCXX=$lt_cv_path_LD
14893 lt_cv_path_LD=$lt_save_path_LD
14894 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14895 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14896 fi # test "$_lt_caught_CXX_error" != yes
14898 ac_ext=c
14899 ac_cpp='$CPP $CPPFLAGS'
14900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14916 ac_config_commands="$ac_config_commands libtool"
14921 # Only expand once:
14925 # Test for 64-bit build.
14926 # The cast to long int works around a bug in the HP C Compiler
14927 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14928 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14929 # This bug is HP SR number 8606223364.
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14931 $as_echo_n "checking size of size_t... " >&6; }
14932 if ${ac_cv_sizeof_size_t+:} false; then :
14933 $as_echo_n "(cached) " >&6
14934 else
14935 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
14937 else
14938 if test "$ac_cv_type_size_t" = yes; then
14939 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14941 as_fn_error 77 "cannot compute sizeof (size_t)
14942 See \`config.log' for more details" "$LINENO" 5; }
14943 else
14944 ac_cv_sizeof_size_t=0
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14950 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14954 cat >>confdefs.h <<_ACEOF
14955 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14956 _ACEOF
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14962 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14963 # Check whether --enable-maintainer-mode was given.
14964 if test "${enable_maintainer_mode+set}" = set; then :
14965 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14966 else
14967 USE_MAINTAINER_MODE=no
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14971 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14972 if test $USE_MAINTAINER_MODE = yes; then
14973 MAINTAINER_MODE_TRUE=
14974 MAINTAINER_MODE_FALSE='#'
14975 else
14976 MAINTAINER_MODE_TRUE='#'
14977 MAINTAINER_MODE_FALSE=
14980 MAINT=$MAINTAINER_MODE_TRUE
14984 for ac_header in sys/mman.h
14985 do :
14986 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
14987 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
14988 cat >>confdefs.h <<_ACEOF
14989 #define HAVE_SYS_MMAN_H 1
14990 _ACEOF
14994 done
14996 for ac_func in mmap mkostemp
14997 do :
14998 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14999 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15000 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15001 cat >>confdefs.h <<_ACEOF
15002 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15003 _ACEOF
15006 done
15009 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15010 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
15011 libffi_header_sys_mman_h=yes
15012 else
15013 libffi_header_sys_mman_h=no
15017 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
15018 if test "x$ac_cv_func_mmap" = xyes; then :
15019 libffi_func_mmap=yes
15020 else
15021 libffi_func_mmap=no
15024 if test "$libffi_header_sys_mman_h" != yes \
15025 || test "$libffi_func_mmap" != yes; then
15026 ac_cv_func_mmap_file=no
15027 ac_cv_func_mmap_dev_zero=no
15028 ac_cv_func_mmap_anon=no
15029 else
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
15031 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
15032 if ${ac_cv_func_mmap_file+:} false; then :
15033 $as_echo_n "(cached) " >&6
15034 else
15035 # Add a system to this blacklist if
15036 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
15037 # memory area containing the same data that you'd get if you applied
15038 # read() to the same fd. The only system known to have a problem here
15039 # is VMS, where text files have record structure.
15040 case "$host_os" in
15041 vms* | ultrix*)
15042 ac_cv_func_mmap_file=no ;;
15044 ac_cv_func_mmap_file=yes;;
15045 esac
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
15048 $as_echo "$ac_cv_func_mmap_file" >&6; }
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
15050 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
15051 if ${ac_cv_func_mmap_dev_zero+:} false; then :
15052 $as_echo_n "(cached) " >&6
15053 else
15054 # Add a system to this blacklist if it has mmap() but /dev/zero
15055 # does not exist, or if mmapping /dev/zero does not give anonymous
15056 # zeroed pages with both the following properties:
15057 # 1. If you map N consecutive pages in with one call, and then
15058 # unmap any subset of those pages, the pages that were not
15059 # explicitly unmapped remain accessible.
15060 # 2. If you map two adjacent blocks of memory and then unmap them
15061 # both at once, they must both go away.
15062 # Systems known to be in this category are Windows (all variants),
15063 # VMS, and Darwin.
15064 case "$host_os" in
15065 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
15066 ac_cv_func_mmap_dev_zero=no ;;
15068 ac_cv_func_mmap_dev_zero=yes;;
15069 esac
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
15072 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
15074 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
15076 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
15077 if ${ac_cv_decl_map_anon+:} false; then :
15078 $as_echo_n "(cached) " >&6
15079 else
15080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15081 /* end confdefs.h. */
15082 #include <sys/types.h>
15083 #include <sys/mman.h>
15084 #include <unistd.h>
15086 #ifndef MAP_ANONYMOUS
15087 #define MAP_ANONYMOUS MAP_ANON
15088 #endif
15091 main ()
15093 int n = MAP_ANONYMOUS;
15095 return 0;
15097 _ACEOF
15098 if ac_fn_c_try_compile "$LINENO"; then :
15099 ac_cv_decl_map_anon=yes
15100 else
15101 ac_cv_decl_map_anon=no
15103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
15106 $as_echo "$ac_cv_decl_map_anon" >&6; }
15108 if test $ac_cv_decl_map_anon = no; then
15109 ac_cv_func_mmap_anon=no
15110 else
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
15112 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
15113 if ${ac_cv_func_mmap_anon+:} false; then :
15114 $as_echo_n "(cached) " >&6
15115 else
15116 # Add a system to this blacklist if it has mmap() and MAP_ANON or
15117 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
15118 # doesn't give anonymous zeroed pages with the same properties listed
15119 # above for use of /dev/zero.
15120 # Systems known to be in this category are Windows, VMS, and SCO Unix.
15121 case "$host_os" in
15122 vms* | cygwin* | pe | mingw* | sco* | udk* )
15123 ac_cv_func_mmap_anon=no ;;
15125 ac_cv_func_mmap_anon=yes;;
15126 esac
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
15129 $as_echo "$ac_cv_func_mmap_anon" >&6; }
15133 if test $ac_cv_func_mmap_file = yes; then
15135 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
15138 if test $ac_cv_func_mmap_dev_zero = yes; then
15140 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
15143 if test $ac_cv_func_mmap_anon = yes; then
15145 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
15150 if test -d $srcdir/testsuite; then
15151 TESTSUBDIR_TRUE=
15152 TESTSUBDIR_FALSE='#'
15153 else
15154 TESTSUBDIR_TRUE='#'
15155 TESTSUBDIR_FALSE=
15159 TARGETDIR="unknown"
15160 HAVE_LONG_DOUBLE_VARIANT=0
15162 . ${srcdir}/configure.host
15164 if test -n "${UNSUPPORTED}"; then
15165 as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15172 $as_echo_n "checking for ANSI C header files... " >&6; }
15173 if ${ac_cv_header_stdc+:} false; then :
15174 $as_echo_n "(cached) " >&6
15175 else
15176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15177 /* end confdefs.h. */
15178 #include <stdlib.h>
15179 #include <stdarg.h>
15180 #include <string.h>
15181 #include <float.h>
15184 main ()
15188 return 0;
15190 _ACEOF
15191 if ac_fn_c_try_compile "$LINENO"; then :
15192 ac_cv_header_stdc=yes
15193 else
15194 ac_cv_header_stdc=no
15196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15198 if test $ac_cv_header_stdc = yes; then
15199 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15201 /* end confdefs.h. */
15202 #include <string.h>
15204 _ACEOF
15205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15206 $EGREP "memchr" >/dev/null 2>&1; then :
15208 else
15209 ac_cv_header_stdc=no
15211 rm -f conftest*
15215 if test $ac_cv_header_stdc = yes; then
15216 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15218 /* end confdefs.h. */
15219 #include <stdlib.h>
15221 _ACEOF
15222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15223 $EGREP "free" >/dev/null 2>&1; then :
15225 else
15226 ac_cv_header_stdc=no
15228 rm -f conftest*
15232 if test $ac_cv_header_stdc = yes; then
15233 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15234 if test "$cross_compiling" = yes; then :
15236 else
15237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15238 /* end confdefs.h. */
15239 #include <ctype.h>
15240 #include <stdlib.h>
15241 #if ((' ' & 0x0FF) == 0x020)
15242 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15243 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15244 #else
15245 # define ISLOWER(c) \
15246 (('a' <= (c) && (c) <= 'i') \
15247 || ('j' <= (c) && (c) <= 'r') \
15248 || ('s' <= (c) && (c) <= 'z'))
15249 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15250 #endif
15252 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15254 main ()
15256 int i;
15257 for (i = 0; i < 256; i++)
15258 if (XOR (islower (i), ISLOWER (i))
15259 || toupper (i) != TOUPPER (i))
15260 return 2;
15261 return 0;
15263 _ACEOF
15264 if ac_fn_c_try_run "$LINENO"; then :
15266 else
15267 ac_cv_header_stdc=no
15269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15270 conftest.$ac_objext conftest.beam conftest.$ac_ext
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15276 $as_echo "$ac_cv_header_stdc" >&6; }
15277 if test $ac_cv_header_stdc = yes; then
15279 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15283 for ac_func in memcpy
15284 do :
15285 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
15286 if test "x$ac_cv_func_memcpy" = xyes; then :
15287 cat >>confdefs.h <<_ACEOF
15288 #define HAVE_MEMCPY 1
15289 _ACEOF
15292 done
15294 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15295 if test "x$ac_cv_type_size_t" = xyes; then :
15297 else
15299 cat >>confdefs.h <<_ACEOF
15300 #define size_t unsigned int
15301 _ACEOF
15305 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15306 # for constant arguments. Useless!
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15308 $as_echo_n "checking for working alloca.h... " >&6; }
15309 if ${ac_cv_working_alloca_h+:} false; then :
15310 $as_echo_n "(cached) " >&6
15311 else
15312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15313 /* end confdefs.h. */
15314 #include <alloca.h>
15316 main ()
15318 char *p = (char *) alloca (2 * sizeof (int));
15319 if (p) return 0;
15321 return 0;
15323 _ACEOF
15324 if ac_fn_c_try_link "$LINENO"; then :
15325 ac_cv_working_alloca_h=yes
15326 else
15327 ac_cv_working_alloca_h=no
15329 rm -f core conftest.err conftest.$ac_objext \
15330 conftest$ac_exeext conftest.$ac_ext
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15333 $as_echo "$ac_cv_working_alloca_h" >&6; }
15334 if test $ac_cv_working_alloca_h = yes; then
15336 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15341 $as_echo_n "checking for alloca... " >&6; }
15342 if ${ac_cv_func_alloca_works+:} false; then :
15343 $as_echo_n "(cached) " >&6
15344 else
15345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15346 /* end confdefs.h. */
15347 #ifdef __GNUC__
15348 # define alloca __builtin_alloca
15349 #else
15350 # ifdef _MSC_VER
15351 # include <malloc.h>
15352 # define alloca _alloca
15353 # else
15354 # ifdef HAVE_ALLOCA_H
15355 # include <alloca.h>
15356 # else
15357 # ifdef _AIX
15358 #pragma alloca
15359 # else
15360 # ifndef alloca /* predefined by HP cc +Olibcalls */
15361 void *alloca (size_t);
15362 # endif
15363 # endif
15364 # endif
15365 # endif
15366 #endif
15369 main ()
15371 char *p = (char *) alloca (1);
15372 if (p) return 0;
15374 return 0;
15376 _ACEOF
15377 if ac_fn_c_try_link "$LINENO"; then :
15378 ac_cv_func_alloca_works=yes
15379 else
15380 ac_cv_func_alloca_works=no
15382 rm -f core conftest.err conftest.$ac_objext \
15383 conftest$ac_exeext conftest.$ac_ext
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15386 $as_echo "$ac_cv_func_alloca_works" >&6; }
15388 if test $ac_cv_func_alloca_works = yes; then
15390 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15392 else
15393 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15394 # that cause trouble. Some versions do not even contain alloca or
15395 # contain a buggy version. If you still want to use their alloca,
15396 # use ar to extract alloca.o from them instead of compiling alloca.c.
15398 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15400 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15404 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15405 if ${ac_cv_os_cray+:} false; then :
15406 $as_echo_n "(cached) " >&6
15407 else
15408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15409 /* end confdefs.h. */
15410 #if defined CRAY && ! defined CRAY2
15411 webecray
15412 #else
15413 wenotbecray
15414 #endif
15416 _ACEOF
15417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15418 $EGREP "webecray" >/dev/null 2>&1; then :
15419 ac_cv_os_cray=yes
15420 else
15421 ac_cv_os_cray=no
15423 rm -f conftest*
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15427 $as_echo "$ac_cv_os_cray" >&6; }
15428 if test $ac_cv_os_cray = yes; then
15429 for ac_func in _getb67 GETB67 getb67; do
15430 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15431 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15432 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15434 cat >>confdefs.h <<_ACEOF
15435 #define CRAY_STACKSEG_END $ac_func
15436 _ACEOF
15438 break
15441 done
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15445 $as_echo_n "checking stack direction for C alloca... " >&6; }
15446 if ${ac_cv_c_stack_direction+:} false; then :
15447 $as_echo_n "(cached) " >&6
15448 else
15449 if test "$cross_compiling" = yes; then :
15450 ac_cv_c_stack_direction=0
15451 else
15452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15453 /* end confdefs.h. */
15454 $ac_includes_default
15456 find_stack_direction (int *addr, int depth)
15458 int dir, dummy = 0;
15459 if (! addr)
15460 addr = &dummy;
15461 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15462 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15463 return dir + dummy;
15467 main (int argc, char **argv)
15469 return find_stack_direction (0, argc + !argv + 20) < 0;
15471 _ACEOF
15472 if ac_fn_c_try_run "$LINENO"; then :
15473 ac_cv_c_stack_direction=1
15474 else
15475 ac_cv_c_stack_direction=-1
15477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15478 conftest.$ac_objext conftest.beam conftest.$ac_ext
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15483 $as_echo "$ac_cv_c_stack_direction" >&6; }
15484 cat >>confdefs.h <<_ACEOF
15485 #define STACK_DIRECTION $ac_cv_c_stack_direction
15486 _ACEOF
15492 # The cast to long int works around a bug in the HP C Compiler
15493 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15494 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15495 # This bug is HP SR number 8606223364.
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
15497 $as_echo_n "checking size of double... " >&6; }
15498 if ${ac_cv_sizeof_double+:} false; then :
15499 $as_echo_n "(cached) " >&6
15500 else
15501 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
15503 else
15504 if test "$ac_cv_type_double" = yes; then
15505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15507 as_fn_error 77 "cannot compute sizeof (double)
15508 See \`config.log' for more details" "$LINENO" 5; }
15509 else
15510 ac_cv_sizeof_double=0
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
15516 $as_echo "$ac_cv_sizeof_double" >&6; }
15520 cat >>confdefs.h <<_ACEOF
15521 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
15522 _ACEOF
15525 # The cast to long int works around a bug in the HP C Compiler
15526 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15527 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15528 # This bug is HP SR number 8606223364.
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
15530 $as_echo_n "checking size of long double... " >&6; }
15531 if ${ac_cv_sizeof_long_double+:} false; then :
15532 $as_echo_n "(cached) " >&6
15533 else
15534 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
15536 else
15537 if test "$ac_cv_type_long_double" = yes; then
15538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15540 as_fn_error 77 "cannot compute sizeof (long double)
15541 See \`config.log' for more details" "$LINENO" 5; }
15542 else
15543 ac_cv_sizeof_long_double=0
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
15549 $as_echo "$ac_cv_sizeof_long_double" >&6; }
15553 cat >>confdefs.h <<_ACEOF
15554 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
15555 _ACEOF
15559 # Also AC_SUBST this variable for ffi.h.
15560 if test -z "$HAVE_LONG_DOUBLE"; then
15561 HAVE_LONG_DOUBLE=0
15562 if test $ac_cv_sizeof_long_double != 0; then
15563 if test $HAVE_LONG_DOUBLE_VARIANT != 0; then
15565 $as_echo "#define HAVE_LONG_DOUBLE_VARIANT 1" >>confdefs.h
15567 HAVE_LONG_DOUBLE=1
15568 else
15569 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
15570 HAVE_LONG_DOUBLE=1
15572 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15582 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15583 if ${ac_cv_c_bigendian+:} false; then :
15584 $as_echo_n "(cached) " >&6
15585 else
15586 ac_cv_c_bigendian=unknown
15587 # See if we're dealing with a universal compiler.
15588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15589 /* end confdefs.h. */
15590 #ifndef __APPLE_CC__
15591 not a universal capable compiler
15592 #endif
15593 typedef int dummy;
15595 _ACEOF
15596 if ac_fn_c_try_compile "$LINENO"; then :
15598 # Check for potential -arch flags. It is not universal unless
15599 # there are at least two -arch flags with different values.
15600 ac_arch=
15601 ac_prev=
15602 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15603 if test -n "$ac_prev"; then
15604 case $ac_word in
15605 i?86 | x86_64 | ppc | ppc64)
15606 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15607 ac_arch=$ac_word
15608 else
15609 ac_cv_c_bigendian=universal
15610 break
15613 esac
15614 ac_prev=
15615 elif test "x$ac_word" = "x-arch"; then
15616 ac_prev=arch
15618 done
15620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15621 if test $ac_cv_c_bigendian = unknown; then
15622 # See if sys/param.h defines the BYTE_ORDER macro.
15623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15624 /* end confdefs.h. */
15625 #include <sys/types.h>
15626 #include <sys/param.h>
15629 main ()
15631 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15632 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15633 && LITTLE_ENDIAN)
15634 bogus endian macros
15635 #endif
15638 return 0;
15640 _ACEOF
15641 if ac_fn_c_try_compile "$LINENO"; then :
15642 # It does; now see whether it defined to BIG_ENDIAN or not.
15643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15644 /* end confdefs.h. */
15645 #include <sys/types.h>
15646 #include <sys/param.h>
15649 main ()
15651 #if BYTE_ORDER != BIG_ENDIAN
15652 not big endian
15653 #endif
15656 return 0;
15658 _ACEOF
15659 if ac_fn_c_try_compile "$LINENO"; then :
15660 ac_cv_c_bigendian=yes
15661 else
15662 ac_cv_c_bigendian=no
15664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15668 if test $ac_cv_c_bigendian = unknown; then
15669 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15671 /* end confdefs.h. */
15672 #include <limits.h>
15675 main ()
15677 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15678 bogus endian macros
15679 #endif
15682 return 0;
15684 _ACEOF
15685 if ac_fn_c_try_compile "$LINENO"; then :
15686 # It does; now see whether it defined to _BIG_ENDIAN or not.
15687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15688 /* end confdefs.h. */
15689 #include <limits.h>
15692 main ()
15694 #ifndef _BIG_ENDIAN
15695 not big endian
15696 #endif
15699 return 0;
15701 _ACEOF
15702 if ac_fn_c_try_compile "$LINENO"; then :
15703 ac_cv_c_bigendian=yes
15704 else
15705 ac_cv_c_bigendian=no
15707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15711 if test $ac_cv_c_bigendian = unknown; then
15712 # Compile a test program.
15713 if test "$cross_compiling" = yes; then :
15714 # Try to guess by grepping values from an object file.
15715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15716 /* end confdefs.h. */
15717 short int ascii_mm[] =
15718 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15719 short int ascii_ii[] =
15720 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15721 int use_ascii (int i) {
15722 return ascii_mm[i] + ascii_ii[i];
15724 short int ebcdic_ii[] =
15725 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15726 short int ebcdic_mm[] =
15727 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15728 int use_ebcdic (int i) {
15729 return ebcdic_mm[i] + ebcdic_ii[i];
15731 extern int foo;
15734 main ()
15736 return use_ascii (foo) == use_ebcdic (foo);
15738 return 0;
15740 _ACEOF
15741 if ac_fn_c_try_compile "$LINENO"; then :
15742 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15743 ac_cv_c_bigendian=yes
15745 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15746 if test "$ac_cv_c_bigendian" = unknown; then
15747 ac_cv_c_bigendian=no
15748 else
15749 # finding both strings is unlikely to happen, but who knows?
15750 ac_cv_c_bigendian=unknown
15754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15755 else
15756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15757 /* end confdefs.h. */
15758 $ac_includes_default
15760 main ()
15763 /* Are we little or big endian? From Harbison&Steele. */
15764 union
15766 long int l;
15767 char c[sizeof (long int)];
15768 } u;
15769 u.l = 1;
15770 return u.c[sizeof (long int) - 1] == 1;
15773 return 0;
15775 _ACEOF
15776 if ac_fn_c_try_run "$LINENO"; then :
15777 ac_cv_c_bigendian=no
15778 else
15779 ac_cv_c_bigendian=yes
15781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15782 conftest.$ac_objext conftest.beam conftest.$ac_ext
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15788 $as_echo "$ac_cv_c_bigendian" >&6; }
15789 case $ac_cv_c_bigendian in #(
15790 yes)
15791 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15792 ;; #(
15794 ;; #(
15795 universal)
15797 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15799 ;; #(
15801 as_fn_error $? "unknown endianness
15802 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15803 esac
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
15807 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
15808 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
15809 $as_echo_n "(cached) " >&6
15810 else
15812 gcc_cv_as_cfi_pseudo_op=unknown
15813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15814 /* end confdefs.h. */
15815 asm (".cfi_startproc\n\t.cfi_endproc");
15817 main ()
15821 return 0;
15823 _ACEOF
15824 if ac_fn_c_try_compile "$LINENO"; then :
15825 gcc_cv_as_cfi_pseudo_op=yes
15826 else
15827 gcc_cv_as_cfi_pseudo_op=no
15829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
15833 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
15834 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
15836 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
15841 case "$TARGET" in
15842 SPARC)
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
15844 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
15845 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
15846 $as_echo_n "(cached) " >&6
15847 else
15849 save_CFLAGS="$CFLAGS"
15850 save_LDFLAGS="$LDFLAGS"
15851 CFLAGS="$CFLAGS -fpic"
15852 LDFLAGS="$LDFLAGS -shared"
15853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15854 /* end confdefs.h. */
15855 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
15857 main ()
15861 return 0;
15863 _ACEOF
15864 if ac_fn_c_try_link "$LINENO"; then :
15865 libffi_cv_as_sparc_ua_pcrel=yes
15866 else
15867 libffi_cv_as_sparc_ua_pcrel=no
15869 rm -f core conftest.err conftest.$ac_objext \
15870 conftest$ac_exeext conftest.$ac_ext
15871 CFLAGS="$save_CFLAGS"
15872 LDFLAGS="$save_LDFLAGS"
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
15875 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
15876 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
15878 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
15883 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
15884 if ${libffi_cv_as_register_pseudo_op+:} false; then :
15885 $as_echo_n "(cached) " >&6
15886 else
15888 libffi_cv_as_register_pseudo_op=unknown
15889 # Check if we have .register
15890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15891 /* end confdefs.h. */
15894 main ()
15896 asm (".register %g2, #scratch");
15898 return 0;
15900 _ACEOF
15901 if ac_fn_c_try_compile "$LINENO"; then :
15902 libffi_cv_as_register_pseudo_op=yes
15903 else
15904 libffi_cv_as_register_pseudo_op=no
15906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
15910 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
15911 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
15913 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
15918 X86*)
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15920 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15921 if ${libffi_cv_as_x86_pcrel+:} false; then :
15922 $as_echo_n "(cached) " >&6
15923 else
15925 libffi_cv_as_x86_pcrel=no
15926 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15927 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15928 libffi_cv_as_x86_pcrel=yes
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
15933 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
15934 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
15936 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15941 S390)
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler uses zarch features" >&5
15943 $as_echo_n "checking compiler uses zarch features... " >&6; }
15944 if ${libffi_cv_as_s390_zarch+:} false; then :
15945 $as_echo_n "(cached) " >&6
15946 else
15948 libffi_cv_as_s390_zarch=no
15949 echo 'void foo(void) { bar(); bar(); }' > conftest.c
15950 if $CC $CFLAGS -S conftest.c > /dev/null 2>&1; then
15951 if grep -q brasl conftest.s; then
15952 libffi_cv_as_s390_zarch=yes
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_s390_zarch" >&5
15958 $as_echo "$libffi_cv_as_s390_zarch" >&6; }
15959 if test "x$libffi_cv_as_s390_zarch" = xyes; then
15961 $as_echo "#define HAVE_AS_S390_ZARCH 1" >>confdefs.h
15965 esac
15967 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
15968 # Check whether --enable-pax_emutramp was given.
15969 if test "${enable_pax_emutramp+set}" = set; then :
15970 enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
15972 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
15978 FFI_EXEC_TRAMPOLINE_TABLE=0
15979 case "$target" in
15980 *arm*-apple-darwin* | aarch64-apple-darwin*)
15981 FFI_EXEC_TRAMPOLINE_TABLE=1
15983 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
15986 *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
15988 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
15991 esac
15992 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
15993 FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
15994 FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
15995 else
15996 FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
15997 FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
16002 if test x$TARGET = xX86_64; then
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking toolchain supports unwind section type" >&5
16004 $as_echo_n "checking toolchain supports unwind section type... " >&6; }
16005 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
16006 $as_echo_n "(cached) " >&6
16007 else
16009 cat > conftest1.s << EOF
16010 .text
16011 .globl foo
16012 foo:
16013 jmp bar
16014 .section .eh_frame,"a",@unwind
16015 bar:
16018 cat > conftest2.c << EOF
16019 extern void foo();
16020 int main(){foo();}
16023 libffi_cv_as_x86_64_unwind_section_type=no
16024 # we ensure that we can compile _and_ link an assembly file containing an @unwind section
16025 # since the compiler can support it and not the linker (ie old binutils)
16026 if $CC -Wa,--fatal-warnings $CFLAGS -c conftest1.s > /dev/null 2>&1 && \
16027 $CC conftest2.c conftest1.o > /dev/null 2>&1 ; then
16028 libffi_cv_as_x86_64_unwind_section_type=yes
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
16033 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
16034 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
16036 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
16041 if test "x$GCC" = "xyes"; then
16042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
16043 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
16044 if ${libffi_cv_ro_eh_frame+:} false; then :
16045 $as_echo_n "(cached) " >&6
16046 else
16048 libffi_cv_ro_eh_frame=no
16049 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
16050 if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c > /dev/null 2>&1; then
16051 objdump -h conftest.o > conftest.dump 2>&1
16052 libffi_eh_frame_line=`grep -n eh_frame conftest.dump | cut -d: -f 1`
16053 if test "x$libffi_eh_frame_line" != "x"; then
16054 libffi_test_line=`expr $libffi_eh_frame_line + 1`p
16055 sed -n $libffi_test_line conftest.dump > conftest.line
16056 if grep READONLY conftest.line > /dev/null; then
16057 libffi_cv_ro_eh_frame=yes
16061 rm -f conftest.*
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
16065 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
16066 if test "x$libffi_cv_ro_eh_frame" = xyes; then
16068 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
16071 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
16073 else
16075 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
16080 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
16081 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
16082 $as_echo_n "(cached) " >&6
16083 else
16085 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
16086 libffi_cv_hidden_visibility_attribute=no
16087 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
16088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16089 (eval $ac_try) 2>&5
16090 ac_status=$?
16091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16092 test $ac_status = 0; }; }; then
16093 if grep '\.hidden.*foo' conftest.s >/dev/null; then
16094 libffi_cv_hidden_visibility_attribute=yes
16097 rm -f conftest.*
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
16101 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
16102 if test $libffi_cv_hidden_visibility_attribute = yes; then
16104 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
16115 TARGET_OBJ=
16116 for i in $SOURCES; do
16117 TARGET_OBJ="${TARGET_OBJ} src/${TARGETDIR}/"`echo $i | sed 's/[cS]$/lo/'`
16118 done
16124 # Check whether --enable-debug was given.
16125 if test "${enable_debug+set}" = set; then :
16126 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
16128 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
16133 if test "$enable_debug" = "yes"; then
16134 FFI_DEBUG_TRUE=
16135 FFI_DEBUG_FALSE='#'
16136 else
16137 FFI_DEBUG_TRUE='#'
16138 FFI_DEBUG_FALSE=
16142 # Check whether --enable-structs was given.
16143 if test "${enable_structs+set}" = set; then :
16144 enableval=$enable_structs; if test "$enable_structs" = "no"; then
16146 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
16151 if test "$enable_debug" = "yes"; then
16152 FFI_DEBUG_TRUE=
16153 FFI_DEBUG_FALSE='#'
16154 else
16155 FFI_DEBUG_TRUE='#'
16156 FFI_DEBUG_FALSE=
16160 # Check whether --enable-raw-api was given.
16161 if test "${enable_raw_api+set}" = set; then :
16162 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
16164 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
16170 # Check whether --enable-purify-safety was given.
16171 if test "${enable_purify_safety+set}" = set; then :
16172 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
16174 $as_echo "#define USING_PURIFY 1" >>confdefs.h
16180 if test -n "$with_cross_host" &&
16181 test x"$with_cross_host" != x"no"; then
16182 toolexecdir='$(exec_prefix)/$(target_alias)'
16183 toolexeclibdir='$(toolexecdir)/lib'
16184 else
16185 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16186 toolexeclibdir='$(libdir)'
16188 multi_os_directory=`$CC -print-multi-os-directory`
16189 case $multi_os_directory in
16190 .) ;; # Avoid trailing /.
16191 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
16192 esac
16196 if test "${multilib}" = "yes"; then
16197 multilib_arg="--enable-multilib"
16198 else
16199 multilib_arg=
16202 # Check linker support.
16205 # Check whether --with-gnu-ld was given.
16206 if test "${with_gnu_ld+set}" = set; then :
16207 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16208 else
16209 with_gnu_ld=no
16212 ac_prog=ld
16213 if test "$GCC" = yes; then
16214 # Check if gcc -print-prog-name=ld gives a path.
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16216 $as_echo_n "checking for ld used by $CC... " >&6; }
16217 case $host in
16218 *-*-mingw*)
16219 # gcc leaves a trailing carriage return which upsets mingw
16220 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16222 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16223 esac
16224 case $ac_prog in
16225 # Accept absolute paths.
16226 [\\/]* | ?:[\\/]*)
16227 re_direlt='/[^/][^/]*/\.\./'
16228 # Canonicalize the pathname of ld
16229 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16230 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16231 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16232 done
16233 test -z "$LD" && LD="$ac_prog"
16236 # If it fails, then pretend we aren't using GCC.
16237 ac_prog=ld
16240 # If it is relative, then search for the first ld in PATH.
16241 with_gnu_ld=unknown
16243 esac
16244 elif test "$with_gnu_ld" = yes; then
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16246 $as_echo_n "checking for GNU ld... " >&6; }
16247 else
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16249 $as_echo_n "checking for non-GNU ld... " >&6; }
16251 if ${lt_cv_path_LD+:} false; then :
16252 $as_echo_n "(cached) " >&6
16253 else
16254 if test -z "$LD"; then
16255 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16256 for ac_dir in $PATH; do
16257 IFS="$lt_save_ifs"
16258 test -z "$ac_dir" && ac_dir=.
16259 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16260 lt_cv_path_LD="$ac_dir/$ac_prog"
16261 # Check to see if the program is GNU ld. I'd rather use --version,
16262 # but apparently some variants of GNU ld only accept -v.
16263 # Break only if it was the GNU/non-GNU ld that we prefer.
16264 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16265 *GNU* | *'with BFD'*)
16266 test "$with_gnu_ld" != no && break
16269 test "$with_gnu_ld" != yes && break
16271 esac
16273 done
16274 IFS="$lt_save_ifs"
16275 else
16276 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16280 LD="$lt_cv_path_LD"
16281 if test -n "$LD"; then
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16283 $as_echo "$LD" >&6; }
16284 else
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16286 $as_echo "no" >&6; }
16288 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16290 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16291 if ${lt_cv_prog_gnu_ld+:} false; then :
16292 $as_echo_n "(cached) " >&6
16293 else
16294 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16295 case `$LD -v 2>&1 </dev/null` in
16296 *GNU* | *'with BFD'*)
16297 lt_cv_prog_gnu_ld=yes
16300 lt_cv_prog_gnu_ld=no
16302 esac
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16305 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16306 with_gnu_ld=$lt_cv_prog_gnu_ld
16314 # If we're not using GNU ld, then there's no point in even trying these
16315 # tests. Check for that first. We should have already tested for gld
16316 # by now (in libtool), but require it now just to be safe...
16317 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16318 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16322 # The name set by libtool depends on the version of libtool. Shame on us
16323 # for depending on an impl detail, but c'est la vie. Older versions used
16324 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16325 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16326 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16327 # set (hence we're using an older libtool), then set it.
16328 if test x${with_gnu_ld+set} != xset; then
16329 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16330 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16331 with_gnu_ld=no
16332 else
16333 with_gnu_ld=$ac_cv_prog_gnu_ld
16337 # Start by getting the version number. I think the libtool test already
16338 # does some of this, but throws away the result.
16339 libat_ld_is_gold=no
16340 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16341 libat_ld_is_gold=yes
16344 ldver=`$LD --version 2>/dev/null |
16345 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
16347 libat_gnu_ld_version=`echo $ldver | \
16348 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16350 # Set --gc-sections.
16351 if test "$with_gnu_ld" = "notbroken"; then
16352 # GNU ld it is! Joy and bunny rabbits!
16354 # All these tests are for C++; save the language and the compiler flags.
16355 # Need to do this so that g++ won't try to link in libstdc++
16356 ac_test_CFLAGS="${CFLAGS+set}"
16357 ac_save_CFLAGS="$CFLAGS"
16358 CFLAGS='-x c++ -Wl,--gc-sections'
16360 # Check for -Wl,--gc-sections
16361 # XXX This test is broken at the moment, as symbols required for linking
16362 # are now in libsupc++ (not built yet). In addition, this test has
16363 # cored on solaris in the past. In addition, --gc-sections doesn't
16364 # really work at the moment (keeps on discarding used sections, first
16365 # .eh_frame and now some of the glibc sections for iconv).
16366 # Bzzzzt. Thanks for playing, maybe next time.
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16368 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16369 if test "$cross_compiling" = yes; then :
16370 ac_sectionLDflags=yes
16371 else
16372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16373 /* end confdefs.h. */
16375 int main(void)
16377 try { throw 1; }
16378 catch (...) { };
16379 return 0;
16382 _ACEOF
16383 if ac_fn_c_try_run "$LINENO"; then :
16384 ac_sectionLDflags=yes
16385 else
16386 ac_sectionLDflags=no
16388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16389 conftest.$ac_objext conftest.beam conftest.$ac_ext
16392 if test "$ac_test_CFLAGS" = set; then
16393 CFLAGS="$ac_save_CFLAGS"
16394 else
16395 # this is the suspicious part
16396 CFLAGS=''
16398 if test "$ac_sectionLDflags" = "yes"; then
16399 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16402 $as_echo "$ac_sectionLDflags" >&6; }
16405 # Set linker optimization flags.
16406 if test x"$with_gnu_ld" = x"yes"; then
16407 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16415 # Check whether --enable-symvers was given.
16416 if test "${enable_symvers+set}" = set; then :
16417 enableval=$enable_symvers;
16418 case "$enableval" in
16419 yes|no|gnu*|sun) ;;
16420 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16421 esac
16423 else
16424 enable_symvers=yes
16429 # If we never went through the LIBAT_CHECK_LINKER_FEATURES macro, then we
16430 # don't know enough about $LD to do tricks...
16433 # Turn a 'yes' into a suitable default.
16434 if test x$enable_symvers = xyes ; then
16435 # FIXME The following test is too strict, in theory.
16436 if test $enable_shared = no || test "x$LD" = x; then
16437 enable_symvers=no
16438 else
16439 if test $with_gnu_ld = yes ; then
16440 enable_symvers=gnu
16441 else
16442 case ${target_os} in
16443 # Sun symbol versioning exists since Solaris 2.5.
16444 solaris2.[5-9]* | solaris2.1[0-9]*)
16445 enable_symvers=sun ;;
16447 enable_symvers=no ;;
16448 esac
16453 # Check if 'sun' was requested on non-Solaris 2 platforms.
16454 if test x$enable_symvers = xsun ; then
16455 case ${target_os} in
16456 solaris2*)
16457 # All fine.
16460 # Unlikely to work.
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16462 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16464 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16466 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16467 enable_symvers=no
16469 esac
16472 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16473 if test $enable_symvers != no; then
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16475 $as_echo_n "checking for shared libgcc... " >&6; }
16476 ac_save_CFLAGS="$CFLAGS"
16477 CFLAGS=' -lgcc_s'
16478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16479 /* end confdefs.h. */
16482 main ()
16484 return 0;
16486 return 0;
16488 _ACEOF
16489 if ac_fn_c_try_link "$LINENO"; then :
16490 libat_shared_libgcc=yes
16491 else
16492 libat_shared_libgcc=no
16494 rm -f core conftest.err conftest.$ac_objext \
16495 conftest$ac_exeext conftest.$ac_ext
16496 CFLAGS="$ac_save_CFLAGS"
16497 if test $libat_shared_libgcc = no; then
16498 cat > conftest.c <<EOF
16499 int main (void) { return 0; }
16501 libat_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16502 -shared -shared-libgcc -o conftest.so \
16503 conftest.c -v 2>&1 >/dev/null \
16504 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16505 rm -f conftest.c conftest.so
16506 if test x${libat_libgcc_s_suffix+set} = xset; then
16507 CFLAGS=" -lgcc_s$libat_libgcc_s_suffix"
16508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16509 /* end confdefs.h. */
16512 main ()
16514 return 0;
16516 return 0;
16518 _ACEOF
16519 if ac_fn_c_try_link "$LINENO"; then :
16520 libat_shared_libgcc=yes
16522 rm -f core conftest.err conftest.$ac_objext \
16523 conftest$ac_exeext conftest.$ac_ext
16524 CFLAGS="$ac_save_CFLAGS"
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5
16528 $as_echo "$libat_shared_libgcc" >&6; }
16531 # For GNU ld, we need at least this version. The format is described in
16532 # LIBAT_CHECK_LINKER_FEATURES above.
16533 libat_min_gnu_ld_version=21400
16534 # XXXXXXXXXXX libat_gnu_ld_version=21390
16536 # Check to see if unspecified "yes" value can win, given results above.
16537 # Change "yes" into either "no" or a style name.
16538 if test $enable_symvers != no && test $libat_shared_libgcc = yes; then
16539 if test $with_gnu_ld = yes; then
16540 if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
16541 enable_symvers=gnu
16542 elif test $libat_ld_is_gold = yes ; then
16543 enable_symvers=gnu
16544 else
16545 # The right tools, the right setup, but too old. Fallbacks?
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
16547 $as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;}
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16549 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16551 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5
16553 $as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;}
16554 if test $libat_gnu_ld_version -ge 21200 ; then
16555 # Globbing fix is present, proper block support is not.
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16557 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16558 enable_symvers=no
16559 else
16560 # 2.11 or older.
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16562 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16563 enable_symvers=no
16566 elif test $enable_symvers = sun; then
16567 : All interesting versions of Sun ld support sun style symbol versioning.
16568 else
16569 # just fail for now
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16571 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16573 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16575 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16577 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16578 enable_symvers=no
16581 if test $enable_symvers = gnu; then
16583 $as_echo "#define LIBAT_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16587 if test $enable_symvers != no; then
16588 LIBAT_BUILD_VERSIONED_SHLIB_TRUE=
16589 LIBAT_BUILD_VERSIONED_SHLIB_FALSE='#'
16590 else
16591 LIBAT_BUILD_VERSIONED_SHLIB_TRUE='#'
16592 LIBAT_BUILD_VERSIONED_SHLIB_FALSE=
16595 if test $enable_symvers = gnu; then
16596 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16597 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16598 else
16599 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16600 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16603 if test $enable_symvers = sun; then
16604 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16605 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16606 else
16607 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16608 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16612 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16615 # Determine what GCC version number to use in filesystem paths.
16617 get_gcc_base_ver="cat"
16619 # Check whether --with-gcc-major-version-only was given.
16620 if test "${with_gcc_major_version_only+set}" = set; then :
16621 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
16622 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
16630 ac_config_commands="$ac_config_commands include"
16632 ac_config_commands="$ac_config_commands src"
16635 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
16638 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
16641 cat >confcache <<\_ACEOF
16642 # This file is a shell script that caches the results of configure
16643 # tests run on this system so they can be shared between configure
16644 # scripts and configure runs, see configure's option --config-cache.
16645 # It is not useful on other systems. If it contains results you don't
16646 # want to keep, you may remove or edit it.
16648 # config.status only pays attention to the cache file if you give it
16649 # the --recheck option to rerun configure.
16651 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16652 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16653 # following values.
16655 _ACEOF
16657 # The following way of writing the cache mishandles newlines in values,
16658 # but we know of no workaround that is simple, portable, and efficient.
16659 # So, we kill variables containing newlines.
16660 # Ultrix sh set writes to stderr and can't be redirected directly,
16661 # and sets the high bit in the cache file unless we assign to the vars.
16663 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16664 eval ac_val=\$$ac_var
16665 case $ac_val in #(
16666 *${as_nl}*)
16667 case $ac_var in #(
16668 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16669 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16670 esac
16671 case $ac_var in #(
16672 _ | IFS | as_nl) ;; #(
16673 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16674 *) { eval $ac_var=; unset $ac_var;} ;;
16675 esac ;;
16676 esac
16677 done
16679 (set) 2>&1 |
16680 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16681 *${as_nl}ac_space=\ *)
16682 # `set' does not quote correctly, so add quotes: double-quote
16683 # substitution turns \\\\ into \\, and sed turns \\ into \.
16684 sed -n \
16685 "s/'/'\\\\''/g;
16686 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16687 ;; #(
16689 # `set' quotes correctly as required by POSIX, so do not add quotes.
16690 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16692 esac |
16693 sort
16695 sed '
16696 /^ac_cv_env_/b end
16697 t clear
16698 :clear
16699 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16700 t end
16701 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16702 :end' >>confcache
16703 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16704 if test -w "$cache_file"; then
16705 if test "x$cache_file" != "x/dev/null"; then
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16707 $as_echo "$as_me: updating cache $cache_file" >&6;}
16708 if test ! -f "$cache_file" || test -h "$cache_file"; then
16709 cat confcache >"$cache_file"
16710 else
16711 case $cache_file in #(
16712 */* | ?:*)
16713 mv -f confcache "$cache_file"$$ &&
16714 mv -f "$cache_file"$$ "$cache_file" ;; #(
16716 mv -f confcache "$cache_file" ;;
16717 esac
16720 else
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16722 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16725 rm -f confcache
16727 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16728 # Let make expand exec_prefix.
16729 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16731 DEFS=-DHAVE_CONFIG_H
16733 ac_libobjs=
16734 ac_ltlibobjs=
16736 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16737 # 1. Remove the extension, and $U if already installed.
16738 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16739 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16740 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16741 # will be set to the directory where LIBOBJS objects are built.
16742 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16743 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16744 done
16745 LIBOBJS=$ac_libobjs
16747 LTLIBOBJS=$ac_ltlibobjs
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16751 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16752 if test -n "$am_sleep_pid"; then
16753 # Hide warnings about reused PIDs.
16754 wait $am_sleep_pid 2>/dev/null
16756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16757 $as_echo "done" >&6; }
16758 if test -n "$EXEEXT"; then
16759 am__EXEEXT_TRUE=
16760 am__EXEEXT_FALSE='#'
16761 else
16762 am__EXEEXT_TRUE='#'
16763 am__EXEEXT_FALSE=
16766 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16767 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
16768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16770 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16771 as_fn_error $? "conditional \"GENINSRC\" was never defined.
16772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16774 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16775 as_fn_error $? "conditional \"AMDEP\" was never defined.
16776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16778 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16779 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16782 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16783 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16784 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16786 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16787 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
16788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16790 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16791 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16794 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16795 as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
16796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16799 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
16800 as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
16801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16803 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
16804 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
16805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16807 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
16808 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
16809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16811 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_FALSE}"; then
16812 as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB\" was never defined.
16813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16815 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
16816 as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
16817 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16819 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
16820 as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
16821 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16824 : "${CONFIG_STATUS=./config.status}"
16825 ac_write_fail=0
16826 ac_clean_files_save=$ac_clean_files
16827 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16829 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16830 as_write_fail=0
16831 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16832 #! $SHELL
16833 # Generated by $as_me.
16834 # Run this file to recreate the current configuration.
16835 # Compiler output produced by configure, useful for debugging
16836 # configure, is in config.log if it exists.
16838 debug=false
16839 ac_cs_recheck=false
16840 ac_cs_silent=false
16842 SHELL=\${CONFIG_SHELL-$SHELL}
16843 export SHELL
16844 _ASEOF
16845 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16846 ## -------------------- ##
16847 ## M4sh Initialization. ##
16848 ## -------------------- ##
16850 # Be more Bourne compatible
16851 DUALCASE=1; export DUALCASE # for MKS sh
16852 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16853 emulate sh
16854 NULLCMD=:
16855 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16856 # is contrary to our usage. Disable this feature.
16857 alias -g '${1+"$@"}'='"$@"'
16858 setopt NO_GLOB_SUBST
16859 else
16860 case `(set -o) 2>/dev/null` in #(
16861 *posix*) :
16862 set -o posix ;; #(
16863 *) :
16865 esac
16869 as_nl='
16871 export as_nl
16872 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16873 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16874 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16875 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16876 # Prefer a ksh shell builtin over an external printf program on Solaris,
16877 # but without wasting forks for bash or zsh.
16878 if test -z "$BASH_VERSION$ZSH_VERSION" \
16879 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16880 as_echo='print -r --'
16881 as_echo_n='print -rn --'
16882 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16883 as_echo='printf %s\n'
16884 as_echo_n='printf %s'
16885 else
16886 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16887 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16888 as_echo_n='/usr/ucb/echo -n'
16889 else
16890 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16891 as_echo_n_body='eval
16892 arg=$1;
16893 case $arg in #(
16894 *"$as_nl"*)
16895 expr "X$arg" : "X\\(.*\\)$as_nl";
16896 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16897 esac;
16898 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16900 export as_echo_n_body
16901 as_echo_n='sh -c $as_echo_n_body as_echo'
16903 export as_echo_body
16904 as_echo='sh -c $as_echo_body as_echo'
16907 # The user is always right.
16908 if test "${PATH_SEPARATOR+set}" != set; then
16909 PATH_SEPARATOR=:
16910 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16911 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16912 PATH_SEPARATOR=';'
16917 # IFS
16918 # We need space, tab and new line, in precisely that order. Quoting is
16919 # there to prevent editors from complaining about space-tab.
16920 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16921 # splitting by setting IFS to empty value.)
16922 IFS=" "" $as_nl"
16924 # Find who we are. Look in the path if we contain no directory separator.
16925 as_myself=
16926 case $0 in #((
16927 *[\\/]* ) as_myself=$0 ;;
16928 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16929 for as_dir in $PATH
16931 IFS=$as_save_IFS
16932 test -z "$as_dir" && as_dir=.
16933 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16934 done
16935 IFS=$as_save_IFS
16938 esac
16939 # We did not find ourselves, most probably we were run as `sh COMMAND'
16940 # in which case we are not to be found in the path.
16941 if test "x$as_myself" = x; then
16942 as_myself=$0
16944 if test ! -f "$as_myself"; then
16945 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16946 exit 1
16949 # Unset variables that we do not need and which cause bugs (e.g. in
16950 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16951 # suppresses any "Segmentation fault" message there. '((' could
16952 # trigger a bug in pdksh 5.2.14.
16953 for as_var in BASH_ENV ENV MAIL MAILPATH
16954 do eval test x\${$as_var+set} = xset \
16955 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16956 done
16957 PS1='$ '
16958 PS2='> '
16959 PS4='+ '
16961 # NLS nuisances.
16962 LC_ALL=C
16963 export LC_ALL
16964 LANGUAGE=C
16965 export LANGUAGE
16967 # CDPATH.
16968 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16971 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16972 # ----------------------------------------
16973 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16974 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16975 # script with STATUS, using 1 if that was 0.
16976 as_fn_error ()
16978 as_status=$1; test $as_status -eq 0 && as_status=1
16979 if test "$4"; then
16980 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16981 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16983 $as_echo "$as_me: error: $2" >&2
16984 as_fn_exit $as_status
16985 } # as_fn_error
16988 # as_fn_set_status STATUS
16989 # -----------------------
16990 # Set $? to STATUS, without forking.
16991 as_fn_set_status ()
16993 return $1
16994 } # as_fn_set_status
16996 # as_fn_exit STATUS
16997 # -----------------
16998 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16999 as_fn_exit ()
17001 set +e
17002 as_fn_set_status $1
17003 exit $1
17004 } # as_fn_exit
17006 # as_fn_unset VAR
17007 # ---------------
17008 # Portably unset VAR.
17009 as_fn_unset ()
17011 { eval $1=; unset $1;}
17013 as_unset=as_fn_unset
17014 # as_fn_append VAR VALUE
17015 # ----------------------
17016 # Append the text in VALUE to the end of the definition contained in VAR. Take
17017 # advantage of any shell optimizations that allow amortized linear growth over
17018 # repeated appends, instead of the typical quadratic growth present in naive
17019 # implementations.
17020 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17021 eval 'as_fn_append ()
17023 eval $1+=\$2
17025 else
17026 as_fn_append ()
17028 eval $1=\$$1\$2
17030 fi # as_fn_append
17032 # as_fn_arith ARG...
17033 # ------------------
17034 # Perform arithmetic evaluation on the ARGs, and store the result in the
17035 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17036 # must be portable across $(()) and expr.
17037 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17038 eval 'as_fn_arith ()
17040 as_val=$(( $* ))
17042 else
17043 as_fn_arith ()
17045 as_val=`expr "$@" || test $? -eq 1`
17047 fi # as_fn_arith
17050 if expr a : '\(a\)' >/dev/null 2>&1 &&
17051 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17052 as_expr=expr
17053 else
17054 as_expr=false
17057 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17058 as_basename=basename
17059 else
17060 as_basename=false
17063 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17064 as_dirname=dirname
17065 else
17066 as_dirname=false
17069 as_me=`$as_basename -- "$0" ||
17070 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17071 X"$0" : 'X\(//\)$' \| \
17072 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17073 $as_echo X/"$0" |
17074 sed '/^.*\/\([^/][^/]*\)\/*$/{
17075 s//\1/
17078 /^X\/\(\/\/\)$/{
17079 s//\1/
17082 /^X\/\(\/\).*/{
17083 s//\1/
17086 s/.*/./; q'`
17088 # Avoid depending upon Character Ranges.
17089 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17090 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17091 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17092 as_cr_digits='0123456789'
17093 as_cr_alnum=$as_cr_Letters$as_cr_digits
17095 ECHO_C= ECHO_N= ECHO_T=
17096 case `echo -n x` in #(((((
17097 -n*)
17098 case `echo 'xy\c'` in
17099 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17100 xy) ECHO_C='\c';;
17101 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17102 ECHO_T=' ';;
17103 esac;;
17105 ECHO_N='-n';;
17106 esac
17108 rm -f conf$$ conf$$.exe conf$$.file
17109 if test -d conf$$.dir; then
17110 rm -f conf$$.dir/conf$$.file
17111 else
17112 rm -f conf$$.dir
17113 mkdir conf$$.dir 2>/dev/null
17115 if (echo >conf$$.file) 2>/dev/null; then
17116 if ln -s conf$$.file conf$$ 2>/dev/null; then
17117 as_ln_s='ln -s'
17118 # ... but there are two gotchas:
17119 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17120 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17121 # In both cases, we have to default to `cp -pR'.
17122 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17123 as_ln_s='cp -pR'
17124 elif ln conf$$.file conf$$ 2>/dev/null; then
17125 as_ln_s=ln
17126 else
17127 as_ln_s='cp -pR'
17129 else
17130 as_ln_s='cp -pR'
17132 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17133 rmdir conf$$.dir 2>/dev/null
17136 # as_fn_mkdir_p
17137 # -------------
17138 # Create "$as_dir" as a directory, including parents if necessary.
17139 as_fn_mkdir_p ()
17142 case $as_dir in #(
17143 -*) as_dir=./$as_dir;;
17144 esac
17145 test -d "$as_dir" || eval $as_mkdir_p || {
17146 as_dirs=
17147 while :; do
17148 case $as_dir in #(
17149 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17150 *) as_qdir=$as_dir;;
17151 esac
17152 as_dirs="'$as_qdir' $as_dirs"
17153 as_dir=`$as_dirname -- "$as_dir" ||
17154 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17155 X"$as_dir" : 'X\(//\)[^/]' \| \
17156 X"$as_dir" : 'X\(//\)$' \| \
17157 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17158 $as_echo X"$as_dir" |
17159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17160 s//\1/
17163 /^X\(\/\/\)[^/].*/{
17164 s//\1/
17167 /^X\(\/\/\)$/{
17168 s//\1/
17171 /^X\(\/\).*/{
17172 s//\1/
17175 s/.*/./; q'`
17176 test -d "$as_dir" && break
17177 done
17178 test -z "$as_dirs" || eval "mkdir $as_dirs"
17179 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17182 } # as_fn_mkdir_p
17183 if mkdir -p . 2>/dev/null; then
17184 as_mkdir_p='mkdir -p "$as_dir"'
17185 else
17186 test -d ./-p && rmdir ./-p
17187 as_mkdir_p=false
17191 # as_fn_executable_p FILE
17192 # -----------------------
17193 # Test if FILE is an executable regular file.
17194 as_fn_executable_p ()
17196 test -f "$1" && test -x "$1"
17197 } # as_fn_executable_p
17198 as_test_x='test -x'
17199 as_executable_p=as_fn_executable_p
17201 # Sed expression to map a string onto a valid CPP name.
17202 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17204 # Sed expression to map a string onto a valid variable name.
17205 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17208 exec 6>&1
17209 ## ----------------------------------- ##
17210 ## Main body of $CONFIG_STATUS script. ##
17211 ## ----------------------------------- ##
17212 _ASEOF
17213 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17216 # Save the log message, to keep $0 and so on meaningful, and to
17217 # report actual input values of CONFIG_FILES etc. instead of their
17218 # values after options handling.
17219 ac_log="
17220 This file was extended by libffi $as_me 3.99999, which was
17221 generated by GNU Autoconf 2.69. Invocation command line was
17223 CONFIG_FILES = $CONFIG_FILES
17224 CONFIG_HEADERS = $CONFIG_HEADERS
17225 CONFIG_LINKS = $CONFIG_LINKS
17226 CONFIG_COMMANDS = $CONFIG_COMMANDS
17227 $ $0 $@
17229 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17232 _ACEOF
17234 case $ac_config_files in *"
17235 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17236 esac
17238 case $ac_config_headers in *"
17239 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17240 esac
17243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17244 # Files that config.status was made for.
17245 config_files="$ac_config_files"
17246 config_headers="$ac_config_headers"
17247 config_links="$ac_config_links"
17248 config_commands="$ac_config_commands"
17250 _ACEOF
17252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17253 ac_cs_usage="\
17254 \`$as_me' instantiates files and other configuration actions
17255 from templates according to the current configuration. Unless the files
17256 and actions are specified as TAGs, all are instantiated by default.
17258 Usage: $0 [OPTION]... [TAG]...
17260 -h, --help print this help, then exit
17261 -V, --version print version number and configuration settings, then exit
17262 --config print configuration, then exit
17263 -q, --quiet, --silent
17264 do not print progress messages
17265 -d, --debug don't remove temporary files
17266 --recheck update $as_me by reconfiguring in the same conditions
17267 --file=FILE[:TEMPLATE]
17268 instantiate the configuration file FILE
17269 --header=FILE[:TEMPLATE]
17270 instantiate the configuration header FILE
17272 Configuration files:
17273 $config_files
17275 Configuration headers:
17276 $config_headers
17278 Configuration links:
17279 $config_links
17281 Configuration commands:
17282 $config_commands
17284 Report bugs to <http://github.com/atgreen/libffi/issues>."
17286 _ACEOF
17287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17288 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17289 ac_cs_version="\\
17290 libffi config.status 3.99999
17291 configured by $0, generated by GNU Autoconf 2.69,
17292 with options \\"\$ac_cs_config\\"
17294 Copyright (C) 2012 Free Software Foundation, Inc.
17295 This config.status script is free software; the Free Software Foundation
17296 gives unlimited permission to copy, distribute and modify it."
17298 ac_pwd='$ac_pwd'
17299 srcdir='$srcdir'
17300 INSTALL='$INSTALL'
17301 MKDIR_P='$MKDIR_P'
17302 AWK='$AWK'
17303 test -n "\$AWK" || AWK=awk
17304 _ACEOF
17306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17307 # The default lists apply if the user does not specify any file.
17308 ac_need_defaults=:
17309 while test $# != 0
17311 case $1 in
17312 --*=?*)
17313 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17314 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17315 ac_shift=:
17317 --*=)
17318 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17319 ac_optarg=
17320 ac_shift=:
17323 ac_option=$1
17324 ac_optarg=$2
17325 ac_shift=shift
17327 esac
17329 case $ac_option in
17330 # Handling of the options.
17331 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17332 ac_cs_recheck=: ;;
17333 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17334 $as_echo "$ac_cs_version"; exit ;;
17335 --config | --confi | --conf | --con | --co | --c )
17336 $as_echo "$ac_cs_config"; exit ;;
17337 --debug | --debu | --deb | --de | --d | -d )
17338 debug=: ;;
17339 --file | --fil | --fi | --f )
17340 $ac_shift
17341 case $ac_optarg in
17342 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17343 '') as_fn_error $? "missing file argument" ;;
17344 esac
17345 as_fn_append CONFIG_FILES " '$ac_optarg'"
17346 ac_need_defaults=false;;
17347 --header | --heade | --head | --hea )
17348 $ac_shift
17349 case $ac_optarg in
17350 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17351 esac
17352 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17353 ac_need_defaults=false;;
17354 --he | --h)
17355 # Conflict between --help and --header
17356 as_fn_error $? "ambiguous option: \`$1'
17357 Try \`$0 --help' for more information.";;
17358 --help | --hel | -h )
17359 $as_echo "$ac_cs_usage"; exit ;;
17360 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17361 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17362 ac_cs_silent=: ;;
17364 # This is an error.
17365 -*) as_fn_error $? "unrecognized option: \`$1'
17366 Try \`$0 --help' for more information." ;;
17368 *) as_fn_append ac_config_targets " $1"
17369 ac_need_defaults=false ;;
17371 esac
17372 shift
17373 done
17375 ac_configure_extra_args=
17377 if $ac_cs_silent; then
17378 exec 6>/dev/null
17379 ac_configure_extra_args="$ac_configure_extra_args --silent"
17382 _ACEOF
17383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17384 if \$ac_cs_recheck; then
17385 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17386 shift
17387 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17388 CONFIG_SHELL='$SHELL'
17389 export CONFIG_SHELL
17390 exec "\$@"
17393 _ACEOF
17394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17395 exec 5>>config.log
17397 echo
17398 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17399 ## Running $as_me. ##
17400 _ASBOX
17401 $as_echo "$ac_log"
17402 } >&5
17404 _ACEOF
17405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17407 # INIT-COMMANDS
17410 srcdir="$srcdir"
17411 host="$host"
17412 target="$target"
17413 with_multisubdir="$with_multisubdir"
17414 with_multisrctop="$with_multisrctop"
17415 with_target_subdir="$with_target_subdir"
17416 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17417 multi_basedir="$multi_basedir"
17418 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17419 CC="$CC"
17420 CXX="$CXX"
17421 GFORTRAN="$GFORTRAN"
17422 GDC="$GDC"
17423 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17426 # The HP-UX ksh and POSIX shell print the target directory to stdout
17427 # if CDPATH is set.
17428 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17430 sed_quote_subst='$sed_quote_subst'
17431 double_quote_subst='$double_quote_subst'
17432 delay_variable_subst='$delay_variable_subst'
17433 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17434 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17435 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17436 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17437 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17438 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17439 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17440 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17441 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17442 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17443 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17444 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17445 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17446 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17447 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17448 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17449 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17450 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17451 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17452 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17453 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17454 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17455 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17456 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17457 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17458 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17459 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17460 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17461 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17462 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17463 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17464 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17465 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17466 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17467 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17468 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17469 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17470 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17471 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17472 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17473 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17474 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17475 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17476 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17477 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17478 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17479 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17480 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17481 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"`'
17482 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17483 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17484 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17485 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17486 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17487 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17488 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17489 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17490 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17491 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17492 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17493 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17494 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17495 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17496 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17497 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17498 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17499 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17500 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17501 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17502 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17503 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17504 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17505 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17506 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17507 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17508 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17509 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17510 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17511 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17512 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17513 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17514 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17515 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17516 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17517 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17518 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17519 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17520 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17521 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17522 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17523 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17524 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17525 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17526 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17527 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17528 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17529 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17530 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17531 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17532 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17533 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17534 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17535 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17536 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17537 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17538 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17539 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17540 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17541 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17542 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17543 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17544 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17545 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17546 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17547 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17548 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17549 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17550 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17551 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17552 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17553 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17554 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17555 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17556 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17557 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17558 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17559 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17560 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17561 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17562 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17563 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17564 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17565 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17566 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17567 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17568 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17569 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17570 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17571 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17572 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17573 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17574 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17575 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17576 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17577 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17578 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17579 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17580 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17581 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17582 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17583 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17584 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17585 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17586 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17587 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17588 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17589 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17590 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17591 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17592 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17593 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17594 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17595 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17596 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17597 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17598 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17599 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17600 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17601 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17602 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17603 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17604 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17605 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17606 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17607 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17609 LTCC='$LTCC'
17610 LTCFLAGS='$LTCFLAGS'
17611 compiler='$compiler_DEFAULT'
17613 # A function that is used when there is no print builtin or printf.
17614 func_fallback_echo ()
17616 eval 'cat <<_LTECHO_EOF
17618 _LTECHO_EOF'
17621 # Quote evaled strings.
17622 for var in SHELL \
17623 ECHO \
17624 SED \
17625 GREP \
17626 EGREP \
17627 FGREP \
17628 LD \
17629 NM \
17630 LN_S \
17631 lt_SP2NL \
17632 lt_NL2SP \
17633 reload_flag \
17634 OBJDUMP \
17635 deplibs_check_method \
17636 file_magic_cmd \
17637 AR \
17638 AR_FLAGS \
17639 STRIP \
17640 RANLIB \
17641 CC \
17642 CFLAGS \
17643 compiler \
17644 lt_cv_sys_global_symbol_pipe \
17645 lt_cv_sys_global_symbol_to_cdecl \
17646 lt_cv_sys_global_symbol_to_c_name_address \
17647 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17648 lt_prog_compiler_no_builtin_flag \
17649 lt_prog_compiler_wl \
17650 lt_prog_compiler_pic \
17651 lt_prog_compiler_static \
17652 lt_cv_prog_compiler_c_o \
17653 need_locks \
17654 DSYMUTIL \
17655 NMEDIT \
17656 LIPO \
17657 OTOOL \
17658 OTOOL64 \
17659 shrext_cmds \
17660 export_dynamic_flag_spec \
17661 whole_archive_flag_spec \
17662 compiler_needs_object \
17663 with_gnu_ld \
17664 allow_undefined_flag \
17665 no_undefined_flag \
17666 hardcode_libdir_flag_spec \
17667 hardcode_libdir_flag_spec_ld \
17668 hardcode_libdir_separator \
17669 fix_srcfile_path \
17670 exclude_expsyms \
17671 include_expsyms \
17672 file_list_spec \
17673 variables_saved_for_relink \
17674 libname_spec \
17675 library_names_spec \
17676 soname_spec \
17677 install_override_mode \
17678 finish_eval \
17679 old_striplib \
17680 striplib \
17681 compiler_lib_search_dirs \
17682 predep_objects \
17683 postdep_objects \
17684 predeps \
17685 postdeps \
17686 compiler_lib_search_path \
17687 LD_CXX \
17688 reload_flag_CXX \
17689 compiler_CXX \
17690 lt_prog_compiler_no_builtin_flag_CXX \
17691 lt_prog_compiler_wl_CXX \
17692 lt_prog_compiler_pic_CXX \
17693 lt_prog_compiler_static_CXX \
17694 lt_cv_prog_compiler_c_o_CXX \
17695 export_dynamic_flag_spec_CXX \
17696 whole_archive_flag_spec_CXX \
17697 compiler_needs_object_CXX \
17698 with_gnu_ld_CXX \
17699 allow_undefined_flag_CXX \
17700 no_undefined_flag_CXX \
17701 hardcode_libdir_flag_spec_CXX \
17702 hardcode_libdir_flag_spec_ld_CXX \
17703 hardcode_libdir_separator_CXX \
17704 fix_srcfile_path_CXX \
17705 exclude_expsyms_CXX \
17706 include_expsyms_CXX \
17707 file_list_spec_CXX \
17708 compiler_lib_search_dirs_CXX \
17709 predep_objects_CXX \
17710 postdep_objects_CXX \
17711 predeps_CXX \
17712 postdeps_CXX \
17713 compiler_lib_search_path_CXX; do
17714 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17715 *[\\\\\\\`\\"\\\$]*)
17716 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17719 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17721 esac
17722 done
17724 # Double-quote double-evaled strings.
17725 for var in reload_cmds \
17726 old_postinstall_cmds \
17727 old_postuninstall_cmds \
17728 old_archive_cmds \
17729 extract_expsyms_cmds \
17730 old_archive_from_new_cmds \
17731 old_archive_from_expsyms_cmds \
17732 archive_cmds \
17733 archive_expsym_cmds \
17734 module_cmds \
17735 module_expsym_cmds \
17736 export_symbols_cmds \
17737 prelink_cmds \
17738 postinstall_cmds \
17739 postuninstall_cmds \
17740 finish_cmds \
17741 sys_lib_search_path_spec \
17742 sys_lib_dlsearch_path_spec \
17743 reload_cmds_CXX \
17744 old_archive_cmds_CXX \
17745 old_archive_from_new_cmds_CXX \
17746 old_archive_from_expsyms_cmds_CXX \
17747 archive_cmds_CXX \
17748 archive_expsym_cmds_CXX \
17749 module_cmds_CXX \
17750 module_expsym_cmds_CXX \
17751 export_symbols_cmds_CXX \
17752 prelink_cmds_CXX; do
17753 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17754 *[\\\\\\\`\\"\\\$]*)
17755 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17758 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17760 esac
17761 done
17763 ac_aux_dir='$ac_aux_dir'
17764 xsi_shell='$xsi_shell'
17765 lt_shell_append='$lt_shell_append'
17767 # See if we are running on zsh, and set the options which allow our
17768 # commands through without removal of \ escapes INIT.
17769 if test -n "\${ZSH_VERSION+set}" ; then
17770 setopt NO_GLOB_SUBST
17774 PACKAGE='$PACKAGE'
17775 VERSION='$VERSION'
17776 TIMESTAMP='$TIMESTAMP'
17777 RM='$RM'
17778 ofile='$ofile'
17784 TARGETDIR="$TARGETDIR"
17786 _ACEOF
17788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17790 # Handling of arguments.
17791 for ac_config_target in $ac_config_targets
17793 case $ac_config_target in
17794 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
17795 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17796 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17797 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17798 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
17799 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
17800 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
17801 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17802 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
17803 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17804 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17805 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
17806 "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
17808 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17809 esac
17810 done
17813 # If the user did not use the arguments to specify the items to instantiate,
17814 # then the envvar interface is used. Set only those that are not.
17815 # We use the long form for the default assignment because of an extremely
17816 # bizarre bug on SunOS 4.1.3.
17817 if $ac_need_defaults; then
17818 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17819 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17820 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17821 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17824 # Have a temporary directory for convenience. Make it in the build tree
17825 # simply because there is no reason against having it here, and in addition,
17826 # creating and moving files from /tmp can sometimes cause problems.
17827 # Hook for its removal unless debugging.
17828 # Note that there is a small window in which the directory will not be cleaned:
17829 # after its creation but before its name has been assigned to `$tmp'.
17830 $debug ||
17832 tmp= ac_tmp=
17833 trap 'exit_status=$?
17834 : "${ac_tmp:=$tmp}"
17835 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17837 trap 'as_fn_exit 1' 1 2 13 15
17839 # Create a (secure) tmp directory for tmp files.
17842 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17843 test -d "$tmp"
17844 } ||
17846 tmp=./conf$$-$RANDOM
17847 (umask 077 && mkdir "$tmp")
17848 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17849 ac_tmp=$tmp
17851 # Set up the scripts for CONFIG_FILES section.
17852 # No need to generate them if there are no CONFIG_FILES.
17853 # This happens for instance with `./config.status config.h'.
17854 if test -n "$CONFIG_FILES"; then
17857 ac_cr=`echo X | tr X '\015'`
17858 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17859 # But we know of no other shell where ac_cr would be empty at this
17860 # point, so we can use a bashism as a fallback.
17861 if test "x$ac_cr" = x; then
17862 eval ac_cr=\$\'\\r\'
17864 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17865 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17866 ac_cs_awk_cr='\\r'
17867 else
17868 ac_cs_awk_cr=$ac_cr
17871 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17872 _ACEOF
17876 echo "cat >conf$$subs.awk <<_ACEOF" &&
17877 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17878 echo "_ACEOF"
17879 } >conf$$subs.sh ||
17880 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17881 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17882 ac_delim='%!_!# '
17883 for ac_last_try in false false false false false :; do
17884 . ./conf$$subs.sh ||
17885 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17887 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17888 if test $ac_delim_n = $ac_delim_num; then
17889 break
17890 elif $ac_last_try; then
17891 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17892 else
17893 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17895 done
17896 rm -f conf$$subs.sh
17898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17899 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17900 _ACEOF
17901 sed -n '
17903 s/^/S["/; s/!.*/"]=/
17906 s/^[^!]*!//
17907 :repl
17908 t repl
17909 s/'"$ac_delim"'$//
17910 t delim
17913 s/\(.\{148\}\)..*/\1/
17914 t more1
17915 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17918 b repl
17919 :more1
17920 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17923 s/.\{148\}//
17924 t nl
17925 :delim
17927 s/\(.\{148\}\)..*/\1/
17928 t more2
17929 s/["\\]/\\&/g; s/^/"/; s/$/"/
17932 :more2
17933 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17936 s/.\{148\}//
17937 t delim
17938 ' <conf$$subs.awk | sed '
17939 /^[^""]/{
17941 s/\n//
17943 ' >>$CONFIG_STATUS || ac_write_fail=1
17944 rm -f conf$$subs.awk
17945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17946 _ACAWK
17947 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17948 for (key in S) S_is_set[key] = 1
17949 FS = "\a"
17953 line = $ 0
17954 nfields = split(line, field, "@")
17955 substed = 0
17956 len = length(field[1])
17957 for (i = 2; i < nfields; i++) {
17958 key = field[i]
17959 keylen = length(key)
17960 if (S_is_set[key]) {
17961 value = S[key]
17962 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17963 len += length(value) + length(field[++i])
17964 substed = 1
17965 } else
17966 len += 1 + keylen
17969 print line
17972 _ACAWK
17973 _ACEOF
17974 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17975 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17976 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17977 else
17979 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17980 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17981 _ACEOF
17983 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17984 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17985 # trailing colons and then remove the whole line if VPATH becomes empty
17986 # (actually we leave an empty line to preserve line numbers).
17987 if test "x$srcdir" = x.; then
17988 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17990 s///
17991 s/^/:/
17992 s/[ ]*$/:/
17993 s/:\$(srcdir):/:/g
17994 s/:\${srcdir}:/:/g
17995 s/:@srcdir@:/:/g
17996 s/^:*//
17997 s/:*$//
17999 s/\(=[ ]*\).*/\1/
18001 s/\n//
18002 s/^[^=]*=[ ]*$//
18006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18007 fi # test -n "$CONFIG_FILES"
18009 # Set up the scripts for CONFIG_HEADERS section.
18010 # No need to generate them if there are no CONFIG_HEADERS.
18011 # This happens for instance with `./config.status Makefile'.
18012 if test -n "$CONFIG_HEADERS"; then
18013 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18014 BEGIN {
18015 _ACEOF
18017 # Transform confdefs.h into an awk script `defines.awk', embedded as
18018 # here-document in config.status, that substitutes the proper values into
18019 # config.h.in to produce config.h.
18021 # Create a delimiter string that does not exist in confdefs.h, to ease
18022 # handling of long lines.
18023 ac_delim='%!_!# '
18024 for ac_last_try in false false :; do
18025 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18026 if test -z "$ac_tt"; then
18027 break
18028 elif $ac_last_try; then
18029 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18030 else
18031 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18033 done
18035 # For the awk script, D is an array of macro values keyed by name,
18036 # likewise P contains macro parameters if any. Preserve backslash
18037 # newline sequences.
18039 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18040 sed -n '
18041 s/.\{148\}/&'"$ac_delim"'/g
18042 t rset
18043 :rset
18044 s/^[ ]*#[ ]*define[ ][ ]*/ /
18045 t def
18047 :def
18048 s/\\$//
18049 t bsnl
18050 s/["\\]/\\&/g
18051 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18052 D["\1"]=" \3"/p
18053 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18055 :bsnl
18056 s/["\\]/\\&/g
18057 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18058 D["\1"]=" \3\\\\\\n"\\/p
18059 t cont
18060 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18061 t cont
18063 :cont
18065 s/.\{148\}/&'"$ac_delim"'/g
18066 t clear
18067 :clear
18068 s/\\$//
18069 t bsnlc
18070 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18072 :bsnlc
18073 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18074 b cont
18075 ' <confdefs.h | sed '
18076 s/'"$ac_delim"'/"\\\
18077 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18080 for (key in D) D_is_set[key] = 1
18081 FS = "\a"
18083 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18084 line = \$ 0
18085 split(line, arg, " ")
18086 if (arg[1] == "#") {
18087 defundef = arg[2]
18088 mac1 = arg[3]
18089 } else {
18090 defundef = substr(arg[1], 2)
18091 mac1 = arg[2]
18093 split(mac1, mac2, "(") #)
18094 macro = mac2[1]
18095 prefix = substr(line, 1, index(line, defundef) - 1)
18096 if (D_is_set[macro]) {
18097 # Preserve the white space surrounding the "#".
18098 print prefix "define", macro P[macro] D[macro]
18099 next
18100 } else {
18101 # Replace #undef with comments. This is necessary, for example,
18102 # in the case of _POSIX_SOURCE, which is predefined and required
18103 # on some systems where configure will not decide to define it.
18104 if (defundef == "undef") {
18105 print "/*", prefix defundef, macro, "*/"
18106 next
18110 { print }
18111 _ACAWK
18112 _ACEOF
18113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18114 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18115 fi # test -n "$CONFIG_HEADERS"
18118 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18119 shift
18120 for ac_tag
18122 case $ac_tag in
18123 :[FHLC]) ac_mode=$ac_tag; continue;;
18124 esac
18125 case $ac_mode$ac_tag in
18126 :[FHL]*:*);;
18127 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18128 :[FH]-) ac_tag=-:-;;
18129 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18130 esac
18131 ac_save_IFS=$IFS
18132 IFS=:
18133 set x $ac_tag
18134 IFS=$ac_save_IFS
18135 shift
18136 ac_file=$1
18137 shift
18139 case $ac_mode in
18140 :L) ac_source=$1;;
18141 :[FH])
18142 ac_file_inputs=
18143 for ac_f
18145 case $ac_f in
18146 -) ac_f="$ac_tmp/stdin";;
18147 *) # Look for the file first in the build tree, then in the source tree
18148 # (if the path is not absolute). The absolute path cannot be DOS-style,
18149 # because $ac_f cannot contain `:'.
18150 test -f "$ac_f" ||
18151 case $ac_f in
18152 [\\/$]*) false;;
18153 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18154 esac ||
18155 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18156 esac
18157 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18158 as_fn_append ac_file_inputs " '$ac_f'"
18159 done
18161 # Let's still pretend it is `configure' which instantiates (i.e., don't
18162 # use $as_me), people would be surprised to read:
18163 # /* config.h. Generated by config.status. */
18164 configure_input='Generated from '`
18165 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18166 `' by configure.'
18167 if test x"$ac_file" != x-; then
18168 configure_input="$ac_file. $configure_input"
18169 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18170 $as_echo "$as_me: creating $ac_file" >&6;}
18172 # Neutralize special characters interpreted by sed in replacement strings.
18173 case $configure_input in #(
18174 *\&* | *\|* | *\\* )
18175 ac_sed_conf_input=`$as_echo "$configure_input" |
18176 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18177 *) ac_sed_conf_input=$configure_input;;
18178 esac
18180 case $ac_tag in
18181 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18182 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18183 esac
18185 esac
18187 ac_dir=`$as_dirname -- "$ac_file" ||
18188 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18189 X"$ac_file" : 'X\(//\)[^/]' \| \
18190 X"$ac_file" : 'X\(//\)$' \| \
18191 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18192 $as_echo X"$ac_file" |
18193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18194 s//\1/
18197 /^X\(\/\/\)[^/].*/{
18198 s//\1/
18201 /^X\(\/\/\)$/{
18202 s//\1/
18205 /^X\(\/\).*/{
18206 s//\1/
18209 s/.*/./; q'`
18210 as_dir="$ac_dir"; as_fn_mkdir_p
18211 ac_builddir=.
18213 case "$ac_dir" in
18214 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18216 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18217 # A ".." for each directory in $ac_dir_suffix.
18218 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18219 case $ac_top_builddir_sub in
18220 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18221 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18222 esac ;;
18223 esac
18224 ac_abs_top_builddir=$ac_pwd
18225 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18226 # for backward compatibility:
18227 ac_top_builddir=$ac_top_build_prefix
18229 case $srcdir in
18230 .) # We are building in place.
18231 ac_srcdir=.
18232 ac_top_srcdir=$ac_top_builddir_sub
18233 ac_abs_top_srcdir=$ac_pwd ;;
18234 [\\/]* | ?:[\\/]* ) # Absolute name.
18235 ac_srcdir=$srcdir$ac_dir_suffix;
18236 ac_top_srcdir=$srcdir
18237 ac_abs_top_srcdir=$srcdir ;;
18238 *) # Relative name.
18239 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18240 ac_top_srcdir=$ac_top_build_prefix$srcdir
18241 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18242 esac
18243 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18246 case $ac_mode in
18249 # CONFIG_FILE
18252 case $INSTALL in
18253 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18254 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18255 esac
18256 ac_MKDIR_P=$MKDIR_P
18257 case $MKDIR_P in
18258 [\\/$]* | ?:[\\/]* ) ;;
18259 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18260 esac
18261 _ACEOF
18263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18264 # If the template does not know about datarootdir, expand it.
18265 # FIXME: This hack should be removed a few years after 2.60.
18266 ac_datarootdir_hack=; ac_datarootdir_seen=
18267 ac_sed_dataroot='
18268 /datarootdir/ {
18272 /@datadir@/p
18273 /@docdir@/p
18274 /@infodir@/p
18275 /@localedir@/p
18276 /@mandir@/p'
18277 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18278 *datarootdir*) ac_datarootdir_seen=yes;;
18279 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18281 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18282 _ACEOF
18283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18284 ac_datarootdir_hack='
18285 s&@datadir@&$datadir&g
18286 s&@docdir@&$docdir&g
18287 s&@infodir@&$infodir&g
18288 s&@localedir@&$localedir&g
18289 s&@mandir@&$mandir&g
18290 s&\\\${datarootdir}&$datarootdir&g' ;;
18291 esac
18292 _ACEOF
18294 # Neutralize VPATH when `$srcdir' = `.'.
18295 # Shell code in configure.ac might set extrasub.
18296 # FIXME: do we really want to maintain this feature?
18297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18298 ac_sed_extra="$ac_vpsub
18299 $extrasub
18300 _ACEOF
18301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18303 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18304 s|@configure_input@|$ac_sed_conf_input|;t t
18305 s&@top_builddir@&$ac_top_builddir_sub&;t t
18306 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18307 s&@srcdir@&$ac_srcdir&;t t
18308 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18309 s&@top_srcdir@&$ac_top_srcdir&;t t
18310 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18311 s&@builddir@&$ac_builddir&;t t
18312 s&@abs_builddir@&$ac_abs_builddir&;t t
18313 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18314 s&@INSTALL@&$ac_INSTALL&;t t
18315 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18316 $ac_datarootdir_hack
18318 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18319 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18321 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18322 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18323 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18324 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18326 which seems to be undefined. Please make sure it is defined" >&5
18327 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18328 which seems to be undefined. Please make sure it is defined" >&2;}
18330 rm -f "$ac_tmp/stdin"
18331 case $ac_file in
18332 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18333 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18334 esac \
18335 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18339 # CONFIG_HEADER
18341 if test x"$ac_file" != x-; then
18343 $as_echo "/* $configure_input */" \
18344 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18345 } >"$ac_tmp/config.h" \
18346 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18347 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18349 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18350 else
18351 rm -f "$ac_file"
18352 mv "$ac_tmp/config.h" "$ac_file" \
18353 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18355 else
18356 $as_echo "/* $configure_input */" \
18357 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18358 || as_fn_error $? "could not create -" "$LINENO" 5
18360 # Compute "$ac_file"'s index in $config_headers.
18361 _am_arg="$ac_file"
18362 _am_stamp_count=1
18363 for _am_header in $config_headers :; do
18364 case $_am_header in
18365 $_am_arg | $_am_arg:* )
18366 break ;;
18368 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18369 esac
18370 done
18371 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18372 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18373 X"$_am_arg" : 'X\(//\)[^/]' \| \
18374 X"$_am_arg" : 'X\(//\)$' \| \
18375 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18376 $as_echo X"$_am_arg" |
18377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18378 s//\1/
18381 /^X\(\/\/\)[^/].*/{
18382 s//\1/
18385 /^X\(\/\/\)$/{
18386 s//\1/
18389 /^X\(\/\).*/{
18390 s//\1/
18393 s/.*/./; q'`/stamp-h$_am_stamp_count
18397 # CONFIG_LINK
18400 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18402 else
18403 # Prefer the file from the source tree if names are identical.
18404 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18405 ac_source=$srcdir/$ac_source
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18409 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18411 if test ! -r "$ac_source"; then
18412 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
18414 rm -f "$ac_file"
18416 # Try a relative symlink, then a hard link, then a copy.
18417 case $ac_source in
18418 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18419 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18420 esac
18421 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18422 ln "$ac_source" "$ac_file" 2>/dev/null ||
18423 cp -p "$ac_source" "$ac_file" ||
18424 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18427 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18428 $as_echo "$as_me: executing $ac_file commands" >&6;}
18430 esac
18433 case $ac_file$ac_mode in
18434 "default-1":C)
18435 # Only add multilib support code if we just rebuilt the top-level
18436 # Makefile.
18437 case " $CONFIG_FILES " in
18438 *" Makefile "*)
18439 ac_file=Makefile . ${multi_basedir}/config-ml.in
18441 esac ;;
18442 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18443 # Older Autoconf quotes --file arguments for eval, but not when files
18444 # are listed without --file. Let's play safe and only enable the eval
18445 # if we detect the quoting.
18446 case $CONFIG_FILES in
18447 *\'*) eval set x "$CONFIG_FILES" ;;
18448 *) set x $CONFIG_FILES ;;
18449 esac
18450 shift
18451 for mf
18453 # Strip MF so we end up with the name of the file.
18454 mf=`echo "$mf" | sed -e 's/:.*$//'`
18455 # Check whether this is an Automake generated Makefile or not.
18456 # We used to match only the files named 'Makefile.in', but
18457 # some people rename them; so instead we look at the file content.
18458 # Grep'ing the first line is not enough: some people post-process
18459 # each Makefile.in and add a new line on top of each file to say so.
18460 # Grep'ing the whole file is not good either: AIX grep has a line
18461 # limit of 2048, but all sed's we know have understand at least 4000.
18462 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18463 dirpart=`$as_dirname -- "$mf" ||
18464 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18465 X"$mf" : 'X\(//\)[^/]' \| \
18466 X"$mf" : 'X\(//\)$' \| \
18467 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18468 $as_echo X"$mf" |
18469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18470 s//\1/
18473 /^X\(\/\/\)[^/].*/{
18474 s//\1/
18477 /^X\(\/\/\)$/{
18478 s//\1/
18481 /^X\(\/\).*/{
18482 s//\1/
18485 s/.*/./; q'`
18486 else
18487 continue
18489 # Extract the definition of DEPDIR, am__include, and am__quote
18490 # from the Makefile without running 'make'.
18491 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18492 test -z "$DEPDIR" && continue
18493 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18494 test -z "$am__include" && continue
18495 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18496 # Find all dependency output files, they are included files with
18497 # $(DEPDIR) in their names. We invoke sed twice because it is the
18498 # simplest approach to changing $(DEPDIR) to its actual value in the
18499 # expansion.
18500 for file in `sed -n "
18501 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18502 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18503 # Make sure the directory exists.
18504 test -f "$dirpart/$file" && continue
18505 fdir=`$as_dirname -- "$file" ||
18506 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18507 X"$file" : 'X\(//\)[^/]' \| \
18508 X"$file" : 'X\(//\)$' \| \
18509 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18510 $as_echo X"$file" |
18511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18512 s//\1/
18515 /^X\(\/\/\)[^/].*/{
18516 s//\1/
18519 /^X\(\/\/\)$/{
18520 s//\1/
18523 /^X\(\/\).*/{
18524 s//\1/
18527 s/.*/./; q'`
18528 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18529 # echo "creating $dirpart/$file"
18530 echo '# dummy' > "$dirpart/$file"
18531 done
18532 done
18535 "libtool":C)
18537 # See if we are running on zsh, and set the options which allow our
18538 # commands through without removal of \ escapes.
18539 if test -n "${ZSH_VERSION+set}" ; then
18540 setopt NO_GLOB_SUBST
18543 cfgfile="${ofile}T"
18544 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18545 $RM "$cfgfile"
18547 cat <<_LT_EOF >> "$cfgfile"
18548 #! $SHELL
18550 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18551 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18552 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18553 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18555 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18556 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18557 # Written by Gordon Matzigkeit, 1996
18559 # This file is part of GNU Libtool.
18561 # GNU Libtool is free software; you can redistribute it and/or
18562 # modify it under the terms of the GNU General Public License as
18563 # published by the Free Software Foundation; either version 2 of
18564 # the License, or (at your option) any later version.
18566 # As a special exception to the GNU General Public License,
18567 # if you distribute this file as part of a program or library that
18568 # is built using GNU Libtool, you may include this file under the
18569 # same distribution terms that you use for the rest of that program.
18571 # GNU Libtool is distributed in the hope that it will be useful,
18572 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18573 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18574 # GNU General Public License for more details.
18576 # You should have received a copy of the GNU General Public License
18577 # along with GNU Libtool; see the file COPYING. If not, a copy
18578 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18579 # obtained by writing to the Free Software Foundation, Inc.,
18580 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18583 # The names of the tagged configurations supported by this script.
18584 available_tags="CXX "
18586 # ### BEGIN LIBTOOL CONFIG
18588 # Which release of libtool.m4 was used?
18589 macro_version=$macro_version
18590 macro_revision=$macro_revision
18592 # Whether or not to build shared libraries.
18593 build_libtool_libs=$enable_shared
18595 # Whether or not to build static libraries.
18596 build_old_libs=$enable_static
18598 # What type of objects to build.
18599 pic_mode=$pic_mode
18601 # Whether or not to optimize for fast installation.
18602 fast_install=$enable_fast_install
18604 # Shell to use when invoking shell scripts.
18605 SHELL=$lt_SHELL
18607 # An echo program that protects backslashes.
18608 ECHO=$lt_ECHO
18610 # The host system.
18611 host_alias=$host_alias
18612 host=$host
18613 host_os=$host_os
18615 # The build system.
18616 build_alias=$build_alias
18617 build=$build
18618 build_os=$build_os
18620 # A sed program that does not truncate output.
18621 SED=$lt_SED
18623 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18624 Xsed="\$SED -e 1s/^X//"
18626 # A grep program that handles long lines.
18627 GREP=$lt_GREP
18629 # An ERE matcher.
18630 EGREP=$lt_EGREP
18632 # A literal string matcher.
18633 FGREP=$lt_FGREP
18635 # A BSD- or MS-compatible name lister.
18636 NM=$lt_NM
18638 # Whether we need soft or hard links.
18639 LN_S=$lt_LN_S
18641 # What is the maximum length of a command?
18642 max_cmd_len=$max_cmd_len
18644 # Object file suffix (normally "o").
18645 objext=$ac_objext
18647 # Executable file suffix (normally "").
18648 exeext=$exeext
18650 # whether the shell understands "unset".
18651 lt_unset=$lt_unset
18653 # turn spaces into newlines.
18654 SP2NL=$lt_lt_SP2NL
18656 # turn newlines into spaces.
18657 NL2SP=$lt_lt_NL2SP
18659 # An object symbol dumper.
18660 OBJDUMP=$lt_OBJDUMP
18662 # Method to check whether dependent libraries are shared objects.
18663 deplibs_check_method=$lt_deplibs_check_method
18665 # Command to use when deplibs_check_method == "file_magic".
18666 file_magic_cmd=$lt_file_magic_cmd
18668 # The archiver.
18669 AR=$lt_AR
18670 AR_FLAGS=$lt_AR_FLAGS
18672 # A symbol stripping program.
18673 STRIP=$lt_STRIP
18675 # Commands used to install an old-style archive.
18676 RANLIB=$lt_RANLIB
18677 old_postinstall_cmds=$lt_old_postinstall_cmds
18678 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18680 # Whether to use a lock for old archive extraction.
18681 lock_old_archive_extraction=$lock_old_archive_extraction
18683 # A C compiler.
18684 LTCC=$lt_CC
18686 # LTCC compiler flags.
18687 LTCFLAGS=$lt_CFLAGS
18689 # Take the output of nm and produce a listing of raw symbols and C names.
18690 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18692 # Transform the output of nm in a proper C declaration.
18693 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18695 # Transform the output of nm in a C name address pair.
18696 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18698 # Transform the output of nm in a C name address pair when lib prefix is needed.
18699 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18701 # The name of the directory that contains temporary libtool files.
18702 objdir=$objdir
18704 # Used to examine libraries when file_magic_cmd begins with "file".
18705 MAGIC_CMD=$MAGIC_CMD
18707 # Must we lock files when doing compilation?
18708 need_locks=$lt_need_locks
18710 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18711 DSYMUTIL=$lt_DSYMUTIL
18713 # Tool to change global to local symbols on Mac OS X.
18714 NMEDIT=$lt_NMEDIT
18716 # Tool to manipulate fat objects and archives on Mac OS X.
18717 LIPO=$lt_LIPO
18719 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18720 OTOOL=$lt_OTOOL
18722 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18723 OTOOL64=$lt_OTOOL64
18725 # Old archive suffix (normally "a").
18726 libext=$libext
18728 # Shared library suffix (normally ".so").
18729 shrext_cmds=$lt_shrext_cmds
18731 # The commands to extract the exported symbol list from a shared archive.
18732 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18734 # Variables whose values should be saved in libtool wrapper scripts and
18735 # restored at link time.
18736 variables_saved_for_relink=$lt_variables_saved_for_relink
18738 # Do we need the "lib" prefix for modules?
18739 need_lib_prefix=$need_lib_prefix
18741 # Do we need a version for libraries?
18742 need_version=$need_version
18744 # Library versioning type.
18745 version_type=$version_type
18747 # Shared library runtime path variable.
18748 runpath_var=$runpath_var
18750 # Shared library path variable.
18751 shlibpath_var=$shlibpath_var
18753 # Is shlibpath searched before the hard-coded library search path?
18754 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18756 # Format of library name prefix.
18757 libname_spec=$lt_libname_spec
18759 # List of archive names. First name is the real one, the rest are links.
18760 # The last name is the one that the linker finds with -lNAME
18761 library_names_spec=$lt_library_names_spec
18763 # The coded name of the library, if different from the real name.
18764 soname_spec=$lt_soname_spec
18766 # Permission mode override for installation of shared libraries.
18767 install_override_mode=$lt_install_override_mode
18769 # Command to use after installation of a shared archive.
18770 postinstall_cmds=$lt_postinstall_cmds
18772 # Command to use after uninstallation of a shared archive.
18773 postuninstall_cmds=$lt_postuninstall_cmds
18775 # Commands used to finish a libtool library installation in a directory.
18776 finish_cmds=$lt_finish_cmds
18778 # As "finish_cmds", except a single script fragment to be evaled but
18779 # not shown.
18780 finish_eval=$lt_finish_eval
18782 # Whether we should hardcode library paths into libraries.
18783 hardcode_into_libs=$hardcode_into_libs
18785 # Compile-time system search path for libraries.
18786 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18788 # Run-time system search path for libraries.
18789 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18791 # Whether dlopen is supported.
18792 dlopen_support=$enable_dlopen
18794 # Whether dlopen of programs is supported.
18795 dlopen_self=$enable_dlopen_self
18797 # Whether dlopen of statically linked programs is supported.
18798 dlopen_self_static=$enable_dlopen_self_static
18800 # Commands to strip libraries.
18801 old_striplib=$lt_old_striplib
18802 striplib=$lt_striplib
18805 # The linker used to build libraries.
18806 LD=$lt_LD
18808 # How to create reloadable object files.
18809 reload_flag=$lt_reload_flag
18810 reload_cmds=$lt_reload_cmds
18812 # Commands used to build an old-style archive.
18813 old_archive_cmds=$lt_old_archive_cmds
18815 # A language specific compiler.
18816 CC=$lt_compiler
18818 # Is the compiler the GNU compiler?
18819 with_gcc=$GCC
18821 # Compiler flag to turn off builtin functions.
18822 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18824 # How to pass a linker flag through the compiler.
18825 wl=$lt_lt_prog_compiler_wl
18827 # Additional compiler flags for building library objects.
18828 pic_flag=$lt_lt_prog_compiler_pic
18830 # Compiler flag to prevent dynamic linking.
18831 link_static_flag=$lt_lt_prog_compiler_static
18833 # Does compiler simultaneously support -c and -o options?
18834 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18836 # Whether or not to add -lc for building shared libraries.
18837 build_libtool_need_lc=$archive_cmds_need_lc
18839 # Whether or not to disallow shared libs when runtime libs are static.
18840 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18842 # Compiler flag to allow reflexive dlopens.
18843 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18845 # Compiler flag to generate shared objects directly from archives.
18846 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18848 # Whether the compiler copes with passing no objects directly.
18849 compiler_needs_object=$lt_compiler_needs_object
18851 # Create an old-style archive from a shared archive.
18852 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18854 # Create a temporary old-style archive to link instead of a shared archive.
18855 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18857 # Commands used to build a shared archive.
18858 archive_cmds=$lt_archive_cmds
18859 archive_expsym_cmds=$lt_archive_expsym_cmds
18861 # Commands used to build a loadable module if different from building
18862 # a shared archive.
18863 module_cmds=$lt_module_cmds
18864 module_expsym_cmds=$lt_module_expsym_cmds
18866 # Whether we are building with GNU ld or not.
18867 with_gnu_ld=$lt_with_gnu_ld
18869 # Flag that allows shared libraries with undefined symbols to be built.
18870 allow_undefined_flag=$lt_allow_undefined_flag
18872 # Flag that enforces no undefined symbols.
18873 no_undefined_flag=$lt_no_undefined_flag
18875 # Flag to hardcode \$libdir into a binary during linking.
18876 # This must work even if \$libdir does not exist
18877 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18879 # If ld is used when linking, flag to hardcode \$libdir into a binary
18880 # during linking. This must work even if \$libdir does not exist.
18881 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18883 # Whether we need a single "-rpath" flag with a separated argument.
18884 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18886 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18887 # DIR into the resulting binary.
18888 hardcode_direct=$hardcode_direct
18890 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18891 # DIR into the resulting binary and the resulting library dependency is
18892 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18893 # library is relocated.
18894 hardcode_direct_absolute=$hardcode_direct_absolute
18896 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18897 # into the resulting binary.
18898 hardcode_minus_L=$hardcode_minus_L
18900 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18901 # into the resulting binary.
18902 hardcode_shlibpath_var=$hardcode_shlibpath_var
18904 # Set to "yes" if building a shared library automatically hardcodes DIR
18905 # into the library and all subsequent libraries and executables linked
18906 # against it.
18907 hardcode_automatic=$hardcode_automatic
18909 # Set to yes if linker adds runtime paths of dependent libraries
18910 # to runtime path list.
18911 inherit_rpath=$inherit_rpath
18913 # Whether libtool must link a program against all its dependency libraries.
18914 link_all_deplibs=$link_all_deplibs
18916 # Fix the shell variable \$srcfile for the compiler.
18917 fix_srcfile_path=$lt_fix_srcfile_path
18919 # Set to "yes" if exported symbols are required.
18920 always_export_symbols=$always_export_symbols
18922 # The commands to list exported symbols.
18923 export_symbols_cmds=$lt_export_symbols_cmds
18925 # Symbols that should not be listed in the preloaded symbols.
18926 exclude_expsyms=$lt_exclude_expsyms
18928 # Symbols that must always be exported.
18929 include_expsyms=$lt_include_expsyms
18931 # Commands necessary for linking programs (against libraries) with templates.
18932 prelink_cmds=$lt_prelink_cmds
18934 # Specify filename containing input files.
18935 file_list_spec=$lt_file_list_spec
18937 # How to hardcode a shared library path into an executable.
18938 hardcode_action=$hardcode_action
18940 # The directories searched by this compiler when creating a shared library.
18941 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18943 # Dependencies to place before and after the objects being linked to
18944 # create a shared library.
18945 predep_objects=$lt_predep_objects
18946 postdep_objects=$lt_postdep_objects
18947 predeps=$lt_predeps
18948 postdeps=$lt_postdeps
18950 # The library search path used internally by the compiler when linking
18951 # a shared library.
18952 compiler_lib_search_path=$lt_compiler_lib_search_path
18954 # ### END LIBTOOL CONFIG
18956 _LT_EOF
18958 case $host_os in
18959 aix3*)
18960 cat <<\_LT_EOF >> "$cfgfile"
18961 # AIX sometimes has problems with the GCC collect2 program. For some
18962 # reason, if we set the COLLECT_NAMES environment variable, the problems
18963 # vanish in a puff of smoke.
18964 if test "X${COLLECT_NAMES+set}" != Xset; then
18965 COLLECT_NAMES=
18966 export COLLECT_NAMES
18968 _LT_EOF
18970 esac
18973 ltmain="$ac_aux_dir/ltmain.sh"
18976 # We use sed instead of cat because bash on DJGPP gets confused if
18977 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18978 # text mode, it properly converts lines to CR/LF. This bash problem
18979 # is reportedly fixed, but why not run on old versions too?
18980 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18981 || (rm -f "$cfgfile"; exit 1)
18983 case $xsi_shell in
18984 yes)
18985 cat << \_LT_EOF >> "$cfgfile"
18987 # func_dirname file append nondir_replacement
18988 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18989 # otherwise set result to NONDIR_REPLACEMENT.
18990 func_dirname ()
18992 case ${1} in
18993 */*) func_dirname_result="${1%/*}${2}" ;;
18994 * ) func_dirname_result="${3}" ;;
18995 esac
18998 # func_basename file
18999 func_basename ()
19001 func_basename_result="${1##*/}"
19004 # func_dirname_and_basename file append nondir_replacement
19005 # perform func_basename and func_dirname in a single function
19006 # call:
19007 # dirname: Compute the dirname of FILE. If nonempty,
19008 # add APPEND to the result, otherwise set result
19009 # to NONDIR_REPLACEMENT.
19010 # value returned in "$func_dirname_result"
19011 # basename: Compute filename of FILE.
19012 # value retuned in "$func_basename_result"
19013 # Implementation must be kept synchronized with func_dirname
19014 # and func_basename. For efficiency, we do not delegate to
19015 # those functions but instead duplicate the functionality here.
19016 func_dirname_and_basename ()
19018 case ${1} in
19019 */*) func_dirname_result="${1%/*}${2}" ;;
19020 * ) func_dirname_result="${3}" ;;
19021 esac
19022 func_basename_result="${1##*/}"
19025 # func_stripname prefix suffix name
19026 # strip PREFIX and SUFFIX off of NAME.
19027 # PREFIX and SUFFIX must not contain globbing or regex special
19028 # characters, hashes, percent signs, but SUFFIX may contain a leading
19029 # dot (in which case that matches only a dot).
19030 func_stripname ()
19032 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19033 # positional parameters, so assign one to ordinary parameter first.
19034 func_stripname_result=${3}
19035 func_stripname_result=${func_stripname_result#"${1}"}
19036 func_stripname_result=${func_stripname_result%"${2}"}
19039 # func_opt_split
19040 func_opt_split ()
19042 func_opt_split_opt=${1%%=*}
19043 func_opt_split_arg=${1#*=}
19046 # func_lo2o object
19047 func_lo2o ()
19049 case ${1} in
19050 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19051 *) func_lo2o_result=${1} ;;
19052 esac
19055 # func_xform libobj-or-source
19056 func_xform ()
19058 func_xform_result=${1%.*}.lo
19061 # func_arith arithmetic-term...
19062 func_arith ()
19064 func_arith_result=$(( $* ))
19067 # func_len string
19068 # STRING may not start with a hyphen.
19069 func_len ()
19071 func_len_result=${#1}
19074 _LT_EOF
19076 *) # Bourne compatible functions.
19077 cat << \_LT_EOF >> "$cfgfile"
19079 # func_dirname file append nondir_replacement
19080 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19081 # otherwise set result to NONDIR_REPLACEMENT.
19082 func_dirname ()
19084 # Extract subdirectory from the argument.
19085 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19086 if test "X$func_dirname_result" = "X${1}"; then
19087 func_dirname_result="${3}"
19088 else
19089 func_dirname_result="$func_dirname_result${2}"
19093 # func_basename file
19094 func_basename ()
19096 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19100 # func_stripname prefix suffix name
19101 # strip PREFIX and SUFFIX off of NAME.
19102 # PREFIX and SUFFIX must not contain globbing or regex special
19103 # characters, hashes, percent signs, but SUFFIX may contain a leading
19104 # dot (in which case that matches only a dot).
19105 # func_strip_suffix prefix name
19106 func_stripname ()
19108 case ${2} in
19109 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19110 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19111 esac
19114 # sed scripts:
19115 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19116 my_sed_long_arg='1s/^-[^=]*=//'
19118 # func_opt_split
19119 func_opt_split ()
19121 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19122 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19125 # func_lo2o object
19126 func_lo2o ()
19128 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19131 # func_xform libobj-or-source
19132 func_xform ()
19134 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19137 # func_arith arithmetic-term...
19138 func_arith ()
19140 func_arith_result=`expr "$@"`
19143 # func_len string
19144 # STRING may not start with a hyphen.
19145 func_len ()
19147 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19150 _LT_EOF
19151 esac
19153 case $lt_shell_append in
19154 yes)
19155 cat << \_LT_EOF >> "$cfgfile"
19157 # func_append var value
19158 # Append VALUE to the end of shell variable VAR.
19159 func_append ()
19161 eval "$1+=\$2"
19163 _LT_EOF
19166 cat << \_LT_EOF >> "$cfgfile"
19168 # func_append var value
19169 # Append VALUE to the end of shell variable VAR.
19170 func_append ()
19172 eval "$1=\$$1\$2"
19175 _LT_EOF
19177 esac
19180 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19181 || (rm -f "$cfgfile"; exit 1)
19183 mv -f "$cfgfile" "$ofile" ||
19184 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19185 chmod +x "$ofile"
19188 cat <<_LT_EOF >> "$ofile"
19190 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19192 # The linker used to build libraries.
19193 LD=$lt_LD_CXX
19195 # How to create reloadable object files.
19196 reload_flag=$lt_reload_flag_CXX
19197 reload_cmds=$lt_reload_cmds_CXX
19199 # Commands used to build an old-style archive.
19200 old_archive_cmds=$lt_old_archive_cmds_CXX
19202 # A language specific compiler.
19203 CC=$lt_compiler_CXX
19205 # Is the compiler the GNU compiler?
19206 with_gcc=$GCC_CXX
19208 # Compiler flag to turn off builtin functions.
19209 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19211 # How to pass a linker flag through the compiler.
19212 wl=$lt_lt_prog_compiler_wl_CXX
19214 # Additional compiler flags for building library objects.
19215 pic_flag=$lt_lt_prog_compiler_pic_CXX
19217 # Compiler flag to prevent dynamic linking.
19218 link_static_flag=$lt_lt_prog_compiler_static_CXX
19220 # Does compiler simultaneously support -c and -o options?
19221 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19223 # Whether or not to add -lc for building shared libraries.
19224 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19226 # Whether or not to disallow shared libs when runtime libs are static.
19227 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19229 # Compiler flag to allow reflexive dlopens.
19230 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19232 # Compiler flag to generate shared objects directly from archives.
19233 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19235 # Whether the compiler copes with passing no objects directly.
19236 compiler_needs_object=$lt_compiler_needs_object_CXX
19238 # Create an old-style archive from a shared archive.
19239 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19241 # Create a temporary old-style archive to link instead of a shared archive.
19242 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19244 # Commands used to build a shared archive.
19245 archive_cmds=$lt_archive_cmds_CXX
19246 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19248 # Commands used to build a loadable module if different from building
19249 # a shared archive.
19250 module_cmds=$lt_module_cmds_CXX
19251 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19253 # Whether we are building with GNU ld or not.
19254 with_gnu_ld=$lt_with_gnu_ld_CXX
19256 # Flag that allows shared libraries with undefined symbols to be built.
19257 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19259 # Flag that enforces no undefined symbols.
19260 no_undefined_flag=$lt_no_undefined_flag_CXX
19262 # Flag to hardcode \$libdir into a binary during linking.
19263 # This must work even if \$libdir does not exist
19264 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19266 # If ld is used when linking, flag to hardcode \$libdir into a binary
19267 # during linking. This must work even if \$libdir does not exist.
19268 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19270 # Whether we need a single "-rpath" flag with a separated argument.
19271 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19273 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19274 # DIR into the resulting binary.
19275 hardcode_direct=$hardcode_direct_CXX
19277 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19278 # DIR into the resulting binary and the resulting library dependency is
19279 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19280 # library is relocated.
19281 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19283 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19284 # into the resulting binary.
19285 hardcode_minus_L=$hardcode_minus_L_CXX
19287 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19288 # into the resulting binary.
19289 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19291 # Set to "yes" if building a shared library automatically hardcodes DIR
19292 # into the library and all subsequent libraries and executables linked
19293 # against it.
19294 hardcode_automatic=$hardcode_automatic_CXX
19296 # Set to yes if linker adds runtime paths of dependent libraries
19297 # to runtime path list.
19298 inherit_rpath=$inherit_rpath_CXX
19300 # Whether libtool must link a program against all its dependency libraries.
19301 link_all_deplibs=$link_all_deplibs_CXX
19303 # Fix the shell variable \$srcfile for the compiler.
19304 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19306 # Set to "yes" if exported symbols are required.
19307 always_export_symbols=$always_export_symbols_CXX
19309 # The commands to list exported symbols.
19310 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19312 # Symbols that should not be listed in the preloaded symbols.
19313 exclude_expsyms=$lt_exclude_expsyms_CXX
19315 # Symbols that must always be exported.
19316 include_expsyms=$lt_include_expsyms_CXX
19318 # Commands necessary for linking programs (against libraries) with templates.
19319 prelink_cmds=$lt_prelink_cmds_CXX
19321 # Specify filename containing input files.
19322 file_list_spec=$lt_file_list_spec_CXX
19324 # How to hardcode a shared library path into an executable.
19325 hardcode_action=$hardcode_action_CXX
19327 # The directories searched by this compiler when creating a shared library.
19328 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19330 # Dependencies to place before and after the objects being linked to
19331 # create a shared library.
19332 predep_objects=$lt_predep_objects_CXX
19333 postdep_objects=$lt_postdep_objects_CXX
19334 predeps=$lt_predeps_CXX
19335 postdeps=$lt_postdeps_CXX
19337 # The library search path used internally by the compiler when linking
19338 # a shared library.
19339 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19341 # ### END LIBTOOL TAG CONFIG: CXX
19342 _LT_EOF
19345 "include":C) test -d include || mkdir include ;;
19346 "src":C)
19347 test -d src || mkdir src
19348 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
19351 esac
19352 done # for ac_tag
19355 as_fn_exit 0
19356 _ACEOF
19357 ac_clean_files=$ac_clean_files_save
19359 test $ac_write_fail = 0 ||
19360 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19363 # configure is writing to config.log, and then calls config.status.
19364 # config.status does its own redirection, appending to config.log.
19365 # Unfortunately, on DOS this fails, as config.log is still kept open
19366 # by configure, so config.status won't be able to write to it; its
19367 # output is simply discarded. So we exec the FD to /dev/null,
19368 # effectively closing config.log, so it can be properly (re)opened and
19369 # appended to by config.status. When coming back to configure, we
19370 # need to make the FD available again.
19371 if test "$no_create" != yes; then
19372 ac_cs_success=:
19373 ac_config_status_args=
19374 test "$silent" = yes &&
19375 ac_config_status_args="$ac_config_status_args --quiet"
19376 exec 5>/dev/null
19377 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19378 exec 5>>config.log
19379 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19380 # would make configure fail if this is the last instruction.
19381 $ac_cs_success || as_fn_exit 1
19383 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19385 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}