2013-11-13 Christophe Lyon <christophe.lyon@linaro.org>
[official-gcc.git] / libffi / configure
blobcb959174d009a087caa8e45897167a35b442e2c5
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libffi 3.0.11.
5 # Report bugs to <http://gcc.gnu.org/bugs.html>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # 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 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
176 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 PATH=/empty FPATH=/empty; export PATH FPATH
180 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
181 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
182 test \$(( 1 + 1 )) = 2 || exit 1"
183 if (eval "$as_required") 2>/dev/null; then :
184 as_have_required=yes
185 else
186 as_have_required=no
188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190 else
191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192 as_found=false
193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 IFS=$as_save_IFS
196 test -z "$as_dir" && as_dir=.
197 as_found=:
198 case $as_dir in #(
200 for as_base in sh bash ksh sh5; do
201 # Try only shells that exist, to save several forks.
202 as_shell=$as_dir/$as_base
203 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 CONFIG_SHELL=$as_shell as_have_required=yes
206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 break 2
210 done;;
211 esac
212 as_found=false
213 done
214 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216 CONFIG_SHELL=$SHELL as_have_required=yes
217 fi; }
218 IFS=$as_save_IFS
221 if test "x$CONFIG_SHELL" != x; then :
222 # We cannot yet assume a decent shell, so we have to provide a
223 # neutralization value for shells without unset; and this also
224 # works around shells that cannot unset nonexistent variables.
225 BASH_ENV=/dev/null
226 ENV=/dev/null
227 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228 export CONFIG_SHELL
229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org and
240 $0: http://gcc.gnu.org/bugs.html about your system,
241 $0: including any error possibly output before this
242 $0: message. Then install a modern shell, or manually run
243 $0: the script under such a shell if you do have one."
245 exit 1
249 SHELL=${CONFIG_SHELL-/bin/sh}
250 export SHELL
251 # Unset more variables known to interfere with behavior of common tools.
252 CLICOLOR_FORCE= GREP_OPTIONS=
253 unset CLICOLOR_FORCE GREP_OPTIONS
255 ## --------------------- ##
256 ## M4sh Shell Functions. ##
257 ## --------------------- ##
258 # as_fn_unset VAR
259 # ---------------
260 # Portably unset VAR.
261 as_fn_unset ()
263 { eval $1=; unset $1;}
265 as_unset=as_fn_unset
267 # as_fn_set_status STATUS
268 # -----------------------
269 # Set $? to STATUS, without forking.
270 as_fn_set_status ()
272 return $1
273 } # as_fn_set_status
275 # as_fn_exit STATUS
276 # -----------------
277 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 as_fn_exit ()
280 set +e
281 as_fn_set_status $1
282 exit $1
283 } # as_fn_exit
285 # as_fn_mkdir_p
286 # -------------
287 # Create "$as_dir" as a directory, including parents if necessary.
288 as_fn_mkdir_p ()
291 case $as_dir in #(
292 -*) as_dir=./$as_dir;;
293 esac
294 test -d "$as_dir" || eval $as_mkdir_p || {
295 as_dirs=
296 while :; do
297 case $as_dir in #(
298 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
299 *) as_qdir=$as_dir;;
300 esac
301 as_dirs="'$as_qdir' $as_dirs"
302 as_dir=`$as_dirname -- "$as_dir" ||
303 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
304 X"$as_dir" : 'X\(//\)[^/]' \| \
305 X"$as_dir" : 'X\(//\)$' \| \
306 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
307 $as_echo X"$as_dir" |
308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
309 s//\1/
312 /^X\(\/\/\)[^/].*/{
313 s//\1/
316 /^X\(\/\/\)$/{
317 s//\1/
320 /^X\(\/\).*/{
321 s//\1/
324 s/.*/./; q'`
325 test -d "$as_dir" && break
326 done
327 test -z "$as_dirs" || eval "mkdir $as_dirs"
328 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
331 } # as_fn_mkdir_p
332 # as_fn_append VAR VALUE
333 # ----------------------
334 # Append the text in VALUE to the end of the definition contained in VAR. Take
335 # advantage of any shell optimizations that allow amortized linear growth over
336 # repeated appends, instead of the typical quadratic growth present in naive
337 # implementations.
338 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
339 eval 'as_fn_append ()
341 eval $1+=\$2
343 else
344 as_fn_append ()
346 eval $1=\$$1\$2
348 fi # as_fn_append
350 # as_fn_arith ARG...
351 # ------------------
352 # Perform arithmetic evaluation on the ARGs, and store the result in the
353 # global $as_val. Take advantage of shells that can avoid forks. The arguments
354 # must be portable across $(()) and expr.
355 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
356 eval 'as_fn_arith ()
358 as_val=$(( $* ))
360 else
361 as_fn_arith ()
363 as_val=`expr "$@" || test $? -eq 1`
365 fi # as_fn_arith
368 # as_fn_error ERROR [LINENO LOG_FD]
369 # ---------------------------------
370 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
371 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
372 # script with status $?, using 1 if that was 0.
373 as_fn_error ()
375 as_status=$?; test $as_status -eq 0 && as_status=1
376 if test "$3"; then
377 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
378 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
380 $as_echo "$as_me: error: $1" >&2
381 as_fn_exit $as_status
382 } # as_fn_error
384 if expr a : '\(a\)' >/dev/null 2>&1 &&
385 test "X`expr 00001 : '.*\(...\)'`" = X001; then
386 as_expr=expr
387 else
388 as_expr=false
391 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
392 as_basename=basename
393 else
394 as_basename=false
397 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
398 as_dirname=dirname
399 else
400 as_dirname=false
403 as_me=`$as_basename -- "$0" ||
404 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
405 X"$0" : 'X\(//\)$' \| \
406 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 $as_echo X/"$0" |
408 sed '/^.*\/\([^/][^/]*\)\/*$/{
409 s//\1/
412 /^X\/\(\/\/\)$/{
413 s//\1/
416 /^X\/\(\/\).*/{
417 s//\1/
420 s/.*/./; q'`
422 # Avoid depending upon Character Ranges.
423 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
424 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
425 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
426 as_cr_digits='0123456789'
427 as_cr_alnum=$as_cr_Letters$as_cr_digits
430 as_lineno_1=$LINENO as_lineno_1a=$LINENO
431 as_lineno_2=$LINENO as_lineno_2a=$LINENO
432 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
433 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
434 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 sed -n '
437 /[$]LINENO/=
438 ' <$as_myself |
439 sed '
440 s/[$]LINENO.*/&-/
441 t lineno
443 :lineno
445 :loop
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 t loop
448 s/-\n.*//
449 ' >$as_me.lineno &&
450 chmod +x "$as_me.lineno" ||
451 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
457 # Exit status is that of the last command.
458 exit
461 ECHO_C= ECHO_N= ECHO_T=
462 case `echo -n x` in #(((((
463 -n*)
464 case `echo 'xy\c'` in
465 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
466 xy) ECHO_C='\c';;
467 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 ECHO_T=' ';;
469 esac;;
471 ECHO_N='-n';;
472 esac
474 rm -f conf$$ conf$$.exe conf$$.file
475 if test -d conf$$.dir; then
476 rm -f conf$$.dir/conf$$.file
477 else
478 rm -f conf$$.dir
479 mkdir conf$$.dir 2>/dev/null
481 if (echo >conf$$.file) 2>/dev/null; then
482 if ln -s conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s='ln -s'
484 # ... but there are two gotchas:
485 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
486 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
487 # In both cases, we have to default to `cp -p'.
488 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489 as_ln_s='cp -p'
490 elif ln conf$$.file conf$$ 2>/dev/null; then
491 as_ln_s=ln
492 else
493 as_ln_s='cp -p'
495 else
496 as_ln_s='cp -p'
498 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
499 rmdir conf$$.dir 2>/dev/null
501 if mkdir -p . 2>/dev/null; then
502 as_mkdir_p='mkdir -p "$as_dir"'
503 else
504 test -d ./-p && rmdir ./-p
505 as_mkdir_p=false
508 if test -x / >/dev/null 2>&1; then
509 as_test_x='test -x'
510 else
511 if ls -dL / >/dev/null 2>&1; then
512 as_ls_L_option=L
513 else
514 as_ls_L_option=
516 as_test_x='
517 eval sh -c '\''
518 if test -d "$1"; then
519 test -d "$1/.";
520 else
521 case $1 in #(
522 -*)set "./$1";;
523 esac;
524 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
525 ???[sx]*):;;*)false;;esac;fi
526 '\'' sh
529 as_executable_p=$as_test_x
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 SHELL=${CONFIG_SHELL-/bin/sh}
540 exec 7<&0 </dev/null 6>&1
542 # Name of the host.
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548 # Initializations.
550 ac_default_prefix=/usr/local
551 ac_clean_files=
552 ac_config_libobj_dir=.
553 LIBOBJS=
554 cross_compiling=no
555 subdirs=
556 MFLAGS=
557 MAKEFLAGS=
559 # Identity of this package.
560 PACKAGE_NAME='libffi'
561 PACKAGE_TARNAME='libffi'
562 PACKAGE_VERSION='3.0.11'
563 PACKAGE_STRING='libffi 3.0.11'
564 PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
565 PACKAGE_URL=''
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #ifdef HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #ifdef HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #ifdef STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # ifdef HAVE_STDLIB_H
581 # include <stdlib.h>
582 # endif
583 #endif
584 #ifdef HAVE_STRING_H
585 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
586 # include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #ifdef HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #ifdef HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #ifdef HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #ifdef HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
603 ac_subst_vars='am__EXEEXT_FALSE
604 am__EXEEXT_TRUE
605 LTLIBOBJS
606 LIBOBJS
607 toolexeclibdir
608 toolexecdir
609 FFI_DEBUG_FALSE
610 FFI_DEBUG_TRUE
611 TARGETDIR
612 TARGET
613 FFI_EXEC_TRAMPOLINE_TABLE
614 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
615 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
616 HAVE_LONG_DOUBLE
617 ALLOCA
618 TILE_FALSE
619 TILE_TRUE
620 PA64_HPUX_FALSE
621 PA64_HPUX_TRUE
622 PA_HPUX_FALSE
623 PA_HPUX_TRUE
624 PA_LINUX_FALSE
625 PA_LINUX_TRUE
626 SH64_FALSE
627 SH64_TRUE
628 SH_FALSE
629 SH_TRUE
630 X86_64_FALSE
631 X86_64_TRUE
632 S390_FALSE
633 S390_TRUE
634 FRV_FALSE
635 FRV_TRUE
636 LIBFFI_CRIS_FALSE
637 LIBFFI_CRIS_TRUE
638 AVR32_FALSE
639 AVR32_TRUE
640 ARM_FALSE
641 ARM_TRUE
642 AARCH64_FALSE
643 AARCH64_TRUE
644 POWERPC_FREEBSD_FALSE
645 POWERPC_FREEBSD_TRUE
646 POWERPC_DARWIN_FALSE
647 POWERPC_DARWIN_TRUE
648 POWERPC_AIX_FALSE
649 POWERPC_AIX_TRUE
650 POWERPC_FALSE
651 POWERPC_TRUE
652 M68K_FALSE
653 M68K_TRUE
654 M32R_FALSE
655 M32R_TRUE
656 IA64_FALSE
657 IA64_TRUE
658 ALPHA_FALSE
659 ALPHA_TRUE
660 X86_DARWIN_FALSE
661 X86_DARWIN_TRUE
662 X86_WIN64_FALSE
663 X86_WIN64_TRUE
664 X86_WIN32_FALSE
665 X86_WIN32_TRUE
666 X86_FREEBSD_FALSE
667 X86_FREEBSD_TRUE
668 X86_FALSE
669 X86_TRUE
670 SPARC_FALSE
671 SPARC_TRUE
672 BFIN_FALSE
673 BFIN_TRUE
674 MIPS_FALSE
675 MIPS_TRUE
676 AM_LTLDFLAGS
677 AM_RUNTESTFLAGS
678 TESTSUBDIR_FALSE
679 TESTSUBDIR_TRUE
680 MAINT
681 MAINTAINER_MODE_FALSE
682 MAINTAINER_MODE_TRUE
684 OTOOL64
685 OTOOL
686 LIPO
687 NMEDIT
688 DSYMUTIL
689 RANLIB
691 OBJDUMP
692 LN_S
694 ac_ct_DUMPBIN
695 DUMPBIN
697 FGREP
698 EGREP
699 GREP
701 LIBTOOL
702 am__fastdepCCAS_FALSE
703 am__fastdepCCAS_TRUE
704 CCASDEPMODE
705 CCASFLAGS
706 CCAS
707 am__fastdepCC_FALSE
708 am__fastdepCC_TRUE
709 CCDEPMODE
710 AMDEPBACKSLASH
711 AMDEP_FALSE
712 AMDEP_TRUE
713 am__quote
714 am__include
715 DEPDIR
716 OBJEXT
717 EXEEXT
718 ac_ct_CC
719 CPPFLAGS
720 LDFLAGS
721 CFLAGS
723 GENINSRC_FALSE
724 GENINSRC_TRUE
725 BUILD_INFO_FALSE
726 BUILD_INFO_TRUE
727 am__untar
728 am__tar
729 AMTAR
730 am__leading_dot
731 SET_MAKE
733 mkdir_p
734 MKDIR_P
735 INSTALL_STRIP_PROGRAM
736 STRIP
737 install_sh
738 MAKEINFO
739 AUTOHEADER
740 AUTOMAKE
741 AUTOCONF
742 ACLOCAL
743 VERSION
744 PACKAGE
745 CYGPATH_W
746 am__isrc
747 INSTALL_DATA
748 INSTALL_SCRIPT
749 INSTALL_PROGRAM
750 target_os
751 target_vendor
752 target_cpu
753 target
754 host_os
755 host_vendor
756 host_cpu
757 host
758 build_os
759 build_vendor
760 build_cpu
761 build
762 multi_basedir
763 target_alias
764 host_alias
765 build_alias
766 LIBS
767 ECHO_T
768 ECHO_N
769 ECHO_C
770 DEFS
771 mandir
772 localedir
773 libdir
774 psdir
775 pdfdir
776 dvidir
777 htmldir
778 infodir
779 docdir
780 oldincludedir
781 includedir
782 localstatedir
783 sharedstatedir
784 sysconfdir
785 datadir
786 datarootdir
787 libexecdir
788 sbindir
789 bindir
790 program_transform_name
791 prefix
792 exec_prefix
793 PACKAGE_URL
794 PACKAGE_BUGREPORT
795 PACKAGE_STRING
796 PACKAGE_VERSION
797 PACKAGE_TARNAME
798 PACKAGE_NAME
799 PATH_SEPARATOR
800 SHELL'
801 ac_subst_files=''
802 ac_user_opts='
803 enable_option_checking
804 enable_multilib
805 enable_generated_files_in_srcdir
806 enable_dependency_tracking
807 enable_shared
808 enable_static
809 with_pic
810 enable_fast_install
811 with_gnu_ld
812 enable_libtool_lock
813 enable_maintainer_mode
814 enable_pax_emutramp
815 enable_debug
816 enable_structs
817 enable_raw_api
818 enable_purify_safety
820 ac_precious_vars='build_alias
821 host_alias
822 target_alias
823 CCAS
824 CCASFLAGS
826 CPPFLAGS'
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=yes ;;
891 esac
893 # Accept the important Cygnus configure options, so we can diagnose typos.
895 case $ac_dashdash$ac_option in
897 ac_dashdash=yes ;;
899 -bindir | --bindir | --bindi | --bind | --bin | --bi)
900 ac_prev=bindir ;;
901 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
902 bindir=$ac_optarg ;;
904 -build | --build | --buil | --bui | --bu)
905 ac_prev=build_alias ;;
906 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907 build_alias=$ac_optarg ;;
909 -cache-file | --cache-file | --cache-fil | --cache-fi \
910 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911 ac_prev=cache_file ;;
912 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914 cache_file=$ac_optarg ;;
916 --config-cache | -C)
917 cache_file=config.cache ;;
919 -datadir | --datadir | --datadi | --datad)
920 ac_prev=datadir ;;
921 -datadir=* | --datadir=* | --datadi=* | --datad=*)
922 datadir=$ac_optarg ;;
924 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925 | --dataroo | --dataro | --datar)
926 ac_prev=datarootdir ;;
927 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929 datarootdir=$ac_optarg ;;
931 -disable-* | --disable-*)
932 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935 as_fn_error "invalid feature name: $ac_useropt"
936 ac_useropt_orig=$ac_useropt
937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938 case $ac_user_opts in
940 "enable_$ac_useropt"
941 "*) ;;
942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
943 ac_unrecognized_sep=', ';;
944 esac
945 eval enable_$ac_useropt=no ;;
947 -docdir | --docdir | --docdi | --doc | --do)
948 ac_prev=docdir ;;
949 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
950 docdir=$ac_optarg ;;
952 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
953 ac_prev=dvidir ;;
954 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
955 dvidir=$ac_optarg ;;
957 -enable-* | --enable-*)
958 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
961 as_fn_error "invalid feature name: $ac_useropt"
962 ac_useropt_orig=$ac_useropt
963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
966 "enable_$ac_useropt"
967 "*) ;;
968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
969 ac_unrecognized_sep=', ';;
970 esac
971 eval enable_$ac_useropt=\$ac_optarg ;;
973 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
974 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
975 | --exec | --exe | --ex)
976 ac_prev=exec_prefix ;;
977 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
978 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
979 | --exec=* | --exe=* | --ex=*)
980 exec_prefix=$ac_optarg ;;
982 -gas | --gas | --ga | --g)
983 # Obsolete; use --with-gas.
984 with_gas=yes ;;
986 -help | --help | --hel | --he | -h)
987 ac_init_help=long ;;
988 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
989 ac_init_help=recursive ;;
990 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
991 ac_init_help=short ;;
993 -host | --host | --hos | --ho)
994 ac_prev=host_alias ;;
995 -host=* | --host=* | --hos=* | --ho=*)
996 host_alias=$ac_optarg ;;
998 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
999 ac_prev=htmldir ;;
1000 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1001 | --ht=*)
1002 htmldir=$ac_optarg ;;
1004 -includedir | --includedir | --includedi | --included | --include \
1005 | --includ | --inclu | --incl | --inc)
1006 ac_prev=includedir ;;
1007 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1008 | --includ=* | --inclu=* | --incl=* | --inc=*)
1009 includedir=$ac_optarg ;;
1011 -infodir | --infodir | --infodi | --infod | --info | --inf)
1012 ac_prev=infodir ;;
1013 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1014 infodir=$ac_optarg ;;
1016 -libdir | --libdir | --libdi | --libd)
1017 ac_prev=libdir ;;
1018 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1019 libdir=$ac_optarg ;;
1021 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1022 | --libexe | --libex | --libe)
1023 ac_prev=libexecdir ;;
1024 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1025 | --libexe=* | --libex=* | --libe=*)
1026 libexecdir=$ac_optarg ;;
1028 -localedir | --localedir | --localedi | --localed | --locale)
1029 ac_prev=localedir ;;
1030 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1031 localedir=$ac_optarg ;;
1033 -localstatedir | --localstatedir | --localstatedi | --localstated \
1034 | --localstate | --localstat | --localsta | --localst | --locals)
1035 ac_prev=localstatedir ;;
1036 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1037 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1038 localstatedir=$ac_optarg ;;
1040 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1041 ac_prev=mandir ;;
1042 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1043 mandir=$ac_optarg ;;
1045 -nfp | --nfp | --nf)
1046 # Obsolete; use --without-fp.
1047 with_fp=no ;;
1049 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1050 | --no-cr | --no-c | -n)
1051 no_create=yes ;;
1053 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1054 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1055 no_recursion=yes ;;
1057 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1058 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1059 | --oldin | --oldi | --old | --ol | --o)
1060 ac_prev=oldincludedir ;;
1061 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1062 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1063 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1064 oldincludedir=$ac_optarg ;;
1066 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1067 ac_prev=prefix ;;
1068 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1069 prefix=$ac_optarg ;;
1071 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1072 | --program-pre | --program-pr | --program-p)
1073 ac_prev=program_prefix ;;
1074 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1075 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1076 program_prefix=$ac_optarg ;;
1078 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1079 | --program-suf | --program-su | --program-s)
1080 ac_prev=program_suffix ;;
1081 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1082 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1083 program_suffix=$ac_optarg ;;
1085 -program-transform-name | --program-transform-name \
1086 | --program-transform-nam | --program-transform-na \
1087 | --program-transform-n | --program-transform- \
1088 | --program-transform | --program-transfor \
1089 | --program-transfo | --program-transf \
1090 | --program-trans | --program-tran \
1091 | --progr-tra | --program-tr | --program-t)
1092 ac_prev=program_transform_name ;;
1093 -program-transform-name=* | --program-transform-name=* \
1094 | --program-transform-nam=* | --program-transform-na=* \
1095 | --program-transform-n=* | --program-transform-=* \
1096 | --program-transform=* | --program-transfor=* \
1097 | --program-transfo=* | --program-transf=* \
1098 | --program-trans=* | --program-tran=* \
1099 | --progr-tra=* | --program-tr=* | --program-t=*)
1100 program_transform_name=$ac_optarg ;;
1102 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1103 ac_prev=pdfdir ;;
1104 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1105 pdfdir=$ac_optarg ;;
1107 -psdir | --psdir | --psdi | --psd | --ps)
1108 ac_prev=psdir ;;
1109 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1110 psdir=$ac_optarg ;;
1112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1113 | -silent | --silent | --silen | --sile | --sil)
1114 silent=yes ;;
1116 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1117 ac_prev=sbindir ;;
1118 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1119 | --sbi=* | --sb=*)
1120 sbindir=$ac_optarg ;;
1122 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1123 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1124 | --sharedst | --shareds | --shared | --share | --shar \
1125 | --sha | --sh)
1126 ac_prev=sharedstatedir ;;
1127 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1128 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1129 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1130 | --sha=* | --sh=*)
1131 sharedstatedir=$ac_optarg ;;
1133 -site | --site | --sit)
1134 ac_prev=site ;;
1135 -site=* | --site=* | --sit=*)
1136 site=$ac_optarg ;;
1138 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1139 ac_prev=srcdir ;;
1140 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1141 srcdir=$ac_optarg ;;
1143 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1144 | --syscon | --sysco | --sysc | --sys | --sy)
1145 ac_prev=sysconfdir ;;
1146 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1147 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1148 sysconfdir=$ac_optarg ;;
1150 -target | --target | --targe | --targ | --tar | --ta | --t)
1151 ac_prev=target_alias ;;
1152 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1153 target_alias=$ac_optarg ;;
1155 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1156 verbose=yes ;;
1158 -version | --version | --versio | --versi | --vers | -V)
1159 ac_init_version=: ;;
1161 -with-* | --with-*)
1162 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 as_fn_error "invalid package name: $ac_useropt"
1166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1170 "with_$ac_useropt"
1171 "*) ;;
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
1174 esac
1175 eval with_$ac_useropt=\$ac_optarg ;;
1177 -without-* | --without-*)
1178 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 as_fn_error "invalid package name: $ac_useropt"
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1186 "with_$ac_useropt"
1187 "*) ;;
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1190 esac
1191 eval with_$ac_useropt=no ;;
1193 --x)
1194 # Obsolete; use --with-x.
1195 with_x=yes ;;
1197 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1198 | --x-incl | --x-inc | --x-in | --x-i)
1199 ac_prev=x_includes ;;
1200 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1201 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1202 x_includes=$ac_optarg ;;
1204 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1205 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1206 ac_prev=x_libraries ;;
1207 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1208 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1209 x_libraries=$ac_optarg ;;
1211 -*) as_fn_error "unrecognized option: \`$ac_option'
1212 Try \`$0 --help' for more information."
1215 *=*)
1216 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1217 # Reject names that are not valid shell variable names.
1218 case $ac_envvar in #(
1219 '' | [0-9]* | *[!_$as_cr_alnum]* )
1220 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1221 esac
1222 eval $ac_envvar=\$ac_optarg
1223 export $ac_envvar ;;
1226 # FIXME: should be removed in autoconf 3.0.
1227 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1228 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1230 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1233 esac
1234 done
1236 if test -n "$ac_prev"; then
1237 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1238 as_fn_error "missing argument to $ac_option"
1241 if test -n "$ac_unrecognized_opts"; then
1242 case $enable_option_checking in
1243 no) ;;
1244 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1245 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1246 esac
1249 # Check all directory arguments for consistency.
1250 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1251 datadir sysconfdir sharedstatedir localstatedir includedir \
1252 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1253 libdir localedir mandir
1255 eval ac_val=\$$ac_var
1256 # Remove trailing slashes.
1257 case $ac_val in
1258 */ )
1259 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1260 eval $ac_var=\$ac_val;;
1261 esac
1262 # Be sure to have absolute directory names.
1263 case $ac_val in
1264 [\\/$]* | ?:[\\/]* ) continue;;
1265 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1266 esac
1267 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1268 done
1270 # There might be people who depend on the old broken behavior: `$host'
1271 # used to hold the argument of --host etc.
1272 # FIXME: To remove some day.
1273 build=$build_alias
1274 host=$host_alias
1275 target=$target_alias
1277 # FIXME: To remove some day.
1278 if test "x$host_alias" != x; then
1279 if test "x$build_alias" = x; then
1280 cross_compiling=maybe
1281 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1282 If a cross compiler is detected then cross compile mode will be used." >&2
1283 elif test "x$build_alias" != "x$host_alias"; then
1284 cross_compiling=yes
1288 ac_tool_prefix=
1289 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291 test "$silent" = yes && exec 6>/dev/null
1294 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1295 ac_ls_di=`ls -di .` &&
1296 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1297 as_fn_error "working directory cannot be determined"
1298 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1299 as_fn_error "pwd does not report name of working directory"
1302 # Find the source files, if location was not specified.
1303 if test -z "$srcdir"; then
1304 ac_srcdir_defaulted=yes
1305 # Try the directory containing this script, then the parent directory.
1306 ac_confdir=`$as_dirname -- "$as_myself" ||
1307 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1308 X"$as_myself" : 'X\(//\)[^/]' \| \
1309 X"$as_myself" : 'X\(//\)$' \| \
1310 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1311 $as_echo X"$as_myself" |
1312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1313 s//\1/
1316 /^X\(\/\/\)[^/].*/{
1317 s//\1/
1320 /^X\(\/\/\)$/{
1321 s//\1/
1324 /^X\(\/\).*/{
1325 s//\1/
1328 s/.*/./; q'`
1329 srcdir=$ac_confdir
1330 if test ! -r "$srcdir/$ac_unique_file"; then
1331 srcdir=..
1333 else
1334 ac_srcdir_defaulted=no
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1337 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1338 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1340 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1341 ac_abs_confdir=`(
1342 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1343 pwd)`
1344 # When building in place, set srcdir=.
1345 if test "$ac_abs_confdir" = "$ac_pwd"; then
1346 srcdir=.
1348 # Remove unnecessary trailing slashes from srcdir.
1349 # Double slashes in file names in object file debugging info
1350 # mess up M-x gdb in Emacs.
1351 case $srcdir in
1352 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1353 esac
1354 for ac_var in $ac_precious_vars; do
1355 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1356 eval ac_env_${ac_var}_value=\$${ac_var}
1357 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1359 done
1362 # Report the --help message.
1364 if test "$ac_init_help" = "long"; then
1365 # Omit some internal or obsolete options to make the list less imposing.
1366 # This message is too long to be a string in the A/UX 3.1 sh.
1367 cat <<_ACEOF
1368 \`configure' configures libffi 3.0.11 to adapt to many kinds of systems.
1370 Usage: $0 [OPTION]... [VAR=VALUE]...
1372 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1373 VAR=VALUE. See below for descriptions of some of the useful variables.
1375 Defaults for the options are specified in brackets.
1377 Configuration:
1378 -h, --help display this help and exit
1379 --help=short display options specific to this package
1380 --help=recursive display the short help of all the included packages
1381 -V, --version display version information and exit
1382 -q, --quiet, --silent do not print \`checking...' messages
1383 --cache-file=FILE cache test results in FILE [disabled]
1384 -C, --config-cache alias for \`--cache-file=config.cache'
1385 -n, --no-create do not create output files
1386 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1388 Installation directories:
1389 --prefix=PREFIX install architecture-independent files in PREFIX
1390 [$ac_default_prefix]
1391 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1392 [PREFIX]
1394 By default, \`make install' will install all the files in
1395 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1396 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1397 for instance \`--prefix=\$HOME'.
1399 For better control, use the options below.
1401 Fine tuning of the installation directories:
1402 --bindir=DIR user executables [EPREFIX/bin]
1403 --sbindir=DIR system admin executables [EPREFIX/sbin]
1404 --libexecdir=DIR program executables [EPREFIX/libexec]
1405 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1406 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1407 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1408 --libdir=DIR object code libraries [EPREFIX/lib]
1409 --includedir=DIR C header files [PREFIX/include]
1410 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1411 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1412 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1413 --infodir=DIR info documentation [DATAROOTDIR/info]
1414 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1415 --mandir=DIR man documentation [DATAROOTDIR/man]
1416 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1417 --htmldir=DIR html documentation [DOCDIR]
1418 --dvidir=DIR dvi documentation [DOCDIR]
1419 --pdfdir=DIR pdf documentation [DOCDIR]
1420 --psdir=DIR ps documentation [DOCDIR]
1421 _ACEOF
1423 cat <<\_ACEOF
1425 Program names:
1426 --program-prefix=PREFIX prepend PREFIX to installed program names
1427 --program-suffix=SUFFIX append SUFFIX to installed program names
1428 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1430 System types:
1431 --build=BUILD configure for building on BUILD [guessed]
1432 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1433 --target=TARGET configure for building compilers for TARGET [HOST]
1434 _ACEOF
1437 if test -n "$ac_init_help"; then
1438 case $ac_init_help in
1439 short | recursive ) echo "Configuration of libffi 3.0.11:";;
1440 esac
1441 cat <<\_ACEOF
1443 Optional Features:
1444 --disable-option-checking ignore unrecognized --enable/--with options
1445 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1446 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1447 --enable-multilib build many library versions (default)
1448 --enable-generated-files-in-srcdir
1449 put copies of generated files in source dir intended
1450 for creating source tarballs for users without
1451 texinfo bison or flex
1452 --disable-dependency-tracking speeds up one-time build
1453 --enable-dependency-tracking do not reject slow dependency extractors
1454 --enable-shared[=PKGS] build shared libraries [default=yes]
1455 --enable-static[=PKGS] build static libraries [default=yes]
1456 --enable-fast-install[=PKGS]
1457 optimize for fast installation [default=yes]
1458 --disable-libtool-lock avoid locking (might break parallel builds)
1459 --enable-maintainer-mode enable make rules and dependencies not useful
1460 (and sometimes confusing) to the casual installer
1461 --enable-pax_emutramp enable pax emulated trampolines, for we can't use PROT_EXEC
1462 --enable-debug debugging mode
1463 --disable-structs omit code for struct support
1464 --disable-raw-api make the raw api unavailable
1465 --enable-purify-safety purify-safe mode
1467 Optional Packages:
1468 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1469 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1470 --with-pic try to use only PIC/non-PIC objects [default=use
1471 both]
1472 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1474 Some influential environment variables:
1475 CC C compiler command
1476 CFLAGS C compiler flags
1477 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1478 nonstandard directory <lib dir>
1479 LIBS libraries to pass to the linker, e.g. -l<library>
1480 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1481 you have headers in a nonstandard directory <include dir>
1482 CCAS assembler compiler command (defaults to CC)
1483 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1484 CPP C preprocessor
1486 Use these variables to override the choices made by `configure' or to help
1487 it to find libraries and programs with nonstandard names/locations.
1489 Report bugs to <http://gcc.gnu.org/bugs.html>.
1490 _ACEOF
1491 ac_status=$?
1494 if test "$ac_init_help" = "recursive"; then
1495 # If there are subdirs, report their specific --help.
1496 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1497 test -d "$ac_dir" ||
1498 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1499 continue
1500 ac_builddir=.
1502 case "$ac_dir" in
1503 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1506 # A ".." for each directory in $ac_dir_suffix.
1507 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1508 case $ac_top_builddir_sub in
1509 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1511 esac ;;
1512 esac
1513 ac_abs_top_builddir=$ac_pwd
1514 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1515 # for backward compatibility:
1516 ac_top_builddir=$ac_top_build_prefix
1518 case $srcdir in
1519 .) # We are building in place.
1520 ac_srcdir=.
1521 ac_top_srcdir=$ac_top_builddir_sub
1522 ac_abs_top_srcdir=$ac_pwd ;;
1523 [\\/]* | ?:[\\/]* ) # Absolute name.
1524 ac_srcdir=$srcdir$ac_dir_suffix;
1525 ac_top_srcdir=$srcdir
1526 ac_abs_top_srcdir=$srcdir ;;
1527 *) # Relative name.
1528 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1529 ac_top_srcdir=$ac_top_build_prefix$srcdir
1530 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1531 esac
1532 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1534 cd "$ac_dir" || { ac_status=$?; continue; }
1535 # Check for guested configure.
1536 if test -f "$ac_srcdir/configure.gnu"; then
1537 echo &&
1538 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1539 elif test -f "$ac_srcdir/configure"; then
1540 echo &&
1541 $SHELL "$ac_srcdir/configure" --help=recursive
1542 else
1543 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1544 fi || ac_status=$?
1545 cd "$ac_pwd" || { ac_status=$?; break; }
1546 done
1549 test -n "$ac_init_help" && exit $ac_status
1550 if $ac_init_version; then
1551 cat <<\_ACEOF
1552 libffi configure 3.0.11
1553 generated by GNU Autoconf 2.64
1555 Copyright (C) 2009 Free Software Foundation, Inc.
1556 This configure script is free software; the Free Software Foundation
1557 gives unlimited permission to copy, distribute and modify it.
1558 _ACEOF
1559 exit
1562 ## ------------------------ ##
1563 ## Autoconf initialization. ##
1564 ## ------------------------ ##
1566 # ac_fn_c_try_compile LINENO
1567 # --------------------------
1568 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1569 ac_fn_c_try_compile ()
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 rm -f conftest.$ac_objext
1573 if { { ac_try="$ac_compile"
1574 case "(($ac_try" in
1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1577 esac
1578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 $as_echo "$ac_try_echo"; } >&5
1580 (eval "$ac_compile") 2>conftest.err
1581 ac_status=$?
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } && {
1589 test -z "$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1591 } && test -s conftest.$ac_objext; then :
1592 ac_retval=0
1593 else
1594 $as_echo "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.$ac_ext >&5
1597 ac_retval=1
1599 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1600 return $ac_retval
1602 } # ac_fn_c_try_compile
1604 # ac_fn_c_try_link LINENO
1605 # -----------------------
1606 # Try to link conftest.$ac_ext, and return whether this succeeded.
1607 ac_fn_c_try_link ()
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 rm -f conftest.$ac_objext conftest$ac_exeext
1611 if { { ac_try="$ac_link"
1612 case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615 esac
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_link") 2>conftest.err
1619 ac_status=$?
1620 if test -s conftest.err; then
1621 grep -v '^ *+' conftest.err >conftest.er1
1622 cat conftest.er1 >&5
1623 mv -f conftest.er1 conftest.err
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } && {
1627 test -z "$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1629 } && test -s conftest$ac_exeext && {
1630 test "$cross_compiling" = yes ||
1631 $as_test_x conftest$ac_exeext
1632 }; then :
1633 ac_retval=0
1634 else
1635 $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1638 ac_retval=1
1640 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1641 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1642 # interfere with the next link command; also delete a directory that is
1643 # left behind by Apple's compiler. We do this before executing the actions.
1644 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1645 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1646 return $ac_retval
1648 } # ac_fn_c_try_link
1650 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1651 # -------------------------------------------------------
1652 # Tests whether HEADER exists and can be compiled using the include files in
1653 # INCLUDES, setting the cache variable VAR accordingly.
1654 ac_fn_c_check_header_compile ()
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1658 $as_echo_n "checking for $2... " >&6; }
1659 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1660 $as_echo_n "(cached) " >&6
1661 else
1662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1663 /* end confdefs.h. */
1665 #include <$2>
1666 _ACEOF
1667 if ac_fn_c_try_compile "$LINENO"; then :
1668 eval "$3=yes"
1669 else
1670 eval "$3=no"
1672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1674 eval ac_res=\$$3
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1676 $as_echo "$ac_res" >&6; }
1677 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1679 } # ac_fn_c_check_header_compile
1681 # ac_fn_c_try_cpp LINENO
1682 # ----------------------
1683 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1684 ac_fn_c_try_cpp ()
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 if { { ac_try="$ac_cpp conftest.$ac_ext"
1688 case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1695 ac_status=$?
1696 if test -s conftest.err; then
1697 grep -v '^ *+' conftest.err >conftest.er1
1698 cat conftest.er1 >&5
1699 mv -f conftest.er1 conftest.err
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } >/dev/null && {
1703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1704 test ! -s conftest.err
1705 }; then :
1706 ac_retval=0
1707 else
1708 $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1711 ac_retval=1
1713 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1714 return $ac_retval
1716 } # ac_fn_c_try_cpp
1718 # ac_fn_c_try_run LINENO
1719 # ----------------------
1720 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1721 # that executables *can* be run.
1722 ac_fn_c_try_run ()
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 if { { ac_try="$ac_link"
1726 case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_link") 2>&5
1733 ac_status=$?
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1736 { { case "(($ac_try" in
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1739 esac
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_try") 2>&5
1743 ac_status=$?
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; }; }; then :
1746 ac_retval=0
1747 else
1748 $as_echo "$as_me: program exited with status $ac_status" >&5
1749 $as_echo "$as_me: failed program was:" >&5
1750 sed 's/^/| /' conftest.$ac_ext >&5
1752 ac_retval=$ac_status
1754 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1755 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1756 return $ac_retval
1758 } # ac_fn_c_try_run
1760 # ac_fn_c_check_func LINENO FUNC VAR
1761 # ----------------------------------
1762 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1763 ac_fn_c_check_func ()
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1767 $as_echo_n "checking for $2... " >&6; }
1768 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1769 $as_echo_n "(cached) " >&6
1770 else
1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772 /* end confdefs.h. */
1773 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1775 #define $2 innocuous_$2
1777 /* System header to define __stub macros and hopefully few prototypes,
1778 which can conflict with char $2 (); below.
1779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1780 <limits.h> exists even on freestanding compilers. */
1782 #ifdef __STDC__
1783 # include <limits.h>
1784 #else
1785 # include <assert.h>
1786 #endif
1788 #undef $2
1790 /* Override any GCC internal prototype to avoid an error.
1791 Use char because int might match the return type of a GCC
1792 builtin and then its argument prototype would still apply. */
1793 #ifdef __cplusplus
1794 extern "C"
1795 #endif
1796 char $2 ();
1797 /* The GNU C library defines this for functions which it implements
1798 to always fail with ENOSYS. Some functions are actually named
1799 something starting with __ and the normal name is an alias. */
1800 #if defined __stub_$2 || defined __stub___$2
1801 choke me
1802 #endif
1805 main ()
1807 return $2 ();
1809 return 0;
1811 _ACEOF
1812 if ac_fn_c_try_link "$LINENO"; then :
1813 eval "$3=yes"
1814 else
1815 eval "$3=no"
1817 rm -f core conftest.err conftest.$ac_objext \
1818 conftest$ac_exeext conftest.$ac_ext
1820 eval ac_res=\$$3
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1823 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1825 } # ac_fn_c_check_func
1827 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1828 # -------------------------------------------------------
1829 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1830 # the include files in INCLUDES and setting the cache variable VAR
1831 # accordingly.
1832 ac_fn_c_check_header_mongrel ()
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1839 $as_echo_n "(cached) " >&6
1841 eval ac_res=\$$3
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843 $as_echo "$ac_res" >&6; }
1844 else
1845 # Is the header compilable?
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1847 $as_echo_n "checking $2 usability... " >&6; }
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1851 #include <$2>
1852 _ACEOF
1853 if ac_fn_c_try_compile "$LINENO"; then :
1854 ac_header_compiler=yes
1855 else
1856 ac_header_compiler=no
1858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1860 $as_echo "$ac_header_compiler" >&6; }
1862 # Is the header present?
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1864 $as_echo_n "checking $2 presence... " >&6; }
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1867 #include <$2>
1868 _ACEOF
1869 if ac_fn_c_try_cpp "$LINENO"; then :
1870 ac_header_preproc=yes
1871 else
1872 ac_header_preproc=no
1874 rm -f conftest.err conftest.$ac_ext
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1876 $as_echo "$ac_header_preproc" >&6; }
1878 # So? What about this header?
1879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1880 yes:no: )
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1882 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1884 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1886 no:yes:* )
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1888 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1890 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1892 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1894 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1896 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1897 ( cat <<\_ASBOX
1898 ## ------------------------------------------- ##
1899 ## Report this to http://gcc.gnu.org/bugs.html ##
1900 ## ------------------------------------------- ##
1901 _ASBOX
1902 ) | sed "s/^/$as_me: WARNING: /" >&2
1904 esac
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906 $as_echo_n "checking for $2... " >&6; }
1907 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1908 $as_echo_n "(cached) " >&6
1909 else
1910 eval "$3=\$ac_header_compiler"
1912 eval ac_res=\$$3
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 $as_echo "$ac_res" >&6; }
1916 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1918 } # ac_fn_c_check_header_mongrel
1920 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1921 # --------------------------------------------
1922 # Tries to find the compile-time value of EXPR in a program that includes
1923 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1924 # computed
1925 ac_fn_c_compute_int ()
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 if test "$cross_compiling" = yes; then
1929 # Depending upon the size, compute the lo and hi bounds.
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1934 main ()
1936 static int test_array [1 - 2 * !(($2) >= 0)];
1937 test_array [0] = 0
1940 return 0;
1942 _ACEOF
1943 if ac_fn_c_try_compile "$LINENO"; then :
1944 ac_lo=0 ac_mid=0
1945 while :; do
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1950 main ()
1952 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1953 test_array [0] = 0
1956 return 0;
1958 _ACEOF
1959 if ac_fn_c_try_compile "$LINENO"; then :
1960 ac_hi=$ac_mid; break
1961 else
1962 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1963 if test $ac_lo -le $ac_mid; then
1964 ac_lo= ac_hi=
1965 break
1967 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970 done
1971 else
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1976 main ()
1978 static int test_array [1 - 2 * !(($2) < 0)];
1979 test_array [0] = 0
1982 return 0;
1984 _ACEOF
1985 if ac_fn_c_try_compile "$LINENO"; then :
1986 ac_hi=-1 ac_mid=-1
1987 while :; do
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1992 main ()
1994 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1995 test_array [0] = 0
1998 return 0;
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002 ac_lo=$ac_mid; break
2003 else
2004 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2005 if test $ac_mid -le $ac_hi; then
2006 ac_lo= ac_hi=
2007 break
2009 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012 done
2013 else
2014 ac_lo= ac_hi=
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019 # Binary search between lo and hi bounds.
2020 while test "x$ac_lo" != "x$ac_hi"; do
2021 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2026 main ()
2028 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2029 test_array [0] = 0
2032 return 0;
2034 _ACEOF
2035 if ac_fn_c_try_compile "$LINENO"; then :
2036 ac_hi=$ac_mid
2037 else
2038 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 done
2042 case $ac_lo in #((
2043 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2044 '') ac_retval=1 ;;
2045 esac
2046 else
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2050 static long int longval () { return $2; }
2051 static unsigned long int ulongval () { return $2; }
2052 #include <stdio.h>
2053 #include <stdlib.h>
2055 main ()
2058 FILE *f = fopen ("conftest.val", "w");
2059 if (! f)
2060 return 1;
2061 if (($2) < 0)
2063 long int i = longval ();
2064 if (i != ($2))
2065 return 1;
2066 fprintf (f, "%ld", i);
2068 else
2070 unsigned long int i = ulongval ();
2071 if (i != ($2))
2072 return 1;
2073 fprintf (f, "%lu", i);
2075 /* Do not output a trailing newline, as this causes \r\n confusion
2076 on some platforms. */
2077 return ferror (f) || fclose (f) != 0;
2080 return 0;
2082 _ACEOF
2083 if ac_fn_c_try_run "$LINENO"; then :
2084 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2085 else
2086 ac_retval=1
2088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2089 conftest.$ac_objext conftest.beam conftest.$ac_ext
2090 rm -f conftest.val
2093 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2094 return $ac_retval
2096 } # ac_fn_c_compute_int
2097 cat >config.log <<_ACEOF
2098 This file contains any messages produced by compilers while
2099 running configure, to aid debugging if configure makes a mistake.
2101 It was created by libffi $as_me 3.0.11, which was
2102 generated by GNU Autoconf 2.64. Invocation command line was
2104 $ $0 $@
2106 _ACEOF
2107 exec 5>>config.log
2109 cat <<_ASUNAME
2110 ## --------- ##
2111 ## Platform. ##
2112 ## --------- ##
2114 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2115 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2116 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2117 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2118 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2120 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2121 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2123 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2124 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2125 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2126 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2127 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2128 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2129 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2131 _ASUNAME
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134 for as_dir in $PATH
2136 IFS=$as_save_IFS
2137 test -z "$as_dir" && as_dir=.
2138 $as_echo "PATH: $as_dir"
2139 done
2140 IFS=$as_save_IFS
2142 } >&5
2144 cat >&5 <<_ACEOF
2147 ## ----------- ##
2148 ## Core tests. ##
2149 ## ----------- ##
2151 _ACEOF
2154 # Keep a trace of the command line.
2155 # Strip out --no-create and --no-recursion so they do not pile up.
2156 # Strip out --silent because we don't want to record it for future runs.
2157 # Also quote any args containing shell meta-characters.
2158 # Make two passes to allow for proper duplicate-argument suppression.
2159 ac_configure_args=
2160 ac_configure_args0=
2161 ac_configure_args1=
2162 ac_must_keep_next=false
2163 for ac_pass in 1 2
2165 for ac_arg
2167 case $ac_arg in
2168 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2170 | -silent | --silent | --silen | --sile | --sil)
2171 continue ;;
2172 *\'*)
2173 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2174 esac
2175 case $ac_pass in
2176 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2178 as_fn_append ac_configure_args1 " '$ac_arg'"
2179 if test $ac_must_keep_next = true; then
2180 ac_must_keep_next=false # Got value, back to normal.
2181 else
2182 case $ac_arg in
2183 *=* | --config-cache | -C | -disable-* | --disable-* \
2184 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2185 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2186 | -with-* | --with-* | -without-* | --without-* | --x)
2187 case "$ac_configure_args0 " in
2188 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2189 esac
2191 -* ) ac_must_keep_next=true ;;
2192 esac
2194 as_fn_append ac_configure_args " '$ac_arg'"
2196 esac
2197 done
2198 done
2199 { ac_configure_args0=; unset ac_configure_args0;}
2200 { ac_configure_args1=; unset ac_configure_args1;}
2202 # When interrupted or exit'd, cleanup temporary files, and complete
2203 # config.log. We remove comments because anyway the quotes in there
2204 # would cause problems or look ugly.
2205 # WARNING: Use '\'' to represent an apostrophe within the trap.
2206 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2207 trap 'exit_status=$?
2208 # Save into config.log some information that might help in debugging.
2210 echo
2212 cat <<\_ASBOX
2213 ## ---------------- ##
2214 ## Cache variables. ##
2215 ## ---------------- ##
2216 _ASBOX
2217 echo
2218 # The following way of writing the cache mishandles newlines in values,
2220 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2221 eval ac_val=\$$ac_var
2222 case $ac_val in #(
2223 *${as_nl}*)
2224 case $ac_var in #(
2225 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2226 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2227 esac
2228 case $ac_var in #(
2229 _ | IFS | as_nl) ;; #(
2230 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2231 *) { eval $ac_var=; unset $ac_var;} ;;
2232 esac ;;
2233 esac
2234 done
2235 (set) 2>&1 |
2236 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2237 *${as_nl}ac_space=\ *)
2238 sed -n \
2239 "s/'\''/'\''\\\\'\'''\''/g;
2240 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2241 ;; #(
2243 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2245 esac |
2246 sort
2248 echo
2250 cat <<\_ASBOX
2251 ## ----------------- ##
2252 ## Output variables. ##
2253 ## ----------------- ##
2254 _ASBOX
2255 echo
2256 for ac_var in $ac_subst_vars
2258 eval ac_val=\$$ac_var
2259 case $ac_val in
2260 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2261 esac
2262 $as_echo "$ac_var='\''$ac_val'\''"
2263 done | sort
2264 echo
2266 if test -n "$ac_subst_files"; then
2267 cat <<\_ASBOX
2268 ## ------------------- ##
2269 ## File substitutions. ##
2270 ## ------------------- ##
2271 _ASBOX
2272 echo
2273 for ac_var in $ac_subst_files
2275 eval ac_val=\$$ac_var
2276 case $ac_val in
2277 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2278 esac
2279 $as_echo "$ac_var='\''$ac_val'\''"
2280 done | sort
2281 echo
2284 if test -s confdefs.h; then
2285 cat <<\_ASBOX
2286 ## ----------- ##
2287 ## confdefs.h. ##
2288 ## ----------- ##
2289 _ASBOX
2290 echo
2291 cat confdefs.h
2292 echo
2294 test "$ac_signal" != 0 &&
2295 $as_echo "$as_me: caught signal $ac_signal"
2296 $as_echo "$as_me: exit $exit_status"
2297 } >&5
2298 rm -f core *.core core.conftest.* &&
2299 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2300 exit $exit_status
2302 for ac_signal in 1 2 13 15; do
2303 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2304 done
2305 ac_signal=0
2307 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2308 rm -f -r conftest* confdefs.h
2310 $as_echo "/* confdefs.h */" > confdefs.h
2312 # Predefined preprocessor variables.
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_NAME "$PACKAGE_NAME"
2316 _ACEOF
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2320 _ACEOF
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2324 _ACEOF
2326 cat >>confdefs.h <<_ACEOF
2327 #define PACKAGE_STRING "$PACKAGE_STRING"
2328 _ACEOF
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2332 _ACEOF
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE_URL "$PACKAGE_URL"
2336 _ACEOF
2339 # Let the site file select an alternate cache file if it wants to.
2340 # Prefer an explicitly selected file to automatically selected ones.
2341 ac_site_file1=NONE
2342 ac_site_file2=NONE
2343 if test -n "$CONFIG_SITE"; then
2344 ac_site_file1=$CONFIG_SITE
2345 elif test "x$prefix" != xNONE; then
2346 ac_site_file1=$prefix/share/config.site
2347 ac_site_file2=$prefix/etc/config.site
2348 else
2349 ac_site_file1=$ac_default_prefix/share/config.site
2350 ac_site_file2=$ac_default_prefix/etc/config.site
2352 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2354 test "x$ac_site_file" = xNONE && continue
2355 if test -r "$ac_site_file"; then
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2357 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2358 sed 's/^/| /' "$ac_site_file" >&5
2359 . "$ac_site_file"
2361 done
2363 if test -r "$cache_file"; then
2364 # Some versions of bash will fail to source /dev/null (special
2365 # files actually), so we avoid doing that.
2366 if test -f "$cache_file"; then
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2368 $as_echo "$as_me: loading cache $cache_file" >&6;}
2369 case $cache_file in
2370 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2371 *) . "./$cache_file";;
2372 esac
2374 else
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2376 $as_echo "$as_me: creating cache $cache_file" >&6;}
2377 >$cache_file
2380 # Check that the precious variables saved in the cache have kept the same
2381 # value.
2382 ac_cache_corrupted=false
2383 for ac_var in $ac_precious_vars; do
2384 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2385 eval ac_new_set=\$ac_env_${ac_var}_set
2386 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2387 eval ac_new_val=\$ac_env_${ac_var}_value
2388 case $ac_old_set,$ac_new_set in
2389 set,)
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2391 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2392 ac_cache_corrupted=: ;;
2393 ,set)
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2395 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2396 ac_cache_corrupted=: ;;
2397 ,);;
2399 if test "x$ac_old_val" != "x$ac_new_val"; then
2400 # differences in whitespace do not lead to failure.
2401 ac_old_val_w=`echo x $ac_old_val`
2402 ac_new_val_w=`echo x $ac_new_val`
2403 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2405 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2406 ac_cache_corrupted=:
2407 else
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2409 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2410 eval $ac_var=\$ac_old_val
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2413 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2415 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2416 fi;;
2417 esac
2418 # Pass precious variables to config.status.
2419 if test "$ac_new_set" = set; then
2420 case $ac_new_val in
2421 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2422 *) ac_arg=$ac_var=$ac_new_val ;;
2423 esac
2424 case " $ac_configure_args " in
2425 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2426 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2427 esac
2429 done
2430 if $ac_cache_corrupted; then
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2434 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2435 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2437 ## -------------------- ##
2438 ## Main body of script. ##
2439 ## -------------------- ##
2441 ac_ext=c
2442 ac_cpp='$CPP $CPPFLAGS'
2443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2451 ac_config_headers="$ac_config_headers fficonfig.h"
2454 # Default to --enable-multilib
2455 # Check whether --enable-multilib was given.
2456 if test "${enable_multilib+set}" = set; then :
2457 enableval=$enable_multilib; case "$enableval" in
2458 yes) multilib=yes ;;
2459 no) multilib=no ;;
2460 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2461 esac
2462 else
2463 multilib=yes
2467 # We may get other options which we leave undocumented:
2468 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2469 # See config-ml.in if you want the gory details.
2471 if test "$srcdir" = "."; then
2472 if test "$with_target_subdir" != "."; then
2473 multi_basedir="$srcdir/$with_multisrctop../.."
2474 else
2475 multi_basedir="$srcdir/$with_multisrctop.."
2477 else
2478 multi_basedir="$srcdir/.."
2482 # Even if the default multilib is not a cross compilation,
2483 # it may be that some of the other multilibs are.
2484 if test $cross_compiling = no && test $multilib = yes \
2485 && test "x${with_multisubdir}" != x ; then
2486 cross_compiling=maybe
2489 ac_config_commands="$ac_config_commands default-1"
2492 ac_aux_dir=
2493 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2494 for ac_t in install-sh install.sh shtool; do
2495 if test -f "$ac_dir/$ac_t"; then
2496 ac_aux_dir=$ac_dir
2497 ac_install_sh="$ac_aux_dir/$ac_t -c"
2498 break 2
2500 done
2501 done
2502 if test -z "$ac_aux_dir"; then
2503 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2506 # These three variables are undocumented and unsupported,
2507 # and are intended to be withdrawn in a future Autoconf release.
2508 # They can cause serious problems if a builder's source tree is in a directory
2509 # whose full name contains unusual characters.
2510 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2511 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2512 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2515 # Make sure we can run config.sub.
2516 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2517 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2520 $as_echo_n "checking build system type... " >&6; }
2521 if test "${ac_cv_build+set}" = set; then :
2522 $as_echo_n "(cached) " >&6
2523 else
2524 ac_build_alias=$build_alias
2525 test "x$ac_build_alias" = x &&
2526 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2527 test "x$ac_build_alias" = x &&
2528 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2529 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2530 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2534 $as_echo "$ac_cv_build" >&6; }
2535 case $ac_cv_build in
2536 *-*-*) ;;
2537 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2538 esac
2539 build=$ac_cv_build
2540 ac_save_IFS=$IFS; IFS='-'
2541 set x $ac_cv_build
2542 shift
2543 build_cpu=$1
2544 build_vendor=$2
2545 shift; shift
2546 # Remember, the first character of IFS is used to create $*,
2547 # except with old shells:
2548 build_os=$*
2549 IFS=$ac_save_IFS
2550 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2554 $as_echo_n "checking host system type... " >&6; }
2555 if test "${ac_cv_host+set}" = set; then :
2556 $as_echo_n "(cached) " >&6
2557 else
2558 if test "x$host_alias" = x; then
2559 ac_cv_host=$ac_cv_build
2560 else
2561 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2562 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2567 $as_echo "$ac_cv_host" >&6; }
2568 case $ac_cv_host in
2569 *-*-*) ;;
2570 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2571 esac
2572 host=$ac_cv_host
2573 ac_save_IFS=$IFS; IFS='-'
2574 set x $ac_cv_host
2575 shift
2576 host_cpu=$1
2577 host_vendor=$2
2578 shift; shift
2579 # Remember, the first character of IFS is used to create $*,
2580 # except with old shells:
2581 host_os=$*
2582 IFS=$ac_save_IFS
2583 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2587 $as_echo_n "checking target system type... " >&6; }
2588 if test "${ac_cv_target+set}" = set; then :
2589 $as_echo_n "(cached) " >&6
2590 else
2591 if test "x$target_alias" = x; then
2592 ac_cv_target=$ac_cv_host
2593 else
2594 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2595 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2600 $as_echo "$ac_cv_target" >&6; }
2601 case $ac_cv_target in
2602 *-*-*) ;;
2603 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2604 esac
2605 target=$ac_cv_target
2606 ac_save_IFS=$IFS; IFS='-'
2607 set x $ac_cv_target
2608 shift
2609 target_cpu=$1
2610 target_vendor=$2
2611 shift; shift
2612 # Remember, the first character of IFS is used to create $*,
2613 # except with old shells:
2614 target_os=$*
2615 IFS=$ac_save_IFS
2616 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2619 # The aliases save the names the user supplied, while $host etc.
2620 # will get canonicalized.
2621 test -n "$target_alias" &&
2622 test "$program_prefix$program_suffix$program_transform_name" = \
2623 NONENONEs,x,x, &&
2624 program_prefix=${target_alias}-
2626 target_alias=${target_alias-$host_alias}
2628 . ${srcdir}/configure.host
2630 am__api_version='1.11'
2632 # Find a good install program. We prefer a C program (faster),
2633 # so one script is as good as another. But avoid the broken or
2634 # incompatible versions:
2635 # SysV /etc/install, /usr/sbin/install
2636 # SunOS /usr/etc/install
2637 # IRIX /sbin/install
2638 # AIX /bin/install
2639 # AmigaOS /C/install, which installs bootblocks on floppy discs
2640 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2641 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2642 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2643 # OS/2's system install, which has a completely different semantic
2644 # ./install, which can be erroneously created by make from ./install.sh.
2645 # Reject install programs that cannot install multiple files.
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2647 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2648 if test -z "$INSTALL"; then
2649 if test "${ac_cv_path_install+set}" = set; then :
2650 $as_echo_n "(cached) " >&6
2651 else
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 for as_dir in $PATH
2655 IFS=$as_save_IFS
2656 test -z "$as_dir" && as_dir=.
2657 # Account for people who put trailing slashes in PATH elements.
2658 case $as_dir/ in #((
2659 ./ | .// | /[cC]/* | \
2660 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2661 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2662 /usr/ucb/* ) ;;
2664 # OSF1 and SCO ODT 3.0 have their own names for install.
2665 # Don't use installbsd from OSF since it installs stuff as root
2666 # by default.
2667 for ac_prog in ginstall scoinst install; do
2668 for ac_exec_ext in '' $ac_executable_extensions; do
2669 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2670 if test $ac_prog = install &&
2671 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2672 # AIX install. It has an incompatible calling convention.
2674 elif test $ac_prog = install &&
2675 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2676 # program-specific install script used by HP pwplus--don't use.
2678 else
2679 rm -rf conftest.one conftest.two conftest.dir
2680 echo one > conftest.one
2681 echo two > conftest.two
2682 mkdir conftest.dir
2683 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2684 test -s conftest.one && test -s conftest.two &&
2685 test -s conftest.dir/conftest.one &&
2686 test -s conftest.dir/conftest.two
2687 then
2688 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2689 break 3
2693 done
2694 done
2696 esac
2698 done
2699 IFS=$as_save_IFS
2701 rm -rf conftest.one conftest.two conftest.dir
2704 if test "${ac_cv_path_install+set}" = set; then
2705 INSTALL=$ac_cv_path_install
2706 else
2707 # As a last resort, use the slow shell script. Don't cache a
2708 # value for INSTALL within a source directory, because that will
2709 # break other packages using the cache if that directory is
2710 # removed, or if the value is a relative name.
2711 INSTALL=$ac_install_sh
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2715 $as_echo "$INSTALL" >&6; }
2717 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2718 # It thinks the first close brace ends the variable substitution.
2719 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2721 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2723 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2726 $as_echo_n "checking whether build environment is sane... " >&6; }
2727 # Just in case
2728 sleep 1
2729 echo timestamp > conftest.file
2730 # Reject unsafe characters in $srcdir or the absolute working directory
2731 # name. Accept space and tab only in the latter.
2732 am_lf='
2734 case `pwd` in
2735 *[\\\"\#\$\&\'\`$am_lf]*)
2736 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2737 esac
2738 case $srcdir in
2739 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2740 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2741 esac
2743 # Do `set' in a subshell so we don't clobber the current shell's
2744 # arguments. Must try -L first in case configure is actually a
2745 # symlink; some systems play weird games with the mod time of symlinks
2746 # (eg FreeBSD returns the mod time of the symlink's containing
2747 # directory).
2748 if (
2749 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2750 if test "$*" = "X"; then
2751 # -L didn't work.
2752 set X `ls -t "$srcdir/configure" conftest.file`
2754 rm -f conftest.file
2755 if test "$*" != "X $srcdir/configure conftest.file" \
2756 && test "$*" != "X conftest.file $srcdir/configure"; then
2758 # If neither matched, then we have a broken ls. This can happen
2759 # if, for instance, CONFIG_SHELL is bash and it inherits a
2760 # broken ls alias from the environment. This has actually
2761 # happened. Such a system could not be considered "sane".
2762 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2763 alias in your environment" "$LINENO" 5
2766 test "$2" = conftest.file
2768 then
2769 # Ok.
2771 else
2772 as_fn_error "newly created file is older than distributed files!
2773 Check your system clock" "$LINENO" 5
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2776 $as_echo "yes" >&6; }
2777 test "$program_prefix" != NONE &&
2778 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2779 # Use a double $ so make ignores it.
2780 test "$program_suffix" != NONE &&
2781 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2782 # Double any \ or $.
2783 # By default was `s,x,x', remove it if useless.
2784 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2785 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2787 # expand $ac_aux_dir to an absolute path
2788 am_aux_dir=`cd $ac_aux_dir && pwd`
2790 if test x"${MISSING+set}" != xset; then
2791 case $am_aux_dir in
2792 *\ * | *\ *)
2793 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2795 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2796 esac
2798 # Use eval to expand $SHELL
2799 if eval "$MISSING --run true"; then
2800 am_missing_run="$MISSING --run "
2801 else
2802 am_missing_run=
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2804 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2807 if test x"${install_sh}" != xset; then
2808 case $am_aux_dir in
2809 *\ * | *\ *)
2810 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2812 install_sh="\${SHELL} $am_aux_dir/install-sh"
2813 esac
2816 # Installed binaries are usually stripped using `strip' when the user
2817 # run `make install-strip'. However `strip' might not be the right
2818 # tool to use in cross-compilation environments, therefore Automake
2819 # will honor the `STRIP' environment variable to overrule this program.
2820 if test "$cross_compiling" != no; then
2821 if test -n "$ac_tool_prefix"; then
2822 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2823 set dummy ${ac_tool_prefix}strip; ac_word=$2
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if test "${ac_cv_prog_STRIP+set}" = set; then :
2827 $as_echo_n "(cached) " >&6
2828 else
2829 if test -n "$STRIP"; then
2830 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2831 else
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2835 IFS=$as_save_IFS
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 break 2
2843 done
2844 done
2845 IFS=$as_save_IFS
2849 STRIP=$ac_cv_prog_STRIP
2850 if test -n "$STRIP"; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2852 $as_echo "$STRIP" >&6; }
2853 else
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855 $as_echo "no" >&6; }
2860 if test -z "$ac_cv_prog_STRIP"; then
2861 ac_ct_STRIP=$STRIP
2862 # Extract the first word of "strip", so it can be a program name with args.
2863 set dummy strip; ac_word=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2867 $as_echo_n "(cached) " >&6
2868 else
2869 if test -n "$ac_ct_STRIP"; then
2870 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2871 else
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2879 ac_cv_prog_ac_ct_STRIP="strip"
2880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 break 2
2883 done
2884 done
2885 IFS=$as_save_IFS
2889 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2890 if test -n "$ac_ct_STRIP"; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2892 $as_echo "$ac_ct_STRIP" >&6; }
2893 else
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2898 if test "x$ac_ct_STRIP" = x; then
2899 STRIP=":"
2900 else
2901 case $cross_compiling:$ac_tool_warned in
2902 yes:)
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2905 ac_tool_warned=yes ;;
2906 esac
2907 STRIP=$ac_ct_STRIP
2909 else
2910 STRIP="$ac_cv_prog_STRIP"
2914 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2917 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2918 if test -z "$MKDIR_P"; then
2919 if test "${ac_cv_path_mkdir+set}" = set; then :
2920 $as_echo_n "(cached) " >&6
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_prog in mkdir gmkdir; do
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2930 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2931 'mkdir (GNU coreutils) '* | \
2932 'mkdir (coreutils) '* | \
2933 'mkdir (fileutils) '4.1*)
2934 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2935 break 3;;
2936 esac
2937 done
2938 done
2939 done
2940 IFS=$as_save_IFS
2944 if test "${ac_cv_path_mkdir+set}" = set; then
2945 MKDIR_P="$ac_cv_path_mkdir -p"
2946 else
2947 # As a last resort, use the slow shell script. Don't cache a
2948 # value for MKDIR_P within a source directory, because that will
2949 # break other packages using the cache if that directory is
2950 # removed, or if the value is a relative name.
2951 test -d ./--version && rmdir ./--version
2952 MKDIR_P="$ac_install_sh -d"
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2956 $as_echo "$MKDIR_P" >&6; }
2958 mkdir_p="$MKDIR_P"
2959 case $mkdir_p in
2960 [\\/$]* | ?:[\\/]*) ;;
2961 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2962 esac
2964 for ac_prog in gawk mawk nawk awk
2966 # Extract the first word of "$ac_prog", so it can be a program name with args.
2967 set dummy $ac_prog; ac_word=$2
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if test "${ac_cv_prog_AWK+set}" = set; then :
2971 $as_echo_n "(cached) " >&6
2972 else
2973 if test -n "$AWK"; then
2974 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2975 else
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 for as_dir in $PATH
2979 IFS=$as_save_IFS
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983 ac_cv_prog_AWK="$ac_prog"
2984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 break 2
2987 done
2988 done
2989 IFS=$as_save_IFS
2993 AWK=$ac_cv_prog_AWK
2994 if test -n "$AWK"; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2996 $as_echo "$AWK" >&6; }
2997 else
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3003 test -n "$AWK" && break
3004 done
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3007 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3008 set x ${MAKE-make}
3009 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3010 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3011 $as_echo_n "(cached) " >&6
3012 else
3013 cat >conftest.make <<\_ACEOF
3014 SHELL = /bin/sh
3015 all:
3016 @echo '@@@%%%=$(MAKE)=@@@%%%'
3017 _ACEOF
3018 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3019 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3020 *@@@%%%=?*=@@@%%%*)
3021 eval ac_cv_prog_make_${ac_make}_set=yes;;
3023 eval ac_cv_prog_make_${ac_make}_set=no;;
3024 esac
3025 rm -f conftest.make
3027 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3029 $as_echo "yes" >&6; }
3030 SET_MAKE=
3031 else
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3034 SET_MAKE="MAKE=${MAKE-make}"
3037 rm -rf .tst 2>/dev/null
3038 mkdir .tst 2>/dev/null
3039 if test -d .tst; then
3040 am__leading_dot=.
3041 else
3042 am__leading_dot=_
3044 rmdir .tst 2>/dev/null
3046 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3047 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3048 # is not polluted with repeated "-I."
3049 am__isrc=' -I$(srcdir)'
3050 # test to see if srcdir already configured
3051 if test -f $srcdir/config.status; then
3052 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3056 # test whether we have cygpath
3057 if test -z "$CYGPATH_W"; then
3058 if (cygpath --version) >/dev/null 2>/dev/null; then
3059 CYGPATH_W='cygpath -w'
3060 else
3061 CYGPATH_W=echo
3066 # Define the identity of the package.
3067 PACKAGE='libffi'
3068 VERSION='3.0.11'
3071 cat >>confdefs.h <<_ACEOF
3072 #define PACKAGE "$PACKAGE"
3073 _ACEOF
3076 cat >>confdefs.h <<_ACEOF
3077 #define VERSION "$VERSION"
3078 _ACEOF
3080 # Some tools Automake needs.
3082 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3085 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3088 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3091 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3094 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3096 # We need awk for the "check" target. The system "awk" is bad on
3097 # some platforms.
3098 # Always define AMTAR for backward compatibility.
3100 AMTAR=${AMTAR-"${am_missing_run}tar"}
3102 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3109 # See if makeinfo has been installed and is modern enough
3110 # that we can use it.
3112 # Extract the first word of "makeinfo", so it can be a program name with args.
3113 set dummy makeinfo; ac_word=$2
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115 $as_echo_n "checking for $ac_word... " >&6; }
3116 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
3117 $as_echo_n "(cached) " >&6
3118 else
3119 if test -n "$MAKEINFO"; then
3120 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3121 else
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 for as_dir in $PATH
3125 IFS=$as_save_IFS
3126 test -z "$as_dir" && as_dir=.
3127 for ac_exec_ext in '' $ac_executable_extensions; do
3128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3129 ac_cv_prog_MAKEINFO="makeinfo"
3130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131 break 2
3133 done
3134 done
3135 IFS=$as_save_IFS
3139 MAKEINFO=$ac_cv_prog_MAKEINFO
3140 if test -n "$MAKEINFO"; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
3142 $as_echo "$MAKEINFO" >&6; }
3143 else
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3149 if test -n "$MAKEINFO"; then
3150 # Found it, now check the version.
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
3152 $as_echo_n "checking for modern makeinfo... " >&6; }
3153 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
3154 $as_echo_n "(cached) " >&6
3155 else
3156 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3157 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3159 case $ac_prog_version in
3160 '') gcc_cv_prog_makeinfo_modern=no;;
3161 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
3162 *) gcc_cv_prog_makeinfo_modern=no;;
3163 esac
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
3167 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
3168 else
3169 gcc_cv_prog_makeinfo_modern=no
3171 if test $gcc_cv_prog_makeinfo_modern = no; then
3172 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3175 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3176 BUILD_INFO_TRUE=
3177 BUILD_INFO_FALSE='#'
3178 else
3179 BUILD_INFO_TRUE='#'
3180 BUILD_INFO_FALSE=
3184 # We would like our source tree to be readonly. However when releases or
3185 # pre-releases are generated, the flex/bison generated files as well as the
3186 # various formats of manuals need to be included along with the rest of the
3187 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3188 # just that.
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
3190 $as_echo_n "checking generated-files-in-srcdir... " >&6; }
3191 # Check whether --enable-generated-files-in-srcdir was given.
3192 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3193 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
3194 yes) enable_generated_files_in_srcdir=yes ;;
3195 no) enable_generated_files_in_srcdir=no ;;
3196 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3197 esac
3198 else
3199 enable_generated_files_in_srcdir=no
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
3203 $as_echo "$enable_generated_files_in_srcdir" >&6; }
3204 if test "$enable_generated_files_in_srcdir" = yes; then
3205 GENINSRC_TRUE=
3206 GENINSRC_FALSE='#'
3207 else
3208 GENINSRC_TRUE='#'
3209 GENINSRC_FALSE=
3213 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3214 # We must force CC to /not/ be precious variables; otherwise
3215 # the wrong, non-multilib-adjusted value will be used in multilibs.
3216 # As a side effect, we have to subst CFLAGS ourselves.
3220 ac_ext=c
3221 ac_cpp='$CPP $CPPFLAGS'
3222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3225 if test -n "$ac_tool_prefix"; then
3226 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3227 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if test "${ac_cv_prog_CC+set}" = set; then :
3231 $as_echo_n "(cached) " >&6
3232 else
3233 if test -n "$CC"; then
3234 ac_cv_prog_CC="$CC" # Let the user override the test.
3235 else
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 for as_dir in $PATH
3239 IFS=$as_save_IFS
3240 test -z "$as_dir" && as_dir=.
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3243 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3245 break 2
3247 done
3248 done
3249 IFS=$as_save_IFS
3253 CC=$ac_cv_prog_CC
3254 if test -n "$CC"; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3256 $as_echo "$CC" >&6; }
3257 else
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 $as_echo "no" >&6; }
3264 if test -z "$ac_cv_prog_CC"; then
3265 ac_ct_CC=$CC
3266 # Extract the first word of "gcc", so it can be a program name with args.
3267 set dummy gcc; ac_word=$2
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 $as_echo_n "checking for $ac_word... " >&6; }
3270 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3271 $as_echo_n "(cached) " >&6
3272 else
3273 if test -n "$ac_ct_CC"; then
3274 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3275 else
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $PATH
3279 IFS=$as_save_IFS
3280 test -z "$as_dir" && as_dir=.
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3283 ac_cv_prog_ac_ct_CC="gcc"
3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285 break 2
3287 done
3288 done
3289 IFS=$as_save_IFS
3293 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3294 if test -n "$ac_ct_CC"; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3296 $as_echo "$ac_ct_CC" >&6; }
3297 else
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3302 if test "x$ac_ct_CC" = x; then
3303 CC=""
3304 else
3305 case $cross_compiling:$ac_tool_warned in
3306 yes:)
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3309 ac_tool_warned=yes ;;
3310 esac
3311 CC=$ac_ct_CC
3313 else
3314 CC="$ac_cv_prog_CC"
3317 if test -z "$CC"; then
3318 if test -n "$ac_tool_prefix"; then
3319 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3320 set dummy ${ac_tool_prefix}cc; ac_word=$2
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3322 $as_echo_n "checking for $ac_word... " >&6; }
3323 if test "${ac_cv_prog_CC+set}" = set; then :
3324 $as_echo_n "(cached) " >&6
3325 else
3326 if test -n "$CC"; then
3327 ac_cv_prog_CC="$CC" # Let the user override the test.
3328 else
3329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330 for as_dir in $PATH
3332 IFS=$as_save_IFS
3333 test -z "$as_dir" && as_dir=.
3334 for ac_exec_ext in '' $ac_executable_extensions; do
3335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3336 ac_cv_prog_CC="${ac_tool_prefix}cc"
3337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3338 break 2
3340 done
3341 done
3342 IFS=$as_save_IFS
3346 CC=$ac_cv_prog_CC
3347 if test -n "$CC"; then
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3349 $as_echo "$CC" >&6; }
3350 else
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352 $as_echo "no" >&6; }
3358 if test -z "$CC"; then
3359 # Extract the first word of "cc", so it can be a program name with args.
3360 set dummy cc; ac_word=$2
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362 $as_echo_n "checking for $ac_word... " >&6; }
3363 if test "${ac_cv_prog_CC+set}" = set; then :
3364 $as_echo_n "(cached) " >&6
3365 else
3366 if test -n "$CC"; then
3367 ac_cv_prog_CC="$CC" # Let the user override the test.
3368 else
3369 ac_prog_rejected=no
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 for as_dir in $PATH
3373 IFS=$as_save_IFS
3374 test -z "$as_dir" && as_dir=.
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3377 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3378 ac_prog_rejected=yes
3379 continue
3381 ac_cv_prog_CC="cc"
3382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3383 break 2
3385 done
3386 done
3387 IFS=$as_save_IFS
3389 if test $ac_prog_rejected = yes; then
3390 # We found a bogon in the path, so make sure we never use it.
3391 set dummy $ac_cv_prog_CC
3392 shift
3393 if test $# != 0; then
3394 # We chose a different compiler from the bogus one.
3395 # However, it has the same basename, so the bogon will be chosen
3396 # first if we set CC to just the basename; use the full file name.
3397 shift
3398 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3403 CC=$ac_cv_prog_CC
3404 if test -n "$CC"; then
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3406 $as_echo "$CC" >&6; }
3407 else
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3414 if test -z "$CC"; then
3415 if test -n "$ac_tool_prefix"; then
3416 for ac_prog in cl.exe
3418 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3419 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3421 $as_echo_n "checking for $ac_word... " >&6; }
3422 if test "${ac_cv_prog_CC+set}" = set; then :
3423 $as_echo_n "(cached) " >&6
3424 else
3425 if test -n "$CC"; then
3426 ac_cv_prog_CC="$CC" # Let the user override the test.
3427 else
3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 for as_dir in $PATH
3431 IFS=$as_save_IFS
3432 test -z "$as_dir" && as_dir=.
3433 for ac_exec_ext in '' $ac_executable_extensions; do
3434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3435 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3437 break 2
3439 done
3440 done
3441 IFS=$as_save_IFS
3445 CC=$ac_cv_prog_CC
3446 if test -n "$CC"; then
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3448 $as_echo "$CC" >&6; }
3449 else
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451 $as_echo "no" >&6; }
3455 test -n "$CC" && break
3456 done
3458 if test -z "$CC"; then
3459 ac_ct_CC=$CC
3460 for ac_prog in cl.exe
3462 # Extract the first word of "$ac_prog", so it can be a program name with args.
3463 set dummy $ac_prog; ac_word=$2
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465 $as_echo_n "checking for $ac_word... " >&6; }
3466 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3467 $as_echo_n "(cached) " >&6
3468 else
3469 if test -n "$ac_ct_CC"; then
3470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3471 else
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH
3475 IFS=$as_save_IFS
3476 test -z "$as_dir" && as_dir=.
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3479 ac_cv_prog_ac_ct_CC="$ac_prog"
3480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3481 break 2
3483 done
3484 done
3485 IFS=$as_save_IFS
3489 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3490 if test -n "$ac_ct_CC"; then
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3492 $as_echo "$ac_ct_CC" >&6; }
3493 else
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 $as_echo "no" >&6; }
3499 test -n "$ac_ct_CC" && break
3500 done
3502 if test "x$ac_ct_CC" = x; then
3503 CC=""
3504 else
3505 case $cross_compiling:$ac_tool_warned in
3506 yes:)
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3509 ac_tool_warned=yes ;;
3510 esac
3511 CC=$ac_ct_CC
3518 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520 as_fn_error "no acceptable C compiler found in \$PATH
3521 See \`config.log' for more details." "$LINENO" 5; }
3523 # Provide some information about the compiler.
3524 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3525 set X $ac_compile
3526 ac_compiler=$2
3527 for ac_option in --version -v -V -qversion; do
3528 { { ac_try="$ac_compiler $ac_option >&5"
3529 case "(($ac_try" in
3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531 *) ac_try_echo=$ac_try;;
3532 esac
3533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3534 $as_echo "$ac_try_echo"; } >&5
3535 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3536 ac_status=$?
3537 if test -s conftest.err; then
3538 sed '10a\
3539 ... rest of stderr output deleted ...
3540 10q' conftest.err >conftest.er1
3541 cat conftest.er1 >&5
3542 rm -f conftest.er1 conftest.err
3544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3545 test $ac_status = 0; }
3546 done
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3552 main ()
3556 return 0;
3558 _ACEOF
3559 ac_clean_files_save=$ac_clean_files
3560 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3561 # Try to create an executable without -o first, disregard a.out.
3562 # It will help us diagnose broken compilers, and finding out an intuition
3563 # of exeext.
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3565 $as_echo_n "checking for C compiler default output file name... " >&6; }
3566 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3568 # The possible output files:
3569 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3571 ac_rmfiles=
3572 for ac_file in $ac_files
3574 case $ac_file in
3575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3576 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3577 esac
3578 done
3579 rm -f $ac_rmfiles
3581 if { { ac_try="$ac_link_default"
3582 case "(($ac_try" in
3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584 *) ac_try_echo=$ac_try;;
3585 esac
3586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3587 $as_echo "$ac_try_echo"; } >&5
3588 (eval "$ac_link_default") 2>&5
3589 ac_status=$?
3590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3591 test $ac_status = 0; }; then :
3592 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3593 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3594 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3595 # so that the user can short-circuit this test for compilers unknown to
3596 # Autoconf.
3597 for ac_file in $ac_files ''
3599 test -f "$ac_file" || continue
3600 case $ac_file in
3601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3603 [ab].out )
3604 # We found the default executable, but exeext='' is most
3605 # certainly right.
3606 break;;
3607 *.* )
3608 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3609 then :; else
3610 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3612 # We set ac_cv_exeext here because the later test for it is not
3613 # safe: cross compilers may not add the suffix if given an `-o'
3614 # argument, so we may need to know it at that point already.
3615 # Even if this section looks crufty: it has the advantage of
3616 # actually working.
3617 break;;
3619 break;;
3620 esac
3621 done
3622 test "$ac_cv_exeext" = no && ac_cv_exeext=
3624 else
3625 ac_file=''
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3628 $as_echo "$ac_file" >&6; }
3629 if test -z "$ac_file"; then :
3630 $as_echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3635 { as_fn_set_status 77
3636 as_fn_error "C compiler cannot create executables
3637 See \`config.log' for more details." "$LINENO" 5; }; }
3639 ac_exeext=$ac_cv_exeext
3641 # Check that the compiler produces executables we can run. If not, either
3642 # the compiler is broken, or we cross compile.
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3644 $as_echo_n "checking whether the C compiler works... " >&6; }
3645 # If not cross compiling, check that we can run a simple program.
3646 if test "$cross_compiling" != yes; then
3647 if { ac_try='./$ac_file'
3648 { { case "(($ac_try" in
3649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650 *) ac_try_echo=$ac_try;;
3651 esac
3652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3653 $as_echo "$ac_try_echo"; } >&5
3654 (eval "$ac_try") 2>&5
3655 ac_status=$?
3656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3657 test $ac_status = 0; }; }; then
3658 cross_compiling=no
3659 else
3660 if test "$cross_compiling" = maybe; then
3661 cross_compiling=yes
3662 else
3663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3665 as_fn_error "cannot run C compiled programs.
3666 If you meant to cross compile, use \`--host'.
3667 See \`config.log' for more details." "$LINENO" 5; }
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3672 $as_echo "yes" >&6; }
3674 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3675 ac_clean_files=$ac_clean_files_save
3676 # Check that the compiler produces executables we can run. If not, either
3677 # the compiler is broken, or we cross compile.
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3679 $as_echo_n "checking whether we are cross compiling... " >&6; }
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3681 $as_echo "$cross_compiling" >&6; }
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3684 $as_echo_n "checking for suffix of executables... " >&6; }
3685 if { { ac_try="$ac_link"
3686 case "(($ac_try" in
3687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688 *) ac_try_echo=$ac_try;;
3689 esac
3690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3691 $as_echo "$ac_try_echo"; } >&5
3692 (eval "$ac_link") 2>&5
3693 ac_status=$?
3694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3695 test $ac_status = 0; }; then :
3696 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3697 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3698 # work properly (i.e., refer to `conftest.exe'), while it won't with
3699 # `rm'.
3700 for ac_file in conftest.exe conftest conftest.*; do
3701 test -f "$ac_file" || continue
3702 case $ac_file in
3703 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3704 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3705 break;;
3706 * ) break;;
3707 esac
3708 done
3709 else
3710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3712 as_fn_error "cannot compute suffix of executables: cannot compile and link
3713 See \`config.log' for more details." "$LINENO" 5; }
3715 rm -f conftest$ac_cv_exeext
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3717 $as_echo "$ac_cv_exeext" >&6; }
3719 rm -f conftest.$ac_ext
3720 EXEEXT=$ac_cv_exeext
3721 ac_exeext=$EXEEXT
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3723 $as_echo_n "checking for suffix of object files... " >&6; }
3724 if test "${ac_cv_objext+set}" = set; then :
3725 $as_echo_n "(cached) " >&6
3726 else
3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3731 main ()
3735 return 0;
3737 _ACEOF
3738 rm -f conftest.o conftest.obj
3739 if { { ac_try="$ac_compile"
3740 case "(($ac_try" in
3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742 *) ac_try_echo=$ac_try;;
3743 esac
3744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3745 $as_echo "$ac_try_echo"; } >&5
3746 (eval "$ac_compile") 2>&5
3747 ac_status=$?
3748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3749 test $ac_status = 0; }; then :
3750 for ac_file in conftest.o conftest.obj conftest.*; do
3751 test -f "$ac_file" || continue;
3752 case $ac_file in
3753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3754 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3755 break;;
3756 esac
3757 done
3758 else
3759 $as_echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3764 as_fn_error "cannot compute suffix of object files: cannot compile
3765 See \`config.log' for more details." "$LINENO" 5; }
3767 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3770 $as_echo "$ac_cv_objext" >&6; }
3771 OBJEXT=$ac_cv_objext
3772 ac_objext=$OBJEXT
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3774 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3775 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3776 $as_echo_n "(cached) " >&6
3777 else
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3782 main ()
3784 #ifndef __GNUC__
3785 choke me
3786 #endif
3789 return 0;
3791 _ACEOF
3792 if ac_fn_c_try_compile "$LINENO"; then :
3793 ac_compiler_gnu=yes
3794 else
3795 ac_compiler_gnu=no
3797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3798 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3802 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3803 if test $ac_compiler_gnu = yes; then
3804 GCC=yes
3805 else
3806 GCC=
3808 ac_test_CFLAGS=${CFLAGS+set}
3809 ac_save_CFLAGS=$CFLAGS
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3811 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3812 if test "${ac_cv_prog_cc_g+set}" = set; then :
3813 $as_echo_n "(cached) " >&6
3814 else
3815 ac_save_c_werror_flag=$ac_c_werror_flag
3816 ac_c_werror_flag=yes
3817 ac_cv_prog_cc_g=no
3818 CFLAGS="-g"
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3823 main ()
3827 return 0;
3829 _ACEOF
3830 if ac_fn_c_try_compile "$LINENO"; then :
3831 ac_cv_prog_cc_g=yes
3832 else
3833 CFLAGS=""
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3838 main ()
3842 return 0;
3844 _ACEOF
3845 if ac_fn_c_try_compile "$LINENO"; then :
3847 else
3848 ac_c_werror_flag=$ac_save_c_werror_flag
3849 CFLAGS="-g"
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3854 main ()
3858 return 0;
3860 _ACEOF
3861 if ac_fn_c_try_compile "$LINENO"; then :
3862 ac_cv_prog_cc_g=yes
3864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869 ac_c_werror_flag=$ac_save_c_werror_flag
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3872 $as_echo "$ac_cv_prog_cc_g" >&6; }
3873 if test "$ac_test_CFLAGS" = set; then
3874 CFLAGS=$ac_save_CFLAGS
3875 elif test $ac_cv_prog_cc_g = yes; then
3876 if test "$GCC" = yes; then
3877 CFLAGS="-g -O2"
3878 else
3879 CFLAGS="-g"
3881 else
3882 if test "$GCC" = yes; then
3883 CFLAGS="-O2"
3884 else
3885 CFLAGS=
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3889 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3890 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3891 $as_echo_n "(cached) " >&6
3892 else
3893 ac_cv_prog_cc_c89=no
3894 ac_save_CC=$CC
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3897 #include <stdarg.h>
3898 #include <stdio.h>
3899 #include <sys/types.h>
3900 #include <sys/stat.h>
3901 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3902 struct buf { int x; };
3903 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3904 static char *e (p, i)
3905 char **p;
3906 int i;
3908 return p[i];
3910 static char *f (char * (*g) (char **, int), char **p, ...)
3912 char *s;
3913 va_list v;
3914 va_start (v,p);
3915 s = g (p, va_arg (v,int));
3916 va_end (v);
3917 return s;
3920 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3921 function prototypes and stuff, but not '\xHH' hex character constants.
3922 These don't provoke an error unfortunately, instead are silently treated
3923 as 'x'. The following induces an error, until -std is added to get
3924 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3925 array size at least. It's necessary to write '\x00'==0 to get something
3926 that's true only with -std. */
3927 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3929 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3930 inside strings and character constants. */
3931 #define FOO(x) 'x'
3932 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3934 int test (int i, double x);
3935 struct s1 {int (*f) (int a);};
3936 struct s2 {int (*f) (double a);};
3937 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3938 int argc;
3939 char **argv;
3941 main ()
3943 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3945 return 0;
3947 _ACEOF
3948 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3949 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3951 CC="$ac_save_CC $ac_arg"
3952 if ac_fn_c_try_compile "$LINENO"; then :
3953 ac_cv_prog_cc_c89=$ac_arg
3955 rm -f core conftest.err conftest.$ac_objext
3956 test "x$ac_cv_prog_cc_c89" != "xno" && break
3957 done
3958 rm -f conftest.$ac_ext
3959 CC=$ac_save_CC
3962 # AC_CACHE_VAL
3963 case "x$ac_cv_prog_cc_c89" in
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3966 $as_echo "none needed" >&6; } ;;
3967 xno)
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3969 $as_echo "unsupported" >&6; } ;;
3971 CC="$CC $ac_cv_prog_cc_c89"
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3973 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3974 esac
3975 if test "x$ac_cv_prog_cc_c89" != xno; then :
3979 ac_ext=c
3980 ac_cpp='$CPP $CPPFLAGS'
3981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3984 DEPDIR="${am__leading_dot}deps"
3986 ac_config_commands="$ac_config_commands depfiles"
3989 am_make=${MAKE-make}
3990 cat > confinc << 'END'
3991 am__doit:
3992 @echo this is the am__doit target
3993 .PHONY: am__doit
3995 # If we don't find an include directive, just comment out the code.
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3997 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3998 am__include="#"
3999 am__quote=
4000 _am_result=none
4001 # First try GNU make style include.
4002 echo "include confinc" > confmf
4003 # Ignore all kinds of additional output from `make'.
4004 case `$am_make -s -f confmf 2> /dev/null` in #(
4005 *the\ am__doit\ target*)
4006 am__include=include
4007 am__quote=
4008 _am_result=GNU
4010 esac
4011 # Now try BSD make style include.
4012 if test "$am__include" = "#"; then
4013 echo '.include "confinc"' > confmf
4014 case `$am_make -s -f confmf 2> /dev/null` in #(
4015 *the\ am__doit\ target*)
4016 am__include=.include
4017 am__quote="\""
4018 _am_result=BSD
4020 esac
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4025 $as_echo "$_am_result" >&6; }
4026 rm -f confinc confmf
4028 # Check whether --enable-dependency-tracking was given.
4029 if test "${enable_dependency_tracking+set}" = set; then :
4030 enableval=$enable_dependency_tracking;
4033 if test "x$enable_dependency_tracking" != xno; then
4034 am_depcomp="$ac_aux_dir/depcomp"
4035 AMDEPBACKSLASH='\'
4037 if test "x$enable_dependency_tracking" != xno; then
4038 AMDEP_TRUE=
4039 AMDEP_FALSE='#'
4040 else
4041 AMDEP_TRUE='#'
4042 AMDEP_FALSE=
4047 depcc="$CC" am_compiler_list=
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4050 $as_echo_n "checking dependency style of $depcc... " >&6; }
4051 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4052 $as_echo_n "(cached) " >&6
4053 else
4054 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4055 # We make a subdir and do the tests there. Otherwise we can end up
4056 # making bogus files that we don't know about and never remove. For
4057 # instance it was reported that on HP-UX the gcc test will end up
4058 # making a dummy file named `D' -- because `-MD' means `put the output
4059 # in D'.
4060 mkdir conftest.dir
4061 # Copy depcomp to subdir because otherwise we won't find it if we're
4062 # using a relative directory.
4063 cp "$am_depcomp" conftest.dir
4064 cd conftest.dir
4065 # We will build objects and dependencies in a subdirectory because
4066 # it helps to detect inapplicable dependency modes. For instance
4067 # both Tru64's cc and ICC support -MD to output dependencies as a
4068 # side effect of compilation, but ICC will put the dependencies in
4069 # the current directory while Tru64 will put them in the object
4070 # directory.
4071 mkdir sub
4073 am_cv_CC_dependencies_compiler_type=none
4074 if test "$am_compiler_list" = ""; then
4075 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4077 am__universal=false
4078 case " $depcc " in #(
4079 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4080 esac
4082 for depmode in $am_compiler_list; do
4083 # Setup a source with many dependencies, because some compilers
4084 # like to wrap large dependency lists on column 80 (with \), and
4085 # we should not choose a depcomp mode which is confused by this.
4087 # We need to recreate these files for each test, as the compiler may
4088 # overwrite some of them when testing with obscure command lines.
4089 # This happens at least with the AIX C compiler.
4090 : > sub/conftest.c
4091 for i in 1 2 3 4 5 6; do
4092 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4093 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4094 # Solaris 8's {/usr,}/bin/sh.
4095 touch sub/conftst$i.h
4096 done
4097 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4099 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4100 # mode. It turns out that the SunPro C++ compiler does not properly
4101 # handle `-M -o', and we need to detect this. Also, some Intel
4102 # versions had trouble with output in subdirs
4103 am__obj=sub/conftest.${OBJEXT-o}
4104 am__minus_obj="-o $am__obj"
4105 case $depmode in
4106 gcc)
4107 # This depmode causes a compiler race in universal mode.
4108 test "$am__universal" = false || continue
4110 nosideeffect)
4111 # after this tag, mechanisms are not by side-effect, so they'll
4112 # only be used when explicitly requested
4113 if test "x$enable_dependency_tracking" = xyes; then
4114 continue
4115 else
4116 break
4119 msvisualcpp | msvcmsys)
4120 # This compiler won't grok `-c -o', but also, the minuso test has
4121 # not run yet. These depmodes are late enough in the game, and
4122 # so weak that their functioning should not be impacted.
4123 am__obj=conftest.${OBJEXT-o}
4124 am__minus_obj=
4126 none) break ;;
4127 esac
4128 if depmode=$depmode \
4129 source=sub/conftest.c object=$am__obj \
4130 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4131 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4132 >/dev/null 2>conftest.err &&
4133 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4134 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4135 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4136 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4137 # icc doesn't choke on unknown options, it will just issue warnings
4138 # or remarks (even with -Werror). So we grep stderr for any message
4139 # that says an option was ignored or not supported.
4140 # When given -MP, icc 7.0 and 7.1 complain thusly:
4141 # icc: Command line warning: ignoring option '-M'; no argument required
4142 # The diagnosis changed in icc 8.0:
4143 # icc: Command line remark: option '-MP' not supported
4144 if (grep 'ignoring option' conftest.err ||
4145 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4146 am_cv_CC_dependencies_compiler_type=$depmode
4147 break
4150 done
4152 cd ..
4153 rm -rf conftest.dir
4154 else
4155 am_cv_CC_dependencies_compiler_type=none
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4160 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4161 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4164 test "x$enable_dependency_tracking" != xno \
4165 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4166 am__fastdepCC_TRUE=
4167 am__fastdepCC_FALSE='#'
4168 else
4169 am__fastdepCC_TRUE='#'
4170 am__fastdepCC_FALSE=
4178 # By default we simply use the C compiler to build assembly code.
4180 test "${CCAS+set}" = set || CCAS=$CC
4181 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4185 depcc="$CCAS" am_compiler_list=
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4188 $as_echo_n "checking dependency style of $depcc... " >&6; }
4189 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4190 $as_echo_n "(cached) " >&6
4191 else
4192 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4193 # We make a subdir and do the tests there. Otherwise we can end up
4194 # making bogus files that we don't know about and never remove. For
4195 # instance it was reported that on HP-UX the gcc test will end up
4196 # making a dummy file named `D' -- because `-MD' means `put the output
4197 # in D'.
4198 mkdir conftest.dir
4199 # Copy depcomp to subdir because otherwise we won't find it if we're
4200 # using a relative directory.
4201 cp "$am_depcomp" conftest.dir
4202 cd conftest.dir
4203 # We will build objects and dependencies in a subdirectory because
4204 # it helps to detect inapplicable dependency modes. For instance
4205 # both Tru64's cc and ICC support -MD to output dependencies as a
4206 # side effect of compilation, but ICC will put the dependencies in
4207 # the current directory while Tru64 will put them in the object
4208 # directory.
4209 mkdir sub
4211 am_cv_CCAS_dependencies_compiler_type=none
4212 if test "$am_compiler_list" = ""; then
4213 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4215 am__universal=false
4218 for depmode in $am_compiler_list; do
4219 # Setup a source with many dependencies, because some compilers
4220 # like to wrap large dependency lists on column 80 (with \), and
4221 # we should not choose a depcomp mode which is confused by this.
4223 # We need to recreate these files for each test, as the compiler may
4224 # overwrite some of them when testing with obscure command lines.
4225 # This happens at least with the AIX C compiler.
4226 : > sub/conftest.c
4227 for i in 1 2 3 4 5 6; do
4228 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4229 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4230 # Solaris 8's {/usr,}/bin/sh.
4231 touch sub/conftst$i.h
4232 done
4233 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4235 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4236 # mode. It turns out that the SunPro C++ compiler does not properly
4237 # handle `-M -o', and we need to detect this. Also, some Intel
4238 # versions had trouble with output in subdirs
4239 am__obj=sub/conftest.${OBJEXT-o}
4240 am__minus_obj="-o $am__obj"
4241 case $depmode in
4242 gcc)
4243 # This depmode causes a compiler race in universal mode.
4244 test "$am__universal" = false || continue
4246 nosideeffect)
4247 # after this tag, mechanisms are not by side-effect, so they'll
4248 # only be used when explicitly requested
4249 if test "x$enable_dependency_tracking" = xyes; then
4250 continue
4251 else
4252 break
4255 msvisualcpp | msvcmsys)
4256 # This compiler won't grok `-c -o', but also, the minuso test has
4257 # not run yet. These depmodes are late enough in the game, and
4258 # so weak that their functioning should not be impacted.
4259 am__obj=conftest.${OBJEXT-o}
4260 am__minus_obj=
4262 none) break ;;
4263 esac
4264 if depmode=$depmode \
4265 source=sub/conftest.c object=$am__obj \
4266 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4267 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4268 >/dev/null 2>conftest.err &&
4269 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4270 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4271 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4272 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4273 # icc doesn't choke on unknown options, it will just issue warnings
4274 # or remarks (even with -Werror). So we grep stderr for any message
4275 # that says an option was ignored or not supported.
4276 # When given -MP, icc 7.0 and 7.1 complain thusly:
4277 # icc: Command line warning: ignoring option '-M'; no argument required
4278 # The diagnosis changed in icc 8.0:
4279 # icc: Command line remark: option '-MP' not supported
4280 if (grep 'ignoring option' conftest.err ||
4281 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4282 am_cv_CCAS_dependencies_compiler_type=$depmode
4283 break
4286 done
4288 cd ..
4289 rm -rf conftest.dir
4290 else
4291 am_cv_CCAS_dependencies_compiler_type=none
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4296 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4297 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4300 test "x$enable_dependency_tracking" != xno \
4301 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4302 am__fastdepCCAS_TRUE=
4303 am__fastdepCCAS_FALSE='#'
4304 else
4305 am__fastdepCCAS_TRUE='#'
4306 am__fastdepCCAS_FALSE=
4310 if test "x$CC" != xcc; then
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4312 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4313 else
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4315 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4317 set dummy $CC; ac_cc=`$as_echo "$2" |
4318 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4319 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4320 $as_echo_n "(cached) " >&6
4321 else
4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h. */
4326 main ()
4330 return 0;
4332 _ACEOF
4333 # Make sure it works both with $CC and with simple cc.
4334 # We do the test twice because some compilers refuse to overwrite an
4335 # existing .o file with -o, though they will create one.
4336 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4337 rm -f conftest2.*
4338 if { { case "(($ac_try" in
4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4341 esac
4342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4343 $as_echo "$ac_try_echo"; } >&5
4344 (eval "$ac_try") 2>&5
4345 ac_status=$?
4346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4347 test $ac_status = 0; } &&
4348 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4351 esac
4352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4353 $as_echo "$ac_try_echo"; } >&5
4354 (eval "$ac_try") 2>&5
4355 ac_status=$?
4356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4357 test $ac_status = 0; };
4358 then
4359 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4360 if test "x$CC" != xcc; then
4361 # Test first that cc exists at all.
4362 if { ac_try='cc -c conftest.$ac_ext >&5'
4363 { { case "(($ac_try" in
4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365 *) ac_try_echo=$ac_try;;
4366 esac
4367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4368 $as_echo "$ac_try_echo"; } >&5
4369 (eval "$ac_try") 2>&5
4370 ac_status=$?
4371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4372 test $ac_status = 0; }; }; then
4373 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4374 rm -f conftest2.*
4375 if { { case "(($ac_try" in
4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377 *) ac_try_echo=$ac_try;;
4378 esac
4379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4380 $as_echo "$ac_try_echo"; } >&5
4381 (eval "$ac_try") 2>&5
4382 ac_status=$?
4383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4384 test $ac_status = 0; } &&
4385 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4388 esac
4389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4390 $as_echo "$ac_try_echo"; } >&5
4391 (eval "$ac_try") 2>&5
4392 ac_status=$?
4393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4394 test $ac_status = 0; };
4395 then
4396 # cc works too.
4398 else
4399 # cc exists but doesn't like -o.
4400 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4404 else
4405 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4407 rm -f core conftest*
4410 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4412 $as_echo "yes" >&6; }
4413 else
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4415 $as_echo "no" >&6; }
4417 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4421 # FIXME: we rely on the cache variable name because
4422 # there is no other way.
4423 set dummy $CC
4424 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4425 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4426 if test "$am_t" != yes; then
4427 # Losing compiler, so override with the script.
4428 # FIXME: It is wrong to rewrite CC.
4429 # But if we don't then we get into trouble of one sort or another.
4430 # A longer-term fix would be to have automake use am__CC in this case,
4431 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4432 CC="$am_aux_dir/compile $CC"
4436 case `pwd` in
4437 *\ * | *\ *)
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4439 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4440 esac
4444 macro_version='2.2.7a'
4445 macro_revision='1.3134'
4459 ltmain="$ac_aux_dir/ltmain.sh"
4461 # Backslashify metacharacters that are still active within
4462 # double-quoted strings.
4463 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4465 # Same as above, but do not quote variable references.
4466 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4468 # Sed substitution to delay expansion of an escaped shell variable in a
4469 # double_quote_subst'ed string.
4470 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4472 # Sed substitution to delay expansion of an escaped single quote.
4473 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4475 # Sed substitution to avoid accidental globbing in evaled expressions
4476 no_glob_subst='s/\*/\\\*/g'
4478 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4479 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4480 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4483 $as_echo_n "checking how to print strings... " >&6; }
4484 # Test print first, because it will be a builtin if present.
4485 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4486 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4487 ECHO='print -r --'
4488 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4489 ECHO='printf %s\n'
4490 else
4491 # Use this function as a fallback that always works.
4492 func_fallback_echo ()
4494 eval 'cat <<_LTECHO_EOF
4496 _LTECHO_EOF'
4498 ECHO='func_fallback_echo'
4501 # func_echo_all arg...
4502 # Invoke $ECHO with all args, space-separated.
4503 func_echo_all ()
4505 $ECHO ""
4508 case "$ECHO" in
4509 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4510 $as_echo "printf" >&6; } ;;
4511 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4512 $as_echo "print -r" >&6; } ;;
4513 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4514 $as_echo "cat" >&6; } ;;
4515 esac
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4531 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4532 if test "${ac_cv_path_SED+set}" = set; then :
4533 $as_echo_n "(cached) " >&6
4534 else
4535 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4536 for ac_i in 1 2 3 4 5 6 7; do
4537 ac_script="$ac_script$as_nl$ac_script"
4538 done
4539 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4540 { ac_script=; unset ac_script;}
4541 if test -z "$SED"; then
4542 ac_path_SED_found=false
4543 # Loop through the user's path and test for each of PROGNAME-LIST
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_prog in sed gsed; do
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4552 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4553 # Check for GNU ac_path_SED and select it if it is found.
4554 # Check for GNU $ac_path_SED
4555 case `"$ac_path_SED" --version 2>&1` in
4556 *GNU*)
4557 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4559 ac_count=0
4560 $as_echo_n 0123456789 >"conftest.in"
4561 while :
4563 cat "conftest.in" "conftest.in" >"conftest.tmp"
4564 mv "conftest.tmp" "conftest.in"
4565 cp "conftest.in" "conftest.nl"
4566 $as_echo '' >> "conftest.nl"
4567 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4568 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4569 as_fn_arith $ac_count + 1 && ac_count=$as_val
4570 if test $ac_count -gt ${ac_path_SED_max-0}; then
4571 # Best one so far, save it but keep looking for a better one
4572 ac_cv_path_SED="$ac_path_SED"
4573 ac_path_SED_max=$ac_count
4575 # 10*(2^10) chars as input seems more than enough
4576 test $ac_count -gt 10 && break
4577 done
4578 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4579 esac
4581 $ac_path_SED_found && break 3
4582 done
4583 done
4584 done
4585 IFS=$as_save_IFS
4586 if test -z "$ac_cv_path_SED"; then
4587 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4589 else
4590 ac_cv_path_SED=$SED
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4595 $as_echo "$ac_cv_path_SED" >&6; }
4596 SED="$ac_cv_path_SED"
4597 rm -f conftest.sed
4599 test -z "$SED" && SED=sed
4600 Xsed="$SED -e 1s/^X//"
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4613 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4614 if test "${ac_cv_path_GREP+set}" = set; then :
4615 $as_echo_n "(cached) " >&6
4616 else
4617 if test -z "$GREP"; then
4618 ac_path_GREP_found=false
4619 # Loop through the user's path and test for each of PROGNAME-LIST
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
4625 for ac_prog in grep ggrep; do
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4628 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4629 # Check for GNU ac_path_GREP and select it if it is found.
4630 # Check for GNU $ac_path_GREP
4631 case `"$ac_path_GREP" --version 2>&1` in
4632 *GNU*)
4633 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4635 ac_count=0
4636 $as_echo_n 0123456789 >"conftest.in"
4637 while :
4639 cat "conftest.in" "conftest.in" >"conftest.tmp"
4640 mv "conftest.tmp" "conftest.in"
4641 cp "conftest.in" "conftest.nl"
4642 $as_echo 'GREP' >> "conftest.nl"
4643 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4644 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4645 as_fn_arith $ac_count + 1 && ac_count=$as_val
4646 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4647 # Best one so far, save it but keep looking for a better one
4648 ac_cv_path_GREP="$ac_path_GREP"
4649 ac_path_GREP_max=$ac_count
4651 # 10*(2^10) chars as input seems more than enough
4652 test $ac_count -gt 10 && break
4653 done
4654 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4655 esac
4657 $ac_path_GREP_found && break 3
4658 done
4659 done
4660 done
4661 IFS=$as_save_IFS
4662 if test -z "$ac_cv_path_GREP"; then
4663 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4665 else
4666 ac_cv_path_GREP=$GREP
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4671 $as_echo "$ac_cv_path_GREP" >&6; }
4672 GREP="$ac_cv_path_GREP"
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4676 $as_echo_n "checking for egrep... " >&6; }
4677 if test "${ac_cv_path_EGREP+set}" = set; then :
4678 $as_echo_n "(cached) " >&6
4679 else
4680 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4681 then ac_cv_path_EGREP="$GREP -E"
4682 else
4683 if test -z "$EGREP"; then
4684 ac_path_EGREP_found=false
4685 # Loop through the user's path and test for each of PROGNAME-LIST
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
4691 for ac_prog in egrep; do
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4694 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4695 # Check for GNU ac_path_EGREP and select it if it is found.
4696 # Check for GNU $ac_path_EGREP
4697 case `"$ac_path_EGREP" --version 2>&1` in
4698 *GNU*)
4699 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4701 ac_count=0
4702 $as_echo_n 0123456789 >"conftest.in"
4703 while :
4705 cat "conftest.in" "conftest.in" >"conftest.tmp"
4706 mv "conftest.tmp" "conftest.in"
4707 cp "conftest.in" "conftest.nl"
4708 $as_echo 'EGREP' >> "conftest.nl"
4709 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4710 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4711 as_fn_arith $ac_count + 1 && ac_count=$as_val
4712 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4713 # Best one so far, save it but keep looking for a better one
4714 ac_cv_path_EGREP="$ac_path_EGREP"
4715 ac_path_EGREP_max=$ac_count
4717 # 10*(2^10) chars as input seems more than enough
4718 test $ac_count -gt 10 && break
4719 done
4720 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4721 esac
4723 $ac_path_EGREP_found && break 3
4724 done
4725 done
4726 done
4727 IFS=$as_save_IFS
4728 if test -z "$ac_cv_path_EGREP"; then
4729 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4731 else
4732 ac_cv_path_EGREP=$EGREP
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4738 $as_echo "$ac_cv_path_EGREP" >&6; }
4739 EGREP="$ac_cv_path_EGREP"
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4743 $as_echo_n "checking for fgrep... " >&6; }
4744 if test "${ac_cv_path_FGREP+set}" = set; then :
4745 $as_echo_n "(cached) " >&6
4746 else
4747 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4748 then ac_cv_path_FGREP="$GREP -F"
4749 else
4750 if test -z "$FGREP"; then
4751 ac_path_FGREP_found=false
4752 # Loop through the user's path and test for each of PROGNAME-LIST
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4756 IFS=$as_save_IFS
4757 test -z "$as_dir" && as_dir=.
4758 for ac_prog in fgrep; do
4759 for ac_exec_ext in '' $ac_executable_extensions; do
4760 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4761 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4762 # Check for GNU ac_path_FGREP and select it if it is found.
4763 # Check for GNU $ac_path_FGREP
4764 case `"$ac_path_FGREP" --version 2>&1` in
4765 *GNU*)
4766 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4768 ac_count=0
4769 $as_echo_n 0123456789 >"conftest.in"
4770 while :
4772 cat "conftest.in" "conftest.in" >"conftest.tmp"
4773 mv "conftest.tmp" "conftest.in"
4774 cp "conftest.in" "conftest.nl"
4775 $as_echo 'FGREP' >> "conftest.nl"
4776 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4778 as_fn_arith $ac_count + 1 && ac_count=$as_val
4779 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4780 # Best one so far, save it but keep looking for a better one
4781 ac_cv_path_FGREP="$ac_path_FGREP"
4782 ac_path_FGREP_max=$ac_count
4784 # 10*(2^10) chars as input seems more than enough
4785 test $ac_count -gt 10 && break
4786 done
4787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4788 esac
4790 $ac_path_FGREP_found && break 3
4791 done
4792 done
4793 done
4794 IFS=$as_save_IFS
4795 if test -z "$ac_cv_path_FGREP"; then
4796 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4798 else
4799 ac_cv_path_FGREP=$FGREP
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4805 $as_echo "$ac_cv_path_FGREP" >&6; }
4806 FGREP="$ac_cv_path_FGREP"
4809 test -z "$GREP" && GREP=grep
4829 # Check whether --with-gnu-ld was given.
4830 if test "${with_gnu_ld+set}" = set; then :
4831 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4832 else
4833 with_gnu_ld=no
4836 ac_prog=ld
4837 if test "$GCC" = yes; then
4838 # Check if gcc -print-prog-name=ld gives a path.
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4840 $as_echo_n "checking for ld used by $CC... " >&6; }
4841 case $host in
4842 *-*-mingw*)
4843 # gcc leaves a trailing carriage return which upsets mingw
4844 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4846 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4847 esac
4848 case $ac_prog in
4849 # Accept absolute paths.
4850 [\\/]* | ?:[\\/]*)
4851 re_direlt='/[^/][^/]*/\.\./'
4852 # Canonicalize the pathname of ld
4853 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4854 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4855 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4856 done
4857 test -z "$LD" && LD="$ac_prog"
4860 # If it fails, then pretend we aren't using GCC.
4861 ac_prog=ld
4864 # If it is relative, then search for the first ld in PATH.
4865 with_gnu_ld=unknown
4867 esac
4868 elif test "$with_gnu_ld" = yes; then
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4870 $as_echo_n "checking for GNU ld... " >&6; }
4871 else
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4873 $as_echo_n "checking for non-GNU ld... " >&6; }
4875 if test "${lt_cv_path_LD+set}" = set; then :
4876 $as_echo_n "(cached) " >&6
4877 else
4878 if test -z "$LD"; then
4879 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4880 for ac_dir in $PATH; do
4881 IFS="$lt_save_ifs"
4882 test -z "$ac_dir" && ac_dir=.
4883 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4884 lt_cv_path_LD="$ac_dir/$ac_prog"
4885 # Check to see if the program is GNU ld. I'd rather use --version,
4886 # but apparently some variants of GNU ld only accept -v.
4887 # Break only if it was the GNU/non-GNU ld that we prefer.
4888 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4889 *GNU* | *'with BFD'*)
4890 test "$with_gnu_ld" != no && break
4893 test "$with_gnu_ld" != yes && break
4895 esac
4897 done
4898 IFS="$lt_save_ifs"
4899 else
4900 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4904 LD="$lt_cv_path_LD"
4905 if test -n "$LD"; then
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4907 $as_echo "$LD" >&6; }
4908 else
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4910 $as_echo "no" >&6; }
4912 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4914 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4915 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4916 $as_echo_n "(cached) " >&6
4917 else
4918 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4919 case `$LD -v 2>&1 </dev/null` in
4920 *GNU* | *'with BFD'*)
4921 lt_cv_prog_gnu_ld=yes
4924 lt_cv_prog_gnu_ld=no
4926 esac
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4929 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4930 with_gnu_ld=$lt_cv_prog_gnu_ld
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4941 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4942 if test "${lt_cv_path_NM+set}" = set; then :
4943 $as_echo_n "(cached) " >&6
4944 else
4945 if test -n "$NM"; then
4946 # Let the user override the test.
4947 lt_cv_path_NM="$NM"
4948 else
4949 lt_nm_to_check="${ac_tool_prefix}nm"
4950 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4951 lt_nm_to_check="$lt_nm_to_check nm"
4953 for lt_tmp_nm in $lt_nm_to_check; do
4954 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4955 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4956 IFS="$lt_save_ifs"
4957 test -z "$ac_dir" && ac_dir=.
4958 tmp_nm="$ac_dir/$lt_tmp_nm"
4959 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4960 # Check to see if the nm accepts a BSD-compat flag.
4961 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4962 # nm: unknown option "B" ignored
4963 # Tru64's nm complains that /dev/null is an invalid object file
4964 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4965 */dev/null* | *'Invalid file or object type'*)
4966 lt_cv_path_NM="$tmp_nm -B"
4967 break
4970 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4971 */dev/null*)
4972 lt_cv_path_NM="$tmp_nm -p"
4973 break
4976 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4977 continue # so that we can try to find one that supports BSD flags
4979 esac
4981 esac
4983 done
4984 IFS="$lt_save_ifs"
4985 done
4986 : ${lt_cv_path_NM=no}
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4990 $as_echo "$lt_cv_path_NM" >&6; }
4991 if test "$lt_cv_path_NM" != "no"; then
4992 NM="$lt_cv_path_NM"
4993 else
4994 # Didn't find any BSD compatible name lister, look for dumpbin.
4995 if test -n "$DUMPBIN"; then :
4996 # Let the user override the test.
4997 else
4998 if test -n "$ac_tool_prefix"; then
4999 for ac_prog in dumpbin "link -dump"
5001 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5002 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004 $as_echo_n "checking for $ac_word... " >&6; }
5005 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5006 $as_echo_n "(cached) " >&6
5007 else
5008 if test -n "$DUMPBIN"; then
5009 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5010 else
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH
5014 IFS=$as_save_IFS
5015 test -z "$as_dir" && as_dir=.
5016 for ac_exec_ext in '' $ac_executable_extensions; do
5017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5018 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5020 break 2
5022 done
5023 done
5024 IFS=$as_save_IFS
5028 DUMPBIN=$ac_cv_prog_DUMPBIN
5029 if test -n "$DUMPBIN"; then
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5031 $as_echo "$DUMPBIN" >&6; }
5032 else
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034 $as_echo "no" >&6; }
5038 test -n "$DUMPBIN" && break
5039 done
5041 if test -z "$DUMPBIN"; then
5042 ac_ct_DUMPBIN=$DUMPBIN
5043 for ac_prog in dumpbin "link -dump"
5045 # Extract the first word of "$ac_prog", so it can be a program name with args.
5046 set dummy $ac_prog; ac_word=$2
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5048 $as_echo_n "checking for $ac_word... " >&6; }
5049 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5050 $as_echo_n "(cached) " >&6
5051 else
5052 if test -n "$ac_ct_DUMPBIN"; then
5053 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5054 else
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH
5058 IFS=$as_save_IFS
5059 test -z "$as_dir" && as_dir=.
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5062 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5064 break 2
5066 done
5067 done
5068 IFS=$as_save_IFS
5072 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5073 if test -n "$ac_ct_DUMPBIN"; then
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5075 $as_echo "$ac_ct_DUMPBIN" >&6; }
5076 else
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078 $as_echo "no" >&6; }
5082 test -n "$ac_ct_DUMPBIN" && break
5083 done
5085 if test "x$ac_ct_DUMPBIN" = x; then
5086 DUMPBIN=":"
5087 else
5088 case $cross_compiling:$ac_tool_warned in
5089 yes:)
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5092 ac_tool_warned=yes ;;
5093 esac
5094 DUMPBIN=$ac_ct_DUMPBIN
5098 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5099 *COFF*)
5100 DUMPBIN="$DUMPBIN -symbols"
5103 DUMPBIN=:
5105 esac
5108 if test "$DUMPBIN" != ":"; then
5109 NM="$DUMPBIN"
5112 test -z "$NM" && NM=nm
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5120 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5121 if test "${lt_cv_nm_interface+set}" = set; then :
5122 $as_echo_n "(cached) " >&6
5123 else
5124 lt_cv_nm_interface="BSD nm"
5125 echo "int some_variable = 0;" > conftest.$ac_ext
5126 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5127 (eval "$ac_compile" 2>conftest.err)
5128 cat conftest.err >&5
5129 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5130 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5131 cat conftest.err >&5
5132 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5133 cat conftest.out >&5
5134 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5135 lt_cv_nm_interface="MS dumpbin"
5137 rm -f conftest*
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5140 $as_echo "$lt_cv_nm_interface" >&6; }
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5143 $as_echo_n "checking whether ln -s works... " >&6; }
5144 LN_S=$as_ln_s
5145 if test "$LN_S" = "ln -s"; then
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5147 $as_echo "yes" >&6; }
5148 else
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5150 $as_echo "no, using $LN_S" >&6; }
5153 # find the maximum length of command line arguments
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5155 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5156 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5157 $as_echo_n "(cached) " >&6
5158 else
5160 teststring="ABCD"
5162 case $build_os in
5163 msdosdjgpp*)
5164 # On DJGPP, this test can blow up pretty badly due to problems in libc
5165 # (any single argument exceeding 2000 bytes causes a buffer overrun
5166 # during glob expansion). Even if it were fixed, the result of this
5167 # check would be larger than it should be.
5168 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5171 gnu*)
5172 # Under GNU Hurd, this test is not required because there is
5173 # no limit to the length of command line arguments.
5174 # Libtool will interpret -1 as no limit whatsoever
5175 lt_cv_sys_max_cmd_len=-1;
5178 cygwin* | mingw* | cegcc*)
5179 # On Win9x/ME, this test blows up -- it succeeds, but takes
5180 # about 5 minutes as the teststring grows exponentially.
5181 # Worse, since 9x/ME are not pre-emptively multitasking,
5182 # you end up with a "frozen" computer, even though with patience
5183 # the test eventually succeeds (with a max line length of 256k).
5184 # Instead, let's just punt: use the minimum linelength reported by
5185 # all of the supported platforms: 8192 (on NT/2K/XP).
5186 lt_cv_sys_max_cmd_len=8192;
5189 mint*)
5190 # On MiNT this can take a long time and run out of memory.
5191 lt_cv_sys_max_cmd_len=8192;
5194 amigaos*)
5195 # On AmigaOS with pdksh, this test takes hours, literally.
5196 # So we just punt and use a minimum line length of 8192.
5197 lt_cv_sys_max_cmd_len=8192;
5200 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5201 # This has been around since 386BSD, at least. Likely further.
5202 if test -x /sbin/sysctl; then
5203 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5204 elif test -x /usr/sbin/sysctl; then
5205 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5206 else
5207 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5209 # And add a safety zone
5210 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5211 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5214 interix*)
5215 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5216 lt_cv_sys_max_cmd_len=196608
5219 osf*)
5220 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5221 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5222 # nice to cause kernel panics so lets avoid the loop below.
5223 # First set a reasonable default.
5224 lt_cv_sys_max_cmd_len=16384
5226 if test -x /sbin/sysconfig; then
5227 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5228 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5229 esac
5232 sco3.2v5*)
5233 lt_cv_sys_max_cmd_len=102400
5235 sysv5* | sco5v6* | sysv4.2uw2*)
5236 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5237 if test -n "$kargmax"; then
5238 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5239 else
5240 lt_cv_sys_max_cmd_len=32768
5244 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5245 if test -n "$lt_cv_sys_max_cmd_len"; then
5246 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5247 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5248 else
5249 # Make teststring a little bigger before we do anything with it.
5250 # a 1K string should be a reasonable start.
5251 for i in 1 2 3 4 5 6 7 8 ; do
5252 teststring=$teststring$teststring
5253 done
5254 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5255 # If test is not a shell built-in, we'll probably end up computing a
5256 # maximum length that is only half of the actual maximum length, but
5257 # we can't tell.
5258 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5259 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5260 test $i != 17 # 1/2 MB should be enough
5262 i=`expr $i + 1`
5263 teststring=$teststring$teststring
5264 done
5265 # Only check the string length outside the loop.
5266 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5267 teststring=
5268 # Add a significant safety factor because C++ compilers can tack on
5269 # massive amounts of additional arguments before passing them to the
5270 # linker. It appears as though 1/2 is a usable value.
5271 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5274 esac
5278 if test -n $lt_cv_sys_max_cmd_len ; then
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5280 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5281 else
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5283 $as_echo "none" >&6; }
5285 max_cmd_len=$lt_cv_sys_max_cmd_len
5292 : ${CP="cp -f"}
5293 : ${MV="mv -f"}
5294 : ${RM="rm -f"}
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5297 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5298 # Try some XSI features
5299 xsi_shell=no
5300 ( _lt_dummy="a/b/c"
5301 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5302 = c,a/b,, \
5303 && eval 'test $(( 1 + 1 )) -eq 2 \
5304 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5305 && xsi_shell=yes
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5307 $as_echo "$xsi_shell" >&6; }
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5311 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5312 lt_shell_append=no
5313 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5314 >/dev/null 2>&1 \
5315 && lt_shell_append=yes
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5317 $as_echo "$lt_shell_append" >&6; }
5320 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5321 lt_unset=unset
5322 else
5323 lt_unset=false
5330 # test EBCDIC or ASCII
5331 case `echo X|tr X '\101'` in
5332 A) # ASCII based system
5333 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5334 lt_SP2NL='tr \040 \012'
5335 lt_NL2SP='tr \015\012 \040\040'
5337 *) # EBCDIC based system
5338 lt_SP2NL='tr \100 \n'
5339 lt_NL2SP='tr \r\n \100\100'
5341 esac
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5352 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5353 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5354 $as_echo_n "(cached) " >&6
5355 else
5356 lt_cv_ld_reload_flag='-r'
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5359 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5360 reload_flag=$lt_cv_ld_reload_flag
5361 case $reload_flag in
5362 "" | " "*) ;;
5363 *) reload_flag=" $reload_flag" ;;
5364 esac
5365 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5366 case $host_os in
5367 darwin*)
5368 if test "$GCC" = yes; then
5369 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5370 else
5371 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5374 esac
5384 if test -n "$ac_tool_prefix"; then
5385 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5386 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5388 $as_echo_n "checking for $ac_word... " >&6; }
5389 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5390 $as_echo_n "(cached) " >&6
5391 else
5392 if test -n "$OBJDUMP"; then
5393 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5394 else
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 for as_dir in $PATH
5398 IFS=$as_save_IFS
5399 test -z "$as_dir" && as_dir=.
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5402 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 break 2
5406 done
5407 done
5408 IFS=$as_save_IFS
5412 OBJDUMP=$ac_cv_prog_OBJDUMP
5413 if test -n "$OBJDUMP"; then
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5415 $as_echo "$OBJDUMP" >&6; }
5416 else
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5418 $as_echo "no" >&6; }
5423 if test -z "$ac_cv_prog_OBJDUMP"; then
5424 ac_ct_OBJDUMP=$OBJDUMP
5425 # Extract the first word of "objdump", so it can be a program name with args.
5426 set dummy objdump; ac_word=$2
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5428 $as_echo_n "checking for $ac_word... " >&6; }
5429 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5430 $as_echo_n "(cached) " >&6
5431 else
5432 if test -n "$ac_ct_OBJDUMP"; then
5433 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5434 else
5435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436 for as_dir in $PATH
5438 IFS=$as_save_IFS
5439 test -z "$as_dir" && as_dir=.
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5442 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 break 2
5446 done
5447 done
5448 IFS=$as_save_IFS
5452 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5453 if test -n "$ac_ct_OBJDUMP"; then
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5455 $as_echo "$ac_ct_OBJDUMP" >&6; }
5456 else
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5458 $as_echo "no" >&6; }
5461 if test "x$ac_ct_OBJDUMP" = x; then
5462 OBJDUMP="false"
5463 else
5464 case $cross_compiling:$ac_tool_warned in
5465 yes:)
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5468 ac_tool_warned=yes ;;
5469 esac
5470 OBJDUMP=$ac_ct_OBJDUMP
5472 else
5473 OBJDUMP="$ac_cv_prog_OBJDUMP"
5476 test -z "$OBJDUMP" && OBJDUMP=objdump
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5487 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5488 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5489 $as_echo_n "(cached) " >&6
5490 else
5491 lt_cv_file_magic_cmd='$MAGIC_CMD'
5492 lt_cv_file_magic_test_file=
5493 lt_cv_deplibs_check_method='unknown'
5494 # Need to set the preceding variable on all platforms that support
5495 # interlibrary dependencies.
5496 # 'none' -- dependencies not supported.
5497 # `unknown' -- same as none, but documents that we really don't know.
5498 # 'pass_all' -- all dependencies passed with no checks.
5499 # 'test_compile' -- check by making test program.
5500 # 'file_magic [[regex]]' -- check by looking for files in library path
5501 # which responds to the $file_magic_cmd with a given extended regex.
5502 # If you have `file' or equivalent on your system and you're not sure
5503 # whether `pass_all' will *always* work, you probably want this one.
5505 case $host_os in
5506 aix[4-9]*)
5507 lt_cv_deplibs_check_method=pass_all
5510 beos*)
5511 lt_cv_deplibs_check_method=pass_all
5514 bsdi[45]*)
5515 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5516 lt_cv_file_magic_cmd='/usr/bin/file -L'
5517 lt_cv_file_magic_test_file=/shlib/libc.so
5520 cygwin*)
5521 # func_win32_libid is a shell function defined in ltmain.sh
5522 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5523 lt_cv_file_magic_cmd='func_win32_libid'
5526 mingw* | pw32*)
5527 # Base MSYS/MinGW do not provide the 'file' command needed by
5528 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5529 # unless we find 'file', for example because we are cross-compiling.
5530 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5531 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5532 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5533 lt_cv_file_magic_cmd='func_win32_libid'
5534 else
5535 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5536 lt_cv_file_magic_cmd='$OBJDUMP -f'
5540 cegcc*)
5541 # use the weaker test based on 'objdump'. See mingw*.
5542 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5543 lt_cv_file_magic_cmd='$OBJDUMP -f'
5546 darwin* | rhapsody*)
5547 lt_cv_deplibs_check_method=pass_all
5550 freebsd* | dragonfly*)
5551 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5552 case $host_cpu in
5553 i*86 )
5554 # Not sure whether the presence of OpenBSD here was a mistake.
5555 # Let's accept both of them until this is cleared up.
5556 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5557 lt_cv_file_magic_cmd=/usr/bin/file
5558 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5560 esac
5561 else
5562 lt_cv_deplibs_check_method=pass_all
5566 gnu*)
5567 lt_cv_deplibs_check_method=pass_all
5570 haiku*)
5571 lt_cv_deplibs_check_method=pass_all
5574 hpux10.20* | hpux11*)
5575 lt_cv_file_magic_cmd=/usr/bin/file
5576 case $host_cpu in
5577 ia64*)
5578 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5579 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5581 hppa*64*)
5582 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]'
5583 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5586 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5587 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5589 esac
5592 interix[3-9]*)
5593 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5594 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5597 irix5* | irix6* | nonstopux*)
5598 case $LD in
5599 *-32|*"-32 ") libmagic=32-bit;;
5600 *-n32|*"-n32 ") libmagic=N32;;
5601 *-64|*"-64 ") libmagic=64-bit;;
5602 *) libmagic=never-match;;
5603 esac
5604 lt_cv_deplibs_check_method=pass_all
5607 # This must be Linux ELF.
5608 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5609 lt_cv_deplibs_check_method=pass_all
5612 netbsd*)
5613 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5614 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5615 else
5616 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5620 newos6*)
5621 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5622 lt_cv_file_magic_cmd=/usr/bin/file
5623 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5626 *nto* | *qnx*)
5627 lt_cv_deplibs_check_method=pass_all
5630 openbsd*)
5631 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5632 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5633 else
5634 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5638 osf3* | osf4* | osf5*)
5639 lt_cv_deplibs_check_method=pass_all
5642 rdos*)
5643 lt_cv_deplibs_check_method=pass_all
5646 solaris*)
5647 lt_cv_deplibs_check_method=pass_all
5650 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5651 lt_cv_deplibs_check_method=pass_all
5654 sysv4 | sysv4.3*)
5655 case $host_vendor in
5656 motorola)
5657 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]'
5658 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5660 ncr)
5661 lt_cv_deplibs_check_method=pass_all
5663 sequent)
5664 lt_cv_file_magic_cmd='/bin/file'
5665 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5667 sni)
5668 lt_cv_file_magic_cmd='/bin/file'
5669 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5670 lt_cv_file_magic_test_file=/lib/libc.so
5672 siemens)
5673 lt_cv_deplibs_check_method=pass_all
5676 lt_cv_deplibs_check_method=pass_all
5678 esac
5681 tpf*)
5682 lt_cv_deplibs_check_method=pass_all
5684 esac
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5688 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5689 file_magic_cmd=$lt_cv_file_magic_cmd
5690 deplibs_check_method=$lt_cv_deplibs_check_method
5691 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5704 if test -n "$ac_tool_prefix"; then
5705 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5706 set dummy ${ac_tool_prefix}ar; ac_word=$2
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5708 $as_echo_n "checking for $ac_word... " >&6; }
5709 if test "${ac_cv_prog_AR+set}" = set; then :
5710 $as_echo_n "(cached) " >&6
5711 else
5712 if test -n "$AR"; then
5713 ac_cv_prog_AR="$AR" # Let the user override the test.
5714 else
5715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716 for as_dir in $PATH
5718 IFS=$as_save_IFS
5719 test -z "$as_dir" && as_dir=.
5720 for ac_exec_ext in '' $ac_executable_extensions; do
5721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5722 ac_cv_prog_AR="${ac_tool_prefix}ar"
5723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5724 break 2
5726 done
5727 done
5728 IFS=$as_save_IFS
5732 AR=$ac_cv_prog_AR
5733 if test -n "$AR"; then
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5735 $as_echo "$AR" >&6; }
5736 else
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 $as_echo "no" >&6; }
5743 if test -z "$ac_cv_prog_AR"; then
5744 ac_ct_AR=$AR
5745 # Extract the first word of "ar", so it can be a program name with args.
5746 set dummy ar; ac_word=$2
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5748 $as_echo_n "checking for $ac_word... " >&6; }
5749 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5750 $as_echo_n "(cached) " >&6
5751 else
5752 if test -n "$ac_ct_AR"; then
5753 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5754 else
5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756 for as_dir in $PATH
5758 IFS=$as_save_IFS
5759 test -z "$as_dir" && as_dir=.
5760 for ac_exec_ext in '' $ac_executable_extensions; do
5761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5762 ac_cv_prog_ac_ct_AR="ar"
5763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5764 break 2
5766 done
5767 done
5768 IFS=$as_save_IFS
5772 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5773 if test -n "$ac_ct_AR"; then
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5775 $as_echo "$ac_ct_AR" >&6; }
5776 else
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5778 $as_echo "no" >&6; }
5781 if test "x$ac_ct_AR" = x; then
5782 AR="false"
5783 else
5784 case $cross_compiling:$ac_tool_warned in
5785 yes:)
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5788 ac_tool_warned=yes ;;
5789 esac
5790 AR=$ac_ct_AR
5792 else
5793 AR="$ac_cv_prog_AR"
5796 test -z "$AR" && AR=ar
5797 test -z "$AR_FLAGS" && AR_FLAGS=cru
5809 if test -n "$ac_tool_prefix"; then
5810 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5811 set dummy ${ac_tool_prefix}strip; ac_word=$2
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5813 $as_echo_n "checking for $ac_word... " >&6; }
5814 if test "${ac_cv_prog_STRIP+set}" = set; then :
5815 $as_echo_n "(cached) " >&6
5816 else
5817 if test -n "$STRIP"; then
5818 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5819 else
5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 for as_dir in $PATH
5823 IFS=$as_save_IFS
5824 test -z "$as_dir" && as_dir=.
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5827 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5829 break 2
5831 done
5832 done
5833 IFS=$as_save_IFS
5837 STRIP=$ac_cv_prog_STRIP
5838 if test -n "$STRIP"; then
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5840 $as_echo "$STRIP" >&6; }
5841 else
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843 $as_echo "no" >&6; }
5848 if test -z "$ac_cv_prog_STRIP"; then
5849 ac_ct_STRIP=$STRIP
5850 # Extract the first word of "strip", so it can be a program name with args.
5851 set dummy strip; ac_word=$2
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5853 $as_echo_n "checking for $ac_word... " >&6; }
5854 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5855 $as_echo_n "(cached) " >&6
5856 else
5857 if test -n "$ac_ct_STRIP"; then
5858 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5859 else
5860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861 for as_dir in $PATH
5863 IFS=$as_save_IFS
5864 test -z "$as_dir" && as_dir=.
5865 for ac_exec_ext in '' $ac_executable_extensions; do
5866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5867 ac_cv_prog_ac_ct_STRIP="strip"
5868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5869 break 2
5871 done
5872 done
5873 IFS=$as_save_IFS
5877 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5878 if test -n "$ac_ct_STRIP"; then
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5880 $as_echo "$ac_ct_STRIP" >&6; }
5881 else
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5883 $as_echo "no" >&6; }
5886 if test "x$ac_ct_STRIP" = x; then
5887 STRIP=":"
5888 else
5889 case $cross_compiling:$ac_tool_warned in
5890 yes:)
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5893 ac_tool_warned=yes ;;
5894 esac
5895 STRIP=$ac_ct_STRIP
5897 else
5898 STRIP="$ac_cv_prog_STRIP"
5901 test -z "$STRIP" && STRIP=:
5908 if test -n "$ac_tool_prefix"; then
5909 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5910 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5912 $as_echo_n "checking for $ac_word... " >&6; }
5913 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5914 $as_echo_n "(cached) " >&6
5915 else
5916 if test -n "$RANLIB"; then
5917 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5918 else
5919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920 for as_dir in $PATH
5922 IFS=$as_save_IFS
5923 test -z "$as_dir" && as_dir=.
5924 for ac_exec_ext in '' $ac_executable_extensions; do
5925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5926 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5928 break 2
5930 done
5931 done
5932 IFS=$as_save_IFS
5936 RANLIB=$ac_cv_prog_RANLIB
5937 if test -n "$RANLIB"; then
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5939 $as_echo "$RANLIB" >&6; }
5940 else
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942 $as_echo "no" >&6; }
5947 if test -z "$ac_cv_prog_RANLIB"; then
5948 ac_ct_RANLIB=$RANLIB
5949 # Extract the first word of "ranlib", so it can be a program name with args.
5950 set dummy ranlib; ac_word=$2
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5952 $as_echo_n "checking for $ac_word... " >&6; }
5953 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5954 $as_echo_n "(cached) " >&6
5955 else
5956 if test -n "$ac_ct_RANLIB"; then
5957 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5958 else
5959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960 for as_dir in $PATH
5962 IFS=$as_save_IFS
5963 test -z "$as_dir" && as_dir=.
5964 for ac_exec_ext in '' $ac_executable_extensions; do
5965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5966 ac_cv_prog_ac_ct_RANLIB="ranlib"
5967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 break 2
5970 done
5971 done
5972 IFS=$as_save_IFS
5976 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5977 if test -n "$ac_ct_RANLIB"; then
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5979 $as_echo "$ac_ct_RANLIB" >&6; }
5980 else
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5982 $as_echo "no" >&6; }
5985 if test "x$ac_ct_RANLIB" = x; then
5986 RANLIB=":"
5987 else
5988 case $cross_compiling:$ac_tool_warned in
5989 yes:)
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5992 ac_tool_warned=yes ;;
5993 esac
5994 RANLIB=$ac_ct_RANLIB
5996 else
5997 RANLIB="$ac_cv_prog_RANLIB"
6000 test -z "$RANLIB" && RANLIB=:
6007 # Determine commands to create old-style static archives.
6008 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6009 old_postinstall_cmds='chmod 644 $oldlib'
6010 old_postuninstall_cmds=
6012 if test -n "$RANLIB"; then
6013 case $host_os in
6014 openbsd*)
6015 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6018 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6020 esac
6021 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6024 case $host_os in
6025 darwin*)
6026 lock_old_archive_extraction=yes ;;
6028 lock_old_archive_extraction=no ;;
6029 esac
6069 # If no C compiler was specified, use CC.
6070 LTCC=${LTCC-"$CC"}
6072 # If no C compiler flags were specified, use CFLAGS.
6073 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6075 # Allow CC to be a program name with arguments.
6076 compiler=$CC
6079 # Check for command to grab the raw symbol name followed by C symbol from nm.
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6081 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6082 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6083 $as_echo_n "(cached) " >&6
6084 else
6086 # These are sane defaults that work on at least a few old systems.
6087 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6089 # Character class describing NM global symbol codes.
6090 symcode='[BCDEGRST]'
6092 # Regexp to match symbols that can be accessed directly from C.
6093 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6095 # Define system-specific variables.
6096 case $host_os in
6097 aix*)
6098 symcode='[BCDT]'
6100 cygwin* | mingw* | pw32* | cegcc*)
6101 symcode='[ABCDGISTW]'
6103 hpux*)
6104 if test "$host_cpu" = ia64; then
6105 symcode='[ABCDEGRST]'
6108 irix* | nonstopux*)
6109 symcode='[BCDEGRST]'
6111 osf*)
6112 symcode='[BCDEGQRST]'
6114 solaris*)
6115 symcode='[BDRT]'
6117 sco3.2v5*)
6118 symcode='[DT]'
6120 sysv4.2uw2*)
6121 symcode='[DT]'
6123 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6124 symcode='[ABDT]'
6126 sysv4)
6127 symcode='[DFNSTU]'
6129 esac
6131 # If we're using GNU nm, then use its standard symbol codes.
6132 case `$NM -V 2>&1` in
6133 *GNU* | *'with BFD'*)
6134 symcode='[ABCDGIRSTW]' ;;
6135 esac
6137 # Transform an extracted symbol line into a proper C declaration.
6138 # Some systems (esp. on ia64) link data and code symbols differently,
6139 # so use this general approach.
6140 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6142 # Transform an extracted symbol line into symbol name and symbol address
6143 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6144 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'"
6146 # Handle CRLF in mingw tool chain
6147 opt_cr=
6148 case $build_os in
6149 mingw*)
6150 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6152 esac
6154 # Try without a prefix underscore, then with it.
6155 for ac_symprfx in "" "_"; do
6157 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6158 symxfrm="\\1 $ac_symprfx\\2 \\2"
6160 # Write the raw and C identifiers.
6161 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6162 # Fake it for dumpbin and say T for any non-static function
6163 # and D for any global variable.
6164 # Also find C++ and __fastcall symbols from MSVC++,
6165 # which start with @ or ?.
6166 lt_cv_sys_global_symbol_pipe="$AWK '"\
6167 " {last_section=section; section=\$ 3};"\
6168 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6169 " \$ 0!~/External *\|/{next};"\
6170 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6171 " {if(hide[section]) next};"\
6172 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6173 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6174 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6175 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6176 " ' prfx=^$ac_symprfx"
6177 else
6178 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6181 # Check to see that the pipe works correctly.
6182 pipe_works=no
6184 rm -f conftest*
6185 cat > conftest.$ac_ext <<_LT_EOF
6186 #ifdef __cplusplus
6187 extern "C" {
6188 #endif
6189 char nm_test_var;
6190 void nm_test_func(void);
6191 void nm_test_func(void){}
6192 #ifdef __cplusplus
6194 #endif
6195 int main(){nm_test_var='a';nm_test_func();return(0);}
6196 _LT_EOF
6198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6199 (eval $ac_compile) 2>&5
6200 ac_status=$?
6201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6202 test $ac_status = 0; }; then
6203 # Now try to grab the symbols.
6204 nlist=conftest.nm
6205 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6206 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6207 ac_status=$?
6208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6209 test $ac_status = 0; } && test -s "$nlist"; then
6210 # Try sorting and uniquifying the output.
6211 if sort "$nlist" | uniq > "$nlist"T; then
6212 mv -f "$nlist"T "$nlist"
6213 else
6214 rm -f "$nlist"T
6217 # Make sure that we snagged all the symbols we need.
6218 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6219 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6220 cat <<_LT_EOF > conftest.$ac_ext
6221 #ifdef __cplusplus
6222 extern "C" {
6223 #endif
6225 _LT_EOF
6226 # Now generate the symbol file.
6227 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6229 cat <<_LT_EOF >> conftest.$ac_ext
6231 /* The mapping between symbol names and symbols. */
6232 const struct {
6233 const char *name;
6234 void *address;
6236 lt__PROGRAM__LTX_preloaded_symbols[] =
6238 { "@PROGRAM@", (void *) 0 },
6239 _LT_EOF
6240 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6241 cat <<\_LT_EOF >> conftest.$ac_ext
6242 {0, (void *) 0}
6245 /* This works around a problem in FreeBSD linker */
6246 #ifdef FREEBSD_WORKAROUND
6247 static const void *lt_preloaded_setup() {
6248 return lt__PROGRAM__LTX_preloaded_symbols;
6250 #endif
6252 #ifdef __cplusplus
6254 #endif
6255 _LT_EOF
6256 # Now try linking the two files.
6257 mv conftest.$ac_objext conftstm.$ac_objext
6258 lt_save_LIBS="$LIBS"
6259 lt_save_CFLAGS="$CFLAGS"
6260 LIBS="conftstm.$ac_objext"
6261 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6263 (eval $ac_link) 2>&5
6264 ac_status=$?
6265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6266 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6267 pipe_works=yes
6269 LIBS="$lt_save_LIBS"
6270 CFLAGS="$lt_save_CFLAGS"
6271 else
6272 echo "cannot find nm_test_func in $nlist" >&5
6274 else
6275 echo "cannot find nm_test_var in $nlist" >&5
6277 else
6278 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6280 else
6281 echo "$progname: failed program was:" >&5
6282 cat conftest.$ac_ext >&5
6284 rm -rf conftest* conftst*
6286 # Do not use the global_symbol_pipe unless it works.
6287 if test "$pipe_works" = yes; then
6288 break
6289 else
6290 lt_cv_sys_global_symbol_pipe=
6292 done
6296 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6297 lt_cv_sys_global_symbol_to_cdecl=
6299 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6301 $as_echo "failed" >&6; }
6302 else
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6304 $as_echo "ok" >&6; }
6329 # Check whether --enable-libtool-lock was given.
6330 if test "${enable_libtool_lock+set}" = set; then :
6331 enableval=$enable_libtool_lock;
6334 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6336 # Some flags need to be propagated to the compiler or linker for good
6337 # libtool support.
6338 case $host in
6339 ia64-*-hpux*)
6340 # Find out which ABI we are using.
6341 echo 'int i;' > conftest.$ac_ext
6342 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6343 (eval $ac_compile) 2>&5
6344 ac_status=$?
6345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6346 test $ac_status = 0; }; then
6347 case `/usr/bin/file conftest.$ac_objext` in
6348 *ELF-32*)
6349 HPUX_IA64_MODE="32"
6351 *ELF-64*)
6352 HPUX_IA64_MODE="64"
6354 esac
6356 rm -rf conftest*
6358 *-*-irix6*)
6359 # Find out which ABI we are using.
6360 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6362 (eval $ac_compile) 2>&5
6363 ac_status=$?
6364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6365 test $ac_status = 0; }; then
6366 if test "$lt_cv_prog_gnu_ld" = yes; then
6367 case `/usr/bin/file conftest.$ac_objext` in
6368 *32-bit*)
6369 LD="${LD-ld} -melf32bsmip"
6371 *N32*)
6372 LD="${LD-ld} -melf32bmipn32"
6374 *64-bit*)
6375 LD="${LD-ld} -melf64bmip"
6377 esac
6378 else
6379 case `/usr/bin/file conftest.$ac_objext` in
6380 *32-bit*)
6381 LD="${LD-ld} -32"
6383 *N32*)
6384 LD="${LD-ld} -n32"
6386 *64-bit*)
6387 LD="${LD-ld} -64"
6389 esac
6392 rm -rf conftest*
6395 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6396 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6397 # Find out which ABI we are using.
6398 echo 'int i;' > conftest.$ac_ext
6399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6400 (eval $ac_compile) 2>&5
6401 ac_status=$?
6402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6403 test $ac_status = 0; }; then
6404 case `/usr/bin/file conftest.o` in
6405 *32-bit*)
6406 case $host in
6407 x86_64-*kfreebsd*-gnu)
6408 LD="${LD-ld} -m elf_i386_fbsd"
6410 x86_64-*linux*)
6411 case `/usr/bin/file conftest.o` in
6412 *x86-64*)
6413 LD="${LD-ld} -m elf32_x86_64"
6416 LD="${LD-ld} -m elf_i386"
6418 esac
6420 powerpc64le-*linux*)
6421 LD="${LD-ld} -m elf32lppclinux"
6423 powerpc64-*linux*)
6424 LD="${LD-ld} -m elf32ppclinux"
6426 s390x-*linux*)
6427 LD="${LD-ld} -m elf_s390"
6429 sparc64-*linux*)
6430 LD="${LD-ld} -m elf32_sparc"
6432 esac
6434 *64-bit*)
6435 case $host in
6436 x86_64-*kfreebsd*-gnu)
6437 LD="${LD-ld} -m elf_x86_64_fbsd"
6439 x86_64-*linux*)
6440 LD="${LD-ld} -m elf_x86_64"
6442 powerpcle-*linux*)
6443 LD="${LD-ld} -m elf64lppc"
6445 powerpc-*linux*)
6446 LD="${LD-ld} -m elf64ppc"
6448 s390*-*linux*|s390*-*tpf*)
6449 LD="${LD-ld} -m elf64_s390"
6451 sparc*-*linux*)
6452 LD="${LD-ld} -m elf64_sparc"
6454 esac
6456 esac
6458 rm -rf conftest*
6461 *-*-sco3.2v5*)
6462 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6463 SAVE_CFLAGS="$CFLAGS"
6464 CFLAGS="$CFLAGS -belf"
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6466 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6467 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6468 $as_echo_n "(cached) " >&6
6469 else
6470 ac_ext=c
6471 ac_cpp='$CPP $CPPFLAGS'
6472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477 /* end confdefs.h. */
6480 main ()
6484 return 0;
6486 _ACEOF
6487 if ac_fn_c_try_link "$LINENO"; then :
6488 lt_cv_cc_needs_belf=yes
6489 else
6490 lt_cv_cc_needs_belf=no
6492 rm -f core conftest.err conftest.$ac_objext \
6493 conftest$ac_exeext conftest.$ac_ext
6494 ac_ext=c
6495 ac_cpp='$CPP $CPPFLAGS'
6496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6502 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6503 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6504 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6505 CFLAGS="$SAVE_CFLAGS"
6508 sparc*-*solaris*)
6509 # Find out which ABI we are using.
6510 echo 'int i;' > conftest.$ac_ext
6511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6512 (eval $ac_compile) 2>&5
6513 ac_status=$?
6514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6515 test $ac_status = 0; }; then
6516 case `/usr/bin/file conftest.o` in
6517 *64-bit*)
6518 case $lt_cv_prog_gnu_ld in
6519 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6521 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6522 LD="${LD-ld} -64"
6525 esac
6527 esac
6529 rm -rf conftest*
6531 esac
6533 need_locks="$enable_libtool_lock"
6536 case $host_os in
6537 rhapsody* | darwin*)
6538 if test -n "$ac_tool_prefix"; then
6539 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6540 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542 $as_echo_n "checking for $ac_word... " >&6; }
6543 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6544 $as_echo_n "(cached) " >&6
6545 else
6546 if test -n "$DSYMUTIL"; then
6547 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6548 else
6549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550 for as_dir in $PATH
6552 IFS=$as_save_IFS
6553 test -z "$as_dir" && as_dir=.
6554 for ac_exec_ext in '' $ac_executable_extensions; do
6555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6556 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 break 2
6560 done
6561 done
6562 IFS=$as_save_IFS
6566 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6567 if test -n "$DSYMUTIL"; then
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6569 $as_echo "$DSYMUTIL" >&6; }
6570 else
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572 $as_echo "no" >&6; }
6577 if test -z "$ac_cv_prog_DSYMUTIL"; then
6578 ac_ct_DSYMUTIL=$DSYMUTIL
6579 # Extract the first word of "dsymutil", so it can be a program name with args.
6580 set dummy dsymutil; ac_word=$2
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6582 $as_echo_n "checking for $ac_word... " >&6; }
6583 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6584 $as_echo_n "(cached) " >&6
6585 else
6586 if test -n "$ac_ct_DSYMUTIL"; then
6587 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6588 else
6589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590 for as_dir in $PATH
6592 IFS=$as_save_IFS
6593 test -z "$as_dir" && as_dir=.
6594 for ac_exec_ext in '' $ac_executable_extensions; do
6595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6596 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 break 2
6600 done
6601 done
6602 IFS=$as_save_IFS
6606 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6607 if test -n "$ac_ct_DSYMUTIL"; then
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6609 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6610 else
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6612 $as_echo "no" >&6; }
6615 if test "x$ac_ct_DSYMUTIL" = x; then
6616 DSYMUTIL=":"
6617 else
6618 case $cross_compiling:$ac_tool_warned in
6619 yes:)
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6622 ac_tool_warned=yes ;;
6623 esac
6624 DSYMUTIL=$ac_ct_DSYMUTIL
6626 else
6627 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6630 if test -n "$ac_tool_prefix"; then
6631 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6632 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6634 $as_echo_n "checking for $ac_word... " >&6; }
6635 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6636 $as_echo_n "(cached) " >&6
6637 else
6638 if test -n "$NMEDIT"; then
6639 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6640 else
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 for as_dir in $PATH
6644 IFS=$as_save_IFS
6645 test -z "$as_dir" && as_dir=.
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6648 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 break 2
6652 done
6653 done
6654 IFS=$as_save_IFS
6658 NMEDIT=$ac_cv_prog_NMEDIT
6659 if test -n "$NMEDIT"; then
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6661 $as_echo "$NMEDIT" >&6; }
6662 else
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6664 $as_echo "no" >&6; }
6669 if test -z "$ac_cv_prog_NMEDIT"; then
6670 ac_ct_NMEDIT=$NMEDIT
6671 # Extract the first word of "nmedit", so it can be a program name with args.
6672 set dummy nmedit; ac_word=$2
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6674 $as_echo_n "checking for $ac_word... " >&6; }
6675 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6676 $as_echo_n "(cached) " >&6
6677 else
6678 if test -n "$ac_ct_NMEDIT"; then
6679 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6680 else
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 for as_dir in $PATH
6684 IFS=$as_save_IFS
6685 test -z "$as_dir" && as_dir=.
6686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6688 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6690 break 2
6692 done
6693 done
6694 IFS=$as_save_IFS
6698 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6699 if test -n "$ac_ct_NMEDIT"; then
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6701 $as_echo "$ac_ct_NMEDIT" >&6; }
6702 else
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6704 $as_echo "no" >&6; }
6707 if test "x$ac_ct_NMEDIT" = x; then
6708 NMEDIT=":"
6709 else
6710 case $cross_compiling:$ac_tool_warned in
6711 yes:)
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6714 ac_tool_warned=yes ;;
6715 esac
6716 NMEDIT=$ac_ct_NMEDIT
6718 else
6719 NMEDIT="$ac_cv_prog_NMEDIT"
6722 if test -n "$ac_tool_prefix"; then
6723 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6724 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6726 $as_echo_n "checking for $ac_word... " >&6; }
6727 if test "${ac_cv_prog_LIPO+set}" = set; then :
6728 $as_echo_n "(cached) " >&6
6729 else
6730 if test -n "$LIPO"; then
6731 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6732 else
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 for as_dir in $PATH
6736 IFS=$as_save_IFS
6737 test -z "$as_dir" && as_dir=.
6738 for ac_exec_ext in '' $ac_executable_extensions; do
6739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 break 2
6744 done
6745 done
6746 IFS=$as_save_IFS
6750 LIPO=$ac_cv_prog_LIPO
6751 if test -n "$LIPO"; then
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6753 $as_echo "$LIPO" >&6; }
6754 else
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756 $as_echo "no" >&6; }
6761 if test -z "$ac_cv_prog_LIPO"; then
6762 ac_ct_LIPO=$LIPO
6763 # Extract the first word of "lipo", so it can be a program name with args.
6764 set dummy lipo; ac_word=$2
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6766 $as_echo_n "checking for $ac_word... " >&6; }
6767 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6768 $as_echo_n "(cached) " >&6
6769 else
6770 if test -n "$ac_ct_LIPO"; then
6771 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6772 else
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 for as_dir in $PATH
6776 IFS=$as_save_IFS
6777 test -z "$as_dir" && as_dir=.
6778 for ac_exec_ext in '' $ac_executable_extensions; do
6779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6780 ac_cv_prog_ac_ct_LIPO="lipo"
6781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6782 break 2
6784 done
6785 done
6786 IFS=$as_save_IFS
6790 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6791 if test -n "$ac_ct_LIPO"; then
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6793 $as_echo "$ac_ct_LIPO" >&6; }
6794 else
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6796 $as_echo "no" >&6; }
6799 if test "x$ac_ct_LIPO" = x; then
6800 LIPO=":"
6801 else
6802 case $cross_compiling:$ac_tool_warned in
6803 yes:)
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6806 ac_tool_warned=yes ;;
6807 esac
6808 LIPO=$ac_ct_LIPO
6810 else
6811 LIPO="$ac_cv_prog_LIPO"
6814 if test -n "$ac_tool_prefix"; then
6815 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6816 set dummy ${ac_tool_prefix}otool; ac_word=$2
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6818 $as_echo_n "checking for $ac_word... " >&6; }
6819 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6820 $as_echo_n "(cached) " >&6
6821 else
6822 if test -n "$OTOOL"; then
6823 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6824 else
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 for as_dir in $PATH
6828 IFS=$as_save_IFS
6829 test -z "$as_dir" && as_dir=.
6830 for ac_exec_ext in '' $ac_executable_extensions; do
6831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6832 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6834 break 2
6836 done
6837 done
6838 IFS=$as_save_IFS
6842 OTOOL=$ac_cv_prog_OTOOL
6843 if test -n "$OTOOL"; then
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6845 $as_echo "$OTOOL" >&6; }
6846 else
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6848 $as_echo "no" >&6; }
6853 if test -z "$ac_cv_prog_OTOOL"; then
6854 ac_ct_OTOOL=$OTOOL
6855 # Extract the first word of "otool", so it can be a program name with args.
6856 set dummy otool; ac_word=$2
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858 $as_echo_n "checking for $ac_word... " >&6; }
6859 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6860 $as_echo_n "(cached) " >&6
6861 else
6862 if test -n "$ac_ct_OTOOL"; then
6863 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6864 else
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 for as_dir in $PATH
6868 IFS=$as_save_IFS
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6872 ac_cv_prog_ac_ct_OTOOL="otool"
6873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 break 2
6876 done
6877 done
6878 IFS=$as_save_IFS
6882 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6883 if test -n "$ac_ct_OTOOL"; then
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6885 $as_echo "$ac_ct_OTOOL" >&6; }
6886 else
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6888 $as_echo "no" >&6; }
6891 if test "x$ac_ct_OTOOL" = x; then
6892 OTOOL=":"
6893 else
6894 case $cross_compiling:$ac_tool_warned in
6895 yes:)
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6898 ac_tool_warned=yes ;;
6899 esac
6900 OTOOL=$ac_ct_OTOOL
6902 else
6903 OTOOL="$ac_cv_prog_OTOOL"
6906 if test -n "$ac_tool_prefix"; then
6907 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6908 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6910 $as_echo_n "checking for $ac_word... " >&6; }
6911 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6912 $as_echo_n "(cached) " >&6
6913 else
6914 if test -n "$OTOOL64"; then
6915 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6916 else
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918 for as_dir in $PATH
6920 IFS=$as_save_IFS
6921 test -z "$as_dir" && as_dir=.
6922 for ac_exec_ext in '' $ac_executable_extensions; do
6923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6924 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6926 break 2
6928 done
6929 done
6930 IFS=$as_save_IFS
6934 OTOOL64=$ac_cv_prog_OTOOL64
6935 if test -n "$OTOOL64"; then
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6937 $as_echo "$OTOOL64" >&6; }
6938 else
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6940 $as_echo "no" >&6; }
6945 if test -z "$ac_cv_prog_OTOOL64"; then
6946 ac_ct_OTOOL64=$OTOOL64
6947 # Extract the first word of "otool64", so it can be a program name with args.
6948 set dummy otool64; ac_word=$2
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6950 $as_echo_n "checking for $ac_word... " >&6; }
6951 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6952 $as_echo_n "(cached) " >&6
6953 else
6954 if test -n "$ac_ct_OTOOL64"; then
6955 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6956 else
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 for as_dir in $PATH
6960 IFS=$as_save_IFS
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6964 ac_cv_prog_ac_ct_OTOOL64="otool64"
6965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6966 break 2
6968 done
6969 done
6970 IFS=$as_save_IFS
6974 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6975 if test -n "$ac_ct_OTOOL64"; then
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6977 $as_echo "$ac_ct_OTOOL64" >&6; }
6978 else
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6980 $as_echo "no" >&6; }
6983 if test "x$ac_ct_OTOOL64" = x; then
6984 OTOOL64=":"
6985 else
6986 case $cross_compiling:$ac_tool_warned in
6987 yes:)
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6990 ac_tool_warned=yes ;;
6991 esac
6992 OTOOL64=$ac_ct_OTOOL64
6994 else
6995 OTOOL64="$ac_cv_prog_OTOOL64"
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7025 $as_echo_n "checking for -single_module linker flag... " >&6; }
7026 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7027 $as_echo_n "(cached) " >&6
7028 else
7029 lt_cv_apple_cc_single_mod=no
7030 if test -z "${LT_MULTI_MODULE}"; then
7031 # By default we will add the -single_module flag. You can override
7032 # by either setting the environment variable LT_MULTI_MODULE
7033 # non-empty at configure time, or by adding -multi_module to the
7034 # link flags.
7035 rm -rf libconftest.dylib*
7036 echo "int foo(void){return 1;}" > conftest.c
7037 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7038 -dynamiclib -Wl,-single_module conftest.c" >&5
7039 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7040 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7041 _lt_result=$?
7042 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7043 lt_cv_apple_cc_single_mod=yes
7044 else
7045 cat conftest.err >&5
7047 rm -rf libconftest.dylib*
7048 rm -f conftest.*
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7052 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7054 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7055 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7056 $as_echo_n "(cached) " >&6
7057 else
7058 lt_cv_ld_exported_symbols_list=no
7059 save_LDFLAGS=$LDFLAGS
7060 echo "_main" > conftest.sym
7061 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7066 main ()
7070 return 0;
7072 _ACEOF
7073 if ac_fn_c_try_link "$LINENO"; then :
7074 lt_cv_ld_exported_symbols_list=yes
7075 else
7076 lt_cv_ld_exported_symbols_list=no
7078 rm -f core conftest.err conftest.$ac_objext \
7079 conftest$ac_exeext conftest.$ac_ext
7080 LDFLAGS="$save_LDFLAGS"
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7084 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7086 $as_echo_n "checking for -force_load linker flag... " >&6; }
7087 if test "${lt_cv_ld_force_load+set}" = set; then :
7088 $as_echo_n "(cached) " >&6
7089 else
7090 lt_cv_ld_force_load=no
7091 cat > conftest.c << _LT_EOF
7092 int forced_loaded() { return 2;}
7093 _LT_EOF
7094 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7095 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7096 echo "$AR cru libconftest.a conftest.o" >&5
7097 $AR cru libconftest.a conftest.o 2>&5
7098 cat > conftest.c << _LT_EOF
7099 int main() { return 0;}
7100 _LT_EOF
7101 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7102 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7103 _lt_result=$?
7104 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7105 lt_cv_ld_force_load=yes
7106 else
7107 cat conftest.err >&5
7109 rm -f conftest.err libconftest.a conftest conftest.c
7110 rm -rf conftest.dSYM
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7114 $as_echo "$lt_cv_ld_force_load" >&6; }
7115 case $host_os in
7116 rhapsody* | darwin1.[012])
7117 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7118 darwin1.*)
7119 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7120 darwin*) # darwin 5.x on
7121 # if running on 10.5 or later, the deployment target defaults
7122 # to the OS version, if on x86, and 10.4, the deployment
7123 # target defaults to 10.4. Don't you love it?
7124 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7125 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7126 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7127 10.[012]*)
7128 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7129 10.*)
7130 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7131 esac
7133 esac
7134 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7135 _lt_dar_single_mod='$single_module'
7137 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7138 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7139 else
7140 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7142 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7143 _lt_dsymutil='~$DSYMUTIL $lib || :'
7144 else
7145 _lt_dsymutil=
7148 esac
7150 ac_ext=c
7151 ac_cpp='$CPP $CPPFLAGS'
7152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7156 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7157 # On Suns, sometimes $CPP names a directory.
7158 if test -n "$CPP" && test -d "$CPP"; then
7159 CPP=
7161 if test -z "$CPP"; then
7162 if test "${ac_cv_prog_CPP+set}" = set; then :
7163 $as_echo_n "(cached) " >&6
7164 else
7165 # Double quotes because CPP needs to be expanded
7166 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7168 ac_preproc_ok=false
7169 for ac_c_preproc_warn_flag in '' yes
7171 # Use a header file that comes with gcc, so configuring glibc
7172 # with a fresh cross-compiler works.
7173 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7174 # <limits.h> exists even on freestanding compilers.
7175 # On the NeXT, cc -E runs the code through the compiler's parser,
7176 # not just through cpp. "Syntax error" is here to catch this case.
7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178 /* end confdefs.h. */
7179 #ifdef __STDC__
7180 # include <limits.h>
7181 #else
7182 # include <assert.h>
7183 #endif
7184 Syntax error
7185 _ACEOF
7186 if ac_fn_c_try_cpp "$LINENO"; then :
7188 else
7189 # Broken: fails on valid input.
7190 continue
7192 rm -f conftest.err conftest.$ac_ext
7194 # OK, works on sane cases. Now check whether nonexistent headers
7195 # can be detected and how.
7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197 /* end confdefs.h. */
7198 #include <ac_nonexistent.h>
7199 _ACEOF
7200 if ac_fn_c_try_cpp "$LINENO"; then :
7201 # Broken: success on invalid input.
7202 continue
7203 else
7204 # Passes both tests.
7205 ac_preproc_ok=:
7206 break
7208 rm -f conftest.err conftest.$ac_ext
7210 done
7211 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7212 rm -f conftest.err conftest.$ac_ext
7213 if $ac_preproc_ok; then :
7214 break
7217 done
7218 ac_cv_prog_CPP=$CPP
7221 CPP=$ac_cv_prog_CPP
7222 else
7223 ac_cv_prog_CPP=$CPP
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7226 $as_echo "$CPP" >&6; }
7227 ac_preproc_ok=false
7228 for ac_c_preproc_warn_flag in '' yes
7230 # Use a header file that comes with gcc, so configuring glibc
7231 # with a fresh cross-compiler works.
7232 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7233 # <limits.h> exists even on freestanding compilers.
7234 # On the NeXT, cc -E runs the code through the compiler's parser,
7235 # not just through cpp. "Syntax error" is here to catch this case.
7236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7237 /* end confdefs.h. */
7238 #ifdef __STDC__
7239 # include <limits.h>
7240 #else
7241 # include <assert.h>
7242 #endif
7243 Syntax error
7244 _ACEOF
7245 if ac_fn_c_try_cpp "$LINENO"; then :
7247 else
7248 # Broken: fails on valid input.
7249 continue
7251 rm -f conftest.err conftest.$ac_ext
7253 # OK, works on sane cases. Now check whether nonexistent headers
7254 # can be detected and how.
7255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7256 /* end confdefs.h. */
7257 #include <ac_nonexistent.h>
7258 _ACEOF
7259 if ac_fn_c_try_cpp "$LINENO"; then :
7260 # Broken: success on invalid input.
7261 continue
7262 else
7263 # Passes both tests.
7264 ac_preproc_ok=:
7265 break
7267 rm -f conftest.err conftest.$ac_ext
7269 done
7270 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7271 rm -f conftest.err conftest.$ac_ext
7272 if $ac_preproc_ok; then :
7274 else
7275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7277 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7278 See \`config.log' for more details." "$LINENO" 5; }
7281 ac_ext=c
7282 ac_cpp='$CPP $CPPFLAGS'
7283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7289 $as_echo_n "checking for ANSI C header files... " >&6; }
7290 if test "${ac_cv_header_stdc+set}" = set; then :
7291 $as_echo_n "(cached) " >&6
7292 else
7293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7294 /* end confdefs.h. */
7295 #include <stdlib.h>
7296 #include <stdarg.h>
7297 #include <string.h>
7298 #include <float.h>
7301 main ()
7305 return 0;
7307 _ACEOF
7308 if ac_fn_c_try_compile "$LINENO"; then :
7309 ac_cv_header_stdc=yes
7310 else
7311 ac_cv_header_stdc=no
7313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7315 if test $ac_cv_header_stdc = yes; then
7316 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318 /* end confdefs.h. */
7319 #include <string.h>
7321 _ACEOF
7322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7323 $EGREP "memchr" >/dev/null 2>&1; then :
7325 else
7326 ac_cv_header_stdc=no
7328 rm -f conftest*
7332 if test $ac_cv_header_stdc = yes; then
7333 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7335 /* end confdefs.h. */
7336 #include <stdlib.h>
7338 _ACEOF
7339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7340 $EGREP "free" >/dev/null 2>&1; then :
7342 else
7343 ac_cv_header_stdc=no
7345 rm -f conftest*
7349 if test $ac_cv_header_stdc = yes; then
7350 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7351 if test "$cross_compiling" = yes; then :
7353 else
7354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7355 /* end confdefs.h. */
7356 #include <ctype.h>
7357 #include <stdlib.h>
7358 #if ((' ' & 0x0FF) == 0x020)
7359 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7360 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7361 #else
7362 # define ISLOWER(c) \
7363 (('a' <= (c) && (c) <= 'i') \
7364 || ('j' <= (c) && (c) <= 'r') \
7365 || ('s' <= (c) && (c) <= 'z'))
7366 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7367 #endif
7369 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7371 main ()
7373 int i;
7374 for (i = 0; i < 256; i++)
7375 if (XOR (islower (i), ISLOWER (i))
7376 || toupper (i) != TOUPPER (i))
7377 return 2;
7378 return 0;
7380 _ACEOF
7381 if ac_fn_c_try_run "$LINENO"; then :
7383 else
7384 ac_cv_header_stdc=no
7386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7387 conftest.$ac_objext conftest.beam conftest.$ac_ext
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7393 $as_echo "$ac_cv_header_stdc" >&6; }
7394 if test $ac_cv_header_stdc = yes; then
7396 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7400 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7401 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7402 inttypes.h stdint.h unistd.h
7403 do :
7404 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7405 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7407 eval as_val=\$$as_ac_Header
7408 if test "x$as_val" = x""yes; then :
7409 cat >>confdefs.h <<_ACEOF
7410 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7411 _ACEOF
7415 done
7418 for ac_header in dlfcn.h
7419 do :
7420 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7422 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7423 cat >>confdefs.h <<_ACEOF
7424 #define HAVE_DLFCN_H 1
7425 _ACEOF
7429 done
7435 # Set options
7439 enable_dlopen=no
7442 enable_win32_dll=no
7445 # Check whether --enable-shared was given.
7446 if test "${enable_shared+set}" = set; then :
7447 enableval=$enable_shared; p=${PACKAGE-default}
7448 case $enableval in
7449 yes) enable_shared=yes ;;
7450 no) enable_shared=no ;;
7452 enable_shared=no
7453 # Look at the argument we got. We use all the common list separators.
7454 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7455 for pkg in $enableval; do
7456 IFS="$lt_save_ifs"
7457 if test "X$pkg" = "X$p"; then
7458 enable_shared=yes
7460 done
7461 IFS="$lt_save_ifs"
7463 esac
7464 else
7465 enable_shared=yes
7476 # Check whether --enable-static was given.
7477 if test "${enable_static+set}" = set; then :
7478 enableval=$enable_static; p=${PACKAGE-default}
7479 case $enableval in
7480 yes) enable_static=yes ;;
7481 no) enable_static=no ;;
7483 enable_static=no
7484 # Look at the argument we got. We use all the common list separators.
7485 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7486 for pkg in $enableval; do
7487 IFS="$lt_save_ifs"
7488 if test "X$pkg" = "X$p"; then
7489 enable_static=yes
7491 done
7492 IFS="$lt_save_ifs"
7494 esac
7495 else
7496 enable_static=yes
7508 # Check whether --with-pic was given.
7509 if test "${with_pic+set}" = set; then :
7510 withval=$with_pic; pic_mode="$withval"
7511 else
7512 pic_mode=default
7516 test -z "$pic_mode" && pic_mode=default
7524 # Check whether --enable-fast-install was given.
7525 if test "${enable_fast_install+set}" = set; then :
7526 enableval=$enable_fast_install; p=${PACKAGE-default}
7527 case $enableval in
7528 yes) enable_fast_install=yes ;;
7529 no) enable_fast_install=no ;;
7531 enable_fast_install=no
7532 # Look at the argument we got. We use all the common list separators.
7533 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7534 for pkg in $enableval; do
7535 IFS="$lt_save_ifs"
7536 if test "X$pkg" = "X$p"; then
7537 enable_fast_install=yes
7539 done
7540 IFS="$lt_save_ifs"
7542 esac
7543 else
7544 enable_fast_install=yes
7557 # This can be used to rebuild libtool when needed
7558 LIBTOOL_DEPS="$ltmain"
7560 # Always use our own libtool.
7561 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7588 test -z "$LN_S" && LN_S="ln -s"
7603 if test -n "${ZSH_VERSION+set}" ; then
7604 setopt NO_GLOB_SUBST
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7608 $as_echo_n "checking for objdir... " >&6; }
7609 if test "${lt_cv_objdir+set}" = set; then :
7610 $as_echo_n "(cached) " >&6
7611 else
7612 rm -f .libs 2>/dev/null
7613 mkdir .libs 2>/dev/null
7614 if test -d .libs; then
7615 lt_cv_objdir=.libs
7616 else
7617 # MS-DOS does not allow filenames that begin with a dot.
7618 lt_cv_objdir=_libs
7620 rmdir .libs 2>/dev/null
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7623 $as_echo "$lt_cv_objdir" >&6; }
7624 objdir=$lt_cv_objdir
7630 cat >>confdefs.h <<_ACEOF
7631 #define LT_OBJDIR "$lt_cv_objdir/"
7632 _ACEOF
7637 case $host_os in
7638 aix3*)
7639 # AIX sometimes has problems with the GCC collect2 program. For some
7640 # reason, if we set the COLLECT_NAMES environment variable, the problems
7641 # vanish in a puff of smoke.
7642 if test "X${COLLECT_NAMES+set}" != Xset; then
7643 COLLECT_NAMES=
7644 export COLLECT_NAMES
7647 esac
7649 # Global variables:
7650 ofile=libtool
7651 can_build_shared=yes
7653 # All known linkers require a `.a' archive for static linking (except MSVC,
7654 # which needs '.lib').
7655 libext=a
7657 with_gnu_ld="$lt_cv_prog_gnu_ld"
7659 old_CC="$CC"
7660 old_CFLAGS="$CFLAGS"
7662 # Set sane defaults for various variables
7663 test -z "$CC" && CC=cc
7664 test -z "$LTCC" && LTCC=$CC
7665 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7666 test -z "$LD" && LD=ld
7667 test -z "$ac_objext" && ac_objext=o
7669 for cc_temp in $compiler""; do
7670 case $cc_temp in
7671 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7672 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7673 \-*) ;;
7674 *) break;;
7675 esac
7676 done
7677 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7680 # Only perform the check for file, if the check method requires it
7681 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7682 case $deplibs_check_method in
7683 file_magic*)
7684 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7686 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7687 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7688 $as_echo_n "(cached) " >&6
7689 else
7690 case $MAGIC_CMD in
7691 [\\/*] | ?:[\\/]*)
7692 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7695 lt_save_MAGIC_CMD="$MAGIC_CMD"
7696 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7697 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7698 for ac_dir in $ac_dummy; do
7699 IFS="$lt_save_ifs"
7700 test -z "$ac_dir" && ac_dir=.
7701 if test -f $ac_dir/${ac_tool_prefix}file; then
7702 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7703 if test -n "$file_magic_test_file"; then
7704 case $deplibs_check_method in
7705 "file_magic "*)
7706 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7707 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7708 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7709 $EGREP "$file_magic_regex" > /dev/null; then
7711 else
7712 cat <<_LT_EOF 1>&2
7714 *** Warning: the command libtool uses to detect shared libraries,
7715 *** $file_magic_cmd, produces output that libtool cannot recognize.
7716 *** The result is that libtool may fail to recognize shared libraries
7717 *** as such. This will affect the creation of libtool libraries that
7718 *** depend on shared libraries, but programs linked with such libtool
7719 *** libraries will work regardless of this problem. Nevertheless, you
7720 *** may want to report the problem to your system manager and/or to
7721 *** bug-libtool@gnu.org
7723 _LT_EOF
7724 fi ;;
7725 esac
7727 break
7729 done
7730 IFS="$lt_save_ifs"
7731 MAGIC_CMD="$lt_save_MAGIC_CMD"
7733 esac
7736 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7737 if test -n "$MAGIC_CMD"; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7739 $as_echo "$MAGIC_CMD" >&6; }
7740 else
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 $as_echo "no" >&6; }
7749 if test -z "$lt_cv_path_MAGIC_CMD"; then
7750 if test -n "$ac_tool_prefix"; then
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7752 $as_echo_n "checking for file... " >&6; }
7753 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7754 $as_echo_n "(cached) " >&6
7755 else
7756 case $MAGIC_CMD in
7757 [\\/*] | ?:[\\/]*)
7758 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7761 lt_save_MAGIC_CMD="$MAGIC_CMD"
7762 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7763 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7764 for ac_dir in $ac_dummy; do
7765 IFS="$lt_save_ifs"
7766 test -z "$ac_dir" && ac_dir=.
7767 if test -f $ac_dir/file; then
7768 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7769 if test -n "$file_magic_test_file"; then
7770 case $deplibs_check_method in
7771 "file_magic "*)
7772 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7773 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7774 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7775 $EGREP "$file_magic_regex" > /dev/null; then
7777 else
7778 cat <<_LT_EOF 1>&2
7780 *** Warning: the command libtool uses to detect shared libraries,
7781 *** $file_magic_cmd, produces output that libtool cannot recognize.
7782 *** The result is that libtool may fail to recognize shared libraries
7783 *** as such. This will affect the creation of libtool libraries that
7784 *** depend on shared libraries, but programs linked with such libtool
7785 *** libraries will work regardless of this problem. Nevertheless, you
7786 *** may want to report the problem to your system manager and/or to
7787 *** bug-libtool@gnu.org
7789 _LT_EOF
7790 fi ;;
7791 esac
7793 break
7795 done
7796 IFS="$lt_save_ifs"
7797 MAGIC_CMD="$lt_save_MAGIC_CMD"
7799 esac
7802 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7803 if test -n "$MAGIC_CMD"; then
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7805 $as_echo "$MAGIC_CMD" >&6; }
7806 else
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7808 $as_echo "no" >&6; }
7812 else
7813 MAGIC_CMD=:
7819 esac
7821 # Use C for the default configuration in the libtool script
7823 lt_save_CC="$CC"
7824 ac_ext=c
7825 ac_cpp='$CPP $CPPFLAGS'
7826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7831 # Source file extension for C test sources.
7832 ac_ext=c
7834 # Object file extension for compiled C test sources.
7835 objext=o
7836 objext=$objext
7838 # Code to be used in simple compile tests
7839 lt_simple_compile_test_code="int some_variable = 0;"
7841 # Code to be used in simple link tests
7842 lt_simple_link_test_code='int main(){return(0);}'
7850 # If no C compiler was specified, use CC.
7851 LTCC=${LTCC-"$CC"}
7853 # If no C compiler flags were specified, use CFLAGS.
7854 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7856 # Allow CC to be a program name with arguments.
7857 compiler=$CC
7859 # Save the default compiler, since it gets overwritten when the other
7860 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7861 compiler_DEFAULT=$CC
7863 # save warnings/boilerplate of simple test code
7864 ac_outfile=conftest.$ac_objext
7865 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7866 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7867 _lt_compiler_boilerplate=`cat conftest.err`
7868 $RM conftest*
7870 ac_outfile=conftest.$ac_objext
7871 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7872 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7873 _lt_linker_boilerplate=`cat conftest.err`
7874 $RM -r conftest*
7877 ## CAVEAT EMPTOR:
7878 ## There is no encapsulation within the following macros, do not change
7879 ## the running order or otherwise move them around unless you know exactly
7880 ## what you are doing...
7881 if test -n "$compiler"; then
7883 lt_prog_compiler_no_builtin_flag=
7885 if test "$GCC" = yes; then
7886 case $cc_basename in
7887 nvcc*)
7888 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7890 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7891 esac
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7894 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7895 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7896 $as_echo_n "(cached) " >&6
7897 else
7898 lt_cv_prog_compiler_rtti_exceptions=no
7899 ac_outfile=conftest.$ac_objext
7900 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7901 lt_compiler_flag="-fno-rtti -fno-exceptions"
7902 # Insert the option either (1) after the last *FLAGS variable, or
7903 # (2) before a word containing "conftest.", or (3) at the end.
7904 # Note that $ac_compile itself does not contain backslashes and begins
7905 # with a dollar sign (not a hyphen), so the echo should work correctly.
7906 # The option is referenced via a variable to avoid confusing sed.
7907 lt_compile=`echo "$ac_compile" | $SED \
7908 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7909 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7910 -e 's:$: $lt_compiler_flag:'`
7911 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7912 (eval "$lt_compile" 2>conftest.err)
7913 ac_status=$?
7914 cat conftest.err >&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 if (exit $ac_status) && test -s "$ac_outfile"; then
7917 # The compiler can only warn and ignore the option if not recognized
7918 # So say no if there are warnings other than the usual output.
7919 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7920 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7921 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7922 lt_cv_prog_compiler_rtti_exceptions=yes
7925 $RM conftest*
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7929 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7931 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7932 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7933 else
7944 lt_prog_compiler_wl=
7945 lt_prog_compiler_pic=
7946 lt_prog_compiler_static=
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7949 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7951 if test "$GCC" = yes; then
7952 lt_prog_compiler_wl='-Wl,'
7953 lt_prog_compiler_static='-static'
7955 case $host_os in
7956 aix*)
7957 # All AIX code is PIC.
7958 if test "$host_cpu" = ia64; then
7959 # AIX 5 now supports IA64 processor
7960 lt_prog_compiler_static='-Bstatic'
7962 lt_prog_compiler_pic='-fPIC'
7965 amigaos*)
7966 case $host_cpu in
7967 powerpc)
7968 # see comment about AmigaOS4 .so support
7969 lt_prog_compiler_pic='-fPIC'
7971 m68k)
7972 # FIXME: we need at least 68020 code to build shared libraries, but
7973 # adding the `-m68020' flag to GCC prevents building anything better,
7974 # like `-m68040'.
7975 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7977 esac
7980 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7981 # PIC is the default for these OSes.
7984 mingw* | cygwin* | pw32* | os2* | cegcc*)
7985 # This hack is so that the source file can tell whether it is being
7986 # built for inclusion in a dll (and should export symbols for example).
7987 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7988 # (--disable-auto-import) libraries
7989 lt_prog_compiler_pic='-DDLL_EXPORT'
7992 darwin* | rhapsody*)
7993 # PIC is the default on this platform
7994 # Common symbols not allowed in MH_DYLIB files
7995 lt_prog_compiler_pic='-fno-common'
7998 haiku*)
7999 # PIC is the default for Haiku.
8000 # The "-static" flag exists, but is broken.
8001 lt_prog_compiler_static=
8004 hpux*)
8005 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8006 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8007 # sets the default TLS model and affects inlining.
8008 case $host_cpu in
8009 hppa*64*)
8010 # +Z the default
8013 lt_prog_compiler_pic='-fPIC'
8015 esac
8018 interix[3-9]*)
8019 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8020 # Instead, we relocate shared libraries at runtime.
8023 msdosdjgpp*)
8024 # Just because we use GCC doesn't mean we suddenly get shared libraries
8025 # on systems that don't support them.
8026 lt_prog_compiler_can_build_shared=no
8027 enable_shared=no
8030 *nto* | *qnx*)
8031 # QNX uses GNU C++, but need to define -shared option too, otherwise
8032 # it will coredump.
8033 lt_prog_compiler_pic='-fPIC -shared'
8036 sysv4*MP*)
8037 if test -d /usr/nec; then
8038 lt_prog_compiler_pic=-Kconform_pic
8043 lt_prog_compiler_pic='-fPIC'
8045 esac
8047 case $cc_basename in
8048 nvcc*) # Cuda Compiler Driver 2.2
8049 lt_prog_compiler_wl='-Xlinker '
8050 lt_prog_compiler_pic='-Xcompiler -fPIC'
8052 esac
8053 else
8054 # PORTME Check for flag to pass linker flags through the system compiler.
8055 case $host_os in
8056 aix*)
8057 lt_prog_compiler_wl='-Wl,'
8058 if test "$host_cpu" = ia64; then
8059 # AIX 5 now supports IA64 processor
8060 lt_prog_compiler_static='-Bstatic'
8061 else
8062 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8066 mingw* | cygwin* | pw32* | os2* | cegcc*)
8067 # This hack is so that the source file can tell whether it is being
8068 # built for inclusion in a dll (and should export symbols for example).
8069 lt_prog_compiler_pic='-DDLL_EXPORT'
8072 hpux9* | hpux10* | hpux11*)
8073 lt_prog_compiler_wl='-Wl,'
8074 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8075 # not for PA HP-UX.
8076 case $host_cpu in
8077 hppa*64*|ia64*)
8078 # +Z the default
8081 lt_prog_compiler_pic='+Z'
8083 esac
8084 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8085 lt_prog_compiler_static='${wl}-a ${wl}archive'
8088 irix5* | irix6* | nonstopux*)
8089 lt_prog_compiler_wl='-Wl,'
8090 # PIC (with -KPIC) is the default.
8091 lt_prog_compiler_static='-non_shared'
8094 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8095 case $cc_basename in
8096 # old Intel for x86_64 which still supported -KPIC.
8097 ecc*)
8098 lt_prog_compiler_wl='-Wl,'
8099 lt_prog_compiler_pic='-KPIC'
8100 lt_prog_compiler_static='-static'
8102 # icc used to be incompatible with GCC.
8103 # ICC 10 doesn't accept -KPIC any more.
8104 icc* | ifort*)
8105 lt_prog_compiler_wl='-Wl,'
8106 lt_prog_compiler_pic='-fPIC'
8107 lt_prog_compiler_static='-static'
8109 # Lahey Fortran 8.1.
8110 lf95*)
8111 lt_prog_compiler_wl='-Wl,'
8112 lt_prog_compiler_pic='--shared'
8113 lt_prog_compiler_static='--static'
8115 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8116 # Portland Group compilers (*not* the Pentium gcc compiler,
8117 # which looks to be a dead project)
8118 lt_prog_compiler_wl='-Wl,'
8119 lt_prog_compiler_pic='-fpic'
8120 lt_prog_compiler_static='-Bstatic'
8122 ccc*)
8123 lt_prog_compiler_wl='-Wl,'
8124 # All Alpha code is PIC.
8125 lt_prog_compiler_static='-non_shared'
8127 xl* | bgxl* | bgf* | mpixl*)
8128 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8129 lt_prog_compiler_wl='-Wl,'
8130 lt_prog_compiler_pic='-qpic'
8131 lt_prog_compiler_static='-qstaticlink'
8134 case `$CC -V 2>&1 | sed 5q` in
8135 *Sun\ F* | *Sun*Fortran*)
8136 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8137 lt_prog_compiler_pic='-KPIC'
8138 lt_prog_compiler_static='-Bstatic'
8139 lt_prog_compiler_wl=''
8141 *Sun\ C*)
8142 # Sun C 5.9
8143 lt_prog_compiler_pic='-KPIC'
8144 lt_prog_compiler_static='-Bstatic'
8145 lt_prog_compiler_wl='-Wl,'
8147 esac
8149 esac
8152 newsos6)
8153 lt_prog_compiler_pic='-KPIC'
8154 lt_prog_compiler_static='-Bstatic'
8157 *nto* | *qnx*)
8158 # QNX uses GNU C++, but need to define -shared option too, otherwise
8159 # it will coredump.
8160 lt_prog_compiler_pic='-fPIC -shared'
8163 osf3* | osf4* | osf5*)
8164 lt_prog_compiler_wl='-Wl,'
8165 # All OSF/1 code is PIC.
8166 lt_prog_compiler_static='-non_shared'
8169 rdos*)
8170 lt_prog_compiler_static='-non_shared'
8173 solaris*)
8174 lt_prog_compiler_pic='-KPIC'
8175 lt_prog_compiler_static='-Bstatic'
8176 case $cc_basename in
8177 f77* | f90* | f95*)
8178 lt_prog_compiler_wl='-Qoption ld ';;
8180 lt_prog_compiler_wl='-Wl,';;
8181 esac
8184 sunos4*)
8185 lt_prog_compiler_wl='-Qoption ld '
8186 lt_prog_compiler_pic='-PIC'
8187 lt_prog_compiler_static='-Bstatic'
8190 sysv4 | sysv4.2uw2* | sysv4.3*)
8191 lt_prog_compiler_wl='-Wl,'
8192 lt_prog_compiler_pic='-KPIC'
8193 lt_prog_compiler_static='-Bstatic'
8196 sysv4*MP*)
8197 if test -d /usr/nec ;then
8198 lt_prog_compiler_pic='-Kconform_pic'
8199 lt_prog_compiler_static='-Bstatic'
8203 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8204 lt_prog_compiler_wl='-Wl,'
8205 lt_prog_compiler_pic='-KPIC'
8206 lt_prog_compiler_static='-Bstatic'
8209 unicos*)
8210 lt_prog_compiler_wl='-Wl,'
8211 lt_prog_compiler_can_build_shared=no
8214 uts4*)
8215 lt_prog_compiler_pic='-pic'
8216 lt_prog_compiler_static='-Bstatic'
8220 lt_prog_compiler_can_build_shared=no
8222 esac
8225 case $host_os in
8226 # For platforms which do not support PIC, -DPIC is meaningless:
8227 *djgpp*)
8228 lt_prog_compiler_pic=
8231 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8233 esac
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8235 $as_echo "$lt_prog_compiler_pic" >&6; }
8243 # Check to make sure the PIC flag actually works.
8245 if test -n "$lt_prog_compiler_pic"; then
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8247 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8248 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8249 $as_echo_n "(cached) " >&6
8250 else
8251 lt_cv_prog_compiler_pic_works=no
8252 ac_outfile=conftest.$ac_objext
8253 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8254 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8255 # Insert the option either (1) after the last *FLAGS variable, or
8256 # (2) before a word containing "conftest.", or (3) at the end.
8257 # Note that $ac_compile itself does not contain backslashes and begins
8258 # with a dollar sign (not a hyphen), so the echo should work correctly.
8259 # The option is referenced via a variable to avoid confusing sed.
8260 lt_compile=`echo "$ac_compile" | $SED \
8261 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8263 -e 's:$: $lt_compiler_flag:'`
8264 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8265 (eval "$lt_compile" 2>conftest.err)
8266 ac_status=$?
8267 cat conftest.err >&5
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 if (exit $ac_status) && test -s "$ac_outfile"; then
8270 # The compiler can only warn and ignore the option if not recognized
8271 # So say no if there are warnings other than the usual output.
8272 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8273 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8274 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8275 lt_cv_prog_compiler_pic_works=yes
8278 $RM conftest*
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8282 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8284 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8285 case $lt_prog_compiler_pic in
8286 "" | " "*) ;;
8287 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8288 esac
8289 else
8290 lt_prog_compiler_pic=
8291 lt_prog_compiler_can_build_shared=no
8302 # Check to make sure the static flag actually works.
8304 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8306 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8307 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8308 $as_echo_n "(cached) " >&6
8309 else
8310 lt_cv_prog_compiler_static_works=no
8311 save_LDFLAGS="$LDFLAGS"
8312 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8313 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8314 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8315 # The linker can only warn and ignore the option if not recognized
8316 # So say no if there are warnings
8317 if test -s conftest.err; then
8318 # Append any errors to the config.log.
8319 cat conftest.err 1>&5
8320 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8321 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8322 if diff conftest.exp conftest.er2 >/dev/null; then
8323 lt_cv_prog_compiler_static_works=yes
8325 else
8326 lt_cv_prog_compiler_static_works=yes
8329 $RM -r conftest*
8330 LDFLAGS="$save_LDFLAGS"
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8334 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8336 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8338 else
8339 lt_prog_compiler_static=
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8349 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8350 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8351 $as_echo_n "(cached) " >&6
8352 else
8353 lt_cv_prog_compiler_c_o=no
8354 $RM -r conftest 2>/dev/null
8355 mkdir conftest
8356 cd conftest
8357 mkdir out
8358 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8360 lt_compiler_flag="-o out/conftest2.$ac_objext"
8361 # Insert the option either (1) after the last *FLAGS variable, or
8362 # (2) before a word containing "conftest.", or (3) at the end.
8363 # Note that $ac_compile itself does not contain backslashes and begins
8364 # with a dollar sign (not a hyphen), so the echo should work correctly.
8365 lt_compile=`echo "$ac_compile" | $SED \
8366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8368 -e 's:$: $lt_compiler_flag:'`
8369 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8370 (eval "$lt_compile" 2>out/conftest.err)
8371 ac_status=$?
8372 cat out/conftest.err >&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8375 then
8376 # The compiler can only warn and ignore the option if not recognized
8377 # So say no if there are warnings
8378 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8379 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8380 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8381 lt_cv_prog_compiler_c_o=yes
8384 chmod u+w . 2>&5
8385 $RM conftest*
8386 # SGI C++ compiler will create directory out/ii_files/ for
8387 # template instantiation
8388 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8389 $RM out/* && rmdir out
8390 cd ..
8391 $RM -r conftest
8392 $RM conftest*
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8396 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8404 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8405 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8406 $as_echo_n "(cached) " >&6
8407 else
8408 lt_cv_prog_compiler_c_o=no
8409 $RM -r conftest 2>/dev/null
8410 mkdir conftest
8411 cd conftest
8412 mkdir out
8413 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8415 lt_compiler_flag="-o out/conftest2.$ac_objext"
8416 # Insert the option either (1) after the last *FLAGS variable, or
8417 # (2) before a word containing "conftest.", or (3) at the end.
8418 # Note that $ac_compile itself does not contain backslashes and begins
8419 # with a dollar sign (not a hyphen), so the echo should work correctly.
8420 lt_compile=`echo "$ac_compile" | $SED \
8421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8423 -e 's:$: $lt_compiler_flag:'`
8424 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8425 (eval "$lt_compile" 2>out/conftest.err)
8426 ac_status=$?
8427 cat out/conftest.err >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8430 then
8431 # The compiler can only warn and ignore the option if not recognized
8432 # So say no if there are warnings
8433 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8434 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8435 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8436 lt_cv_prog_compiler_c_o=yes
8439 chmod u+w . 2>&5
8440 $RM conftest*
8441 # SGI C++ compiler will create directory out/ii_files/ for
8442 # template instantiation
8443 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8444 $RM out/* && rmdir out
8445 cd ..
8446 $RM -r conftest
8447 $RM conftest*
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8451 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8456 hard_links="nottested"
8457 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8458 # do not overwrite the value of need_locks provided by the user
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8460 $as_echo_n "checking if we can lock with hard links... " >&6; }
8461 hard_links=yes
8462 $RM conftest*
8463 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8464 touch conftest.a
8465 ln conftest.a conftest.b 2>&5 || hard_links=no
8466 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8468 $as_echo "$hard_links" >&6; }
8469 if test "$hard_links" = no; then
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8471 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8472 need_locks=warn
8474 else
8475 need_locks=no
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8484 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8486 runpath_var=
8487 allow_undefined_flag=
8488 always_export_symbols=no
8489 archive_cmds=
8490 archive_expsym_cmds=
8491 compiler_needs_object=no
8492 enable_shared_with_static_runtimes=no
8493 export_dynamic_flag_spec=
8494 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8495 hardcode_automatic=no
8496 hardcode_direct=no
8497 hardcode_direct_absolute=no
8498 hardcode_libdir_flag_spec=
8499 hardcode_libdir_flag_spec_ld=
8500 hardcode_libdir_separator=
8501 hardcode_minus_L=no
8502 hardcode_shlibpath_var=unsupported
8503 inherit_rpath=no
8504 link_all_deplibs=unknown
8505 module_cmds=
8506 module_expsym_cmds=
8507 old_archive_from_new_cmds=
8508 old_archive_from_expsyms_cmds=
8509 thread_safe_flag_spec=
8510 whole_archive_flag_spec=
8511 # include_expsyms should be a list of space-separated symbols to be *always*
8512 # included in the symbol list
8513 include_expsyms=
8514 # exclude_expsyms can be an extended regexp of symbols to exclude
8515 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8516 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8517 # as well as any symbol that contains `d'.
8518 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8519 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8520 # platforms (ab)use it in PIC code, but their linkers get confused if
8521 # the symbol is explicitly referenced. Since portable code cannot
8522 # rely on this symbol name, it's probably fine to never include it in
8523 # preloaded symbol tables.
8524 # Exclude shared library initialization/finalization symbols.
8525 extract_expsyms_cmds=
8527 case $host_os in
8528 cygwin* | mingw* | pw32* | cegcc*)
8529 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8530 # When not using gcc, we currently assume that we are using
8531 # Microsoft Visual C++.
8532 if test "$GCC" != yes; then
8533 with_gnu_ld=no
8536 interix*)
8537 # we just hope/assume this is gcc and not c89 (= MSVC++)
8538 with_gnu_ld=yes
8540 openbsd*)
8541 with_gnu_ld=no
8543 esac
8545 ld_shlibs=yes
8547 # On some targets, GNU ld is compatible enough with the native linker
8548 # that we're better off using the native interface for both.
8549 lt_use_gnu_ld_interface=no
8550 if test "$with_gnu_ld" = yes; then
8551 case $host_os in
8552 aix*)
8553 # The AIX port of GNU ld has always aspired to compatibility
8554 # with the native linker. However, as the warning in the GNU ld
8555 # block says, versions before 2.19.5* couldn't really create working
8556 # shared libraries, regardless of the interface used.
8557 case `$LD -v 2>&1` in
8558 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8559 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8560 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8562 lt_use_gnu_ld_interface=yes
8564 esac
8567 lt_use_gnu_ld_interface=yes
8569 esac
8572 if test "$lt_use_gnu_ld_interface" = yes; then
8573 # If archive_cmds runs LD, not CC, wlarc should be empty
8574 wlarc='${wl}'
8576 # Set some defaults for GNU ld with shared library support. These
8577 # are reset later if shared libraries are not supported. Putting them
8578 # here allows them to be overridden if necessary.
8579 runpath_var=LD_RUN_PATH
8580 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8581 export_dynamic_flag_spec='${wl}--export-dynamic'
8582 # ancient GNU ld didn't support --whole-archive et. al.
8583 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8584 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8585 else
8586 whole_archive_flag_spec=
8588 supports_anon_versioning=no
8589 case `$LD -v 2>&1` in
8590 *GNU\ gold*) supports_anon_versioning=yes ;;
8591 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8592 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8593 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8594 *\ 2.11.*) ;; # other 2.11 versions
8595 *) supports_anon_versioning=yes ;;
8596 esac
8598 # See if GNU ld supports shared libraries.
8599 case $host_os in
8600 aix[3-9]*)
8601 # On AIX/PPC, the GNU linker is very broken
8602 if test "$host_cpu" != ia64; then
8603 ld_shlibs=no
8604 cat <<_LT_EOF 1>&2
8606 *** Warning: the GNU linker, at least up to release 2.19, is reported
8607 *** to be unable to reliably create shared libraries on AIX.
8608 *** Therefore, libtool is disabling shared libraries support. If you
8609 *** really care for shared libraries, you may want to install binutils
8610 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8611 *** You will then need to restart the configuration process.
8613 _LT_EOF
8617 amigaos*)
8618 case $host_cpu in
8619 powerpc)
8620 # see comment about AmigaOS4 .so support
8621 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8622 archive_expsym_cmds=''
8624 m68k)
8625 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)'
8626 hardcode_libdir_flag_spec='-L$libdir'
8627 hardcode_minus_L=yes
8629 esac
8632 beos*)
8633 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8634 allow_undefined_flag=unsupported
8635 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8636 # support --undefined. This deserves some investigation. FIXME
8637 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8638 else
8639 ld_shlibs=no
8643 cygwin* | mingw* | pw32* | cegcc*)
8644 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8645 # as there is no search path for DLLs.
8646 hardcode_libdir_flag_spec='-L$libdir'
8647 export_dynamic_flag_spec='${wl}--export-all-symbols'
8648 allow_undefined_flag=unsupported
8649 always_export_symbols=no
8650 enable_shared_with_static_runtimes=yes
8651 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8653 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8654 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8655 # If the export-symbols file already is a .def file (1st line
8656 # is EXPORTS), use it as is; otherwise, prepend...
8657 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8658 cp $export_symbols $output_objdir/$soname.def;
8659 else
8660 echo EXPORTS > $output_objdir/$soname.def;
8661 cat $export_symbols >> $output_objdir/$soname.def;
8663 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8664 else
8665 ld_shlibs=no
8669 haiku*)
8670 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8671 link_all_deplibs=yes
8674 interix[3-9]*)
8675 hardcode_direct=no
8676 hardcode_shlibpath_var=no
8677 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8678 export_dynamic_flag_spec='${wl}-E'
8679 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8680 # Instead, shared libraries are loaded at an image base (0x10000000 by
8681 # default) and relocated if they conflict, which is a slow very memory
8682 # consuming and fragmenting process. To avoid this, we pick a random,
8683 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8684 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8685 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8686 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'
8689 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8690 tmp_diet=no
8691 if test "$host_os" = linux-dietlibc; then
8692 case $cc_basename in
8693 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8694 esac
8696 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8697 && test "$tmp_diet" = no
8698 then
8699 tmp_addflag=
8700 tmp_sharedflag='-shared'
8701 case $cc_basename,$host_cpu in
8702 pgcc*) # Portland Group C compiler
8703 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'
8704 tmp_addflag=' $pic_flag'
8706 pgf77* | pgf90* | pgf95* | pgfortran*)
8707 # Portland Group f77 and f90 compilers
8708 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'
8709 tmp_addflag=' $pic_flag -Mnomain' ;;
8710 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8711 tmp_addflag=' -i_dynamic' ;;
8712 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8713 tmp_addflag=' -i_dynamic -nofor_main' ;;
8714 ifc* | ifort*) # Intel Fortran compiler
8715 tmp_addflag=' -nofor_main' ;;
8716 lf95*) # Lahey Fortran 8.1
8717 whole_archive_flag_spec=
8718 tmp_sharedflag='--shared' ;;
8719 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8720 tmp_sharedflag='-qmkshrobj'
8721 tmp_addflag= ;;
8722 nvcc*) # Cuda Compiler Driver 2.2
8723 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'
8724 compiler_needs_object=yes
8726 esac
8727 case `$CC -V 2>&1 | sed 5q` in
8728 *Sun\ C*) # Sun C 5.9
8729 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'
8730 compiler_needs_object=yes
8731 tmp_sharedflag='-G' ;;
8732 *Sun\ F*) # Sun Fortran 8.3
8733 tmp_sharedflag='-G' ;;
8734 esac
8735 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8737 if test "x$supports_anon_versioning" = xyes; then
8738 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8739 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8740 echo "local: *; };" >> $output_objdir/$libname.ver~
8741 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8744 case $cc_basename in
8745 xlf* | bgf* | bgxlf* | mpixlf*)
8746 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8747 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8748 hardcode_libdir_flag_spec=
8749 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8750 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8751 if test "x$supports_anon_versioning" = xyes; then
8752 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8753 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8754 echo "local: *; };" >> $output_objdir/$libname.ver~
8755 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8758 esac
8759 else
8760 ld_shlibs=no
8764 netbsd*)
8765 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8766 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8767 wlarc=
8768 else
8769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8770 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8774 solaris*)
8775 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8776 ld_shlibs=no
8777 cat <<_LT_EOF 1>&2
8779 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8780 *** create shared libraries on Solaris systems. Therefore, libtool
8781 *** is disabling shared libraries support. We urge you to upgrade GNU
8782 *** binutils to release 2.9.1 or newer. Another option is to modify
8783 *** your PATH or compiler configuration so that the native linker is
8784 *** used, and then restart.
8786 _LT_EOF
8787 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8788 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8789 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8790 else
8791 ld_shlibs=no
8795 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8796 case `$LD -v 2>&1` in
8797 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8798 ld_shlibs=no
8799 cat <<_LT_EOF 1>&2
8801 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8802 *** reliably create shared libraries on SCO systems. Therefore, libtool
8803 *** is disabling shared libraries support. We urge you to upgrade GNU
8804 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8805 *** your PATH or compiler configuration so that the native linker is
8806 *** used, and then restart.
8808 _LT_EOF
8811 # For security reasons, it is highly recommended that you always
8812 # use absolute paths for naming shared libraries, and exclude the
8813 # DT_RUNPATH tag from executables and libraries. But doing so
8814 # requires that you compile everything twice, which is a pain.
8815 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8816 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8817 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8818 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8819 else
8820 ld_shlibs=no
8823 esac
8826 sunos4*)
8827 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8828 wlarc=
8829 hardcode_direct=yes
8830 hardcode_shlibpath_var=no
8834 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8835 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8836 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8837 else
8838 ld_shlibs=no
8841 esac
8843 if test "$ld_shlibs" = no; then
8844 runpath_var=
8845 hardcode_libdir_flag_spec=
8846 export_dynamic_flag_spec=
8847 whole_archive_flag_spec=
8849 else
8850 # PORTME fill in a description of your system's linker (not GNU ld)
8851 case $host_os in
8852 aix3*)
8853 allow_undefined_flag=unsupported
8854 always_export_symbols=yes
8855 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'
8856 # Note: this linker hardcodes the directories in LIBPATH if there
8857 # are no directories specified by -L.
8858 hardcode_minus_L=yes
8859 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8860 # Neither direct hardcoding nor static linking is supported with a
8861 # broken collect2.
8862 hardcode_direct=unsupported
8866 aix[4-9]*)
8867 if test "$host_cpu" = ia64; then
8868 # On IA64, the linker does run time linking by default, so we don't
8869 # have to do anything special.
8870 aix_use_runtimelinking=no
8871 exp_sym_flag='-Bexport'
8872 no_entry_flag=""
8873 else
8874 # If we're using GNU nm, then we don't want the "-C" option.
8875 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8876 # Also, AIX nm treats weak defined symbols like other global
8877 # defined symbols, whereas GNU nm marks them as "W".
8878 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8879 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'
8880 else
8881 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8883 aix_use_runtimelinking=no
8885 # Test if we are trying to use run time linking or normal
8886 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8887 # need to do runtime linking.
8888 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8889 for ld_flag in $LDFLAGS; do
8890 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8891 aix_use_runtimelinking=yes
8892 break
8894 done
8896 esac
8898 exp_sym_flag='-bexport'
8899 no_entry_flag='-bnoentry'
8902 # When large executables or shared objects are built, AIX ld can
8903 # have problems creating the table of contents. If linking a library
8904 # or program results in "error TOC overflow" add -mminimal-toc to
8905 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8906 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8908 archive_cmds=''
8909 hardcode_direct=yes
8910 hardcode_direct_absolute=yes
8911 hardcode_libdir_separator=':'
8912 link_all_deplibs=yes
8913 file_list_spec='${wl}-f,'
8915 if test "$GCC" = yes; then
8916 case $host_os in aix4.[012]|aix4.[012].*)
8917 # We only want to do this on AIX 4.2 and lower, the check
8918 # below for broken collect2 doesn't work under 4.3+
8919 collect2name=`${CC} -print-prog-name=collect2`
8920 if test -f "$collect2name" &&
8921 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8922 then
8923 # We have reworked collect2
8925 else
8926 # We have old collect2
8927 hardcode_direct=unsupported
8928 # It fails to find uninstalled libraries when the uninstalled
8929 # path is not listed in the libpath. Setting hardcode_minus_L
8930 # to unsupported forces relinking
8931 hardcode_minus_L=yes
8932 hardcode_libdir_flag_spec='-L$libdir'
8933 hardcode_libdir_separator=
8936 esac
8937 shared_flag='-shared'
8938 if test "$aix_use_runtimelinking" = yes; then
8939 shared_flag="$shared_flag "'${wl}-G'
8941 else
8942 # not using gcc
8943 if test "$host_cpu" = ia64; then
8944 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8945 # chokes on -Wl,-G. The following line is correct:
8946 shared_flag='-G'
8947 else
8948 if test "$aix_use_runtimelinking" = yes; then
8949 shared_flag='${wl}-G'
8950 else
8951 shared_flag='${wl}-bM:SRE'
8956 export_dynamic_flag_spec='${wl}-bexpall'
8957 # It seems that -bexpall does not export symbols beginning with
8958 # underscore (_), so it is better to generate a list of symbols to export.
8959 always_export_symbols=yes
8960 if test "$aix_use_runtimelinking" = yes; then
8961 # Warning - without using the other runtime loading flags (-brtl),
8962 # -berok will link without error, but may produce a broken library.
8963 allow_undefined_flag='-berok'
8964 # Determine the default libpath from the value encoded in an
8965 # empty executable.
8966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8967 /* end confdefs.h. */
8970 main ()
8974 return 0;
8976 _ACEOF
8977 if ac_fn_c_try_link "$LINENO"; then :
8979 lt_aix_libpath_sed='
8980 /Import File Strings/,/^$/ {
8981 /^0/ {
8982 s/^0 *\(.*\)$/\1/
8986 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8987 # Check for a 64-bit object if we didn't find anything.
8988 if test -z "$aix_libpath"; then
8989 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8992 rm -f core conftest.err conftest.$ac_objext \
8993 conftest$ac_exeext conftest.$ac_ext
8994 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8996 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8997 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"
8998 else
8999 if test "$host_cpu" = ia64; then
9000 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9001 allow_undefined_flag="-z nodefs"
9002 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"
9003 else
9004 # Determine the default libpath from the value encoded in an
9005 # empty executable.
9006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9007 /* end confdefs.h. */
9010 main ()
9014 return 0;
9016 _ACEOF
9017 if ac_fn_c_try_link "$LINENO"; then :
9019 lt_aix_libpath_sed='
9020 /Import File Strings/,/^$/ {
9021 /^0/ {
9022 s/^0 *\(.*\)$/\1/
9026 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9027 # Check for a 64-bit object if we didn't find anything.
9028 if test -z "$aix_libpath"; then
9029 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9032 rm -f core conftest.err conftest.$ac_objext \
9033 conftest$ac_exeext conftest.$ac_ext
9034 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9036 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9037 # Warning - without using the other run time loading flags,
9038 # -berok will link without error, but may produce a broken library.
9039 no_undefined_flag=' ${wl}-bernotok'
9040 allow_undefined_flag=' ${wl}-berok'
9041 if test "$with_gnu_ld" = yes; then
9042 # We only use this code for GNU lds that support --whole-archive.
9043 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9044 else
9045 # Exported symbols can be pulled into shared objects from archives
9046 whole_archive_flag_spec='$convenience'
9048 archive_cmds_need_lc=yes
9049 # This is similar to how AIX traditionally builds its shared libraries.
9050 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'
9055 amigaos*)
9056 case $host_cpu in
9057 powerpc)
9058 # see comment about AmigaOS4 .so support
9059 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9060 archive_expsym_cmds=''
9062 m68k)
9063 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)'
9064 hardcode_libdir_flag_spec='-L$libdir'
9065 hardcode_minus_L=yes
9067 esac
9070 bsdi[45]*)
9071 export_dynamic_flag_spec=-rdynamic
9074 cygwin* | mingw* | pw32* | cegcc*)
9075 # When not using gcc, we currently assume that we are using
9076 # Microsoft Visual C++.
9077 # hardcode_libdir_flag_spec is actually meaningless, as there is
9078 # no search path for DLLs.
9079 hardcode_libdir_flag_spec=' '
9080 allow_undefined_flag=unsupported
9081 # Tell ltmain to make .lib files, not .a files.
9082 libext=lib
9083 # Tell ltmain to make .dll files, not .so files.
9084 shrext_cmds=".dll"
9085 # FIXME: Setting linknames here is a bad hack.
9086 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9087 # The linker will automatically build a .lib file if we build a DLL.
9088 old_archive_from_new_cmds='true'
9089 # FIXME: Should let the user specify the lib program.
9090 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9091 fix_srcfile_path='`cygpath -w "$srcfile"`'
9092 enable_shared_with_static_runtimes=yes
9095 darwin* | rhapsody*)
9098 archive_cmds_need_lc=no
9099 hardcode_direct=no
9100 hardcode_automatic=yes
9101 hardcode_shlibpath_var=unsupported
9102 if test "$lt_cv_ld_force_load" = "yes"; then
9103 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\"`'
9104 else
9105 whole_archive_flag_spec=''
9107 link_all_deplibs=yes
9108 allow_undefined_flag="$_lt_dar_allow_undefined"
9109 case $cc_basename in
9110 ifort*) _lt_dar_can_shared=yes ;;
9111 *) _lt_dar_can_shared=$GCC ;;
9112 esac
9113 if test "$_lt_dar_can_shared" = "yes"; then
9114 output_verbose_link_cmd=func_echo_all
9115 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9116 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9117 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}"
9118 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}"
9120 else
9121 ld_shlibs=no
9126 dgux*)
9127 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9128 hardcode_libdir_flag_spec='-L$libdir'
9129 hardcode_shlibpath_var=no
9132 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9133 # support. Future versions do this automatically, but an explicit c++rt0.o
9134 # does not break anything, and helps significantly (at the cost of a little
9135 # extra space).
9136 freebsd2.2*)
9137 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9138 hardcode_libdir_flag_spec='-R$libdir'
9139 hardcode_direct=yes
9140 hardcode_shlibpath_var=no
9143 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9144 freebsd2.*)
9145 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9146 hardcode_direct=yes
9147 hardcode_minus_L=yes
9148 hardcode_shlibpath_var=no
9151 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9152 freebsd* | dragonfly*)
9153 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9154 hardcode_libdir_flag_spec='-R$libdir'
9155 hardcode_direct=yes
9156 hardcode_shlibpath_var=no
9159 hpux9*)
9160 if test "$GCC" = yes; then
9161 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'
9162 else
9163 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'
9165 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9166 hardcode_libdir_separator=:
9167 hardcode_direct=yes
9169 # hardcode_minus_L: Not really in the search PATH,
9170 # but as the default location of the library.
9171 hardcode_minus_L=yes
9172 export_dynamic_flag_spec='${wl}-E'
9175 hpux10*)
9176 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9177 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9178 else
9179 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9181 if test "$with_gnu_ld" = no; then
9182 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9183 hardcode_libdir_flag_spec_ld='+b $libdir'
9184 hardcode_libdir_separator=:
9185 hardcode_direct=yes
9186 hardcode_direct_absolute=yes
9187 export_dynamic_flag_spec='${wl}-E'
9188 # hardcode_minus_L: Not really in the search PATH,
9189 # but as the default location of the library.
9190 hardcode_minus_L=yes
9194 hpux11*)
9195 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9196 case $host_cpu in
9197 hppa*64*)
9198 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9200 ia64*)
9201 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9204 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9206 esac
9207 else
9208 case $host_cpu in
9209 hppa*64*)
9210 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9212 ia64*)
9213 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9217 # Older versions of the 11.00 compiler do not understand -b yet
9218 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9220 $as_echo_n "checking if $CC understands -b... " >&6; }
9221 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9222 $as_echo_n "(cached) " >&6
9223 else
9224 lt_cv_prog_compiler__b=no
9225 save_LDFLAGS="$LDFLAGS"
9226 LDFLAGS="$LDFLAGS -b"
9227 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9228 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9229 # The linker can only warn and ignore the option if not recognized
9230 # So say no if there are warnings
9231 if test -s conftest.err; then
9232 # Append any errors to the config.log.
9233 cat conftest.err 1>&5
9234 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9235 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9236 if diff conftest.exp conftest.er2 >/dev/null; then
9237 lt_cv_prog_compiler__b=yes
9239 else
9240 lt_cv_prog_compiler__b=yes
9243 $RM -r conftest*
9244 LDFLAGS="$save_LDFLAGS"
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9248 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9250 if test x"$lt_cv_prog_compiler__b" = xyes; then
9251 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9252 else
9253 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9257 esac
9259 if test "$with_gnu_ld" = no; then
9260 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9261 hardcode_libdir_separator=:
9263 case $host_cpu in
9264 hppa*64*|ia64*)
9265 hardcode_direct=no
9266 hardcode_shlibpath_var=no
9269 hardcode_direct=yes
9270 hardcode_direct_absolute=yes
9271 export_dynamic_flag_spec='${wl}-E'
9273 # hardcode_minus_L: Not really in the search PATH,
9274 # but as the default location of the library.
9275 hardcode_minus_L=yes
9277 esac
9281 irix5* | irix6* | nonstopux*)
9282 if test "$GCC" = yes; then
9283 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'
9284 # Try to use the -exported_symbol ld option, if it does not
9285 # work, assume that -exports_file does not work either and
9286 # implicitly export all symbols.
9287 save_LDFLAGS="$LDFLAGS"
9288 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9290 /* end confdefs.h. */
9291 int foo(void) {}
9292 _ACEOF
9293 if ac_fn_c_try_link "$LINENO"; then :
9294 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'
9297 rm -f core conftest.err conftest.$ac_objext \
9298 conftest$ac_exeext conftest.$ac_ext
9299 LDFLAGS="$save_LDFLAGS"
9300 else
9301 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'
9302 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'
9304 archive_cmds_need_lc='no'
9305 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9306 hardcode_libdir_separator=:
9307 inherit_rpath=yes
9308 link_all_deplibs=yes
9311 netbsd*)
9312 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9313 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9314 else
9315 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9317 hardcode_libdir_flag_spec='-R$libdir'
9318 hardcode_direct=yes
9319 hardcode_shlibpath_var=no
9322 newsos6)
9323 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9324 hardcode_direct=yes
9325 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9326 hardcode_libdir_separator=:
9327 hardcode_shlibpath_var=no
9330 *nto* | *qnx*)
9333 openbsd*)
9334 if test -f /usr/libexec/ld.so; then
9335 hardcode_direct=yes
9336 hardcode_shlibpath_var=no
9337 hardcode_direct_absolute=yes
9338 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9339 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9340 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9341 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9342 export_dynamic_flag_spec='${wl}-E'
9343 else
9344 case $host_os in
9345 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9346 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9347 hardcode_libdir_flag_spec='-R$libdir'
9350 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9351 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9353 esac
9355 else
9356 ld_shlibs=no
9360 os2*)
9361 hardcode_libdir_flag_spec='-L$libdir'
9362 hardcode_minus_L=yes
9363 allow_undefined_flag=unsupported
9364 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'
9365 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9368 osf3*)
9369 if test "$GCC" = yes; then
9370 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9371 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'
9372 else
9373 allow_undefined_flag=' -expect_unresolved \*'
9374 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'
9376 archive_cmds_need_lc='no'
9377 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9378 hardcode_libdir_separator=:
9381 osf4* | osf5*) # as osf3* with the addition of -msym flag
9382 if test "$GCC" = yes; then
9383 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9384 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'
9385 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9386 else
9387 allow_undefined_flag=' -expect_unresolved \*'
9388 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'
9389 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~
9390 $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'
9392 # Both c and cxx compiler support -rpath directly
9393 hardcode_libdir_flag_spec='-rpath $libdir'
9395 archive_cmds_need_lc='no'
9396 hardcode_libdir_separator=:
9399 solaris*)
9400 no_undefined_flag=' -z defs'
9401 if test "$GCC" = yes; then
9402 wlarc='${wl}'
9403 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9404 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9405 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9406 else
9407 case `$CC -V 2>&1` in
9408 *"Compilers 5.0"*)
9409 wlarc=''
9410 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9411 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9412 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9415 wlarc='${wl}'
9416 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9417 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9418 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9420 esac
9422 hardcode_libdir_flag_spec='-R$libdir'
9423 hardcode_shlibpath_var=no
9424 case $host_os in
9425 solaris2.[0-5] | solaris2.[0-5].*) ;;
9427 # The compiler driver will combine and reorder linker options,
9428 # but understands `-z linker_flag'. GCC discards it without `$wl',
9429 # but is careful enough not to reorder.
9430 # Supported since Solaris 2.6 (maybe 2.5.1?)
9431 if test "$GCC" = yes; then
9432 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9433 else
9434 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9437 esac
9438 link_all_deplibs=yes
9441 sunos4*)
9442 if test "x$host_vendor" = xsequent; then
9443 # Use $CC to link under sequent, because it throws in some extra .o
9444 # files that make .init and .fini sections work.
9445 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9446 else
9447 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9449 hardcode_libdir_flag_spec='-L$libdir'
9450 hardcode_direct=yes
9451 hardcode_minus_L=yes
9452 hardcode_shlibpath_var=no
9455 sysv4)
9456 case $host_vendor in
9457 sni)
9458 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9459 hardcode_direct=yes # is this really true???
9461 siemens)
9462 ## LD is ld it makes a PLAMLIB
9463 ## CC just makes a GrossModule.
9464 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9465 reload_cmds='$CC -r -o $output$reload_objs'
9466 hardcode_direct=no
9468 motorola)
9469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9470 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9472 esac
9473 runpath_var='LD_RUN_PATH'
9474 hardcode_shlibpath_var=no
9477 sysv4.3*)
9478 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9479 hardcode_shlibpath_var=no
9480 export_dynamic_flag_spec='-Bexport'
9483 sysv4*MP*)
9484 if test -d /usr/nec; then
9485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9486 hardcode_shlibpath_var=no
9487 runpath_var=LD_RUN_PATH
9488 hardcode_runpath_var=yes
9489 ld_shlibs=yes
9493 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9494 no_undefined_flag='${wl}-z,text'
9495 archive_cmds_need_lc=no
9496 hardcode_shlibpath_var=no
9497 runpath_var='LD_RUN_PATH'
9499 if test "$GCC" = yes; then
9500 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9501 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9502 else
9503 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9504 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9508 sysv5* | sco3.2v5* | sco5v6*)
9509 # Note: We can NOT use -z defs as we might desire, because we do not
9510 # link with -lc, and that would cause any symbols used from libc to
9511 # always be unresolved, which means just about no library would
9512 # ever link correctly. If we're not using GNU ld we use -z text
9513 # though, which does catch some bad symbols but isn't as heavy-handed
9514 # as -z defs.
9515 no_undefined_flag='${wl}-z,text'
9516 allow_undefined_flag='${wl}-z,nodefs'
9517 archive_cmds_need_lc=no
9518 hardcode_shlibpath_var=no
9519 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9520 hardcode_libdir_separator=':'
9521 link_all_deplibs=yes
9522 export_dynamic_flag_spec='${wl}-Bexport'
9523 runpath_var='LD_RUN_PATH'
9525 if test "$GCC" = yes; then
9526 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9527 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9528 else
9529 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9530 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9534 uts4*)
9535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9536 hardcode_libdir_flag_spec='-L$libdir'
9537 hardcode_shlibpath_var=no
9541 ld_shlibs=no
9543 esac
9545 if test x$host_vendor = xsni; then
9546 case $host in
9547 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9548 export_dynamic_flag_spec='${wl}-Blargedynsym'
9550 esac
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9555 $as_echo "$ld_shlibs" >&6; }
9556 test "$ld_shlibs" = no && can_build_shared=no
9558 with_gnu_ld=$with_gnu_ld
9575 # Do we need to explicitly link libc?
9577 case "x$archive_cmds_need_lc" in
9578 x|xyes)
9579 # Assume -lc should be added
9580 archive_cmds_need_lc=yes
9582 if test "$enable_shared" = yes && test "$GCC" = yes; then
9583 case $archive_cmds in
9584 *'~'*)
9585 # FIXME: we may have to deal with multi-command sequences.
9587 '$CC '*)
9588 # Test whether the compiler implicitly links with -lc since on some
9589 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9590 # to ld, don't add -lc before -lgcc.
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9592 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9593 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9594 $as_echo_n "(cached) " >&6
9595 else
9596 $RM conftest*
9597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9600 (eval $ac_compile) 2>&5
9601 ac_status=$?
9602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9603 test $ac_status = 0; } 2>conftest.err; then
9604 soname=conftest
9605 lib=conftest
9606 libobjs=conftest.$ac_objext
9607 deplibs=
9608 wl=$lt_prog_compiler_wl
9609 pic_flag=$lt_prog_compiler_pic
9610 compiler_flags=-v
9611 linker_flags=-v
9612 verstring=
9613 output_objdir=.
9614 libname=conftest
9615 lt_save_allow_undefined_flag=$allow_undefined_flag
9616 allow_undefined_flag=
9617 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9618 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9619 ac_status=$?
9620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9621 test $ac_status = 0; }
9622 then
9623 lt_cv_archive_cmds_need_lc=no
9624 else
9625 lt_cv_archive_cmds_need_lc=yes
9627 allow_undefined_flag=$lt_save_allow_undefined_flag
9628 else
9629 cat conftest.err 1>&5
9631 $RM conftest*
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9635 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9636 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9638 esac
9641 esac
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9800 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9802 if test "$GCC" = yes; then
9803 case $host_os in
9804 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9805 *) lt_awk_arg="/^libraries:/" ;;
9806 esac
9807 case $host_os in
9808 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9809 *) lt_sed_strip_eq="s,=/,/,g" ;;
9810 esac
9811 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9812 case $lt_search_path_spec in
9813 *\;*)
9814 # if the path contains ";" then we assume it to be the separator
9815 # otherwise default to the standard path separator (i.e. ":") - it is
9816 # assumed that no part of a normal pathname contains ";" but that should
9817 # okay in the real world where ";" in dirpaths is itself problematic.
9818 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9821 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9823 esac
9824 # Ok, now we have the path, separated by spaces, we can step through it
9825 # and add multilib dir if necessary.
9826 lt_tmp_lt_search_path_spec=
9827 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9828 for lt_sys_path in $lt_search_path_spec; do
9829 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9830 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9831 else
9832 test -d "$lt_sys_path" && \
9833 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9835 done
9836 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9837 BEGIN {RS=" "; FS="/|\n";} {
9838 lt_foo="";
9839 lt_count=0;
9840 for (lt_i = NF; lt_i > 0; lt_i--) {
9841 if ($lt_i != "" && $lt_i != ".") {
9842 if ($lt_i == "..") {
9843 lt_count++;
9844 } else {
9845 if (lt_count == 0) {
9846 lt_foo="/" $lt_i lt_foo;
9847 } else {
9848 lt_count--;
9853 if (lt_foo != "") { lt_freq[lt_foo]++; }
9854 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9856 # AWK program above erroneously prepends '/' to C:/dos/paths
9857 # for these hosts.
9858 case $host_os in
9859 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9860 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9861 esac
9862 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9863 else
9864 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9866 library_names_spec=
9867 libname_spec='lib$name'
9868 soname_spec=
9869 shrext_cmds=".so"
9870 postinstall_cmds=
9871 postuninstall_cmds=
9872 finish_cmds=
9873 finish_eval=
9874 shlibpath_var=
9875 shlibpath_overrides_runpath=unknown
9876 version_type=none
9877 dynamic_linker="$host_os ld.so"
9878 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9879 need_lib_prefix=unknown
9880 hardcode_into_libs=no
9882 # when you set need_version to no, make sure it does not cause -set_version
9883 # flags to be left without arguments
9884 need_version=unknown
9886 case $host_os in
9887 aix3*)
9888 version_type=linux
9889 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9890 shlibpath_var=LIBPATH
9892 # AIX 3 has no versioning support, so we append a major version to the name.
9893 soname_spec='${libname}${release}${shared_ext}$major'
9896 aix[4-9]*)
9897 version_type=linux
9898 need_lib_prefix=no
9899 need_version=no
9900 hardcode_into_libs=yes
9901 if test "$host_cpu" = ia64; then
9902 # AIX 5 supports IA64
9903 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9904 shlibpath_var=LD_LIBRARY_PATH
9905 else
9906 # With GCC up to 2.95.x, collect2 would create an import file
9907 # for dependence libraries. The import file would start with
9908 # the line `#! .'. This would cause the generated library to
9909 # depend on `.', always an invalid library. This was fixed in
9910 # development snapshots of GCC prior to 3.0.
9911 case $host_os in
9912 aix4 | aix4.[01] | aix4.[01].*)
9913 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9914 echo ' yes '
9915 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9917 else
9918 can_build_shared=no
9921 esac
9922 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9923 # soname into executable. Probably we can add versioning support to
9924 # collect2, so additional links can be useful in future.
9925 if test "$aix_use_runtimelinking" = yes; then
9926 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9927 # instead of lib<name>.a to let people know that these are not
9928 # typical AIX shared libraries.
9929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9930 else
9931 # We preserve .a as extension for shared libraries through AIX4.2
9932 # and later when we are not doing run time linking.
9933 library_names_spec='${libname}${release}.a $libname.a'
9934 soname_spec='${libname}${release}${shared_ext}$major'
9936 shlibpath_var=LIBPATH
9940 amigaos*)
9941 case $host_cpu in
9942 powerpc)
9943 # Since July 2007 AmigaOS4 officially supports .so libraries.
9944 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9947 m68k)
9948 library_names_spec='$libname.ixlibrary $libname.a'
9949 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9950 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'
9952 esac
9955 beos*)
9956 library_names_spec='${libname}${shared_ext}'
9957 dynamic_linker="$host_os ld.so"
9958 shlibpath_var=LIBRARY_PATH
9961 bsdi[45]*)
9962 version_type=linux
9963 need_version=no
9964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9965 soname_spec='${libname}${release}${shared_ext}$major'
9966 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9967 shlibpath_var=LD_LIBRARY_PATH
9968 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9969 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9970 # the default ld.so.conf also contains /usr/contrib/lib and
9971 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9972 # libtool to hard-code these into programs
9975 cygwin* | mingw* | pw32* | cegcc*)
9976 version_type=windows
9977 shrext_cmds=".dll"
9978 need_version=no
9979 need_lib_prefix=no
9981 case $GCC,$host_os in
9982 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9983 library_names_spec='$libname.dll.a'
9984 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9985 postinstall_cmds='base_file=`basename \${file}`~
9986 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9987 dldir=$destdir/`dirname \$dlpath`~
9988 test -d \$dldir || mkdir -p \$dldir~
9989 $install_prog $dir/$dlname \$dldir/$dlname~
9990 chmod a+x \$dldir/$dlname~
9991 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9992 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9994 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9995 dlpath=$dir/\$dldll~
9996 $RM \$dlpath'
9997 shlibpath_overrides_runpath=yes
9999 case $host_os in
10000 cygwin*)
10001 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10002 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10004 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10006 mingw* | cegcc*)
10007 # MinGW DLLs use traditional 'lib' prefix
10008 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10010 pw32*)
10011 # pw32 DLLs use 'pw' prefix rather than 'lib'
10012 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10014 esac
10018 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10020 esac
10021 dynamic_linker='Win32 ld.exe'
10022 # FIXME: first we should search . and the directory the executable is in
10023 shlibpath_var=PATH
10026 darwin* | rhapsody*)
10027 dynamic_linker="$host_os dyld"
10028 version_type=darwin
10029 need_lib_prefix=no
10030 need_version=no
10031 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10032 soname_spec='${libname}${release}${major}$shared_ext'
10033 shlibpath_overrides_runpath=yes
10034 shlibpath_var=DYLD_LIBRARY_PATH
10035 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10037 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10038 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10041 dgux*)
10042 version_type=linux
10043 need_lib_prefix=no
10044 need_version=no
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10046 soname_spec='${libname}${release}${shared_ext}$major'
10047 shlibpath_var=LD_LIBRARY_PATH
10050 freebsd* | dragonfly*)
10051 # DragonFly does not have aout. When/if they implement a new
10052 # versioning mechanism, adjust this.
10053 if test -x /usr/bin/objformat; then
10054 objformat=`/usr/bin/objformat`
10055 else
10056 case $host_os in
10057 freebsd[23].*) objformat=aout ;;
10058 *) objformat=elf ;;
10059 esac
10061 version_type=freebsd-$objformat
10062 case $version_type in
10063 freebsd-elf*)
10064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10065 need_version=no
10066 need_lib_prefix=no
10068 freebsd-*)
10069 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10070 need_version=yes
10072 esac
10073 shlibpath_var=LD_LIBRARY_PATH
10074 case $host_os in
10075 freebsd2.*)
10076 shlibpath_overrides_runpath=yes
10078 freebsd3.[01]* | freebsdelf3.[01]*)
10079 shlibpath_overrides_runpath=yes
10080 hardcode_into_libs=yes
10082 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10083 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10084 shlibpath_overrides_runpath=no
10085 hardcode_into_libs=yes
10087 *) # from 4.6 on, and DragonFly
10088 shlibpath_overrides_runpath=yes
10089 hardcode_into_libs=yes
10091 esac
10094 gnu*)
10095 version_type=linux
10096 need_lib_prefix=no
10097 need_version=no
10098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10099 soname_spec='${libname}${release}${shared_ext}$major'
10100 shlibpath_var=LD_LIBRARY_PATH
10101 hardcode_into_libs=yes
10104 haiku*)
10105 version_type=linux
10106 need_lib_prefix=no
10107 need_version=no
10108 dynamic_linker="$host_os runtime_loader"
10109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10110 soname_spec='${libname}${release}${shared_ext}$major'
10111 shlibpath_var=LIBRARY_PATH
10112 shlibpath_overrides_runpath=yes
10113 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10114 hardcode_into_libs=yes
10117 hpux9* | hpux10* | hpux11*)
10118 # Give a soname corresponding to the major version so that dld.sl refuses to
10119 # link against other versions.
10120 version_type=sunos
10121 need_lib_prefix=no
10122 need_version=no
10123 case $host_cpu in
10124 ia64*)
10125 shrext_cmds='.so'
10126 hardcode_into_libs=yes
10127 dynamic_linker="$host_os dld.so"
10128 shlibpath_var=LD_LIBRARY_PATH
10129 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10131 soname_spec='${libname}${release}${shared_ext}$major'
10132 if test "X$HPUX_IA64_MODE" = X32; then
10133 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10134 else
10135 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10137 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10139 hppa*64*)
10140 shrext_cmds='.sl'
10141 hardcode_into_libs=yes
10142 dynamic_linker="$host_os dld.sl"
10143 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10144 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146 soname_spec='${libname}${release}${shared_ext}$major'
10147 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10148 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10151 shrext_cmds='.sl'
10152 dynamic_linker="$host_os dld.sl"
10153 shlibpath_var=SHLIB_PATH
10154 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10156 soname_spec='${libname}${release}${shared_ext}$major'
10158 esac
10159 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10160 postinstall_cmds='chmod 555 $lib'
10161 # or fails outright, so override atomically:
10162 install_override_mode=555
10165 interix[3-9]*)
10166 version_type=linux
10167 need_lib_prefix=no
10168 need_version=no
10169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10170 soname_spec='${libname}${release}${shared_ext}$major'
10171 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10172 shlibpath_var=LD_LIBRARY_PATH
10173 shlibpath_overrides_runpath=no
10174 hardcode_into_libs=yes
10177 irix5* | irix6* | nonstopux*)
10178 case $host_os in
10179 nonstopux*) version_type=nonstopux ;;
10181 if test "$lt_cv_prog_gnu_ld" = yes; then
10182 version_type=linux
10183 else
10184 version_type=irix
10185 fi ;;
10186 esac
10187 need_lib_prefix=no
10188 need_version=no
10189 soname_spec='${libname}${release}${shared_ext}$major'
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10191 case $host_os in
10192 irix5* | nonstopux*)
10193 libsuff= shlibsuff=
10196 case $LD in # libtool.m4 will add one of these switches to LD
10197 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10198 libsuff= shlibsuff= libmagic=32-bit;;
10199 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10200 libsuff=32 shlibsuff=N32 libmagic=N32;;
10201 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10202 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10203 *) libsuff= shlibsuff= libmagic=never-match;;
10204 esac
10206 esac
10207 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10208 shlibpath_overrides_runpath=no
10209 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10210 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10211 hardcode_into_libs=yes
10214 # No shared lib support for Linux oldld, aout, or coff.
10215 linux*oldld* | linux*aout* | linux*coff*)
10216 dynamic_linker=no
10219 # This must be Linux ELF.
10220 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10221 version_type=linux
10222 need_lib_prefix=no
10223 need_version=no
10224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10225 soname_spec='${libname}${release}${shared_ext}$major'
10226 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10227 shlibpath_var=LD_LIBRARY_PATH
10228 shlibpath_overrides_runpath=no
10230 # Some binutils ld are patched to set DT_RUNPATH
10231 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10232 $as_echo_n "(cached) " >&6
10233 else
10234 lt_cv_shlibpath_overrides_runpath=no
10235 save_LDFLAGS=$LDFLAGS
10236 save_libdir=$libdir
10237 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10238 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10240 /* end confdefs.h. */
10243 main ()
10247 return 0;
10249 _ACEOF
10250 if ac_fn_c_try_link "$LINENO"; then :
10251 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10252 lt_cv_shlibpath_overrides_runpath=yes
10255 rm -f core conftest.err conftest.$ac_objext \
10256 conftest$ac_exeext conftest.$ac_ext
10257 LDFLAGS=$save_LDFLAGS
10258 libdir=$save_libdir
10262 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10264 # This implies no fast_install, which is unacceptable.
10265 # Some rework will be needed to allow for fast_install
10266 # before this can be enabled.
10267 hardcode_into_libs=yes
10269 # Append ld.so.conf contents to the search path
10270 if test -f /etc/ld.so.conf; then
10271 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' ' '`
10272 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10275 # We used to test for /lib/ld.so.1 and disable shared libraries on
10276 # powerpc, because MkLinux only supported shared libraries with the
10277 # GNU dynamic linker. Since this was broken with cross compilers,
10278 # most powerpc-linux boxes support dynamic linking these days and
10279 # people can always --disable-shared, the test was removed, and we
10280 # assume the GNU/Linux dynamic linker is in use.
10281 dynamic_linker='GNU/Linux ld.so'
10284 netbsd*)
10285 version_type=sunos
10286 need_lib_prefix=no
10287 need_version=no
10288 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10291 dynamic_linker='NetBSD (a.out) ld.so'
10292 else
10293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10294 soname_spec='${libname}${release}${shared_ext}$major'
10295 dynamic_linker='NetBSD ld.elf_so'
10297 shlibpath_var=LD_LIBRARY_PATH
10298 shlibpath_overrides_runpath=yes
10299 hardcode_into_libs=yes
10302 newsos6)
10303 version_type=linux
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10305 shlibpath_var=LD_LIBRARY_PATH
10306 shlibpath_overrides_runpath=yes
10309 *nto* | *qnx*)
10310 version_type=qnx
10311 need_lib_prefix=no
10312 need_version=no
10313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10314 soname_spec='${libname}${release}${shared_ext}$major'
10315 shlibpath_var=LD_LIBRARY_PATH
10316 shlibpath_overrides_runpath=no
10317 hardcode_into_libs=yes
10318 dynamic_linker='ldqnx.so'
10321 openbsd*)
10322 version_type=sunos
10323 sys_lib_dlsearch_path_spec="/usr/lib"
10324 need_lib_prefix=no
10325 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10326 case $host_os in
10327 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10328 *) need_version=no ;;
10329 esac
10330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10331 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10332 shlibpath_var=LD_LIBRARY_PATH
10333 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10334 case $host_os in
10335 openbsd2.[89] | openbsd2.[89].*)
10336 shlibpath_overrides_runpath=no
10339 shlibpath_overrides_runpath=yes
10341 esac
10342 else
10343 shlibpath_overrides_runpath=yes
10347 os2*)
10348 libname_spec='$name'
10349 shrext_cmds=".dll"
10350 need_lib_prefix=no
10351 library_names_spec='$libname${shared_ext} $libname.a'
10352 dynamic_linker='OS/2 ld.exe'
10353 shlibpath_var=LIBPATH
10356 osf3* | osf4* | osf5*)
10357 version_type=osf
10358 need_lib_prefix=no
10359 need_version=no
10360 soname_spec='${libname}${release}${shared_ext}$major'
10361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10362 shlibpath_var=LD_LIBRARY_PATH
10363 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10364 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10367 rdos*)
10368 dynamic_linker=no
10371 solaris*)
10372 version_type=linux
10373 need_lib_prefix=no
10374 need_version=no
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10376 soname_spec='${libname}${release}${shared_ext}$major'
10377 shlibpath_var=LD_LIBRARY_PATH
10378 shlibpath_overrides_runpath=yes
10379 hardcode_into_libs=yes
10380 # ldd complains unless libraries are executable
10381 postinstall_cmds='chmod +x $lib'
10384 sunos4*)
10385 version_type=sunos
10386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10387 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10388 shlibpath_var=LD_LIBRARY_PATH
10389 shlibpath_overrides_runpath=yes
10390 if test "$with_gnu_ld" = yes; then
10391 need_lib_prefix=no
10393 need_version=yes
10396 sysv4 | sysv4.3*)
10397 version_type=linux
10398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10399 soname_spec='${libname}${release}${shared_ext}$major'
10400 shlibpath_var=LD_LIBRARY_PATH
10401 case $host_vendor in
10402 sni)
10403 shlibpath_overrides_runpath=no
10404 need_lib_prefix=no
10405 runpath_var=LD_RUN_PATH
10407 siemens)
10408 need_lib_prefix=no
10410 motorola)
10411 need_lib_prefix=no
10412 need_version=no
10413 shlibpath_overrides_runpath=no
10414 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10416 esac
10419 sysv4*MP*)
10420 if test -d /usr/nec ;then
10421 version_type=linux
10422 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10423 soname_spec='$libname${shared_ext}.$major'
10424 shlibpath_var=LD_LIBRARY_PATH
10428 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10429 version_type=freebsd-elf
10430 need_lib_prefix=no
10431 need_version=no
10432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10433 soname_spec='${libname}${release}${shared_ext}$major'
10434 shlibpath_var=LD_LIBRARY_PATH
10435 shlibpath_overrides_runpath=yes
10436 hardcode_into_libs=yes
10437 if test "$with_gnu_ld" = yes; then
10438 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10439 else
10440 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10441 case $host_os in
10442 sco3.2v5*)
10443 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10445 esac
10447 sys_lib_dlsearch_path_spec='/usr/lib'
10450 tpf*)
10451 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10452 version_type=linux
10453 need_lib_prefix=no
10454 need_version=no
10455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10456 shlibpath_var=LD_LIBRARY_PATH
10457 shlibpath_overrides_runpath=no
10458 hardcode_into_libs=yes
10461 uts4*)
10462 version_type=linux
10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10464 soname_spec='${libname}${release}${shared_ext}$major'
10465 shlibpath_var=LD_LIBRARY_PATH
10469 dynamic_linker=no
10471 esac
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10473 $as_echo "$dynamic_linker" >&6; }
10474 test "$dynamic_linker" = no && can_build_shared=no
10476 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10477 if test "$GCC" = yes; then
10478 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10481 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10482 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10484 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10485 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10580 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10581 hardcode_action=
10582 if test -n "$hardcode_libdir_flag_spec" ||
10583 test -n "$runpath_var" ||
10584 test "X$hardcode_automatic" = "Xyes" ; then
10586 # We can hardcode non-existent directories.
10587 if test "$hardcode_direct" != no &&
10588 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10589 # have to relink, otherwise we might link with an installed library
10590 # when we should be linking with a yet-to-be-installed one
10591 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10592 test "$hardcode_minus_L" != no; then
10593 # Linking always hardcodes the temporary library directory.
10594 hardcode_action=relink
10595 else
10596 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10597 hardcode_action=immediate
10599 else
10600 # We cannot hardcode anything, or else we can only hardcode existing
10601 # directories.
10602 hardcode_action=unsupported
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10605 $as_echo "$hardcode_action" >&6; }
10607 if test "$hardcode_action" = relink ||
10608 test "$inherit_rpath" = yes; then
10609 # Fast installation is not supported
10610 enable_fast_install=no
10611 elif test "$shlibpath_overrides_runpath" = yes ||
10612 test "$enable_shared" = no; then
10613 # Fast installation is not necessary
10614 enable_fast_install=needless
10622 if test "x$enable_dlopen" != xyes; then
10623 enable_dlopen=unknown
10624 enable_dlopen_self=unknown
10625 enable_dlopen_self_static=unknown
10626 else
10627 lt_cv_dlopen=no
10628 lt_cv_dlopen_libs=
10630 case $host_os in
10631 beos*)
10632 lt_cv_dlopen="load_add_on"
10633 lt_cv_dlopen_libs=
10634 lt_cv_dlopen_self=yes
10637 mingw* | pw32* | cegcc*)
10638 lt_cv_dlopen="LoadLibrary"
10639 lt_cv_dlopen_libs=
10642 cygwin*)
10643 lt_cv_dlopen="dlopen"
10644 lt_cv_dlopen_libs=
10647 darwin*)
10648 # if libdl is installed we need to link against it
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10650 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10651 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10652 $as_echo_n "(cached) " >&6
10653 else
10654 ac_check_lib_save_LIBS=$LIBS
10655 LIBS="-ldl $LIBS"
10656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10657 /* end confdefs.h. */
10659 /* Override any GCC internal prototype to avoid an error.
10660 Use char because int might match the return type of a GCC
10661 builtin and then its argument prototype would still apply. */
10662 #ifdef __cplusplus
10663 extern "C"
10664 #endif
10665 char dlopen ();
10667 main ()
10669 return dlopen ();
10671 return 0;
10673 _ACEOF
10674 if ac_fn_c_try_link "$LINENO"; then :
10675 ac_cv_lib_dl_dlopen=yes
10676 else
10677 ac_cv_lib_dl_dlopen=no
10679 rm -f core conftest.err conftest.$ac_objext \
10680 conftest$ac_exeext conftest.$ac_ext
10681 LIBS=$ac_check_lib_save_LIBS
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10684 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10685 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10686 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10687 else
10689 lt_cv_dlopen="dyld"
10690 lt_cv_dlopen_libs=
10691 lt_cv_dlopen_self=yes
10698 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10699 if test "x$ac_cv_func_shl_load" = x""yes; then :
10700 lt_cv_dlopen="shl_load"
10701 else
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10703 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10704 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10705 $as_echo_n "(cached) " >&6
10706 else
10707 ac_check_lib_save_LIBS=$LIBS
10708 LIBS="-ldld $LIBS"
10709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10710 /* end confdefs.h. */
10712 /* Override any GCC internal prototype to avoid an error.
10713 Use char because int might match the return type of a GCC
10714 builtin and then its argument prototype would still apply. */
10715 #ifdef __cplusplus
10716 extern "C"
10717 #endif
10718 char shl_load ();
10720 main ()
10722 return shl_load ();
10724 return 0;
10726 _ACEOF
10727 if ac_fn_c_try_link "$LINENO"; then :
10728 ac_cv_lib_dld_shl_load=yes
10729 else
10730 ac_cv_lib_dld_shl_load=no
10732 rm -f core conftest.err conftest.$ac_objext \
10733 conftest$ac_exeext conftest.$ac_ext
10734 LIBS=$ac_check_lib_save_LIBS
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10737 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10738 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10739 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10740 else
10741 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10742 if test "x$ac_cv_func_dlopen" = x""yes; then :
10743 lt_cv_dlopen="dlopen"
10744 else
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10746 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10747 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10748 $as_echo_n "(cached) " >&6
10749 else
10750 ac_check_lib_save_LIBS=$LIBS
10751 LIBS="-ldl $LIBS"
10752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10753 /* end confdefs.h. */
10755 /* Override any GCC internal prototype to avoid an error.
10756 Use char because int might match the return type of a GCC
10757 builtin and then its argument prototype would still apply. */
10758 #ifdef __cplusplus
10759 extern "C"
10760 #endif
10761 char dlopen ();
10763 main ()
10765 return dlopen ();
10767 return 0;
10769 _ACEOF
10770 if ac_fn_c_try_link "$LINENO"; then :
10771 ac_cv_lib_dl_dlopen=yes
10772 else
10773 ac_cv_lib_dl_dlopen=no
10775 rm -f core conftest.err conftest.$ac_objext \
10776 conftest$ac_exeext conftest.$ac_ext
10777 LIBS=$ac_check_lib_save_LIBS
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10780 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10781 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10782 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10783 else
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10785 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10786 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10787 $as_echo_n "(cached) " >&6
10788 else
10789 ac_check_lib_save_LIBS=$LIBS
10790 LIBS="-lsvld $LIBS"
10791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10792 /* end confdefs.h. */
10794 /* Override any GCC internal prototype to avoid an error.
10795 Use char because int might match the return type of a GCC
10796 builtin and then its argument prototype would still apply. */
10797 #ifdef __cplusplus
10798 extern "C"
10799 #endif
10800 char dlopen ();
10802 main ()
10804 return dlopen ();
10806 return 0;
10808 _ACEOF
10809 if ac_fn_c_try_link "$LINENO"; then :
10810 ac_cv_lib_svld_dlopen=yes
10811 else
10812 ac_cv_lib_svld_dlopen=no
10814 rm -f core conftest.err conftest.$ac_objext \
10815 conftest$ac_exeext conftest.$ac_ext
10816 LIBS=$ac_check_lib_save_LIBS
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10819 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10820 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10821 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10822 else
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10824 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10825 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10826 $as_echo_n "(cached) " >&6
10827 else
10828 ac_check_lib_save_LIBS=$LIBS
10829 LIBS="-ldld $LIBS"
10830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831 /* end confdefs.h. */
10833 /* Override any GCC internal prototype to avoid an error.
10834 Use char because int might match the return type of a GCC
10835 builtin and then its argument prototype would still apply. */
10836 #ifdef __cplusplus
10837 extern "C"
10838 #endif
10839 char dld_link ();
10841 main ()
10843 return dld_link ();
10845 return 0;
10847 _ACEOF
10848 if ac_fn_c_try_link "$LINENO"; then :
10849 ac_cv_lib_dld_dld_link=yes
10850 else
10851 ac_cv_lib_dld_dld_link=no
10853 rm -f core conftest.err conftest.$ac_objext \
10854 conftest$ac_exeext conftest.$ac_ext
10855 LIBS=$ac_check_lib_save_LIBS
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10858 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10859 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10860 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10879 esac
10881 if test "x$lt_cv_dlopen" != xno; then
10882 enable_dlopen=yes
10883 else
10884 enable_dlopen=no
10887 case $lt_cv_dlopen in
10888 dlopen)
10889 save_CPPFLAGS="$CPPFLAGS"
10890 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10892 save_LDFLAGS="$LDFLAGS"
10893 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10895 save_LIBS="$LIBS"
10896 LIBS="$lt_cv_dlopen_libs $LIBS"
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10899 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10900 if test "${lt_cv_dlopen_self+set}" = set; then :
10901 $as_echo_n "(cached) " >&6
10902 else
10903 if test "$cross_compiling" = yes; then :
10904 lt_cv_dlopen_self=cross
10905 else
10906 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10907 lt_status=$lt_dlunknown
10908 cat > conftest.$ac_ext <<_LT_EOF
10909 #line 10909 "configure"
10910 #include "confdefs.h"
10912 #if HAVE_DLFCN_H
10913 #include <dlfcn.h>
10914 #endif
10916 #include <stdio.h>
10918 #ifdef RTLD_GLOBAL
10919 # define LT_DLGLOBAL RTLD_GLOBAL
10920 #else
10921 # ifdef DL_GLOBAL
10922 # define LT_DLGLOBAL DL_GLOBAL
10923 # else
10924 # define LT_DLGLOBAL 0
10925 # endif
10926 #endif
10928 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10929 find out it does not work in some platform. */
10930 #ifndef LT_DLLAZY_OR_NOW
10931 # ifdef RTLD_LAZY
10932 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10933 # else
10934 # ifdef DL_LAZY
10935 # define LT_DLLAZY_OR_NOW DL_LAZY
10936 # else
10937 # ifdef RTLD_NOW
10938 # define LT_DLLAZY_OR_NOW RTLD_NOW
10939 # else
10940 # ifdef DL_NOW
10941 # define LT_DLLAZY_OR_NOW DL_NOW
10942 # else
10943 # define LT_DLLAZY_OR_NOW 0
10944 # endif
10945 # endif
10946 # endif
10947 # endif
10948 #endif
10950 /* When -fvisbility=hidden is used, assume the code has been annotated
10951 correspondingly for the symbols needed. */
10952 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10953 void fnord () __attribute__((visibility("default")));
10954 #endif
10956 void fnord () { int i=42; }
10957 int main ()
10959 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10960 int status = $lt_dlunknown;
10962 if (self)
10964 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10965 else
10967 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10968 else puts (dlerror ());
10970 /* dlclose (self); */
10972 else
10973 puts (dlerror ());
10975 return status;
10977 _LT_EOF
10978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10979 (eval $ac_link) 2>&5
10980 ac_status=$?
10981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10982 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10983 (./conftest; exit; ) >&5 2>/dev/null
10984 lt_status=$?
10985 case x$lt_status in
10986 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10987 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10988 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10989 esac
10990 else :
10991 # compilation failed
10992 lt_cv_dlopen_self=no
10995 rm -fr conftest*
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11000 $as_echo "$lt_cv_dlopen_self" >&6; }
11002 if test "x$lt_cv_dlopen_self" = xyes; then
11003 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11005 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11006 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11007 $as_echo_n "(cached) " >&6
11008 else
11009 if test "$cross_compiling" = yes; then :
11010 lt_cv_dlopen_self_static=cross
11011 else
11012 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11013 lt_status=$lt_dlunknown
11014 cat > conftest.$ac_ext <<_LT_EOF
11015 #line 11015 "configure"
11016 #include "confdefs.h"
11018 #if HAVE_DLFCN_H
11019 #include <dlfcn.h>
11020 #endif
11022 #include <stdio.h>
11024 #ifdef RTLD_GLOBAL
11025 # define LT_DLGLOBAL RTLD_GLOBAL
11026 #else
11027 # ifdef DL_GLOBAL
11028 # define LT_DLGLOBAL DL_GLOBAL
11029 # else
11030 # define LT_DLGLOBAL 0
11031 # endif
11032 #endif
11034 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11035 find out it does not work in some platform. */
11036 #ifndef LT_DLLAZY_OR_NOW
11037 # ifdef RTLD_LAZY
11038 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11039 # else
11040 # ifdef DL_LAZY
11041 # define LT_DLLAZY_OR_NOW DL_LAZY
11042 # else
11043 # ifdef RTLD_NOW
11044 # define LT_DLLAZY_OR_NOW RTLD_NOW
11045 # else
11046 # ifdef DL_NOW
11047 # define LT_DLLAZY_OR_NOW DL_NOW
11048 # else
11049 # define LT_DLLAZY_OR_NOW 0
11050 # endif
11051 # endif
11052 # endif
11053 # endif
11054 #endif
11056 /* When -fvisbility=hidden is used, assume the code has been annotated
11057 correspondingly for the symbols needed. */
11058 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11059 void fnord () __attribute__((visibility("default")));
11060 #endif
11062 void fnord () { int i=42; }
11063 int main ()
11065 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11066 int status = $lt_dlunknown;
11068 if (self)
11070 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11071 else
11073 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11074 else puts (dlerror ());
11076 /* dlclose (self); */
11078 else
11079 puts (dlerror ());
11081 return status;
11083 _LT_EOF
11084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11085 (eval $ac_link) 2>&5
11086 ac_status=$?
11087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11088 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11089 (./conftest; exit; ) >&5 2>/dev/null
11090 lt_status=$?
11091 case x$lt_status in
11092 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11093 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11094 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11095 esac
11096 else :
11097 # compilation failed
11098 lt_cv_dlopen_self_static=no
11101 rm -fr conftest*
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11106 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11109 CPPFLAGS="$save_CPPFLAGS"
11110 LDFLAGS="$save_LDFLAGS"
11111 LIBS="$save_LIBS"
11113 esac
11115 case $lt_cv_dlopen_self in
11116 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11117 *) enable_dlopen_self=unknown ;;
11118 esac
11120 case $lt_cv_dlopen_self_static in
11121 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11122 *) enable_dlopen_self_static=unknown ;;
11123 esac
11142 striplib=
11143 old_striplib=
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11145 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11146 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11147 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11148 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11150 $as_echo "yes" >&6; }
11151 else
11152 # FIXME - insert some real tests, host_os isn't really good enough
11153 case $host_os in
11154 darwin*)
11155 if test -n "$STRIP" ; then
11156 striplib="$STRIP -x"
11157 old_striplib="$STRIP -S"
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11159 $as_echo "yes" >&6; }
11160 else
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11162 $as_echo "no" >&6; }
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11167 $as_echo "no" >&6; }
11169 esac
11183 # Report which library types will actually be built
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11185 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11187 $as_echo "$can_build_shared" >&6; }
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11190 $as_echo_n "checking whether to build shared libraries... " >&6; }
11191 test "$can_build_shared" = "no" && enable_shared=no
11193 # On AIX, shared libraries and static libraries use the same namespace, and
11194 # are all built from PIC.
11195 case $host_os in
11196 aix3*)
11197 test "$enable_shared" = yes && enable_static=no
11198 if test -n "$RANLIB"; then
11199 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11200 postinstall_cmds='$RANLIB $lib'
11204 aix[4-9]*)
11205 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11206 test "$enable_shared" = yes && enable_static=no
11209 esac
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11211 $as_echo "$enable_shared" >&6; }
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11214 $as_echo_n "checking whether to build static libraries... " >&6; }
11215 # Make sure either enable_shared or enable_static is yes.
11216 test "$enable_shared" = yes || enable_static=yes
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11218 $as_echo "$enable_static" >&6; }
11224 ac_ext=c
11225 ac_cpp='$CPP $CPPFLAGS'
11226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11230 CC="$lt_save_CC"
11244 ac_config_commands="$ac_config_commands libtool"
11249 # Only expand once:
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11255 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11256 # Check whether --enable-maintainer-mode was given.
11257 if test "${enable_maintainer_mode+set}" = set; then :
11258 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11259 else
11260 USE_MAINTAINER_MODE=no
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11264 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11265 if test $USE_MAINTAINER_MODE = yes; then
11266 MAINTAINER_MODE_TRUE=
11267 MAINTAINER_MODE_FALSE='#'
11268 else
11269 MAINTAINER_MODE_TRUE='#'
11270 MAINTAINER_MODE_FALSE=
11273 MAINT=$MAINTAINER_MODE_TRUE
11277 for ac_header in sys/mman.h
11278 do :
11279 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11280 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11281 cat >>confdefs.h <<_ACEOF
11282 #define HAVE_SYS_MMAN_H 1
11283 _ACEOF
11287 done
11289 for ac_func in mmap
11290 do :
11291 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11292 if test "x$ac_cv_func_mmap" = x""yes; then :
11293 cat >>confdefs.h <<_ACEOF
11294 #define HAVE_MMAP 1
11295 _ACEOF
11298 done
11301 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11302 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11303 libffi_header_sys_mman_h=yes
11304 else
11305 libffi_header_sys_mman_h=no
11309 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11310 if test "x$ac_cv_func_mmap" = x""yes; then :
11311 libffi_func_mmap=yes
11312 else
11313 libffi_func_mmap=no
11316 if test "$libffi_header_sys_mman_h" != yes \
11317 || test "$libffi_func_mmap" != yes; then
11318 ac_cv_func_mmap_file=no
11319 ac_cv_func_mmap_dev_zero=no
11320 ac_cv_func_mmap_anon=no
11321 else
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
11323 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
11324 if test "${ac_cv_func_mmap_file+set}" = set; then :
11325 $as_echo_n "(cached) " >&6
11326 else
11327 # Add a system to this blacklist if
11328 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
11329 # memory area containing the same data that you'd get if you applied
11330 # read() to the same fd. The only system known to have a problem here
11331 # is VMS, where text files have record structure.
11332 case "$host_os" in
11333 vms* | ultrix*)
11334 ac_cv_func_mmap_file=no ;;
11336 ac_cv_func_mmap_file=yes;;
11337 esac
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
11340 $as_echo "$ac_cv_func_mmap_file" >&6; }
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
11342 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
11343 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then :
11344 $as_echo_n "(cached) " >&6
11345 else
11346 # Add a system to this blacklist if it has mmap() but /dev/zero
11347 # does not exist, or if mmapping /dev/zero does not give anonymous
11348 # zeroed pages with both the following properties:
11349 # 1. If you map N consecutive pages in with one call, and then
11350 # unmap any subset of those pages, the pages that were not
11351 # explicitly unmapped remain accessible.
11352 # 2. If you map two adjacent blocks of memory and then unmap them
11353 # both at once, they must both go away.
11354 # Systems known to be in this category are Windows (all variants),
11355 # VMS, and Darwin.
11356 case "$host_os" in
11357 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
11358 ac_cv_func_mmap_dev_zero=no ;;
11360 ac_cv_func_mmap_dev_zero=yes;;
11361 esac
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
11364 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
11366 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
11368 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
11369 if test "${ac_cv_decl_map_anon+set}" = set; then :
11370 $as_echo_n "(cached) " >&6
11371 else
11372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11373 /* end confdefs.h. */
11374 #include <sys/types.h>
11375 #include <sys/mman.h>
11376 #include <unistd.h>
11378 #ifndef MAP_ANONYMOUS
11379 #define MAP_ANONYMOUS MAP_ANON
11380 #endif
11383 main ()
11385 int n = MAP_ANONYMOUS;
11387 return 0;
11389 _ACEOF
11390 if ac_fn_c_try_compile "$LINENO"; then :
11391 ac_cv_decl_map_anon=yes
11392 else
11393 ac_cv_decl_map_anon=no
11395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
11398 $as_echo "$ac_cv_decl_map_anon" >&6; }
11400 if test $ac_cv_decl_map_anon = no; then
11401 ac_cv_func_mmap_anon=no
11402 else
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
11404 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
11405 if test "${ac_cv_func_mmap_anon+set}" = set; then :
11406 $as_echo_n "(cached) " >&6
11407 else
11408 # Add a system to this blacklist if it has mmap() and MAP_ANON or
11409 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
11410 # doesn't give anonymous zeroed pages with the same properties listed
11411 # above for use of /dev/zero.
11412 # Systems known to be in this category are Windows, VMS, and SCO Unix.
11413 case "$host_os" in
11414 vms* | cygwin* | pe | mingw* | sco* | udk* )
11415 ac_cv_func_mmap_anon=no ;;
11417 ac_cv_func_mmap_anon=yes;;
11418 esac
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
11421 $as_echo "$ac_cv_func_mmap_anon" >&6; }
11425 if test $ac_cv_func_mmap_file = yes; then
11427 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
11430 if test $ac_cv_func_mmap_dev_zero = yes; then
11432 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
11435 if test $ac_cv_func_mmap_anon = yes; then
11437 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
11442 if test -d $srcdir/testsuite; then
11443 TESTSUBDIR_TRUE=
11444 TESTSUBDIR_FALSE='#'
11445 else
11446 TESTSUBDIR_TRUE='#'
11447 TESTSUBDIR_FALSE=
11451 TARGETDIR="unknown"
11452 case "$host" in
11453 aarch64*-*-*)
11454 TARGET=AARCH64; TARGETDIR=aarch64
11457 alpha*-*-*)
11458 TARGET=ALPHA; TARGETDIR=alpha;
11459 # Support 128-bit long double, changeable via command-line switch.
11460 HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
11463 arm*-*-*)
11464 TARGET=ARM; TARGETDIR=arm
11467 amd64-*-freebsd* | amd64-*-openbsd*)
11468 TARGET=X86_64; TARGETDIR=x86
11471 amd64-*-freebsd*)
11472 TARGET=X86_64; TARGETDIR=x86
11475 avr32*-*-*)
11476 TARGET=AVR32; TARGETDIR=avr32
11479 bfin*)
11480 TARGET=BFIN; TARGETDIR=bfin
11483 cris-*-*)
11484 TARGET=LIBFFI_CRIS; TARGETDIR=cris
11487 frv-*-*)
11488 TARGET=FRV; TARGETDIR=frv
11491 hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
11492 TARGET=PA_LINUX; TARGETDIR=pa
11494 hppa*64-*-hpux*)
11495 TARGET=PA64_HPUX; TARGETDIR=pa
11497 hppa*-*-hpux*)
11498 TARGET=PA_HPUX; TARGETDIR=pa
11501 i?86-*-freebsd* | i?86-*-openbsd*)
11502 TARGET=X86_FREEBSD; TARGETDIR=x86
11504 i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
11505 TARGET=X86_WIN32; TARGETDIR=x86
11506 # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
11507 # We must also check with_cross_host to decide if this is a native
11508 # or cross-build and select where to install dlls appropriately.
11509 if test -n "$with_cross_host" &&
11510 test x"$with_cross_host" != x"no"; then
11511 AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
11512 else
11513 AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
11516 i?86-*-darwin*)
11517 TARGET=X86_DARWIN; TARGETDIR=x86
11519 i?86-*-solaris2.1[0-9]*)
11520 TARGET=X86_64; TARGETDIR=x86
11522 i?86-*-*)
11523 TARGET=X86_64; TARGETDIR=x86
11526 ia64*-*-*)
11527 TARGET=IA64; TARGETDIR=ia64
11530 m32r*-*-*)
11531 TARGET=M32R; TARGETDIR=m32r
11534 m68k-*-*)
11535 TARGET=M68K; TARGETDIR=m68k
11538 mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
11539 TARGET=MIPS; TARGETDIR=mips
11541 mips*-*-linux* | mips*-*-openbsd*)
11542 # Support 128-bit long double for NewABI.
11543 HAVE_LONG_DOUBLE='defined(__mips64)'
11544 TARGET=MIPS; TARGETDIR=mips
11547 powerpc*-*-linux* | powerpc-*-sysv*)
11548 TARGET=POWERPC; TARGETDIR=powerpc
11550 powerpc-*-amigaos*)
11551 TARGET=POWERPC; TARGETDIR=powerpc
11553 powerpc-*-beos*)
11554 TARGET=POWERPC; TARGETDIR=powerpc
11556 powerpc-*-darwin* | powerpc64-*-darwin*)
11557 TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
11559 powerpc-*-aix* | rs6000-*-aix*)
11560 TARGET=POWERPC_AIX; TARGETDIR=powerpc
11562 powerpc-*-freebsd* | powerpc-*-openbsd*)
11563 TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
11565 powerpc64-*-freebsd*)
11566 TARGET=POWERPC; TARGETDIR=powerpc
11568 powerpc*-*-rtems*)
11569 TARGET=POWERPC; TARGETDIR=powerpc
11572 s390-*-* | s390x-*-*)
11573 TARGET=S390; TARGETDIR=s390
11576 sh-*-* | sh[34]*-*-*)
11577 TARGET=SH; TARGETDIR=sh
11579 sh64-*-* | sh5*-*-*)
11580 TARGET=SH64; TARGETDIR=sh64
11583 sparc*-*-*)
11584 TARGET=SPARC; TARGETDIR=sparc
11587 tile*-*)
11588 TARGET=TILE; TARGETDIR=tile
11591 x86_64-*-darwin*)
11592 TARGET=X86_DARWIN; TARGETDIR=x86
11595 x86_64-*-cygwin* | x86_64-*-mingw*)
11596 TARGET=X86_WIN64; TARGETDIR=x86
11597 # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
11598 # We must also check with_cross_host to decide if this is a native
11599 # or cross-build and select where to install dlls appropriately.
11600 if test -n "$with_cross_host" &&
11601 test x"$with_cross_host" != x"no"; then
11602 AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
11603 else
11604 AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
11608 x86_64-*-*)
11609 TARGET=X86_64; TARGETDIR=x86
11611 esac
11616 if test $TARGETDIR = unknown; then
11617 as_fn_error "\"libffi has not been ported to $host.\"" "$LINENO" 5
11620 if test x$TARGET = xMIPS; then
11621 MIPS_TRUE=
11622 MIPS_FALSE='#'
11623 else
11624 MIPS_TRUE='#'
11625 MIPS_FALSE=
11628 if test x$TARGET = xBFIN; then
11629 BFIN_TRUE=
11630 BFIN_FALSE='#'
11631 else
11632 BFIN_TRUE='#'
11633 BFIN_FALSE=
11636 if test x$TARGET = xSPARC; then
11637 SPARC_TRUE=
11638 SPARC_FALSE='#'
11639 else
11640 SPARC_TRUE='#'
11641 SPARC_FALSE=
11644 if test x$TARGET = xX86; then
11645 X86_TRUE=
11646 X86_FALSE='#'
11647 else
11648 X86_TRUE='#'
11649 X86_FALSE=
11652 if test x$TARGET = xX86_FREEBSD; then
11653 X86_FREEBSD_TRUE=
11654 X86_FREEBSD_FALSE='#'
11655 else
11656 X86_FREEBSD_TRUE='#'
11657 X86_FREEBSD_FALSE=
11660 if test x$TARGET = xX86_WIN32; then
11661 X86_WIN32_TRUE=
11662 X86_WIN32_FALSE='#'
11663 else
11664 X86_WIN32_TRUE='#'
11665 X86_WIN32_FALSE=
11668 if test x$TARGET = xX86_WIN64; then
11669 X86_WIN64_TRUE=
11670 X86_WIN64_FALSE='#'
11671 else
11672 X86_WIN64_TRUE='#'
11673 X86_WIN64_FALSE=
11676 if test x$TARGET = xX86_DARWIN; then
11677 X86_DARWIN_TRUE=
11678 X86_DARWIN_FALSE='#'
11679 else
11680 X86_DARWIN_TRUE='#'
11681 X86_DARWIN_FALSE=
11684 if test x$TARGET = xALPHA; then
11685 ALPHA_TRUE=
11686 ALPHA_FALSE='#'
11687 else
11688 ALPHA_TRUE='#'
11689 ALPHA_FALSE=
11692 if test x$TARGET = xIA64; then
11693 IA64_TRUE=
11694 IA64_FALSE='#'
11695 else
11696 IA64_TRUE='#'
11697 IA64_FALSE=
11700 if test x$TARGET = xM32R; then
11701 M32R_TRUE=
11702 M32R_FALSE='#'
11703 else
11704 M32R_TRUE='#'
11705 M32R_FALSE=
11708 if test x$TARGET = xM68K; then
11709 M68K_TRUE=
11710 M68K_FALSE='#'
11711 else
11712 M68K_TRUE='#'
11713 M68K_FALSE=
11716 if test x$TARGET = xPOWERPC; then
11717 POWERPC_TRUE=
11718 POWERPC_FALSE='#'
11719 else
11720 POWERPC_TRUE='#'
11721 POWERPC_FALSE=
11724 if test x$TARGET = xPOWERPC_AIX; then
11725 POWERPC_AIX_TRUE=
11726 POWERPC_AIX_FALSE='#'
11727 else
11728 POWERPC_AIX_TRUE='#'
11729 POWERPC_AIX_FALSE=
11732 if test x$TARGET = xPOWERPC_DARWIN; then
11733 POWERPC_DARWIN_TRUE=
11734 POWERPC_DARWIN_FALSE='#'
11735 else
11736 POWERPC_DARWIN_TRUE='#'
11737 POWERPC_DARWIN_FALSE=
11740 if test x$TARGET = xPOWERPC_FREEBSD; then
11741 POWERPC_FREEBSD_TRUE=
11742 POWERPC_FREEBSD_FALSE='#'
11743 else
11744 POWERPC_FREEBSD_TRUE='#'
11745 POWERPC_FREEBSD_FALSE=
11748 if test x$TARGET = xAARCH64; then
11749 AARCH64_TRUE=
11750 AARCH64_FALSE='#'
11751 else
11752 AARCH64_TRUE='#'
11753 AARCH64_FALSE=
11756 if test x$TARGET = xARM; then
11757 ARM_TRUE=
11758 ARM_FALSE='#'
11759 else
11760 ARM_TRUE='#'
11761 ARM_FALSE=
11764 if test x$TARGET = xAVR32; then
11765 AVR32_TRUE=
11766 AVR32_FALSE='#'
11767 else
11768 AVR32_TRUE='#'
11769 AVR32_FALSE=
11772 if test x$TARGET = xLIBFFI_CRIS; then
11773 LIBFFI_CRIS_TRUE=
11774 LIBFFI_CRIS_FALSE='#'
11775 else
11776 LIBFFI_CRIS_TRUE='#'
11777 LIBFFI_CRIS_FALSE=
11780 if test x$TARGET = xFRV; then
11781 FRV_TRUE=
11782 FRV_FALSE='#'
11783 else
11784 FRV_TRUE='#'
11785 FRV_FALSE=
11788 if test x$TARGET = xS390; then
11789 S390_TRUE=
11790 S390_FALSE='#'
11791 else
11792 S390_TRUE='#'
11793 S390_FALSE=
11796 if test x$TARGET = xX86_64; then
11797 X86_64_TRUE=
11798 X86_64_FALSE='#'
11799 else
11800 X86_64_TRUE='#'
11801 X86_64_FALSE=
11804 if test x$TARGET = xSH; then
11805 SH_TRUE=
11806 SH_FALSE='#'
11807 else
11808 SH_TRUE='#'
11809 SH_FALSE=
11812 if test x$TARGET = xSH64; then
11813 SH64_TRUE=
11814 SH64_FALSE='#'
11815 else
11816 SH64_TRUE='#'
11817 SH64_FALSE=
11820 if test x$TARGET = xPA_LINUX; then
11821 PA_LINUX_TRUE=
11822 PA_LINUX_FALSE='#'
11823 else
11824 PA_LINUX_TRUE='#'
11825 PA_LINUX_FALSE=
11828 if test x$TARGET = xPA_HPUX; then
11829 PA_HPUX_TRUE=
11830 PA_HPUX_FALSE='#'
11831 else
11832 PA_HPUX_TRUE='#'
11833 PA_HPUX_FALSE=
11836 if test x$TARGET = xPA64_HPUX; then
11837 PA64_HPUX_TRUE=
11838 PA64_HPUX_FALSE='#'
11839 else
11840 PA64_HPUX_TRUE='#'
11841 PA64_HPUX_FALSE=
11844 if test x$TARGET = xTILE; then
11845 TILE_TRUE=
11846 TILE_FALSE='#'
11847 else
11848 TILE_TRUE='#'
11849 TILE_FALSE=
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11854 $as_echo_n "checking for ANSI C header files... " >&6; }
11855 if test "${ac_cv_header_stdc+set}" = set; then :
11856 $as_echo_n "(cached) " >&6
11857 else
11858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11859 /* end confdefs.h. */
11860 #include <stdlib.h>
11861 #include <stdarg.h>
11862 #include <string.h>
11863 #include <float.h>
11866 main ()
11870 return 0;
11872 _ACEOF
11873 if ac_fn_c_try_compile "$LINENO"; then :
11874 ac_cv_header_stdc=yes
11875 else
11876 ac_cv_header_stdc=no
11878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11880 if test $ac_cv_header_stdc = yes; then
11881 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11883 /* end confdefs.h. */
11884 #include <string.h>
11886 _ACEOF
11887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11888 $EGREP "memchr" >/dev/null 2>&1; then :
11890 else
11891 ac_cv_header_stdc=no
11893 rm -f conftest*
11897 if test $ac_cv_header_stdc = yes; then
11898 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11900 /* end confdefs.h. */
11901 #include <stdlib.h>
11903 _ACEOF
11904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11905 $EGREP "free" >/dev/null 2>&1; then :
11907 else
11908 ac_cv_header_stdc=no
11910 rm -f conftest*
11914 if test $ac_cv_header_stdc = yes; then
11915 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11916 if test "$cross_compiling" = yes; then :
11918 else
11919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11920 /* end confdefs.h. */
11921 #include <ctype.h>
11922 #include <stdlib.h>
11923 #if ((' ' & 0x0FF) == 0x020)
11924 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11925 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11926 #else
11927 # define ISLOWER(c) \
11928 (('a' <= (c) && (c) <= 'i') \
11929 || ('j' <= (c) && (c) <= 'r') \
11930 || ('s' <= (c) && (c) <= 'z'))
11931 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11932 #endif
11934 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11936 main ()
11938 int i;
11939 for (i = 0; i < 256; i++)
11940 if (XOR (islower (i), ISLOWER (i))
11941 || toupper (i) != TOUPPER (i))
11942 return 2;
11943 return 0;
11945 _ACEOF
11946 if ac_fn_c_try_run "$LINENO"; then :
11948 else
11949 ac_cv_header_stdc=no
11951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11952 conftest.$ac_objext conftest.beam conftest.$ac_ext
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11958 $as_echo "$ac_cv_header_stdc" >&6; }
11959 if test $ac_cv_header_stdc = yes; then
11961 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11965 for ac_func in memcpy
11966 do :
11967 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
11968 if test "x$ac_cv_func_memcpy" = x""yes; then :
11969 cat >>confdefs.h <<_ACEOF
11970 #define HAVE_MEMCPY 1
11971 _ACEOF
11974 done
11976 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11977 # for constant arguments. Useless!
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11979 $as_echo_n "checking for working alloca.h... " >&6; }
11980 if test "${ac_cv_working_alloca_h+set}" = set; then :
11981 $as_echo_n "(cached) " >&6
11982 else
11983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11984 /* end confdefs.h. */
11985 #include <alloca.h>
11987 main ()
11989 char *p = (char *) alloca (2 * sizeof (int));
11990 if (p) return 0;
11992 return 0;
11994 _ACEOF
11995 if ac_fn_c_try_link "$LINENO"; then :
11996 ac_cv_working_alloca_h=yes
11997 else
11998 ac_cv_working_alloca_h=no
12000 rm -f core conftest.err conftest.$ac_objext \
12001 conftest$ac_exeext conftest.$ac_ext
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12004 $as_echo "$ac_cv_working_alloca_h" >&6; }
12005 if test $ac_cv_working_alloca_h = yes; then
12007 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12012 $as_echo_n "checking for alloca... " >&6; }
12013 if test "${ac_cv_func_alloca_works+set}" = set; then :
12014 $as_echo_n "(cached) " >&6
12015 else
12016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12017 /* end confdefs.h. */
12018 #ifdef __GNUC__
12019 # define alloca __builtin_alloca
12020 #else
12021 # ifdef _MSC_VER
12022 # include <malloc.h>
12023 # define alloca _alloca
12024 # else
12025 # ifdef HAVE_ALLOCA_H
12026 # include <alloca.h>
12027 # else
12028 # ifdef _AIX
12029 #pragma alloca
12030 # else
12031 # ifndef alloca /* predefined by HP cc +Olibcalls */
12032 char *alloca ();
12033 # endif
12034 # endif
12035 # endif
12036 # endif
12037 #endif
12040 main ()
12042 char *p = (char *) alloca (1);
12043 if (p) return 0;
12045 return 0;
12047 _ACEOF
12048 if ac_fn_c_try_link "$LINENO"; then :
12049 ac_cv_func_alloca_works=yes
12050 else
12051 ac_cv_func_alloca_works=no
12053 rm -f core conftest.err conftest.$ac_objext \
12054 conftest$ac_exeext conftest.$ac_ext
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12057 $as_echo "$ac_cv_func_alloca_works" >&6; }
12059 if test $ac_cv_func_alloca_works = yes; then
12061 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12063 else
12064 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12065 # that cause trouble. Some versions do not even contain alloca or
12066 # contain a buggy version. If you still want to use their alloca,
12067 # use ar to extract alloca.o from them instead of compiling alloca.c.
12069 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12071 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12075 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12076 if test "${ac_cv_os_cray+set}" = set; then :
12077 $as_echo_n "(cached) " >&6
12078 else
12079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12080 /* end confdefs.h. */
12081 #if defined CRAY && ! defined CRAY2
12082 webecray
12083 #else
12084 wenotbecray
12085 #endif
12087 _ACEOF
12088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12089 $EGREP "webecray" >/dev/null 2>&1; then :
12090 ac_cv_os_cray=yes
12091 else
12092 ac_cv_os_cray=no
12094 rm -f conftest*
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12098 $as_echo "$ac_cv_os_cray" >&6; }
12099 if test $ac_cv_os_cray = yes; then
12100 for ac_func in _getb67 GETB67 getb67; do
12101 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12102 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12103 eval as_val=\$$as_ac_var
12104 if test "x$as_val" = x""yes; then :
12106 cat >>confdefs.h <<_ACEOF
12107 #define CRAY_STACKSEG_END $ac_func
12108 _ACEOF
12110 break
12113 done
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12117 $as_echo_n "checking stack direction for C alloca... " >&6; }
12118 if test "${ac_cv_c_stack_direction+set}" = set; then :
12119 $as_echo_n "(cached) " >&6
12120 else
12121 if test "$cross_compiling" = yes; then :
12122 ac_cv_c_stack_direction=0
12123 else
12124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12125 /* end confdefs.h. */
12126 $ac_includes_default
12128 find_stack_direction ()
12130 static char *addr = 0;
12131 auto char dummy;
12132 if (addr == 0)
12134 addr = &dummy;
12135 return find_stack_direction ();
12137 else
12138 return (&dummy > addr) ? 1 : -1;
12142 main ()
12144 return find_stack_direction () < 0;
12146 _ACEOF
12147 if ac_fn_c_try_run "$LINENO"; then :
12148 ac_cv_c_stack_direction=1
12149 else
12150 ac_cv_c_stack_direction=-1
12152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12153 conftest.$ac_objext conftest.beam conftest.$ac_ext
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12158 $as_echo "$ac_cv_c_stack_direction" >&6; }
12159 cat >>confdefs.h <<_ACEOF
12160 #define STACK_DIRECTION $ac_cv_c_stack_direction
12161 _ACEOF
12167 # The cast to long int works around a bug in the HP C Compiler
12168 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12169 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12170 # This bug is HP SR number 8606223364.
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
12172 $as_echo_n "checking size of double... " >&6; }
12173 if test "${ac_cv_sizeof_double+set}" = set; then :
12174 $as_echo_n "(cached) " >&6
12175 else
12176 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
12178 else
12179 if test "$ac_cv_type_double" = yes; then
12180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12182 { as_fn_set_status 77
12183 as_fn_error "cannot compute sizeof (double)
12184 See \`config.log' for more details." "$LINENO" 5; }; }
12185 else
12186 ac_cv_sizeof_double=0
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
12192 $as_echo "$ac_cv_sizeof_double" >&6; }
12196 cat >>confdefs.h <<_ACEOF
12197 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
12198 _ACEOF
12201 # The cast to long int works around a bug in the HP C Compiler
12202 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12203 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12204 # This bug is HP SR number 8606223364.
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
12206 $as_echo_n "checking size of long double... " >&6; }
12207 if test "${ac_cv_sizeof_long_double+set}" = set; then :
12208 $as_echo_n "(cached) " >&6
12209 else
12210 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
12212 else
12213 if test "$ac_cv_type_long_double" = yes; then
12214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12216 { as_fn_set_status 77
12217 as_fn_error "cannot compute sizeof (long double)
12218 See \`config.log' for more details." "$LINENO" 5; }; }
12219 else
12220 ac_cv_sizeof_long_double=0
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
12226 $as_echo "$ac_cv_sizeof_long_double" >&6; }
12230 cat >>confdefs.h <<_ACEOF
12231 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12232 _ACEOF
12236 # Also AC_SUBST this variable for ffi.h.
12237 if test -z "$HAVE_LONG_DOUBLE"; then
12238 HAVE_LONG_DOUBLE=0
12239 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
12240 if test $ac_cv_sizeof_long_double != 0; then
12241 HAVE_LONG_DOUBLE=1
12243 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12251 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12252 if test "${ac_cv_c_bigendian+set}" = set; then :
12253 $as_echo_n "(cached) " >&6
12254 else
12255 ac_cv_c_bigendian=unknown
12256 # See if we're dealing with a universal compiler.
12257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12258 /* end confdefs.h. */
12259 #ifndef __APPLE_CC__
12260 not a universal capable compiler
12261 #endif
12262 typedef int dummy;
12264 _ACEOF
12265 if ac_fn_c_try_compile "$LINENO"; then :
12267 # Check for potential -arch flags. It is not universal unless
12268 # there are at least two -arch flags with different values.
12269 ac_arch=
12270 ac_prev=
12271 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12272 if test -n "$ac_prev"; then
12273 case $ac_word in
12274 i?86 | x86_64 | ppc | ppc64)
12275 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12276 ac_arch=$ac_word
12277 else
12278 ac_cv_c_bigendian=universal
12279 break
12282 esac
12283 ac_prev=
12284 elif test "x$ac_word" = "x-arch"; then
12285 ac_prev=arch
12287 done
12289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12290 if test $ac_cv_c_bigendian = unknown; then
12291 # See if sys/param.h defines the BYTE_ORDER macro.
12292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12293 /* end confdefs.h. */
12294 #include <sys/types.h>
12295 #include <sys/param.h>
12298 main ()
12300 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12301 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12302 && LITTLE_ENDIAN)
12303 bogus endian macros
12304 #endif
12307 return 0;
12309 _ACEOF
12310 if ac_fn_c_try_compile "$LINENO"; then :
12311 # It does; now see whether it defined to BIG_ENDIAN or not.
12312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12313 /* end confdefs.h. */
12314 #include <sys/types.h>
12315 #include <sys/param.h>
12318 main ()
12320 #if BYTE_ORDER != BIG_ENDIAN
12321 not big endian
12322 #endif
12325 return 0;
12327 _ACEOF
12328 if ac_fn_c_try_compile "$LINENO"; then :
12329 ac_cv_c_bigendian=yes
12330 else
12331 ac_cv_c_bigendian=no
12333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12337 if test $ac_cv_c_bigendian = unknown; then
12338 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12340 /* end confdefs.h. */
12341 #include <limits.h>
12344 main ()
12346 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12347 bogus endian macros
12348 #endif
12351 return 0;
12353 _ACEOF
12354 if ac_fn_c_try_compile "$LINENO"; then :
12355 # It does; now see whether it defined to _BIG_ENDIAN or not.
12356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12357 /* end confdefs.h. */
12358 #include <limits.h>
12361 main ()
12363 #ifndef _BIG_ENDIAN
12364 not big endian
12365 #endif
12368 return 0;
12370 _ACEOF
12371 if ac_fn_c_try_compile "$LINENO"; then :
12372 ac_cv_c_bigendian=yes
12373 else
12374 ac_cv_c_bigendian=no
12376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12380 if test $ac_cv_c_bigendian = unknown; then
12381 # Compile a test program.
12382 if test "$cross_compiling" = yes; then :
12383 # Try to guess by grepping values from an object file.
12384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12385 /* end confdefs.h. */
12386 short int ascii_mm[] =
12387 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12388 short int ascii_ii[] =
12389 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12390 int use_ascii (int i) {
12391 return ascii_mm[i] + ascii_ii[i];
12393 short int ebcdic_ii[] =
12394 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12395 short int ebcdic_mm[] =
12396 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12397 int use_ebcdic (int i) {
12398 return ebcdic_mm[i] + ebcdic_ii[i];
12400 extern int foo;
12403 main ()
12405 return use_ascii (foo) == use_ebcdic (foo);
12407 return 0;
12409 _ACEOF
12410 if ac_fn_c_try_compile "$LINENO"; then :
12411 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12412 ac_cv_c_bigendian=yes
12414 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12415 if test "$ac_cv_c_bigendian" = unknown; then
12416 ac_cv_c_bigendian=no
12417 else
12418 # finding both strings is unlikely to happen, but who knows?
12419 ac_cv_c_bigendian=unknown
12423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12424 else
12425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12426 /* end confdefs.h. */
12427 $ac_includes_default
12429 main ()
12432 /* Are we little or big endian? From Harbison&Steele. */
12433 union
12435 long int l;
12436 char c[sizeof (long int)];
12437 } u;
12438 u.l = 1;
12439 return u.c[sizeof (long int) - 1] == 1;
12442 return 0;
12444 _ACEOF
12445 if ac_fn_c_try_run "$LINENO"; then :
12446 ac_cv_c_bigendian=no
12447 else
12448 ac_cv_c_bigendian=yes
12450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12451 conftest.$ac_objext conftest.beam conftest.$ac_ext
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12457 $as_echo "$ac_cv_c_bigendian" >&6; }
12458 case $ac_cv_c_bigendian in #(
12459 yes)
12460 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12461 ;; #(
12463 ;; #(
12464 universal)
12466 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12468 ;; #(
12470 as_fn_error "unknown endianness
12471 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12472 esac
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
12476 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
12477 if test "${gcc_cv_as_cfi_pseudo_op+set}" = set; then :
12478 $as_echo_n "(cached) " >&6
12479 else
12481 gcc_cv_as_cfi_pseudo_op=unknown
12482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12483 /* end confdefs.h. */
12484 asm (".cfi_startproc\n\t.cfi_endproc");
12486 main ()
12490 return 0;
12492 _ACEOF
12493 if ac_fn_c_try_compile "$LINENO"; then :
12494 gcc_cv_as_cfi_pseudo_op=yes
12495 else
12496 gcc_cv_as_cfi_pseudo_op=no
12498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
12502 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
12503 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
12505 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
12510 if test x$TARGET = xSPARC; then
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
12512 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
12513 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then :
12514 $as_echo_n "(cached) " >&6
12515 else
12517 save_CFLAGS="$CFLAGS"
12518 save_LDFLAGS="$LDFLAGS"
12519 CFLAGS="$CFLAGS -fpic"
12520 LDFLAGS="$LDFLAGS -shared"
12521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12522 /* end confdefs.h. */
12523 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
12525 main ()
12529 return 0;
12531 _ACEOF
12532 if ac_fn_c_try_link "$LINENO"; then :
12533 libffi_cv_as_sparc_ua_pcrel=yes
12534 else
12535 libffi_cv_as_sparc_ua_pcrel=no
12537 rm -f core conftest.err conftest.$ac_objext \
12538 conftest$ac_exeext conftest.$ac_ext
12539 CFLAGS="$save_CFLAGS"
12540 LDFLAGS="$save_LDFLAGS"
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
12543 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
12544 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
12546 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
12551 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
12552 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then :
12553 $as_echo_n "(cached) " >&6
12554 else
12556 libffi_cv_as_register_pseudo_op=unknown
12557 # Check if we have .register
12558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12559 /* end confdefs.h. */
12560 asm (".register %g2, #scratch");
12562 main ()
12566 return 0;
12568 _ACEOF
12569 if ac_fn_c_try_compile "$LINENO"; then :
12570 libffi_cv_as_register_pseudo_op=yes
12571 else
12572 libffi_cv_as_register_pseudo_op=no
12574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
12578 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
12579 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
12581 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
12586 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
12588 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
12589 if test "${libffi_cv_as_x86_pcrel+set}" = set; then :
12590 $as_echo_n "(cached) " >&6
12591 else
12593 libffi_cv_as_x86_pcrel=yes
12594 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
12595 if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
12596 libffi_cv_as_x86_pcrel=no
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
12601 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
12602 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
12604 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
12609 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
12610 if test "${libffi_cv_as_ascii_pseudo_op+set}" = set; then :
12611 $as_echo_n "(cached) " >&6
12612 else
12614 libffi_cv_as_ascii_pseudo_op=unknown
12615 # Check if we have .ascii
12616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12617 /* end confdefs.h. */
12618 asm (".ascii \\"string\\"");
12620 main ()
12624 return 0;
12626 _ACEOF
12627 if ac_fn_c_try_compile "$LINENO"; then :
12628 libffi_cv_as_ascii_pseudo_op=yes
12629 else
12630 libffi_cv_as_ascii_pseudo_op=no
12632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
12636 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
12637 if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
12639 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
12644 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
12645 if test "${libffi_cv_as_string_pseudo_op+set}" = set; then :
12646 $as_echo_n "(cached) " >&6
12647 else
12649 libffi_cv_as_string_pseudo_op=unknown
12650 # Check if we have .string
12651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12652 /* end confdefs.h. */
12653 asm (".string \\"string\\"");
12655 main ()
12659 return 0;
12661 _ACEOF
12662 if ac_fn_c_try_compile "$LINENO"; then :
12663 libffi_cv_as_string_pseudo_op=yes
12664 else
12665 libffi_cv_as_string_pseudo_op=no
12667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
12671 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
12672 if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
12674 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
12679 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
12680 # Check whether --enable-pax_emutramp was given.
12681 if test "${enable_pax_emutramp+set}" = set; then :
12682 enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
12684 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
12690 FFI_EXEC_TRAMPOLINE_TABLE=0
12691 case "$target" in
12692 *arm*-apple-darwin*)
12693 FFI_EXEC_TRAMPOLINE_TABLE=1
12695 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
12698 *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
12700 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
12703 esac
12704 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
12705 FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
12706 FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
12707 else
12708 FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
12709 FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
12714 if test x$TARGET = xX86_64; then
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
12716 $as_echo_n "checking assembler supports unwind section type... " >&6; }
12717 if test "${libffi_cv_as_x86_64_unwind_section_type+set}" = set; then :
12718 $as_echo_n "(cached) " >&6
12719 else
12721 libffi_cv_as_x86_64_unwind_section_type=yes
12722 echo '.section .eh_frame,"a",@unwind' > conftest.s
12723 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
12724 libffi_cv_as_x86_64_unwind_section_type=no
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
12729 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
12730 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
12732 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
12737 if test "x$GCC" = "xyes"; then
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
12739 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
12740 if test "${libffi_cv_ro_eh_frame+set}" = set; then :
12741 $as_echo_n "(cached) " >&6
12742 else
12744 libffi_cv_ro_eh_frame=no
12745 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
12746 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
12747 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
12748 libffi_cv_ro_eh_frame=yes
12749 elif grep '.section.*eh_frame.*#alloc' conftest.c \
12750 | grep -v '#write' > /dev/null; then
12751 libffi_cv_ro_eh_frame=yes
12754 rm -f conftest.*
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
12758 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
12759 if test "x$libffi_cv_ro_eh_frame" = xyes; then
12761 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
12764 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
12766 else
12768 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
12773 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
12774 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then :
12775 $as_echo_n "(cached) " >&6
12776 else
12778 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
12779 libffi_cv_hidden_visibility_attribute=no
12780 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
12781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12782 (eval $ac_try) 2>&5
12783 ac_status=$?
12784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12785 test $ac_status = 0; }; }; then
12786 if grep '\.hidden.*foo' conftest.s >/dev/null; then
12787 libffi_cv_hidden_visibility_attribute=yes
12790 rm -f conftest.*
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
12794 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
12795 if test $libffi_cv_hidden_visibility_attribute = yes; then
12797 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
12809 # Check whether --enable-debug was given.
12810 if test "${enable_debug+set}" = set; then :
12811 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
12813 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
12818 if test "$enable_debug" = "yes"; then
12819 FFI_DEBUG_TRUE=
12820 FFI_DEBUG_FALSE='#'
12821 else
12822 FFI_DEBUG_TRUE='#'
12823 FFI_DEBUG_FALSE=
12827 # Check whether --enable-structs was given.
12828 if test "${enable_structs+set}" = set; then :
12829 enableval=$enable_structs; if test "$enable_structs" = "no"; then
12831 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
12837 # Check whether --enable-raw-api was given.
12838 if test "${enable_raw_api+set}" = set; then :
12839 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
12841 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
12847 # Check whether --enable-purify-safety was given.
12848 if test "${enable_purify_safety+set}" = set; then :
12849 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
12851 $as_echo "#define USING_PURIFY 1" >>confdefs.h
12857 if test -n "$with_cross_host" &&
12858 test x"$with_cross_host" != x"no"; then
12859 toolexecdir='$(exec_prefix)/$(target_alias)'
12860 toolexeclibdir='$(toolexecdir)/lib'
12861 else
12862 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
12863 toolexeclibdir='$(libdir)'
12865 multi_os_directory=`$CC -print-multi-os-directory`
12866 case $multi_os_directory in
12867 .) ;; # Avoid trailing /.
12868 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
12869 esac
12873 if test "${multilib}" = "yes"; then
12874 multilib_arg="--enable-multilib"
12875 else
12876 multilib_arg=
12879 ac_config_commands="$ac_config_commands include"
12881 ac_config_commands="$ac_config_commands src"
12884 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
12887 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile"
12890 cat >confcache <<\_ACEOF
12891 # This file is a shell script that caches the results of configure
12892 # tests run on this system so they can be shared between configure
12893 # scripts and configure runs, see configure's option --config-cache.
12894 # It is not useful on other systems. If it contains results you don't
12895 # want to keep, you may remove or edit it.
12897 # config.status only pays attention to the cache file if you give it
12898 # the --recheck option to rerun configure.
12900 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12901 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12902 # following values.
12904 _ACEOF
12906 # The following way of writing the cache mishandles newlines in values,
12907 # but we know of no workaround that is simple, portable, and efficient.
12908 # So, we kill variables containing newlines.
12909 # Ultrix sh set writes to stderr and can't be redirected directly,
12910 # and sets the high bit in the cache file unless we assign to the vars.
12912 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12913 eval ac_val=\$$ac_var
12914 case $ac_val in #(
12915 *${as_nl}*)
12916 case $ac_var in #(
12917 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12918 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12919 esac
12920 case $ac_var in #(
12921 _ | IFS | as_nl) ;; #(
12922 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12923 *) { eval $ac_var=; unset $ac_var;} ;;
12924 esac ;;
12925 esac
12926 done
12928 (set) 2>&1 |
12929 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12930 *${as_nl}ac_space=\ *)
12931 # `set' does not quote correctly, so add quotes: double-quote
12932 # substitution turns \\\\ into \\, and sed turns \\ into \.
12933 sed -n \
12934 "s/'/'\\\\''/g;
12935 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12936 ;; #(
12938 # `set' quotes correctly as required by POSIX, so do not add quotes.
12939 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12941 esac |
12942 sort
12944 sed '
12945 /^ac_cv_env_/b end
12946 t clear
12947 :clear
12948 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12949 t end
12950 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12951 :end' >>confcache
12952 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12953 if test -w "$cache_file"; then
12954 test "x$cache_file" != "x/dev/null" &&
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12956 $as_echo "$as_me: updating cache $cache_file" >&6;}
12957 cat confcache >$cache_file
12958 else
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12960 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12963 rm -f confcache
12965 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12966 # Let make expand exec_prefix.
12967 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12969 DEFS=-DHAVE_CONFIG_H
12971 ac_libobjs=
12972 ac_ltlibobjs=
12973 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12974 # 1. Remove the extension, and $U if already installed.
12975 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12976 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12977 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12978 # will be set to the directory where LIBOBJS objects are built.
12979 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12980 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12981 done
12982 LIBOBJS=$ac_libobjs
12984 LTLIBOBJS=$ac_ltlibobjs
12987 if test -n "$EXEEXT"; then
12988 am__EXEEXT_TRUE=
12989 am__EXEEXT_FALSE='#'
12990 else
12991 am__EXEEXT_TRUE='#'
12992 am__EXEEXT_FALSE=
12995 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
12996 as_fn_error "conditional \"BUILD_INFO\" was never defined.
12997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12999 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
13000 as_fn_error "conditional \"GENINSRC\" was never defined.
13001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13003 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13004 as_fn_error "conditional \"AMDEP\" was never defined.
13005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13007 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13008 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13011 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
13012 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
13013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13015 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13016 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13019 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
13020 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
13021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13023 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
13024 as_fn_error "conditional \"MIPS\" was never defined.
13025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13027 if test -z "${BFIN_TRUE}" && test -z "${BFIN_FALSE}"; then
13028 as_fn_error "conditional \"BFIN\" was never defined.
13029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13031 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
13032 as_fn_error "conditional \"SPARC\" was never defined.
13033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13035 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
13036 as_fn_error "conditional \"X86\" was never defined.
13037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13039 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
13040 as_fn_error "conditional \"X86_FREEBSD\" was never defined.
13041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13043 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
13044 as_fn_error "conditional \"X86_WIN32\" was never defined.
13045 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13047 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
13048 as_fn_error "conditional \"X86_WIN64\" was never defined.
13049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13051 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
13052 as_fn_error "conditional \"X86_DARWIN\" was never defined.
13053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13055 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
13056 as_fn_error "conditional \"ALPHA\" was never defined.
13057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13059 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
13060 as_fn_error "conditional \"IA64\" was never defined.
13061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13063 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
13064 as_fn_error "conditional \"M32R\" was never defined.
13065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13067 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
13068 as_fn_error "conditional \"M68K\" was never defined.
13069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13071 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
13072 as_fn_error "conditional \"POWERPC\" was never defined.
13073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13075 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
13076 as_fn_error "conditional \"POWERPC_AIX\" was never defined.
13077 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13079 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
13080 as_fn_error "conditional \"POWERPC_DARWIN\" was never defined.
13081 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13083 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
13084 as_fn_error "conditional \"POWERPC_FREEBSD\" was never defined.
13085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13087 if test -z "${AARCH64_TRUE}" && test -z "${AARCH64_FALSE}"; then
13088 as_fn_error "conditional \"AARCH64\" was never defined.
13089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13091 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
13092 as_fn_error "conditional \"ARM\" was never defined.
13093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13095 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
13096 as_fn_error "conditional \"AVR32\" was never defined.
13097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13099 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
13100 as_fn_error "conditional \"LIBFFI_CRIS\" was never defined.
13101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13103 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
13104 as_fn_error "conditional \"FRV\" was never defined.
13105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13107 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
13108 as_fn_error "conditional \"S390\" was never defined.
13109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13111 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
13112 as_fn_error "conditional \"X86_64\" was never defined.
13113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13115 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
13116 as_fn_error "conditional \"SH\" was never defined.
13117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13119 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
13120 as_fn_error "conditional \"SH64\" was never defined.
13121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13123 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
13124 as_fn_error "conditional \"PA_LINUX\" was never defined.
13125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13127 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
13128 as_fn_error "conditional \"PA_HPUX\" was never defined.
13129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13131 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
13132 as_fn_error "conditional \"PA64_HPUX\" was never defined.
13133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13135 if test -z "${TILE_TRUE}" && test -z "${TILE_FALSE}"; then
13136 as_fn_error "conditional \"TILE\" was never defined.
13137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13140 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
13141 as_fn_error "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
13142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13144 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
13145 as_fn_error "conditional \"FFI_DEBUG\" was never defined.
13146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13149 : ${CONFIG_STATUS=./config.status}
13150 ac_write_fail=0
13151 ac_clean_files_save=$ac_clean_files
13152 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13154 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13155 as_write_fail=0
13156 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13157 #! $SHELL
13158 # Generated by $as_me.
13159 # Run this file to recreate the current configuration.
13160 # Compiler output produced by configure, useful for debugging
13161 # configure, is in config.log if it exists.
13163 debug=false
13164 ac_cs_recheck=false
13165 ac_cs_silent=false
13167 SHELL=\${CONFIG_SHELL-$SHELL}
13168 export SHELL
13169 _ASEOF
13170 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13171 ## -------------------- ##
13172 ## M4sh Initialization. ##
13173 ## -------------------- ##
13175 # Be more Bourne compatible
13176 DUALCASE=1; export DUALCASE # for MKS sh
13177 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13178 emulate sh
13179 NULLCMD=:
13180 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13181 # is contrary to our usage. Disable this feature.
13182 alias -g '${1+"$@"}'='"$@"'
13183 setopt NO_GLOB_SUBST
13184 else
13185 case `(set -o) 2>/dev/null` in #(
13186 *posix*) :
13187 set -o posix ;; #(
13188 *) :
13190 esac
13194 as_nl='
13196 export as_nl
13197 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13198 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13199 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13200 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13201 # Prefer a ksh shell builtin over an external printf program on Solaris,
13202 # but without wasting forks for bash or zsh.
13203 if test -z "$BASH_VERSION$ZSH_VERSION" \
13204 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13205 as_echo='print -r --'
13206 as_echo_n='print -rn --'
13207 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13208 as_echo='printf %s\n'
13209 as_echo_n='printf %s'
13210 else
13211 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13212 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13213 as_echo_n='/usr/ucb/echo -n'
13214 else
13215 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13216 as_echo_n_body='eval
13217 arg=$1;
13218 case $arg in #(
13219 *"$as_nl"*)
13220 expr "X$arg" : "X\\(.*\\)$as_nl";
13221 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13222 esac;
13223 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13225 export as_echo_n_body
13226 as_echo_n='sh -c $as_echo_n_body as_echo'
13228 export as_echo_body
13229 as_echo='sh -c $as_echo_body as_echo'
13232 # The user is always right.
13233 if test "${PATH_SEPARATOR+set}" != set; then
13234 PATH_SEPARATOR=:
13235 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13236 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13237 PATH_SEPARATOR=';'
13242 # IFS
13243 # We need space, tab and new line, in precisely that order. Quoting is
13244 # there to prevent editors from complaining about space-tab.
13245 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13246 # splitting by setting IFS to empty value.)
13247 IFS=" "" $as_nl"
13249 # Find who we are. Look in the path if we contain no directory separator.
13250 case $0 in #((
13251 *[\\/]* ) as_myself=$0 ;;
13252 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13253 for as_dir in $PATH
13255 IFS=$as_save_IFS
13256 test -z "$as_dir" && as_dir=.
13257 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13258 done
13259 IFS=$as_save_IFS
13262 esac
13263 # We did not find ourselves, most probably we were run as `sh COMMAND'
13264 # in which case we are not to be found in the path.
13265 if test "x$as_myself" = x; then
13266 as_myself=$0
13268 if test ! -f "$as_myself"; then
13269 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13270 exit 1
13273 # Unset variables that we do not need and which cause bugs (e.g. in
13274 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13275 # suppresses any "Segmentation fault" message there. '((' could
13276 # trigger a bug in pdksh 5.2.14.
13277 for as_var in BASH_ENV ENV MAIL MAILPATH
13278 do eval test x\${$as_var+set} = xset \
13279 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13280 done
13281 PS1='$ '
13282 PS2='> '
13283 PS4='+ '
13285 # NLS nuisances.
13286 LC_ALL=C
13287 export LC_ALL
13288 LANGUAGE=C
13289 export LANGUAGE
13291 # CDPATH.
13292 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13295 # as_fn_error ERROR [LINENO LOG_FD]
13296 # ---------------------------------
13297 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13298 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13299 # script with status $?, using 1 if that was 0.
13300 as_fn_error ()
13302 as_status=$?; test $as_status -eq 0 && as_status=1
13303 if test "$3"; then
13304 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13305 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13307 $as_echo "$as_me: error: $1" >&2
13308 as_fn_exit $as_status
13309 } # as_fn_error
13312 # as_fn_set_status STATUS
13313 # -----------------------
13314 # Set $? to STATUS, without forking.
13315 as_fn_set_status ()
13317 return $1
13318 } # as_fn_set_status
13320 # as_fn_exit STATUS
13321 # -----------------
13322 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13323 as_fn_exit ()
13325 set +e
13326 as_fn_set_status $1
13327 exit $1
13328 } # as_fn_exit
13330 # as_fn_unset VAR
13331 # ---------------
13332 # Portably unset VAR.
13333 as_fn_unset ()
13335 { eval $1=; unset $1;}
13337 as_unset=as_fn_unset
13338 # as_fn_append VAR VALUE
13339 # ----------------------
13340 # Append the text in VALUE to the end of the definition contained in VAR. Take
13341 # advantage of any shell optimizations that allow amortized linear growth over
13342 # repeated appends, instead of the typical quadratic growth present in naive
13343 # implementations.
13344 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13345 eval 'as_fn_append ()
13347 eval $1+=\$2
13349 else
13350 as_fn_append ()
13352 eval $1=\$$1\$2
13354 fi # as_fn_append
13356 # as_fn_arith ARG...
13357 # ------------------
13358 # Perform arithmetic evaluation on the ARGs, and store the result in the
13359 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13360 # must be portable across $(()) and expr.
13361 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13362 eval 'as_fn_arith ()
13364 as_val=$(( $* ))
13366 else
13367 as_fn_arith ()
13369 as_val=`expr "$@" || test $? -eq 1`
13371 fi # as_fn_arith
13374 if expr a : '\(a\)' >/dev/null 2>&1 &&
13375 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13376 as_expr=expr
13377 else
13378 as_expr=false
13381 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13382 as_basename=basename
13383 else
13384 as_basename=false
13387 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13388 as_dirname=dirname
13389 else
13390 as_dirname=false
13393 as_me=`$as_basename -- "$0" ||
13394 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13395 X"$0" : 'X\(//\)$' \| \
13396 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13397 $as_echo X/"$0" |
13398 sed '/^.*\/\([^/][^/]*\)\/*$/{
13399 s//\1/
13402 /^X\/\(\/\/\)$/{
13403 s//\1/
13406 /^X\/\(\/\).*/{
13407 s//\1/
13410 s/.*/./; q'`
13412 # Avoid depending upon Character Ranges.
13413 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13414 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13415 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13416 as_cr_digits='0123456789'
13417 as_cr_alnum=$as_cr_Letters$as_cr_digits
13419 ECHO_C= ECHO_N= ECHO_T=
13420 case `echo -n x` in #(((((
13421 -n*)
13422 case `echo 'xy\c'` in
13423 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13424 xy) ECHO_C='\c';;
13425 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13426 ECHO_T=' ';;
13427 esac;;
13429 ECHO_N='-n';;
13430 esac
13432 rm -f conf$$ conf$$.exe conf$$.file
13433 if test -d conf$$.dir; then
13434 rm -f conf$$.dir/conf$$.file
13435 else
13436 rm -f conf$$.dir
13437 mkdir conf$$.dir 2>/dev/null
13439 if (echo >conf$$.file) 2>/dev/null; then
13440 if ln -s conf$$.file conf$$ 2>/dev/null; then
13441 as_ln_s='ln -s'
13442 # ... but there are two gotchas:
13443 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13444 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13445 # In both cases, we have to default to `cp -p'.
13446 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13447 as_ln_s='cp -p'
13448 elif ln conf$$.file conf$$ 2>/dev/null; then
13449 as_ln_s=ln
13450 else
13451 as_ln_s='cp -p'
13453 else
13454 as_ln_s='cp -p'
13456 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13457 rmdir conf$$.dir 2>/dev/null
13460 # as_fn_mkdir_p
13461 # -------------
13462 # Create "$as_dir" as a directory, including parents if necessary.
13463 as_fn_mkdir_p ()
13466 case $as_dir in #(
13467 -*) as_dir=./$as_dir;;
13468 esac
13469 test -d "$as_dir" || eval $as_mkdir_p || {
13470 as_dirs=
13471 while :; do
13472 case $as_dir in #(
13473 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13474 *) as_qdir=$as_dir;;
13475 esac
13476 as_dirs="'$as_qdir' $as_dirs"
13477 as_dir=`$as_dirname -- "$as_dir" ||
13478 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13479 X"$as_dir" : 'X\(//\)[^/]' \| \
13480 X"$as_dir" : 'X\(//\)$' \| \
13481 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13482 $as_echo X"$as_dir" |
13483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13484 s//\1/
13487 /^X\(\/\/\)[^/].*/{
13488 s//\1/
13491 /^X\(\/\/\)$/{
13492 s//\1/
13495 /^X\(\/\).*/{
13496 s//\1/
13499 s/.*/./; q'`
13500 test -d "$as_dir" && break
13501 done
13502 test -z "$as_dirs" || eval "mkdir $as_dirs"
13503 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13506 } # as_fn_mkdir_p
13507 if mkdir -p . 2>/dev/null; then
13508 as_mkdir_p='mkdir -p "$as_dir"'
13509 else
13510 test -d ./-p && rmdir ./-p
13511 as_mkdir_p=false
13514 if test -x / >/dev/null 2>&1; then
13515 as_test_x='test -x'
13516 else
13517 if ls -dL / >/dev/null 2>&1; then
13518 as_ls_L_option=L
13519 else
13520 as_ls_L_option=
13522 as_test_x='
13523 eval sh -c '\''
13524 if test -d "$1"; then
13525 test -d "$1/.";
13526 else
13527 case $1 in #(
13528 -*)set "./$1";;
13529 esac;
13530 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13531 ???[sx]*):;;*)false;;esac;fi
13532 '\'' sh
13535 as_executable_p=$as_test_x
13537 # Sed expression to map a string onto a valid CPP name.
13538 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13540 # Sed expression to map a string onto a valid variable name.
13541 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13544 exec 6>&1
13545 ## ----------------------------------- ##
13546 ## Main body of $CONFIG_STATUS script. ##
13547 ## ----------------------------------- ##
13548 _ASEOF
13549 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13552 # Save the log message, to keep $0 and so on meaningful, and to
13553 # report actual input values of CONFIG_FILES etc. instead of their
13554 # values after options handling.
13555 ac_log="
13556 This file was extended by libffi $as_me 3.0.11, which was
13557 generated by GNU Autoconf 2.64. Invocation command line was
13559 CONFIG_FILES = $CONFIG_FILES
13560 CONFIG_HEADERS = $CONFIG_HEADERS
13561 CONFIG_LINKS = $CONFIG_LINKS
13562 CONFIG_COMMANDS = $CONFIG_COMMANDS
13563 $ $0 $@
13565 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13568 _ACEOF
13570 case $ac_config_files in *"
13571 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13572 esac
13574 case $ac_config_headers in *"
13575 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13576 esac
13579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13580 # Files that config.status was made for.
13581 config_files="$ac_config_files"
13582 config_headers="$ac_config_headers"
13583 config_links="$ac_config_links"
13584 config_commands="$ac_config_commands"
13586 _ACEOF
13588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13589 ac_cs_usage="\
13590 \`$as_me' instantiates files and other configuration actions
13591 from templates according to the current configuration. Unless the files
13592 and actions are specified as TAGs, all are instantiated by default.
13594 Usage: $0 [OPTION]... [TAG]...
13596 -h, --help print this help, then exit
13597 -V, --version print version number and configuration settings, then exit
13598 -q, --quiet, --silent
13599 do not print progress messages
13600 -d, --debug don't remove temporary files
13601 --recheck update $as_me by reconfiguring in the same conditions
13602 --file=FILE[:TEMPLATE]
13603 instantiate the configuration file FILE
13604 --header=FILE[:TEMPLATE]
13605 instantiate the configuration header FILE
13607 Configuration files:
13608 $config_files
13610 Configuration headers:
13611 $config_headers
13613 Configuration links:
13614 $config_links
13616 Configuration commands:
13617 $config_commands
13619 Report bugs to <http://gcc.gnu.org/bugs.html>."
13621 _ACEOF
13622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13623 ac_cs_version="\\
13624 libffi config.status 3.0.11
13625 configured by $0, generated by GNU Autoconf 2.64,
13626 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13628 Copyright (C) 2009 Free Software Foundation, Inc.
13629 This config.status script is free software; the Free Software Foundation
13630 gives unlimited permission to copy, distribute and modify it."
13632 ac_pwd='$ac_pwd'
13633 srcdir='$srcdir'
13634 INSTALL='$INSTALL'
13635 MKDIR_P='$MKDIR_P'
13636 AWK='$AWK'
13637 test -n "\$AWK" || AWK=awk
13638 _ACEOF
13640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13641 # The default lists apply if the user does not specify any file.
13642 ac_need_defaults=:
13643 while test $# != 0
13645 case $1 in
13646 --*=*)
13647 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13648 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13649 ac_shift=:
13652 ac_option=$1
13653 ac_optarg=$2
13654 ac_shift=shift
13656 esac
13658 case $ac_option in
13659 # Handling of the options.
13660 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13661 ac_cs_recheck=: ;;
13662 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13663 $as_echo "$ac_cs_version"; exit ;;
13664 --debug | --debu | --deb | --de | --d | -d )
13665 debug=: ;;
13666 --file | --fil | --fi | --f )
13667 $ac_shift
13668 case $ac_optarg in
13669 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13670 esac
13671 as_fn_append CONFIG_FILES " '$ac_optarg'"
13672 ac_need_defaults=false;;
13673 --header | --heade | --head | --hea )
13674 $ac_shift
13675 case $ac_optarg in
13676 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13677 esac
13678 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13679 ac_need_defaults=false;;
13680 --he | --h)
13681 # Conflict between --help and --header
13682 as_fn_error "ambiguous option: \`$1'
13683 Try \`$0 --help' for more information.";;
13684 --help | --hel | -h )
13685 $as_echo "$ac_cs_usage"; exit ;;
13686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13687 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13688 ac_cs_silent=: ;;
13690 # This is an error.
13691 -*) as_fn_error "unrecognized option: \`$1'
13692 Try \`$0 --help' for more information." ;;
13694 *) as_fn_append ac_config_targets " $1"
13695 ac_need_defaults=false ;;
13697 esac
13698 shift
13699 done
13701 ac_configure_extra_args=
13703 if $ac_cs_silent; then
13704 exec 6>/dev/null
13705 ac_configure_extra_args="$ac_configure_extra_args --silent"
13708 _ACEOF
13709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13710 if \$ac_cs_recheck; then
13711 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13712 shift
13713 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13714 CONFIG_SHELL='$SHELL'
13715 export CONFIG_SHELL
13716 exec "\$@"
13719 _ACEOF
13720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13721 exec 5>>config.log
13723 echo
13724 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13725 ## Running $as_me. ##
13726 _ASBOX
13727 $as_echo "$ac_log"
13728 } >&5
13730 _ACEOF
13731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13733 # INIT-COMMANDS
13736 srcdir="$srcdir"
13737 host="$host"
13738 target="$target"
13739 with_multisubdir="$with_multisubdir"
13740 with_multisrctop="$with_multisrctop"
13741 with_target_subdir="$with_target_subdir"
13742 ac_configure_args="${multilib_arg} ${ac_configure_args}"
13743 multi_basedir="$multi_basedir"
13744 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13745 CC="$CC"
13746 CXX="$CXX"
13747 GFORTRAN="$GFORTRAN"
13748 GCJ="$GCJ"
13749 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13752 # The HP-UX ksh and POSIX shell print the target directory to stdout
13753 # if CDPATH is set.
13754 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13756 sed_quote_subst='$sed_quote_subst'
13757 double_quote_subst='$double_quote_subst'
13758 delay_variable_subst='$delay_variable_subst'
13759 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13760 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13761 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13762 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13763 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13764 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13765 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13766 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13767 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13768 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13769 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13770 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13771 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13772 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13773 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13774 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13775 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13776 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13777 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13778 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13779 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13780 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13781 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13782 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13783 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13784 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13785 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13786 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13787 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13788 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13789 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13790 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13791 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13792 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13793 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13794 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13795 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13796 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13797 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13798 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13799 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13800 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13801 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13802 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13803 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13804 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13805 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13806 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13807 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"`'
13808 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13809 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13810 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13811 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13812 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13813 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13814 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13815 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13816 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13817 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13818 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13819 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13820 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13821 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13822 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13823 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13824 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13825 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13826 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13827 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13828 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13829 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13830 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13831 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13832 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13833 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13834 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13835 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13836 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13837 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13838 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13839 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13840 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13841 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13842 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13843 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13844 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13845 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13846 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13847 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13848 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13849 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13850 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13851 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13852 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13853 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13854 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13855 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13856 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13857 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13858 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13859 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13860 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13861 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13862 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13863 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13864 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13865 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13866 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13867 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13868 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13869 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13870 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13871 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13872 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13873 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13874 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13875 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13876 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13877 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13878 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13880 LTCC='$LTCC'
13881 LTCFLAGS='$LTCFLAGS'
13882 compiler='$compiler_DEFAULT'
13884 # A function that is used when there is no print builtin or printf.
13885 func_fallback_echo ()
13887 eval 'cat <<_LTECHO_EOF
13889 _LTECHO_EOF'
13892 # Quote evaled strings.
13893 for var in SHELL \
13894 ECHO \
13895 SED \
13896 GREP \
13897 EGREP \
13898 FGREP \
13899 LD \
13900 NM \
13901 LN_S \
13902 lt_SP2NL \
13903 lt_NL2SP \
13904 reload_flag \
13905 OBJDUMP \
13906 deplibs_check_method \
13907 file_magic_cmd \
13908 AR \
13909 AR_FLAGS \
13910 STRIP \
13911 RANLIB \
13912 CC \
13913 CFLAGS \
13914 compiler \
13915 lt_cv_sys_global_symbol_pipe \
13916 lt_cv_sys_global_symbol_to_cdecl \
13917 lt_cv_sys_global_symbol_to_c_name_address \
13918 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13919 lt_prog_compiler_no_builtin_flag \
13920 lt_prog_compiler_wl \
13921 lt_prog_compiler_pic \
13922 lt_prog_compiler_static \
13923 lt_cv_prog_compiler_c_o \
13924 need_locks \
13925 DSYMUTIL \
13926 NMEDIT \
13927 LIPO \
13928 OTOOL \
13929 OTOOL64 \
13930 shrext_cmds \
13931 export_dynamic_flag_spec \
13932 whole_archive_flag_spec \
13933 compiler_needs_object \
13934 with_gnu_ld \
13935 allow_undefined_flag \
13936 no_undefined_flag \
13937 hardcode_libdir_flag_spec \
13938 hardcode_libdir_flag_spec_ld \
13939 hardcode_libdir_separator \
13940 fix_srcfile_path \
13941 exclude_expsyms \
13942 include_expsyms \
13943 file_list_spec \
13944 variables_saved_for_relink \
13945 libname_spec \
13946 library_names_spec \
13947 soname_spec \
13948 install_override_mode \
13949 finish_eval \
13950 old_striplib \
13951 striplib; do
13952 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13953 *[\\\\\\\`\\"\\\$]*)
13954 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13957 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13959 esac
13960 done
13962 # Double-quote double-evaled strings.
13963 for var in reload_cmds \
13964 old_postinstall_cmds \
13965 old_postuninstall_cmds \
13966 old_archive_cmds \
13967 extract_expsyms_cmds \
13968 old_archive_from_new_cmds \
13969 old_archive_from_expsyms_cmds \
13970 archive_cmds \
13971 archive_expsym_cmds \
13972 module_cmds \
13973 module_expsym_cmds \
13974 export_symbols_cmds \
13975 prelink_cmds \
13976 postinstall_cmds \
13977 postuninstall_cmds \
13978 finish_cmds \
13979 sys_lib_search_path_spec \
13980 sys_lib_dlsearch_path_spec; do
13981 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13982 *[\\\\\\\`\\"\\\$]*)
13983 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13986 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13988 esac
13989 done
13991 ac_aux_dir='$ac_aux_dir'
13992 xsi_shell='$xsi_shell'
13993 lt_shell_append='$lt_shell_append'
13995 # See if we are running on zsh, and set the options which allow our
13996 # commands through without removal of \ escapes INIT.
13997 if test -n "\${ZSH_VERSION+set}" ; then
13998 setopt NO_GLOB_SUBST
14002 PACKAGE='$PACKAGE'
14003 VERSION='$VERSION'
14004 TIMESTAMP='$TIMESTAMP'
14005 RM='$RM'
14006 ofile='$ofile'
14010 TARGETDIR="$TARGETDIR"
14012 _ACEOF
14014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14016 # Handling of arguments.
14017 for ac_config_target in $ac_config_targets
14019 case $ac_config_target in
14020 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
14021 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14022 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14023 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14024 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
14025 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
14026 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
14027 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14028 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
14029 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14030 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
14031 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14033 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14034 esac
14035 done
14038 # If the user did not use the arguments to specify the items to instantiate,
14039 # then the envvar interface is used. Set only those that are not.
14040 # We use the long form for the default assignment because of an extremely
14041 # bizarre bug on SunOS 4.1.3.
14042 if $ac_need_defaults; then
14043 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14044 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14045 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
14046 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14049 # Have a temporary directory for convenience. Make it in the build tree
14050 # simply because there is no reason against having it here, and in addition,
14051 # creating and moving files from /tmp can sometimes cause problems.
14052 # Hook for its removal unless debugging.
14053 # Note that there is a small window in which the directory will not be cleaned:
14054 # after its creation but before its name has been assigned to `$tmp'.
14055 $debug ||
14057 tmp=
14058 trap 'exit_status=$?
14059 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14061 trap 'as_fn_exit 1' 1 2 13 15
14063 # Create a (secure) tmp directory for tmp files.
14066 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14067 test -n "$tmp" && test -d "$tmp"
14068 } ||
14070 tmp=./conf$$-$RANDOM
14071 (umask 077 && mkdir "$tmp")
14072 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14074 # Set up the scripts for CONFIG_FILES section.
14075 # No need to generate them if there are no CONFIG_FILES.
14076 # This happens for instance with `./config.status config.h'.
14077 if test -n "$CONFIG_FILES"; then
14080 ac_cr=`echo X | tr X '\015'`
14081 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14082 # But we know of no other shell where ac_cr would be empty at this
14083 # point, so we can use a bashism as a fallback.
14084 if test "x$ac_cr" = x; then
14085 eval ac_cr=\$\'\\r\'
14087 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14088 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14089 ac_cs_awk_cr='\r'
14090 else
14091 ac_cs_awk_cr=$ac_cr
14094 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14095 _ACEOF
14099 echo "cat >conf$$subs.awk <<_ACEOF" &&
14100 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14101 echo "_ACEOF"
14102 } >conf$$subs.sh ||
14103 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14104 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14105 ac_delim='%!_!# '
14106 for ac_last_try in false false false false false :; do
14107 . ./conf$$subs.sh ||
14108 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14110 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14111 if test $ac_delim_n = $ac_delim_num; then
14112 break
14113 elif $ac_last_try; then
14114 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14115 else
14116 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14118 done
14119 rm -f conf$$subs.sh
14121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14122 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14123 _ACEOF
14124 sed -n '
14126 s/^/S["/; s/!.*/"]=/
14129 s/^[^!]*!//
14130 :repl
14131 t repl
14132 s/'"$ac_delim"'$//
14133 t delim
14136 s/\(.\{148\}\).*/\1/
14137 t more1
14138 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14141 b repl
14142 :more1
14143 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14146 s/.\{148\}//
14147 t nl
14148 :delim
14150 s/\(.\{148\}\).*/\1/
14151 t more2
14152 s/["\\]/\\&/g; s/^/"/; s/$/"/
14155 :more2
14156 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14159 s/.\{148\}//
14160 t delim
14161 ' <conf$$subs.awk | sed '
14162 /^[^""]/{
14164 s/\n//
14166 ' >>$CONFIG_STATUS || ac_write_fail=1
14167 rm -f conf$$subs.awk
14168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14169 _ACAWK
14170 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14171 for (key in S) S_is_set[key] = 1
14172 FS = "\a"
14176 line = $ 0
14177 nfields = split(line, field, "@")
14178 substed = 0
14179 len = length(field[1])
14180 for (i = 2; i < nfields; i++) {
14181 key = field[i]
14182 keylen = length(key)
14183 if (S_is_set[key]) {
14184 value = S[key]
14185 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14186 len += length(value) + length(field[++i])
14187 substed = 1
14188 } else
14189 len += 1 + keylen
14192 print line
14195 _ACAWK
14196 _ACEOF
14197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14198 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14199 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14200 else
14202 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14203 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14204 _ACEOF
14206 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14207 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14208 # trailing colons and then remove the whole line if VPATH becomes empty
14209 # (actually we leave an empty line to preserve line numbers).
14210 if test "x$srcdir" = x.; then
14211 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14212 s/:*\$(srcdir):*/:/
14213 s/:*\${srcdir}:*/:/
14214 s/:*@srcdir@:*/:/
14215 s/^\([^=]*=[ ]*\):*/\1/
14216 s/:*$//
14217 s/^[^=]*=[ ]*$//
14221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14222 fi # test -n "$CONFIG_FILES"
14224 # Set up the scripts for CONFIG_HEADERS section.
14225 # No need to generate them if there are no CONFIG_HEADERS.
14226 # This happens for instance with `./config.status Makefile'.
14227 if test -n "$CONFIG_HEADERS"; then
14228 cat >"$tmp/defines.awk" <<\_ACAWK ||
14229 BEGIN {
14230 _ACEOF
14232 # Transform confdefs.h into an awk script `defines.awk', embedded as
14233 # here-document in config.status, that substitutes the proper values into
14234 # config.h.in to produce config.h.
14236 # Create a delimiter string that does not exist in confdefs.h, to ease
14237 # handling of long lines.
14238 ac_delim='%!_!# '
14239 for ac_last_try in false false :; do
14240 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14241 if test -z "$ac_t"; then
14242 break
14243 elif $ac_last_try; then
14244 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14245 else
14246 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14248 done
14250 # For the awk script, D is an array of macro values keyed by name,
14251 # likewise P contains macro parameters if any. Preserve backslash
14252 # newline sequences.
14254 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14255 sed -n '
14256 s/.\{148\}/&'"$ac_delim"'/g
14257 t rset
14258 :rset
14259 s/^[ ]*#[ ]*define[ ][ ]*/ /
14260 t def
14262 :def
14263 s/\\$//
14264 t bsnl
14265 s/["\\]/\\&/g
14266 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14267 D["\1"]=" \3"/p
14268 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14270 :bsnl
14271 s/["\\]/\\&/g
14272 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14273 D["\1"]=" \3\\\\\\n"\\/p
14274 t cont
14275 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14276 t cont
14278 :cont
14280 s/.\{148\}/&'"$ac_delim"'/g
14281 t clear
14282 :clear
14283 s/\\$//
14284 t bsnlc
14285 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14287 :bsnlc
14288 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14289 b cont
14290 ' <confdefs.h | sed '
14291 s/'"$ac_delim"'/"\\\
14292 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14295 for (key in D) D_is_set[key] = 1
14296 FS = "\a"
14298 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14299 line = \$ 0
14300 split(line, arg, " ")
14301 if (arg[1] == "#") {
14302 defundef = arg[2]
14303 mac1 = arg[3]
14304 } else {
14305 defundef = substr(arg[1], 2)
14306 mac1 = arg[2]
14308 split(mac1, mac2, "(") #)
14309 macro = mac2[1]
14310 prefix = substr(line, 1, index(line, defundef) - 1)
14311 if (D_is_set[macro]) {
14312 # Preserve the white space surrounding the "#".
14313 print prefix "define", macro P[macro] D[macro]
14314 next
14315 } else {
14316 # Replace #undef with comments. This is necessary, for example,
14317 # in the case of _POSIX_SOURCE, which is predefined and required
14318 # on some systems where configure will not decide to define it.
14319 if (defundef == "undef") {
14320 print "/*", prefix defundef, macro, "*/"
14321 next
14325 { print }
14326 _ACAWK
14327 _ACEOF
14328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14329 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14330 fi # test -n "$CONFIG_HEADERS"
14333 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
14334 shift
14335 for ac_tag
14337 case $ac_tag in
14338 :[FHLC]) ac_mode=$ac_tag; continue;;
14339 esac
14340 case $ac_mode$ac_tag in
14341 :[FHL]*:*);;
14342 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14343 :[FH]-) ac_tag=-:-;;
14344 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14345 esac
14346 ac_save_IFS=$IFS
14347 IFS=:
14348 set x $ac_tag
14349 IFS=$ac_save_IFS
14350 shift
14351 ac_file=$1
14352 shift
14354 case $ac_mode in
14355 :L) ac_source=$1;;
14356 :[FH])
14357 ac_file_inputs=
14358 for ac_f
14360 case $ac_f in
14361 -) ac_f="$tmp/stdin";;
14362 *) # Look for the file first in the build tree, then in the source tree
14363 # (if the path is not absolute). The absolute path cannot be DOS-style,
14364 # because $ac_f cannot contain `:'.
14365 test -f "$ac_f" ||
14366 case $ac_f in
14367 [\\/$]*) false;;
14368 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14369 esac ||
14370 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14371 esac
14372 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14373 as_fn_append ac_file_inputs " '$ac_f'"
14374 done
14376 # Let's still pretend it is `configure' which instantiates (i.e., don't
14377 # use $as_me), people would be surprised to read:
14378 # /* config.h. Generated by config.status. */
14379 configure_input='Generated from '`
14380 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14381 `' by configure.'
14382 if test x"$ac_file" != x-; then
14383 configure_input="$ac_file. $configure_input"
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14385 $as_echo "$as_me: creating $ac_file" >&6;}
14387 # Neutralize special characters interpreted by sed in replacement strings.
14388 case $configure_input in #(
14389 *\&* | *\|* | *\\* )
14390 ac_sed_conf_input=`$as_echo "$configure_input" |
14391 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14392 *) ac_sed_conf_input=$configure_input;;
14393 esac
14395 case $ac_tag in
14396 *:-:* | *:-) cat >"$tmp/stdin" \
14397 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14398 esac
14400 esac
14402 ac_dir=`$as_dirname -- "$ac_file" ||
14403 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14404 X"$ac_file" : 'X\(//\)[^/]' \| \
14405 X"$ac_file" : 'X\(//\)$' \| \
14406 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14407 $as_echo X"$ac_file" |
14408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14409 s//\1/
14412 /^X\(\/\/\)[^/].*/{
14413 s//\1/
14416 /^X\(\/\/\)$/{
14417 s//\1/
14420 /^X\(\/\).*/{
14421 s//\1/
14424 s/.*/./; q'`
14425 as_dir="$ac_dir"; as_fn_mkdir_p
14426 ac_builddir=.
14428 case "$ac_dir" in
14429 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14431 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14432 # A ".." for each directory in $ac_dir_suffix.
14433 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14434 case $ac_top_builddir_sub in
14435 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14436 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14437 esac ;;
14438 esac
14439 ac_abs_top_builddir=$ac_pwd
14440 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14441 # for backward compatibility:
14442 ac_top_builddir=$ac_top_build_prefix
14444 case $srcdir in
14445 .) # We are building in place.
14446 ac_srcdir=.
14447 ac_top_srcdir=$ac_top_builddir_sub
14448 ac_abs_top_srcdir=$ac_pwd ;;
14449 [\\/]* | ?:[\\/]* ) # Absolute name.
14450 ac_srcdir=$srcdir$ac_dir_suffix;
14451 ac_top_srcdir=$srcdir
14452 ac_abs_top_srcdir=$srcdir ;;
14453 *) # Relative name.
14454 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14455 ac_top_srcdir=$ac_top_build_prefix$srcdir
14456 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14457 esac
14458 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14461 case $ac_mode in
14464 # CONFIG_FILE
14467 case $INSTALL in
14468 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14469 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14470 esac
14471 ac_MKDIR_P=$MKDIR_P
14472 case $MKDIR_P in
14473 [\\/$]* | ?:[\\/]* ) ;;
14474 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14475 esac
14476 _ACEOF
14478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14479 # If the template does not know about datarootdir, expand it.
14480 # FIXME: This hack should be removed a few years after 2.60.
14481 ac_datarootdir_hack=; ac_datarootdir_seen=
14482 ac_sed_dataroot='
14483 /datarootdir/ {
14487 /@datadir@/p
14488 /@docdir@/p
14489 /@infodir@/p
14490 /@localedir@/p
14491 /@mandir@/p'
14492 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14493 *datarootdir*) ac_datarootdir_seen=yes;;
14494 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14496 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14497 _ACEOF
14498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14499 ac_datarootdir_hack='
14500 s&@datadir@&$datadir&g
14501 s&@docdir@&$docdir&g
14502 s&@infodir@&$infodir&g
14503 s&@localedir@&$localedir&g
14504 s&@mandir@&$mandir&g
14505 s&\\\${datarootdir}&$datarootdir&g' ;;
14506 esac
14507 _ACEOF
14509 # Neutralize VPATH when `$srcdir' = `.'.
14510 # Shell code in configure.ac might set extrasub.
14511 # FIXME: do we really want to maintain this feature?
14512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14513 ac_sed_extra="$ac_vpsub
14514 $extrasub
14515 _ACEOF
14516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14518 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14519 s|@configure_input@|$ac_sed_conf_input|;t t
14520 s&@top_builddir@&$ac_top_builddir_sub&;t t
14521 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14522 s&@srcdir@&$ac_srcdir&;t t
14523 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14524 s&@top_srcdir@&$ac_top_srcdir&;t t
14525 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14526 s&@builddir@&$ac_builddir&;t t
14527 s&@abs_builddir@&$ac_abs_builddir&;t t
14528 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14529 s&@INSTALL@&$ac_INSTALL&;t t
14530 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14531 $ac_datarootdir_hack
14533 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14534 || as_fn_error "could not create $ac_file" "$LINENO" 5
14536 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14537 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14538 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14540 which seems to be undefined. Please make sure it is defined." >&5
14541 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14542 which seems to be undefined. Please make sure it is defined." >&2;}
14544 rm -f "$tmp/stdin"
14545 case $ac_file in
14546 -) cat "$tmp/out" && rm -f "$tmp/out";;
14547 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14548 esac \
14549 || as_fn_error "could not create $ac_file" "$LINENO" 5
14553 # CONFIG_HEADER
14555 if test x"$ac_file" != x-; then
14557 $as_echo "/* $configure_input */" \
14558 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14559 } >"$tmp/config.h" \
14560 || as_fn_error "could not create $ac_file" "$LINENO" 5
14561 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14563 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14564 else
14565 rm -f "$ac_file"
14566 mv "$tmp/config.h" "$ac_file" \
14567 || as_fn_error "could not create $ac_file" "$LINENO" 5
14569 else
14570 $as_echo "/* $configure_input */" \
14571 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14572 || as_fn_error "could not create -" "$LINENO" 5
14574 # Compute "$ac_file"'s index in $config_headers.
14575 _am_arg="$ac_file"
14576 _am_stamp_count=1
14577 for _am_header in $config_headers :; do
14578 case $_am_header in
14579 $_am_arg | $_am_arg:* )
14580 break ;;
14582 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14583 esac
14584 done
14585 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14586 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14587 X"$_am_arg" : 'X\(//\)[^/]' \| \
14588 X"$_am_arg" : 'X\(//\)$' \| \
14589 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14590 $as_echo X"$_am_arg" |
14591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14592 s//\1/
14595 /^X\(\/\/\)[^/].*/{
14596 s//\1/
14599 /^X\(\/\/\)$/{
14600 s//\1/
14603 /^X\(\/\).*/{
14604 s//\1/
14607 s/.*/./; q'`/stamp-h$_am_stamp_count
14611 # CONFIG_LINK
14614 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
14616 else
14617 # Prefer the file from the source tree if names are identical.
14618 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
14619 ac_source=$srcdir/$ac_source
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
14623 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
14625 if test ! -r "$ac_source"; then
14626 as_fn_error "$ac_source: file not found" "$LINENO" 5
14628 rm -f "$ac_file"
14630 # Try a relative symlink, then a hard link, then a copy.
14631 case $srcdir in
14632 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
14633 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
14634 esac
14635 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
14636 ln "$ac_source" "$ac_file" 2>/dev/null ||
14637 cp -p "$ac_source" "$ac_file" ||
14638 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
14641 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14642 $as_echo "$as_me: executing $ac_file commands" >&6;}
14644 esac
14647 case $ac_file$ac_mode in
14648 "default-1":C)
14649 # Only add multilib support code if we just rebuilt the top-level
14650 # Makefile.
14651 case " $CONFIG_FILES " in
14652 *" Makefile "*)
14653 ac_file=Makefile . ${multi_basedir}/config-ml.in
14655 esac ;;
14656 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14657 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14658 # are listed without --file. Let's play safe and only enable the eval
14659 # if we detect the quoting.
14660 case $CONFIG_FILES in
14661 *\'*) eval set x "$CONFIG_FILES" ;;
14662 *) set x $CONFIG_FILES ;;
14663 esac
14664 shift
14665 for mf
14667 # Strip MF so we end up with the name of the file.
14668 mf=`echo "$mf" | sed -e 's/:.*$//'`
14669 # Check whether this is an Automake generated Makefile or not.
14670 # We used to match only the files named `Makefile.in', but
14671 # some people rename them; so instead we look at the file content.
14672 # Grep'ing the first line is not enough: some people post-process
14673 # each Makefile.in and add a new line on top of each file to say so.
14674 # Grep'ing the whole file is not good either: AIX grep has a line
14675 # limit of 2048, but all sed's we know have understand at least 4000.
14676 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14677 dirpart=`$as_dirname -- "$mf" ||
14678 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14679 X"$mf" : 'X\(//\)[^/]' \| \
14680 X"$mf" : 'X\(//\)$' \| \
14681 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14682 $as_echo X"$mf" |
14683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14684 s//\1/
14687 /^X\(\/\/\)[^/].*/{
14688 s//\1/
14691 /^X\(\/\/\)$/{
14692 s//\1/
14695 /^X\(\/\).*/{
14696 s//\1/
14699 s/.*/./; q'`
14700 else
14701 continue
14703 # Extract the definition of DEPDIR, am__include, and am__quote
14704 # from the Makefile without running `make'.
14705 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14706 test -z "$DEPDIR" && continue
14707 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14708 test -z "am__include" && continue
14709 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14710 # When using ansi2knr, U may be empty or an underscore; expand it
14711 U=`sed -n 's/^U = //p' < "$mf"`
14712 # Find all dependency output files, they are included files with
14713 # $(DEPDIR) in their names. We invoke sed twice because it is the
14714 # simplest approach to changing $(DEPDIR) to its actual value in the
14715 # expansion.
14716 for file in `sed -n "
14717 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14718 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14719 # Make sure the directory exists.
14720 test -f "$dirpart/$file" && continue
14721 fdir=`$as_dirname -- "$file" ||
14722 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14723 X"$file" : 'X\(//\)[^/]' \| \
14724 X"$file" : 'X\(//\)$' \| \
14725 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14726 $as_echo X"$file" |
14727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14728 s//\1/
14731 /^X\(\/\/\)[^/].*/{
14732 s//\1/
14735 /^X\(\/\/\)$/{
14736 s//\1/
14739 /^X\(\/\).*/{
14740 s//\1/
14743 s/.*/./; q'`
14744 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14745 # echo "creating $dirpart/$file"
14746 echo '# dummy' > "$dirpart/$file"
14747 done
14748 done
14751 "libtool":C)
14753 # See if we are running on zsh, and set the options which allow our
14754 # commands through without removal of \ escapes.
14755 if test -n "${ZSH_VERSION+set}" ; then
14756 setopt NO_GLOB_SUBST
14759 cfgfile="${ofile}T"
14760 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14761 $RM "$cfgfile"
14763 cat <<_LT_EOF >> "$cfgfile"
14764 #! $SHELL
14766 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14767 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14768 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14769 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14771 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14772 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14773 # Written by Gordon Matzigkeit, 1996
14775 # This file is part of GNU Libtool.
14777 # GNU Libtool is free software; you can redistribute it and/or
14778 # modify it under the terms of the GNU General Public License as
14779 # published by the Free Software Foundation; either version 2 of
14780 # the License, or (at your option) any later version.
14782 # As a special exception to the GNU General Public License,
14783 # if you distribute this file as part of a program or library that
14784 # is built using GNU Libtool, you may include this file under the
14785 # same distribution terms that you use for the rest of that program.
14787 # GNU Libtool is distributed in the hope that it will be useful,
14788 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14789 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14790 # GNU General Public License for more details.
14792 # You should have received a copy of the GNU General Public License
14793 # along with GNU Libtool; see the file COPYING. If not, a copy
14794 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14795 # obtained by writing to the Free Software Foundation, Inc.,
14796 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14799 # The names of the tagged configurations supported by this script.
14800 available_tags=""
14802 # ### BEGIN LIBTOOL CONFIG
14804 # Which release of libtool.m4 was used?
14805 macro_version=$macro_version
14806 macro_revision=$macro_revision
14808 # Whether or not to build shared libraries.
14809 build_libtool_libs=$enable_shared
14811 # Whether or not to build static libraries.
14812 build_old_libs=$enable_static
14814 # What type of objects to build.
14815 pic_mode=$pic_mode
14817 # Whether or not to optimize for fast installation.
14818 fast_install=$enable_fast_install
14820 # Shell to use when invoking shell scripts.
14821 SHELL=$lt_SHELL
14823 # An echo program that protects backslashes.
14824 ECHO=$lt_ECHO
14826 # The host system.
14827 host_alias=$host_alias
14828 host=$host
14829 host_os=$host_os
14831 # The build system.
14832 build_alias=$build_alias
14833 build=$build
14834 build_os=$build_os
14836 # A sed program that does not truncate output.
14837 SED=$lt_SED
14839 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14840 Xsed="\$SED -e 1s/^X//"
14842 # A grep program that handles long lines.
14843 GREP=$lt_GREP
14845 # An ERE matcher.
14846 EGREP=$lt_EGREP
14848 # A literal string matcher.
14849 FGREP=$lt_FGREP
14851 # A BSD- or MS-compatible name lister.
14852 NM=$lt_NM
14854 # Whether we need soft or hard links.
14855 LN_S=$lt_LN_S
14857 # What is the maximum length of a command?
14858 max_cmd_len=$max_cmd_len
14860 # Object file suffix (normally "o").
14861 objext=$ac_objext
14863 # Executable file suffix (normally "").
14864 exeext=$exeext
14866 # whether the shell understands "unset".
14867 lt_unset=$lt_unset
14869 # turn spaces into newlines.
14870 SP2NL=$lt_lt_SP2NL
14872 # turn newlines into spaces.
14873 NL2SP=$lt_lt_NL2SP
14875 # An object symbol dumper.
14876 OBJDUMP=$lt_OBJDUMP
14878 # Method to check whether dependent libraries are shared objects.
14879 deplibs_check_method=$lt_deplibs_check_method
14881 # Command to use when deplibs_check_method == "file_magic".
14882 file_magic_cmd=$lt_file_magic_cmd
14884 # The archiver.
14885 AR=$lt_AR
14886 AR_FLAGS=$lt_AR_FLAGS
14888 # A symbol stripping program.
14889 STRIP=$lt_STRIP
14891 # Commands used to install an old-style archive.
14892 RANLIB=$lt_RANLIB
14893 old_postinstall_cmds=$lt_old_postinstall_cmds
14894 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14896 # Whether to use a lock for old archive extraction.
14897 lock_old_archive_extraction=$lock_old_archive_extraction
14899 # A C compiler.
14900 LTCC=$lt_CC
14902 # LTCC compiler flags.
14903 LTCFLAGS=$lt_CFLAGS
14905 # Take the output of nm and produce a listing of raw symbols and C names.
14906 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14908 # Transform the output of nm in a proper C declaration.
14909 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14911 # Transform the output of nm in a C name address pair.
14912 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14914 # Transform the output of nm in a C name address pair when lib prefix is needed.
14915 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14917 # The name of the directory that contains temporary libtool files.
14918 objdir=$objdir
14920 # Used to examine libraries when file_magic_cmd begins with "file".
14921 MAGIC_CMD=$MAGIC_CMD
14923 # Must we lock files when doing compilation?
14924 need_locks=$lt_need_locks
14926 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14927 DSYMUTIL=$lt_DSYMUTIL
14929 # Tool to change global to local symbols on Mac OS X.
14930 NMEDIT=$lt_NMEDIT
14932 # Tool to manipulate fat objects and archives on Mac OS X.
14933 LIPO=$lt_LIPO
14935 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14936 OTOOL=$lt_OTOOL
14938 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14939 OTOOL64=$lt_OTOOL64
14941 # Old archive suffix (normally "a").
14942 libext=$libext
14944 # Shared library suffix (normally ".so").
14945 shrext_cmds=$lt_shrext_cmds
14947 # The commands to extract the exported symbol list from a shared archive.
14948 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14950 # Variables whose values should be saved in libtool wrapper scripts and
14951 # restored at link time.
14952 variables_saved_for_relink=$lt_variables_saved_for_relink
14954 # Do we need the "lib" prefix for modules?
14955 need_lib_prefix=$need_lib_prefix
14957 # Do we need a version for libraries?
14958 need_version=$need_version
14960 # Library versioning type.
14961 version_type=$version_type
14963 # Shared library runtime path variable.
14964 runpath_var=$runpath_var
14966 # Shared library path variable.
14967 shlibpath_var=$shlibpath_var
14969 # Is shlibpath searched before the hard-coded library search path?
14970 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14972 # Format of library name prefix.
14973 libname_spec=$lt_libname_spec
14975 # List of archive names. First name is the real one, the rest are links.
14976 # The last name is the one that the linker finds with -lNAME
14977 library_names_spec=$lt_library_names_spec
14979 # The coded name of the library, if different from the real name.
14980 soname_spec=$lt_soname_spec
14982 # Permission mode override for installation of shared libraries.
14983 install_override_mode=$lt_install_override_mode
14985 # Command to use after installation of a shared archive.
14986 postinstall_cmds=$lt_postinstall_cmds
14988 # Command to use after uninstallation of a shared archive.
14989 postuninstall_cmds=$lt_postuninstall_cmds
14991 # Commands used to finish a libtool library installation in a directory.
14992 finish_cmds=$lt_finish_cmds
14994 # As "finish_cmds", except a single script fragment to be evaled but
14995 # not shown.
14996 finish_eval=$lt_finish_eval
14998 # Whether we should hardcode library paths into libraries.
14999 hardcode_into_libs=$hardcode_into_libs
15001 # Compile-time system search path for libraries.
15002 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15004 # Run-time system search path for libraries.
15005 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15007 # Whether dlopen is supported.
15008 dlopen_support=$enable_dlopen
15010 # Whether dlopen of programs is supported.
15011 dlopen_self=$enable_dlopen_self
15013 # Whether dlopen of statically linked programs is supported.
15014 dlopen_self_static=$enable_dlopen_self_static
15016 # Commands to strip libraries.
15017 old_striplib=$lt_old_striplib
15018 striplib=$lt_striplib
15021 # The linker used to build libraries.
15022 LD=$lt_LD
15024 # How to create reloadable object files.
15025 reload_flag=$lt_reload_flag
15026 reload_cmds=$lt_reload_cmds
15028 # Commands used to build an old-style archive.
15029 old_archive_cmds=$lt_old_archive_cmds
15031 # A language specific compiler.
15032 CC=$lt_compiler
15034 # Is the compiler the GNU compiler?
15035 with_gcc=$GCC
15037 # Compiler flag to turn off builtin functions.
15038 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15040 # How to pass a linker flag through the compiler.
15041 wl=$lt_lt_prog_compiler_wl
15043 # Additional compiler flags for building library objects.
15044 pic_flag=$lt_lt_prog_compiler_pic
15046 # Compiler flag to prevent dynamic linking.
15047 link_static_flag=$lt_lt_prog_compiler_static
15049 # Does compiler simultaneously support -c and -o options?
15050 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15052 # Whether or not to add -lc for building shared libraries.
15053 build_libtool_need_lc=$archive_cmds_need_lc
15055 # Whether or not to disallow shared libs when runtime libs are static.
15056 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15058 # Compiler flag to allow reflexive dlopens.
15059 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15061 # Compiler flag to generate shared objects directly from archives.
15062 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15064 # Whether the compiler copes with passing no objects directly.
15065 compiler_needs_object=$lt_compiler_needs_object
15067 # Create an old-style archive from a shared archive.
15068 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15070 # Create a temporary old-style archive to link instead of a shared archive.
15071 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15073 # Commands used to build a shared archive.
15074 archive_cmds=$lt_archive_cmds
15075 archive_expsym_cmds=$lt_archive_expsym_cmds
15077 # Commands used to build a loadable module if different from building
15078 # a shared archive.
15079 module_cmds=$lt_module_cmds
15080 module_expsym_cmds=$lt_module_expsym_cmds
15082 # Whether we are building with GNU ld or not.
15083 with_gnu_ld=$lt_with_gnu_ld
15085 # Flag that allows shared libraries with undefined symbols to be built.
15086 allow_undefined_flag=$lt_allow_undefined_flag
15088 # Flag that enforces no undefined symbols.
15089 no_undefined_flag=$lt_no_undefined_flag
15091 # Flag to hardcode \$libdir into a binary during linking.
15092 # This must work even if \$libdir does not exist
15093 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15095 # If ld is used when linking, flag to hardcode \$libdir into a binary
15096 # during linking. This must work even if \$libdir does not exist.
15097 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15099 # Whether we need a single "-rpath" flag with a separated argument.
15100 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15102 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15103 # DIR into the resulting binary.
15104 hardcode_direct=$hardcode_direct
15106 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15107 # DIR into the resulting binary and the resulting library dependency is
15108 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15109 # library is relocated.
15110 hardcode_direct_absolute=$hardcode_direct_absolute
15112 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15113 # into the resulting binary.
15114 hardcode_minus_L=$hardcode_minus_L
15116 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15117 # into the resulting binary.
15118 hardcode_shlibpath_var=$hardcode_shlibpath_var
15120 # Set to "yes" if building a shared library automatically hardcodes DIR
15121 # into the library and all subsequent libraries and executables linked
15122 # against it.
15123 hardcode_automatic=$hardcode_automatic
15125 # Set to yes if linker adds runtime paths of dependent libraries
15126 # to runtime path list.
15127 inherit_rpath=$inherit_rpath
15129 # Whether libtool must link a program against all its dependency libraries.
15130 link_all_deplibs=$link_all_deplibs
15132 # Fix the shell variable \$srcfile for the compiler.
15133 fix_srcfile_path=$lt_fix_srcfile_path
15135 # Set to "yes" if exported symbols are required.
15136 always_export_symbols=$always_export_symbols
15138 # The commands to list exported symbols.
15139 export_symbols_cmds=$lt_export_symbols_cmds
15141 # Symbols that should not be listed in the preloaded symbols.
15142 exclude_expsyms=$lt_exclude_expsyms
15144 # Symbols that must always be exported.
15145 include_expsyms=$lt_include_expsyms
15147 # Commands necessary for linking programs (against libraries) with templates.
15148 prelink_cmds=$lt_prelink_cmds
15150 # Specify filename containing input files.
15151 file_list_spec=$lt_file_list_spec
15153 # How to hardcode a shared library path into an executable.
15154 hardcode_action=$hardcode_action
15156 # ### END LIBTOOL CONFIG
15158 _LT_EOF
15160 case $host_os in
15161 aix3*)
15162 cat <<\_LT_EOF >> "$cfgfile"
15163 # AIX sometimes has problems with the GCC collect2 program. For some
15164 # reason, if we set the COLLECT_NAMES environment variable, the problems
15165 # vanish in a puff of smoke.
15166 if test "X${COLLECT_NAMES+set}" != Xset; then
15167 COLLECT_NAMES=
15168 export COLLECT_NAMES
15170 _LT_EOF
15172 esac
15175 ltmain="$ac_aux_dir/ltmain.sh"
15178 # We use sed instead of cat because bash on DJGPP gets confused if
15179 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15180 # text mode, it properly converts lines to CR/LF. This bash problem
15181 # is reportedly fixed, but why not run on old versions too?
15182 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15183 || (rm -f "$cfgfile"; exit 1)
15185 case $xsi_shell in
15186 yes)
15187 cat << \_LT_EOF >> "$cfgfile"
15189 # func_dirname file append nondir_replacement
15190 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15191 # otherwise set result to NONDIR_REPLACEMENT.
15192 func_dirname ()
15194 case ${1} in
15195 */*) func_dirname_result="${1%/*}${2}" ;;
15196 * ) func_dirname_result="${3}" ;;
15197 esac
15200 # func_basename file
15201 func_basename ()
15203 func_basename_result="${1##*/}"
15206 # func_dirname_and_basename file append nondir_replacement
15207 # perform func_basename and func_dirname in a single function
15208 # call:
15209 # dirname: Compute the dirname of FILE. If nonempty,
15210 # add APPEND to the result, otherwise set result
15211 # to NONDIR_REPLACEMENT.
15212 # value returned in "$func_dirname_result"
15213 # basename: Compute filename of FILE.
15214 # value retuned in "$func_basename_result"
15215 # Implementation must be kept synchronized with func_dirname
15216 # and func_basename. For efficiency, we do not delegate to
15217 # those functions but instead duplicate the functionality here.
15218 func_dirname_and_basename ()
15220 case ${1} in
15221 */*) func_dirname_result="${1%/*}${2}" ;;
15222 * ) func_dirname_result="${3}" ;;
15223 esac
15224 func_basename_result="${1##*/}"
15227 # func_stripname prefix suffix name
15228 # strip PREFIX and SUFFIX off of NAME.
15229 # PREFIX and SUFFIX must not contain globbing or regex special
15230 # characters, hashes, percent signs, but SUFFIX may contain a leading
15231 # dot (in which case that matches only a dot).
15232 func_stripname ()
15234 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15235 # positional parameters, so assign one to ordinary parameter first.
15236 func_stripname_result=${3}
15237 func_stripname_result=${func_stripname_result#"${1}"}
15238 func_stripname_result=${func_stripname_result%"${2}"}
15241 # func_opt_split
15242 func_opt_split ()
15244 func_opt_split_opt=${1%%=*}
15245 func_opt_split_arg=${1#*=}
15248 # func_lo2o object
15249 func_lo2o ()
15251 case ${1} in
15252 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15253 *) func_lo2o_result=${1} ;;
15254 esac
15257 # func_xform libobj-or-source
15258 func_xform ()
15260 func_xform_result=${1%.*}.lo
15263 # func_arith arithmetic-term...
15264 func_arith ()
15266 func_arith_result=$(( $* ))
15269 # func_len string
15270 # STRING may not start with a hyphen.
15271 func_len ()
15273 func_len_result=${#1}
15276 _LT_EOF
15278 *) # Bourne compatible functions.
15279 cat << \_LT_EOF >> "$cfgfile"
15281 # func_dirname file append nondir_replacement
15282 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15283 # otherwise set result to NONDIR_REPLACEMENT.
15284 func_dirname ()
15286 # Extract subdirectory from the argument.
15287 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15288 if test "X$func_dirname_result" = "X${1}"; then
15289 func_dirname_result="${3}"
15290 else
15291 func_dirname_result="$func_dirname_result${2}"
15295 # func_basename file
15296 func_basename ()
15298 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15302 # func_stripname prefix suffix name
15303 # strip PREFIX and SUFFIX off of NAME.
15304 # PREFIX and SUFFIX must not contain globbing or regex special
15305 # characters, hashes, percent signs, but SUFFIX may contain a leading
15306 # dot (in which case that matches only a dot).
15307 # func_strip_suffix prefix name
15308 func_stripname ()
15310 case ${2} in
15311 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15312 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15313 esac
15316 # sed scripts:
15317 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15318 my_sed_long_arg='1s/^-[^=]*=//'
15320 # func_opt_split
15321 func_opt_split ()
15323 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15324 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15327 # func_lo2o object
15328 func_lo2o ()
15330 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15333 # func_xform libobj-or-source
15334 func_xform ()
15336 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15339 # func_arith arithmetic-term...
15340 func_arith ()
15342 func_arith_result=`expr "$@"`
15345 # func_len string
15346 # STRING may not start with a hyphen.
15347 func_len ()
15349 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15352 _LT_EOF
15353 esac
15355 case $lt_shell_append in
15356 yes)
15357 cat << \_LT_EOF >> "$cfgfile"
15359 # func_append var value
15360 # Append VALUE to the end of shell variable VAR.
15361 func_append ()
15363 eval "$1+=\$2"
15365 _LT_EOF
15368 cat << \_LT_EOF >> "$cfgfile"
15370 # func_append var value
15371 # Append VALUE to the end of shell variable VAR.
15372 func_append ()
15374 eval "$1=\$$1\$2"
15377 _LT_EOF
15379 esac
15382 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15383 || (rm -f "$cfgfile"; exit 1)
15385 mv -f "$cfgfile" "$ofile" ||
15386 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15387 chmod +x "$ofile"
15390 "include":C) test -d include || mkdir include ;;
15391 "src":C)
15392 test -d src || mkdir src
15393 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
15396 esac
15397 done # for ac_tag
15400 as_fn_exit 0
15401 _ACEOF
15402 ac_clean_files=$ac_clean_files_save
15404 test $ac_write_fail = 0 ||
15405 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15408 # configure is writing to config.log, and then calls config.status.
15409 # config.status does its own redirection, appending to config.log.
15410 # Unfortunately, on DOS this fails, as config.log is still kept open
15411 # by configure, so config.status won't be able to write to it; its
15412 # output is simply discarded. So we exec the FD to /dev/null,
15413 # effectively closing config.log, so it can be properly (re)opened and
15414 # appended to by config.status. When coming back to configure, we
15415 # need to make the FD available again.
15416 if test "$no_create" != yes; then
15417 ac_cs_success=:
15418 ac_config_status_args=
15419 test "$silent" = yes &&
15420 ac_config_status_args="$ac_config_status_args --quiet"
15421 exec 5>/dev/null
15422 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15423 exec 5>>config.log
15424 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15425 # would make configure fail if this is the last instruction.
15426 $ac_cs_success || as_fn_exit $?
15428 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15430 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}