2013-01-16 Richard Biener <rguenther@suse.de>
[official-gcc.git] / libffi / configure
blobce6c8adced7ae0816d42ccbcd1a3324ebdb8ed6d
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*|ppc*-*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 ppc64-*linux*|powerpc64-*linux*)
6421 LD="${LD-ld} -m elf32ppclinux"
6423 s390x-*linux*)
6424 LD="${LD-ld} -m elf_s390"
6426 sparc64-*linux*)
6427 LD="${LD-ld} -m elf32_sparc"
6429 esac
6431 *64-bit*)
6432 case $host in
6433 x86_64-*kfreebsd*-gnu)
6434 LD="${LD-ld} -m elf_x86_64_fbsd"
6436 x86_64-*linux*)
6437 LD="${LD-ld} -m elf_x86_64"
6439 ppc*-*linux*|powerpc*-*linux*)
6440 LD="${LD-ld} -m elf64ppc"
6442 s390*-*linux*|s390*-*tpf*)
6443 LD="${LD-ld} -m elf64_s390"
6445 sparc*-*linux*)
6446 LD="${LD-ld} -m elf64_sparc"
6448 esac
6450 esac
6452 rm -rf conftest*
6455 *-*-sco3.2v5*)
6456 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6457 SAVE_CFLAGS="$CFLAGS"
6458 CFLAGS="$CFLAGS -belf"
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6460 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6461 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6462 $as_echo_n "(cached) " >&6
6463 else
6464 ac_ext=c
6465 ac_cpp='$CPP $CPPFLAGS'
6466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6471 /* end confdefs.h. */
6474 main ()
6478 return 0;
6480 _ACEOF
6481 if ac_fn_c_try_link "$LINENO"; then :
6482 lt_cv_cc_needs_belf=yes
6483 else
6484 lt_cv_cc_needs_belf=no
6486 rm -f core conftest.err conftest.$ac_objext \
6487 conftest$ac_exeext conftest.$ac_ext
6488 ac_ext=c
6489 ac_cpp='$CPP $CPPFLAGS'
6490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6496 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6497 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6498 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6499 CFLAGS="$SAVE_CFLAGS"
6502 sparc*-*solaris*)
6503 # Find out which ABI we are using.
6504 echo 'int i;' > conftest.$ac_ext
6505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6506 (eval $ac_compile) 2>&5
6507 ac_status=$?
6508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6509 test $ac_status = 0; }; then
6510 case `/usr/bin/file conftest.o` in
6511 *64-bit*)
6512 case $lt_cv_prog_gnu_ld in
6513 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6515 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6516 LD="${LD-ld} -64"
6519 esac
6521 esac
6523 rm -rf conftest*
6525 esac
6527 need_locks="$enable_libtool_lock"
6530 case $host_os in
6531 rhapsody* | darwin*)
6532 if test -n "$ac_tool_prefix"; then
6533 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6534 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6536 $as_echo_n "checking for $ac_word... " >&6; }
6537 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6538 $as_echo_n "(cached) " >&6
6539 else
6540 if test -n "$DSYMUTIL"; then
6541 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6542 else
6543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544 for as_dir in $PATH
6546 IFS=$as_save_IFS
6547 test -z "$as_dir" && as_dir=.
6548 for ac_exec_ext in '' $ac_executable_extensions; do
6549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6550 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6552 break 2
6554 done
6555 done
6556 IFS=$as_save_IFS
6560 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6561 if test -n "$DSYMUTIL"; then
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6563 $as_echo "$DSYMUTIL" >&6; }
6564 else
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6566 $as_echo "no" >&6; }
6571 if test -z "$ac_cv_prog_DSYMUTIL"; then
6572 ac_ct_DSYMUTIL=$DSYMUTIL
6573 # Extract the first word of "dsymutil", so it can be a program name with args.
6574 set dummy dsymutil; ac_word=$2
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6576 $as_echo_n "checking for $ac_word... " >&6; }
6577 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580 if test -n "$ac_ct_DSYMUTIL"; then
6581 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6582 else
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 for as_dir in $PATH
6586 IFS=$as_save_IFS
6587 test -z "$as_dir" && as_dir=.
6588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6590 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6592 break 2
6594 done
6595 done
6596 IFS=$as_save_IFS
6600 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6601 if test -n "$ac_ct_DSYMUTIL"; then
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6603 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6604 else
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 $as_echo "no" >&6; }
6609 if test "x$ac_ct_DSYMUTIL" = x; then
6610 DSYMUTIL=":"
6611 else
6612 case $cross_compiling:$ac_tool_warned in
6613 yes:)
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6616 ac_tool_warned=yes ;;
6617 esac
6618 DSYMUTIL=$ac_ct_DSYMUTIL
6620 else
6621 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6624 if test -n "$ac_tool_prefix"; then
6625 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6626 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628 $as_echo_n "checking for $ac_word... " >&6; }
6629 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6630 $as_echo_n "(cached) " >&6
6631 else
6632 if test -n "$NMEDIT"; then
6633 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6634 else
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in $PATH
6638 IFS=$as_save_IFS
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6642 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 break 2
6646 done
6647 done
6648 IFS=$as_save_IFS
6652 NMEDIT=$ac_cv_prog_NMEDIT
6653 if test -n "$NMEDIT"; then
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6655 $as_echo "$NMEDIT" >&6; }
6656 else
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658 $as_echo "no" >&6; }
6663 if test -z "$ac_cv_prog_NMEDIT"; then
6664 ac_ct_NMEDIT=$NMEDIT
6665 # Extract the first word of "nmedit", so it can be a program name with args.
6666 set dummy nmedit; ac_word=$2
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668 $as_echo_n "checking for $ac_word... " >&6; }
6669 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6670 $as_echo_n "(cached) " >&6
6671 else
6672 if test -n "$ac_ct_NMEDIT"; then
6673 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6674 else
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 for as_dir in $PATH
6678 IFS=$as_save_IFS
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6682 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 break 2
6686 done
6687 done
6688 IFS=$as_save_IFS
6692 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6693 if test -n "$ac_ct_NMEDIT"; then
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6695 $as_echo "$ac_ct_NMEDIT" >&6; }
6696 else
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698 $as_echo "no" >&6; }
6701 if test "x$ac_ct_NMEDIT" = x; then
6702 NMEDIT=":"
6703 else
6704 case $cross_compiling:$ac_tool_warned in
6705 yes:)
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6708 ac_tool_warned=yes ;;
6709 esac
6710 NMEDIT=$ac_ct_NMEDIT
6712 else
6713 NMEDIT="$ac_cv_prog_NMEDIT"
6716 if test -n "$ac_tool_prefix"; then
6717 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6718 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6720 $as_echo_n "checking for $ac_word... " >&6; }
6721 if test "${ac_cv_prog_LIPO+set}" = set; then :
6722 $as_echo_n "(cached) " >&6
6723 else
6724 if test -n "$LIPO"; then
6725 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6726 else
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 for as_dir in $PATH
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6734 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 break 2
6738 done
6739 done
6740 IFS=$as_save_IFS
6744 LIPO=$ac_cv_prog_LIPO
6745 if test -n "$LIPO"; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6747 $as_echo "$LIPO" >&6; }
6748 else
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750 $as_echo "no" >&6; }
6755 if test -z "$ac_cv_prog_LIPO"; then
6756 ac_ct_LIPO=$LIPO
6757 # Extract the first word of "lipo", so it can be a program name with args.
6758 set dummy lipo; ac_word=$2
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6760 $as_echo_n "checking for $ac_word... " >&6; }
6761 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6762 $as_echo_n "(cached) " >&6
6763 else
6764 if test -n "$ac_ct_LIPO"; then
6765 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6766 else
6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 for as_dir in $PATH
6770 IFS=$as_save_IFS
6771 test -z "$as_dir" && as_dir=.
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6774 ac_cv_prog_ac_ct_LIPO="lipo"
6775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 break 2
6778 done
6779 done
6780 IFS=$as_save_IFS
6784 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6785 if test -n "$ac_ct_LIPO"; then
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6787 $as_echo "$ac_ct_LIPO" >&6; }
6788 else
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6790 $as_echo "no" >&6; }
6793 if test "x$ac_ct_LIPO" = x; then
6794 LIPO=":"
6795 else
6796 case $cross_compiling:$ac_tool_warned in
6797 yes:)
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6800 ac_tool_warned=yes ;;
6801 esac
6802 LIPO=$ac_ct_LIPO
6804 else
6805 LIPO="$ac_cv_prog_LIPO"
6808 if test -n "$ac_tool_prefix"; then
6809 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6810 set dummy ${ac_tool_prefix}otool; ac_word=$2
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812 $as_echo_n "checking for $ac_word... " >&6; }
6813 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6814 $as_echo_n "(cached) " >&6
6815 else
6816 if test -n "$OTOOL"; then
6817 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6818 else
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6826 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 break 2
6830 done
6831 done
6832 IFS=$as_save_IFS
6836 OTOOL=$ac_cv_prog_OTOOL
6837 if test -n "$OTOOL"; then
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6839 $as_echo "$OTOOL" >&6; }
6840 else
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6842 $as_echo "no" >&6; }
6847 if test -z "$ac_cv_prog_OTOOL"; then
6848 ac_ct_OTOOL=$OTOOL
6849 # Extract the first word of "otool", so it can be a program name with args.
6850 set dummy otool; ac_word=$2
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852 $as_echo_n "checking for $ac_word... " >&6; }
6853 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6854 $as_echo_n "(cached) " >&6
6855 else
6856 if test -n "$ac_ct_OTOOL"; then
6857 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6858 else
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6866 ac_cv_prog_ac_ct_OTOOL="otool"
6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6870 done
6871 done
6872 IFS=$as_save_IFS
6876 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6877 if test -n "$ac_ct_OTOOL"; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6879 $as_echo "$ac_ct_OTOOL" >&6; }
6880 else
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882 $as_echo "no" >&6; }
6885 if test "x$ac_ct_OTOOL" = x; then
6886 OTOOL=":"
6887 else
6888 case $cross_compiling:$ac_tool_warned in
6889 yes:)
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6892 ac_tool_warned=yes ;;
6893 esac
6894 OTOOL=$ac_ct_OTOOL
6896 else
6897 OTOOL="$ac_cv_prog_OTOOL"
6900 if test -n "$ac_tool_prefix"; then
6901 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6902 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6904 $as_echo_n "checking for $ac_word... " >&6; }
6905 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6906 $as_echo_n "(cached) " >&6
6907 else
6908 if test -n "$OTOOL64"; then
6909 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6910 else
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912 for as_dir in $PATH
6914 IFS=$as_save_IFS
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6918 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6920 break 2
6922 done
6923 done
6924 IFS=$as_save_IFS
6928 OTOOL64=$ac_cv_prog_OTOOL64
6929 if test -n "$OTOOL64"; then
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6931 $as_echo "$OTOOL64" >&6; }
6932 else
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934 $as_echo "no" >&6; }
6939 if test -z "$ac_cv_prog_OTOOL64"; then
6940 ac_ct_OTOOL64=$OTOOL64
6941 # Extract the first word of "otool64", so it can be a program name with args.
6942 set dummy otool64; ac_word=$2
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944 $as_echo_n "checking for $ac_word... " >&6; }
6945 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6946 $as_echo_n "(cached) " >&6
6947 else
6948 if test -n "$ac_ct_OTOOL64"; then
6949 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6950 else
6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 for as_dir in $PATH
6954 IFS=$as_save_IFS
6955 test -z "$as_dir" && as_dir=.
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6958 ac_cv_prog_ac_ct_OTOOL64="otool64"
6959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 break 2
6962 done
6963 done
6964 IFS=$as_save_IFS
6968 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6969 if test -n "$ac_ct_OTOOL64"; then
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6971 $as_echo "$ac_ct_OTOOL64" >&6; }
6972 else
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974 $as_echo "no" >&6; }
6977 if test "x$ac_ct_OTOOL64" = x; then
6978 OTOOL64=":"
6979 else
6980 case $cross_compiling:$ac_tool_warned in
6981 yes:)
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6984 ac_tool_warned=yes ;;
6985 esac
6986 OTOOL64=$ac_ct_OTOOL64
6988 else
6989 OTOOL64="$ac_cv_prog_OTOOL64"
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7019 $as_echo_n "checking for -single_module linker flag... " >&6; }
7020 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7021 $as_echo_n "(cached) " >&6
7022 else
7023 lt_cv_apple_cc_single_mod=no
7024 if test -z "${LT_MULTI_MODULE}"; then
7025 # By default we will add the -single_module flag. You can override
7026 # by either setting the environment variable LT_MULTI_MODULE
7027 # non-empty at configure time, or by adding -multi_module to the
7028 # link flags.
7029 rm -rf libconftest.dylib*
7030 echo "int foo(void){return 1;}" > conftest.c
7031 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7032 -dynamiclib -Wl,-single_module conftest.c" >&5
7033 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7034 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7035 _lt_result=$?
7036 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7037 lt_cv_apple_cc_single_mod=yes
7038 else
7039 cat conftest.err >&5
7041 rm -rf libconftest.dylib*
7042 rm -f conftest.*
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7046 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7048 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7049 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7050 $as_echo_n "(cached) " >&6
7051 else
7052 lt_cv_ld_exported_symbols_list=no
7053 save_LDFLAGS=$LDFLAGS
7054 echo "_main" > conftest.sym
7055 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h. */
7060 main ()
7064 return 0;
7066 _ACEOF
7067 if ac_fn_c_try_link "$LINENO"; then :
7068 lt_cv_ld_exported_symbols_list=yes
7069 else
7070 lt_cv_ld_exported_symbols_list=no
7072 rm -f core conftest.err conftest.$ac_objext \
7073 conftest$ac_exeext conftest.$ac_ext
7074 LDFLAGS="$save_LDFLAGS"
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7078 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7080 $as_echo_n "checking for -force_load linker flag... " >&6; }
7081 if test "${lt_cv_ld_force_load+set}" = set; then :
7082 $as_echo_n "(cached) " >&6
7083 else
7084 lt_cv_ld_force_load=no
7085 cat > conftest.c << _LT_EOF
7086 int forced_loaded() { return 2;}
7087 _LT_EOF
7088 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7089 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7090 echo "$AR cru libconftest.a conftest.o" >&5
7091 $AR cru libconftest.a conftest.o 2>&5
7092 cat > conftest.c << _LT_EOF
7093 int main() { return 0;}
7094 _LT_EOF
7095 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7096 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7097 _lt_result=$?
7098 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7099 lt_cv_ld_force_load=yes
7100 else
7101 cat conftest.err >&5
7103 rm -f conftest.err libconftest.a conftest conftest.c
7104 rm -rf conftest.dSYM
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7108 $as_echo "$lt_cv_ld_force_load" >&6; }
7109 case $host_os in
7110 rhapsody* | darwin1.[012])
7111 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7112 darwin1.*)
7113 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7114 darwin*) # darwin 5.x on
7115 # if running on 10.5 or later, the deployment target defaults
7116 # to the OS version, if on x86, and 10.4, the deployment
7117 # target defaults to 10.4. Don't you love it?
7118 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7119 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7120 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7121 10.[012]*)
7122 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7123 10.*)
7124 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7125 esac
7127 esac
7128 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7129 _lt_dar_single_mod='$single_module'
7131 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7132 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7133 else
7134 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7136 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7137 _lt_dsymutil='~$DSYMUTIL $lib || :'
7138 else
7139 _lt_dsymutil=
7142 esac
7144 ac_ext=c
7145 ac_cpp='$CPP $CPPFLAGS'
7146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7150 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7151 # On Suns, sometimes $CPP names a directory.
7152 if test -n "$CPP" && test -d "$CPP"; then
7153 CPP=
7155 if test -z "$CPP"; then
7156 if test "${ac_cv_prog_CPP+set}" = set; then :
7157 $as_echo_n "(cached) " >&6
7158 else
7159 # Double quotes because CPP needs to be expanded
7160 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7162 ac_preproc_ok=false
7163 for ac_c_preproc_warn_flag in '' yes
7165 # Use a header file that comes with gcc, so configuring glibc
7166 # with a fresh cross-compiler works.
7167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7168 # <limits.h> exists even on freestanding compilers.
7169 # On the NeXT, cc -E runs the code through the compiler's parser,
7170 # not just through cpp. "Syntax error" is here to catch this case.
7171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172 /* end confdefs.h. */
7173 #ifdef __STDC__
7174 # include <limits.h>
7175 #else
7176 # include <assert.h>
7177 #endif
7178 Syntax error
7179 _ACEOF
7180 if ac_fn_c_try_cpp "$LINENO"; then :
7182 else
7183 # Broken: fails on valid input.
7184 continue
7186 rm -f conftest.err conftest.$ac_ext
7188 # OK, works on sane cases. Now check whether nonexistent headers
7189 # can be detected and how.
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7192 #include <ac_nonexistent.h>
7193 _ACEOF
7194 if ac_fn_c_try_cpp "$LINENO"; then :
7195 # Broken: success on invalid input.
7196 continue
7197 else
7198 # Passes both tests.
7199 ac_preproc_ok=:
7200 break
7202 rm -f conftest.err conftest.$ac_ext
7204 done
7205 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7206 rm -f conftest.err conftest.$ac_ext
7207 if $ac_preproc_ok; then :
7208 break
7211 done
7212 ac_cv_prog_CPP=$CPP
7215 CPP=$ac_cv_prog_CPP
7216 else
7217 ac_cv_prog_CPP=$CPP
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7220 $as_echo "$CPP" >&6; }
7221 ac_preproc_ok=false
7222 for ac_c_preproc_warn_flag in '' yes
7224 # Use a header file that comes with gcc, so configuring glibc
7225 # with a fresh cross-compiler works.
7226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7227 # <limits.h> exists even on freestanding compilers.
7228 # On the NeXT, cc -E runs the code through the compiler's parser,
7229 # not just through cpp. "Syntax error" is here to catch this case.
7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231 /* end confdefs.h. */
7232 #ifdef __STDC__
7233 # include <limits.h>
7234 #else
7235 # include <assert.h>
7236 #endif
7237 Syntax error
7238 _ACEOF
7239 if ac_fn_c_try_cpp "$LINENO"; then :
7241 else
7242 # Broken: fails on valid input.
7243 continue
7245 rm -f conftest.err conftest.$ac_ext
7247 # OK, works on sane cases. Now check whether nonexistent headers
7248 # can be detected and how.
7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h. */
7251 #include <ac_nonexistent.h>
7252 _ACEOF
7253 if ac_fn_c_try_cpp "$LINENO"; then :
7254 # Broken: success on invalid input.
7255 continue
7256 else
7257 # Passes both tests.
7258 ac_preproc_ok=:
7259 break
7261 rm -f conftest.err conftest.$ac_ext
7263 done
7264 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7265 rm -f conftest.err conftest.$ac_ext
7266 if $ac_preproc_ok; then :
7268 else
7269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7271 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7272 See \`config.log' for more details." "$LINENO" 5; }
7275 ac_ext=c
7276 ac_cpp='$CPP $CPPFLAGS'
7277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7283 $as_echo_n "checking for ANSI C header files... " >&6; }
7284 if test "${ac_cv_header_stdc+set}" = set; then :
7285 $as_echo_n "(cached) " >&6
7286 else
7287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7288 /* end confdefs.h. */
7289 #include <stdlib.h>
7290 #include <stdarg.h>
7291 #include <string.h>
7292 #include <float.h>
7295 main ()
7299 return 0;
7301 _ACEOF
7302 if ac_fn_c_try_compile "$LINENO"; then :
7303 ac_cv_header_stdc=yes
7304 else
7305 ac_cv_header_stdc=no
7307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7309 if test $ac_cv_header_stdc = yes; then
7310 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7312 /* end confdefs.h. */
7313 #include <string.h>
7315 _ACEOF
7316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7317 $EGREP "memchr" >/dev/null 2>&1; then :
7319 else
7320 ac_cv_header_stdc=no
7322 rm -f conftest*
7326 if test $ac_cv_header_stdc = yes; then
7327 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329 /* end confdefs.h. */
7330 #include <stdlib.h>
7332 _ACEOF
7333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7334 $EGREP "free" >/dev/null 2>&1; then :
7336 else
7337 ac_cv_header_stdc=no
7339 rm -f conftest*
7343 if test $ac_cv_header_stdc = yes; then
7344 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7345 if test "$cross_compiling" = yes; then :
7347 else
7348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7349 /* end confdefs.h. */
7350 #include <ctype.h>
7351 #include <stdlib.h>
7352 #if ((' ' & 0x0FF) == 0x020)
7353 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7354 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7355 #else
7356 # define ISLOWER(c) \
7357 (('a' <= (c) && (c) <= 'i') \
7358 || ('j' <= (c) && (c) <= 'r') \
7359 || ('s' <= (c) && (c) <= 'z'))
7360 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7361 #endif
7363 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7365 main ()
7367 int i;
7368 for (i = 0; i < 256; i++)
7369 if (XOR (islower (i), ISLOWER (i))
7370 || toupper (i) != TOUPPER (i))
7371 return 2;
7372 return 0;
7374 _ACEOF
7375 if ac_fn_c_try_run "$LINENO"; then :
7377 else
7378 ac_cv_header_stdc=no
7380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7381 conftest.$ac_objext conftest.beam conftest.$ac_ext
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7387 $as_echo "$ac_cv_header_stdc" >&6; }
7388 if test $ac_cv_header_stdc = yes; then
7390 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7394 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7395 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7396 inttypes.h stdint.h unistd.h
7397 do :
7398 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7399 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7401 eval as_val=\$$as_ac_Header
7402 if test "x$as_val" = x""yes; then :
7403 cat >>confdefs.h <<_ACEOF
7404 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7405 _ACEOF
7409 done
7412 for ac_header in dlfcn.h
7413 do :
7414 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7416 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7417 cat >>confdefs.h <<_ACEOF
7418 #define HAVE_DLFCN_H 1
7419 _ACEOF
7423 done
7429 # Set options
7433 enable_dlopen=no
7436 enable_win32_dll=no
7439 # Check whether --enable-shared was given.
7440 if test "${enable_shared+set}" = set; then :
7441 enableval=$enable_shared; p=${PACKAGE-default}
7442 case $enableval in
7443 yes) enable_shared=yes ;;
7444 no) enable_shared=no ;;
7446 enable_shared=no
7447 # Look at the argument we got. We use all the common list separators.
7448 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7449 for pkg in $enableval; do
7450 IFS="$lt_save_ifs"
7451 if test "X$pkg" = "X$p"; then
7452 enable_shared=yes
7454 done
7455 IFS="$lt_save_ifs"
7457 esac
7458 else
7459 enable_shared=yes
7470 # Check whether --enable-static was given.
7471 if test "${enable_static+set}" = set; then :
7472 enableval=$enable_static; p=${PACKAGE-default}
7473 case $enableval in
7474 yes) enable_static=yes ;;
7475 no) enable_static=no ;;
7477 enable_static=no
7478 # Look at the argument we got. We use all the common list separators.
7479 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7480 for pkg in $enableval; do
7481 IFS="$lt_save_ifs"
7482 if test "X$pkg" = "X$p"; then
7483 enable_static=yes
7485 done
7486 IFS="$lt_save_ifs"
7488 esac
7489 else
7490 enable_static=yes
7502 # Check whether --with-pic was given.
7503 if test "${with_pic+set}" = set; then :
7504 withval=$with_pic; pic_mode="$withval"
7505 else
7506 pic_mode=default
7510 test -z "$pic_mode" && pic_mode=default
7518 # Check whether --enable-fast-install was given.
7519 if test "${enable_fast_install+set}" = set; then :
7520 enableval=$enable_fast_install; p=${PACKAGE-default}
7521 case $enableval in
7522 yes) enable_fast_install=yes ;;
7523 no) enable_fast_install=no ;;
7525 enable_fast_install=no
7526 # Look at the argument we got. We use all the common list separators.
7527 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7528 for pkg in $enableval; do
7529 IFS="$lt_save_ifs"
7530 if test "X$pkg" = "X$p"; then
7531 enable_fast_install=yes
7533 done
7534 IFS="$lt_save_ifs"
7536 esac
7537 else
7538 enable_fast_install=yes
7551 # This can be used to rebuild libtool when needed
7552 LIBTOOL_DEPS="$ltmain"
7554 # Always use our own libtool.
7555 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7582 test -z "$LN_S" && LN_S="ln -s"
7597 if test -n "${ZSH_VERSION+set}" ; then
7598 setopt NO_GLOB_SUBST
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7602 $as_echo_n "checking for objdir... " >&6; }
7603 if test "${lt_cv_objdir+set}" = set; then :
7604 $as_echo_n "(cached) " >&6
7605 else
7606 rm -f .libs 2>/dev/null
7607 mkdir .libs 2>/dev/null
7608 if test -d .libs; then
7609 lt_cv_objdir=.libs
7610 else
7611 # MS-DOS does not allow filenames that begin with a dot.
7612 lt_cv_objdir=_libs
7614 rmdir .libs 2>/dev/null
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7617 $as_echo "$lt_cv_objdir" >&6; }
7618 objdir=$lt_cv_objdir
7624 cat >>confdefs.h <<_ACEOF
7625 #define LT_OBJDIR "$lt_cv_objdir/"
7626 _ACEOF
7631 case $host_os in
7632 aix3*)
7633 # AIX sometimes has problems with the GCC collect2 program. For some
7634 # reason, if we set the COLLECT_NAMES environment variable, the problems
7635 # vanish in a puff of smoke.
7636 if test "X${COLLECT_NAMES+set}" != Xset; then
7637 COLLECT_NAMES=
7638 export COLLECT_NAMES
7641 esac
7643 # Global variables:
7644 ofile=libtool
7645 can_build_shared=yes
7647 # All known linkers require a `.a' archive for static linking (except MSVC,
7648 # which needs '.lib').
7649 libext=a
7651 with_gnu_ld="$lt_cv_prog_gnu_ld"
7653 old_CC="$CC"
7654 old_CFLAGS="$CFLAGS"
7656 # Set sane defaults for various variables
7657 test -z "$CC" && CC=cc
7658 test -z "$LTCC" && LTCC=$CC
7659 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7660 test -z "$LD" && LD=ld
7661 test -z "$ac_objext" && ac_objext=o
7663 for cc_temp in $compiler""; do
7664 case $cc_temp in
7665 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7666 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7667 \-*) ;;
7668 *) break;;
7669 esac
7670 done
7671 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7674 # Only perform the check for file, if the check method requires it
7675 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7676 case $deplibs_check_method in
7677 file_magic*)
7678 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7680 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7681 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7682 $as_echo_n "(cached) " >&6
7683 else
7684 case $MAGIC_CMD in
7685 [\\/*] | ?:[\\/]*)
7686 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7689 lt_save_MAGIC_CMD="$MAGIC_CMD"
7690 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7691 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7692 for ac_dir in $ac_dummy; do
7693 IFS="$lt_save_ifs"
7694 test -z "$ac_dir" && ac_dir=.
7695 if test -f $ac_dir/${ac_tool_prefix}file; then
7696 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7697 if test -n "$file_magic_test_file"; then
7698 case $deplibs_check_method in
7699 "file_magic "*)
7700 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7701 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7702 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7703 $EGREP "$file_magic_regex" > /dev/null; then
7705 else
7706 cat <<_LT_EOF 1>&2
7708 *** Warning: the command libtool uses to detect shared libraries,
7709 *** $file_magic_cmd, produces output that libtool cannot recognize.
7710 *** The result is that libtool may fail to recognize shared libraries
7711 *** as such. This will affect the creation of libtool libraries that
7712 *** depend on shared libraries, but programs linked with such libtool
7713 *** libraries will work regardless of this problem. Nevertheless, you
7714 *** may want to report the problem to your system manager and/or to
7715 *** bug-libtool@gnu.org
7717 _LT_EOF
7718 fi ;;
7719 esac
7721 break
7723 done
7724 IFS="$lt_save_ifs"
7725 MAGIC_CMD="$lt_save_MAGIC_CMD"
7727 esac
7730 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7731 if test -n "$MAGIC_CMD"; then
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7733 $as_echo "$MAGIC_CMD" >&6; }
7734 else
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736 $as_echo "no" >&6; }
7743 if test -z "$lt_cv_path_MAGIC_CMD"; then
7744 if test -n "$ac_tool_prefix"; then
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7746 $as_echo_n "checking for file... " >&6; }
7747 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7748 $as_echo_n "(cached) " >&6
7749 else
7750 case $MAGIC_CMD in
7751 [\\/*] | ?:[\\/]*)
7752 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7755 lt_save_MAGIC_CMD="$MAGIC_CMD"
7756 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7757 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7758 for ac_dir in $ac_dummy; do
7759 IFS="$lt_save_ifs"
7760 test -z "$ac_dir" && ac_dir=.
7761 if test -f $ac_dir/file; then
7762 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7763 if test -n "$file_magic_test_file"; then
7764 case $deplibs_check_method in
7765 "file_magic "*)
7766 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7767 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7768 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7769 $EGREP "$file_magic_regex" > /dev/null; then
7771 else
7772 cat <<_LT_EOF 1>&2
7774 *** Warning: the command libtool uses to detect shared libraries,
7775 *** $file_magic_cmd, produces output that libtool cannot recognize.
7776 *** The result is that libtool may fail to recognize shared libraries
7777 *** as such. This will affect the creation of libtool libraries that
7778 *** depend on shared libraries, but programs linked with such libtool
7779 *** libraries will work regardless of this problem. Nevertheless, you
7780 *** may want to report the problem to your system manager and/or to
7781 *** bug-libtool@gnu.org
7783 _LT_EOF
7784 fi ;;
7785 esac
7787 break
7789 done
7790 IFS="$lt_save_ifs"
7791 MAGIC_CMD="$lt_save_MAGIC_CMD"
7793 esac
7796 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7797 if test -n "$MAGIC_CMD"; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7799 $as_echo "$MAGIC_CMD" >&6; }
7800 else
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7806 else
7807 MAGIC_CMD=:
7813 esac
7815 # Use C for the default configuration in the libtool script
7817 lt_save_CC="$CC"
7818 ac_ext=c
7819 ac_cpp='$CPP $CPPFLAGS'
7820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7825 # Source file extension for C test sources.
7826 ac_ext=c
7828 # Object file extension for compiled C test sources.
7829 objext=o
7830 objext=$objext
7832 # Code to be used in simple compile tests
7833 lt_simple_compile_test_code="int some_variable = 0;"
7835 # Code to be used in simple link tests
7836 lt_simple_link_test_code='int main(){return(0);}'
7844 # If no C compiler was specified, use CC.
7845 LTCC=${LTCC-"$CC"}
7847 # If no C compiler flags were specified, use CFLAGS.
7848 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7850 # Allow CC to be a program name with arguments.
7851 compiler=$CC
7853 # Save the default compiler, since it gets overwritten when the other
7854 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7855 compiler_DEFAULT=$CC
7857 # save warnings/boilerplate of simple test code
7858 ac_outfile=conftest.$ac_objext
7859 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7860 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7861 _lt_compiler_boilerplate=`cat conftest.err`
7862 $RM conftest*
7864 ac_outfile=conftest.$ac_objext
7865 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7866 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7867 _lt_linker_boilerplate=`cat conftest.err`
7868 $RM -r conftest*
7871 ## CAVEAT EMPTOR:
7872 ## There is no encapsulation within the following macros, do not change
7873 ## the running order or otherwise move them around unless you know exactly
7874 ## what you are doing...
7875 if test -n "$compiler"; then
7877 lt_prog_compiler_no_builtin_flag=
7879 if test "$GCC" = yes; then
7880 case $cc_basename in
7881 nvcc*)
7882 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7884 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7885 esac
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7888 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7889 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7890 $as_echo_n "(cached) " >&6
7891 else
7892 lt_cv_prog_compiler_rtti_exceptions=no
7893 ac_outfile=conftest.$ac_objext
7894 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7895 lt_compiler_flag="-fno-rtti -fno-exceptions"
7896 # Insert the option either (1) after the last *FLAGS variable, or
7897 # (2) before a word containing "conftest.", or (3) at the end.
7898 # Note that $ac_compile itself does not contain backslashes and begins
7899 # with a dollar sign (not a hyphen), so the echo should work correctly.
7900 # The option is referenced via a variable to avoid confusing sed.
7901 lt_compile=`echo "$ac_compile" | $SED \
7902 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7903 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7904 -e 's:$: $lt_compiler_flag:'`
7905 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7906 (eval "$lt_compile" 2>conftest.err)
7907 ac_status=$?
7908 cat conftest.err >&5
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 if (exit $ac_status) && test -s "$ac_outfile"; then
7911 # The compiler can only warn and ignore the option if not recognized
7912 # So say no if there are warnings other than the usual output.
7913 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7914 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7915 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7916 lt_cv_prog_compiler_rtti_exceptions=yes
7919 $RM conftest*
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7923 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7925 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7926 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7927 else
7938 lt_prog_compiler_wl=
7939 lt_prog_compiler_pic=
7940 lt_prog_compiler_static=
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7943 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7945 if test "$GCC" = yes; then
7946 lt_prog_compiler_wl='-Wl,'
7947 lt_prog_compiler_static='-static'
7949 case $host_os in
7950 aix*)
7951 # All AIX code is PIC.
7952 if test "$host_cpu" = ia64; then
7953 # AIX 5 now supports IA64 processor
7954 lt_prog_compiler_static='-Bstatic'
7956 lt_prog_compiler_pic='-fPIC'
7959 amigaos*)
7960 case $host_cpu in
7961 powerpc)
7962 # see comment about AmigaOS4 .so support
7963 lt_prog_compiler_pic='-fPIC'
7965 m68k)
7966 # FIXME: we need at least 68020 code to build shared libraries, but
7967 # adding the `-m68020' flag to GCC prevents building anything better,
7968 # like `-m68040'.
7969 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7971 esac
7974 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7975 # PIC is the default for these OSes.
7978 mingw* | cygwin* | pw32* | os2* | cegcc*)
7979 # This hack is so that the source file can tell whether it is being
7980 # built for inclusion in a dll (and should export symbols for example).
7981 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7982 # (--disable-auto-import) libraries
7983 lt_prog_compiler_pic='-DDLL_EXPORT'
7986 darwin* | rhapsody*)
7987 # PIC is the default on this platform
7988 # Common symbols not allowed in MH_DYLIB files
7989 lt_prog_compiler_pic='-fno-common'
7992 haiku*)
7993 # PIC is the default for Haiku.
7994 # The "-static" flag exists, but is broken.
7995 lt_prog_compiler_static=
7998 hpux*)
7999 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8000 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8001 # sets the default TLS model and affects inlining.
8002 case $host_cpu in
8003 hppa*64*)
8004 # +Z the default
8007 lt_prog_compiler_pic='-fPIC'
8009 esac
8012 interix[3-9]*)
8013 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8014 # Instead, we relocate shared libraries at runtime.
8017 msdosdjgpp*)
8018 # Just because we use GCC doesn't mean we suddenly get shared libraries
8019 # on systems that don't support them.
8020 lt_prog_compiler_can_build_shared=no
8021 enable_shared=no
8024 *nto* | *qnx*)
8025 # QNX uses GNU C++, but need to define -shared option too, otherwise
8026 # it will coredump.
8027 lt_prog_compiler_pic='-fPIC -shared'
8030 sysv4*MP*)
8031 if test -d /usr/nec; then
8032 lt_prog_compiler_pic=-Kconform_pic
8037 lt_prog_compiler_pic='-fPIC'
8039 esac
8041 case $cc_basename in
8042 nvcc*) # Cuda Compiler Driver 2.2
8043 lt_prog_compiler_wl='-Xlinker '
8044 lt_prog_compiler_pic='-Xcompiler -fPIC'
8046 esac
8047 else
8048 # PORTME Check for flag to pass linker flags through the system compiler.
8049 case $host_os in
8050 aix*)
8051 lt_prog_compiler_wl='-Wl,'
8052 if test "$host_cpu" = ia64; then
8053 # AIX 5 now supports IA64 processor
8054 lt_prog_compiler_static='-Bstatic'
8055 else
8056 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8060 mingw* | cygwin* | pw32* | os2* | cegcc*)
8061 # This hack is so that the source file can tell whether it is being
8062 # built for inclusion in a dll (and should export symbols for example).
8063 lt_prog_compiler_pic='-DDLL_EXPORT'
8066 hpux9* | hpux10* | hpux11*)
8067 lt_prog_compiler_wl='-Wl,'
8068 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8069 # not for PA HP-UX.
8070 case $host_cpu in
8071 hppa*64*|ia64*)
8072 # +Z the default
8075 lt_prog_compiler_pic='+Z'
8077 esac
8078 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8079 lt_prog_compiler_static='${wl}-a ${wl}archive'
8082 irix5* | irix6* | nonstopux*)
8083 lt_prog_compiler_wl='-Wl,'
8084 # PIC (with -KPIC) is the default.
8085 lt_prog_compiler_static='-non_shared'
8088 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8089 case $cc_basename in
8090 # old Intel for x86_64 which still supported -KPIC.
8091 ecc*)
8092 lt_prog_compiler_wl='-Wl,'
8093 lt_prog_compiler_pic='-KPIC'
8094 lt_prog_compiler_static='-static'
8096 # icc used to be incompatible with GCC.
8097 # ICC 10 doesn't accept -KPIC any more.
8098 icc* | ifort*)
8099 lt_prog_compiler_wl='-Wl,'
8100 lt_prog_compiler_pic='-fPIC'
8101 lt_prog_compiler_static='-static'
8103 # Lahey Fortran 8.1.
8104 lf95*)
8105 lt_prog_compiler_wl='-Wl,'
8106 lt_prog_compiler_pic='--shared'
8107 lt_prog_compiler_static='--static'
8109 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8110 # Portland Group compilers (*not* the Pentium gcc compiler,
8111 # which looks to be a dead project)
8112 lt_prog_compiler_wl='-Wl,'
8113 lt_prog_compiler_pic='-fpic'
8114 lt_prog_compiler_static='-Bstatic'
8116 ccc*)
8117 lt_prog_compiler_wl='-Wl,'
8118 # All Alpha code is PIC.
8119 lt_prog_compiler_static='-non_shared'
8121 xl* | bgxl* | bgf* | mpixl*)
8122 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8123 lt_prog_compiler_wl='-Wl,'
8124 lt_prog_compiler_pic='-qpic'
8125 lt_prog_compiler_static='-qstaticlink'
8128 case `$CC -V 2>&1 | sed 5q` in
8129 *Sun\ F* | *Sun*Fortran*)
8130 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8131 lt_prog_compiler_pic='-KPIC'
8132 lt_prog_compiler_static='-Bstatic'
8133 lt_prog_compiler_wl=''
8135 *Sun\ C*)
8136 # Sun C 5.9
8137 lt_prog_compiler_pic='-KPIC'
8138 lt_prog_compiler_static='-Bstatic'
8139 lt_prog_compiler_wl='-Wl,'
8141 esac
8143 esac
8146 newsos6)
8147 lt_prog_compiler_pic='-KPIC'
8148 lt_prog_compiler_static='-Bstatic'
8151 *nto* | *qnx*)
8152 # QNX uses GNU C++, but need to define -shared option too, otherwise
8153 # it will coredump.
8154 lt_prog_compiler_pic='-fPIC -shared'
8157 osf3* | osf4* | osf5*)
8158 lt_prog_compiler_wl='-Wl,'
8159 # All OSF/1 code is PIC.
8160 lt_prog_compiler_static='-non_shared'
8163 rdos*)
8164 lt_prog_compiler_static='-non_shared'
8167 solaris*)
8168 lt_prog_compiler_pic='-KPIC'
8169 lt_prog_compiler_static='-Bstatic'
8170 case $cc_basename in
8171 f77* | f90* | f95*)
8172 lt_prog_compiler_wl='-Qoption ld ';;
8174 lt_prog_compiler_wl='-Wl,';;
8175 esac
8178 sunos4*)
8179 lt_prog_compiler_wl='-Qoption ld '
8180 lt_prog_compiler_pic='-PIC'
8181 lt_prog_compiler_static='-Bstatic'
8184 sysv4 | sysv4.2uw2* | sysv4.3*)
8185 lt_prog_compiler_wl='-Wl,'
8186 lt_prog_compiler_pic='-KPIC'
8187 lt_prog_compiler_static='-Bstatic'
8190 sysv4*MP*)
8191 if test -d /usr/nec ;then
8192 lt_prog_compiler_pic='-Kconform_pic'
8193 lt_prog_compiler_static='-Bstatic'
8197 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8198 lt_prog_compiler_wl='-Wl,'
8199 lt_prog_compiler_pic='-KPIC'
8200 lt_prog_compiler_static='-Bstatic'
8203 unicos*)
8204 lt_prog_compiler_wl='-Wl,'
8205 lt_prog_compiler_can_build_shared=no
8208 uts4*)
8209 lt_prog_compiler_pic='-pic'
8210 lt_prog_compiler_static='-Bstatic'
8214 lt_prog_compiler_can_build_shared=no
8216 esac
8219 case $host_os in
8220 # For platforms which do not support PIC, -DPIC is meaningless:
8221 *djgpp*)
8222 lt_prog_compiler_pic=
8225 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8227 esac
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8229 $as_echo "$lt_prog_compiler_pic" >&6; }
8237 # Check to make sure the PIC flag actually works.
8239 if test -n "$lt_prog_compiler_pic"; then
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8241 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8242 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8243 $as_echo_n "(cached) " >&6
8244 else
8245 lt_cv_prog_compiler_pic_works=no
8246 ac_outfile=conftest.$ac_objext
8247 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8248 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8249 # Insert the option either (1) after the last *FLAGS variable, or
8250 # (2) before a word containing "conftest.", or (3) at the end.
8251 # Note that $ac_compile itself does not contain backslashes and begins
8252 # with a dollar sign (not a hyphen), so the echo should work correctly.
8253 # The option is referenced via a variable to avoid confusing sed.
8254 lt_compile=`echo "$ac_compile" | $SED \
8255 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8256 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8257 -e 's:$: $lt_compiler_flag:'`
8258 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8259 (eval "$lt_compile" 2>conftest.err)
8260 ac_status=$?
8261 cat conftest.err >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 if (exit $ac_status) && test -s "$ac_outfile"; then
8264 # The compiler can only warn and ignore the option if not recognized
8265 # So say no if there are warnings other than the usual output.
8266 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8267 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8268 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8269 lt_cv_prog_compiler_pic_works=yes
8272 $RM conftest*
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8276 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8278 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8279 case $lt_prog_compiler_pic in
8280 "" | " "*) ;;
8281 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8282 esac
8283 else
8284 lt_prog_compiler_pic=
8285 lt_prog_compiler_can_build_shared=no
8296 # Check to make sure the static flag actually works.
8298 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8300 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8301 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8302 $as_echo_n "(cached) " >&6
8303 else
8304 lt_cv_prog_compiler_static_works=no
8305 save_LDFLAGS="$LDFLAGS"
8306 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8307 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8308 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8309 # The linker can only warn and ignore the option if not recognized
8310 # So say no if there are warnings
8311 if test -s conftest.err; then
8312 # Append any errors to the config.log.
8313 cat conftest.err 1>&5
8314 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8315 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8316 if diff conftest.exp conftest.er2 >/dev/null; then
8317 lt_cv_prog_compiler_static_works=yes
8319 else
8320 lt_cv_prog_compiler_static_works=yes
8323 $RM -r conftest*
8324 LDFLAGS="$save_LDFLAGS"
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8328 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8330 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8332 else
8333 lt_prog_compiler_static=
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8343 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8344 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8345 $as_echo_n "(cached) " >&6
8346 else
8347 lt_cv_prog_compiler_c_o=no
8348 $RM -r conftest 2>/dev/null
8349 mkdir conftest
8350 cd conftest
8351 mkdir out
8352 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8354 lt_compiler_flag="-o out/conftest2.$ac_objext"
8355 # Insert the option either (1) after the last *FLAGS variable, or
8356 # (2) before a word containing "conftest.", or (3) at the end.
8357 # Note that $ac_compile itself does not contain backslashes and begins
8358 # with a dollar sign (not a hyphen), so the echo should work correctly.
8359 lt_compile=`echo "$ac_compile" | $SED \
8360 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8361 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8362 -e 's:$: $lt_compiler_flag:'`
8363 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8364 (eval "$lt_compile" 2>out/conftest.err)
8365 ac_status=$?
8366 cat out/conftest.err >&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8369 then
8370 # The compiler can only warn and ignore the option if not recognized
8371 # So say no if there are warnings
8372 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8373 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8374 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8375 lt_cv_prog_compiler_c_o=yes
8378 chmod u+w . 2>&5
8379 $RM conftest*
8380 # SGI C++ compiler will create directory out/ii_files/ for
8381 # template instantiation
8382 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8383 $RM out/* && rmdir out
8384 cd ..
8385 $RM -r conftest
8386 $RM conftest*
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8390 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8398 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8399 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8400 $as_echo_n "(cached) " >&6
8401 else
8402 lt_cv_prog_compiler_c_o=no
8403 $RM -r conftest 2>/dev/null
8404 mkdir conftest
8405 cd conftest
8406 mkdir out
8407 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8409 lt_compiler_flag="-o out/conftest2.$ac_objext"
8410 # Insert the option either (1) after the last *FLAGS variable, or
8411 # (2) before a word containing "conftest.", or (3) at the end.
8412 # Note that $ac_compile itself does not contain backslashes and begins
8413 # with a dollar sign (not a hyphen), so the echo should work correctly.
8414 lt_compile=`echo "$ac_compile" | $SED \
8415 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8416 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8417 -e 's:$: $lt_compiler_flag:'`
8418 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8419 (eval "$lt_compile" 2>out/conftest.err)
8420 ac_status=$?
8421 cat out/conftest.err >&5
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8424 then
8425 # The compiler can only warn and ignore the option if not recognized
8426 # So say no if there are warnings
8427 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8428 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8429 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8430 lt_cv_prog_compiler_c_o=yes
8433 chmod u+w . 2>&5
8434 $RM conftest*
8435 # SGI C++ compiler will create directory out/ii_files/ for
8436 # template instantiation
8437 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8438 $RM out/* && rmdir out
8439 cd ..
8440 $RM -r conftest
8441 $RM conftest*
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8445 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8450 hard_links="nottested"
8451 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8452 # do not overwrite the value of need_locks provided by the user
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8454 $as_echo_n "checking if we can lock with hard links... " >&6; }
8455 hard_links=yes
8456 $RM conftest*
8457 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8458 touch conftest.a
8459 ln conftest.a conftest.b 2>&5 || hard_links=no
8460 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8462 $as_echo "$hard_links" >&6; }
8463 if test "$hard_links" = no; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8465 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8466 need_locks=warn
8468 else
8469 need_locks=no
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8478 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8480 runpath_var=
8481 allow_undefined_flag=
8482 always_export_symbols=no
8483 archive_cmds=
8484 archive_expsym_cmds=
8485 compiler_needs_object=no
8486 enable_shared_with_static_runtimes=no
8487 export_dynamic_flag_spec=
8488 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8489 hardcode_automatic=no
8490 hardcode_direct=no
8491 hardcode_direct_absolute=no
8492 hardcode_libdir_flag_spec=
8493 hardcode_libdir_flag_spec_ld=
8494 hardcode_libdir_separator=
8495 hardcode_minus_L=no
8496 hardcode_shlibpath_var=unsupported
8497 inherit_rpath=no
8498 link_all_deplibs=unknown
8499 module_cmds=
8500 module_expsym_cmds=
8501 old_archive_from_new_cmds=
8502 old_archive_from_expsyms_cmds=
8503 thread_safe_flag_spec=
8504 whole_archive_flag_spec=
8505 # include_expsyms should be a list of space-separated symbols to be *always*
8506 # included in the symbol list
8507 include_expsyms=
8508 # exclude_expsyms can be an extended regexp of symbols to exclude
8509 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8510 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8511 # as well as any symbol that contains `d'.
8512 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8513 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8514 # platforms (ab)use it in PIC code, but their linkers get confused if
8515 # the symbol is explicitly referenced. Since portable code cannot
8516 # rely on this symbol name, it's probably fine to never include it in
8517 # preloaded symbol tables.
8518 # Exclude shared library initialization/finalization symbols.
8519 extract_expsyms_cmds=
8521 case $host_os in
8522 cygwin* | mingw* | pw32* | cegcc*)
8523 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8524 # When not using gcc, we currently assume that we are using
8525 # Microsoft Visual C++.
8526 if test "$GCC" != yes; then
8527 with_gnu_ld=no
8530 interix*)
8531 # we just hope/assume this is gcc and not c89 (= MSVC++)
8532 with_gnu_ld=yes
8534 openbsd*)
8535 with_gnu_ld=no
8537 esac
8539 ld_shlibs=yes
8541 # On some targets, GNU ld is compatible enough with the native linker
8542 # that we're better off using the native interface for both.
8543 lt_use_gnu_ld_interface=no
8544 if test "$with_gnu_ld" = yes; then
8545 case $host_os in
8546 aix*)
8547 # The AIX port of GNU ld has always aspired to compatibility
8548 # with the native linker. However, as the warning in the GNU ld
8549 # block says, versions before 2.19.5* couldn't really create working
8550 # shared libraries, regardless of the interface used.
8551 case `$LD -v 2>&1` in
8552 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8553 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8554 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8556 lt_use_gnu_ld_interface=yes
8558 esac
8561 lt_use_gnu_ld_interface=yes
8563 esac
8566 if test "$lt_use_gnu_ld_interface" = yes; then
8567 # If archive_cmds runs LD, not CC, wlarc should be empty
8568 wlarc='${wl}'
8570 # Set some defaults for GNU ld with shared library support. These
8571 # are reset later if shared libraries are not supported. Putting them
8572 # here allows them to be overridden if necessary.
8573 runpath_var=LD_RUN_PATH
8574 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8575 export_dynamic_flag_spec='${wl}--export-dynamic'
8576 # ancient GNU ld didn't support --whole-archive et. al.
8577 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8578 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8579 else
8580 whole_archive_flag_spec=
8582 supports_anon_versioning=no
8583 case `$LD -v 2>&1` in
8584 *GNU\ gold*) supports_anon_versioning=yes ;;
8585 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8586 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8587 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8588 *\ 2.11.*) ;; # other 2.11 versions
8589 *) supports_anon_versioning=yes ;;
8590 esac
8592 # See if GNU ld supports shared libraries.
8593 case $host_os in
8594 aix[3-9]*)
8595 # On AIX/PPC, the GNU linker is very broken
8596 if test "$host_cpu" != ia64; then
8597 ld_shlibs=no
8598 cat <<_LT_EOF 1>&2
8600 *** Warning: the GNU linker, at least up to release 2.19, is reported
8601 *** to be unable to reliably create shared libraries on AIX.
8602 *** Therefore, libtool is disabling shared libraries support. If you
8603 *** really care for shared libraries, you may want to install binutils
8604 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8605 *** You will then need to restart the configuration process.
8607 _LT_EOF
8611 amigaos*)
8612 case $host_cpu in
8613 powerpc)
8614 # see comment about AmigaOS4 .so support
8615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8616 archive_expsym_cmds=''
8618 m68k)
8619 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)'
8620 hardcode_libdir_flag_spec='-L$libdir'
8621 hardcode_minus_L=yes
8623 esac
8626 beos*)
8627 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8628 allow_undefined_flag=unsupported
8629 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8630 # support --undefined. This deserves some investigation. FIXME
8631 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8632 else
8633 ld_shlibs=no
8637 cygwin* | mingw* | pw32* | cegcc*)
8638 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8639 # as there is no search path for DLLs.
8640 hardcode_libdir_flag_spec='-L$libdir'
8641 export_dynamic_flag_spec='${wl}--export-all-symbols'
8642 allow_undefined_flag=unsupported
8643 always_export_symbols=no
8644 enable_shared_with_static_runtimes=yes
8645 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8647 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8649 # If the export-symbols file already is a .def file (1st line
8650 # is EXPORTS), use it as is; otherwise, prepend...
8651 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8652 cp $export_symbols $output_objdir/$soname.def;
8653 else
8654 echo EXPORTS > $output_objdir/$soname.def;
8655 cat $export_symbols >> $output_objdir/$soname.def;
8657 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8658 else
8659 ld_shlibs=no
8663 haiku*)
8664 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8665 link_all_deplibs=yes
8668 interix[3-9]*)
8669 hardcode_direct=no
8670 hardcode_shlibpath_var=no
8671 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8672 export_dynamic_flag_spec='${wl}-E'
8673 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8674 # Instead, shared libraries are loaded at an image base (0x10000000 by
8675 # default) and relocated if they conflict, which is a slow very memory
8676 # consuming and fragmenting process. To avoid this, we pick a random,
8677 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8678 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8679 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8680 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'
8683 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8684 tmp_diet=no
8685 if test "$host_os" = linux-dietlibc; then
8686 case $cc_basename in
8687 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8688 esac
8690 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8691 && test "$tmp_diet" = no
8692 then
8693 tmp_addflag=
8694 tmp_sharedflag='-shared'
8695 case $cc_basename,$host_cpu in
8696 pgcc*) # Portland Group C compiler
8697 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'
8698 tmp_addflag=' $pic_flag'
8700 pgf77* | pgf90* | pgf95* | pgfortran*)
8701 # Portland Group f77 and f90 compilers
8702 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'
8703 tmp_addflag=' $pic_flag -Mnomain' ;;
8704 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8705 tmp_addflag=' -i_dynamic' ;;
8706 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8707 tmp_addflag=' -i_dynamic -nofor_main' ;;
8708 ifc* | ifort*) # Intel Fortran compiler
8709 tmp_addflag=' -nofor_main' ;;
8710 lf95*) # Lahey Fortran 8.1
8711 whole_archive_flag_spec=
8712 tmp_sharedflag='--shared' ;;
8713 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8714 tmp_sharedflag='-qmkshrobj'
8715 tmp_addflag= ;;
8716 nvcc*) # Cuda Compiler Driver 2.2
8717 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'
8718 compiler_needs_object=yes
8720 esac
8721 case `$CC -V 2>&1 | sed 5q` in
8722 *Sun\ C*) # Sun C 5.9
8723 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'
8724 compiler_needs_object=yes
8725 tmp_sharedflag='-G' ;;
8726 *Sun\ F*) # Sun Fortran 8.3
8727 tmp_sharedflag='-G' ;;
8728 esac
8729 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8731 if test "x$supports_anon_versioning" = xyes; then
8732 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8733 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8734 echo "local: *; };" >> $output_objdir/$libname.ver~
8735 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8738 case $cc_basename in
8739 xlf* | bgf* | bgxlf* | mpixlf*)
8740 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8741 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8742 hardcode_libdir_flag_spec=
8743 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8744 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8745 if test "x$supports_anon_versioning" = xyes; then
8746 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8747 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8748 echo "local: *; };" >> $output_objdir/$libname.ver~
8749 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8752 esac
8753 else
8754 ld_shlibs=no
8758 netbsd*)
8759 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8760 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8761 wlarc=
8762 else
8763 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8764 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8768 solaris*)
8769 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8770 ld_shlibs=no
8771 cat <<_LT_EOF 1>&2
8773 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8774 *** create shared libraries on Solaris systems. Therefore, libtool
8775 *** is disabling shared libraries support. We urge you to upgrade GNU
8776 *** binutils to release 2.9.1 or newer. Another option is to modify
8777 *** your PATH or compiler configuration so that the native linker is
8778 *** used, and then restart.
8780 _LT_EOF
8781 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8783 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8784 else
8785 ld_shlibs=no
8789 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8790 case `$LD -v 2>&1` in
8791 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8792 ld_shlibs=no
8793 cat <<_LT_EOF 1>&2
8795 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8796 *** reliably create shared libraries on SCO systems. Therefore, libtool
8797 *** is disabling shared libraries support. We urge you to upgrade GNU
8798 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8799 *** your PATH or compiler configuration so that the native linker is
8800 *** used, and then restart.
8802 _LT_EOF
8805 # For security reasons, it is highly recommended that you always
8806 # use absolute paths for naming shared libraries, and exclude the
8807 # DT_RUNPATH tag from executables and libraries. But doing so
8808 # requires that you compile everything twice, which is a pain.
8809 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8810 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8811 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8812 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8813 else
8814 ld_shlibs=no
8817 esac
8820 sunos4*)
8821 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8822 wlarc=
8823 hardcode_direct=yes
8824 hardcode_shlibpath_var=no
8828 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8829 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8830 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8831 else
8832 ld_shlibs=no
8835 esac
8837 if test "$ld_shlibs" = no; then
8838 runpath_var=
8839 hardcode_libdir_flag_spec=
8840 export_dynamic_flag_spec=
8841 whole_archive_flag_spec=
8843 else
8844 # PORTME fill in a description of your system's linker (not GNU ld)
8845 case $host_os in
8846 aix3*)
8847 allow_undefined_flag=unsupported
8848 always_export_symbols=yes
8849 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'
8850 # Note: this linker hardcodes the directories in LIBPATH if there
8851 # are no directories specified by -L.
8852 hardcode_minus_L=yes
8853 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8854 # Neither direct hardcoding nor static linking is supported with a
8855 # broken collect2.
8856 hardcode_direct=unsupported
8860 aix[4-9]*)
8861 if test "$host_cpu" = ia64; then
8862 # On IA64, the linker does run time linking by default, so we don't
8863 # have to do anything special.
8864 aix_use_runtimelinking=no
8865 exp_sym_flag='-Bexport'
8866 no_entry_flag=""
8867 else
8868 # If we're using GNU nm, then we don't want the "-C" option.
8869 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8870 # Also, AIX nm treats weak defined symbols like other global
8871 # defined symbols, whereas GNU nm marks them as "W".
8872 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8873 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'
8874 else
8875 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'
8877 aix_use_runtimelinking=no
8879 # Test if we are trying to use run time linking or normal
8880 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8881 # need to do runtime linking.
8882 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8883 for ld_flag in $LDFLAGS; do
8884 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8885 aix_use_runtimelinking=yes
8886 break
8888 done
8890 esac
8892 exp_sym_flag='-bexport'
8893 no_entry_flag='-bnoentry'
8896 # When large executables or shared objects are built, AIX ld can
8897 # have problems creating the table of contents. If linking a library
8898 # or program results in "error TOC overflow" add -mminimal-toc to
8899 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8900 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8902 archive_cmds=''
8903 hardcode_direct=yes
8904 hardcode_direct_absolute=yes
8905 hardcode_libdir_separator=':'
8906 link_all_deplibs=yes
8907 file_list_spec='${wl}-f,'
8909 if test "$GCC" = yes; then
8910 case $host_os in aix4.[012]|aix4.[012].*)
8911 # We only want to do this on AIX 4.2 and lower, the check
8912 # below for broken collect2 doesn't work under 4.3+
8913 collect2name=`${CC} -print-prog-name=collect2`
8914 if test -f "$collect2name" &&
8915 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8916 then
8917 # We have reworked collect2
8919 else
8920 # We have old collect2
8921 hardcode_direct=unsupported
8922 # It fails to find uninstalled libraries when the uninstalled
8923 # path is not listed in the libpath. Setting hardcode_minus_L
8924 # to unsupported forces relinking
8925 hardcode_minus_L=yes
8926 hardcode_libdir_flag_spec='-L$libdir'
8927 hardcode_libdir_separator=
8930 esac
8931 shared_flag='-shared'
8932 if test "$aix_use_runtimelinking" = yes; then
8933 shared_flag="$shared_flag "'${wl}-G'
8935 else
8936 # not using gcc
8937 if test "$host_cpu" = ia64; then
8938 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8939 # chokes on -Wl,-G. The following line is correct:
8940 shared_flag='-G'
8941 else
8942 if test "$aix_use_runtimelinking" = yes; then
8943 shared_flag='${wl}-G'
8944 else
8945 shared_flag='${wl}-bM:SRE'
8950 export_dynamic_flag_spec='${wl}-bexpall'
8951 # It seems that -bexpall does not export symbols beginning with
8952 # underscore (_), so it is better to generate a list of symbols to export.
8953 always_export_symbols=yes
8954 if test "$aix_use_runtimelinking" = yes; then
8955 # Warning - without using the other runtime loading flags (-brtl),
8956 # -berok will link without error, but may produce a broken library.
8957 allow_undefined_flag='-berok'
8958 # Determine the default libpath from the value encoded in an
8959 # empty executable.
8960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h. */
8964 main ()
8968 return 0;
8970 _ACEOF
8971 if ac_fn_c_try_link "$LINENO"; then :
8973 lt_aix_libpath_sed='
8974 /Import File Strings/,/^$/ {
8975 /^0/ {
8976 s/^0 *\(.*\)$/\1/
8980 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8981 # Check for a 64-bit object if we didn't find anything.
8982 if test -z "$aix_libpath"; then
8983 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8986 rm -f core conftest.err conftest.$ac_objext \
8987 conftest$ac_exeext conftest.$ac_ext
8988 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8990 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8991 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"
8992 else
8993 if test "$host_cpu" = ia64; then
8994 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8995 allow_undefined_flag="-z nodefs"
8996 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"
8997 else
8998 # Determine the default libpath from the value encoded in an
8999 # empty executable.
9000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001 /* end confdefs.h. */
9004 main ()
9008 return 0;
9010 _ACEOF
9011 if ac_fn_c_try_link "$LINENO"; then :
9013 lt_aix_libpath_sed='
9014 /Import File Strings/,/^$/ {
9015 /^0/ {
9016 s/^0 *\(.*\)$/\1/
9020 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9021 # Check for a 64-bit object if we didn't find anything.
9022 if test -z "$aix_libpath"; then
9023 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9026 rm -f core conftest.err conftest.$ac_objext \
9027 conftest$ac_exeext conftest.$ac_ext
9028 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9030 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9031 # Warning - without using the other run time loading flags,
9032 # -berok will link without error, but may produce a broken library.
9033 no_undefined_flag=' ${wl}-bernotok'
9034 allow_undefined_flag=' ${wl}-berok'
9035 if test "$with_gnu_ld" = yes; then
9036 # We only use this code for GNU lds that support --whole-archive.
9037 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9038 else
9039 # Exported symbols can be pulled into shared objects from archives
9040 whole_archive_flag_spec='$convenience'
9042 archive_cmds_need_lc=yes
9043 # This is similar to how AIX traditionally builds its shared libraries.
9044 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'
9049 amigaos*)
9050 case $host_cpu in
9051 powerpc)
9052 # see comment about AmigaOS4 .so support
9053 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9054 archive_expsym_cmds=''
9056 m68k)
9057 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)'
9058 hardcode_libdir_flag_spec='-L$libdir'
9059 hardcode_minus_L=yes
9061 esac
9064 bsdi[45]*)
9065 export_dynamic_flag_spec=-rdynamic
9068 cygwin* | mingw* | pw32* | cegcc*)
9069 # When not using gcc, we currently assume that we are using
9070 # Microsoft Visual C++.
9071 # hardcode_libdir_flag_spec is actually meaningless, as there is
9072 # no search path for DLLs.
9073 hardcode_libdir_flag_spec=' '
9074 allow_undefined_flag=unsupported
9075 # Tell ltmain to make .lib files, not .a files.
9076 libext=lib
9077 # Tell ltmain to make .dll files, not .so files.
9078 shrext_cmds=".dll"
9079 # FIXME: Setting linknames here is a bad hack.
9080 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9081 # The linker will automatically build a .lib file if we build a DLL.
9082 old_archive_from_new_cmds='true'
9083 # FIXME: Should let the user specify the lib program.
9084 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9085 fix_srcfile_path='`cygpath -w "$srcfile"`'
9086 enable_shared_with_static_runtimes=yes
9089 darwin* | rhapsody*)
9092 archive_cmds_need_lc=no
9093 hardcode_direct=no
9094 hardcode_automatic=yes
9095 hardcode_shlibpath_var=unsupported
9096 if test "$lt_cv_ld_force_load" = "yes"; then
9097 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\"`'
9098 else
9099 whole_archive_flag_spec=''
9101 link_all_deplibs=yes
9102 allow_undefined_flag="$_lt_dar_allow_undefined"
9103 case $cc_basename in
9104 ifort*) _lt_dar_can_shared=yes ;;
9105 *) _lt_dar_can_shared=$GCC ;;
9106 esac
9107 if test "$_lt_dar_can_shared" = "yes"; then
9108 output_verbose_link_cmd=func_echo_all
9109 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9110 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9111 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}"
9112 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}"
9114 else
9115 ld_shlibs=no
9120 dgux*)
9121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9122 hardcode_libdir_flag_spec='-L$libdir'
9123 hardcode_shlibpath_var=no
9126 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9127 # support. Future versions do this automatically, but an explicit c++rt0.o
9128 # does not break anything, and helps significantly (at the cost of a little
9129 # extra space).
9130 freebsd2.2*)
9131 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9132 hardcode_libdir_flag_spec='-R$libdir'
9133 hardcode_direct=yes
9134 hardcode_shlibpath_var=no
9137 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9138 freebsd2.*)
9139 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9140 hardcode_direct=yes
9141 hardcode_minus_L=yes
9142 hardcode_shlibpath_var=no
9145 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9146 freebsd* | dragonfly*)
9147 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9148 hardcode_libdir_flag_spec='-R$libdir'
9149 hardcode_direct=yes
9150 hardcode_shlibpath_var=no
9153 hpux9*)
9154 if test "$GCC" = yes; then
9155 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'
9156 else
9157 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'
9159 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9160 hardcode_libdir_separator=:
9161 hardcode_direct=yes
9163 # hardcode_minus_L: Not really in the search PATH,
9164 # but as the default location of the library.
9165 hardcode_minus_L=yes
9166 export_dynamic_flag_spec='${wl}-E'
9169 hpux10*)
9170 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9171 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9172 else
9173 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9175 if test "$with_gnu_ld" = no; then
9176 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9177 hardcode_libdir_flag_spec_ld='+b $libdir'
9178 hardcode_libdir_separator=:
9179 hardcode_direct=yes
9180 hardcode_direct_absolute=yes
9181 export_dynamic_flag_spec='${wl}-E'
9182 # hardcode_minus_L: Not really in the search PATH,
9183 # but as the default location of the library.
9184 hardcode_minus_L=yes
9188 hpux11*)
9189 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9190 case $host_cpu in
9191 hppa*64*)
9192 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9194 ia64*)
9195 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9198 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9200 esac
9201 else
9202 case $host_cpu in
9203 hppa*64*)
9204 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9206 ia64*)
9207 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9211 # Older versions of the 11.00 compiler do not understand -b yet
9212 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9214 $as_echo_n "checking if $CC understands -b... " >&6; }
9215 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9216 $as_echo_n "(cached) " >&6
9217 else
9218 lt_cv_prog_compiler__b=no
9219 save_LDFLAGS="$LDFLAGS"
9220 LDFLAGS="$LDFLAGS -b"
9221 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9222 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9223 # The linker can only warn and ignore the option if not recognized
9224 # So say no if there are warnings
9225 if test -s conftest.err; then
9226 # Append any errors to the config.log.
9227 cat conftest.err 1>&5
9228 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9229 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9230 if diff conftest.exp conftest.er2 >/dev/null; then
9231 lt_cv_prog_compiler__b=yes
9233 else
9234 lt_cv_prog_compiler__b=yes
9237 $RM -r conftest*
9238 LDFLAGS="$save_LDFLAGS"
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9242 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9244 if test x"$lt_cv_prog_compiler__b" = xyes; then
9245 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9246 else
9247 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9251 esac
9253 if test "$with_gnu_ld" = no; then
9254 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9255 hardcode_libdir_separator=:
9257 case $host_cpu in
9258 hppa*64*|ia64*)
9259 hardcode_direct=no
9260 hardcode_shlibpath_var=no
9263 hardcode_direct=yes
9264 hardcode_direct_absolute=yes
9265 export_dynamic_flag_spec='${wl}-E'
9267 # hardcode_minus_L: Not really in the search PATH,
9268 # but as the default location of the library.
9269 hardcode_minus_L=yes
9271 esac
9275 irix5* | irix6* | nonstopux*)
9276 if test "$GCC" = yes; then
9277 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'
9278 # Try to use the -exported_symbol ld option, if it does not
9279 # work, assume that -exports_file does not work either and
9280 # implicitly export all symbols.
9281 save_LDFLAGS="$LDFLAGS"
9282 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9284 /* end confdefs.h. */
9285 int foo(void) {}
9286 _ACEOF
9287 if ac_fn_c_try_link "$LINENO"; then :
9288 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'
9291 rm -f core conftest.err conftest.$ac_objext \
9292 conftest$ac_exeext conftest.$ac_ext
9293 LDFLAGS="$save_LDFLAGS"
9294 else
9295 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'
9296 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'
9298 archive_cmds_need_lc='no'
9299 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9300 hardcode_libdir_separator=:
9301 inherit_rpath=yes
9302 link_all_deplibs=yes
9305 netbsd*)
9306 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9307 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9308 else
9309 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9311 hardcode_libdir_flag_spec='-R$libdir'
9312 hardcode_direct=yes
9313 hardcode_shlibpath_var=no
9316 newsos6)
9317 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9318 hardcode_direct=yes
9319 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9320 hardcode_libdir_separator=:
9321 hardcode_shlibpath_var=no
9324 *nto* | *qnx*)
9327 openbsd*)
9328 if test -f /usr/libexec/ld.so; then
9329 hardcode_direct=yes
9330 hardcode_shlibpath_var=no
9331 hardcode_direct_absolute=yes
9332 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9333 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9334 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9335 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9336 export_dynamic_flag_spec='${wl}-E'
9337 else
9338 case $host_os in
9339 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9340 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9341 hardcode_libdir_flag_spec='-R$libdir'
9344 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9345 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9347 esac
9349 else
9350 ld_shlibs=no
9354 os2*)
9355 hardcode_libdir_flag_spec='-L$libdir'
9356 hardcode_minus_L=yes
9357 allow_undefined_flag=unsupported
9358 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'
9359 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9362 osf3*)
9363 if test "$GCC" = yes; then
9364 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9365 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'
9366 else
9367 allow_undefined_flag=' -expect_unresolved \*'
9368 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'
9370 archive_cmds_need_lc='no'
9371 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9372 hardcode_libdir_separator=:
9375 osf4* | osf5*) # as osf3* with the addition of -msym flag
9376 if test "$GCC" = yes; then
9377 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9378 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'
9379 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9380 else
9381 allow_undefined_flag=' -expect_unresolved \*'
9382 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'
9383 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~
9384 $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'
9386 # Both c and cxx compiler support -rpath directly
9387 hardcode_libdir_flag_spec='-rpath $libdir'
9389 archive_cmds_need_lc='no'
9390 hardcode_libdir_separator=:
9393 solaris*)
9394 no_undefined_flag=' -z defs'
9395 if test "$GCC" = yes; then
9396 wlarc='${wl}'
9397 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9398 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9399 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9400 else
9401 case `$CC -V 2>&1` in
9402 *"Compilers 5.0"*)
9403 wlarc=''
9404 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9405 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9406 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9409 wlarc='${wl}'
9410 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9411 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9412 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9414 esac
9416 hardcode_libdir_flag_spec='-R$libdir'
9417 hardcode_shlibpath_var=no
9418 case $host_os in
9419 solaris2.[0-5] | solaris2.[0-5].*) ;;
9421 # The compiler driver will combine and reorder linker options,
9422 # but understands `-z linker_flag'. GCC discards it without `$wl',
9423 # but is careful enough not to reorder.
9424 # Supported since Solaris 2.6 (maybe 2.5.1?)
9425 if test "$GCC" = yes; then
9426 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9427 else
9428 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9431 esac
9432 link_all_deplibs=yes
9435 sunos4*)
9436 if test "x$host_vendor" = xsequent; then
9437 # Use $CC to link under sequent, because it throws in some extra .o
9438 # files that make .init and .fini sections work.
9439 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9440 else
9441 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9443 hardcode_libdir_flag_spec='-L$libdir'
9444 hardcode_direct=yes
9445 hardcode_minus_L=yes
9446 hardcode_shlibpath_var=no
9449 sysv4)
9450 case $host_vendor in
9451 sni)
9452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9453 hardcode_direct=yes # is this really true???
9455 siemens)
9456 ## LD is ld it makes a PLAMLIB
9457 ## CC just makes a GrossModule.
9458 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9459 reload_cmds='$CC -r -o $output$reload_objs'
9460 hardcode_direct=no
9462 motorola)
9463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9464 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9466 esac
9467 runpath_var='LD_RUN_PATH'
9468 hardcode_shlibpath_var=no
9471 sysv4.3*)
9472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9473 hardcode_shlibpath_var=no
9474 export_dynamic_flag_spec='-Bexport'
9477 sysv4*MP*)
9478 if test -d /usr/nec; then
9479 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9480 hardcode_shlibpath_var=no
9481 runpath_var=LD_RUN_PATH
9482 hardcode_runpath_var=yes
9483 ld_shlibs=yes
9487 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9488 no_undefined_flag='${wl}-z,text'
9489 archive_cmds_need_lc=no
9490 hardcode_shlibpath_var=no
9491 runpath_var='LD_RUN_PATH'
9493 if test "$GCC" = yes; then
9494 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9495 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9496 else
9497 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9498 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9502 sysv5* | sco3.2v5* | sco5v6*)
9503 # Note: We can NOT use -z defs as we might desire, because we do not
9504 # link with -lc, and that would cause any symbols used from libc to
9505 # always be unresolved, which means just about no library would
9506 # ever link correctly. If we're not using GNU ld we use -z text
9507 # though, which does catch some bad symbols but isn't as heavy-handed
9508 # as -z defs.
9509 no_undefined_flag='${wl}-z,text'
9510 allow_undefined_flag='${wl}-z,nodefs'
9511 archive_cmds_need_lc=no
9512 hardcode_shlibpath_var=no
9513 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9514 hardcode_libdir_separator=':'
9515 link_all_deplibs=yes
9516 export_dynamic_flag_spec='${wl}-Bexport'
9517 runpath_var='LD_RUN_PATH'
9519 if test "$GCC" = yes; then
9520 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9521 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9522 else
9523 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9524 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9528 uts4*)
9529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9530 hardcode_libdir_flag_spec='-L$libdir'
9531 hardcode_shlibpath_var=no
9535 ld_shlibs=no
9537 esac
9539 if test x$host_vendor = xsni; then
9540 case $host in
9541 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9542 export_dynamic_flag_spec='${wl}-Blargedynsym'
9544 esac
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9549 $as_echo "$ld_shlibs" >&6; }
9550 test "$ld_shlibs" = no && can_build_shared=no
9552 with_gnu_ld=$with_gnu_ld
9569 # Do we need to explicitly link libc?
9571 case "x$archive_cmds_need_lc" in
9572 x|xyes)
9573 # Assume -lc should be added
9574 archive_cmds_need_lc=yes
9576 if test "$enable_shared" = yes && test "$GCC" = yes; then
9577 case $archive_cmds in
9578 *'~'*)
9579 # FIXME: we may have to deal with multi-command sequences.
9581 '$CC '*)
9582 # Test whether the compiler implicitly links with -lc since on some
9583 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9584 # to ld, don't add -lc before -lgcc.
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9586 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9587 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9588 $as_echo_n "(cached) " >&6
9589 else
9590 $RM conftest*
9591 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9594 (eval $ac_compile) 2>&5
9595 ac_status=$?
9596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9597 test $ac_status = 0; } 2>conftest.err; then
9598 soname=conftest
9599 lib=conftest
9600 libobjs=conftest.$ac_objext
9601 deplibs=
9602 wl=$lt_prog_compiler_wl
9603 pic_flag=$lt_prog_compiler_pic
9604 compiler_flags=-v
9605 linker_flags=-v
9606 verstring=
9607 output_objdir=.
9608 libname=conftest
9609 lt_save_allow_undefined_flag=$allow_undefined_flag
9610 allow_undefined_flag=
9611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9612 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9613 ac_status=$?
9614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9615 test $ac_status = 0; }
9616 then
9617 lt_cv_archive_cmds_need_lc=no
9618 else
9619 lt_cv_archive_cmds_need_lc=yes
9621 allow_undefined_flag=$lt_save_allow_undefined_flag
9622 else
9623 cat conftest.err 1>&5
9625 $RM conftest*
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9629 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9630 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9632 esac
9635 esac
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9794 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9796 if test "$GCC" = yes; then
9797 case $host_os in
9798 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9799 *) lt_awk_arg="/^libraries:/" ;;
9800 esac
9801 case $host_os in
9802 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9803 *) lt_sed_strip_eq="s,=/,/,g" ;;
9804 esac
9805 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9806 case $lt_search_path_spec in
9807 *\;*)
9808 # if the path contains ";" then we assume it to be the separator
9809 # otherwise default to the standard path separator (i.e. ":") - it is
9810 # assumed that no part of a normal pathname contains ";" but that should
9811 # okay in the real world where ";" in dirpaths is itself problematic.
9812 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9815 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9817 esac
9818 # Ok, now we have the path, separated by spaces, we can step through it
9819 # and add multilib dir if necessary.
9820 lt_tmp_lt_search_path_spec=
9821 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9822 for lt_sys_path in $lt_search_path_spec; do
9823 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9824 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9825 else
9826 test -d "$lt_sys_path" && \
9827 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9829 done
9830 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9831 BEGIN {RS=" "; FS="/|\n";} {
9832 lt_foo="";
9833 lt_count=0;
9834 for (lt_i = NF; lt_i > 0; lt_i--) {
9835 if ($lt_i != "" && $lt_i != ".") {
9836 if ($lt_i == "..") {
9837 lt_count++;
9838 } else {
9839 if (lt_count == 0) {
9840 lt_foo="/" $lt_i lt_foo;
9841 } else {
9842 lt_count--;
9847 if (lt_foo != "") { lt_freq[lt_foo]++; }
9848 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9850 # AWK program above erroneously prepends '/' to C:/dos/paths
9851 # for these hosts.
9852 case $host_os in
9853 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9854 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9855 esac
9856 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9857 else
9858 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9860 library_names_spec=
9861 libname_spec='lib$name'
9862 soname_spec=
9863 shrext_cmds=".so"
9864 postinstall_cmds=
9865 postuninstall_cmds=
9866 finish_cmds=
9867 finish_eval=
9868 shlibpath_var=
9869 shlibpath_overrides_runpath=unknown
9870 version_type=none
9871 dynamic_linker="$host_os ld.so"
9872 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9873 need_lib_prefix=unknown
9874 hardcode_into_libs=no
9876 # when you set need_version to no, make sure it does not cause -set_version
9877 # flags to be left without arguments
9878 need_version=unknown
9880 case $host_os in
9881 aix3*)
9882 version_type=linux
9883 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9884 shlibpath_var=LIBPATH
9886 # AIX 3 has no versioning support, so we append a major version to the name.
9887 soname_spec='${libname}${release}${shared_ext}$major'
9890 aix[4-9]*)
9891 version_type=linux
9892 need_lib_prefix=no
9893 need_version=no
9894 hardcode_into_libs=yes
9895 if test "$host_cpu" = ia64; then
9896 # AIX 5 supports IA64
9897 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9898 shlibpath_var=LD_LIBRARY_PATH
9899 else
9900 # With GCC up to 2.95.x, collect2 would create an import file
9901 # for dependence libraries. The import file would start with
9902 # the line `#! .'. This would cause the generated library to
9903 # depend on `.', always an invalid library. This was fixed in
9904 # development snapshots of GCC prior to 3.0.
9905 case $host_os in
9906 aix4 | aix4.[01] | aix4.[01].*)
9907 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9908 echo ' yes '
9909 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9911 else
9912 can_build_shared=no
9915 esac
9916 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9917 # soname into executable. Probably we can add versioning support to
9918 # collect2, so additional links can be useful in future.
9919 if test "$aix_use_runtimelinking" = yes; then
9920 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9921 # instead of lib<name>.a to let people know that these are not
9922 # typical AIX shared libraries.
9923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9924 else
9925 # We preserve .a as extension for shared libraries through AIX4.2
9926 # and later when we are not doing run time linking.
9927 library_names_spec='${libname}${release}.a $libname.a'
9928 soname_spec='${libname}${release}${shared_ext}$major'
9930 shlibpath_var=LIBPATH
9934 amigaos*)
9935 case $host_cpu in
9936 powerpc)
9937 # Since July 2007 AmigaOS4 officially supports .so libraries.
9938 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9941 m68k)
9942 library_names_spec='$libname.ixlibrary $libname.a'
9943 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9944 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'
9946 esac
9949 beos*)
9950 library_names_spec='${libname}${shared_ext}'
9951 dynamic_linker="$host_os ld.so"
9952 shlibpath_var=LIBRARY_PATH
9955 bsdi[45]*)
9956 version_type=linux
9957 need_version=no
9958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9959 soname_spec='${libname}${release}${shared_ext}$major'
9960 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9961 shlibpath_var=LD_LIBRARY_PATH
9962 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9963 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9964 # the default ld.so.conf also contains /usr/contrib/lib and
9965 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9966 # libtool to hard-code these into programs
9969 cygwin* | mingw* | pw32* | cegcc*)
9970 version_type=windows
9971 shrext_cmds=".dll"
9972 need_version=no
9973 need_lib_prefix=no
9975 case $GCC,$host_os in
9976 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9977 library_names_spec='$libname.dll.a'
9978 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9979 postinstall_cmds='base_file=`basename \${file}`~
9980 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9981 dldir=$destdir/`dirname \$dlpath`~
9982 test -d \$dldir || mkdir -p \$dldir~
9983 $install_prog $dir/$dlname \$dldir/$dlname~
9984 chmod a+x \$dldir/$dlname~
9985 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9986 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9988 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9989 dlpath=$dir/\$dldll~
9990 $RM \$dlpath'
9991 shlibpath_overrides_runpath=yes
9993 case $host_os in
9994 cygwin*)
9995 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9996 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9998 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10000 mingw* | cegcc*)
10001 # MinGW DLLs use traditional 'lib' prefix
10002 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10004 pw32*)
10005 # pw32 DLLs use 'pw' prefix rather than 'lib'
10006 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10008 esac
10012 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10014 esac
10015 dynamic_linker='Win32 ld.exe'
10016 # FIXME: first we should search . and the directory the executable is in
10017 shlibpath_var=PATH
10020 darwin* | rhapsody*)
10021 dynamic_linker="$host_os dyld"
10022 version_type=darwin
10023 need_lib_prefix=no
10024 need_version=no
10025 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10026 soname_spec='${libname}${release}${major}$shared_ext'
10027 shlibpath_overrides_runpath=yes
10028 shlibpath_var=DYLD_LIBRARY_PATH
10029 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10031 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10032 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10035 dgux*)
10036 version_type=linux
10037 need_lib_prefix=no
10038 need_version=no
10039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10040 soname_spec='${libname}${release}${shared_ext}$major'
10041 shlibpath_var=LD_LIBRARY_PATH
10044 freebsd* | dragonfly*)
10045 # DragonFly does not have aout. When/if they implement a new
10046 # versioning mechanism, adjust this.
10047 if test -x /usr/bin/objformat; then
10048 objformat=`/usr/bin/objformat`
10049 else
10050 case $host_os in
10051 freebsd[23].*) objformat=aout ;;
10052 *) objformat=elf ;;
10053 esac
10055 version_type=freebsd-$objformat
10056 case $version_type in
10057 freebsd-elf*)
10058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10059 need_version=no
10060 need_lib_prefix=no
10062 freebsd-*)
10063 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10064 need_version=yes
10066 esac
10067 shlibpath_var=LD_LIBRARY_PATH
10068 case $host_os in
10069 freebsd2.*)
10070 shlibpath_overrides_runpath=yes
10072 freebsd3.[01]* | freebsdelf3.[01]*)
10073 shlibpath_overrides_runpath=yes
10074 hardcode_into_libs=yes
10076 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10077 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10078 shlibpath_overrides_runpath=no
10079 hardcode_into_libs=yes
10081 *) # from 4.6 on, and DragonFly
10082 shlibpath_overrides_runpath=yes
10083 hardcode_into_libs=yes
10085 esac
10088 gnu*)
10089 version_type=linux
10090 need_lib_prefix=no
10091 need_version=no
10092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10093 soname_spec='${libname}${release}${shared_ext}$major'
10094 shlibpath_var=LD_LIBRARY_PATH
10095 hardcode_into_libs=yes
10098 haiku*)
10099 version_type=linux
10100 need_lib_prefix=no
10101 need_version=no
10102 dynamic_linker="$host_os runtime_loader"
10103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10104 soname_spec='${libname}${release}${shared_ext}$major'
10105 shlibpath_var=LIBRARY_PATH
10106 shlibpath_overrides_runpath=yes
10107 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10108 hardcode_into_libs=yes
10111 hpux9* | hpux10* | hpux11*)
10112 # Give a soname corresponding to the major version so that dld.sl refuses to
10113 # link against other versions.
10114 version_type=sunos
10115 need_lib_prefix=no
10116 need_version=no
10117 case $host_cpu in
10118 ia64*)
10119 shrext_cmds='.so'
10120 hardcode_into_libs=yes
10121 dynamic_linker="$host_os dld.so"
10122 shlibpath_var=LD_LIBRARY_PATH
10123 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10125 soname_spec='${libname}${release}${shared_ext}$major'
10126 if test "X$HPUX_IA64_MODE" = X32; then
10127 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10128 else
10129 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10131 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10133 hppa*64*)
10134 shrext_cmds='.sl'
10135 hardcode_into_libs=yes
10136 dynamic_linker="$host_os dld.sl"
10137 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10138 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10140 soname_spec='${libname}${release}${shared_ext}$major'
10141 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10142 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10145 shrext_cmds='.sl'
10146 dynamic_linker="$host_os dld.sl"
10147 shlibpath_var=SHLIB_PATH
10148 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10150 soname_spec='${libname}${release}${shared_ext}$major'
10152 esac
10153 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10154 postinstall_cmds='chmod 555 $lib'
10155 # or fails outright, so override atomically:
10156 install_override_mode=555
10159 interix[3-9]*)
10160 version_type=linux
10161 need_lib_prefix=no
10162 need_version=no
10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10164 soname_spec='${libname}${release}${shared_ext}$major'
10165 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10166 shlibpath_var=LD_LIBRARY_PATH
10167 shlibpath_overrides_runpath=no
10168 hardcode_into_libs=yes
10171 irix5* | irix6* | nonstopux*)
10172 case $host_os in
10173 nonstopux*) version_type=nonstopux ;;
10175 if test "$lt_cv_prog_gnu_ld" = yes; then
10176 version_type=linux
10177 else
10178 version_type=irix
10179 fi ;;
10180 esac
10181 need_lib_prefix=no
10182 need_version=no
10183 soname_spec='${libname}${release}${shared_ext}$major'
10184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10185 case $host_os in
10186 irix5* | nonstopux*)
10187 libsuff= shlibsuff=
10190 case $LD in # libtool.m4 will add one of these switches to LD
10191 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10192 libsuff= shlibsuff= libmagic=32-bit;;
10193 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10194 libsuff=32 shlibsuff=N32 libmagic=N32;;
10195 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10196 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10197 *) libsuff= shlibsuff= libmagic=never-match;;
10198 esac
10200 esac
10201 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10202 shlibpath_overrides_runpath=no
10203 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10204 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10205 hardcode_into_libs=yes
10208 # No shared lib support for Linux oldld, aout, or coff.
10209 linux*oldld* | linux*aout* | linux*coff*)
10210 dynamic_linker=no
10213 # This must be Linux ELF.
10214 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10215 version_type=linux
10216 need_lib_prefix=no
10217 need_version=no
10218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10219 soname_spec='${libname}${release}${shared_ext}$major'
10220 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10221 shlibpath_var=LD_LIBRARY_PATH
10222 shlibpath_overrides_runpath=no
10224 # Some binutils ld are patched to set DT_RUNPATH
10225 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10226 $as_echo_n "(cached) " >&6
10227 else
10228 lt_cv_shlibpath_overrides_runpath=no
10229 save_LDFLAGS=$LDFLAGS
10230 save_libdir=$libdir
10231 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10232 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10234 /* end confdefs.h. */
10237 main ()
10241 return 0;
10243 _ACEOF
10244 if ac_fn_c_try_link "$LINENO"; then :
10245 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10246 lt_cv_shlibpath_overrides_runpath=yes
10249 rm -f core conftest.err conftest.$ac_objext \
10250 conftest$ac_exeext conftest.$ac_ext
10251 LDFLAGS=$save_LDFLAGS
10252 libdir=$save_libdir
10256 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10258 # This implies no fast_install, which is unacceptable.
10259 # Some rework will be needed to allow for fast_install
10260 # before this can be enabled.
10261 hardcode_into_libs=yes
10263 # Append ld.so.conf contents to the search path
10264 if test -f /etc/ld.so.conf; then
10265 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' ' '`
10266 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10269 # We used to test for /lib/ld.so.1 and disable shared libraries on
10270 # powerpc, because MkLinux only supported shared libraries with the
10271 # GNU dynamic linker. Since this was broken with cross compilers,
10272 # most powerpc-linux boxes support dynamic linking these days and
10273 # people can always --disable-shared, the test was removed, and we
10274 # assume the GNU/Linux dynamic linker is in use.
10275 dynamic_linker='GNU/Linux ld.so'
10278 netbsd*)
10279 version_type=sunos
10280 need_lib_prefix=no
10281 need_version=no
10282 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10284 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10285 dynamic_linker='NetBSD (a.out) ld.so'
10286 else
10287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10288 soname_spec='${libname}${release}${shared_ext}$major'
10289 dynamic_linker='NetBSD ld.elf_so'
10291 shlibpath_var=LD_LIBRARY_PATH
10292 shlibpath_overrides_runpath=yes
10293 hardcode_into_libs=yes
10296 newsos6)
10297 version_type=linux
10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10299 shlibpath_var=LD_LIBRARY_PATH
10300 shlibpath_overrides_runpath=yes
10303 *nto* | *qnx*)
10304 version_type=qnx
10305 need_lib_prefix=no
10306 need_version=no
10307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308 soname_spec='${libname}${release}${shared_ext}$major'
10309 shlibpath_var=LD_LIBRARY_PATH
10310 shlibpath_overrides_runpath=no
10311 hardcode_into_libs=yes
10312 dynamic_linker='ldqnx.so'
10315 openbsd*)
10316 version_type=sunos
10317 sys_lib_dlsearch_path_spec="/usr/lib"
10318 need_lib_prefix=no
10319 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10320 case $host_os in
10321 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10322 *) need_version=no ;;
10323 esac
10324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10326 shlibpath_var=LD_LIBRARY_PATH
10327 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10328 case $host_os in
10329 openbsd2.[89] | openbsd2.[89].*)
10330 shlibpath_overrides_runpath=no
10333 shlibpath_overrides_runpath=yes
10335 esac
10336 else
10337 shlibpath_overrides_runpath=yes
10341 os2*)
10342 libname_spec='$name'
10343 shrext_cmds=".dll"
10344 need_lib_prefix=no
10345 library_names_spec='$libname${shared_ext} $libname.a'
10346 dynamic_linker='OS/2 ld.exe'
10347 shlibpath_var=LIBPATH
10350 osf3* | osf4* | osf5*)
10351 version_type=osf
10352 need_lib_prefix=no
10353 need_version=no
10354 soname_spec='${libname}${release}${shared_ext}$major'
10355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10356 shlibpath_var=LD_LIBRARY_PATH
10357 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10358 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10361 rdos*)
10362 dynamic_linker=no
10365 solaris*)
10366 version_type=linux
10367 need_lib_prefix=no
10368 need_version=no
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370 soname_spec='${libname}${release}${shared_ext}$major'
10371 shlibpath_var=LD_LIBRARY_PATH
10372 shlibpath_overrides_runpath=yes
10373 hardcode_into_libs=yes
10374 # ldd complains unless libraries are executable
10375 postinstall_cmds='chmod +x $lib'
10378 sunos4*)
10379 version_type=sunos
10380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10381 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10382 shlibpath_var=LD_LIBRARY_PATH
10383 shlibpath_overrides_runpath=yes
10384 if test "$with_gnu_ld" = yes; then
10385 need_lib_prefix=no
10387 need_version=yes
10390 sysv4 | sysv4.3*)
10391 version_type=linux
10392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10393 soname_spec='${libname}${release}${shared_ext}$major'
10394 shlibpath_var=LD_LIBRARY_PATH
10395 case $host_vendor in
10396 sni)
10397 shlibpath_overrides_runpath=no
10398 need_lib_prefix=no
10399 runpath_var=LD_RUN_PATH
10401 siemens)
10402 need_lib_prefix=no
10404 motorola)
10405 need_lib_prefix=no
10406 need_version=no
10407 shlibpath_overrides_runpath=no
10408 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10410 esac
10413 sysv4*MP*)
10414 if test -d /usr/nec ;then
10415 version_type=linux
10416 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10417 soname_spec='$libname${shared_ext}.$major'
10418 shlibpath_var=LD_LIBRARY_PATH
10422 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10423 version_type=freebsd-elf
10424 need_lib_prefix=no
10425 need_version=no
10426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10427 soname_spec='${libname}${release}${shared_ext}$major'
10428 shlibpath_var=LD_LIBRARY_PATH
10429 shlibpath_overrides_runpath=yes
10430 hardcode_into_libs=yes
10431 if test "$with_gnu_ld" = yes; then
10432 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10433 else
10434 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10435 case $host_os in
10436 sco3.2v5*)
10437 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10439 esac
10441 sys_lib_dlsearch_path_spec='/usr/lib'
10444 tpf*)
10445 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10446 version_type=linux
10447 need_lib_prefix=no
10448 need_version=no
10449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10450 shlibpath_var=LD_LIBRARY_PATH
10451 shlibpath_overrides_runpath=no
10452 hardcode_into_libs=yes
10455 uts4*)
10456 version_type=linux
10457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10458 soname_spec='${libname}${release}${shared_ext}$major'
10459 shlibpath_var=LD_LIBRARY_PATH
10463 dynamic_linker=no
10465 esac
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10467 $as_echo "$dynamic_linker" >&6; }
10468 test "$dynamic_linker" = no && can_build_shared=no
10470 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10471 if test "$GCC" = yes; then
10472 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10475 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10476 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10478 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10479 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10574 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10575 hardcode_action=
10576 if test -n "$hardcode_libdir_flag_spec" ||
10577 test -n "$runpath_var" ||
10578 test "X$hardcode_automatic" = "Xyes" ; then
10580 # We can hardcode non-existent directories.
10581 if test "$hardcode_direct" != no &&
10582 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10583 # have to relink, otherwise we might link with an installed library
10584 # when we should be linking with a yet-to-be-installed one
10585 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10586 test "$hardcode_minus_L" != no; then
10587 # Linking always hardcodes the temporary library directory.
10588 hardcode_action=relink
10589 else
10590 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10591 hardcode_action=immediate
10593 else
10594 # We cannot hardcode anything, or else we can only hardcode existing
10595 # directories.
10596 hardcode_action=unsupported
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10599 $as_echo "$hardcode_action" >&6; }
10601 if test "$hardcode_action" = relink ||
10602 test "$inherit_rpath" = yes; then
10603 # Fast installation is not supported
10604 enable_fast_install=no
10605 elif test "$shlibpath_overrides_runpath" = yes ||
10606 test "$enable_shared" = no; then
10607 # Fast installation is not necessary
10608 enable_fast_install=needless
10616 if test "x$enable_dlopen" != xyes; then
10617 enable_dlopen=unknown
10618 enable_dlopen_self=unknown
10619 enable_dlopen_self_static=unknown
10620 else
10621 lt_cv_dlopen=no
10622 lt_cv_dlopen_libs=
10624 case $host_os in
10625 beos*)
10626 lt_cv_dlopen="load_add_on"
10627 lt_cv_dlopen_libs=
10628 lt_cv_dlopen_self=yes
10631 mingw* | pw32* | cegcc*)
10632 lt_cv_dlopen="LoadLibrary"
10633 lt_cv_dlopen_libs=
10636 cygwin*)
10637 lt_cv_dlopen="dlopen"
10638 lt_cv_dlopen_libs=
10641 darwin*)
10642 # if libdl is installed we need to link against it
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10644 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10645 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10646 $as_echo_n "(cached) " >&6
10647 else
10648 ac_check_lib_save_LIBS=$LIBS
10649 LIBS="-ldl $LIBS"
10650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h. */
10653 /* Override any GCC internal prototype to avoid an error.
10654 Use char because int might match the return type of a GCC
10655 builtin and then its argument prototype would still apply. */
10656 #ifdef __cplusplus
10657 extern "C"
10658 #endif
10659 char dlopen ();
10661 main ()
10663 return dlopen ();
10665 return 0;
10667 _ACEOF
10668 if ac_fn_c_try_link "$LINENO"; then :
10669 ac_cv_lib_dl_dlopen=yes
10670 else
10671 ac_cv_lib_dl_dlopen=no
10673 rm -f core conftest.err conftest.$ac_objext \
10674 conftest$ac_exeext conftest.$ac_ext
10675 LIBS=$ac_check_lib_save_LIBS
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10678 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10679 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10680 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10681 else
10683 lt_cv_dlopen="dyld"
10684 lt_cv_dlopen_libs=
10685 lt_cv_dlopen_self=yes
10692 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10693 if test "x$ac_cv_func_shl_load" = x""yes; then :
10694 lt_cv_dlopen="shl_load"
10695 else
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10697 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10698 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10699 $as_echo_n "(cached) " >&6
10700 else
10701 ac_check_lib_save_LIBS=$LIBS
10702 LIBS="-ldld $LIBS"
10703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10704 /* end confdefs.h. */
10706 /* Override any GCC internal prototype to avoid an error.
10707 Use char because int might match the return type of a GCC
10708 builtin and then its argument prototype would still apply. */
10709 #ifdef __cplusplus
10710 extern "C"
10711 #endif
10712 char shl_load ();
10714 main ()
10716 return shl_load ();
10718 return 0;
10720 _ACEOF
10721 if ac_fn_c_try_link "$LINENO"; then :
10722 ac_cv_lib_dld_shl_load=yes
10723 else
10724 ac_cv_lib_dld_shl_load=no
10726 rm -f core conftest.err conftest.$ac_objext \
10727 conftest$ac_exeext conftest.$ac_ext
10728 LIBS=$ac_check_lib_save_LIBS
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10731 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10732 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10733 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10734 else
10735 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10736 if test "x$ac_cv_func_dlopen" = x""yes; then :
10737 lt_cv_dlopen="dlopen"
10738 else
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10740 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10741 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10742 $as_echo_n "(cached) " >&6
10743 else
10744 ac_check_lib_save_LIBS=$LIBS
10745 LIBS="-ldl $LIBS"
10746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10747 /* end confdefs.h. */
10749 /* Override any GCC internal prototype to avoid an error.
10750 Use char because int might match the return type of a GCC
10751 builtin and then its argument prototype would still apply. */
10752 #ifdef __cplusplus
10753 extern "C"
10754 #endif
10755 char dlopen ();
10757 main ()
10759 return dlopen ();
10761 return 0;
10763 _ACEOF
10764 if ac_fn_c_try_link "$LINENO"; then :
10765 ac_cv_lib_dl_dlopen=yes
10766 else
10767 ac_cv_lib_dl_dlopen=no
10769 rm -f core conftest.err conftest.$ac_objext \
10770 conftest$ac_exeext conftest.$ac_ext
10771 LIBS=$ac_check_lib_save_LIBS
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10774 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10775 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10776 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10777 else
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10779 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10780 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10781 $as_echo_n "(cached) " >&6
10782 else
10783 ac_check_lib_save_LIBS=$LIBS
10784 LIBS="-lsvld $LIBS"
10785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10786 /* end confdefs.h. */
10788 /* Override any GCC internal prototype to avoid an error.
10789 Use char because int might match the return type of a GCC
10790 builtin and then its argument prototype would still apply. */
10791 #ifdef __cplusplus
10792 extern "C"
10793 #endif
10794 char dlopen ();
10796 main ()
10798 return dlopen ();
10800 return 0;
10802 _ACEOF
10803 if ac_fn_c_try_link "$LINENO"; then :
10804 ac_cv_lib_svld_dlopen=yes
10805 else
10806 ac_cv_lib_svld_dlopen=no
10808 rm -f core conftest.err conftest.$ac_objext \
10809 conftest$ac_exeext conftest.$ac_ext
10810 LIBS=$ac_check_lib_save_LIBS
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10813 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10814 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10815 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10816 else
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10818 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10819 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10820 $as_echo_n "(cached) " >&6
10821 else
10822 ac_check_lib_save_LIBS=$LIBS
10823 LIBS="-ldld $LIBS"
10824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h. */
10827 /* Override any GCC internal prototype to avoid an error.
10828 Use char because int might match the return type of a GCC
10829 builtin and then its argument prototype would still apply. */
10830 #ifdef __cplusplus
10831 extern "C"
10832 #endif
10833 char dld_link ();
10835 main ()
10837 return dld_link ();
10839 return 0;
10841 _ACEOF
10842 if ac_fn_c_try_link "$LINENO"; then :
10843 ac_cv_lib_dld_dld_link=yes
10844 else
10845 ac_cv_lib_dld_dld_link=no
10847 rm -f core conftest.err conftest.$ac_objext \
10848 conftest$ac_exeext conftest.$ac_ext
10849 LIBS=$ac_check_lib_save_LIBS
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10852 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10853 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10854 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10873 esac
10875 if test "x$lt_cv_dlopen" != xno; then
10876 enable_dlopen=yes
10877 else
10878 enable_dlopen=no
10881 case $lt_cv_dlopen in
10882 dlopen)
10883 save_CPPFLAGS="$CPPFLAGS"
10884 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10886 save_LDFLAGS="$LDFLAGS"
10887 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10889 save_LIBS="$LIBS"
10890 LIBS="$lt_cv_dlopen_libs $LIBS"
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10893 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10894 if test "${lt_cv_dlopen_self+set}" = set; then :
10895 $as_echo_n "(cached) " >&6
10896 else
10897 if test "$cross_compiling" = yes; then :
10898 lt_cv_dlopen_self=cross
10899 else
10900 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10901 lt_status=$lt_dlunknown
10902 cat > conftest.$ac_ext <<_LT_EOF
10903 #line 10903 "configure"
10904 #include "confdefs.h"
10906 #if HAVE_DLFCN_H
10907 #include <dlfcn.h>
10908 #endif
10910 #include <stdio.h>
10912 #ifdef RTLD_GLOBAL
10913 # define LT_DLGLOBAL RTLD_GLOBAL
10914 #else
10915 # ifdef DL_GLOBAL
10916 # define LT_DLGLOBAL DL_GLOBAL
10917 # else
10918 # define LT_DLGLOBAL 0
10919 # endif
10920 #endif
10922 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10923 find out it does not work in some platform. */
10924 #ifndef LT_DLLAZY_OR_NOW
10925 # ifdef RTLD_LAZY
10926 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10927 # else
10928 # ifdef DL_LAZY
10929 # define LT_DLLAZY_OR_NOW DL_LAZY
10930 # else
10931 # ifdef RTLD_NOW
10932 # define LT_DLLAZY_OR_NOW RTLD_NOW
10933 # else
10934 # ifdef DL_NOW
10935 # define LT_DLLAZY_OR_NOW DL_NOW
10936 # else
10937 # define LT_DLLAZY_OR_NOW 0
10938 # endif
10939 # endif
10940 # endif
10941 # endif
10942 #endif
10944 /* When -fvisbility=hidden is used, assume the code has been annotated
10945 correspondingly for the symbols needed. */
10946 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10947 void fnord () __attribute__((visibility("default")));
10948 #endif
10950 void fnord () { int i=42; }
10951 int main ()
10953 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10954 int status = $lt_dlunknown;
10956 if (self)
10958 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10959 else
10961 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10962 else puts (dlerror ());
10964 /* dlclose (self); */
10966 else
10967 puts (dlerror ());
10969 return status;
10971 _LT_EOF
10972 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10973 (eval $ac_link) 2>&5
10974 ac_status=$?
10975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10976 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10977 (./conftest; exit; ) >&5 2>/dev/null
10978 lt_status=$?
10979 case x$lt_status in
10980 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10981 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10982 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10983 esac
10984 else :
10985 # compilation failed
10986 lt_cv_dlopen_self=no
10989 rm -fr conftest*
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10994 $as_echo "$lt_cv_dlopen_self" >&6; }
10996 if test "x$lt_cv_dlopen_self" = xyes; then
10997 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10999 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11000 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11001 $as_echo_n "(cached) " >&6
11002 else
11003 if test "$cross_compiling" = yes; then :
11004 lt_cv_dlopen_self_static=cross
11005 else
11006 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11007 lt_status=$lt_dlunknown
11008 cat > conftest.$ac_ext <<_LT_EOF
11009 #line 11009 "configure"
11010 #include "confdefs.h"
11012 #if HAVE_DLFCN_H
11013 #include <dlfcn.h>
11014 #endif
11016 #include <stdio.h>
11018 #ifdef RTLD_GLOBAL
11019 # define LT_DLGLOBAL RTLD_GLOBAL
11020 #else
11021 # ifdef DL_GLOBAL
11022 # define LT_DLGLOBAL DL_GLOBAL
11023 # else
11024 # define LT_DLGLOBAL 0
11025 # endif
11026 #endif
11028 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11029 find out it does not work in some platform. */
11030 #ifndef LT_DLLAZY_OR_NOW
11031 # ifdef RTLD_LAZY
11032 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11033 # else
11034 # ifdef DL_LAZY
11035 # define LT_DLLAZY_OR_NOW DL_LAZY
11036 # else
11037 # ifdef RTLD_NOW
11038 # define LT_DLLAZY_OR_NOW RTLD_NOW
11039 # else
11040 # ifdef DL_NOW
11041 # define LT_DLLAZY_OR_NOW DL_NOW
11042 # else
11043 # define LT_DLLAZY_OR_NOW 0
11044 # endif
11045 # endif
11046 # endif
11047 # endif
11048 #endif
11050 /* When -fvisbility=hidden is used, assume the code has been annotated
11051 correspondingly for the symbols needed. */
11052 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11053 void fnord () __attribute__((visibility("default")));
11054 #endif
11056 void fnord () { int i=42; }
11057 int main ()
11059 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11060 int status = $lt_dlunknown;
11062 if (self)
11064 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11065 else
11067 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11068 else puts (dlerror ());
11070 /* dlclose (self); */
11072 else
11073 puts (dlerror ());
11075 return status;
11077 _LT_EOF
11078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11079 (eval $ac_link) 2>&5
11080 ac_status=$?
11081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11082 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11083 (./conftest; exit; ) >&5 2>/dev/null
11084 lt_status=$?
11085 case x$lt_status in
11086 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11087 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11088 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11089 esac
11090 else :
11091 # compilation failed
11092 lt_cv_dlopen_self_static=no
11095 rm -fr conftest*
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11100 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11103 CPPFLAGS="$save_CPPFLAGS"
11104 LDFLAGS="$save_LDFLAGS"
11105 LIBS="$save_LIBS"
11107 esac
11109 case $lt_cv_dlopen_self in
11110 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11111 *) enable_dlopen_self=unknown ;;
11112 esac
11114 case $lt_cv_dlopen_self_static in
11115 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11116 *) enable_dlopen_self_static=unknown ;;
11117 esac
11136 striplib=
11137 old_striplib=
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11139 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11140 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11141 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11142 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11144 $as_echo "yes" >&6; }
11145 else
11146 # FIXME - insert some real tests, host_os isn't really good enough
11147 case $host_os in
11148 darwin*)
11149 if test -n "$STRIP" ; then
11150 striplib="$STRIP -x"
11151 old_striplib="$STRIP -S"
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11153 $as_echo "yes" >&6; }
11154 else
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11156 $as_echo "no" >&6; }
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11161 $as_echo "no" >&6; }
11163 esac
11177 # Report which library types will actually be built
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11179 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11181 $as_echo "$can_build_shared" >&6; }
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11184 $as_echo_n "checking whether to build shared libraries... " >&6; }
11185 test "$can_build_shared" = "no" && enable_shared=no
11187 # On AIX, shared libraries and static libraries use the same namespace, and
11188 # are all built from PIC.
11189 case $host_os in
11190 aix3*)
11191 test "$enable_shared" = yes && enable_static=no
11192 if test -n "$RANLIB"; then
11193 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11194 postinstall_cmds='$RANLIB $lib'
11198 aix[4-9]*)
11199 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11200 test "$enable_shared" = yes && enable_static=no
11203 esac
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11205 $as_echo "$enable_shared" >&6; }
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11208 $as_echo_n "checking whether to build static libraries... " >&6; }
11209 # Make sure either enable_shared or enable_static is yes.
11210 test "$enable_shared" = yes || enable_static=yes
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11212 $as_echo "$enable_static" >&6; }
11218 ac_ext=c
11219 ac_cpp='$CPP $CPPFLAGS'
11220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11224 CC="$lt_save_CC"
11238 ac_config_commands="$ac_config_commands libtool"
11243 # Only expand once:
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11249 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11250 # Check whether --enable-maintainer-mode was given.
11251 if test "${enable_maintainer_mode+set}" = set; then :
11252 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11253 else
11254 USE_MAINTAINER_MODE=no
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11258 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11259 if test $USE_MAINTAINER_MODE = yes; then
11260 MAINTAINER_MODE_TRUE=
11261 MAINTAINER_MODE_FALSE='#'
11262 else
11263 MAINTAINER_MODE_TRUE='#'
11264 MAINTAINER_MODE_FALSE=
11267 MAINT=$MAINTAINER_MODE_TRUE
11271 for ac_header in sys/mman.h
11272 do :
11273 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11274 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11275 cat >>confdefs.h <<_ACEOF
11276 #define HAVE_SYS_MMAN_H 1
11277 _ACEOF
11281 done
11283 for ac_func in mmap
11284 do :
11285 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11286 if test "x$ac_cv_func_mmap" = x""yes; then :
11287 cat >>confdefs.h <<_ACEOF
11288 #define HAVE_MMAP 1
11289 _ACEOF
11292 done
11295 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11296 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11297 libffi_header_sys_mman_h=yes
11298 else
11299 libffi_header_sys_mman_h=no
11303 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11304 if test "x$ac_cv_func_mmap" = x""yes; then :
11305 libffi_func_mmap=yes
11306 else
11307 libffi_func_mmap=no
11310 if test "$libffi_header_sys_mman_h" != yes \
11311 || test "$libffi_func_mmap" != yes; then
11312 ac_cv_func_mmap_file=no
11313 ac_cv_func_mmap_dev_zero=no
11314 ac_cv_func_mmap_anon=no
11315 else
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
11317 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
11318 if test "${ac_cv_func_mmap_file+set}" = set; then :
11319 $as_echo_n "(cached) " >&6
11320 else
11321 # Add a system to this blacklist if
11322 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
11323 # memory area containing the same data that you'd get if you applied
11324 # read() to the same fd. The only system known to have a problem here
11325 # is VMS, where text files have record structure.
11326 case "$host_os" in
11327 vms* | ultrix*)
11328 ac_cv_func_mmap_file=no ;;
11330 ac_cv_func_mmap_file=yes;;
11331 esac
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
11334 $as_echo "$ac_cv_func_mmap_file" >&6; }
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
11336 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
11337 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then :
11338 $as_echo_n "(cached) " >&6
11339 else
11340 # Add a system to this blacklist if it has mmap() but /dev/zero
11341 # does not exist, or if mmapping /dev/zero does not give anonymous
11342 # zeroed pages with both the following properties:
11343 # 1. If you map N consecutive pages in with one call, and then
11344 # unmap any subset of those pages, the pages that were not
11345 # explicitly unmapped remain accessible.
11346 # 2. If you map two adjacent blocks of memory and then unmap them
11347 # both at once, they must both go away.
11348 # Systems known to be in this category are Windows (all variants),
11349 # VMS, and Darwin.
11350 case "$host_os" in
11351 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
11352 ac_cv_func_mmap_dev_zero=no ;;
11354 ac_cv_func_mmap_dev_zero=yes;;
11355 esac
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
11358 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
11360 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
11362 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
11363 if test "${ac_cv_decl_map_anon+set}" = set; then :
11364 $as_echo_n "(cached) " >&6
11365 else
11366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11367 /* end confdefs.h. */
11368 #include <sys/types.h>
11369 #include <sys/mman.h>
11370 #include <unistd.h>
11372 #ifndef MAP_ANONYMOUS
11373 #define MAP_ANONYMOUS MAP_ANON
11374 #endif
11377 main ()
11379 int n = MAP_ANONYMOUS;
11381 return 0;
11383 _ACEOF
11384 if ac_fn_c_try_compile "$LINENO"; then :
11385 ac_cv_decl_map_anon=yes
11386 else
11387 ac_cv_decl_map_anon=no
11389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
11392 $as_echo "$ac_cv_decl_map_anon" >&6; }
11394 if test $ac_cv_decl_map_anon = no; then
11395 ac_cv_func_mmap_anon=no
11396 else
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
11398 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
11399 if test "${ac_cv_func_mmap_anon+set}" = set; then :
11400 $as_echo_n "(cached) " >&6
11401 else
11402 # Add a system to this blacklist if it has mmap() and MAP_ANON or
11403 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
11404 # doesn't give anonymous zeroed pages with the same properties listed
11405 # above for use of /dev/zero.
11406 # Systems known to be in this category are Windows, VMS, and SCO Unix.
11407 case "$host_os" in
11408 vms* | cygwin* | pe | mingw* | sco* | udk* )
11409 ac_cv_func_mmap_anon=no ;;
11411 ac_cv_func_mmap_anon=yes;;
11412 esac
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
11415 $as_echo "$ac_cv_func_mmap_anon" >&6; }
11419 if test $ac_cv_func_mmap_file = yes; then
11421 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
11424 if test $ac_cv_func_mmap_dev_zero = yes; then
11426 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
11429 if test $ac_cv_func_mmap_anon = yes; then
11431 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
11436 if test -d $srcdir/testsuite; then
11437 TESTSUBDIR_TRUE=
11438 TESTSUBDIR_FALSE='#'
11439 else
11440 TESTSUBDIR_TRUE='#'
11441 TESTSUBDIR_FALSE=
11445 TARGETDIR="unknown"
11446 case "$host" in
11447 aarch64*-*-*)
11448 TARGET=AARCH64; TARGETDIR=aarch64
11451 alpha*-*-*)
11452 TARGET=ALPHA; TARGETDIR=alpha;
11453 # Support 128-bit long double, changeable via command-line switch.
11454 HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
11457 arm*-*-*)
11458 TARGET=ARM; TARGETDIR=arm
11461 amd64-*-freebsd* | amd64-*-openbsd*)
11462 TARGET=X86_64; TARGETDIR=x86
11465 amd64-*-freebsd*)
11466 TARGET=X86_64; TARGETDIR=x86
11469 avr32*-*-*)
11470 TARGET=AVR32; TARGETDIR=avr32
11473 bfin*)
11474 TARGET=BFIN; TARGETDIR=bfin
11477 cris-*-*)
11478 TARGET=LIBFFI_CRIS; TARGETDIR=cris
11481 frv-*-*)
11482 TARGET=FRV; TARGETDIR=frv
11485 hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
11486 TARGET=PA_LINUX; TARGETDIR=pa
11488 hppa*64-*-hpux*)
11489 TARGET=PA64_HPUX; TARGETDIR=pa
11491 hppa*-*-hpux*)
11492 TARGET=PA_HPUX; TARGETDIR=pa
11495 i?86-*-freebsd* | i?86-*-openbsd*)
11496 TARGET=X86_FREEBSD; TARGETDIR=x86
11498 i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
11499 TARGET=X86_WIN32; TARGETDIR=x86
11500 # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
11501 # We must also check with_cross_host to decide if this is a native
11502 # or cross-build and select where to install dlls appropriately.
11503 if test -n "$with_cross_host" &&
11504 test x"$with_cross_host" != x"no"; then
11505 AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
11506 else
11507 AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
11510 i?86-*-darwin*)
11511 TARGET=X86_DARWIN; TARGETDIR=x86
11513 i?86-*-solaris2.1[0-9]*)
11514 TARGET=X86_64; TARGETDIR=x86
11516 i?86-*-*)
11517 TARGET=X86_64; TARGETDIR=x86
11520 ia64*-*-*)
11521 TARGET=IA64; TARGETDIR=ia64
11524 m32r*-*-*)
11525 TARGET=M32R; TARGETDIR=m32r
11528 m68k-*-*)
11529 TARGET=M68K; TARGETDIR=m68k
11532 mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
11533 TARGET=MIPS; TARGETDIR=mips
11535 mips*-*-linux* | mips*-*-openbsd*)
11536 # Support 128-bit long double for NewABI.
11537 HAVE_LONG_DOUBLE='defined(__mips64)'
11538 TARGET=MIPS; TARGETDIR=mips
11541 powerpc*-*-linux* | powerpc-*-sysv*)
11542 TARGET=POWERPC; TARGETDIR=powerpc
11544 powerpc-*-amigaos*)
11545 TARGET=POWERPC; TARGETDIR=powerpc
11547 powerpc-*-beos*)
11548 TARGET=POWERPC; TARGETDIR=powerpc
11550 powerpc-*-darwin* | powerpc64-*-darwin*)
11551 TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
11553 powerpc-*-aix* | rs6000-*-aix*)
11554 TARGET=POWERPC_AIX; TARGETDIR=powerpc
11556 powerpc-*-freebsd* | powerpc-*-openbsd*)
11557 TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
11559 powerpc64-*-freebsd*)
11560 TARGET=POWERPC; TARGETDIR=powerpc
11562 powerpc*-*-rtems*)
11563 TARGET=POWERPC; TARGETDIR=powerpc
11566 s390-*-* | s390x-*-*)
11567 TARGET=S390; TARGETDIR=s390
11570 sh-*-* | sh[34]*-*-*)
11571 TARGET=SH; TARGETDIR=sh
11573 sh64-*-* | sh5*-*-*)
11574 TARGET=SH64; TARGETDIR=sh64
11577 sparc*-*-*)
11578 TARGET=SPARC; TARGETDIR=sparc
11581 tile*-*)
11582 TARGET=TILE; TARGETDIR=tile
11585 x86_64-*-darwin*)
11586 TARGET=X86_DARWIN; TARGETDIR=x86
11589 x86_64-*-cygwin* | x86_64-*-mingw*)
11590 TARGET=X86_WIN64; TARGETDIR=x86
11591 # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
11592 # We must also check with_cross_host to decide if this is a native
11593 # or cross-build and select where to install dlls appropriately.
11594 if test -n "$with_cross_host" &&
11595 test x"$with_cross_host" != x"no"; then
11596 AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
11597 else
11598 AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
11602 x86_64-*-*)
11603 TARGET=X86_64; TARGETDIR=x86
11605 esac
11610 if test $TARGETDIR = unknown; then
11611 as_fn_error "\"libffi has not been ported to $host.\"" "$LINENO" 5
11614 if test x$TARGET = xMIPS; then
11615 MIPS_TRUE=
11616 MIPS_FALSE='#'
11617 else
11618 MIPS_TRUE='#'
11619 MIPS_FALSE=
11622 if test x$TARGET = xBFIN; then
11623 BFIN_TRUE=
11624 BFIN_FALSE='#'
11625 else
11626 BFIN_TRUE='#'
11627 BFIN_FALSE=
11630 if test x$TARGET = xSPARC; then
11631 SPARC_TRUE=
11632 SPARC_FALSE='#'
11633 else
11634 SPARC_TRUE='#'
11635 SPARC_FALSE=
11638 if test x$TARGET = xX86; then
11639 X86_TRUE=
11640 X86_FALSE='#'
11641 else
11642 X86_TRUE='#'
11643 X86_FALSE=
11646 if test x$TARGET = xX86_FREEBSD; then
11647 X86_FREEBSD_TRUE=
11648 X86_FREEBSD_FALSE='#'
11649 else
11650 X86_FREEBSD_TRUE='#'
11651 X86_FREEBSD_FALSE=
11654 if test x$TARGET = xX86_WIN32; then
11655 X86_WIN32_TRUE=
11656 X86_WIN32_FALSE='#'
11657 else
11658 X86_WIN32_TRUE='#'
11659 X86_WIN32_FALSE=
11662 if test x$TARGET = xX86_WIN64; then
11663 X86_WIN64_TRUE=
11664 X86_WIN64_FALSE='#'
11665 else
11666 X86_WIN64_TRUE='#'
11667 X86_WIN64_FALSE=
11670 if test x$TARGET = xX86_DARWIN; then
11671 X86_DARWIN_TRUE=
11672 X86_DARWIN_FALSE='#'
11673 else
11674 X86_DARWIN_TRUE='#'
11675 X86_DARWIN_FALSE=
11678 if test x$TARGET = xALPHA; then
11679 ALPHA_TRUE=
11680 ALPHA_FALSE='#'
11681 else
11682 ALPHA_TRUE='#'
11683 ALPHA_FALSE=
11686 if test x$TARGET = xIA64; then
11687 IA64_TRUE=
11688 IA64_FALSE='#'
11689 else
11690 IA64_TRUE='#'
11691 IA64_FALSE=
11694 if test x$TARGET = xM32R; then
11695 M32R_TRUE=
11696 M32R_FALSE='#'
11697 else
11698 M32R_TRUE='#'
11699 M32R_FALSE=
11702 if test x$TARGET = xM68K; then
11703 M68K_TRUE=
11704 M68K_FALSE='#'
11705 else
11706 M68K_TRUE='#'
11707 M68K_FALSE=
11710 if test x$TARGET = xPOWERPC; then
11711 POWERPC_TRUE=
11712 POWERPC_FALSE='#'
11713 else
11714 POWERPC_TRUE='#'
11715 POWERPC_FALSE=
11718 if test x$TARGET = xPOWERPC_AIX; then
11719 POWERPC_AIX_TRUE=
11720 POWERPC_AIX_FALSE='#'
11721 else
11722 POWERPC_AIX_TRUE='#'
11723 POWERPC_AIX_FALSE=
11726 if test x$TARGET = xPOWERPC_DARWIN; then
11727 POWERPC_DARWIN_TRUE=
11728 POWERPC_DARWIN_FALSE='#'
11729 else
11730 POWERPC_DARWIN_TRUE='#'
11731 POWERPC_DARWIN_FALSE=
11734 if test x$TARGET = xPOWERPC_FREEBSD; then
11735 POWERPC_FREEBSD_TRUE=
11736 POWERPC_FREEBSD_FALSE='#'
11737 else
11738 POWERPC_FREEBSD_TRUE='#'
11739 POWERPC_FREEBSD_FALSE=
11742 if test x$TARGET = xAARCH64; then
11743 AARCH64_TRUE=
11744 AARCH64_FALSE='#'
11745 else
11746 AARCH64_TRUE='#'
11747 AARCH64_FALSE=
11750 if test x$TARGET = xARM; then
11751 ARM_TRUE=
11752 ARM_FALSE='#'
11753 else
11754 ARM_TRUE='#'
11755 ARM_FALSE=
11758 if test x$TARGET = xAVR32; then
11759 AVR32_TRUE=
11760 AVR32_FALSE='#'
11761 else
11762 AVR32_TRUE='#'
11763 AVR32_FALSE=
11766 if test x$TARGET = xLIBFFI_CRIS; then
11767 LIBFFI_CRIS_TRUE=
11768 LIBFFI_CRIS_FALSE='#'
11769 else
11770 LIBFFI_CRIS_TRUE='#'
11771 LIBFFI_CRIS_FALSE=
11774 if test x$TARGET = xFRV; then
11775 FRV_TRUE=
11776 FRV_FALSE='#'
11777 else
11778 FRV_TRUE='#'
11779 FRV_FALSE=
11782 if test x$TARGET = xS390; then
11783 S390_TRUE=
11784 S390_FALSE='#'
11785 else
11786 S390_TRUE='#'
11787 S390_FALSE=
11790 if test x$TARGET = xX86_64; then
11791 X86_64_TRUE=
11792 X86_64_FALSE='#'
11793 else
11794 X86_64_TRUE='#'
11795 X86_64_FALSE=
11798 if test x$TARGET = xSH; then
11799 SH_TRUE=
11800 SH_FALSE='#'
11801 else
11802 SH_TRUE='#'
11803 SH_FALSE=
11806 if test x$TARGET = xSH64; then
11807 SH64_TRUE=
11808 SH64_FALSE='#'
11809 else
11810 SH64_TRUE='#'
11811 SH64_FALSE=
11814 if test x$TARGET = xPA_LINUX; then
11815 PA_LINUX_TRUE=
11816 PA_LINUX_FALSE='#'
11817 else
11818 PA_LINUX_TRUE='#'
11819 PA_LINUX_FALSE=
11822 if test x$TARGET = xPA_HPUX; then
11823 PA_HPUX_TRUE=
11824 PA_HPUX_FALSE='#'
11825 else
11826 PA_HPUX_TRUE='#'
11827 PA_HPUX_FALSE=
11830 if test x$TARGET = xPA64_HPUX; then
11831 PA64_HPUX_TRUE=
11832 PA64_HPUX_FALSE='#'
11833 else
11834 PA64_HPUX_TRUE='#'
11835 PA64_HPUX_FALSE=
11838 if test x$TARGET = xTILE; then
11839 TILE_TRUE=
11840 TILE_FALSE='#'
11841 else
11842 TILE_TRUE='#'
11843 TILE_FALSE=
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11848 $as_echo_n "checking for ANSI C header files... " >&6; }
11849 if test "${ac_cv_header_stdc+set}" = set; then :
11850 $as_echo_n "(cached) " >&6
11851 else
11852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11853 /* end confdefs.h. */
11854 #include <stdlib.h>
11855 #include <stdarg.h>
11856 #include <string.h>
11857 #include <float.h>
11860 main ()
11864 return 0;
11866 _ACEOF
11867 if ac_fn_c_try_compile "$LINENO"; then :
11868 ac_cv_header_stdc=yes
11869 else
11870 ac_cv_header_stdc=no
11872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11874 if test $ac_cv_header_stdc = yes; then
11875 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11877 /* end confdefs.h. */
11878 #include <string.h>
11880 _ACEOF
11881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11882 $EGREP "memchr" >/dev/null 2>&1; then :
11884 else
11885 ac_cv_header_stdc=no
11887 rm -f conftest*
11891 if test $ac_cv_header_stdc = yes; then
11892 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11894 /* end confdefs.h. */
11895 #include <stdlib.h>
11897 _ACEOF
11898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11899 $EGREP "free" >/dev/null 2>&1; then :
11901 else
11902 ac_cv_header_stdc=no
11904 rm -f conftest*
11908 if test $ac_cv_header_stdc = yes; then
11909 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11910 if test "$cross_compiling" = yes; then :
11912 else
11913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11914 /* end confdefs.h. */
11915 #include <ctype.h>
11916 #include <stdlib.h>
11917 #if ((' ' & 0x0FF) == 0x020)
11918 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11919 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11920 #else
11921 # define ISLOWER(c) \
11922 (('a' <= (c) && (c) <= 'i') \
11923 || ('j' <= (c) && (c) <= 'r') \
11924 || ('s' <= (c) && (c) <= 'z'))
11925 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11926 #endif
11928 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11930 main ()
11932 int i;
11933 for (i = 0; i < 256; i++)
11934 if (XOR (islower (i), ISLOWER (i))
11935 || toupper (i) != TOUPPER (i))
11936 return 2;
11937 return 0;
11939 _ACEOF
11940 if ac_fn_c_try_run "$LINENO"; then :
11942 else
11943 ac_cv_header_stdc=no
11945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11946 conftest.$ac_objext conftest.beam conftest.$ac_ext
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11952 $as_echo "$ac_cv_header_stdc" >&6; }
11953 if test $ac_cv_header_stdc = yes; then
11955 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11959 for ac_func in memcpy
11960 do :
11961 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
11962 if test "x$ac_cv_func_memcpy" = x""yes; then :
11963 cat >>confdefs.h <<_ACEOF
11964 #define HAVE_MEMCPY 1
11965 _ACEOF
11968 done
11970 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11971 # for constant arguments. Useless!
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11973 $as_echo_n "checking for working alloca.h... " >&6; }
11974 if test "${ac_cv_working_alloca_h+set}" = set; then :
11975 $as_echo_n "(cached) " >&6
11976 else
11977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11978 /* end confdefs.h. */
11979 #include <alloca.h>
11981 main ()
11983 char *p = (char *) alloca (2 * sizeof (int));
11984 if (p) return 0;
11986 return 0;
11988 _ACEOF
11989 if ac_fn_c_try_link "$LINENO"; then :
11990 ac_cv_working_alloca_h=yes
11991 else
11992 ac_cv_working_alloca_h=no
11994 rm -f core conftest.err conftest.$ac_objext \
11995 conftest$ac_exeext conftest.$ac_ext
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11998 $as_echo "$ac_cv_working_alloca_h" >&6; }
11999 if test $ac_cv_working_alloca_h = yes; then
12001 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12006 $as_echo_n "checking for alloca... " >&6; }
12007 if test "${ac_cv_func_alloca_works+set}" = set; then :
12008 $as_echo_n "(cached) " >&6
12009 else
12010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12011 /* end confdefs.h. */
12012 #ifdef __GNUC__
12013 # define alloca __builtin_alloca
12014 #else
12015 # ifdef _MSC_VER
12016 # include <malloc.h>
12017 # define alloca _alloca
12018 # else
12019 # ifdef HAVE_ALLOCA_H
12020 # include <alloca.h>
12021 # else
12022 # ifdef _AIX
12023 #pragma alloca
12024 # else
12025 # ifndef alloca /* predefined by HP cc +Olibcalls */
12026 char *alloca ();
12027 # endif
12028 # endif
12029 # endif
12030 # endif
12031 #endif
12034 main ()
12036 char *p = (char *) alloca (1);
12037 if (p) return 0;
12039 return 0;
12041 _ACEOF
12042 if ac_fn_c_try_link "$LINENO"; then :
12043 ac_cv_func_alloca_works=yes
12044 else
12045 ac_cv_func_alloca_works=no
12047 rm -f core conftest.err conftest.$ac_objext \
12048 conftest$ac_exeext conftest.$ac_ext
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12051 $as_echo "$ac_cv_func_alloca_works" >&6; }
12053 if test $ac_cv_func_alloca_works = yes; then
12055 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12057 else
12058 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12059 # that cause trouble. Some versions do not even contain alloca or
12060 # contain a buggy version. If you still want to use their alloca,
12061 # use ar to extract alloca.o from them instead of compiling alloca.c.
12063 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12065 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12069 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12070 if test "${ac_cv_os_cray+set}" = set; then :
12071 $as_echo_n "(cached) " >&6
12072 else
12073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074 /* end confdefs.h. */
12075 #if defined CRAY && ! defined CRAY2
12076 webecray
12077 #else
12078 wenotbecray
12079 #endif
12081 _ACEOF
12082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12083 $EGREP "webecray" >/dev/null 2>&1; then :
12084 ac_cv_os_cray=yes
12085 else
12086 ac_cv_os_cray=no
12088 rm -f conftest*
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12092 $as_echo "$ac_cv_os_cray" >&6; }
12093 if test $ac_cv_os_cray = yes; then
12094 for ac_func in _getb67 GETB67 getb67; do
12095 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12096 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12097 eval as_val=\$$as_ac_var
12098 if test "x$as_val" = x""yes; then :
12100 cat >>confdefs.h <<_ACEOF
12101 #define CRAY_STACKSEG_END $ac_func
12102 _ACEOF
12104 break
12107 done
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12111 $as_echo_n "checking stack direction for C alloca... " >&6; }
12112 if test "${ac_cv_c_stack_direction+set}" = set; then :
12113 $as_echo_n "(cached) " >&6
12114 else
12115 if test "$cross_compiling" = yes; then :
12116 ac_cv_c_stack_direction=0
12117 else
12118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12119 /* end confdefs.h. */
12120 $ac_includes_default
12122 find_stack_direction ()
12124 static char *addr = 0;
12125 auto char dummy;
12126 if (addr == 0)
12128 addr = &dummy;
12129 return find_stack_direction ();
12131 else
12132 return (&dummy > addr) ? 1 : -1;
12136 main ()
12138 return find_stack_direction () < 0;
12140 _ACEOF
12141 if ac_fn_c_try_run "$LINENO"; then :
12142 ac_cv_c_stack_direction=1
12143 else
12144 ac_cv_c_stack_direction=-1
12146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12147 conftest.$ac_objext conftest.beam conftest.$ac_ext
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12152 $as_echo "$ac_cv_c_stack_direction" >&6; }
12153 cat >>confdefs.h <<_ACEOF
12154 #define STACK_DIRECTION $ac_cv_c_stack_direction
12155 _ACEOF
12161 # The cast to long int works around a bug in the HP C Compiler
12162 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12163 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12164 # This bug is HP SR number 8606223364.
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
12166 $as_echo_n "checking size of double... " >&6; }
12167 if test "${ac_cv_sizeof_double+set}" = set; then :
12168 $as_echo_n "(cached) " >&6
12169 else
12170 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
12172 else
12173 if test "$ac_cv_type_double" = yes; then
12174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12176 { as_fn_set_status 77
12177 as_fn_error "cannot compute sizeof (double)
12178 See \`config.log' for more details." "$LINENO" 5; }; }
12179 else
12180 ac_cv_sizeof_double=0
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
12186 $as_echo "$ac_cv_sizeof_double" >&6; }
12190 cat >>confdefs.h <<_ACEOF
12191 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
12192 _ACEOF
12195 # The cast to long int works around a bug in the HP C Compiler
12196 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12197 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12198 # This bug is HP SR number 8606223364.
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
12200 $as_echo_n "checking size of long double... " >&6; }
12201 if test "${ac_cv_sizeof_long_double+set}" = set; then :
12202 $as_echo_n "(cached) " >&6
12203 else
12204 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
12206 else
12207 if test "$ac_cv_type_long_double" = yes; then
12208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12210 { as_fn_set_status 77
12211 as_fn_error "cannot compute sizeof (long double)
12212 See \`config.log' for more details." "$LINENO" 5; }; }
12213 else
12214 ac_cv_sizeof_long_double=0
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
12220 $as_echo "$ac_cv_sizeof_long_double" >&6; }
12224 cat >>confdefs.h <<_ACEOF
12225 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12226 _ACEOF
12230 # Also AC_SUBST this variable for ffi.h.
12231 if test -z "$HAVE_LONG_DOUBLE"; then
12232 HAVE_LONG_DOUBLE=0
12233 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
12234 if test $ac_cv_sizeof_long_double != 0; then
12235 HAVE_LONG_DOUBLE=1
12237 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12245 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12246 if test "${ac_cv_c_bigendian+set}" = set; then :
12247 $as_echo_n "(cached) " >&6
12248 else
12249 ac_cv_c_bigendian=unknown
12250 # See if we're dealing with a universal compiler.
12251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12252 /* end confdefs.h. */
12253 #ifndef __APPLE_CC__
12254 not a universal capable compiler
12255 #endif
12256 typedef int dummy;
12258 _ACEOF
12259 if ac_fn_c_try_compile "$LINENO"; then :
12261 # Check for potential -arch flags. It is not universal unless
12262 # there are at least two -arch flags with different values.
12263 ac_arch=
12264 ac_prev=
12265 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12266 if test -n "$ac_prev"; then
12267 case $ac_word in
12268 i?86 | x86_64 | ppc | ppc64)
12269 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12270 ac_arch=$ac_word
12271 else
12272 ac_cv_c_bigendian=universal
12273 break
12276 esac
12277 ac_prev=
12278 elif test "x$ac_word" = "x-arch"; then
12279 ac_prev=arch
12281 done
12283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12284 if test $ac_cv_c_bigendian = unknown; then
12285 # See if sys/param.h defines the BYTE_ORDER macro.
12286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12287 /* end confdefs.h. */
12288 #include <sys/types.h>
12289 #include <sys/param.h>
12292 main ()
12294 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12295 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12296 && LITTLE_ENDIAN)
12297 bogus endian macros
12298 #endif
12301 return 0;
12303 _ACEOF
12304 if ac_fn_c_try_compile "$LINENO"; then :
12305 # It does; now see whether it defined to BIG_ENDIAN or not.
12306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12307 /* end confdefs.h. */
12308 #include <sys/types.h>
12309 #include <sys/param.h>
12312 main ()
12314 #if BYTE_ORDER != BIG_ENDIAN
12315 not big endian
12316 #endif
12319 return 0;
12321 _ACEOF
12322 if ac_fn_c_try_compile "$LINENO"; then :
12323 ac_cv_c_bigendian=yes
12324 else
12325 ac_cv_c_bigendian=no
12327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12331 if test $ac_cv_c_bigendian = unknown; then
12332 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12334 /* end confdefs.h. */
12335 #include <limits.h>
12338 main ()
12340 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12341 bogus endian macros
12342 #endif
12345 return 0;
12347 _ACEOF
12348 if ac_fn_c_try_compile "$LINENO"; then :
12349 # It does; now see whether it defined to _BIG_ENDIAN or not.
12350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12351 /* end confdefs.h. */
12352 #include <limits.h>
12355 main ()
12357 #ifndef _BIG_ENDIAN
12358 not big endian
12359 #endif
12362 return 0;
12364 _ACEOF
12365 if ac_fn_c_try_compile "$LINENO"; then :
12366 ac_cv_c_bigendian=yes
12367 else
12368 ac_cv_c_bigendian=no
12370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12374 if test $ac_cv_c_bigendian = unknown; then
12375 # Compile a test program.
12376 if test "$cross_compiling" = yes; then :
12377 # Try to guess by grepping values from an object file.
12378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379 /* end confdefs.h. */
12380 short int ascii_mm[] =
12381 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12382 short int ascii_ii[] =
12383 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12384 int use_ascii (int i) {
12385 return ascii_mm[i] + ascii_ii[i];
12387 short int ebcdic_ii[] =
12388 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12389 short int ebcdic_mm[] =
12390 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12391 int use_ebcdic (int i) {
12392 return ebcdic_mm[i] + ebcdic_ii[i];
12394 extern int foo;
12397 main ()
12399 return use_ascii (foo) == use_ebcdic (foo);
12401 return 0;
12403 _ACEOF
12404 if ac_fn_c_try_compile "$LINENO"; then :
12405 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12406 ac_cv_c_bigendian=yes
12408 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12409 if test "$ac_cv_c_bigendian" = unknown; then
12410 ac_cv_c_bigendian=no
12411 else
12412 # finding both strings is unlikely to happen, but who knows?
12413 ac_cv_c_bigendian=unknown
12417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12418 else
12419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12420 /* end confdefs.h. */
12421 $ac_includes_default
12423 main ()
12426 /* Are we little or big endian? From Harbison&Steele. */
12427 union
12429 long int l;
12430 char c[sizeof (long int)];
12431 } u;
12432 u.l = 1;
12433 return u.c[sizeof (long int) - 1] == 1;
12436 return 0;
12438 _ACEOF
12439 if ac_fn_c_try_run "$LINENO"; then :
12440 ac_cv_c_bigendian=no
12441 else
12442 ac_cv_c_bigendian=yes
12444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12445 conftest.$ac_objext conftest.beam conftest.$ac_ext
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12451 $as_echo "$ac_cv_c_bigendian" >&6; }
12452 case $ac_cv_c_bigendian in #(
12453 yes)
12454 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12455 ;; #(
12457 ;; #(
12458 universal)
12460 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12462 ;; #(
12464 as_fn_error "unknown endianness
12465 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12466 esac
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
12470 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
12471 if test "${gcc_cv_as_cfi_pseudo_op+set}" = set; then :
12472 $as_echo_n "(cached) " >&6
12473 else
12475 gcc_cv_as_cfi_pseudo_op=unknown
12476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12477 /* end confdefs.h. */
12478 asm (".cfi_startproc\n\t.cfi_endproc");
12480 main ()
12484 return 0;
12486 _ACEOF
12487 if ac_fn_c_try_compile "$LINENO"; then :
12488 gcc_cv_as_cfi_pseudo_op=yes
12489 else
12490 gcc_cv_as_cfi_pseudo_op=no
12492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
12496 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
12497 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
12499 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
12504 if test x$TARGET = xSPARC; then
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
12506 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
12507 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then :
12508 $as_echo_n "(cached) " >&6
12509 else
12511 save_CFLAGS="$CFLAGS"
12512 save_LDFLAGS="$LDFLAGS"
12513 CFLAGS="$CFLAGS -fpic"
12514 LDFLAGS="$LDFLAGS -shared"
12515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12516 /* end confdefs.h. */
12517 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
12519 main ()
12523 return 0;
12525 _ACEOF
12526 if ac_fn_c_try_link "$LINENO"; then :
12527 libffi_cv_as_sparc_ua_pcrel=yes
12528 else
12529 libffi_cv_as_sparc_ua_pcrel=no
12531 rm -f core conftest.err conftest.$ac_objext \
12532 conftest$ac_exeext conftest.$ac_ext
12533 CFLAGS="$save_CFLAGS"
12534 LDFLAGS="$save_LDFLAGS"
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
12537 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
12538 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
12540 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
12545 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
12546 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then :
12547 $as_echo_n "(cached) " >&6
12548 else
12550 libffi_cv_as_register_pseudo_op=unknown
12551 # Check if we have .register
12552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12553 /* end confdefs.h. */
12554 asm (".register %g2, #scratch");
12556 main ()
12560 return 0;
12562 _ACEOF
12563 if ac_fn_c_try_compile "$LINENO"; then :
12564 libffi_cv_as_register_pseudo_op=yes
12565 else
12566 libffi_cv_as_register_pseudo_op=no
12568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
12572 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
12573 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
12575 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
12580 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
12582 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
12583 if test "${libffi_cv_as_x86_pcrel+set}" = set; then :
12584 $as_echo_n "(cached) " >&6
12585 else
12587 libffi_cv_as_x86_pcrel=yes
12588 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
12589 if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
12590 libffi_cv_as_x86_pcrel=no
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
12595 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
12596 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
12598 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
12603 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
12604 if test "${libffi_cv_as_ascii_pseudo_op+set}" = set; then :
12605 $as_echo_n "(cached) " >&6
12606 else
12608 libffi_cv_as_ascii_pseudo_op=unknown
12609 # Check if we have .ascii
12610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611 /* end confdefs.h. */
12612 asm (".ascii \\"string\\"");
12614 main ()
12618 return 0;
12620 _ACEOF
12621 if ac_fn_c_try_compile "$LINENO"; then :
12622 libffi_cv_as_ascii_pseudo_op=yes
12623 else
12624 libffi_cv_as_ascii_pseudo_op=no
12626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
12630 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
12631 if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
12633 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
12638 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
12639 if test "${libffi_cv_as_string_pseudo_op+set}" = set; then :
12640 $as_echo_n "(cached) " >&6
12641 else
12643 libffi_cv_as_string_pseudo_op=unknown
12644 # Check if we have .string
12645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646 /* end confdefs.h. */
12647 asm (".string \\"string\\"");
12649 main ()
12653 return 0;
12655 _ACEOF
12656 if ac_fn_c_try_compile "$LINENO"; then :
12657 libffi_cv_as_string_pseudo_op=yes
12658 else
12659 libffi_cv_as_string_pseudo_op=no
12661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
12665 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
12666 if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
12668 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
12673 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
12674 # Check whether --enable-pax_emutramp was given.
12675 if test "${enable_pax_emutramp+set}" = set; then :
12676 enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
12678 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
12684 FFI_EXEC_TRAMPOLINE_TABLE=0
12685 case "$target" in
12686 *arm*-apple-darwin*)
12687 FFI_EXEC_TRAMPOLINE_TABLE=1
12689 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
12692 *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
12694 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
12697 esac
12698 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
12699 FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
12700 FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
12701 else
12702 FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
12703 FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
12708 if test x$TARGET = xX86_64; then
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
12710 $as_echo_n "checking assembler supports unwind section type... " >&6; }
12711 if test "${libffi_cv_as_x86_64_unwind_section_type+set}" = set; then :
12712 $as_echo_n "(cached) " >&6
12713 else
12715 libffi_cv_as_x86_64_unwind_section_type=yes
12716 echo '.section .eh_frame,"a",@unwind' > conftest.s
12717 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
12718 libffi_cv_as_x86_64_unwind_section_type=no
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
12723 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
12724 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
12726 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
12731 if test "x$GCC" = "xyes"; then
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
12733 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
12734 if test "${libffi_cv_ro_eh_frame+set}" = set; then :
12735 $as_echo_n "(cached) " >&6
12736 else
12738 libffi_cv_ro_eh_frame=no
12739 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
12740 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
12741 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
12742 libffi_cv_ro_eh_frame=yes
12743 elif grep '.section.*eh_frame.*#alloc' conftest.c \
12744 | grep -v '#write' > /dev/null; then
12745 libffi_cv_ro_eh_frame=yes
12748 rm -f conftest.*
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
12752 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
12753 if test "x$libffi_cv_ro_eh_frame" = xyes; then
12755 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
12758 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
12760 else
12762 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
12767 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
12768 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then :
12769 $as_echo_n "(cached) " >&6
12770 else
12772 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
12773 libffi_cv_hidden_visibility_attribute=no
12774 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
12775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12776 (eval $ac_try) 2>&5
12777 ac_status=$?
12778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12779 test $ac_status = 0; }; }; then
12780 if grep '\.hidden.*foo' conftest.s >/dev/null; then
12781 libffi_cv_hidden_visibility_attribute=yes
12784 rm -f conftest.*
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
12788 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
12789 if test $libffi_cv_hidden_visibility_attribute = yes; then
12791 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
12803 # Check whether --enable-debug was given.
12804 if test "${enable_debug+set}" = set; then :
12805 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
12807 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
12812 if test "$enable_debug" = "yes"; then
12813 FFI_DEBUG_TRUE=
12814 FFI_DEBUG_FALSE='#'
12815 else
12816 FFI_DEBUG_TRUE='#'
12817 FFI_DEBUG_FALSE=
12821 # Check whether --enable-structs was given.
12822 if test "${enable_structs+set}" = set; then :
12823 enableval=$enable_structs; if test "$enable_structs" = "no"; then
12825 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
12831 # Check whether --enable-raw-api was given.
12832 if test "${enable_raw_api+set}" = set; then :
12833 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
12835 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
12841 # Check whether --enable-purify-safety was given.
12842 if test "${enable_purify_safety+set}" = set; then :
12843 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
12845 $as_echo "#define USING_PURIFY 1" >>confdefs.h
12851 if test -n "$with_cross_host" &&
12852 test x"$with_cross_host" != x"no"; then
12853 toolexecdir='$(exec_prefix)/$(target_alias)'
12854 toolexeclibdir='$(toolexecdir)/lib'
12855 else
12856 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
12857 toolexeclibdir='$(libdir)'
12859 multi_os_directory=`$CC -print-multi-os-directory`
12860 case $multi_os_directory in
12861 .) ;; # Avoid trailing /.
12862 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
12863 esac
12867 if test "${multilib}" = "yes"; then
12868 multilib_arg="--enable-multilib"
12869 else
12870 multilib_arg=
12873 ac_config_commands="$ac_config_commands include"
12875 ac_config_commands="$ac_config_commands src"
12878 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
12881 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile"
12884 cat >confcache <<\_ACEOF
12885 # This file is a shell script that caches the results of configure
12886 # tests run on this system so they can be shared between configure
12887 # scripts and configure runs, see configure's option --config-cache.
12888 # It is not useful on other systems. If it contains results you don't
12889 # want to keep, you may remove or edit it.
12891 # config.status only pays attention to the cache file if you give it
12892 # the --recheck option to rerun configure.
12894 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12895 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12896 # following values.
12898 _ACEOF
12900 # The following way of writing the cache mishandles newlines in values,
12901 # but we know of no workaround that is simple, portable, and efficient.
12902 # So, we kill variables containing newlines.
12903 # Ultrix sh set writes to stderr and can't be redirected directly,
12904 # and sets the high bit in the cache file unless we assign to the vars.
12906 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12907 eval ac_val=\$$ac_var
12908 case $ac_val in #(
12909 *${as_nl}*)
12910 case $ac_var in #(
12911 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12912 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12913 esac
12914 case $ac_var in #(
12915 _ | IFS | as_nl) ;; #(
12916 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12917 *) { eval $ac_var=; unset $ac_var;} ;;
12918 esac ;;
12919 esac
12920 done
12922 (set) 2>&1 |
12923 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12924 *${as_nl}ac_space=\ *)
12925 # `set' does not quote correctly, so add quotes: double-quote
12926 # substitution turns \\\\ into \\, and sed turns \\ into \.
12927 sed -n \
12928 "s/'/'\\\\''/g;
12929 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12930 ;; #(
12932 # `set' quotes correctly as required by POSIX, so do not add quotes.
12933 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12935 esac |
12936 sort
12938 sed '
12939 /^ac_cv_env_/b end
12940 t clear
12941 :clear
12942 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12943 t end
12944 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12945 :end' >>confcache
12946 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12947 if test -w "$cache_file"; then
12948 test "x$cache_file" != "x/dev/null" &&
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12950 $as_echo "$as_me: updating cache $cache_file" >&6;}
12951 cat confcache >$cache_file
12952 else
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12954 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12957 rm -f confcache
12959 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12960 # Let make expand exec_prefix.
12961 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12963 DEFS=-DHAVE_CONFIG_H
12965 ac_libobjs=
12966 ac_ltlibobjs=
12967 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12968 # 1. Remove the extension, and $U if already installed.
12969 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12970 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12971 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12972 # will be set to the directory where LIBOBJS objects are built.
12973 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12974 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12975 done
12976 LIBOBJS=$ac_libobjs
12978 LTLIBOBJS=$ac_ltlibobjs
12981 if test -n "$EXEEXT"; then
12982 am__EXEEXT_TRUE=
12983 am__EXEEXT_FALSE='#'
12984 else
12985 am__EXEEXT_TRUE='#'
12986 am__EXEEXT_FALSE=
12989 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
12990 as_fn_error "conditional \"BUILD_INFO\" was never defined.
12991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12993 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
12994 as_fn_error "conditional \"GENINSRC\" was never defined.
12995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12997 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12998 as_fn_error "conditional \"AMDEP\" was never defined.
12999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13001 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13002 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13005 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
13006 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
13007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13009 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13010 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13013 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
13014 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
13015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13017 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
13018 as_fn_error "conditional \"MIPS\" was never defined.
13019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13021 if test -z "${BFIN_TRUE}" && test -z "${BFIN_FALSE}"; then
13022 as_fn_error "conditional \"BFIN\" was never defined.
13023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13025 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
13026 as_fn_error "conditional \"SPARC\" was never defined.
13027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13029 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
13030 as_fn_error "conditional \"X86\" was never defined.
13031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13033 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
13034 as_fn_error "conditional \"X86_FREEBSD\" was never defined.
13035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13037 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
13038 as_fn_error "conditional \"X86_WIN32\" was never defined.
13039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13041 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
13042 as_fn_error "conditional \"X86_WIN64\" was never defined.
13043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13045 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
13046 as_fn_error "conditional \"X86_DARWIN\" was never defined.
13047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13049 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
13050 as_fn_error "conditional \"ALPHA\" was never defined.
13051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13053 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
13054 as_fn_error "conditional \"IA64\" was never defined.
13055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13057 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
13058 as_fn_error "conditional \"M32R\" was never defined.
13059 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13061 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
13062 as_fn_error "conditional \"M68K\" was never defined.
13063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13065 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
13066 as_fn_error "conditional \"POWERPC\" was never defined.
13067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13069 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
13070 as_fn_error "conditional \"POWERPC_AIX\" was never defined.
13071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13073 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
13074 as_fn_error "conditional \"POWERPC_DARWIN\" was never defined.
13075 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13077 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
13078 as_fn_error "conditional \"POWERPC_FREEBSD\" was never defined.
13079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13081 if test -z "${AARCH64_TRUE}" && test -z "${AARCH64_FALSE}"; then
13082 as_fn_error "conditional \"AARCH64\" was never defined.
13083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13085 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
13086 as_fn_error "conditional \"ARM\" was never defined.
13087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13089 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
13090 as_fn_error "conditional \"AVR32\" was never defined.
13091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13093 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
13094 as_fn_error "conditional \"LIBFFI_CRIS\" was never defined.
13095 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13097 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
13098 as_fn_error "conditional \"FRV\" was never defined.
13099 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13101 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
13102 as_fn_error "conditional \"S390\" was never defined.
13103 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13105 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
13106 as_fn_error "conditional \"X86_64\" was never defined.
13107 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13109 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
13110 as_fn_error "conditional \"SH\" was never defined.
13111 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13113 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
13114 as_fn_error "conditional \"SH64\" was never defined.
13115 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13117 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
13118 as_fn_error "conditional \"PA_LINUX\" was never defined.
13119 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13121 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
13122 as_fn_error "conditional \"PA_HPUX\" was never defined.
13123 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13125 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
13126 as_fn_error "conditional \"PA64_HPUX\" was never defined.
13127 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13129 if test -z "${TILE_TRUE}" && test -z "${TILE_FALSE}"; then
13130 as_fn_error "conditional \"TILE\" was never defined.
13131 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13134 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
13135 as_fn_error "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
13136 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13138 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
13139 as_fn_error "conditional \"FFI_DEBUG\" was never defined.
13140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13143 : ${CONFIG_STATUS=./config.status}
13144 ac_write_fail=0
13145 ac_clean_files_save=$ac_clean_files
13146 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13148 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13149 as_write_fail=0
13150 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13151 #! $SHELL
13152 # Generated by $as_me.
13153 # Run this file to recreate the current configuration.
13154 # Compiler output produced by configure, useful for debugging
13155 # configure, is in config.log if it exists.
13157 debug=false
13158 ac_cs_recheck=false
13159 ac_cs_silent=false
13161 SHELL=\${CONFIG_SHELL-$SHELL}
13162 export SHELL
13163 _ASEOF
13164 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13165 ## -------------------- ##
13166 ## M4sh Initialization. ##
13167 ## -------------------- ##
13169 # Be more Bourne compatible
13170 DUALCASE=1; export DUALCASE # for MKS sh
13171 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13172 emulate sh
13173 NULLCMD=:
13174 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13175 # is contrary to our usage. Disable this feature.
13176 alias -g '${1+"$@"}'='"$@"'
13177 setopt NO_GLOB_SUBST
13178 else
13179 case `(set -o) 2>/dev/null` in #(
13180 *posix*) :
13181 set -o posix ;; #(
13182 *) :
13184 esac
13188 as_nl='
13190 export as_nl
13191 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13192 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13193 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13194 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13195 # Prefer a ksh shell builtin over an external printf program on Solaris,
13196 # but without wasting forks for bash or zsh.
13197 if test -z "$BASH_VERSION$ZSH_VERSION" \
13198 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13199 as_echo='print -r --'
13200 as_echo_n='print -rn --'
13201 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13202 as_echo='printf %s\n'
13203 as_echo_n='printf %s'
13204 else
13205 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13206 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13207 as_echo_n='/usr/ucb/echo -n'
13208 else
13209 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13210 as_echo_n_body='eval
13211 arg=$1;
13212 case $arg in #(
13213 *"$as_nl"*)
13214 expr "X$arg" : "X\\(.*\\)$as_nl";
13215 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13216 esac;
13217 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13219 export as_echo_n_body
13220 as_echo_n='sh -c $as_echo_n_body as_echo'
13222 export as_echo_body
13223 as_echo='sh -c $as_echo_body as_echo'
13226 # The user is always right.
13227 if test "${PATH_SEPARATOR+set}" != set; then
13228 PATH_SEPARATOR=:
13229 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13230 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13231 PATH_SEPARATOR=';'
13236 # IFS
13237 # We need space, tab and new line, in precisely that order. Quoting is
13238 # there to prevent editors from complaining about space-tab.
13239 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13240 # splitting by setting IFS to empty value.)
13241 IFS=" "" $as_nl"
13243 # Find who we are. Look in the path if we contain no directory separator.
13244 case $0 in #((
13245 *[\\/]* ) as_myself=$0 ;;
13246 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13247 for as_dir in $PATH
13249 IFS=$as_save_IFS
13250 test -z "$as_dir" && as_dir=.
13251 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13252 done
13253 IFS=$as_save_IFS
13256 esac
13257 # We did not find ourselves, most probably we were run as `sh COMMAND'
13258 # in which case we are not to be found in the path.
13259 if test "x$as_myself" = x; then
13260 as_myself=$0
13262 if test ! -f "$as_myself"; then
13263 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13264 exit 1
13267 # Unset variables that we do not need and which cause bugs (e.g. in
13268 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13269 # suppresses any "Segmentation fault" message there. '((' could
13270 # trigger a bug in pdksh 5.2.14.
13271 for as_var in BASH_ENV ENV MAIL MAILPATH
13272 do eval test x\${$as_var+set} = xset \
13273 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13274 done
13275 PS1='$ '
13276 PS2='> '
13277 PS4='+ '
13279 # NLS nuisances.
13280 LC_ALL=C
13281 export LC_ALL
13282 LANGUAGE=C
13283 export LANGUAGE
13285 # CDPATH.
13286 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13289 # as_fn_error ERROR [LINENO LOG_FD]
13290 # ---------------------------------
13291 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13292 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13293 # script with status $?, using 1 if that was 0.
13294 as_fn_error ()
13296 as_status=$?; test $as_status -eq 0 && as_status=1
13297 if test "$3"; then
13298 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13299 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13301 $as_echo "$as_me: error: $1" >&2
13302 as_fn_exit $as_status
13303 } # as_fn_error
13306 # as_fn_set_status STATUS
13307 # -----------------------
13308 # Set $? to STATUS, without forking.
13309 as_fn_set_status ()
13311 return $1
13312 } # as_fn_set_status
13314 # as_fn_exit STATUS
13315 # -----------------
13316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13317 as_fn_exit ()
13319 set +e
13320 as_fn_set_status $1
13321 exit $1
13322 } # as_fn_exit
13324 # as_fn_unset VAR
13325 # ---------------
13326 # Portably unset VAR.
13327 as_fn_unset ()
13329 { eval $1=; unset $1;}
13331 as_unset=as_fn_unset
13332 # as_fn_append VAR VALUE
13333 # ----------------------
13334 # Append the text in VALUE to the end of the definition contained in VAR. Take
13335 # advantage of any shell optimizations that allow amortized linear growth over
13336 # repeated appends, instead of the typical quadratic growth present in naive
13337 # implementations.
13338 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13339 eval 'as_fn_append ()
13341 eval $1+=\$2
13343 else
13344 as_fn_append ()
13346 eval $1=\$$1\$2
13348 fi # as_fn_append
13350 # as_fn_arith ARG...
13351 # ------------------
13352 # Perform arithmetic evaluation on the ARGs, and store the result in the
13353 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13354 # must be portable across $(()) and expr.
13355 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13356 eval 'as_fn_arith ()
13358 as_val=$(( $* ))
13360 else
13361 as_fn_arith ()
13363 as_val=`expr "$@" || test $? -eq 1`
13365 fi # as_fn_arith
13368 if expr a : '\(a\)' >/dev/null 2>&1 &&
13369 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13370 as_expr=expr
13371 else
13372 as_expr=false
13375 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13376 as_basename=basename
13377 else
13378 as_basename=false
13381 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13382 as_dirname=dirname
13383 else
13384 as_dirname=false
13387 as_me=`$as_basename -- "$0" ||
13388 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13389 X"$0" : 'X\(//\)$' \| \
13390 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13391 $as_echo X/"$0" |
13392 sed '/^.*\/\([^/][^/]*\)\/*$/{
13393 s//\1/
13396 /^X\/\(\/\/\)$/{
13397 s//\1/
13400 /^X\/\(\/\).*/{
13401 s//\1/
13404 s/.*/./; q'`
13406 # Avoid depending upon Character Ranges.
13407 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13408 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13409 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13410 as_cr_digits='0123456789'
13411 as_cr_alnum=$as_cr_Letters$as_cr_digits
13413 ECHO_C= ECHO_N= ECHO_T=
13414 case `echo -n x` in #(((((
13415 -n*)
13416 case `echo 'xy\c'` in
13417 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13418 xy) ECHO_C='\c';;
13419 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13420 ECHO_T=' ';;
13421 esac;;
13423 ECHO_N='-n';;
13424 esac
13426 rm -f conf$$ conf$$.exe conf$$.file
13427 if test -d conf$$.dir; then
13428 rm -f conf$$.dir/conf$$.file
13429 else
13430 rm -f conf$$.dir
13431 mkdir conf$$.dir 2>/dev/null
13433 if (echo >conf$$.file) 2>/dev/null; then
13434 if ln -s conf$$.file conf$$ 2>/dev/null; then
13435 as_ln_s='ln -s'
13436 # ... but there are two gotchas:
13437 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13438 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13439 # In both cases, we have to default to `cp -p'.
13440 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13441 as_ln_s='cp -p'
13442 elif ln conf$$.file conf$$ 2>/dev/null; then
13443 as_ln_s=ln
13444 else
13445 as_ln_s='cp -p'
13447 else
13448 as_ln_s='cp -p'
13450 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13451 rmdir conf$$.dir 2>/dev/null
13454 # as_fn_mkdir_p
13455 # -------------
13456 # Create "$as_dir" as a directory, including parents if necessary.
13457 as_fn_mkdir_p ()
13460 case $as_dir in #(
13461 -*) as_dir=./$as_dir;;
13462 esac
13463 test -d "$as_dir" || eval $as_mkdir_p || {
13464 as_dirs=
13465 while :; do
13466 case $as_dir in #(
13467 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13468 *) as_qdir=$as_dir;;
13469 esac
13470 as_dirs="'$as_qdir' $as_dirs"
13471 as_dir=`$as_dirname -- "$as_dir" ||
13472 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13473 X"$as_dir" : 'X\(//\)[^/]' \| \
13474 X"$as_dir" : 'X\(//\)$' \| \
13475 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13476 $as_echo X"$as_dir" |
13477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13478 s//\1/
13481 /^X\(\/\/\)[^/].*/{
13482 s//\1/
13485 /^X\(\/\/\)$/{
13486 s//\1/
13489 /^X\(\/\).*/{
13490 s//\1/
13493 s/.*/./; q'`
13494 test -d "$as_dir" && break
13495 done
13496 test -z "$as_dirs" || eval "mkdir $as_dirs"
13497 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13500 } # as_fn_mkdir_p
13501 if mkdir -p . 2>/dev/null; then
13502 as_mkdir_p='mkdir -p "$as_dir"'
13503 else
13504 test -d ./-p && rmdir ./-p
13505 as_mkdir_p=false
13508 if test -x / >/dev/null 2>&1; then
13509 as_test_x='test -x'
13510 else
13511 if ls -dL / >/dev/null 2>&1; then
13512 as_ls_L_option=L
13513 else
13514 as_ls_L_option=
13516 as_test_x='
13517 eval sh -c '\''
13518 if test -d "$1"; then
13519 test -d "$1/.";
13520 else
13521 case $1 in #(
13522 -*)set "./$1";;
13523 esac;
13524 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13525 ???[sx]*):;;*)false;;esac;fi
13526 '\'' sh
13529 as_executable_p=$as_test_x
13531 # Sed expression to map a string onto a valid CPP name.
13532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13534 # Sed expression to map a string onto a valid variable name.
13535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13538 exec 6>&1
13539 ## ----------------------------------- ##
13540 ## Main body of $CONFIG_STATUS script. ##
13541 ## ----------------------------------- ##
13542 _ASEOF
13543 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13546 # Save the log message, to keep $0 and so on meaningful, and to
13547 # report actual input values of CONFIG_FILES etc. instead of their
13548 # values after options handling.
13549 ac_log="
13550 This file was extended by libffi $as_me 3.0.11, which was
13551 generated by GNU Autoconf 2.64. Invocation command line was
13553 CONFIG_FILES = $CONFIG_FILES
13554 CONFIG_HEADERS = $CONFIG_HEADERS
13555 CONFIG_LINKS = $CONFIG_LINKS
13556 CONFIG_COMMANDS = $CONFIG_COMMANDS
13557 $ $0 $@
13559 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13562 _ACEOF
13564 case $ac_config_files in *"
13565 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13566 esac
13568 case $ac_config_headers in *"
13569 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13570 esac
13573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13574 # Files that config.status was made for.
13575 config_files="$ac_config_files"
13576 config_headers="$ac_config_headers"
13577 config_links="$ac_config_links"
13578 config_commands="$ac_config_commands"
13580 _ACEOF
13582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13583 ac_cs_usage="\
13584 \`$as_me' instantiates files and other configuration actions
13585 from templates according to the current configuration. Unless the files
13586 and actions are specified as TAGs, all are instantiated by default.
13588 Usage: $0 [OPTION]... [TAG]...
13590 -h, --help print this help, then exit
13591 -V, --version print version number and configuration settings, then exit
13592 -q, --quiet, --silent
13593 do not print progress messages
13594 -d, --debug don't remove temporary files
13595 --recheck update $as_me by reconfiguring in the same conditions
13596 --file=FILE[:TEMPLATE]
13597 instantiate the configuration file FILE
13598 --header=FILE[:TEMPLATE]
13599 instantiate the configuration header FILE
13601 Configuration files:
13602 $config_files
13604 Configuration headers:
13605 $config_headers
13607 Configuration links:
13608 $config_links
13610 Configuration commands:
13611 $config_commands
13613 Report bugs to <http://gcc.gnu.org/bugs.html>."
13615 _ACEOF
13616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13617 ac_cs_version="\\
13618 libffi config.status 3.0.11
13619 configured by $0, generated by GNU Autoconf 2.64,
13620 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13622 Copyright (C) 2009 Free Software Foundation, Inc.
13623 This config.status script is free software; the Free Software Foundation
13624 gives unlimited permission to copy, distribute and modify it."
13626 ac_pwd='$ac_pwd'
13627 srcdir='$srcdir'
13628 INSTALL='$INSTALL'
13629 MKDIR_P='$MKDIR_P'
13630 AWK='$AWK'
13631 test -n "\$AWK" || AWK=awk
13632 _ACEOF
13634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13635 # The default lists apply if the user does not specify any file.
13636 ac_need_defaults=:
13637 while test $# != 0
13639 case $1 in
13640 --*=*)
13641 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13642 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13643 ac_shift=:
13646 ac_option=$1
13647 ac_optarg=$2
13648 ac_shift=shift
13650 esac
13652 case $ac_option in
13653 # Handling of the options.
13654 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13655 ac_cs_recheck=: ;;
13656 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13657 $as_echo "$ac_cs_version"; exit ;;
13658 --debug | --debu | --deb | --de | --d | -d )
13659 debug=: ;;
13660 --file | --fil | --fi | --f )
13661 $ac_shift
13662 case $ac_optarg in
13663 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13664 esac
13665 as_fn_append CONFIG_FILES " '$ac_optarg'"
13666 ac_need_defaults=false;;
13667 --header | --heade | --head | --hea )
13668 $ac_shift
13669 case $ac_optarg in
13670 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13671 esac
13672 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13673 ac_need_defaults=false;;
13674 --he | --h)
13675 # Conflict between --help and --header
13676 as_fn_error "ambiguous option: \`$1'
13677 Try \`$0 --help' for more information.";;
13678 --help | --hel | -h )
13679 $as_echo "$ac_cs_usage"; exit ;;
13680 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13681 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13682 ac_cs_silent=: ;;
13684 # This is an error.
13685 -*) as_fn_error "unrecognized option: \`$1'
13686 Try \`$0 --help' for more information." ;;
13688 *) as_fn_append ac_config_targets " $1"
13689 ac_need_defaults=false ;;
13691 esac
13692 shift
13693 done
13695 ac_configure_extra_args=
13697 if $ac_cs_silent; then
13698 exec 6>/dev/null
13699 ac_configure_extra_args="$ac_configure_extra_args --silent"
13702 _ACEOF
13703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13704 if \$ac_cs_recheck; then
13705 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13706 shift
13707 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13708 CONFIG_SHELL='$SHELL'
13709 export CONFIG_SHELL
13710 exec "\$@"
13713 _ACEOF
13714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13715 exec 5>>config.log
13717 echo
13718 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13719 ## Running $as_me. ##
13720 _ASBOX
13721 $as_echo "$ac_log"
13722 } >&5
13724 _ACEOF
13725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13727 # INIT-COMMANDS
13730 srcdir="$srcdir"
13731 host="$host"
13732 target="$target"
13733 with_multisubdir="$with_multisubdir"
13734 with_multisrctop="$with_multisrctop"
13735 with_target_subdir="$with_target_subdir"
13736 ac_configure_args="${multilib_arg} ${ac_configure_args}"
13737 multi_basedir="$multi_basedir"
13738 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13739 CC="$CC"
13740 CXX="$CXX"
13741 GFORTRAN="$GFORTRAN"
13742 GCJ="$GCJ"
13743 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13746 # The HP-UX ksh and POSIX shell print the target directory to stdout
13747 # if CDPATH is set.
13748 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13750 sed_quote_subst='$sed_quote_subst'
13751 double_quote_subst='$double_quote_subst'
13752 delay_variable_subst='$delay_variable_subst'
13753 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13754 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13755 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13756 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13757 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13758 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13759 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13760 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13761 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13762 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13763 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13764 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13765 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13766 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13767 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13768 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13769 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13770 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13771 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13772 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13773 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13774 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13775 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13776 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13777 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13778 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13779 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13780 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13781 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13782 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13783 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13784 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13785 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13786 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13787 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13788 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13789 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13790 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13791 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13792 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13793 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13794 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13795 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13796 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13797 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13798 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13799 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13800 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13801 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"`'
13802 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13803 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13804 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13805 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13806 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13807 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13808 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13809 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13810 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13811 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13812 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13813 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13814 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13815 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13816 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13817 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13818 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13819 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13820 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13821 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13822 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13823 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13824 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13825 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13826 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13827 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13828 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13829 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13830 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13831 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13832 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13833 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13834 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13835 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13836 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13837 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13838 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13839 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13840 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13841 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13842 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13843 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13844 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13845 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13846 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13847 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13848 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13849 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13850 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13851 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13852 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13853 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13854 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13855 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13856 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13857 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13858 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13859 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13860 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13861 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13862 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13863 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13864 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13865 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13866 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13867 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13868 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13869 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13870 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13871 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13872 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13874 LTCC='$LTCC'
13875 LTCFLAGS='$LTCFLAGS'
13876 compiler='$compiler_DEFAULT'
13878 # A function that is used when there is no print builtin or printf.
13879 func_fallback_echo ()
13881 eval 'cat <<_LTECHO_EOF
13883 _LTECHO_EOF'
13886 # Quote evaled strings.
13887 for var in SHELL \
13888 ECHO \
13889 SED \
13890 GREP \
13891 EGREP \
13892 FGREP \
13893 LD \
13894 NM \
13895 LN_S \
13896 lt_SP2NL \
13897 lt_NL2SP \
13898 reload_flag \
13899 OBJDUMP \
13900 deplibs_check_method \
13901 file_magic_cmd \
13902 AR \
13903 AR_FLAGS \
13904 STRIP \
13905 RANLIB \
13906 CC \
13907 CFLAGS \
13908 compiler \
13909 lt_cv_sys_global_symbol_pipe \
13910 lt_cv_sys_global_symbol_to_cdecl \
13911 lt_cv_sys_global_symbol_to_c_name_address \
13912 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13913 lt_prog_compiler_no_builtin_flag \
13914 lt_prog_compiler_wl \
13915 lt_prog_compiler_pic \
13916 lt_prog_compiler_static \
13917 lt_cv_prog_compiler_c_o \
13918 need_locks \
13919 DSYMUTIL \
13920 NMEDIT \
13921 LIPO \
13922 OTOOL \
13923 OTOOL64 \
13924 shrext_cmds \
13925 export_dynamic_flag_spec \
13926 whole_archive_flag_spec \
13927 compiler_needs_object \
13928 with_gnu_ld \
13929 allow_undefined_flag \
13930 no_undefined_flag \
13931 hardcode_libdir_flag_spec \
13932 hardcode_libdir_flag_spec_ld \
13933 hardcode_libdir_separator \
13934 fix_srcfile_path \
13935 exclude_expsyms \
13936 include_expsyms \
13937 file_list_spec \
13938 variables_saved_for_relink \
13939 libname_spec \
13940 library_names_spec \
13941 soname_spec \
13942 install_override_mode \
13943 finish_eval \
13944 old_striplib \
13945 striplib; do
13946 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13947 *[\\\\\\\`\\"\\\$]*)
13948 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13951 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13953 esac
13954 done
13956 # Double-quote double-evaled strings.
13957 for var in reload_cmds \
13958 old_postinstall_cmds \
13959 old_postuninstall_cmds \
13960 old_archive_cmds \
13961 extract_expsyms_cmds \
13962 old_archive_from_new_cmds \
13963 old_archive_from_expsyms_cmds \
13964 archive_cmds \
13965 archive_expsym_cmds \
13966 module_cmds \
13967 module_expsym_cmds \
13968 export_symbols_cmds \
13969 prelink_cmds \
13970 postinstall_cmds \
13971 postuninstall_cmds \
13972 finish_cmds \
13973 sys_lib_search_path_spec \
13974 sys_lib_dlsearch_path_spec; do
13975 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13976 *[\\\\\\\`\\"\\\$]*)
13977 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13980 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13982 esac
13983 done
13985 ac_aux_dir='$ac_aux_dir'
13986 xsi_shell='$xsi_shell'
13987 lt_shell_append='$lt_shell_append'
13989 # See if we are running on zsh, and set the options which allow our
13990 # commands through without removal of \ escapes INIT.
13991 if test -n "\${ZSH_VERSION+set}" ; then
13992 setopt NO_GLOB_SUBST
13996 PACKAGE='$PACKAGE'
13997 VERSION='$VERSION'
13998 TIMESTAMP='$TIMESTAMP'
13999 RM='$RM'
14000 ofile='$ofile'
14004 TARGETDIR="$TARGETDIR"
14006 _ACEOF
14008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14010 # Handling of arguments.
14011 for ac_config_target in $ac_config_targets
14013 case $ac_config_target in
14014 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
14015 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14016 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14017 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14018 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
14019 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
14020 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
14021 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14022 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
14023 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14024 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
14025 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14027 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14028 esac
14029 done
14032 # If the user did not use the arguments to specify the items to instantiate,
14033 # then the envvar interface is used. Set only those that are not.
14034 # We use the long form for the default assignment because of an extremely
14035 # bizarre bug on SunOS 4.1.3.
14036 if $ac_need_defaults; then
14037 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14038 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14039 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
14040 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14043 # Have a temporary directory for convenience. Make it in the build tree
14044 # simply because there is no reason against having it here, and in addition,
14045 # creating and moving files from /tmp can sometimes cause problems.
14046 # Hook for its removal unless debugging.
14047 # Note that there is a small window in which the directory will not be cleaned:
14048 # after its creation but before its name has been assigned to `$tmp'.
14049 $debug ||
14051 tmp=
14052 trap 'exit_status=$?
14053 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14055 trap 'as_fn_exit 1' 1 2 13 15
14057 # Create a (secure) tmp directory for tmp files.
14060 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14061 test -n "$tmp" && test -d "$tmp"
14062 } ||
14064 tmp=./conf$$-$RANDOM
14065 (umask 077 && mkdir "$tmp")
14066 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14068 # Set up the scripts for CONFIG_FILES section.
14069 # No need to generate them if there are no CONFIG_FILES.
14070 # This happens for instance with `./config.status config.h'.
14071 if test -n "$CONFIG_FILES"; then
14074 ac_cr=`echo X | tr X '\015'`
14075 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14076 # But we know of no other shell where ac_cr would be empty at this
14077 # point, so we can use a bashism as a fallback.
14078 if test "x$ac_cr" = x; then
14079 eval ac_cr=\$\'\\r\'
14081 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14082 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14083 ac_cs_awk_cr='\r'
14084 else
14085 ac_cs_awk_cr=$ac_cr
14088 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14089 _ACEOF
14093 echo "cat >conf$$subs.awk <<_ACEOF" &&
14094 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14095 echo "_ACEOF"
14096 } >conf$$subs.sh ||
14097 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14098 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14099 ac_delim='%!_!# '
14100 for ac_last_try in false false false false false :; do
14101 . ./conf$$subs.sh ||
14102 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14104 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14105 if test $ac_delim_n = $ac_delim_num; then
14106 break
14107 elif $ac_last_try; then
14108 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14109 else
14110 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14112 done
14113 rm -f conf$$subs.sh
14115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14116 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14117 _ACEOF
14118 sed -n '
14120 s/^/S["/; s/!.*/"]=/
14123 s/^[^!]*!//
14124 :repl
14125 t repl
14126 s/'"$ac_delim"'$//
14127 t delim
14130 s/\(.\{148\}\).*/\1/
14131 t more1
14132 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14135 b repl
14136 :more1
14137 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14140 s/.\{148\}//
14141 t nl
14142 :delim
14144 s/\(.\{148\}\).*/\1/
14145 t more2
14146 s/["\\]/\\&/g; s/^/"/; s/$/"/
14149 :more2
14150 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14153 s/.\{148\}//
14154 t delim
14155 ' <conf$$subs.awk | sed '
14156 /^[^""]/{
14158 s/\n//
14160 ' >>$CONFIG_STATUS || ac_write_fail=1
14161 rm -f conf$$subs.awk
14162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14163 _ACAWK
14164 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14165 for (key in S) S_is_set[key] = 1
14166 FS = "\a"
14170 line = $ 0
14171 nfields = split(line, field, "@")
14172 substed = 0
14173 len = length(field[1])
14174 for (i = 2; i < nfields; i++) {
14175 key = field[i]
14176 keylen = length(key)
14177 if (S_is_set[key]) {
14178 value = S[key]
14179 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14180 len += length(value) + length(field[++i])
14181 substed = 1
14182 } else
14183 len += 1 + keylen
14186 print line
14189 _ACAWK
14190 _ACEOF
14191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14192 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14193 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14194 else
14196 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14197 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14198 _ACEOF
14200 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14201 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14202 # trailing colons and then remove the whole line if VPATH becomes empty
14203 # (actually we leave an empty line to preserve line numbers).
14204 if test "x$srcdir" = x.; then
14205 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14206 s/:*\$(srcdir):*/:/
14207 s/:*\${srcdir}:*/:/
14208 s/:*@srcdir@:*/:/
14209 s/^\([^=]*=[ ]*\):*/\1/
14210 s/:*$//
14211 s/^[^=]*=[ ]*$//
14215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14216 fi # test -n "$CONFIG_FILES"
14218 # Set up the scripts for CONFIG_HEADERS section.
14219 # No need to generate them if there are no CONFIG_HEADERS.
14220 # This happens for instance with `./config.status Makefile'.
14221 if test -n "$CONFIG_HEADERS"; then
14222 cat >"$tmp/defines.awk" <<\_ACAWK ||
14223 BEGIN {
14224 _ACEOF
14226 # Transform confdefs.h into an awk script `defines.awk', embedded as
14227 # here-document in config.status, that substitutes the proper values into
14228 # config.h.in to produce config.h.
14230 # Create a delimiter string that does not exist in confdefs.h, to ease
14231 # handling of long lines.
14232 ac_delim='%!_!# '
14233 for ac_last_try in false false :; do
14234 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14235 if test -z "$ac_t"; then
14236 break
14237 elif $ac_last_try; then
14238 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14239 else
14240 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14242 done
14244 # For the awk script, D is an array of macro values keyed by name,
14245 # likewise P contains macro parameters if any. Preserve backslash
14246 # newline sequences.
14248 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14249 sed -n '
14250 s/.\{148\}/&'"$ac_delim"'/g
14251 t rset
14252 :rset
14253 s/^[ ]*#[ ]*define[ ][ ]*/ /
14254 t def
14256 :def
14257 s/\\$//
14258 t bsnl
14259 s/["\\]/\\&/g
14260 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14261 D["\1"]=" \3"/p
14262 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14264 :bsnl
14265 s/["\\]/\\&/g
14266 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14267 D["\1"]=" \3\\\\\\n"\\/p
14268 t cont
14269 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14270 t cont
14272 :cont
14274 s/.\{148\}/&'"$ac_delim"'/g
14275 t clear
14276 :clear
14277 s/\\$//
14278 t bsnlc
14279 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14281 :bsnlc
14282 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14283 b cont
14284 ' <confdefs.h | sed '
14285 s/'"$ac_delim"'/"\\\
14286 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14289 for (key in D) D_is_set[key] = 1
14290 FS = "\a"
14292 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14293 line = \$ 0
14294 split(line, arg, " ")
14295 if (arg[1] == "#") {
14296 defundef = arg[2]
14297 mac1 = arg[3]
14298 } else {
14299 defundef = substr(arg[1], 2)
14300 mac1 = arg[2]
14302 split(mac1, mac2, "(") #)
14303 macro = mac2[1]
14304 prefix = substr(line, 1, index(line, defundef) - 1)
14305 if (D_is_set[macro]) {
14306 # Preserve the white space surrounding the "#".
14307 print prefix "define", macro P[macro] D[macro]
14308 next
14309 } else {
14310 # Replace #undef with comments. This is necessary, for example,
14311 # in the case of _POSIX_SOURCE, which is predefined and required
14312 # on some systems where configure will not decide to define it.
14313 if (defundef == "undef") {
14314 print "/*", prefix defundef, macro, "*/"
14315 next
14319 { print }
14320 _ACAWK
14321 _ACEOF
14322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14323 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14324 fi # test -n "$CONFIG_HEADERS"
14327 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
14328 shift
14329 for ac_tag
14331 case $ac_tag in
14332 :[FHLC]) ac_mode=$ac_tag; continue;;
14333 esac
14334 case $ac_mode$ac_tag in
14335 :[FHL]*:*);;
14336 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14337 :[FH]-) ac_tag=-:-;;
14338 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14339 esac
14340 ac_save_IFS=$IFS
14341 IFS=:
14342 set x $ac_tag
14343 IFS=$ac_save_IFS
14344 shift
14345 ac_file=$1
14346 shift
14348 case $ac_mode in
14349 :L) ac_source=$1;;
14350 :[FH])
14351 ac_file_inputs=
14352 for ac_f
14354 case $ac_f in
14355 -) ac_f="$tmp/stdin";;
14356 *) # Look for the file first in the build tree, then in the source tree
14357 # (if the path is not absolute). The absolute path cannot be DOS-style,
14358 # because $ac_f cannot contain `:'.
14359 test -f "$ac_f" ||
14360 case $ac_f in
14361 [\\/$]*) false;;
14362 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14363 esac ||
14364 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14365 esac
14366 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14367 as_fn_append ac_file_inputs " '$ac_f'"
14368 done
14370 # Let's still pretend it is `configure' which instantiates (i.e., don't
14371 # use $as_me), people would be surprised to read:
14372 # /* config.h. Generated by config.status. */
14373 configure_input='Generated from '`
14374 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14375 `' by configure.'
14376 if test x"$ac_file" != x-; then
14377 configure_input="$ac_file. $configure_input"
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14379 $as_echo "$as_me: creating $ac_file" >&6;}
14381 # Neutralize special characters interpreted by sed in replacement strings.
14382 case $configure_input in #(
14383 *\&* | *\|* | *\\* )
14384 ac_sed_conf_input=`$as_echo "$configure_input" |
14385 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14386 *) ac_sed_conf_input=$configure_input;;
14387 esac
14389 case $ac_tag in
14390 *:-:* | *:-) cat >"$tmp/stdin" \
14391 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14392 esac
14394 esac
14396 ac_dir=`$as_dirname -- "$ac_file" ||
14397 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14398 X"$ac_file" : 'X\(//\)[^/]' \| \
14399 X"$ac_file" : 'X\(//\)$' \| \
14400 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14401 $as_echo X"$ac_file" |
14402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14403 s//\1/
14406 /^X\(\/\/\)[^/].*/{
14407 s//\1/
14410 /^X\(\/\/\)$/{
14411 s//\1/
14414 /^X\(\/\).*/{
14415 s//\1/
14418 s/.*/./; q'`
14419 as_dir="$ac_dir"; as_fn_mkdir_p
14420 ac_builddir=.
14422 case "$ac_dir" in
14423 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14425 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14426 # A ".." for each directory in $ac_dir_suffix.
14427 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14428 case $ac_top_builddir_sub in
14429 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14430 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14431 esac ;;
14432 esac
14433 ac_abs_top_builddir=$ac_pwd
14434 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14435 # for backward compatibility:
14436 ac_top_builddir=$ac_top_build_prefix
14438 case $srcdir in
14439 .) # We are building in place.
14440 ac_srcdir=.
14441 ac_top_srcdir=$ac_top_builddir_sub
14442 ac_abs_top_srcdir=$ac_pwd ;;
14443 [\\/]* | ?:[\\/]* ) # Absolute name.
14444 ac_srcdir=$srcdir$ac_dir_suffix;
14445 ac_top_srcdir=$srcdir
14446 ac_abs_top_srcdir=$srcdir ;;
14447 *) # Relative name.
14448 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14449 ac_top_srcdir=$ac_top_build_prefix$srcdir
14450 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14451 esac
14452 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14455 case $ac_mode in
14458 # CONFIG_FILE
14461 case $INSTALL in
14462 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14463 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14464 esac
14465 ac_MKDIR_P=$MKDIR_P
14466 case $MKDIR_P in
14467 [\\/$]* | ?:[\\/]* ) ;;
14468 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14469 esac
14470 _ACEOF
14472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14473 # If the template does not know about datarootdir, expand it.
14474 # FIXME: This hack should be removed a few years after 2.60.
14475 ac_datarootdir_hack=; ac_datarootdir_seen=
14476 ac_sed_dataroot='
14477 /datarootdir/ {
14481 /@datadir@/p
14482 /@docdir@/p
14483 /@infodir@/p
14484 /@localedir@/p
14485 /@mandir@/p'
14486 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14487 *datarootdir*) ac_datarootdir_seen=yes;;
14488 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14490 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14491 _ACEOF
14492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14493 ac_datarootdir_hack='
14494 s&@datadir@&$datadir&g
14495 s&@docdir@&$docdir&g
14496 s&@infodir@&$infodir&g
14497 s&@localedir@&$localedir&g
14498 s&@mandir@&$mandir&g
14499 s&\\\${datarootdir}&$datarootdir&g' ;;
14500 esac
14501 _ACEOF
14503 # Neutralize VPATH when `$srcdir' = `.'.
14504 # Shell code in configure.ac might set extrasub.
14505 # FIXME: do we really want to maintain this feature?
14506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14507 ac_sed_extra="$ac_vpsub
14508 $extrasub
14509 _ACEOF
14510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14512 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14513 s|@configure_input@|$ac_sed_conf_input|;t t
14514 s&@top_builddir@&$ac_top_builddir_sub&;t t
14515 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14516 s&@srcdir@&$ac_srcdir&;t t
14517 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14518 s&@top_srcdir@&$ac_top_srcdir&;t t
14519 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14520 s&@builddir@&$ac_builddir&;t t
14521 s&@abs_builddir@&$ac_abs_builddir&;t t
14522 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14523 s&@INSTALL@&$ac_INSTALL&;t t
14524 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14525 $ac_datarootdir_hack
14527 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14528 || as_fn_error "could not create $ac_file" "$LINENO" 5
14530 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14531 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14532 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14534 which seems to be undefined. Please make sure it is defined." >&5
14535 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14536 which seems to be undefined. Please make sure it is defined." >&2;}
14538 rm -f "$tmp/stdin"
14539 case $ac_file in
14540 -) cat "$tmp/out" && rm -f "$tmp/out";;
14541 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14542 esac \
14543 || as_fn_error "could not create $ac_file" "$LINENO" 5
14547 # CONFIG_HEADER
14549 if test x"$ac_file" != x-; then
14551 $as_echo "/* $configure_input */" \
14552 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14553 } >"$tmp/config.h" \
14554 || as_fn_error "could not create $ac_file" "$LINENO" 5
14555 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14557 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14558 else
14559 rm -f "$ac_file"
14560 mv "$tmp/config.h" "$ac_file" \
14561 || as_fn_error "could not create $ac_file" "$LINENO" 5
14563 else
14564 $as_echo "/* $configure_input */" \
14565 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14566 || as_fn_error "could not create -" "$LINENO" 5
14568 # Compute "$ac_file"'s index in $config_headers.
14569 _am_arg="$ac_file"
14570 _am_stamp_count=1
14571 for _am_header in $config_headers :; do
14572 case $_am_header in
14573 $_am_arg | $_am_arg:* )
14574 break ;;
14576 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14577 esac
14578 done
14579 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14580 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14581 X"$_am_arg" : 'X\(//\)[^/]' \| \
14582 X"$_am_arg" : 'X\(//\)$' \| \
14583 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14584 $as_echo X"$_am_arg" |
14585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14586 s//\1/
14589 /^X\(\/\/\)[^/].*/{
14590 s//\1/
14593 /^X\(\/\/\)$/{
14594 s//\1/
14597 /^X\(\/\).*/{
14598 s//\1/
14601 s/.*/./; q'`/stamp-h$_am_stamp_count
14605 # CONFIG_LINK
14608 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
14610 else
14611 # Prefer the file from the source tree if names are identical.
14612 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
14613 ac_source=$srcdir/$ac_source
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
14617 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
14619 if test ! -r "$ac_source"; then
14620 as_fn_error "$ac_source: file not found" "$LINENO" 5
14622 rm -f "$ac_file"
14624 # Try a relative symlink, then a hard link, then a copy.
14625 case $srcdir in
14626 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
14627 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
14628 esac
14629 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
14630 ln "$ac_source" "$ac_file" 2>/dev/null ||
14631 cp -p "$ac_source" "$ac_file" ||
14632 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
14635 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14636 $as_echo "$as_me: executing $ac_file commands" >&6;}
14638 esac
14641 case $ac_file$ac_mode in
14642 "default-1":C)
14643 # Only add multilib support code if we just rebuilt the top-level
14644 # Makefile.
14645 case " $CONFIG_FILES " in
14646 *" Makefile "*)
14647 ac_file=Makefile . ${multi_basedir}/config-ml.in
14649 esac ;;
14650 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14651 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14652 # are listed without --file. Let's play safe and only enable the eval
14653 # if we detect the quoting.
14654 case $CONFIG_FILES in
14655 *\'*) eval set x "$CONFIG_FILES" ;;
14656 *) set x $CONFIG_FILES ;;
14657 esac
14658 shift
14659 for mf
14661 # Strip MF so we end up with the name of the file.
14662 mf=`echo "$mf" | sed -e 's/:.*$//'`
14663 # Check whether this is an Automake generated Makefile or not.
14664 # We used to match only the files named `Makefile.in', but
14665 # some people rename them; so instead we look at the file content.
14666 # Grep'ing the first line is not enough: some people post-process
14667 # each Makefile.in and add a new line on top of each file to say so.
14668 # Grep'ing the whole file is not good either: AIX grep has a line
14669 # limit of 2048, but all sed's we know have understand at least 4000.
14670 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14671 dirpart=`$as_dirname -- "$mf" ||
14672 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14673 X"$mf" : 'X\(//\)[^/]' \| \
14674 X"$mf" : 'X\(//\)$' \| \
14675 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14676 $as_echo X"$mf" |
14677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14678 s//\1/
14681 /^X\(\/\/\)[^/].*/{
14682 s//\1/
14685 /^X\(\/\/\)$/{
14686 s//\1/
14689 /^X\(\/\).*/{
14690 s//\1/
14693 s/.*/./; q'`
14694 else
14695 continue
14697 # Extract the definition of DEPDIR, am__include, and am__quote
14698 # from the Makefile without running `make'.
14699 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14700 test -z "$DEPDIR" && continue
14701 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14702 test -z "am__include" && continue
14703 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14704 # When using ansi2knr, U may be empty or an underscore; expand it
14705 U=`sed -n 's/^U = //p' < "$mf"`
14706 # Find all dependency output files, they are included files with
14707 # $(DEPDIR) in their names. We invoke sed twice because it is the
14708 # simplest approach to changing $(DEPDIR) to its actual value in the
14709 # expansion.
14710 for file in `sed -n "
14711 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14712 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14713 # Make sure the directory exists.
14714 test -f "$dirpart/$file" && continue
14715 fdir=`$as_dirname -- "$file" ||
14716 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14717 X"$file" : 'X\(//\)[^/]' \| \
14718 X"$file" : 'X\(//\)$' \| \
14719 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14720 $as_echo X"$file" |
14721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14722 s//\1/
14725 /^X\(\/\/\)[^/].*/{
14726 s//\1/
14729 /^X\(\/\/\)$/{
14730 s//\1/
14733 /^X\(\/\).*/{
14734 s//\1/
14737 s/.*/./; q'`
14738 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14739 # echo "creating $dirpart/$file"
14740 echo '# dummy' > "$dirpart/$file"
14741 done
14742 done
14745 "libtool":C)
14747 # See if we are running on zsh, and set the options which allow our
14748 # commands through without removal of \ escapes.
14749 if test -n "${ZSH_VERSION+set}" ; then
14750 setopt NO_GLOB_SUBST
14753 cfgfile="${ofile}T"
14754 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14755 $RM "$cfgfile"
14757 cat <<_LT_EOF >> "$cfgfile"
14758 #! $SHELL
14760 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14761 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14762 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14763 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14765 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14766 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14767 # Written by Gordon Matzigkeit, 1996
14769 # This file is part of GNU Libtool.
14771 # GNU Libtool is free software; you can redistribute it and/or
14772 # modify it under the terms of the GNU General Public License as
14773 # published by the Free Software Foundation; either version 2 of
14774 # the License, or (at your option) any later version.
14776 # As a special exception to the GNU General Public License,
14777 # if you distribute this file as part of a program or library that
14778 # is built using GNU Libtool, you may include this file under the
14779 # same distribution terms that you use for the rest of that program.
14781 # GNU Libtool is distributed in the hope that it will be useful,
14782 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14783 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14784 # GNU General Public License for more details.
14786 # You should have received a copy of the GNU General Public License
14787 # along with GNU Libtool; see the file COPYING. If not, a copy
14788 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14789 # obtained by writing to the Free Software Foundation, Inc.,
14790 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14793 # The names of the tagged configurations supported by this script.
14794 available_tags=""
14796 # ### BEGIN LIBTOOL CONFIG
14798 # Which release of libtool.m4 was used?
14799 macro_version=$macro_version
14800 macro_revision=$macro_revision
14802 # Whether or not to build shared libraries.
14803 build_libtool_libs=$enable_shared
14805 # Whether or not to build static libraries.
14806 build_old_libs=$enable_static
14808 # What type of objects to build.
14809 pic_mode=$pic_mode
14811 # Whether or not to optimize for fast installation.
14812 fast_install=$enable_fast_install
14814 # Shell to use when invoking shell scripts.
14815 SHELL=$lt_SHELL
14817 # An echo program that protects backslashes.
14818 ECHO=$lt_ECHO
14820 # The host system.
14821 host_alias=$host_alias
14822 host=$host
14823 host_os=$host_os
14825 # The build system.
14826 build_alias=$build_alias
14827 build=$build
14828 build_os=$build_os
14830 # A sed program that does not truncate output.
14831 SED=$lt_SED
14833 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14834 Xsed="\$SED -e 1s/^X//"
14836 # A grep program that handles long lines.
14837 GREP=$lt_GREP
14839 # An ERE matcher.
14840 EGREP=$lt_EGREP
14842 # A literal string matcher.
14843 FGREP=$lt_FGREP
14845 # A BSD- or MS-compatible name lister.
14846 NM=$lt_NM
14848 # Whether we need soft or hard links.
14849 LN_S=$lt_LN_S
14851 # What is the maximum length of a command?
14852 max_cmd_len=$max_cmd_len
14854 # Object file suffix (normally "o").
14855 objext=$ac_objext
14857 # Executable file suffix (normally "").
14858 exeext=$exeext
14860 # whether the shell understands "unset".
14861 lt_unset=$lt_unset
14863 # turn spaces into newlines.
14864 SP2NL=$lt_lt_SP2NL
14866 # turn newlines into spaces.
14867 NL2SP=$lt_lt_NL2SP
14869 # An object symbol dumper.
14870 OBJDUMP=$lt_OBJDUMP
14872 # Method to check whether dependent libraries are shared objects.
14873 deplibs_check_method=$lt_deplibs_check_method
14875 # Command to use when deplibs_check_method == "file_magic".
14876 file_magic_cmd=$lt_file_magic_cmd
14878 # The archiver.
14879 AR=$lt_AR
14880 AR_FLAGS=$lt_AR_FLAGS
14882 # A symbol stripping program.
14883 STRIP=$lt_STRIP
14885 # Commands used to install an old-style archive.
14886 RANLIB=$lt_RANLIB
14887 old_postinstall_cmds=$lt_old_postinstall_cmds
14888 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14890 # Whether to use a lock for old archive extraction.
14891 lock_old_archive_extraction=$lock_old_archive_extraction
14893 # A C compiler.
14894 LTCC=$lt_CC
14896 # LTCC compiler flags.
14897 LTCFLAGS=$lt_CFLAGS
14899 # Take the output of nm and produce a listing of raw symbols and C names.
14900 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14902 # Transform the output of nm in a proper C declaration.
14903 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14905 # Transform the output of nm in a C name address pair.
14906 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14908 # Transform the output of nm in a C name address pair when lib prefix is needed.
14909 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14911 # The name of the directory that contains temporary libtool files.
14912 objdir=$objdir
14914 # Used to examine libraries when file_magic_cmd begins with "file".
14915 MAGIC_CMD=$MAGIC_CMD
14917 # Must we lock files when doing compilation?
14918 need_locks=$lt_need_locks
14920 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14921 DSYMUTIL=$lt_DSYMUTIL
14923 # Tool to change global to local symbols on Mac OS X.
14924 NMEDIT=$lt_NMEDIT
14926 # Tool to manipulate fat objects and archives on Mac OS X.
14927 LIPO=$lt_LIPO
14929 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14930 OTOOL=$lt_OTOOL
14932 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14933 OTOOL64=$lt_OTOOL64
14935 # Old archive suffix (normally "a").
14936 libext=$libext
14938 # Shared library suffix (normally ".so").
14939 shrext_cmds=$lt_shrext_cmds
14941 # The commands to extract the exported symbol list from a shared archive.
14942 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14944 # Variables whose values should be saved in libtool wrapper scripts and
14945 # restored at link time.
14946 variables_saved_for_relink=$lt_variables_saved_for_relink
14948 # Do we need the "lib" prefix for modules?
14949 need_lib_prefix=$need_lib_prefix
14951 # Do we need a version for libraries?
14952 need_version=$need_version
14954 # Library versioning type.
14955 version_type=$version_type
14957 # Shared library runtime path variable.
14958 runpath_var=$runpath_var
14960 # Shared library path variable.
14961 shlibpath_var=$shlibpath_var
14963 # Is shlibpath searched before the hard-coded library search path?
14964 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14966 # Format of library name prefix.
14967 libname_spec=$lt_libname_spec
14969 # List of archive names. First name is the real one, the rest are links.
14970 # The last name is the one that the linker finds with -lNAME
14971 library_names_spec=$lt_library_names_spec
14973 # The coded name of the library, if different from the real name.
14974 soname_spec=$lt_soname_spec
14976 # Permission mode override for installation of shared libraries.
14977 install_override_mode=$lt_install_override_mode
14979 # Command to use after installation of a shared archive.
14980 postinstall_cmds=$lt_postinstall_cmds
14982 # Command to use after uninstallation of a shared archive.
14983 postuninstall_cmds=$lt_postuninstall_cmds
14985 # Commands used to finish a libtool library installation in a directory.
14986 finish_cmds=$lt_finish_cmds
14988 # As "finish_cmds", except a single script fragment to be evaled but
14989 # not shown.
14990 finish_eval=$lt_finish_eval
14992 # Whether we should hardcode library paths into libraries.
14993 hardcode_into_libs=$hardcode_into_libs
14995 # Compile-time system search path for libraries.
14996 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14998 # Run-time system search path for libraries.
14999 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15001 # Whether dlopen is supported.
15002 dlopen_support=$enable_dlopen
15004 # Whether dlopen of programs is supported.
15005 dlopen_self=$enable_dlopen_self
15007 # Whether dlopen of statically linked programs is supported.
15008 dlopen_self_static=$enable_dlopen_self_static
15010 # Commands to strip libraries.
15011 old_striplib=$lt_old_striplib
15012 striplib=$lt_striplib
15015 # The linker used to build libraries.
15016 LD=$lt_LD
15018 # How to create reloadable object files.
15019 reload_flag=$lt_reload_flag
15020 reload_cmds=$lt_reload_cmds
15022 # Commands used to build an old-style archive.
15023 old_archive_cmds=$lt_old_archive_cmds
15025 # A language specific compiler.
15026 CC=$lt_compiler
15028 # Is the compiler the GNU compiler?
15029 with_gcc=$GCC
15031 # Compiler flag to turn off builtin functions.
15032 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15034 # How to pass a linker flag through the compiler.
15035 wl=$lt_lt_prog_compiler_wl
15037 # Additional compiler flags for building library objects.
15038 pic_flag=$lt_lt_prog_compiler_pic
15040 # Compiler flag to prevent dynamic linking.
15041 link_static_flag=$lt_lt_prog_compiler_static
15043 # Does compiler simultaneously support -c and -o options?
15044 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15046 # Whether or not to add -lc for building shared libraries.
15047 build_libtool_need_lc=$archive_cmds_need_lc
15049 # Whether or not to disallow shared libs when runtime libs are static.
15050 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15052 # Compiler flag to allow reflexive dlopens.
15053 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15055 # Compiler flag to generate shared objects directly from archives.
15056 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15058 # Whether the compiler copes with passing no objects directly.
15059 compiler_needs_object=$lt_compiler_needs_object
15061 # Create an old-style archive from a shared archive.
15062 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15064 # Create a temporary old-style archive to link instead of a shared archive.
15065 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15067 # Commands used to build a shared archive.
15068 archive_cmds=$lt_archive_cmds
15069 archive_expsym_cmds=$lt_archive_expsym_cmds
15071 # Commands used to build a loadable module if different from building
15072 # a shared archive.
15073 module_cmds=$lt_module_cmds
15074 module_expsym_cmds=$lt_module_expsym_cmds
15076 # Whether we are building with GNU ld or not.
15077 with_gnu_ld=$lt_with_gnu_ld
15079 # Flag that allows shared libraries with undefined symbols to be built.
15080 allow_undefined_flag=$lt_allow_undefined_flag
15082 # Flag that enforces no undefined symbols.
15083 no_undefined_flag=$lt_no_undefined_flag
15085 # Flag to hardcode \$libdir into a binary during linking.
15086 # This must work even if \$libdir does not exist
15087 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15089 # If ld is used when linking, flag to hardcode \$libdir into a binary
15090 # during linking. This must work even if \$libdir does not exist.
15091 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15093 # Whether we need a single "-rpath" flag with a separated argument.
15094 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15096 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15097 # DIR into the resulting binary.
15098 hardcode_direct=$hardcode_direct
15100 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15101 # DIR into the resulting binary and the resulting library dependency is
15102 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15103 # library is relocated.
15104 hardcode_direct_absolute=$hardcode_direct_absolute
15106 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15107 # into the resulting binary.
15108 hardcode_minus_L=$hardcode_minus_L
15110 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15111 # into the resulting binary.
15112 hardcode_shlibpath_var=$hardcode_shlibpath_var
15114 # Set to "yes" if building a shared library automatically hardcodes DIR
15115 # into the library and all subsequent libraries and executables linked
15116 # against it.
15117 hardcode_automatic=$hardcode_automatic
15119 # Set to yes if linker adds runtime paths of dependent libraries
15120 # to runtime path list.
15121 inherit_rpath=$inherit_rpath
15123 # Whether libtool must link a program against all its dependency libraries.
15124 link_all_deplibs=$link_all_deplibs
15126 # Fix the shell variable \$srcfile for the compiler.
15127 fix_srcfile_path=$lt_fix_srcfile_path
15129 # Set to "yes" if exported symbols are required.
15130 always_export_symbols=$always_export_symbols
15132 # The commands to list exported symbols.
15133 export_symbols_cmds=$lt_export_symbols_cmds
15135 # Symbols that should not be listed in the preloaded symbols.
15136 exclude_expsyms=$lt_exclude_expsyms
15138 # Symbols that must always be exported.
15139 include_expsyms=$lt_include_expsyms
15141 # Commands necessary for linking programs (against libraries) with templates.
15142 prelink_cmds=$lt_prelink_cmds
15144 # Specify filename containing input files.
15145 file_list_spec=$lt_file_list_spec
15147 # How to hardcode a shared library path into an executable.
15148 hardcode_action=$hardcode_action
15150 # ### END LIBTOOL CONFIG
15152 _LT_EOF
15154 case $host_os in
15155 aix3*)
15156 cat <<\_LT_EOF >> "$cfgfile"
15157 # AIX sometimes has problems with the GCC collect2 program. For some
15158 # reason, if we set the COLLECT_NAMES environment variable, the problems
15159 # vanish in a puff of smoke.
15160 if test "X${COLLECT_NAMES+set}" != Xset; then
15161 COLLECT_NAMES=
15162 export COLLECT_NAMES
15164 _LT_EOF
15166 esac
15169 ltmain="$ac_aux_dir/ltmain.sh"
15172 # We use sed instead of cat because bash on DJGPP gets confused if
15173 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15174 # text mode, it properly converts lines to CR/LF. This bash problem
15175 # is reportedly fixed, but why not run on old versions too?
15176 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15177 || (rm -f "$cfgfile"; exit 1)
15179 case $xsi_shell in
15180 yes)
15181 cat << \_LT_EOF >> "$cfgfile"
15183 # func_dirname file append nondir_replacement
15184 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15185 # otherwise set result to NONDIR_REPLACEMENT.
15186 func_dirname ()
15188 case ${1} in
15189 */*) func_dirname_result="${1%/*}${2}" ;;
15190 * ) func_dirname_result="${3}" ;;
15191 esac
15194 # func_basename file
15195 func_basename ()
15197 func_basename_result="${1##*/}"
15200 # func_dirname_and_basename file append nondir_replacement
15201 # perform func_basename and func_dirname in a single function
15202 # call:
15203 # dirname: Compute the dirname of FILE. If nonempty,
15204 # add APPEND to the result, otherwise set result
15205 # to NONDIR_REPLACEMENT.
15206 # value returned in "$func_dirname_result"
15207 # basename: Compute filename of FILE.
15208 # value retuned in "$func_basename_result"
15209 # Implementation must be kept synchronized with func_dirname
15210 # and func_basename. For efficiency, we do not delegate to
15211 # those functions but instead duplicate the functionality here.
15212 func_dirname_and_basename ()
15214 case ${1} in
15215 */*) func_dirname_result="${1%/*}${2}" ;;
15216 * ) func_dirname_result="${3}" ;;
15217 esac
15218 func_basename_result="${1##*/}"
15221 # func_stripname prefix suffix name
15222 # strip PREFIX and SUFFIX off of NAME.
15223 # PREFIX and SUFFIX must not contain globbing or regex special
15224 # characters, hashes, percent signs, but SUFFIX may contain a leading
15225 # dot (in which case that matches only a dot).
15226 func_stripname ()
15228 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15229 # positional parameters, so assign one to ordinary parameter first.
15230 func_stripname_result=${3}
15231 func_stripname_result=${func_stripname_result#"${1}"}
15232 func_stripname_result=${func_stripname_result%"${2}"}
15235 # func_opt_split
15236 func_opt_split ()
15238 func_opt_split_opt=${1%%=*}
15239 func_opt_split_arg=${1#*=}
15242 # func_lo2o object
15243 func_lo2o ()
15245 case ${1} in
15246 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15247 *) func_lo2o_result=${1} ;;
15248 esac
15251 # func_xform libobj-or-source
15252 func_xform ()
15254 func_xform_result=${1%.*}.lo
15257 # func_arith arithmetic-term...
15258 func_arith ()
15260 func_arith_result=$(( $* ))
15263 # func_len string
15264 # STRING may not start with a hyphen.
15265 func_len ()
15267 func_len_result=${#1}
15270 _LT_EOF
15272 *) # Bourne compatible functions.
15273 cat << \_LT_EOF >> "$cfgfile"
15275 # func_dirname file append nondir_replacement
15276 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15277 # otherwise set result to NONDIR_REPLACEMENT.
15278 func_dirname ()
15280 # Extract subdirectory from the argument.
15281 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15282 if test "X$func_dirname_result" = "X${1}"; then
15283 func_dirname_result="${3}"
15284 else
15285 func_dirname_result="$func_dirname_result${2}"
15289 # func_basename file
15290 func_basename ()
15292 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15296 # func_stripname prefix suffix name
15297 # strip PREFIX and SUFFIX off of NAME.
15298 # PREFIX and SUFFIX must not contain globbing or regex special
15299 # characters, hashes, percent signs, but SUFFIX may contain a leading
15300 # dot (in which case that matches only a dot).
15301 # func_strip_suffix prefix name
15302 func_stripname ()
15304 case ${2} in
15305 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15306 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15307 esac
15310 # sed scripts:
15311 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15312 my_sed_long_arg='1s/^-[^=]*=//'
15314 # func_opt_split
15315 func_opt_split ()
15317 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15318 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15321 # func_lo2o object
15322 func_lo2o ()
15324 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15327 # func_xform libobj-or-source
15328 func_xform ()
15330 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15333 # func_arith arithmetic-term...
15334 func_arith ()
15336 func_arith_result=`expr "$@"`
15339 # func_len string
15340 # STRING may not start with a hyphen.
15341 func_len ()
15343 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15346 _LT_EOF
15347 esac
15349 case $lt_shell_append in
15350 yes)
15351 cat << \_LT_EOF >> "$cfgfile"
15353 # func_append var value
15354 # Append VALUE to the end of shell variable VAR.
15355 func_append ()
15357 eval "$1+=\$2"
15359 _LT_EOF
15362 cat << \_LT_EOF >> "$cfgfile"
15364 # func_append var value
15365 # Append VALUE to the end of shell variable VAR.
15366 func_append ()
15368 eval "$1=\$$1\$2"
15371 _LT_EOF
15373 esac
15376 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15377 || (rm -f "$cfgfile"; exit 1)
15379 mv -f "$cfgfile" "$ofile" ||
15380 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15381 chmod +x "$ofile"
15384 "include":C) test -d include || mkdir include ;;
15385 "src":C)
15386 test -d src || mkdir src
15387 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
15390 esac
15391 done # for ac_tag
15394 as_fn_exit 0
15395 _ACEOF
15396 ac_clean_files=$ac_clean_files_save
15398 test $ac_write_fail = 0 ||
15399 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15402 # configure is writing to config.log, and then calls config.status.
15403 # config.status does its own redirection, appending to config.log.
15404 # Unfortunately, on DOS this fails, as config.log is still kept open
15405 # by configure, so config.status won't be able to write to it; its
15406 # output is simply discarded. So we exec the FD to /dev/null,
15407 # effectively closing config.log, so it can be properly (re)opened and
15408 # appended to by config.status. When coming back to configure, we
15409 # need to make the FD available again.
15410 if test "$no_create" != yes; then
15411 ac_cs_success=:
15412 ac_config_status_args=
15413 test "$silent" = yes &&
15414 ac_config_status_args="$ac_config_status_args --quiet"
15415 exec 5>/dev/null
15416 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15417 exec 5>>config.log
15418 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15419 # would make configure fail if this is the last instruction.
15420 $ac_cs_success || as_fn_exit $?
15422 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15424 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}