* configure: Regenerated.
[official-gcc.git] / libffi / configure
blob24b9f4181279cfa5aebf7c58a01569cdf139af11
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libffi 3.0.9.
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.9'
563 PACKAGE_STRING='libffi 3.0.9'
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 TARGETDIR
610 TARGET
611 HAVE_LONG_DOUBLE
612 ALLOCA
613 PA64_HPUX_FALSE
614 PA64_HPUX_TRUE
615 PA_HPUX_FALSE
616 PA_HPUX_TRUE
617 PA_LINUX_FALSE
618 PA_LINUX_TRUE
619 SH64_FALSE
620 SH64_TRUE
621 SH_FALSE
622 SH_TRUE
623 X86_64_FALSE
624 X86_64_TRUE
625 S390_FALSE
626 S390_TRUE
627 FRV_FALSE
628 FRV_TRUE
629 LIBFFI_CRIS_FALSE
630 LIBFFI_CRIS_TRUE
631 AVR32_FALSE
632 AVR32_TRUE
633 ARM_FALSE
634 ARM_TRUE
635 POWERPC_FREEBSD_FALSE
636 POWERPC_FREEBSD_TRUE
637 POWERPC_DARWIN_FALSE
638 POWERPC_DARWIN_TRUE
639 POWERPC_AIX_FALSE
640 POWERPC_AIX_TRUE
641 POWERPC_FALSE
642 POWERPC_TRUE
643 M68K_FALSE
644 M68K_TRUE
645 M32R_FALSE
646 M32R_TRUE
647 IA64_FALSE
648 IA64_TRUE
649 ALPHA_FALSE
650 ALPHA_TRUE
651 X86_DARWIN_FALSE
652 X86_DARWIN_TRUE
653 X86_WIN64_FALSE
654 X86_WIN64_TRUE
655 X86_WIN32_FALSE
656 X86_WIN32_TRUE
657 X86_FREEBSD_FALSE
658 X86_FREEBSD_TRUE
659 X86_FALSE
660 X86_TRUE
661 SPARC_FALSE
662 SPARC_TRUE
663 MIPS_FALSE
664 MIPS_TRUE
665 AM_LTLDFLAGS
666 AM_RUNTESTFLAGS
667 TESTSUBDIR_FALSE
668 TESTSUBDIR_TRUE
669 MAINT
670 MAINTAINER_MODE_FALSE
671 MAINTAINER_MODE_TRUE
673 OTOOL64
674 OTOOL
675 LIPO
676 NMEDIT
677 DSYMUTIL
678 RANLIB
680 OBJDUMP
681 LN_S
683 ac_ct_DUMPBIN
684 DUMPBIN
686 FGREP
687 EGREP
688 GREP
690 LIBTOOL
691 am__fastdepCCAS_FALSE
692 am__fastdepCCAS_TRUE
693 CCASDEPMODE
694 CCASFLAGS
695 CCAS
696 am__fastdepCC_FALSE
697 am__fastdepCC_TRUE
698 CCDEPMODE
699 AMDEPBACKSLASH
700 AMDEP_FALSE
701 AMDEP_TRUE
702 am__quote
703 am__include
704 DEPDIR
705 OBJEXT
706 EXEEXT
707 ac_ct_CC
708 CPPFLAGS
709 LDFLAGS
710 CFLAGS
712 am__untar
713 am__tar
714 AMTAR
715 am__leading_dot
716 SET_MAKE
718 mkdir_p
719 MKDIR_P
720 INSTALL_STRIP_PROGRAM
721 STRIP
722 install_sh
723 MAKEINFO
724 AUTOHEADER
725 AUTOMAKE
726 AUTOCONF
727 ACLOCAL
728 VERSION
729 PACKAGE
730 CYGPATH_W
731 am__isrc
732 INSTALL_DATA
733 INSTALL_SCRIPT
734 INSTALL_PROGRAM
735 target_os
736 target_vendor
737 target_cpu
738 target
739 host_os
740 host_vendor
741 host_cpu
742 host
743 build_os
744 build_vendor
745 build_cpu
746 build
747 multi_basedir
748 target_alias
749 host_alias
750 build_alias
751 LIBS
752 ECHO_T
753 ECHO_N
754 ECHO_C
755 DEFS
756 mandir
757 localedir
758 libdir
759 psdir
760 pdfdir
761 dvidir
762 htmldir
763 infodir
764 docdir
765 oldincludedir
766 includedir
767 localstatedir
768 sharedstatedir
769 sysconfdir
770 datadir
771 datarootdir
772 libexecdir
773 sbindir
774 bindir
775 program_transform_name
776 prefix
777 exec_prefix
778 PACKAGE_URL
779 PACKAGE_BUGREPORT
780 PACKAGE_STRING
781 PACKAGE_VERSION
782 PACKAGE_TARNAME
783 PACKAGE_NAME
784 PATH_SEPARATOR
785 SHELL'
786 ac_subst_files=''
787 ac_user_opts='
788 enable_option_checking
789 enable_multilib
790 enable_dependency_tracking
791 enable_shared
792 enable_static
793 with_pic
794 enable_fast_install
795 with_gnu_ld
796 enable_libtool_lock
797 enable_maintainer_mode
798 enable_debug
799 enable_structs
800 enable_raw_api
801 enable_purify_safety
803 ac_precious_vars='build_alias
804 host_alias
805 target_alias
806 CCAS
807 CCASFLAGS
809 CPPFLAGS'
812 # Initialize some variables set by options.
813 ac_init_help=
814 ac_init_version=false
815 ac_unrecognized_opts=
816 ac_unrecognized_sep=
817 # The variables have the same names as the options, with
818 # dashes changed to underlines.
819 cache_file=/dev/null
820 exec_prefix=NONE
821 no_create=
822 no_recursion=
823 prefix=NONE
824 program_prefix=NONE
825 program_suffix=NONE
826 program_transform_name=s,x,x,
827 silent=
828 site=
829 srcdir=
830 verbose=
831 x_includes=NONE
832 x_libraries=NONE
834 # Installation directory options.
835 # These are left unexpanded so users can "make install exec_prefix=/foo"
836 # and all the variables that are supposed to be based on exec_prefix
837 # by default will actually change.
838 # Use braces instead of parens because sh, perl, etc. also accept them.
839 # (The list follows the same order as the GNU Coding Standards.)
840 bindir='${exec_prefix}/bin'
841 sbindir='${exec_prefix}/sbin'
842 libexecdir='${exec_prefix}/libexec'
843 datarootdir='${prefix}/share'
844 datadir='${datarootdir}'
845 sysconfdir='${prefix}/etc'
846 sharedstatedir='${prefix}/com'
847 localstatedir='${prefix}/var'
848 includedir='${prefix}/include'
849 oldincludedir='/usr/include'
850 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
851 infodir='${datarootdir}/info'
852 htmldir='${docdir}'
853 dvidir='${docdir}'
854 pdfdir='${docdir}'
855 psdir='${docdir}'
856 libdir='${exec_prefix}/lib'
857 localedir='${datarootdir}/locale'
858 mandir='${datarootdir}/man'
860 ac_prev=
861 ac_dashdash=
862 for ac_option
864 # If the previous option needs an argument, assign it.
865 if test -n "$ac_prev"; then
866 eval $ac_prev=\$ac_option
867 ac_prev=
868 continue
871 case $ac_option in
872 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873 *) ac_optarg=yes ;;
874 esac
876 # Accept the important Cygnus configure options, so we can diagnose typos.
878 case $ac_dashdash$ac_option in
880 ac_dashdash=yes ;;
882 -bindir | --bindir | --bindi | --bind | --bin | --bi)
883 ac_prev=bindir ;;
884 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
885 bindir=$ac_optarg ;;
887 -build | --build | --buil | --bui | --bu)
888 ac_prev=build_alias ;;
889 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
890 build_alias=$ac_optarg ;;
892 -cache-file | --cache-file | --cache-fil | --cache-fi \
893 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
894 ac_prev=cache_file ;;
895 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
896 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
897 cache_file=$ac_optarg ;;
899 --config-cache | -C)
900 cache_file=config.cache ;;
902 -datadir | --datadir | --datadi | --datad)
903 ac_prev=datadir ;;
904 -datadir=* | --datadir=* | --datadi=* | --datad=*)
905 datadir=$ac_optarg ;;
907 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
908 | --dataroo | --dataro | --datar)
909 ac_prev=datarootdir ;;
910 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
911 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
912 datarootdir=$ac_optarg ;;
914 -disable-* | --disable-*)
915 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918 as_fn_error "invalid feature name: $ac_useropt"
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
923 "enable_$ac_useropt"
924 "*) ;;
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
927 esac
928 eval enable_$ac_useropt=no ;;
930 -docdir | --docdir | --docdi | --doc | --do)
931 ac_prev=docdir ;;
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 docdir=$ac_optarg ;;
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 ac_prev=dvidir ;;
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 dvidir=$ac_optarg ;;
940 -enable-* | --enable-*)
941 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
949 "enable_$ac_useropt"
950 "*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=\$ac_optarg ;;
956 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
957 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
958 | --exec | --exe | --ex)
959 ac_prev=exec_prefix ;;
960 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
961 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
962 | --exec=* | --exe=* | --ex=*)
963 exec_prefix=$ac_optarg ;;
965 -gas | --gas | --ga | --g)
966 # Obsolete; use --with-gas.
967 with_gas=yes ;;
969 -help | --help | --hel | --he | -h)
970 ac_init_help=long ;;
971 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
972 ac_init_help=recursive ;;
973 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
974 ac_init_help=short ;;
976 -host | --host | --hos | --ho)
977 ac_prev=host_alias ;;
978 -host=* | --host=* | --hos=* | --ho=*)
979 host_alias=$ac_optarg ;;
981 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
982 ac_prev=htmldir ;;
983 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
984 | --ht=*)
985 htmldir=$ac_optarg ;;
987 -includedir | --includedir | --includedi | --included | --include \
988 | --includ | --inclu | --incl | --inc)
989 ac_prev=includedir ;;
990 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
991 | --includ=* | --inclu=* | --incl=* | --inc=*)
992 includedir=$ac_optarg ;;
994 -infodir | --infodir | --infodi | --infod | --info | --inf)
995 ac_prev=infodir ;;
996 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
997 infodir=$ac_optarg ;;
999 -libdir | --libdir | --libdi | --libd)
1000 ac_prev=libdir ;;
1001 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1002 libdir=$ac_optarg ;;
1004 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1005 | --libexe | --libex | --libe)
1006 ac_prev=libexecdir ;;
1007 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1008 | --libexe=* | --libex=* | --libe=*)
1009 libexecdir=$ac_optarg ;;
1011 -localedir | --localedir | --localedi | --localed | --locale)
1012 ac_prev=localedir ;;
1013 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1014 localedir=$ac_optarg ;;
1016 -localstatedir | --localstatedir | --localstatedi | --localstated \
1017 | --localstate | --localstat | --localsta | --localst | --locals)
1018 ac_prev=localstatedir ;;
1019 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1020 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1021 localstatedir=$ac_optarg ;;
1023 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1024 ac_prev=mandir ;;
1025 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1026 mandir=$ac_optarg ;;
1028 -nfp | --nfp | --nf)
1029 # Obsolete; use --without-fp.
1030 with_fp=no ;;
1032 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1033 | --no-cr | --no-c | -n)
1034 no_create=yes ;;
1036 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1037 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1038 no_recursion=yes ;;
1040 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1041 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1042 | --oldin | --oldi | --old | --ol | --o)
1043 ac_prev=oldincludedir ;;
1044 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1045 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1046 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1047 oldincludedir=$ac_optarg ;;
1049 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1050 ac_prev=prefix ;;
1051 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1052 prefix=$ac_optarg ;;
1054 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1055 | --program-pre | --program-pr | --program-p)
1056 ac_prev=program_prefix ;;
1057 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1058 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1059 program_prefix=$ac_optarg ;;
1061 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1062 | --program-suf | --program-su | --program-s)
1063 ac_prev=program_suffix ;;
1064 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1065 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1066 program_suffix=$ac_optarg ;;
1068 -program-transform-name | --program-transform-name \
1069 | --program-transform-nam | --program-transform-na \
1070 | --program-transform-n | --program-transform- \
1071 | --program-transform | --program-transfor \
1072 | --program-transfo | --program-transf \
1073 | --program-trans | --program-tran \
1074 | --progr-tra | --program-tr | --program-t)
1075 ac_prev=program_transform_name ;;
1076 -program-transform-name=* | --program-transform-name=* \
1077 | --program-transform-nam=* | --program-transform-na=* \
1078 | --program-transform-n=* | --program-transform-=* \
1079 | --program-transform=* | --program-transfor=* \
1080 | --program-transfo=* | --program-transf=* \
1081 | --program-trans=* | --program-tran=* \
1082 | --progr-tra=* | --program-tr=* | --program-t=*)
1083 program_transform_name=$ac_optarg ;;
1085 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1086 ac_prev=pdfdir ;;
1087 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1088 pdfdir=$ac_optarg ;;
1090 -psdir | --psdir | --psdi | --psd | --ps)
1091 ac_prev=psdir ;;
1092 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1093 psdir=$ac_optarg ;;
1095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1096 | -silent | --silent | --silen | --sile | --sil)
1097 silent=yes ;;
1099 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1100 ac_prev=sbindir ;;
1101 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1102 | --sbi=* | --sb=*)
1103 sbindir=$ac_optarg ;;
1105 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1106 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1107 | --sharedst | --shareds | --shared | --share | --shar \
1108 | --sha | --sh)
1109 ac_prev=sharedstatedir ;;
1110 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1111 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1112 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1113 | --sha=* | --sh=*)
1114 sharedstatedir=$ac_optarg ;;
1116 -site | --site | --sit)
1117 ac_prev=site ;;
1118 -site=* | --site=* | --sit=*)
1119 site=$ac_optarg ;;
1121 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1122 ac_prev=srcdir ;;
1123 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1124 srcdir=$ac_optarg ;;
1126 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1127 | --syscon | --sysco | --sysc | --sys | --sy)
1128 ac_prev=sysconfdir ;;
1129 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1130 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1131 sysconfdir=$ac_optarg ;;
1133 -target | --target | --targe | --targ | --tar | --ta | --t)
1134 ac_prev=target_alias ;;
1135 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1136 target_alias=$ac_optarg ;;
1138 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1139 verbose=yes ;;
1141 -version | --version | --versio | --versi | --vers | -V)
1142 ac_init_version=: ;;
1144 -with-* | --with-*)
1145 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148 as_fn_error "invalid package name: $ac_useropt"
1149 ac_useropt_orig=$ac_useropt
1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1153 "with_$ac_useropt"
1154 "*) ;;
1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1156 ac_unrecognized_sep=', ';;
1157 esac
1158 eval with_$ac_useropt=\$ac_optarg ;;
1160 -without-* | --without-*)
1161 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1162 # Reject names that are not valid shell variable names.
1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164 as_fn_error "invalid package name: $ac_useropt"
1165 ac_useropt_orig=$ac_useropt
1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167 case $ac_user_opts in
1169 "with_$ac_useropt"
1170 "*) ;;
1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1172 ac_unrecognized_sep=', ';;
1173 esac
1174 eval with_$ac_useropt=no ;;
1176 --x)
1177 # Obsolete; use --with-x.
1178 with_x=yes ;;
1180 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1181 | --x-incl | --x-inc | --x-in | --x-i)
1182 ac_prev=x_includes ;;
1183 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1184 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1185 x_includes=$ac_optarg ;;
1187 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1188 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1189 ac_prev=x_libraries ;;
1190 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1191 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1192 x_libraries=$ac_optarg ;;
1194 -*) as_fn_error "unrecognized option: \`$ac_option'
1195 Try \`$0 --help' for more information."
1198 *=*)
1199 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1200 # Reject names that are not valid shell variable names.
1201 case $ac_envvar in #(
1202 '' | [0-9]* | *[!_$as_cr_alnum]* )
1203 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1204 esac
1205 eval $ac_envvar=\$ac_optarg
1206 export $ac_envvar ;;
1209 # FIXME: should be removed in autoconf 3.0.
1210 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1211 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1212 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1213 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1216 esac
1217 done
1219 if test -n "$ac_prev"; then
1220 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1221 as_fn_error "missing argument to $ac_option"
1224 if test -n "$ac_unrecognized_opts"; then
1225 case $enable_option_checking in
1226 no) ;;
1227 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1228 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1229 esac
1232 # Check all directory arguments for consistency.
1233 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1234 datadir sysconfdir sharedstatedir localstatedir includedir \
1235 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1236 libdir localedir mandir
1238 eval ac_val=\$$ac_var
1239 # Remove trailing slashes.
1240 case $ac_val in
1241 */ )
1242 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1243 eval $ac_var=\$ac_val;;
1244 esac
1245 # Be sure to have absolute directory names.
1246 case $ac_val in
1247 [\\/$]* | ?:[\\/]* ) continue;;
1248 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1249 esac
1250 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1251 done
1253 # There might be people who depend on the old broken behavior: `$host'
1254 # used to hold the argument of --host etc.
1255 # FIXME: To remove some day.
1256 build=$build_alias
1257 host=$host_alias
1258 target=$target_alias
1260 # FIXME: To remove some day.
1261 if test "x$host_alias" != x; then
1262 if test "x$build_alias" = x; then
1263 cross_compiling=maybe
1264 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1265 If a cross compiler is detected then cross compile mode will be used." >&2
1266 elif test "x$build_alias" != "x$host_alias"; then
1267 cross_compiling=yes
1271 ac_tool_prefix=
1272 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274 test "$silent" = yes && exec 6>/dev/null
1277 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1278 ac_ls_di=`ls -di .` &&
1279 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1280 as_fn_error "working directory cannot be determined"
1281 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1282 as_fn_error "pwd does not report name of working directory"
1285 # Find the source files, if location was not specified.
1286 if test -z "$srcdir"; then
1287 ac_srcdir_defaulted=yes
1288 # Try the directory containing this script, then the parent directory.
1289 ac_confdir=`$as_dirname -- "$as_myself" ||
1290 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1291 X"$as_myself" : 'X\(//\)[^/]' \| \
1292 X"$as_myself" : 'X\(//\)$' \| \
1293 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1294 $as_echo X"$as_myself" |
1295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1296 s//\1/
1299 /^X\(\/\/\)[^/].*/{
1300 s//\1/
1303 /^X\(\/\/\)$/{
1304 s//\1/
1307 /^X\(\/\).*/{
1308 s//\1/
1311 s/.*/./; q'`
1312 srcdir=$ac_confdir
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1314 srcdir=..
1316 else
1317 ac_srcdir_defaulted=no
1319 if test ! -r "$srcdir/$ac_unique_file"; then
1320 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1321 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1323 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1324 ac_abs_confdir=`(
1325 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1326 pwd)`
1327 # When building in place, set srcdir=.
1328 if test "$ac_abs_confdir" = "$ac_pwd"; then
1329 srcdir=.
1331 # Remove unnecessary trailing slashes from srcdir.
1332 # Double slashes in file names in object file debugging info
1333 # mess up M-x gdb in Emacs.
1334 case $srcdir in
1335 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1336 esac
1337 for ac_var in $ac_precious_vars; do
1338 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1339 eval ac_env_${ac_var}_value=\$${ac_var}
1340 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1342 done
1345 # Report the --help message.
1347 if test "$ac_init_help" = "long"; then
1348 # Omit some internal or obsolete options to make the list less imposing.
1349 # This message is too long to be a string in the A/UX 3.1 sh.
1350 cat <<_ACEOF
1351 \`configure' configures libffi 3.0.9 to adapt to many kinds of systems.
1353 Usage: $0 [OPTION]... [VAR=VALUE]...
1355 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1356 VAR=VALUE. See below for descriptions of some of the useful variables.
1358 Defaults for the options are specified in brackets.
1360 Configuration:
1361 -h, --help display this help and exit
1362 --help=short display options specific to this package
1363 --help=recursive display the short help of all the included packages
1364 -V, --version display version information and exit
1365 -q, --quiet, --silent do not print \`checking...' messages
1366 --cache-file=FILE cache test results in FILE [disabled]
1367 -C, --config-cache alias for \`--cache-file=config.cache'
1368 -n, --no-create do not create output files
1369 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1371 Installation directories:
1372 --prefix=PREFIX install architecture-independent files in PREFIX
1373 [$ac_default_prefix]
1374 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1375 [PREFIX]
1377 By default, \`make install' will install all the files in
1378 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1379 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1380 for instance \`--prefix=\$HOME'.
1382 For better control, use the options below.
1384 Fine tuning of the installation directories:
1385 --bindir=DIR user executables [EPREFIX/bin]
1386 --sbindir=DIR system admin executables [EPREFIX/sbin]
1387 --libexecdir=DIR program executables [EPREFIX/libexec]
1388 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1389 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1390 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1391 --libdir=DIR object code libraries [EPREFIX/lib]
1392 --includedir=DIR C header files [PREFIX/include]
1393 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1394 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1395 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1396 --infodir=DIR info documentation [DATAROOTDIR/info]
1397 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1398 --mandir=DIR man documentation [DATAROOTDIR/man]
1399 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1400 --htmldir=DIR html documentation [DOCDIR]
1401 --dvidir=DIR dvi documentation [DOCDIR]
1402 --pdfdir=DIR pdf documentation [DOCDIR]
1403 --psdir=DIR ps documentation [DOCDIR]
1404 _ACEOF
1406 cat <<\_ACEOF
1408 Program names:
1409 --program-prefix=PREFIX prepend PREFIX to installed program names
1410 --program-suffix=SUFFIX append SUFFIX to installed program names
1411 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1413 System types:
1414 --build=BUILD configure for building on BUILD [guessed]
1415 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1416 --target=TARGET configure for building compilers for TARGET [HOST]
1417 _ACEOF
1420 if test -n "$ac_init_help"; then
1421 case $ac_init_help in
1422 short | recursive ) echo "Configuration of libffi 3.0.9:";;
1423 esac
1424 cat <<\_ACEOF
1426 Optional Features:
1427 --disable-option-checking ignore unrecognized --enable/--with options
1428 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1429 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1430 --enable-multilib build many library versions (default)
1431 --disable-dependency-tracking speeds up one-time build
1432 --enable-dependency-tracking do not reject slow dependency extractors
1433 --enable-shared[=PKGS] build shared libraries [default=yes]
1434 --enable-static[=PKGS] build static libraries [default=yes]
1435 --enable-fast-install[=PKGS]
1436 optimize for fast installation [default=yes]
1437 --disable-libtool-lock avoid locking (might break parallel builds)
1438 --enable-maintainer-mode enable make rules and dependencies not useful
1439 (and sometimes confusing) to the casual installer
1440 --enable-debug debugging mode
1441 --disable-structs omit code for struct support
1442 --disable-raw-api make the raw api unavailable
1443 --enable-purify-safety purify-safe mode
1445 Optional Packages:
1446 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1447 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1448 --with-pic try to use only PIC/non-PIC objects [default=use
1449 both]
1450 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1452 Some influential environment variables:
1453 CC C compiler command
1454 CFLAGS C compiler flags
1455 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1456 nonstandard directory <lib dir>
1457 LIBS libraries to pass to the linker, e.g. -l<library>
1458 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1459 you have headers in a nonstandard directory <include dir>
1460 CCAS assembler compiler command (defaults to CC)
1461 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1462 CPP C preprocessor
1464 Use these variables to override the choices made by `configure' or to help
1465 it to find libraries and programs with nonstandard names/locations.
1467 Report bugs to <http://gcc.gnu.org/bugs.html>.
1468 _ACEOF
1469 ac_status=$?
1472 if test "$ac_init_help" = "recursive"; then
1473 # If there are subdirs, report their specific --help.
1474 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1475 test -d "$ac_dir" ||
1476 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1477 continue
1478 ac_builddir=.
1480 case "$ac_dir" in
1481 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1484 # A ".." for each directory in $ac_dir_suffix.
1485 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1486 case $ac_top_builddir_sub in
1487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1489 esac ;;
1490 esac
1491 ac_abs_top_builddir=$ac_pwd
1492 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1493 # for backward compatibility:
1494 ac_top_builddir=$ac_top_build_prefix
1496 case $srcdir in
1497 .) # We are building in place.
1498 ac_srcdir=.
1499 ac_top_srcdir=$ac_top_builddir_sub
1500 ac_abs_top_srcdir=$ac_pwd ;;
1501 [\\/]* | ?:[\\/]* ) # Absolute name.
1502 ac_srcdir=$srcdir$ac_dir_suffix;
1503 ac_top_srcdir=$srcdir
1504 ac_abs_top_srcdir=$srcdir ;;
1505 *) # Relative name.
1506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1507 ac_top_srcdir=$ac_top_build_prefix$srcdir
1508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1509 esac
1510 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1512 cd "$ac_dir" || { ac_status=$?; continue; }
1513 # Check for guested configure.
1514 if test -f "$ac_srcdir/configure.gnu"; then
1515 echo &&
1516 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1517 elif test -f "$ac_srcdir/configure"; then
1518 echo &&
1519 $SHELL "$ac_srcdir/configure" --help=recursive
1520 else
1521 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1522 fi || ac_status=$?
1523 cd "$ac_pwd" || { ac_status=$?; break; }
1524 done
1527 test -n "$ac_init_help" && exit $ac_status
1528 if $ac_init_version; then
1529 cat <<\_ACEOF
1530 libffi configure 3.0.9
1531 generated by GNU Autoconf 2.64
1533 Copyright (C) 2009 Free Software Foundation, Inc.
1534 This configure script is free software; the Free Software Foundation
1535 gives unlimited permission to copy, distribute and modify it.
1536 _ACEOF
1537 exit
1540 ## ------------------------ ##
1541 ## Autoconf initialization. ##
1542 ## ------------------------ ##
1544 # ac_fn_c_try_compile LINENO
1545 # --------------------------
1546 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1547 ac_fn_c_try_compile ()
1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550 rm -f conftest.$ac_objext
1551 if { { ac_try="$ac_compile"
1552 case "(($ac_try" in
1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554 *) ac_try_echo=$ac_try;;
1555 esac
1556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557 $as_echo "$ac_try_echo"; } >&5
1558 (eval "$ac_compile") 2>conftest.err
1559 ac_status=$?
1560 if test -s conftest.err; then
1561 grep -v '^ *+' conftest.err >conftest.er1
1562 cat conftest.er1 >&5
1563 mv -f conftest.er1 conftest.err
1565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566 test $ac_status = 0; } && {
1567 test -z "$ac_c_werror_flag" ||
1568 test ! -s conftest.err
1569 } && test -s conftest.$ac_objext; then :
1570 ac_retval=0
1571 else
1572 $as_echo "$as_me: failed program was:" >&5
1573 sed 's/^/| /' conftest.$ac_ext >&5
1575 ac_retval=1
1577 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1578 return $ac_retval
1580 } # ac_fn_c_try_compile
1582 # ac_fn_c_try_link LINENO
1583 # -----------------------
1584 # Try to link conftest.$ac_ext, and return whether this succeeded.
1585 ac_fn_c_try_link ()
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 rm -f conftest.$ac_objext conftest$ac_exeext
1589 if { { ac_try="$ac_link"
1590 case "(($ac_try" in
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1593 esac
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_link") 2>conftest.err
1597 ac_status=$?
1598 if test -s conftest.err; then
1599 grep -v '^ *+' conftest.err >conftest.er1
1600 cat conftest.er1 >&5
1601 mv -f conftest.er1 conftest.err
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; } && {
1605 test -z "$ac_c_werror_flag" ||
1606 test ! -s conftest.err
1607 } && test -s conftest$ac_exeext && {
1608 test "$cross_compiling" = yes ||
1609 $as_test_x conftest$ac_exeext
1610 }; then :
1611 ac_retval=0
1612 else
1613 $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1616 ac_retval=1
1618 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1619 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1620 # interfere with the next link command; also delete a directory that is
1621 # left behind by Apple's compiler. We do this before executing the actions.
1622 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1623 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1624 return $ac_retval
1626 } # ac_fn_c_try_link
1628 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1629 # -------------------------------------------------------
1630 # Tests whether HEADER exists and can be compiled using the include files in
1631 # INCLUDES, setting the cache variable VAR accordingly.
1632 ac_fn_c_check_header_compile ()
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1636 $as_echo_n "checking for $2... " >&6; }
1637 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1638 $as_echo_n "(cached) " >&6
1639 else
1640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641 /* end confdefs.h. */
1643 #include <$2>
1644 _ACEOF
1645 if ac_fn_c_try_compile "$LINENO"; then :
1646 eval "$3=yes"
1647 else
1648 eval "$3=no"
1650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1652 eval ac_res=\$$3
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654 $as_echo "$ac_res" >&6; }
1655 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1657 } # ac_fn_c_check_header_compile
1659 # ac_fn_c_try_cpp LINENO
1660 # ----------------------
1661 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1662 ac_fn_c_try_cpp ()
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 if { { ac_try="$ac_cpp conftest.$ac_ext"
1666 case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1673 ac_status=$?
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } >/dev/null && {
1681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1683 }; then :
1684 ac_retval=0
1685 else
1686 $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1689 ac_retval=1
1691 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1692 return $ac_retval
1694 } # ac_fn_c_try_cpp
1696 # ac_fn_c_try_run LINENO
1697 # ----------------------
1698 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1699 # that executables *can* be run.
1700 ac_fn_c_try_run ()
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 if { { ac_try="$ac_link"
1704 case "(($ac_try" in
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1707 esac
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_link") 2>&5
1711 ac_status=$?
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1714 { { case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_try") 2>&5
1721 ac_status=$?
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; }; }; then :
1724 ac_retval=0
1725 else
1726 $as_echo "$as_me: program exited with status $ac_status" >&5
1727 $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1730 ac_retval=$ac_status
1732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1734 return $ac_retval
1736 } # ac_fn_c_try_run
1738 # ac_fn_c_check_func LINENO FUNC VAR
1739 # ----------------------------------
1740 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1741 ac_fn_c_check_func ()
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 $as_echo_n "checking for $2... " >&6; }
1746 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1747 $as_echo_n "(cached) " >&6
1748 else
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1751 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1753 #define $2 innocuous_$2
1755 /* System header to define __stub macros and hopefully few prototypes,
1756 which can conflict with char $2 (); below.
1757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1758 <limits.h> exists even on freestanding compilers. */
1760 #ifdef __STDC__
1761 # include <limits.h>
1762 #else
1763 # include <assert.h>
1764 #endif
1766 #undef $2
1768 /* Override any GCC internal prototype to avoid an error.
1769 Use char because int might match the return type of a GCC
1770 builtin and then its argument prototype would still apply. */
1771 #ifdef __cplusplus
1772 extern "C"
1773 #endif
1774 char $2 ();
1775 /* The GNU C library defines this for functions which it implements
1776 to always fail with ENOSYS. Some functions are actually named
1777 something starting with __ and the normal name is an alias. */
1778 #if defined __stub_$2 || defined __stub___$2
1779 choke me
1780 #endif
1783 main ()
1785 return $2 ();
1787 return 0;
1789 _ACEOF
1790 if ac_fn_c_try_link "$LINENO"; then :
1791 eval "$3=yes"
1792 else
1793 eval "$3=no"
1795 rm -f core conftest.err conftest.$ac_objext \
1796 conftest$ac_exeext conftest.$ac_ext
1798 eval ac_res=\$$3
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800 $as_echo "$ac_res" >&6; }
1801 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1803 } # ac_fn_c_check_func
1805 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1806 # -------------------------------------------------------
1807 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1808 # the include files in INCLUDES and setting the cache variable VAR
1809 # accordingly.
1810 ac_fn_c_check_header_mongrel ()
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815 $as_echo_n "checking for $2... " >&6; }
1816 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1817 $as_echo_n "(cached) " >&6
1819 eval ac_res=\$$3
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821 $as_echo "$ac_res" >&6; }
1822 else
1823 # Is the header compilable?
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1825 $as_echo_n "checking $2 usability... " >&6; }
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1829 #include <$2>
1830 _ACEOF
1831 if ac_fn_c_try_compile "$LINENO"; then :
1832 ac_header_compiler=yes
1833 else
1834 ac_header_compiler=no
1836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1838 $as_echo "$ac_header_compiler" >&6; }
1840 # Is the header present?
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1842 $as_echo_n "checking $2 presence... " >&6; }
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h. */
1845 #include <$2>
1846 _ACEOF
1847 if ac_fn_c_try_cpp "$LINENO"; then :
1848 ac_header_preproc=yes
1849 else
1850 ac_header_preproc=no
1852 rm -f conftest.err conftest.$ac_ext
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1854 $as_echo "$ac_header_preproc" >&6; }
1856 # So? What about this header?
1857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1858 yes:no: )
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1860 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1862 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1864 no:yes:* )
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1866 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1868 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1870 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1872 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1874 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1875 ( cat <<\_ASBOX
1876 ## ------------------------------------------- ##
1877 ## Report this to http://gcc.gnu.org/bugs.html ##
1878 ## ------------------------------------------- ##
1879 _ASBOX
1880 ) | sed "s/^/$as_me: WARNING: /" >&2
1882 esac
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884 $as_echo_n "checking for $2... " >&6; }
1885 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1886 $as_echo_n "(cached) " >&6
1887 else
1888 eval "$3=\$ac_header_compiler"
1890 eval ac_res=\$$3
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892 $as_echo "$ac_res" >&6; }
1894 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1896 } # ac_fn_c_check_header_mongrel
1898 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1899 # --------------------------------------------
1900 # Tries to find the compile-time value of EXPR in a program that includes
1901 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1902 # computed
1903 ac_fn_c_compute_int ()
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 if test "$cross_compiling" = yes; then
1907 # Depending upon the size, compute the lo and hi bounds.
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1912 main ()
1914 static int test_array [1 - 2 * !(($2) >= 0)];
1915 test_array [0] = 0
1918 return 0;
1920 _ACEOF
1921 if ac_fn_c_try_compile "$LINENO"; then :
1922 ac_lo=0 ac_mid=0
1923 while :; do
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1928 main ()
1930 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1931 test_array [0] = 0
1934 return 0;
1936 _ACEOF
1937 if ac_fn_c_try_compile "$LINENO"; then :
1938 ac_hi=$ac_mid; break
1939 else
1940 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1941 if test $ac_lo -le $ac_mid; then
1942 ac_lo= ac_hi=
1943 break
1945 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948 done
1949 else
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h. */
1954 main ()
1956 static int test_array [1 - 2 * !(($2) < 0)];
1957 test_array [0] = 0
1960 return 0;
1962 _ACEOF
1963 if ac_fn_c_try_compile "$LINENO"; then :
1964 ac_hi=-1 ac_mid=-1
1965 while :; do
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1970 main ()
1972 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1973 test_array [0] = 0
1976 return 0;
1978 _ACEOF
1979 if ac_fn_c_try_compile "$LINENO"; then :
1980 ac_lo=$ac_mid; break
1981 else
1982 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1983 if test $ac_mid -le $ac_hi; then
1984 ac_lo= ac_hi=
1985 break
1987 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990 done
1991 else
1992 ac_lo= ac_hi=
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 # Binary search between lo and hi bounds.
1998 while test "x$ac_lo" != "x$ac_hi"; do
1999 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2004 main ()
2006 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2007 test_array [0] = 0
2010 return 0;
2012 _ACEOF
2013 if ac_fn_c_try_compile "$LINENO"; then :
2014 ac_hi=$ac_mid
2015 else
2016 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019 done
2020 case $ac_lo in #((
2021 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2022 '') ac_retval=1 ;;
2023 esac
2024 else
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2028 static long int longval () { return $2; }
2029 static unsigned long int ulongval () { return $2; }
2030 #include <stdio.h>
2031 #include <stdlib.h>
2033 main ()
2036 FILE *f = fopen ("conftest.val", "w");
2037 if (! f)
2038 return 1;
2039 if (($2) < 0)
2041 long int i = longval ();
2042 if (i != ($2))
2043 return 1;
2044 fprintf (f, "%ld", i);
2046 else
2048 unsigned long int i = ulongval ();
2049 if (i != ($2))
2050 return 1;
2051 fprintf (f, "%lu", i);
2053 /* Do not output a trailing newline, as this causes \r\n confusion
2054 on some platforms. */
2055 return ferror (f) || fclose (f) != 0;
2058 return 0;
2060 _ACEOF
2061 if ac_fn_c_try_run "$LINENO"; then :
2062 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2063 else
2064 ac_retval=1
2066 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2067 conftest.$ac_objext conftest.beam conftest.$ac_ext
2068 rm -f conftest.val
2071 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2072 return $ac_retval
2074 } # ac_fn_c_compute_int
2075 cat >config.log <<_ACEOF
2076 This file contains any messages produced by compilers while
2077 running configure, to aid debugging if configure makes a mistake.
2079 It was created by libffi $as_me 3.0.9, which was
2080 generated by GNU Autoconf 2.64. Invocation command line was
2082 $ $0 $@
2084 _ACEOF
2085 exec 5>>config.log
2087 cat <<_ASUNAME
2088 ## --------- ##
2089 ## Platform. ##
2090 ## --------- ##
2092 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2093 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2094 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2095 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2096 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2098 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2099 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2101 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2102 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2103 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2104 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2105 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2106 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2107 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2109 _ASUNAME
2111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112 for as_dir in $PATH
2114 IFS=$as_save_IFS
2115 test -z "$as_dir" && as_dir=.
2116 $as_echo "PATH: $as_dir"
2117 done
2118 IFS=$as_save_IFS
2120 } >&5
2122 cat >&5 <<_ACEOF
2125 ## ----------- ##
2126 ## Core tests. ##
2127 ## ----------- ##
2129 _ACEOF
2132 # Keep a trace of the command line.
2133 # Strip out --no-create and --no-recursion so they do not pile up.
2134 # Strip out --silent because we don't want to record it for future runs.
2135 # Also quote any args containing shell meta-characters.
2136 # Make two passes to allow for proper duplicate-argument suppression.
2137 ac_configure_args=
2138 ac_configure_args0=
2139 ac_configure_args1=
2140 ac_must_keep_next=false
2141 for ac_pass in 1 2
2143 for ac_arg
2145 case $ac_arg in
2146 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2148 | -silent | --silent | --silen | --sile | --sil)
2149 continue ;;
2150 *\'*)
2151 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2152 esac
2153 case $ac_pass in
2154 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2156 as_fn_append ac_configure_args1 " '$ac_arg'"
2157 if test $ac_must_keep_next = true; then
2158 ac_must_keep_next=false # Got value, back to normal.
2159 else
2160 case $ac_arg in
2161 *=* | --config-cache | -C | -disable-* | --disable-* \
2162 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2163 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2164 | -with-* | --with-* | -without-* | --without-* | --x)
2165 case "$ac_configure_args0 " in
2166 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2167 esac
2169 -* ) ac_must_keep_next=true ;;
2170 esac
2172 as_fn_append ac_configure_args " '$ac_arg'"
2174 esac
2175 done
2176 done
2177 { ac_configure_args0=; unset ac_configure_args0;}
2178 { ac_configure_args1=; unset ac_configure_args1;}
2180 # When interrupted or exit'd, cleanup temporary files, and complete
2181 # config.log. We remove comments because anyway the quotes in there
2182 # would cause problems or look ugly.
2183 # WARNING: Use '\'' to represent an apostrophe within the trap.
2184 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2185 trap 'exit_status=$?
2186 # Save into config.log some information that might help in debugging.
2188 echo
2190 cat <<\_ASBOX
2191 ## ---------------- ##
2192 ## Cache variables. ##
2193 ## ---------------- ##
2194 _ASBOX
2195 echo
2196 # The following way of writing the cache mishandles newlines in values,
2198 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2199 eval ac_val=\$$ac_var
2200 case $ac_val in #(
2201 *${as_nl}*)
2202 case $ac_var in #(
2203 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2204 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2205 esac
2206 case $ac_var in #(
2207 _ | IFS | as_nl) ;; #(
2208 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2209 *) { eval $ac_var=; unset $ac_var;} ;;
2210 esac ;;
2211 esac
2212 done
2213 (set) 2>&1 |
2214 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2215 *${as_nl}ac_space=\ *)
2216 sed -n \
2217 "s/'\''/'\''\\\\'\'''\''/g;
2218 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2219 ;; #(
2221 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2223 esac |
2224 sort
2226 echo
2228 cat <<\_ASBOX
2229 ## ----------------- ##
2230 ## Output variables. ##
2231 ## ----------------- ##
2232 _ASBOX
2233 echo
2234 for ac_var in $ac_subst_vars
2236 eval ac_val=\$$ac_var
2237 case $ac_val in
2238 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2239 esac
2240 $as_echo "$ac_var='\''$ac_val'\''"
2241 done | sort
2242 echo
2244 if test -n "$ac_subst_files"; then
2245 cat <<\_ASBOX
2246 ## ------------------- ##
2247 ## File substitutions. ##
2248 ## ------------------- ##
2249 _ASBOX
2250 echo
2251 for ac_var in $ac_subst_files
2253 eval ac_val=\$$ac_var
2254 case $ac_val in
2255 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2256 esac
2257 $as_echo "$ac_var='\''$ac_val'\''"
2258 done | sort
2259 echo
2262 if test -s confdefs.h; then
2263 cat <<\_ASBOX
2264 ## ----------- ##
2265 ## confdefs.h. ##
2266 ## ----------- ##
2267 _ASBOX
2268 echo
2269 cat confdefs.h
2270 echo
2272 test "$ac_signal" != 0 &&
2273 $as_echo "$as_me: caught signal $ac_signal"
2274 $as_echo "$as_me: exit $exit_status"
2275 } >&5
2276 rm -f core *.core core.conftest.* &&
2277 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2278 exit $exit_status
2280 for ac_signal in 1 2 13 15; do
2281 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2282 done
2283 ac_signal=0
2285 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2286 rm -f -r conftest* confdefs.h
2288 $as_echo "/* confdefs.h */" > confdefs.h
2290 # Predefined preprocessor variables.
2292 cat >>confdefs.h <<_ACEOF
2293 #define PACKAGE_NAME "$PACKAGE_NAME"
2294 _ACEOF
2296 cat >>confdefs.h <<_ACEOF
2297 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2298 _ACEOF
2300 cat >>confdefs.h <<_ACEOF
2301 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2302 _ACEOF
2304 cat >>confdefs.h <<_ACEOF
2305 #define PACKAGE_STRING "$PACKAGE_STRING"
2306 _ACEOF
2308 cat >>confdefs.h <<_ACEOF
2309 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2310 _ACEOF
2312 cat >>confdefs.h <<_ACEOF
2313 #define PACKAGE_URL "$PACKAGE_URL"
2314 _ACEOF
2317 # Let the site file select an alternate cache file if it wants to.
2318 # Prefer an explicitly selected file to automatically selected ones.
2319 ac_site_file1=NONE
2320 ac_site_file2=NONE
2321 if test -n "$CONFIG_SITE"; then
2322 ac_site_file1=$CONFIG_SITE
2323 elif test "x$prefix" != xNONE; then
2324 ac_site_file1=$prefix/share/config.site
2325 ac_site_file2=$prefix/etc/config.site
2326 else
2327 ac_site_file1=$ac_default_prefix/share/config.site
2328 ac_site_file2=$ac_default_prefix/etc/config.site
2330 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2332 test "x$ac_site_file" = xNONE && continue
2333 if test -r "$ac_site_file"; then
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2335 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2336 sed 's/^/| /' "$ac_site_file" >&5
2337 . "$ac_site_file"
2339 done
2341 if test -r "$cache_file"; then
2342 # Some versions of bash will fail to source /dev/null (special
2343 # files actually), so we avoid doing that.
2344 if test -f "$cache_file"; then
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2346 $as_echo "$as_me: loading cache $cache_file" >&6;}
2347 case $cache_file in
2348 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2349 *) . "./$cache_file";;
2350 esac
2352 else
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2354 $as_echo "$as_me: creating cache $cache_file" >&6;}
2355 >$cache_file
2358 # Check that the precious variables saved in the cache have kept the same
2359 # value.
2360 ac_cache_corrupted=false
2361 for ac_var in $ac_precious_vars; do
2362 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2363 eval ac_new_set=\$ac_env_${ac_var}_set
2364 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2365 eval ac_new_val=\$ac_env_${ac_var}_value
2366 case $ac_old_set,$ac_new_set in
2367 set,)
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2369 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2370 ac_cache_corrupted=: ;;
2371 ,set)
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2373 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2374 ac_cache_corrupted=: ;;
2375 ,);;
2377 if test "x$ac_old_val" != "x$ac_new_val"; then
2378 # differences in whitespace do not lead to failure.
2379 ac_old_val_w=`echo x $ac_old_val`
2380 ac_new_val_w=`echo x $ac_new_val`
2381 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2383 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2384 ac_cache_corrupted=:
2385 else
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2387 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2388 eval $ac_var=\$ac_old_val
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2391 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2393 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2394 fi;;
2395 esac
2396 # Pass precious variables to config.status.
2397 if test "$ac_new_set" = set; then
2398 case $ac_new_val in
2399 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2400 *) ac_arg=$ac_var=$ac_new_val ;;
2401 esac
2402 case " $ac_configure_args " in
2403 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2404 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2405 esac
2407 done
2408 if $ac_cache_corrupted; then
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2412 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2413 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2415 ## -------------------- ##
2416 ## Main body of script. ##
2417 ## -------------------- ##
2419 ac_ext=c
2420 ac_cpp='$CPP $CPPFLAGS'
2421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2429 ac_config_headers="$ac_config_headers fficonfig.h"
2432 # Default to --enable-multilib
2433 # Check whether --enable-multilib was given.
2434 if test "${enable_multilib+set}" = set; then :
2435 enableval=$enable_multilib; case "$enableval" in
2436 yes) multilib=yes ;;
2437 no) multilib=no ;;
2438 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2439 esac
2440 else
2441 multilib=yes
2445 # We may get other options which we leave undocumented:
2446 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2447 # See config-ml.in if you want the gory details.
2449 if test "$srcdir" = "."; then
2450 if test "$with_target_subdir" != "."; then
2451 multi_basedir="$srcdir/$with_multisrctop../.."
2452 else
2453 multi_basedir="$srcdir/$with_multisrctop.."
2455 else
2456 multi_basedir="$srcdir/.."
2460 # Even if the default multilib is not a cross compilation,
2461 # it may be that some of the other multilibs are.
2462 if test $cross_compiling = no && test $multilib = yes \
2463 && test "x${with_multisubdir}" != x ; then
2464 cross_compiling=maybe
2467 ac_config_commands="$ac_config_commands default-1"
2470 ac_aux_dir=
2471 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2472 for ac_t in install-sh install.sh shtool; do
2473 if test -f "$ac_dir/$ac_t"; then
2474 ac_aux_dir=$ac_dir
2475 ac_install_sh="$ac_aux_dir/$ac_t -c"
2476 break 2
2478 done
2479 done
2480 if test -z "$ac_aux_dir"; then
2481 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2484 # These three variables are undocumented and unsupported,
2485 # and are intended to be withdrawn in a future Autoconf release.
2486 # They can cause serious problems if a builder's source tree is in a directory
2487 # whose full name contains unusual characters.
2488 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2489 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2490 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2493 # Make sure we can run config.sub.
2494 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2495 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2498 $as_echo_n "checking build system type... " >&6; }
2499 if test "${ac_cv_build+set}" = set; then :
2500 $as_echo_n "(cached) " >&6
2501 else
2502 ac_build_alias=$build_alias
2503 test "x$ac_build_alias" = x &&
2504 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2505 test "x$ac_build_alias" = x &&
2506 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2507 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2508 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2512 $as_echo "$ac_cv_build" >&6; }
2513 case $ac_cv_build in
2514 *-*-*) ;;
2515 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2516 esac
2517 build=$ac_cv_build
2518 ac_save_IFS=$IFS; IFS='-'
2519 set x $ac_cv_build
2520 shift
2521 build_cpu=$1
2522 build_vendor=$2
2523 shift; shift
2524 # Remember, the first character of IFS is used to create $*,
2525 # except with old shells:
2526 build_os=$*
2527 IFS=$ac_save_IFS
2528 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2532 $as_echo_n "checking host system type... " >&6; }
2533 if test "${ac_cv_host+set}" = set; then :
2534 $as_echo_n "(cached) " >&6
2535 else
2536 if test "x$host_alias" = x; then
2537 ac_cv_host=$ac_cv_build
2538 else
2539 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2540 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2545 $as_echo "$ac_cv_host" >&6; }
2546 case $ac_cv_host in
2547 *-*-*) ;;
2548 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2549 esac
2550 host=$ac_cv_host
2551 ac_save_IFS=$IFS; IFS='-'
2552 set x $ac_cv_host
2553 shift
2554 host_cpu=$1
2555 host_vendor=$2
2556 shift; shift
2557 # Remember, the first character of IFS is used to create $*,
2558 # except with old shells:
2559 host_os=$*
2560 IFS=$ac_save_IFS
2561 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2565 $as_echo_n "checking target system type... " >&6; }
2566 if test "${ac_cv_target+set}" = set; then :
2567 $as_echo_n "(cached) " >&6
2568 else
2569 if test "x$target_alias" = x; then
2570 ac_cv_target=$ac_cv_host
2571 else
2572 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2573 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2578 $as_echo "$ac_cv_target" >&6; }
2579 case $ac_cv_target in
2580 *-*-*) ;;
2581 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2582 esac
2583 target=$ac_cv_target
2584 ac_save_IFS=$IFS; IFS='-'
2585 set x $ac_cv_target
2586 shift
2587 target_cpu=$1
2588 target_vendor=$2
2589 shift; shift
2590 # Remember, the first character of IFS is used to create $*,
2591 # except with old shells:
2592 target_os=$*
2593 IFS=$ac_save_IFS
2594 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2597 # The aliases save the names the user supplied, while $host etc.
2598 # will get canonicalized.
2599 test -n "$target_alias" &&
2600 test "$program_prefix$program_suffix$program_transform_name" = \
2601 NONENONEs,x,x, &&
2602 program_prefix=${target_alias}-
2604 target_alias=${target_alias-$host_alias}
2606 . ${srcdir}/configure.host
2608 am__api_version='1.11'
2610 # Find a good install program. We prefer a C program (faster),
2611 # so one script is as good as another. But avoid the broken or
2612 # incompatible versions:
2613 # SysV /etc/install, /usr/sbin/install
2614 # SunOS /usr/etc/install
2615 # IRIX /sbin/install
2616 # AIX /bin/install
2617 # AmigaOS /C/install, which installs bootblocks on floppy discs
2618 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2619 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2620 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2621 # OS/2's system install, which has a completely different semantic
2622 # ./install, which can be erroneously created by make from ./install.sh.
2623 # Reject install programs that cannot install multiple files.
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2625 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2626 if test -z "$INSTALL"; then
2627 if test "${ac_cv_path_install+set}" = set; then :
2628 $as_echo_n "(cached) " >&6
2629 else
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
2635 # Account for people who put trailing slashes in PATH elements.
2636 case $as_dir/ in #((
2637 ./ | .// | /[cC]/* | \
2638 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2639 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2640 /usr/ucb/* ) ;;
2642 # OSF1 and SCO ODT 3.0 have their own names for install.
2643 # Don't use installbsd from OSF since it installs stuff as root
2644 # by default.
2645 for ac_prog in ginstall scoinst install; do
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2648 if test $ac_prog = install &&
2649 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2650 # AIX install. It has an incompatible calling convention.
2652 elif test $ac_prog = install &&
2653 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2654 # program-specific install script used by HP pwplus--don't use.
2656 else
2657 rm -rf conftest.one conftest.two conftest.dir
2658 echo one > conftest.one
2659 echo two > conftest.two
2660 mkdir conftest.dir
2661 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2662 test -s conftest.one && test -s conftest.two &&
2663 test -s conftest.dir/conftest.one &&
2664 test -s conftest.dir/conftest.two
2665 then
2666 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2667 break 3
2671 done
2672 done
2674 esac
2676 done
2677 IFS=$as_save_IFS
2679 rm -rf conftest.one conftest.two conftest.dir
2682 if test "${ac_cv_path_install+set}" = set; then
2683 INSTALL=$ac_cv_path_install
2684 else
2685 # As a last resort, use the slow shell script. Don't cache a
2686 # value for INSTALL within a source directory, because that will
2687 # break other packages using the cache if that directory is
2688 # removed, or if the value is a relative name.
2689 INSTALL=$ac_install_sh
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2693 $as_echo "$INSTALL" >&6; }
2695 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2696 # It thinks the first close brace ends the variable substitution.
2697 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2699 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2701 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2704 $as_echo_n "checking whether build environment is sane... " >&6; }
2705 # Just in case
2706 sleep 1
2707 echo timestamp > conftest.file
2708 # Reject unsafe characters in $srcdir or the absolute working directory
2709 # name. Accept space and tab only in the latter.
2710 am_lf='
2712 case `pwd` in
2713 *[\\\"\#\$\&\'\`$am_lf]*)
2714 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2715 esac
2716 case $srcdir in
2717 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2718 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2719 esac
2721 # Do `set' in a subshell so we don't clobber the current shell's
2722 # arguments. Must try -L first in case configure is actually a
2723 # symlink; some systems play weird games with the mod time of symlinks
2724 # (eg FreeBSD returns the mod time of the symlink's containing
2725 # directory).
2726 if (
2727 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2728 if test "$*" = "X"; then
2729 # -L didn't work.
2730 set X `ls -t "$srcdir/configure" conftest.file`
2732 rm -f conftest.file
2733 if test "$*" != "X $srcdir/configure conftest.file" \
2734 && test "$*" != "X conftest.file $srcdir/configure"; then
2736 # If neither matched, then we have a broken ls. This can happen
2737 # if, for instance, CONFIG_SHELL is bash and it inherits a
2738 # broken ls alias from the environment. This has actually
2739 # happened. Such a system could not be considered "sane".
2740 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2741 alias in your environment" "$LINENO" 5
2744 test "$2" = conftest.file
2746 then
2747 # Ok.
2749 else
2750 as_fn_error "newly created file is older than distributed files!
2751 Check your system clock" "$LINENO" 5
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2754 $as_echo "yes" >&6; }
2755 test "$program_prefix" != NONE &&
2756 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2757 # Use a double $ so make ignores it.
2758 test "$program_suffix" != NONE &&
2759 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2760 # Double any \ or $.
2761 # By default was `s,x,x', remove it if useless.
2762 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2763 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2765 # expand $ac_aux_dir to an absolute path
2766 am_aux_dir=`cd $ac_aux_dir && pwd`
2768 if test x"${MISSING+set}" != xset; then
2769 case $am_aux_dir in
2770 *\ * | *\ *)
2771 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2773 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2774 esac
2776 # Use eval to expand $SHELL
2777 if eval "$MISSING --run true"; then
2778 am_missing_run="$MISSING --run "
2779 else
2780 am_missing_run=
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2782 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2785 if test x"${install_sh}" != xset; then
2786 case $am_aux_dir in
2787 *\ * | *\ *)
2788 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2790 install_sh="\${SHELL} $am_aux_dir/install-sh"
2791 esac
2794 # Installed binaries are usually stripped using `strip' when the user
2795 # run `make install-strip'. However `strip' might not be the right
2796 # tool to use in cross-compilation environments, therefore Automake
2797 # will honor the `STRIP' environment variable to overrule this program.
2798 if test "$cross_compiling" != no; then
2799 if test -n "$ac_tool_prefix"; then
2800 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2801 set dummy ${ac_tool_prefix}strip; ac_word=$2
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2803 $as_echo_n "checking for $ac_word... " >&6; }
2804 if test "${ac_cv_prog_STRIP+set}" = set; then :
2805 $as_echo_n "(cached) " >&6
2806 else
2807 if test -n "$STRIP"; then
2808 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2809 else
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 for as_dir in $PATH
2813 IFS=$as_save_IFS
2814 test -z "$as_dir" && as_dir=.
2815 for ac_exec_ext in '' $ac_executable_extensions; do
2816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2817 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2819 break 2
2821 done
2822 done
2823 IFS=$as_save_IFS
2827 STRIP=$ac_cv_prog_STRIP
2828 if test -n "$STRIP"; then
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2830 $as_echo "$STRIP" >&6; }
2831 else
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833 $as_echo "no" >&6; }
2838 if test -z "$ac_cv_prog_STRIP"; then
2839 ac_ct_STRIP=$STRIP
2840 # Extract the first word of "strip", so it can be a program name with args.
2841 set dummy strip; ac_word=$2
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2843 $as_echo_n "checking for $ac_word... " >&6; }
2844 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2845 $as_echo_n "(cached) " >&6
2846 else
2847 if test -n "$ac_ct_STRIP"; then
2848 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2849 else
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 for as_dir in $PATH
2853 IFS=$as_save_IFS
2854 test -z "$as_dir" && as_dir=.
2855 for ac_exec_ext in '' $ac_executable_extensions; do
2856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2857 ac_cv_prog_ac_ct_STRIP="strip"
2858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2859 break 2
2861 done
2862 done
2863 IFS=$as_save_IFS
2867 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2868 if test -n "$ac_ct_STRIP"; then
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2870 $as_echo "$ac_ct_STRIP" >&6; }
2871 else
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873 $as_echo "no" >&6; }
2876 if test "x$ac_ct_STRIP" = x; then
2877 STRIP=":"
2878 else
2879 case $cross_compiling:$ac_tool_warned in
2880 yes:)
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2883 ac_tool_warned=yes ;;
2884 esac
2885 STRIP=$ac_ct_STRIP
2887 else
2888 STRIP="$ac_cv_prog_STRIP"
2892 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2895 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2896 if test -z "$MKDIR_P"; then
2897 if test "${ac_cv_path_mkdir+set}" = set; then :
2898 $as_echo_n "(cached) " >&6
2899 else
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2903 IFS=$as_save_IFS
2904 test -z "$as_dir" && as_dir=.
2905 for ac_prog in mkdir gmkdir; do
2906 for ac_exec_ext in '' $ac_executable_extensions; do
2907 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2908 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2909 'mkdir (GNU coreutils) '* | \
2910 'mkdir (coreutils) '* | \
2911 'mkdir (fileutils) '4.1*)
2912 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2913 break 3;;
2914 esac
2915 done
2916 done
2917 done
2918 IFS=$as_save_IFS
2922 if test "${ac_cv_path_mkdir+set}" = set; then
2923 MKDIR_P="$ac_cv_path_mkdir -p"
2924 else
2925 # As a last resort, use the slow shell script. Don't cache a
2926 # value for MKDIR_P within a source directory, because that will
2927 # break other packages using the cache if that directory is
2928 # removed, or if the value is a relative name.
2929 test -d ./--version && rmdir ./--version
2930 MKDIR_P="$ac_install_sh -d"
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2934 $as_echo "$MKDIR_P" >&6; }
2936 mkdir_p="$MKDIR_P"
2937 case $mkdir_p in
2938 [\\/$]* | ?:[\\/]*) ;;
2939 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2940 esac
2942 for ac_prog in gawk mawk nawk awk
2944 # Extract the first word of "$ac_prog", so it can be a program name with args.
2945 set dummy $ac_prog; ac_word=$2
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947 $as_echo_n "checking for $ac_word... " >&6; }
2948 if test "${ac_cv_prog_AWK+set}" = set; then :
2949 $as_echo_n "(cached) " >&6
2950 else
2951 if test -n "$AWK"; then
2952 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2953 else
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955 for as_dir in $PATH
2957 IFS=$as_save_IFS
2958 test -z "$as_dir" && as_dir=.
2959 for ac_exec_ext in '' $ac_executable_extensions; do
2960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2961 ac_cv_prog_AWK="$ac_prog"
2962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2963 break 2
2965 done
2966 done
2967 IFS=$as_save_IFS
2971 AWK=$ac_cv_prog_AWK
2972 if test -n "$AWK"; then
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2974 $as_echo "$AWK" >&6; }
2975 else
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977 $as_echo "no" >&6; }
2981 test -n "$AWK" && break
2982 done
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2985 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2986 set x ${MAKE-make}
2987 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2988 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2989 $as_echo_n "(cached) " >&6
2990 else
2991 cat >conftest.make <<\_ACEOF
2992 SHELL = /bin/sh
2993 all:
2994 @echo '@@@%%%=$(MAKE)=@@@%%%'
2995 _ACEOF
2996 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2997 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2998 *@@@%%%=?*=@@@%%%*)
2999 eval ac_cv_prog_make_${ac_make}_set=yes;;
3001 eval ac_cv_prog_make_${ac_make}_set=no;;
3002 esac
3003 rm -f conftest.make
3005 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3007 $as_echo "yes" >&6; }
3008 SET_MAKE=
3009 else
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3011 $as_echo "no" >&6; }
3012 SET_MAKE="MAKE=${MAKE-make}"
3015 rm -rf .tst 2>/dev/null
3016 mkdir .tst 2>/dev/null
3017 if test -d .tst; then
3018 am__leading_dot=.
3019 else
3020 am__leading_dot=_
3022 rmdir .tst 2>/dev/null
3024 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3025 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3026 # is not polluted with repeated "-I."
3027 am__isrc=' -I$(srcdir)'
3028 # test to see if srcdir already configured
3029 if test -f $srcdir/config.status; then
3030 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3034 # test whether we have cygpath
3035 if test -z "$CYGPATH_W"; then
3036 if (cygpath --version) >/dev/null 2>/dev/null; then
3037 CYGPATH_W='cygpath -w'
3038 else
3039 CYGPATH_W=echo
3044 # Define the identity of the package.
3045 PACKAGE='libffi'
3046 VERSION='3.0.9'
3049 cat >>confdefs.h <<_ACEOF
3050 #define PACKAGE "$PACKAGE"
3051 _ACEOF
3054 cat >>confdefs.h <<_ACEOF
3055 #define VERSION "$VERSION"
3056 _ACEOF
3058 # Some tools Automake needs.
3060 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3063 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3066 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3069 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3072 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3074 # We need awk for the "check" target. The system "awk" is bad on
3075 # some platforms.
3076 # Always define AMTAR for backward compatibility.
3078 AMTAR=${AMTAR-"${am_missing_run}tar"}
3080 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3087 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3088 # We must force CC to /not/ be precious variables; otherwise
3089 # the wrong, non-multilib-adjusted value will be used in multilibs.
3090 # As a side effect, we have to subst CFLAGS ourselves.
3094 ac_ext=c
3095 ac_cpp='$CPP $CPPFLAGS'
3096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3099 if test -n "$ac_tool_prefix"; then
3100 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3101 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103 $as_echo_n "checking for $ac_word... " >&6; }
3104 if test "${ac_cv_prog_CC+set}" = set; then :
3105 $as_echo_n "(cached) " >&6
3106 else
3107 if test -n "$CC"; then
3108 ac_cv_prog_CC="$CC" # Let the user override the test.
3109 else
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 for as_dir in $PATH
3113 IFS=$as_save_IFS
3114 test -z "$as_dir" && as_dir=.
3115 for ac_exec_ext in '' $ac_executable_extensions; do
3116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3117 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 break 2
3121 done
3122 done
3123 IFS=$as_save_IFS
3127 CC=$ac_cv_prog_CC
3128 if test -n "$CC"; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3130 $as_echo "$CC" >&6; }
3131 else
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133 $as_echo "no" >&6; }
3138 if test -z "$ac_cv_prog_CC"; then
3139 ac_ct_CC=$CC
3140 # Extract the first word of "gcc", so it can be a program name with args.
3141 set dummy gcc; ac_word=$2
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143 $as_echo_n "checking for $ac_word... " >&6; }
3144 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3145 $as_echo_n "(cached) " >&6
3146 else
3147 if test -n "$ac_ct_CC"; then
3148 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3149 else
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3153 IFS=$as_save_IFS
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3157 ac_cv_prog_ac_ct_CC="gcc"
3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 break 2
3161 done
3162 done
3163 IFS=$as_save_IFS
3167 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3168 if test -n "$ac_ct_CC"; then
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3170 $as_echo "$ac_ct_CC" >&6; }
3171 else
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 $as_echo "no" >&6; }
3176 if test "x$ac_ct_CC" = x; then
3177 CC=""
3178 else
3179 case $cross_compiling:$ac_tool_warned in
3180 yes:)
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3183 ac_tool_warned=yes ;;
3184 esac
3185 CC=$ac_ct_CC
3187 else
3188 CC="$ac_cv_prog_CC"
3191 if test -z "$CC"; then
3192 if test -n "$ac_tool_prefix"; then
3193 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3194 set dummy ${ac_tool_prefix}cc; ac_word=$2
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3196 $as_echo_n "checking for $ac_word... " >&6; }
3197 if test "${ac_cv_prog_CC+set}" = set; then :
3198 $as_echo_n "(cached) " >&6
3199 else
3200 if test -n "$CC"; then
3201 ac_cv_prog_CC="$CC" # Let the user override the test.
3202 else
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 for as_dir in $PATH
3206 IFS=$as_save_IFS
3207 test -z "$as_dir" && as_dir=.
3208 for ac_exec_ext in '' $ac_executable_extensions; do
3209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3210 ac_cv_prog_CC="${ac_tool_prefix}cc"
3211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3212 break 2
3214 done
3215 done
3216 IFS=$as_save_IFS
3220 CC=$ac_cv_prog_CC
3221 if test -n "$CC"; then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3223 $as_echo "$CC" >&6; }
3224 else
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226 $as_echo "no" >&6; }
3232 if test -z "$CC"; then
3233 # Extract the first word of "cc", so it can be a program name with args.
3234 set dummy cc; ac_word=$2
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236 $as_echo_n "checking for $ac_word... " >&6; }
3237 if test "${ac_cv_prog_CC+set}" = set; then :
3238 $as_echo_n "(cached) " >&6
3239 else
3240 if test -n "$CC"; then
3241 ac_cv_prog_CC="$CC" # Let the user override the test.
3242 else
3243 ac_prog_rejected=no
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245 for as_dir in $PATH
3247 IFS=$as_save_IFS
3248 test -z "$as_dir" && as_dir=.
3249 for ac_exec_ext in '' $ac_executable_extensions; do
3250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3251 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3252 ac_prog_rejected=yes
3253 continue
3255 ac_cv_prog_CC="cc"
3256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3257 break 2
3259 done
3260 done
3261 IFS=$as_save_IFS
3263 if test $ac_prog_rejected = yes; then
3264 # We found a bogon in the path, so make sure we never use it.
3265 set dummy $ac_cv_prog_CC
3266 shift
3267 if test $# != 0; then
3268 # We chose a different compiler from the bogus one.
3269 # However, it has the same basename, so the bogon will be chosen
3270 # first if we set CC to just the basename; use the full file name.
3271 shift
3272 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3277 CC=$ac_cv_prog_CC
3278 if test -n "$CC"; then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3280 $as_echo "$CC" >&6; }
3281 else
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283 $as_echo "no" >&6; }
3288 if test -z "$CC"; then
3289 if test -n "$ac_tool_prefix"; then
3290 for ac_prog in cl.exe
3292 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3293 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3295 $as_echo_n "checking for $ac_word... " >&6; }
3296 if test "${ac_cv_prog_CC+set}" = set; then :
3297 $as_echo_n "(cached) " >&6
3298 else
3299 if test -n "$CC"; then
3300 ac_cv_prog_CC="$CC" # Let the user override the test.
3301 else
3302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303 for as_dir in $PATH
3305 IFS=$as_save_IFS
3306 test -z "$as_dir" && as_dir=.
3307 for ac_exec_ext in '' $ac_executable_extensions; do
3308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3309 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 break 2
3313 done
3314 done
3315 IFS=$as_save_IFS
3319 CC=$ac_cv_prog_CC
3320 if test -n "$CC"; then
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3322 $as_echo "$CC" >&6; }
3323 else
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325 $as_echo "no" >&6; }
3329 test -n "$CC" && break
3330 done
3332 if test -z "$CC"; then
3333 ac_ct_CC=$CC
3334 for ac_prog in cl.exe
3336 # Extract the first word of "$ac_prog", so it can be a program name with args.
3337 set dummy $ac_prog; ac_word=$2
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3339 $as_echo_n "checking for $ac_word... " >&6; }
3340 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3341 $as_echo_n "(cached) " >&6
3342 else
3343 if test -n "$ac_ct_CC"; then
3344 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3345 else
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 for as_dir in $PATH
3349 IFS=$as_save_IFS
3350 test -z "$as_dir" && as_dir=.
3351 for ac_exec_ext in '' $ac_executable_extensions; do
3352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3353 ac_cv_prog_ac_ct_CC="$ac_prog"
3354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3355 break 2
3357 done
3358 done
3359 IFS=$as_save_IFS
3363 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3364 if test -n "$ac_ct_CC"; then
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3366 $as_echo "$ac_ct_CC" >&6; }
3367 else
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369 $as_echo "no" >&6; }
3373 test -n "$ac_ct_CC" && break
3374 done
3376 if test "x$ac_ct_CC" = x; then
3377 CC=""
3378 else
3379 case $cross_compiling:$ac_tool_warned in
3380 yes:)
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3383 ac_tool_warned=yes ;;
3384 esac
3385 CC=$ac_ct_CC
3392 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3394 as_fn_error "no acceptable C compiler found in \$PATH
3395 See \`config.log' for more details." "$LINENO" 5; }
3397 # Provide some information about the compiler.
3398 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3399 set X $ac_compile
3400 ac_compiler=$2
3401 for ac_option in --version -v -V -qversion; do
3402 { { ac_try="$ac_compiler $ac_option >&5"
3403 case "(($ac_try" in
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3406 esac
3407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3408 $as_echo "$ac_try_echo"; } >&5
3409 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3410 ac_status=$?
3411 if test -s conftest.err; then
3412 sed '10a\
3413 ... rest of stderr output deleted ...
3414 10q' conftest.err >conftest.er1
3415 cat conftest.er1 >&5
3416 rm -f conftest.er1 conftest.err
3418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3419 test $ac_status = 0; }
3420 done
3422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423 /* end confdefs.h. */
3426 main ()
3430 return 0;
3432 _ACEOF
3433 ac_clean_files_save=$ac_clean_files
3434 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3435 # Try to create an executable without -o first, disregard a.out.
3436 # It will help us diagnose broken compilers, and finding out an intuition
3437 # of exeext.
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3439 $as_echo_n "checking for C compiler default output file name... " >&6; }
3440 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3442 # The possible output files:
3443 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3445 ac_rmfiles=
3446 for ac_file in $ac_files
3448 case $ac_file in
3449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3450 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3451 esac
3452 done
3453 rm -f $ac_rmfiles
3455 if { { ac_try="$ac_link_default"
3456 case "(($ac_try" in
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3459 esac
3460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3461 $as_echo "$ac_try_echo"; } >&5
3462 (eval "$ac_link_default") 2>&5
3463 ac_status=$?
3464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465 test $ac_status = 0; }; then :
3466 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3467 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3468 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3469 # so that the user can short-circuit this test for compilers unknown to
3470 # Autoconf.
3471 for ac_file in $ac_files ''
3473 test -f "$ac_file" || continue
3474 case $ac_file in
3475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3477 [ab].out )
3478 # We found the default executable, but exeext='' is most
3479 # certainly right.
3480 break;;
3481 *.* )
3482 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3483 then :; else
3484 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3486 # We set ac_cv_exeext here because the later test for it is not
3487 # safe: cross compilers may not add the suffix if given an `-o'
3488 # argument, so we may need to know it at that point already.
3489 # Even if this section looks crufty: it has the advantage of
3490 # actually working.
3491 break;;
3493 break;;
3494 esac
3495 done
3496 test "$ac_cv_exeext" = no && ac_cv_exeext=
3498 else
3499 ac_file=''
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3502 $as_echo "$ac_file" >&6; }
3503 if test -z "$ac_file"; then :
3504 $as_echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3507 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3509 { as_fn_set_status 77
3510 as_fn_error "C compiler cannot create executables
3511 See \`config.log' for more details." "$LINENO" 5; }; }
3513 ac_exeext=$ac_cv_exeext
3515 # Check that the compiler produces executables we can run. If not, either
3516 # the compiler is broken, or we cross compile.
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3518 $as_echo_n "checking whether the C compiler works... " >&6; }
3519 # If not cross compiling, check that we can run a simple program.
3520 if test "$cross_compiling" != yes; then
3521 if { ac_try='./$ac_file'
3522 { { case "(($ac_try" in
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3525 esac
3526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3527 $as_echo "$ac_try_echo"; } >&5
3528 (eval "$ac_try") 2>&5
3529 ac_status=$?
3530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3531 test $ac_status = 0; }; }; then
3532 cross_compiling=no
3533 else
3534 if test "$cross_compiling" = maybe; then
3535 cross_compiling=yes
3536 else
3537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3539 as_fn_error "cannot run C compiled programs.
3540 If you meant to cross compile, use \`--host'.
3541 See \`config.log' for more details." "$LINENO" 5; }
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3546 $as_echo "yes" >&6; }
3548 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3549 ac_clean_files=$ac_clean_files_save
3550 # Check that the compiler produces executables we can run. If not, either
3551 # the compiler is broken, or we cross compile.
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3553 $as_echo_n "checking whether we are cross compiling... " >&6; }
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3555 $as_echo "$cross_compiling" >&6; }
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3558 $as_echo_n "checking for suffix of executables... " >&6; }
3559 if { { ac_try="$ac_link"
3560 case "(($ac_try" in
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3563 esac
3564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3565 $as_echo "$ac_try_echo"; } >&5
3566 (eval "$ac_link") 2>&5
3567 ac_status=$?
3568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3569 test $ac_status = 0; }; then :
3570 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3571 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3572 # work properly (i.e., refer to `conftest.exe'), while it won't with
3573 # `rm'.
3574 for ac_file in conftest.exe conftest conftest.*; do
3575 test -f "$ac_file" || continue
3576 case $ac_file in
3577 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3578 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3579 break;;
3580 * ) break;;
3581 esac
3582 done
3583 else
3584 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3586 as_fn_error "cannot compute suffix of executables: cannot compile and link
3587 See \`config.log' for more details." "$LINENO" 5; }
3589 rm -f conftest$ac_cv_exeext
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3591 $as_echo "$ac_cv_exeext" >&6; }
3593 rm -f conftest.$ac_ext
3594 EXEEXT=$ac_cv_exeext
3595 ac_exeext=$EXEEXT
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3597 $as_echo_n "checking for suffix of object files... " >&6; }
3598 if test "${ac_cv_objext+set}" = set; then :
3599 $as_echo_n "(cached) " >&6
3600 else
3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h. */
3605 main ()
3609 return 0;
3611 _ACEOF
3612 rm -f conftest.o conftest.obj
3613 if { { ac_try="$ac_compile"
3614 case "(($ac_try" in
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3617 esac
3618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619 $as_echo "$ac_try_echo"; } >&5
3620 (eval "$ac_compile") 2>&5
3621 ac_status=$?
3622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623 test $ac_status = 0; }; then :
3624 for ac_file in conftest.o conftest.obj conftest.*; do
3625 test -f "$ac_file" || continue;
3626 case $ac_file in
3627 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3628 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3629 break;;
3630 esac
3631 done
3632 else
3633 $as_echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3638 as_fn_error "cannot compute suffix of object files: cannot compile
3639 See \`config.log' for more details." "$LINENO" 5; }
3641 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3644 $as_echo "$ac_cv_objext" >&6; }
3645 OBJEXT=$ac_cv_objext
3646 ac_objext=$OBJEXT
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3648 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3649 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3650 $as_echo_n "(cached) " >&6
3651 else
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h. */
3656 main ()
3658 #ifndef __GNUC__
3659 choke me
3660 #endif
3663 return 0;
3665 _ACEOF
3666 if ac_fn_c_try_compile "$LINENO"; then :
3667 ac_compiler_gnu=yes
3668 else
3669 ac_compiler_gnu=no
3671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3672 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3676 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3677 if test $ac_compiler_gnu = yes; then
3678 GCC=yes
3679 else
3680 GCC=
3682 ac_test_CFLAGS=${CFLAGS+set}
3683 ac_save_CFLAGS=$CFLAGS
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3685 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3686 if test "${ac_cv_prog_cc_g+set}" = set; then :
3687 $as_echo_n "(cached) " >&6
3688 else
3689 ac_save_c_werror_flag=$ac_c_werror_flag
3690 ac_c_werror_flag=yes
3691 ac_cv_prog_cc_g=no
3692 CFLAGS="-g"
3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694 /* end confdefs.h. */
3697 main ()
3701 return 0;
3703 _ACEOF
3704 if ac_fn_c_try_compile "$LINENO"; then :
3705 ac_cv_prog_cc_g=yes
3706 else
3707 CFLAGS=""
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3712 main ()
3716 return 0;
3718 _ACEOF
3719 if ac_fn_c_try_compile "$LINENO"; then :
3721 else
3722 ac_c_werror_flag=$ac_save_c_werror_flag
3723 CFLAGS="-g"
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3728 main ()
3732 return 0;
3734 _ACEOF
3735 if ac_fn_c_try_compile "$LINENO"; then :
3736 ac_cv_prog_cc_g=yes
3738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743 ac_c_werror_flag=$ac_save_c_werror_flag
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3746 $as_echo "$ac_cv_prog_cc_g" >&6; }
3747 if test "$ac_test_CFLAGS" = set; then
3748 CFLAGS=$ac_save_CFLAGS
3749 elif test $ac_cv_prog_cc_g = yes; then
3750 if test "$GCC" = yes; then
3751 CFLAGS="-g -O2"
3752 else
3753 CFLAGS="-g"
3755 else
3756 if test "$GCC" = yes; then
3757 CFLAGS="-O2"
3758 else
3759 CFLAGS=
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3763 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3764 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3765 $as_echo_n "(cached) " >&6
3766 else
3767 ac_cv_prog_cc_c89=no
3768 ac_save_CC=$CC
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3771 #include <stdarg.h>
3772 #include <stdio.h>
3773 #include <sys/types.h>
3774 #include <sys/stat.h>
3775 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3776 struct buf { int x; };
3777 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3778 static char *e (p, i)
3779 char **p;
3780 int i;
3782 return p[i];
3784 static char *f (char * (*g) (char **, int), char **p, ...)
3786 char *s;
3787 va_list v;
3788 va_start (v,p);
3789 s = g (p, va_arg (v,int));
3790 va_end (v);
3791 return s;
3794 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3795 function prototypes and stuff, but not '\xHH' hex character constants.
3796 These don't provoke an error unfortunately, instead are silently treated
3797 as 'x'. The following induces an error, until -std is added to get
3798 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3799 array size at least. It's necessary to write '\x00'==0 to get something
3800 that's true only with -std. */
3801 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3803 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3804 inside strings and character constants. */
3805 #define FOO(x) 'x'
3806 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3808 int test (int i, double x);
3809 struct s1 {int (*f) (int a);};
3810 struct s2 {int (*f) (double a);};
3811 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3812 int argc;
3813 char **argv;
3815 main ()
3817 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3819 return 0;
3821 _ACEOF
3822 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3823 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3825 CC="$ac_save_CC $ac_arg"
3826 if ac_fn_c_try_compile "$LINENO"; then :
3827 ac_cv_prog_cc_c89=$ac_arg
3829 rm -f core conftest.err conftest.$ac_objext
3830 test "x$ac_cv_prog_cc_c89" != "xno" && break
3831 done
3832 rm -f conftest.$ac_ext
3833 CC=$ac_save_CC
3836 # AC_CACHE_VAL
3837 case "x$ac_cv_prog_cc_c89" in
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3840 $as_echo "none needed" >&6; } ;;
3841 xno)
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3843 $as_echo "unsupported" >&6; } ;;
3845 CC="$CC $ac_cv_prog_cc_c89"
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3847 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3848 esac
3849 if test "x$ac_cv_prog_cc_c89" != xno; then :
3853 ac_ext=c
3854 ac_cpp='$CPP $CPPFLAGS'
3855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3858 DEPDIR="${am__leading_dot}deps"
3860 ac_config_commands="$ac_config_commands depfiles"
3863 am_make=${MAKE-make}
3864 cat > confinc << 'END'
3865 am__doit:
3866 @echo this is the am__doit target
3867 .PHONY: am__doit
3869 # If we don't find an include directive, just comment out the code.
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3871 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3872 am__include="#"
3873 am__quote=
3874 _am_result=none
3875 # First try GNU make style include.
3876 echo "include confinc" > confmf
3877 # Ignore all kinds of additional output from `make'.
3878 case `$am_make -s -f confmf 2> /dev/null` in #(
3879 *the\ am__doit\ target*)
3880 am__include=include
3881 am__quote=
3882 _am_result=GNU
3884 esac
3885 # Now try BSD make style include.
3886 if test "$am__include" = "#"; then
3887 echo '.include "confinc"' > confmf
3888 case `$am_make -s -f confmf 2> /dev/null` in #(
3889 *the\ am__doit\ target*)
3890 am__include=.include
3891 am__quote="\""
3892 _am_result=BSD
3894 esac
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3899 $as_echo "$_am_result" >&6; }
3900 rm -f confinc confmf
3902 # Check whether --enable-dependency-tracking was given.
3903 if test "${enable_dependency_tracking+set}" = set; then :
3904 enableval=$enable_dependency_tracking;
3907 if test "x$enable_dependency_tracking" != xno; then
3908 am_depcomp="$ac_aux_dir/depcomp"
3909 AMDEPBACKSLASH='\'
3911 if test "x$enable_dependency_tracking" != xno; then
3912 AMDEP_TRUE=
3913 AMDEP_FALSE='#'
3914 else
3915 AMDEP_TRUE='#'
3916 AMDEP_FALSE=
3921 depcc="$CC" am_compiler_list=
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3924 $as_echo_n "checking dependency style of $depcc... " >&6; }
3925 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3926 $as_echo_n "(cached) " >&6
3927 else
3928 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3929 # We make a subdir and do the tests there. Otherwise we can end up
3930 # making bogus files that we don't know about and never remove. For
3931 # instance it was reported that on HP-UX the gcc test will end up
3932 # making a dummy file named `D' -- because `-MD' means `put the output
3933 # in D'.
3934 mkdir conftest.dir
3935 # Copy depcomp to subdir because otherwise we won't find it if we're
3936 # using a relative directory.
3937 cp "$am_depcomp" conftest.dir
3938 cd conftest.dir
3939 # We will build objects and dependencies in a subdirectory because
3940 # it helps to detect inapplicable dependency modes. For instance
3941 # both Tru64's cc and ICC support -MD to output dependencies as a
3942 # side effect of compilation, but ICC will put the dependencies in
3943 # the current directory while Tru64 will put them in the object
3944 # directory.
3945 mkdir sub
3947 am_cv_CC_dependencies_compiler_type=none
3948 if test "$am_compiler_list" = ""; then
3949 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3951 am__universal=false
3952 case " $depcc " in #(
3953 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3954 esac
3956 for depmode in $am_compiler_list; do
3957 # Setup a source with many dependencies, because some compilers
3958 # like to wrap large dependency lists on column 80 (with \), and
3959 # we should not choose a depcomp mode which is confused by this.
3961 # We need to recreate these files for each test, as the compiler may
3962 # overwrite some of them when testing with obscure command lines.
3963 # This happens at least with the AIX C compiler.
3964 : > sub/conftest.c
3965 for i in 1 2 3 4 5 6; do
3966 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3967 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3968 # Solaris 8's {/usr,}/bin/sh.
3969 touch sub/conftst$i.h
3970 done
3971 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3973 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3974 # mode. It turns out that the SunPro C++ compiler does not properly
3975 # handle `-M -o', and we need to detect this. Also, some Intel
3976 # versions had trouble with output in subdirs
3977 am__obj=sub/conftest.${OBJEXT-o}
3978 am__minus_obj="-o $am__obj"
3979 case $depmode in
3980 gcc)
3981 # This depmode causes a compiler race in universal mode.
3982 test "$am__universal" = false || continue
3984 nosideeffect)
3985 # after this tag, mechanisms are not by side-effect, so they'll
3986 # only be used when explicitly requested
3987 if test "x$enable_dependency_tracking" = xyes; then
3988 continue
3989 else
3990 break
3993 msvisualcpp | msvcmsys)
3994 # This compiler won't grok `-c -o', but also, the minuso test has
3995 # not run yet. These depmodes are late enough in the game, and
3996 # so weak that their functioning should not be impacted.
3997 am__obj=conftest.${OBJEXT-o}
3998 am__minus_obj=
4000 none) break ;;
4001 esac
4002 if depmode=$depmode \
4003 source=sub/conftest.c object=$am__obj \
4004 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4005 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4006 >/dev/null 2>conftest.err &&
4007 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4008 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4009 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4010 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4011 # icc doesn't choke on unknown options, it will just issue warnings
4012 # or remarks (even with -Werror). So we grep stderr for any message
4013 # that says an option was ignored or not supported.
4014 # When given -MP, icc 7.0 and 7.1 complain thusly:
4015 # icc: Command line warning: ignoring option '-M'; no argument required
4016 # The diagnosis changed in icc 8.0:
4017 # icc: Command line remark: option '-MP' not supported
4018 if (grep 'ignoring option' conftest.err ||
4019 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4020 am_cv_CC_dependencies_compiler_type=$depmode
4021 break
4024 done
4026 cd ..
4027 rm -rf conftest.dir
4028 else
4029 am_cv_CC_dependencies_compiler_type=none
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4034 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4035 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4038 test "x$enable_dependency_tracking" != xno \
4039 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4040 am__fastdepCC_TRUE=
4041 am__fastdepCC_FALSE='#'
4042 else
4043 am__fastdepCC_TRUE='#'
4044 am__fastdepCC_FALSE=
4052 # By default we simply use the C compiler to build assembly code.
4054 test "${CCAS+set}" = set || CCAS=$CC
4055 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4059 depcc="$CCAS" am_compiler_list=
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4062 $as_echo_n "checking dependency style of $depcc... " >&6; }
4063 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4064 $as_echo_n "(cached) " >&6
4065 else
4066 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4067 # We make a subdir and do the tests there. Otherwise we can end up
4068 # making bogus files that we don't know about and never remove. For
4069 # instance it was reported that on HP-UX the gcc test will end up
4070 # making a dummy file named `D' -- because `-MD' means `put the output
4071 # in D'.
4072 mkdir conftest.dir
4073 # Copy depcomp to subdir because otherwise we won't find it if we're
4074 # using a relative directory.
4075 cp "$am_depcomp" conftest.dir
4076 cd conftest.dir
4077 # We will build objects and dependencies in a subdirectory because
4078 # it helps to detect inapplicable dependency modes. For instance
4079 # both Tru64's cc and ICC support -MD to output dependencies as a
4080 # side effect of compilation, but ICC will put the dependencies in
4081 # the current directory while Tru64 will put them in the object
4082 # directory.
4083 mkdir sub
4085 am_cv_CCAS_dependencies_compiler_type=none
4086 if test "$am_compiler_list" = ""; then
4087 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4089 am__universal=false
4092 for depmode in $am_compiler_list; do
4093 # Setup a source with many dependencies, because some compilers
4094 # like to wrap large dependency lists on column 80 (with \), and
4095 # we should not choose a depcomp mode which is confused by this.
4097 # We need to recreate these files for each test, as the compiler may
4098 # overwrite some of them when testing with obscure command lines.
4099 # This happens at least with the AIX C compiler.
4100 : > sub/conftest.c
4101 for i in 1 2 3 4 5 6; do
4102 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4103 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4104 # Solaris 8's {/usr,}/bin/sh.
4105 touch sub/conftst$i.h
4106 done
4107 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4109 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4110 # mode. It turns out that the SunPro C++ compiler does not properly
4111 # handle `-M -o', and we need to detect this. Also, some Intel
4112 # versions had trouble with output in subdirs
4113 am__obj=sub/conftest.${OBJEXT-o}
4114 am__minus_obj="-o $am__obj"
4115 case $depmode in
4116 gcc)
4117 # This depmode causes a compiler race in universal mode.
4118 test "$am__universal" = false || continue
4120 nosideeffect)
4121 # after this tag, mechanisms are not by side-effect, so they'll
4122 # only be used when explicitly requested
4123 if test "x$enable_dependency_tracking" = xyes; then
4124 continue
4125 else
4126 break
4129 msvisualcpp | msvcmsys)
4130 # This compiler won't grok `-c -o', but also, the minuso test has
4131 # not run yet. These depmodes are late enough in the game, and
4132 # so weak that their functioning should not be impacted.
4133 am__obj=conftest.${OBJEXT-o}
4134 am__minus_obj=
4136 none) break ;;
4137 esac
4138 if depmode=$depmode \
4139 source=sub/conftest.c object=$am__obj \
4140 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4141 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4142 >/dev/null 2>conftest.err &&
4143 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4144 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4145 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4146 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4147 # icc doesn't choke on unknown options, it will just issue warnings
4148 # or remarks (even with -Werror). So we grep stderr for any message
4149 # that says an option was ignored or not supported.
4150 # When given -MP, icc 7.0 and 7.1 complain thusly:
4151 # icc: Command line warning: ignoring option '-M'; no argument required
4152 # The diagnosis changed in icc 8.0:
4153 # icc: Command line remark: option '-MP' not supported
4154 if (grep 'ignoring option' conftest.err ||
4155 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4156 am_cv_CCAS_dependencies_compiler_type=$depmode
4157 break
4160 done
4162 cd ..
4163 rm -rf conftest.dir
4164 else
4165 am_cv_CCAS_dependencies_compiler_type=none
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4170 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4171 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4174 test "x$enable_dependency_tracking" != xno \
4175 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4176 am__fastdepCCAS_TRUE=
4177 am__fastdepCCAS_FALSE='#'
4178 else
4179 am__fastdepCCAS_TRUE='#'
4180 am__fastdepCCAS_FALSE=
4184 if test "x$CC" != xcc; then
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4186 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4187 else
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4189 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4191 set dummy $CC; ac_cc=`$as_echo "$2" |
4192 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4193 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4194 $as_echo_n "(cached) " >&6
4195 else
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4200 main ()
4204 return 0;
4206 _ACEOF
4207 # Make sure it works both with $CC and with simple cc.
4208 # We do the test twice because some compilers refuse to overwrite an
4209 # existing .o file with -o, though they will create one.
4210 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4211 rm -f conftest2.*
4212 if { { case "(($ac_try" in
4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214 *) ac_try_echo=$ac_try;;
4215 esac
4216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4217 $as_echo "$ac_try_echo"; } >&5
4218 (eval "$ac_try") 2>&5
4219 ac_status=$?
4220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4221 test $ac_status = 0; } &&
4222 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4225 esac
4226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4227 $as_echo "$ac_try_echo"; } >&5
4228 (eval "$ac_try") 2>&5
4229 ac_status=$?
4230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4231 test $ac_status = 0; };
4232 then
4233 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4234 if test "x$CC" != xcc; then
4235 # Test first that cc exists at all.
4236 if { ac_try='cc -c conftest.$ac_ext >&5'
4237 { { case "(($ac_try" in
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4240 esac
4241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4242 $as_echo "$ac_try_echo"; } >&5
4243 (eval "$ac_try") 2>&5
4244 ac_status=$?
4245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4246 test $ac_status = 0; }; }; then
4247 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4248 rm -f conftest2.*
4249 if { { case "(($ac_try" in
4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251 *) ac_try_echo=$ac_try;;
4252 esac
4253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4254 $as_echo "$ac_try_echo"; } >&5
4255 (eval "$ac_try") 2>&5
4256 ac_status=$?
4257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4258 test $ac_status = 0; } &&
4259 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4262 esac
4263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4264 $as_echo "$ac_try_echo"; } >&5
4265 (eval "$ac_try") 2>&5
4266 ac_status=$?
4267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4268 test $ac_status = 0; };
4269 then
4270 # cc works too.
4272 else
4273 # cc exists but doesn't like -o.
4274 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4278 else
4279 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4281 rm -f core conftest*
4284 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4286 $as_echo "yes" >&6; }
4287 else
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289 $as_echo "no" >&6; }
4291 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4295 # FIXME: we rely on the cache variable name because
4296 # there is no other way.
4297 set dummy $CC
4298 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4299 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4300 if test "$am_t" != yes; then
4301 # Losing compiler, so override with the script.
4302 # FIXME: It is wrong to rewrite CC.
4303 # But if we don't then we get into trouble of one sort or another.
4304 # A longer-term fix would be to have automake use am__CC in this case,
4305 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4306 CC="$am_aux_dir/compile $CC"
4310 case `pwd` in
4311 *\ * | *\ *)
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4313 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4314 esac
4318 macro_version='2.2.7a'
4319 macro_revision='1.3134'
4333 ltmain="$ac_aux_dir/ltmain.sh"
4335 # Backslashify metacharacters that are still active within
4336 # double-quoted strings.
4337 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4339 # Same as above, but do not quote variable references.
4340 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4342 # Sed substitution to delay expansion of an escaped shell variable in a
4343 # double_quote_subst'ed string.
4344 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4346 # Sed substitution to delay expansion of an escaped single quote.
4347 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4349 # Sed substitution to avoid accidental globbing in evaled expressions
4350 no_glob_subst='s/\*/\\\*/g'
4352 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4353 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4354 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4357 $as_echo_n "checking how to print strings... " >&6; }
4358 # Test print first, because it will be a builtin if present.
4359 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4360 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4361 ECHO='print -r --'
4362 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4363 ECHO='printf %s\n'
4364 else
4365 # Use this function as a fallback that always works.
4366 func_fallback_echo ()
4368 eval 'cat <<_LTECHO_EOF
4370 _LTECHO_EOF'
4372 ECHO='func_fallback_echo'
4375 # func_echo_all arg...
4376 # Invoke $ECHO with all args, space-separated.
4377 func_echo_all ()
4379 $ECHO ""
4382 case "$ECHO" in
4383 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4384 $as_echo "printf" >&6; } ;;
4385 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4386 $as_echo "print -r" >&6; } ;;
4387 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4388 $as_echo "cat" >&6; } ;;
4389 esac
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4405 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4406 if test "${ac_cv_path_SED+set}" = set; then :
4407 $as_echo_n "(cached) " >&6
4408 else
4409 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4410 for ac_i in 1 2 3 4 5 6 7; do
4411 ac_script="$ac_script$as_nl$ac_script"
4412 done
4413 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4414 { ac_script=; unset ac_script;}
4415 if test -z "$SED"; then
4416 ac_path_SED_found=false
4417 # Loop through the user's path and test for each of PROGNAME-LIST
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH
4421 IFS=$as_save_IFS
4422 test -z "$as_dir" && as_dir=.
4423 for ac_prog in sed gsed; do
4424 for ac_exec_ext in '' $ac_executable_extensions; do
4425 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4426 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4427 # Check for GNU ac_path_SED and select it if it is found.
4428 # Check for GNU $ac_path_SED
4429 case `"$ac_path_SED" --version 2>&1` in
4430 *GNU*)
4431 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4433 ac_count=0
4434 $as_echo_n 0123456789 >"conftest.in"
4435 while :
4437 cat "conftest.in" "conftest.in" >"conftest.tmp"
4438 mv "conftest.tmp" "conftest.in"
4439 cp "conftest.in" "conftest.nl"
4440 $as_echo '' >> "conftest.nl"
4441 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4442 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4443 as_fn_arith $ac_count + 1 && ac_count=$as_val
4444 if test $ac_count -gt ${ac_path_SED_max-0}; then
4445 # Best one so far, save it but keep looking for a better one
4446 ac_cv_path_SED="$ac_path_SED"
4447 ac_path_SED_max=$ac_count
4449 # 10*(2^10) chars as input seems more than enough
4450 test $ac_count -gt 10 && break
4451 done
4452 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4453 esac
4455 $ac_path_SED_found && break 3
4456 done
4457 done
4458 done
4459 IFS=$as_save_IFS
4460 if test -z "$ac_cv_path_SED"; then
4461 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4463 else
4464 ac_cv_path_SED=$SED
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4469 $as_echo "$ac_cv_path_SED" >&6; }
4470 SED="$ac_cv_path_SED"
4471 rm -f conftest.sed
4473 test -z "$SED" && SED=sed
4474 Xsed="$SED -e 1s/^X//"
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4487 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4488 if test "${ac_cv_path_GREP+set}" = set; then :
4489 $as_echo_n "(cached) " >&6
4490 else
4491 if test -z "$GREP"; then
4492 ac_path_GREP_found=false
4493 # Loop through the user's path and test for each of PROGNAME-LIST
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4497 IFS=$as_save_IFS
4498 test -z "$as_dir" && as_dir=.
4499 for ac_prog in grep ggrep; do
4500 for ac_exec_ext in '' $ac_executable_extensions; do
4501 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4502 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4503 # Check for GNU ac_path_GREP and select it if it is found.
4504 # Check for GNU $ac_path_GREP
4505 case `"$ac_path_GREP" --version 2>&1` in
4506 *GNU*)
4507 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4509 ac_count=0
4510 $as_echo_n 0123456789 >"conftest.in"
4511 while :
4513 cat "conftest.in" "conftest.in" >"conftest.tmp"
4514 mv "conftest.tmp" "conftest.in"
4515 cp "conftest.in" "conftest.nl"
4516 $as_echo 'GREP' >> "conftest.nl"
4517 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4518 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4519 as_fn_arith $ac_count + 1 && ac_count=$as_val
4520 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4521 # Best one so far, save it but keep looking for a better one
4522 ac_cv_path_GREP="$ac_path_GREP"
4523 ac_path_GREP_max=$ac_count
4525 # 10*(2^10) chars as input seems more than enough
4526 test $ac_count -gt 10 && break
4527 done
4528 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4529 esac
4531 $ac_path_GREP_found && break 3
4532 done
4533 done
4534 done
4535 IFS=$as_save_IFS
4536 if test -z "$ac_cv_path_GREP"; then
4537 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4539 else
4540 ac_cv_path_GREP=$GREP
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4545 $as_echo "$ac_cv_path_GREP" >&6; }
4546 GREP="$ac_cv_path_GREP"
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4550 $as_echo_n "checking for egrep... " >&6; }
4551 if test "${ac_cv_path_EGREP+set}" = set; then :
4552 $as_echo_n "(cached) " >&6
4553 else
4554 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4555 then ac_cv_path_EGREP="$GREP -E"
4556 else
4557 if test -z "$EGREP"; then
4558 ac_path_EGREP_found=false
4559 # Loop through the user's path and test for each of PROGNAME-LIST
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4563 IFS=$as_save_IFS
4564 test -z "$as_dir" && as_dir=.
4565 for ac_prog in egrep; do
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4568 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4569 # Check for GNU ac_path_EGREP and select it if it is found.
4570 # Check for GNU $ac_path_EGREP
4571 case `"$ac_path_EGREP" --version 2>&1` in
4572 *GNU*)
4573 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4575 ac_count=0
4576 $as_echo_n 0123456789 >"conftest.in"
4577 while :
4579 cat "conftest.in" "conftest.in" >"conftest.tmp"
4580 mv "conftest.tmp" "conftest.in"
4581 cp "conftest.in" "conftest.nl"
4582 $as_echo 'EGREP' >> "conftest.nl"
4583 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4584 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4585 as_fn_arith $ac_count + 1 && ac_count=$as_val
4586 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4587 # Best one so far, save it but keep looking for a better one
4588 ac_cv_path_EGREP="$ac_path_EGREP"
4589 ac_path_EGREP_max=$ac_count
4591 # 10*(2^10) chars as input seems more than enough
4592 test $ac_count -gt 10 && break
4593 done
4594 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4595 esac
4597 $ac_path_EGREP_found && break 3
4598 done
4599 done
4600 done
4601 IFS=$as_save_IFS
4602 if test -z "$ac_cv_path_EGREP"; then
4603 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4605 else
4606 ac_cv_path_EGREP=$EGREP
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4612 $as_echo "$ac_cv_path_EGREP" >&6; }
4613 EGREP="$ac_cv_path_EGREP"
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4617 $as_echo_n "checking for fgrep... " >&6; }
4618 if test "${ac_cv_path_FGREP+set}" = set; then :
4619 $as_echo_n "(cached) " >&6
4620 else
4621 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4622 then ac_cv_path_FGREP="$GREP -F"
4623 else
4624 if test -z "$FGREP"; then
4625 ac_path_FGREP_found=false
4626 # Loop through the user's path and test for each of PROGNAME-LIST
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4630 IFS=$as_save_IFS
4631 test -z "$as_dir" && as_dir=.
4632 for ac_prog in fgrep; do
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4635 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4636 # Check for GNU ac_path_FGREP and select it if it is found.
4637 # Check for GNU $ac_path_FGREP
4638 case `"$ac_path_FGREP" --version 2>&1` in
4639 *GNU*)
4640 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4642 ac_count=0
4643 $as_echo_n 0123456789 >"conftest.in"
4644 while :
4646 cat "conftest.in" "conftest.in" >"conftest.tmp"
4647 mv "conftest.tmp" "conftest.in"
4648 cp "conftest.in" "conftest.nl"
4649 $as_echo 'FGREP' >> "conftest.nl"
4650 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4651 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4652 as_fn_arith $ac_count + 1 && ac_count=$as_val
4653 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4654 # Best one so far, save it but keep looking for a better one
4655 ac_cv_path_FGREP="$ac_path_FGREP"
4656 ac_path_FGREP_max=$ac_count
4658 # 10*(2^10) chars as input seems more than enough
4659 test $ac_count -gt 10 && break
4660 done
4661 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4662 esac
4664 $ac_path_FGREP_found && break 3
4665 done
4666 done
4667 done
4668 IFS=$as_save_IFS
4669 if test -z "$ac_cv_path_FGREP"; then
4670 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4672 else
4673 ac_cv_path_FGREP=$FGREP
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4679 $as_echo "$ac_cv_path_FGREP" >&6; }
4680 FGREP="$ac_cv_path_FGREP"
4683 test -z "$GREP" && GREP=grep
4703 # Check whether --with-gnu-ld was given.
4704 if test "${with_gnu_ld+set}" = set; then :
4705 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4706 else
4707 with_gnu_ld=no
4710 ac_prog=ld
4711 if test "$GCC" = yes; then
4712 # Check if gcc -print-prog-name=ld gives a path.
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4714 $as_echo_n "checking for ld used by $CC... " >&6; }
4715 case $host in
4716 *-*-mingw*)
4717 # gcc leaves a trailing carriage return which upsets mingw
4718 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4720 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4721 esac
4722 case $ac_prog in
4723 # Accept absolute paths.
4724 [\\/]* | ?:[\\/]*)
4725 re_direlt='/[^/][^/]*/\.\./'
4726 # Canonicalize the pathname of ld
4727 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4728 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4729 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4730 done
4731 test -z "$LD" && LD="$ac_prog"
4734 # If it fails, then pretend we aren't using GCC.
4735 ac_prog=ld
4738 # If it is relative, then search for the first ld in PATH.
4739 with_gnu_ld=unknown
4741 esac
4742 elif test "$with_gnu_ld" = yes; then
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4744 $as_echo_n "checking for GNU ld... " >&6; }
4745 else
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4747 $as_echo_n "checking for non-GNU ld... " >&6; }
4749 if test "${lt_cv_path_LD+set}" = set; then :
4750 $as_echo_n "(cached) " >&6
4751 else
4752 if test -z "$LD"; then
4753 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4754 for ac_dir in $PATH; do
4755 IFS="$lt_save_ifs"
4756 test -z "$ac_dir" && ac_dir=.
4757 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4758 lt_cv_path_LD="$ac_dir/$ac_prog"
4759 # Check to see if the program is GNU ld. I'd rather use --version,
4760 # but apparently some variants of GNU ld only accept -v.
4761 # Break only if it was the GNU/non-GNU ld that we prefer.
4762 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4763 *GNU* | *'with BFD'*)
4764 test "$with_gnu_ld" != no && break
4767 test "$with_gnu_ld" != yes && break
4769 esac
4771 done
4772 IFS="$lt_save_ifs"
4773 else
4774 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4778 LD="$lt_cv_path_LD"
4779 if test -n "$LD"; then
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4781 $as_echo "$LD" >&6; }
4782 else
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784 $as_echo "no" >&6; }
4786 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4788 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4789 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4790 $as_echo_n "(cached) " >&6
4791 else
4792 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4793 case `$LD -v 2>&1 </dev/null` in
4794 *GNU* | *'with BFD'*)
4795 lt_cv_prog_gnu_ld=yes
4798 lt_cv_prog_gnu_ld=no
4800 esac
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4803 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4804 with_gnu_ld=$lt_cv_prog_gnu_ld
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4815 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4816 if test "${lt_cv_path_NM+set}" = set; then :
4817 $as_echo_n "(cached) " >&6
4818 else
4819 if test -n "$NM"; then
4820 # Let the user override the test.
4821 lt_cv_path_NM="$NM"
4822 else
4823 lt_nm_to_check="${ac_tool_prefix}nm"
4824 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4825 lt_nm_to_check="$lt_nm_to_check nm"
4827 for lt_tmp_nm in $lt_nm_to_check; do
4828 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4829 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4830 IFS="$lt_save_ifs"
4831 test -z "$ac_dir" && ac_dir=.
4832 tmp_nm="$ac_dir/$lt_tmp_nm"
4833 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4834 # Check to see if the nm accepts a BSD-compat flag.
4835 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4836 # nm: unknown option "B" ignored
4837 # Tru64's nm complains that /dev/null is an invalid object file
4838 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4839 */dev/null* | *'Invalid file or object type'*)
4840 lt_cv_path_NM="$tmp_nm -B"
4841 break
4844 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4845 */dev/null*)
4846 lt_cv_path_NM="$tmp_nm -p"
4847 break
4850 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4851 continue # so that we can try to find one that supports BSD flags
4853 esac
4855 esac
4857 done
4858 IFS="$lt_save_ifs"
4859 done
4860 : ${lt_cv_path_NM=no}
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4864 $as_echo "$lt_cv_path_NM" >&6; }
4865 if test "$lt_cv_path_NM" != "no"; then
4866 NM="$lt_cv_path_NM"
4867 else
4868 # Didn't find any BSD compatible name lister, look for dumpbin.
4869 if test -n "$DUMPBIN"; then :
4870 # Let the user override the test.
4871 else
4872 if test -n "$ac_tool_prefix"; then
4873 for ac_prog in dumpbin "link -dump"
4875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4878 $as_echo_n "checking for $ac_word... " >&6; }
4879 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4880 $as_echo_n "(cached) " >&6
4881 else
4882 if test -n "$DUMPBIN"; then
4883 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4884 else
4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 for as_dir in $PATH
4888 IFS=$as_save_IFS
4889 test -z "$as_dir" && as_dir=.
4890 for ac_exec_ext in '' $ac_executable_extensions; do
4891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4892 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4894 break 2
4896 done
4897 done
4898 IFS=$as_save_IFS
4902 DUMPBIN=$ac_cv_prog_DUMPBIN
4903 if test -n "$DUMPBIN"; then
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4905 $as_echo "$DUMPBIN" >&6; }
4906 else
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908 $as_echo "no" >&6; }
4912 test -n "$DUMPBIN" && break
4913 done
4915 if test -z "$DUMPBIN"; then
4916 ac_ct_DUMPBIN=$DUMPBIN
4917 for ac_prog in dumpbin "link -dump"
4919 # Extract the first word of "$ac_prog", so it can be a program name with args.
4920 set dummy $ac_prog; ac_word=$2
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 $as_echo_n "checking for $ac_word... " >&6; }
4923 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4924 $as_echo_n "(cached) " >&6
4925 else
4926 if test -n "$ac_ct_DUMPBIN"; then
4927 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4928 else
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4932 IFS=$as_save_IFS
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4936 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4938 break 2
4940 done
4941 done
4942 IFS=$as_save_IFS
4946 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4947 if test -n "$ac_ct_DUMPBIN"; then
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4949 $as_echo "$ac_ct_DUMPBIN" >&6; }
4950 else
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952 $as_echo "no" >&6; }
4956 test -n "$ac_ct_DUMPBIN" && break
4957 done
4959 if test "x$ac_ct_DUMPBIN" = x; then
4960 DUMPBIN=":"
4961 else
4962 case $cross_compiling:$ac_tool_warned in
4963 yes:)
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4966 ac_tool_warned=yes ;;
4967 esac
4968 DUMPBIN=$ac_ct_DUMPBIN
4972 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4973 *COFF*)
4974 DUMPBIN="$DUMPBIN -symbols"
4977 DUMPBIN=:
4979 esac
4982 if test "$DUMPBIN" != ":"; then
4983 NM="$DUMPBIN"
4986 test -z "$NM" && NM=nm
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4994 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4995 if test "${lt_cv_nm_interface+set}" = set; then :
4996 $as_echo_n "(cached) " >&6
4997 else
4998 lt_cv_nm_interface="BSD nm"
4999 echo "int some_variable = 0;" > conftest.$ac_ext
5000 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5001 (eval "$ac_compile" 2>conftest.err)
5002 cat conftest.err >&5
5003 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5004 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5005 cat conftest.err >&5
5006 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5007 cat conftest.out >&5
5008 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5009 lt_cv_nm_interface="MS dumpbin"
5011 rm -f conftest*
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5014 $as_echo "$lt_cv_nm_interface" >&6; }
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5017 $as_echo_n "checking whether ln -s works... " >&6; }
5018 LN_S=$as_ln_s
5019 if test "$LN_S" = "ln -s"; then
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5021 $as_echo "yes" >&6; }
5022 else
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5024 $as_echo "no, using $LN_S" >&6; }
5027 # find the maximum length of command line arguments
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5029 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5030 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5031 $as_echo_n "(cached) " >&6
5032 else
5034 teststring="ABCD"
5036 case $build_os in
5037 msdosdjgpp*)
5038 # On DJGPP, this test can blow up pretty badly due to problems in libc
5039 # (any single argument exceeding 2000 bytes causes a buffer overrun
5040 # during glob expansion). Even if it were fixed, the result of this
5041 # check would be larger than it should be.
5042 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5045 gnu*)
5046 # Under GNU Hurd, this test is not required because there is
5047 # no limit to the length of command line arguments.
5048 # Libtool will interpret -1 as no limit whatsoever
5049 lt_cv_sys_max_cmd_len=-1;
5052 cygwin* | mingw* | cegcc*)
5053 # On Win9x/ME, this test blows up -- it succeeds, but takes
5054 # about 5 minutes as the teststring grows exponentially.
5055 # Worse, since 9x/ME are not pre-emptively multitasking,
5056 # you end up with a "frozen" computer, even though with patience
5057 # the test eventually succeeds (with a max line length of 256k).
5058 # Instead, let's just punt: use the minimum linelength reported by
5059 # all of the supported platforms: 8192 (on NT/2K/XP).
5060 lt_cv_sys_max_cmd_len=8192;
5063 mint*)
5064 # On MiNT this can take a long time and run out of memory.
5065 lt_cv_sys_max_cmd_len=8192;
5068 amigaos*)
5069 # On AmigaOS with pdksh, this test takes hours, literally.
5070 # So we just punt and use a minimum line length of 8192.
5071 lt_cv_sys_max_cmd_len=8192;
5074 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5075 # This has been around since 386BSD, at least. Likely further.
5076 if test -x /sbin/sysctl; then
5077 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5078 elif test -x /usr/sbin/sysctl; then
5079 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5080 else
5081 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5083 # And add a safety zone
5084 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5085 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5088 interix*)
5089 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5090 lt_cv_sys_max_cmd_len=196608
5093 osf*)
5094 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5095 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5096 # nice to cause kernel panics so lets avoid the loop below.
5097 # First set a reasonable default.
5098 lt_cv_sys_max_cmd_len=16384
5100 if test -x /sbin/sysconfig; then
5101 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5102 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5103 esac
5106 sco3.2v5*)
5107 lt_cv_sys_max_cmd_len=102400
5109 sysv5* | sco5v6* | sysv4.2uw2*)
5110 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5111 if test -n "$kargmax"; then
5112 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5113 else
5114 lt_cv_sys_max_cmd_len=32768
5118 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5119 if test -n "$lt_cv_sys_max_cmd_len"; then
5120 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5121 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5122 else
5123 # Make teststring a little bigger before we do anything with it.
5124 # a 1K string should be a reasonable start.
5125 for i in 1 2 3 4 5 6 7 8 ; do
5126 teststring=$teststring$teststring
5127 done
5128 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5129 # If test is not a shell built-in, we'll probably end up computing a
5130 # maximum length that is only half of the actual maximum length, but
5131 # we can't tell.
5132 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5133 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5134 test $i != 17 # 1/2 MB should be enough
5136 i=`expr $i + 1`
5137 teststring=$teststring$teststring
5138 done
5139 # Only check the string length outside the loop.
5140 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5141 teststring=
5142 # Add a significant safety factor because C++ compilers can tack on
5143 # massive amounts of additional arguments before passing them to the
5144 # linker. It appears as though 1/2 is a usable value.
5145 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5148 esac
5152 if test -n $lt_cv_sys_max_cmd_len ; then
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5154 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5155 else
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5157 $as_echo "none" >&6; }
5159 max_cmd_len=$lt_cv_sys_max_cmd_len
5166 : ${CP="cp -f"}
5167 : ${MV="mv -f"}
5168 : ${RM="rm -f"}
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5171 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5172 # Try some XSI features
5173 xsi_shell=no
5174 ( _lt_dummy="a/b/c"
5175 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5176 = c,a/b,, \
5177 && eval 'test $(( 1 + 1 )) -eq 2 \
5178 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5179 && xsi_shell=yes
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5181 $as_echo "$xsi_shell" >&6; }
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5185 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5186 lt_shell_append=no
5187 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5188 >/dev/null 2>&1 \
5189 && lt_shell_append=yes
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5191 $as_echo "$lt_shell_append" >&6; }
5194 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5195 lt_unset=unset
5196 else
5197 lt_unset=false
5204 # test EBCDIC or ASCII
5205 case `echo X|tr X '\101'` in
5206 A) # ASCII based system
5207 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5208 lt_SP2NL='tr \040 \012'
5209 lt_NL2SP='tr \015\012 \040\040'
5211 *) # EBCDIC based system
5212 lt_SP2NL='tr \100 \n'
5213 lt_NL2SP='tr \r\n \100\100'
5215 esac
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5226 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5227 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5228 $as_echo_n "(cached) " >&6
5229 else
5230 lt_cv_ld_reload_flag='-r'
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5233 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5234 reload_flag=$lt_cv_ld_reload_flag
5235 case $reload_flag in
5236 "" | " "*) ;;
5237 *) reload_flag=" $reload_flag" ;;
5238 esac
5239 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5240 case $host_os in
5241 darwin*)
5242 if test "$GCC" = yes; then
5243 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5244 else
5245 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5248 esac
5258 if test -n "$ac_tool_prefix"; then
5259 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5260 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5262 $as_echo_n "checking for $ac_word... " >&6; }
5263 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5264 $as_echo_n "(cached) " >&6
5265 else
5266 if test -n "$OBJDUMP"; then
5267 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5268 else
5269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 for as_dir in $PATH
5272 IFS=$as_save_IFS
5273 test -z "$as_dir" && as_dir=.
5274 for ac_exec_ext in '' $ac_executable_extensions; do
5275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5276 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5278 break 2
5280 done
5281 done
5282 IFS=$as_save_IFS
5286 OBJDUMP=$ac_cv_prog_OBJDUMP
5287 if test -n "$OBJDUMP"; then
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5289 $as_echo "$OBJDUMP" >&6; }
5290 else
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5292 $as_echo "no" >&6; }
5297 if test -z "$ac_cv_prog_OBJDUMP"; then
5298 ac_ct_OBJDUMP=$OBJDUMP
5299 # Extract the first word of "objdump", so it can be a program name with args.
5300 set dummy objdump; ac_word=$2
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5302 $as_echo_n "checking for $ac_word... " >&6; }
5303 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5304 $as_echo_n "(cached) " >&6
5305 else
5306 if test -n "$ac_ct_OBJDUMP"; then
5307 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5308 else
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 for as_dir in $PATH
5312 IFS=$as_save_IFS
5313 test -z "$as_dir" && as_dir=.
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5316 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5318 break 2
5320 done
5321 done
5322 IFS=$as_save_IFS
5326 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5327 if test -n "$ac_ct_OBJDUMP"; then
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5329 $as_echo "$ac_ct_OBJDUMP" >&6; }
5330 else
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332 $as_echo "no" >&6; }
5335 if test "x$ac_ct_OBJDUMP" = x; then
5336 OBJDUMP="false"
5337 else
5338 case $cross_compiling:$ac_tool_warned in
5339 yes:)
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5342 ac_tool_warned=yes ;;
5343 esac
5344 OBJDUMP=$ac_ct_OBJDUMP
5346 else
5347 OBJDUMP="$ac_cv_prog_OBJDUMP"
5350 test -z "$OBJDUMP" && OBJDUMP=objdump
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5361 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5362 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5363 $as_echo_n "(cached) " >&6
5364 else
5365 lt_cv_file_magic_cmd='$MAGIC_CMD'
5366 lt_cv_file_magic_test_file=
5367 lt_cv_deplibs_check_method='unknown'
5368 # Need to set the preceding variable on all platforms that support
5369 # interlibrary dependencies.
5370 # 'none' -- dependencies not supported.
5371 # `unknown' -- same as none, but documents that we really don't know.
5372 # 'pass_all' -- all dependencies passed with no checks.
5373 # 'test_compile' -- check by making test program.
5374 # 'file_magic [[regex]]' -- check by looking for files in library path
5375 # which responds to the $file_magic_cmd with a given extended regex.
5376 # If you have `file' or equivalent on your system and you're not sure
5377 # whether `pass_all' will *always* work, you probably want this one.
5379 case $host_os in
5380 aix[4-9]*)
5381 lt_cv_deplibs_check_method=pass_all
5384 beos*)
5385 lt_cv_deplibs_check_method=pass_all
5388 bsdi[45]*)
5389 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5390 lt_cv_file_magic_cmd='/usr/bin/file -L'
5391 lt_cv_file_magic_test_file=/shlib/libc.so
5394 cygwin*)
5395 # func_win32_libid is a shell function defined in ltmain.sh
5396 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5397 lt_cv_file_magic_cmd='func_win32_libid'
5400 mingw* | pw32*)
5401 # Base MSYS/MinGW do not provide the 'file' command needed by
5402 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5403 # unless we find 'file', for example because we are cross-compiling.
5404 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5405 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5406 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5407 lt_cv_file_magic_cmd='func_win32_libid'
5408 else
5409 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5410 lt_cv_file_magic_cmd='$OBJDUMP -f'
5414 cegcc*)
5415 # use the weaker test based on 'objdump'. See mingw*.
5416 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5417 lt_cv_file_magic_cmd='$OBJDUMP -f'
5420 darwin* | rhapsody*)
5421 lt_cv_deplibs_check_method=pass_all
5424 freebsd* | dragonfly*)
5425 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5426 case $host_cpu in
5427 i*86 )
5428 # Not sure whether the presence of OpenBSD here was a mistake.
5429 # Let's accept both of them until this is cleared up.
5430 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5431 lt_cv_file_magic_cmd=/usr/bin/file
5432 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5434 esac
5435 else
5436 lt_cv_deplibs_check_method=pass_all
5440 gnu*)
5441 lt_cv_deplibs_check_method=pass_all
5444 haiku*)
5445 lt_cv_deplibs_check_method=pass_all
5448 hpux10.20* | hpux11*)
5449 lt_cv_file_magic_cmd=/usr/bin/file
5450 case $host_cpu in
5451 ia64*)
5452 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5453 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5455 hppa*64*)
5456 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]'
5457 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5460 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5461 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5463 esac
5466 interix[3-9]*)
5467 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5468 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5471 irix5* | irix6* | nonstopux*)
5472 case $LD in
5473 *-32|*"-32 ") libmagic=32-bit;;
5474 *-n32|*"-n32 ") libmagic=N32;;
5475 *-64|*"-64 ") libmagic=64-bit;;
5476 *) libmagic=never-match;;
5477 esac
5478 lt_cv_deplibs_check_method=pass_all
5481 # This must be Linux ELF.
5482 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5483 lt_cv_deplibs_check_method=pass_all
5486 netbsd*)
5487 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5488 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5489 else
5490 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5494 newos6*)
5495 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5496 lt_cv_file_magic_cmd=/usr/bin/file
5497 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5500 *nto* | *qnx*)
5501 lt_cv_deplibs_check_method=pass_all
5504 openbsd*)
5505 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5506 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5507 else
5508 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5512 osf3* | osf4* | osf5*)
5513 lt_cv_deplibs_check_method=pass_all
5516 rdos*)
5517 lt_cv_deplibs_check_method=pass_all
5520 solaris*)
5521 lt_cv_deplibs_check_method=pass_all
5524 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5525 lt_cv_deplibs_check_method=pass_all
5528 sysv4 | sysv4.3*)
5529 case $host_vendor in
5530 motorola)
5531 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]'
5532 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5534 ncr)
5535 lt_cv_deplibs_check_method=pass_all
5537 sequent)
5538 lt_cv_file_magic_cmd='/bin/file'
5539 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5541 sni)
5542 lt_cv_file_magic_cmd='/bin/file'
5543 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5544 lt_cv_file_magic_test_file=/lib/libc.so
5546 siemens)
5547 lt_cv_deplibs_check_method=pass_all
5550 lt_cv_deplibs_check_method=pass_all
5552 esac
5555 tpf*)
5556 lt_cv_deplibs_check_method=pass_all
5558 esac
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5562 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5563 file_magic_cmd=$lt_cv_file_magic_cmd
5564 deplibs_check_method=$lt_cv_deplibs_check_method
5565 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5578 if test -n "$ac_tool_prefix"; then
5579 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5580 set dummy ${ac_tool_prefix}ar; ac_word=$2
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5582 $as_echo_n "checking for $ac_word... " >&6; }
5583 if test "${ac_cv_prog_AR+set}" = set; then :
5584 $as_echo_n "(cached) " >&6
5585 else
5586 if test -n "$AR"; then
5587 ac_cv_prog_AR="$AR" # Let the user override the test.
5588 else
5589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590 for as_dir in $PATH
5592 IFS=$as_save_IFS
5593 test -z "$as_dir" && as_dir=.
5594 for ac_exec_ext in '' $ac_executable_extensions; do
5595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5596 ac_cv_prog_AR="${ac_tool_prefix}ar"
5597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5598 break 2
5600 done
5601 done
5602 IFS=$as_save_IFS
5606 AR=$ac_cv_prog_AR
5607 if test -n "$AR"; then
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5609 $as_echo "$AR" >&6; }
5610 else
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612 $as_echo "no" >&6; }
5617 if test -z "$ac_cv_prog_AR"; then
5618 ac_ct_AR=$AR
5619 # Extract the first word of "ar", so it can be a program name with args.
5620 set dummy ar; ac_word=$2
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5622 $as_echo_n "checking for $ac_word... " >&6; }
5623 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5624 $as_echo_n "(cached) " >&6
5625 else
5626 if test -n "$ac_ct_AR"; then
5627 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5628 else
5629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630 for as_dir in $PATH
5632 IFS=$as_save_IFS
5633 test -z "$as_dir" && as_dir=.
5634 for ac_exec_ext in '' $ac_executable_extensions; do
5635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5636 ac_cv_prog_ac_ct_AR="ar"
5637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5638 break 2
5640 done
5641 done
5642 IFS=$as_save_IFS
5646 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5647 if test -n "$ac_ct_AR"; then
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5649 $as_echo "$ac_ct_AR" >&6; }
5650 else
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652 $as_echo "no" >&6; }
5655 if test "x$ac_ct_AR" = x; then
5656 AR="false"
5657 else
5658 case $cross_compiling:$ac_tool_warned in
5659 yes:)
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5662 ac_tool_warned=yes ;;
5663 esac
5664 AR=$ac_ct_AR
5666 else
5667 AR="$ac_cv_prog_AR"
5670 test -z "$AR" && AR=ar
5671 test -z "$AR_FLAGS" && AR_FLAGS=cru
5683 if test -n "$ac_tool_prefix"; then
5684 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5685 set dummy ${ac_tool_prefix}strip; ac_word=$2
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5687 $as_echo_n "checking for $ac_word... " >&6; }
5688 if test "${ac_cv_prog_STRIP+set}" = set; then :
5689 $as_echo_n "(cached) " >&6
5690 else
5691 if test -n "$STRIP"; then
5692 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5693 else
5694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695 for as_dir in $PATH
5697 IFS=$as_save_IFS
5698 test -z "$as_dir" && as_dir=.
5699 for ac_exec_ext in '' $ac_executable_extensions; do
5700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5701 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5703 break 2
5705 done
5706 done
5707 IFS=$as_save_IFS
5711 STRIP=$ac_cv_prog_STRIP
5712 if test -n "$STRIP"; then
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5714 $as_echo "$STRIP" >&6; }
5715 else
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717 $as_echo "no" >&6; }
5722 if test -z "$ac_cv_prog_STRIP"; then
5723 ac_ct_STRIP=$STRIP
5724 # Extract the first word of "strip", so it can be a program name with args.
5725 set dummy strip; ac_word=$2
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727 $as_echo_n "checking for $ac_word... " >&6; }
5728 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5729 $as_echo_n "(cached) " >&6
5730 else
5731 if test -n "$ac_ct_STRIP"; then
5732 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5733 else
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH
5737 IFS=$as_save_IFS
5738 test -z "$as_dir" && as_dir=.
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5741 ac_cv_prog_ac_ct_STRIP="strip"
5742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5743 break 2
5745 done
5746 done
5747 IFS=$as_save_IFS
5751 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5752 if test -n "$ac_ct_STRIP"; then
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5754 $as_echo "$ac_ct_STRIP" >&6; }
5755 else
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }
5760 if test "x$ac_ct_STRIP" = x; then
5761 STRIP=":"
5762 else
5763 case $cross_compiling:$ac_tool_warned in
5764 yes:)
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5767 ac_tool_warned=yes ;;
5768 esac
5769 STRIP=$ac_ct_STRIP
5771 else
5772 STRIP="$ac_cv_prog_STRIP"
5775 test -z "$STRIP" && STRIP=:
5782 if test -n "$ac_tool_prefix"; then
5783 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5784 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5786 $as_echo_n "checking for $ac_word... " >&6; }
5787 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5788 $as_echo_n "(cached) " >&6
5789 else
5790 if test -n "$RANLIB"; then
5791 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5792 else
5793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794 for as_dir in $PATH
5796 IFS=$as_save_IFS
5797 test -z "$as_dir" && as_dir=.
5798 for ac_exec_ext in '' $ac_executable_extensions; do
5799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5800 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5802 break 2
5804 done
5805 done
5806 IFS=$as_save_IFS
5810 RANLIB=$ac_cv_prog_RANLIB
5811 if test -n "$RANLIB"; then
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5813 $as_echo "$RANLIB" >&6; }
5814 else
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5816 $as_echo "no" >&6; }
5821 if test -z "$ac_cv_prog_RANLIB"; then
5822 ac_ct_RANLIB=$RANLIB
5823 # Extract the first word of "ranlib", so it can be a program name with args.
5824 set dummy ranlib; ac_word=$2
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5826 $as_echo_n "checking for $ac_word... " >&6; }
5827 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5828 $as_echo_n "(cached) " >&6
5829 else
5830 if test -n "$ac_ct_RANLIB"; then
5831 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5832 else
5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834 for as_dir in $PATH
5836 IFS=$as_save_IFS
5837 test -z "$as_dir" && as_dir=.
5838 for ac_exec_ext in '' $ac_executable_extensions; do
5839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5840 ac_cv_prog_ac_ct_RANLIB="ranlib"
5841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5842 break 2
5844 done
5845 done
5846 IFS=$as_save_IFS
5850 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5851 if test -n "$ac_ct_RANLIB"; then
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5853 $as_echo "$ac_ct_RANLIB" >&6; }
5854 else
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5856 $as_echo "no" >&6; }
5859 if test "x$ac_ct_RANLIB" = x; then
5860 RANLIB=":"
5861 else
5862 case $cross_compiling:$ac_tool_warned in
5863 yes:)
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5866 ac_tool_warned=yes ;;
5867 esac
5868 RANLIB=$ac_ct_RANLIB
5870 else
5871 RANLIB="$ac_cv_prog_RANLIB"
5874 test -z "$RANLIB" && RANLIB=:
5881 # Determine commands to create old-style static archives.
5882 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5883 old_postinstall_cmds='chmod 644 $oldlib'
5884 old_postuninstall_cmds=
5886 if test -n "$RANLIB"; then
5887 case $host_os in
5888 openbsd*)
5889 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5892 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5894 esac
5895 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5898 case $host_os in
5899 darwin*)
5900 lock_old_archive_extraction=yes ;;
5902 lock_old_archive_extraction=no ;;
5903 esac
5943 # If no C compiler was specified, use CC.
5944 LTCC=${LTCC-"$CC"}
5946 # If no C compiler flags were specified, use CFLAGS.
5947 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5949 # Allow CC to be a program name with arguments.
5950 compiler=$CC
5953 # Check for command to grab the raw symbol name followed by C symbol from nm.
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5955 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5956 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5957 $as_echo_n "(cached) " >&6
5958 else
5960 # These are sane defaults that work on at least a few old systems.
5961 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5963 # Character class describing NM global symbol codes.
5964 symcode='[BCDEGRST]'
5966 # Regexp to match symbols that can be accessed directly from C.
5967 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5969 # Define system-specific variables.
5970 case $host_os in
5971 aix*)
5972 symcode='[BCDT]'
5974 cygwin* | mingw* | pw32* | cegcc*)
5975 symcode='[ABCDGISTW]'
5977 hpux*)
5978 if test "$host_cpu" = ia64; then
5979 symcode='[ABCDEGRST]'
5982 irix* | nonstopux*)
5983 symcode='[BCDEGRST]'
5985 osf*)
5986 symcode='[BCDEGQRST]'
5988 solaris*)
5989 symcode='[BDRT]'
5991 sco3.2v5*)
5992 symcode='[DT]'
5994 sysv4.2uw2*)
5995 symcode='[DT]'
5997 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5998 symcode='[ABDT]'
6000 sysv4)
6001 symcode='[DFNSTU]'
6003 esac
6005 # If we're using GNU nm, then use its standard symbol codes.
6006 case `$NM -V 2>&1` in
6007 *GNU* | *'with BFD'*)
6008 symcode='[ABCDGIRSTW]' ;;
6009 esac
6011 # Transform an extracted symbol line into a proper C declaration.
6012 # Some systems (esp. on ia64) link data and code symbols differently,
6013 # so use this general approach.
6014 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6016 # Transform an extracted symbol line into symbol name and symbol address
6017 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6018 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'"
6020 # Handle CRLF in mingw tool chain
6021 opt_cr=
6022 case $build_os in
6023 mingw*)
6024 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6026 esac
6028 # Try without a prefix underscore, then with it.
6029 for ac_symprfx in "" "_"; do
6031 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6032 symxfrm="\\1 $ac_symprfx\\2 \\2"
6034 # Write the raw and C identifiers.
6035 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6036 # Fake it for dumpbin and say T for any non-static function
6037 # and D for any global variable.
6038 # Also find C++ and __fastcall symbols from MSVC++,
6039 # which start with @ or ?.
6040 lt_cv_sys_global_symbol_pipe="$AWK '"\
6041 " {last_section=section; section=\$ 3};"\
6042 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6043 " \$ 0!~/External *\|/{next};"\
6044 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6045 " {if(hide[section]) next};"\
6046 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6047 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6048 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6049 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6050 " ' prfx=^$ac_symprfx"
6051 else
6052 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6055 # Check to see that the pipe works correctly.
6056 pipe_works=no
6058 rm -f conftest*
6059 cat > conftest.$ac_ext <<_LT_EOF
6060 #ifdef __cplusplus
6061 extern "C" {
6062 #endif
6063 char nm_test_var;
6064 void nm_test_func(void);
6065 void nm_test_func(void){}
6066 #ifdef __cplusplus
6068 #endif
6069 int main(){nm_test_var='a';nm_test_func();return(0);}
6070 _LT_EOF
6072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6073 (eval $ac_compile) 2>&5
6074 ac_status=$?
6075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6076 test $ac_status = 0; }; then
6077 # Now try to grab the symbols.
6078 nlist=conftest.nm
6079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6080 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6081 ac_status=$?
6082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6083 test $ac_status = 0; } && test -s "$nlist"; then
6084 # Try sorting and uniquifying the output.
6085 if sort "$nlist" | uniq > "$nlist"T; then
6086 mv -f "$nlist"T "$nlist"
6087 else
6088 rm -f "$nlist"T
6091 # Make sure that we snagged all the symbols we need.
6092 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6093 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6094 cat <<_LT_EOF > conftest.$ac_ext
6095 #ifdef __cplusplus
6096 extern "C" {
6097 #endif
6099 _LT_EOF
6100 # Now generate the symbol file.
6101 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6103 cat <<_LT_EOF >> conftest.$ac_ext
6105 /* The mapping between symbol names and symbols. */
6106 const struct {
6107 const char *name;
6108 void *address;
6110 lt__PROGRAM__LTX_preloaded_symbols[] =
6112 { "@PROGRAM@", (void *) 0 },
6113 _LT_EOF
6114 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6115 cat <<\_LT_EOF >> conftest.$ac_ext
6116 {0, (void *) 0}
6119 /* This works around a problem in FreeBSD linker */
6120 #ifdef FREEBSD_WORKAROUND
6121 static const void *lt_preloaded_setup() {
6122 return lt__PROGRAM__LTX_preloaded_symbols;
6124 #endif
6126 #ifdef __cplusplus
6128 #endif
6129 _LT_EOF
6130 # Now try linking the two files.
6131 mv conftest.$ac_objext conftstm.$ac_objext
6132 lt_save_LIBS="$LIBS"
6133 lt_save_CFLAGS="$CFLAGS"
6134 LIBS="conftstm.$ac_objext"
6135 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6137 (eval $ac_link) 2>&5
6138 ac_status=$?
6139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6140 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6141 pipe_works=yes
6143 LIBS="$lt_save_LIBS"
6144 CFLAGS="$lt_save_CFLAGS"
6145 else
6146 echo "cannot find nm_test_func in $nlist" >&5
6148 else
6149 echo "cannot find nm_test_var in $nlist" >&5
6151 else
6152 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6154 else
6155 echo "$progname: failed program was:" >&5
6156 cat conftest.$ac_ext >&5
6158 rm -rf conftest* conftst*
6160 # Do not use the global_symbol_pipe unless it works.
6161 if test "$pipe_works" = yes; then
6162 break
6163 else
6164 lt_cv_sys_global_symbol_pipe=
6166 done
6170 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6171 lt_cv_sys_global_symbol_to_cdecl=
6173 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6175 $as_echo "failed" >&6; }
6176 else
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6178 $as_echo "ok" >&6; }
6203 # Check whether --enable-libtool-lock was given.
6204 if test "${enable_libtool_lock+set}" = set; then :
6205 enableval=$enable_libtool_lock;
6208 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6210 # Some flags need to be propagated to the compiler or linker for good
6211 # libtool support.
6212 case $host in
6213 ia64-*-hpux*)
6214 # Find out which ABI we are using.
6215 echo 'int i;' > conftest.$ac_ext
6216 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6217 (eval $ac_compile) 2>&5
6218 ac_status=$?
6219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6220 test $ac_status = 0; }; then
6221 case `/usr/bin/file conftest.$ac_objext` in
6222 *ELF-32*)
6223 HPUX_IA64_MODE="32"
6225 *ELF-64*)
6226 HPUX_IA64_MODE="64"
6228 esac
6230 rm -rf conftest*
6232 *-*-irix6*)
6233 # Find out which ABI we are using.
6234 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6236 (eval $ac_compile) 2>&5
6237 ac_status=$?
6238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6239 test $ac_status = 0; }; then
6240 if test "$lt_cv_prog_gnu_ld" = yes; then
6241 case `/usr/bin/file conftest.$ac_objext` in
6242 *32-bit*)
6243 LD="${LD-ld} -melf32bsmip"
6245 *N32*)
6246 LD="${LD-ld} -melf32bmipn32"
6248 *64-bit*)
6249 LD="${LD-ld} -melf64bmip"
6251 esac
6252 else
6253 case `/usr/bin/file conftest.$ac_objext` in
6254 *32-bit*)
6255 LD="${LD-ld} -32"
6257 *N32*)
6258 LD="${LD-ld} -n32"
6260 *64-bit*)
6261 LD="${LD-ld} -64"
6263 esac
6266 rm -rf conftest*
6269 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6270 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6271 # Find out which ABI we are using.
6272 echo 'int i;' > conftest.$ac_ext
6273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6274 (eval $ac_compile) 2>&5
6275 ac_status=$?
6276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6277 test $ac_status = 0; }; then
6278 case `/usr/bin/file conftest.o` in
6279 *32-bit*)
6280 case $host in
6281 x86_64-*kfreebsd*-gnu)
6282 LD="${LD-ld} -m elf_i386_fbsd"
6284 x86_64-*linux*)
6285 case `/usr/bin/file conftest.o` in
6286 *x86-64*)
6287 LD="${LD-ld} -m elf32_x86_64"
6290 LD="${LD-ld} -m elf_i386"
6292 esac
6294 ppc64-*linux*|powerpc64-*linux*)
6295 LD="${LD-ld} -m elf32ppclinux"
6297 s390x-*linux*)
6298 LD="${LD-ld} -m elf_s390"
6300 sparc64-*linux*)
6301 LD="${LD-ld} -m elf32_sparc"
6303 esac
6305 *64-bit*)
6306 case $host in
6307 x86_64-*kfreebsd*-gnu)
6308 LD="${LD-ld} -m elf_x86_64_fbsd"
6310 x86_64-*linux*)
6311 LD="${LD-ld} -m elf_x86_64"
6313 ppc*-*linux*|powerpc*-*linux*)
6314 LD="${LD-ld} -m elf64ppc"
6316 s390*-*linux*|s390*-*tpf*)
6317 LD="${LD-ld} -m elf64_s390"
6319 sparc*-*linux*)
6320 LD="${LD-ld} -m elf64_sparc"
6322 esac
6324 esac
6326 rm -rf conftest*
6329 *-*-sco3.2v5*)
6330 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6331 SAVE_CFLAGS="$CFLAGS"
6332 CFLAGS="$CFLAGS -belf"
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6334 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6335 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6336 $as_echo_n "(cached) " >&6
6337 else
6338 ac_ext=c
6339 ac_cpp='$CPP $CPPFLAGS'
6340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345 /* end confdefs.h. */
6348 main ()
6352 return 0;
6354 _ACEOF
6355 if ac_fn_c_try_link "$LINENO"; then :
6356 lt_cv_cc_needs_belf=yes
6357 else
6358 lt_cv_cc_needs_belf=no
6360 rm -f core conftest.err conftest.$ac_objext \
6361 conftest$ac_exeext conftest.$ac_ext
6362 ac_ext=c
6363 ac_cpp='$CPP $CPPFLAGS'
6364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6370 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6371 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6372 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6373 CFLAGS="$SAVE_CFLAGS"
6376 sparc*-*solaris*)
6377 # Find out which ABI we are using.
6378 echo 'int i;' > conftest.$ac_ext
6379 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6380 (eval $ac_compile) 2>&5
6381 ac_status=$?
6382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6383 test $ac_status = 0; }; then
6384 case `/usr/bin/file conftest.o` in
6385 *64-bit*)
6386 case $lt_cv_prog_gnu_ld in
6387 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6389 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6390 LD="${LD-ld} -64"
6393 esac
6395 esac
6397 rm -rf conftest*
6399 esac
6401 need_locks="$enable_libtool_lock"
6404 case $host_os in
6405 rhapsody* | darwin*)
6406 if test -n "$ac_tool_prefix"; then
6407 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6408 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6410 $as_echo_n "checking for $ac_word... " >&6; }
6411 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6412 $as_echo_n "(cached) " >&6
6413 else
6414 if test -n "$DSYMUTIL"; then
6415 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6416 else
6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418 for as_dir in $PATH
6420 IFS=$as_save_IFS
6421 test -z "$as_dir" && as_dir=.
6422 for ac_exec_ext in '' $ac_executable_extensions; do
6423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6424 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6426 break 2
6428 done
6429 done
6430 IFS=$as_save_IFS
6434 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6435 if test -n "$DSYMUTIL"; then
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6437 $as_echo "$DSYMUTIL" >&6; }
6438 else
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6440 $as_echo "no" >&6; }
6445 if test -z "$ac_cv_prog_DSYMUTIL"; then
6446 ac_ct_DSYMUTIL=$DSYMUTIL
6447 # Extract the first word of "dsymutil", so it can be a program name with args.
6448 set dummy dsymutil; ac_word=$2
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6450 $as_echo_n "checking for $ac_word... " >&6; }
6451 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6452 $as_echo_n "(cached) " >&6
6453 else
6454 if test -n "$ac_ct_DSYMUTIL"; then
6455 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6456 else
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 for as_dir in $PATH
6460 IFS=$as_save_IFS
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6464 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 break 2
6468 done
6469 done
6470 IFS=$as_save_IFS
6474 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6475 if test -n "$ac_ct_DSYMUTIL"; then
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6477 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6478 else
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6480 $as_echo "no" >&6; }
6483 if test "x$ac_ct_DSYMUTIL" = x; then
6484 DSYMUTIL=":"
6485 else
6486 case $cross_compiling:$ac_tool_warned in
6487 yes:)
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6490 ac_tool_warned=yes ;;
6491 esac
6492 DSYMUTIL=$ac_ct_DSYMUTIL
6494 else
6495 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6498 if test -n "$ac_tool_prefix"; then
6499 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6500 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502 $as_echo_n "checking for $ac_word... " >&6; }
6503 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6504 $as_echo_n "(cached) " >&6
6505 else
6506 if test -n "$NMEDIT"; then
6507 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6508 else
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510 for as_dir in $PATH
6512 IFS=$as_save_IFS
6513 test -z "$as_dir" && as_dir=.
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6516 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6518 break 2
6520 done
6521 done
6522 IFS=$as_save_IFS
6526 NMEDIT=$ac_cv_prog_NMEDIT
6527 if test -n "$NMEDIT"; then
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6529 $as_echo "$NMEDIT" >&6; }
6530 else
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6537 if test -z "$ac_cv_prog_NMEDIT"; then
6538 ac_ct_NMEDIT=$NMEDIT
6539 # Extract the first word of "nmedit", so it can be a program name with args.
6540 set dummy nmedit; ac_word=$2
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542 $as_echo_n "checking for $ac_word... " >&6; }
6543 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6544 $as_echo_n "(cached) " >&6
6545 else
6546 if test -n "$ac_ct_NMEDIT"; then
6547 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6548 else
6549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550 for as_dir in $PATH
6552 IFS=$as_save_IFS
6553 test -z "$as_dir" && as_dir=.
6554 for ac_exec_ext in '' $ac_executable_extensions; do
6555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6556 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 break 2
6560 done
6561 done
6562 IFS=$as_save_IFS
6566 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6567 if test -n "$ac_ct_NMEDIT"; then
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6569 $as_echo "$ac_ct_NMEDIT" >&6; }
6570 else
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572 $as_echo "no" >&6; }
6575 if test "x$ac_ct_NMEDIT" = x; then
6576 NMEDIT=":"
6577 else
6578 case $cross_compiling:$ac_tool_warned in
6579 yes:)
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6582 ac_tool_warned=yes ;;
6583 esac
6584 NMEDIT=$ac_ct_NMEDIT
6586 else
6587 NMEDIT="$ac_cv_prog_NMEDIT"
6590 if test -n "$ac_tool_prefix"; then
6591 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6592 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6594 $as_echo_n "checking for $ac_word... " >&6; }
6595 if test "${ac_cv_prog_LIPO+set}" = set; then :
6596 $as_echo_n "(cached) " >&6
6597 else
6598 if test -n "$LIPO"; then
6599 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6600 else
6601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6602 for as_dir in $PATH
6604 IFS=$as_save_IFS
6605 test -z "$as_dir" && as_dir=.
6606 for ac_exec_ext in '' $ac_executable_extensions; do
6607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6608 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6610 break 2
6612 done
6613 done
6614 IFS=$as_save_IFS
6618 LIPO=$ac_cv_prog_LIPO
6619 if test -n "$LIPO"; then
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6621 $as_echo "$LIPO" >&6; }
6622 else
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6624 $as_echo "no" >&6; }
6629 if test -z "$ac_cv_prog_LIPO"; then
6630 ac_ct_LIPO=$LIPO
6631 # Extract the first word of "lipo", so it can be a program name with args.
6632 set dummy lipo; ac_word=$2
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6634 $as_echo_n "checking for $ac_word... " >&6; }
6635 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6636 $as_echo_n "(cached) " >&6
6637 else
6638 if test -n "$ac_ct_LIPO"; then
6639 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6640 else
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 for as_dir in $PATH
6644 IFS=$as_save_IFS
6645 test -z "$as_dir" && as_dir=.
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6648 ac_cv_prog_ac_ct_LIPO="lipo"
6649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 break 2
6652 done
6653 done
6654 IFS=$as_save_IFS
6658 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6659 if test -n "$ac_ct_LIPO"; then
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6661 $as_echo "$ac_ct_LIPO" >&6; }
6662 else
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6664 $as_echo "no" >&6; }
6667 if test "x$ac_ct_LIPO" = x; then
6668 LIPO=":"
6669 else
6670 case $cross_compiling:$ac_tool_warned in
6671 yes:)
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6674 ac_tool_warned=yes ;;
6675 esac
6676 LIPO=$ac_ct_LIPO
6678 else
6679 LIPO="$ac_cv_prog_LIPO"
6682 if test -n "$ac_tool_prefix"; then
6683 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6684 set dummy ${ac_tool_prefix}otool; ac_word=$2
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6686 $as_echo_n "checking for $ac_word... " >&6; }
6687 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6688 $as_echo_n "(cached) " >&6
6689 else
6690 if test -n "$OTOOL"; then
6691 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6692 else
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 for as_dir in $PATH
6696 IFS=$as_save_IFS
6697 test -z "$as_dir" && as_dir=.
6698 for ac_exec_ext in '' $ac_executable_extensions; do
6699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6700 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6702 break 2
6704 done
6705 done
6706 IFS=$as_save_IFS
6710 OTOOL=$ac_cv_prog_OTOOL
6711 if test -n "$OTOOL"; then
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6713 $as_echo "$OTOOL" >&6; }
6714 else
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6716 $as_echo "no" >&6; }
6721 if test -z "$ac_cv_prog_OTOOL"; then
6722 ac_ct_OTOOL=$OTOOL
6723 # Extract the first word of "otool", so it can be a program name with args.
6724 set dummy otool; ac_word=$2
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6726 $as_echo_n "checking for $ac_word... " >&6; }
6727 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6728 $as_echo_n "(cached) " >&6
6729 else
6730 if test -n "$ac_ct_OTOOL"; then
6731 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6732 else
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 for as_dir in $PATH
6736 IFS=$as_save_IFS
6737 test -z "$as_dir" && as_dir=.
6738 for ac_exec_ext in '' $ac_executable_extensions; do
6739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740 ac_cv_prog_ac_ct_OTOOL="otool"
6741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 break 2
6744 done
6745 done
6746 IFS=$as_save_IFS
6750 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6751 if test -n "$ac_ct_OTOOL"; then
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6753 $as_echo "$ac_ct_OTOOL" >&6; }
6754 else
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756 $as_echo "no" >&6; }
6759 if test "x$ac_ct_OTOOL" = x; then
6760 OTOOL=":"
6761 else
6762 case $cross_compiling:$ac_tool_warned in
6763 yes:)
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6766 ac_tool_warned=yes ;;
6767 esac
6768 OTOOL=$ac_ct_OTOOL
6770 else
6771 OTOOL="$ac_cv_prog_OTOOL"
6774 if test -n "$ac_tool_prefix"; then
6775 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6776 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6778 $as_echo_n "checking for $ac_word... " >&6; }
6779 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6780 $as_echo_n "(cached) " >&6
6781 else
6782 if test -n "$OTOOL64"; then
6783 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6784 else
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786 for as_dir in $PATH
6788 IFS=$as_save_IFS
6789 test -z "$as_dir" && as_dir=.
6790 for ac_exec_ext in '' $ac_executable_extensions; do
6791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6792 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6794 break 2
6796 done
6797 done
6798 IFS=$as_save_IFS
6802 OTOOL64=$ac_cv_prog_OTOOL64
6803 if test -n "$OTOOL64"; then
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6805 $as_echo "$OTOOL64" >&6; }
6806 else
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6808 $as_echo "no" >&6; }
6813 if test -z "$ac_cv_prog_OTOOL64"; then
6814 ac_ct_OTOOL64=$OTOOL64
6815 # Extract the first word of "otool64", so it can be a program name with args.
6816 set dummy otool64; ac_word=$2
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6818 $as_echo_n "checking for $ac_word... " >&6; }
6819 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6820 $as_echo_n "(cached) " >&6
6821 else
6822 if test -n "$ac_ct_OTOOL64"; then
6823 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6824 else
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 for as_dir in $PATH
6828 IFS=$as_save_IFS
6829 test -z "$as_dir" && as_dir=.
6830 for ac_exec_ext in '' $ac_executable_extensions; do
6831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6832 ac_cv_prog_ac_ct_OTOOL64="otool64"
6833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6834 break 2
6836 done
6837 done
6838 IFS=$as_save_IFS
6842 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6843 if test -n "$ac_ct_OTOOL64"; then
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6845 $as_echo "$ac_ct_OTOOL64" >&6; }
6846 else
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6848 $as_echo "no" >&6; }
6851 if test "x$ac_ct_OTOOL64" = x; then
6852 OTOOL64=":"
6853 else
6854 case $cross_compiling:$ac_tool_warned in
6855 yes:)
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6858 ac_tool_warned=yes ;;
6859 esac
6860 OTOOL64=$ac_ct_OTOOL64
6862 else
6863 OTOOL64="$ac_cv_prog_OTOOL64"
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6893 $as_echo_n "checking for -single_module linker flag... " >&6; }
6894 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6895 $as_echo_n "(cached) " >&6
6896 else
6897 lt_cv_apple_cc_single_mod=no
6898 if test -z "${LT_MULTI_MODULE}"; then
6899 # By default we will add the -single_module flag. You can override
6900 # by either setting the environment variable LT_MULTI_MODULE
6901 # non-empty at configure time, or by adding -multi_module to the
6902 # link flags.
6903 rm -rf libconftest.dylib*
6904 echo "int foo(void){return 1;}" > conftest.c
6905 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6906 -dynamiclib -Wl,-single_module conftest.c" >&5
6907 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6908 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6909 _lt_result=$?
6910 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6911 lt_cv_apple_cc_single_mod=yes
6912 else
6913 cat conftest.err >&5
6915 rm -rf libconftest.dylib*
6916 rm -f conftest.*
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6920 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6922 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6923 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6924 $as_echo_n "(cached) " >&6
6925 else
6926 lt_cv_ld_exported_symbols_list=no
6927 save_LDFLAGS=$LDFLAGS
6928 echo "_main" > conftest.sym
6929 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h. */
6934 main ()
6938 return 0;
6940 _ACEOF
6941 if ac_fn_c_try_link "$LINENO"; then :
6942 lt_cv_ld_exported_symbols_list=yes
6943 else
6944 lt_cv_ld_exported_symbols_list=no
6946 rm -f core conftest.err conftest.$ac_objext \
6947 conftest$ac_exeext conftest.$ac_ext
6948 LDFLAGS="$save_LDFLAGS"
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6952 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6954 $as_echo_n "checking for -force_load linker flag... " >&6; }
6955 if test "${lt_cv_ld_force_load+set}" = set; then :
6956 $as_echo_n "(cached) " >&6
6957 else
6958 lt_cv_ld_force_load=no
6959 cat > conftest.c << _LT_EOF
6960 int forced_loaded() { return 2;}
6961 _LT_EOF
6962 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6963 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6964 echo "$AR cru libconftest.a conftest.o" >&5
6965 $AR cru libconftest.a conftest.o 2>&5
6966 cat > conftest.c << _LT_EOF
6967 int main() { return 0;}
6968 _LT_EOF
6969 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6970 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6971 _lt_result=$?
6972 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6973 lt_cv_ld_force_load=yes
6974 else
6975 cat conftest.err >&5
6977 rm -f conftest.err libconftest.a conftest conftest.c
6978 rm -rf conftest.dSYM
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6982 $as_echo "$lt_cv_ld_force_load" >&6; }
6983 case $host_os in
6984 rhapsody* | darwin1.[012])
6985 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6986 darwin1.*)
6987 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6988 darwin*) # darwin 5.x on
6989 # if running on 10.5 or later, the deployment target defaults
6990 # to the OS version, if on x86, and 10.4, the deployment
6991 # target defaults to 10.4. Don't you love it?
6992 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6993 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6994 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6995 10.[012]*)
6996 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6997 10.*)
6998 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6999 esac
7001 esac
7002 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7003 _lt_dar_single_mod='$single_module'
7005 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7006 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7007 else
7008 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7010 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7011 _lt_dsymutil='~$DSYMUTIL $lib || :'
7012 else
7013 _lt_dsymutil=
7016 esac
7018 ac_ext=c
7019 ac_cpp='$CPP $CPPFLAGS'
7020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7024 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7025 # On Suns, sometimes $CPP names a directory.
7026 if test -n "$CPP" && test -d "$CPP"; then
7027 CPP=
7029 if test -z "$CPP"; then
7030 if test "${ac_cv_prog_CPP+set}" = set; then :
7031 $as_echo_n "(cached) " >&6
7032 else
7033 # Double quotes because CPP needs to be expanded
7034 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7036 ac_preproc_ok=false
7037 for ac_c_preproc_warn_flag in '' yes
7039 # Use a header file that comes with gcc, so configuring glibc
7040 # with a fresh cross-compiler works.
7041 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7042 # <limits.h> exists even on freestanding compilers.
7043 # On the NeXT, cc -E runs the code through the compiler's parser,
7044 # not just through cpp. "Syntax error" is here to catch this case.
7045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7046 /* end confdefs.h. */
7047 #ifdef __STDC__
7048 # include <limits.h>
7049 #else
7050 # include <assert.h>
7051 #endif
7052 Syntax error
7053 _ACEOF
7054 if ac_fn_c_try_cpp "$LINENO"; then :
7056 else
7057 # Broken: fails on valid input.
7058 continue
7060 rm -f conftest.err conftest.$ac_ext
7062 # OK, works on sane cases. Now check whether nonexistent headers
7063 # can be detected and how.
7064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7065 /* end confdefs.h. */
7066 #include <ac_nonexistent.h>
7067 _ACEOF
7068 if ac_fn_c_try_cpp "$LINENO"; then :
7069 # Broken: success on invalid input.
7070 continue
7071 else
7072 # Passes both tests.
7073 ac_preproc_ok=:
7074 break
7076 rm -f conftest.err conftest.$ac_ext
7078 done
7079 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7080 rm -f conftest.err conftest.$ac_ext
7081 if $ac_preproc_ok; then :
7082 break
7085 done
7086 ac_cv_prog_CPP=$CPP
7089 CPP=$ac_cv_prog_CPP
7090 else
7091 ac_cv_prog_CPP=$CPP
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7094 $as_echo "$CPP" >&6; }
7095 ac_preproc_ok=false
7096 for ac_c_preproc_warn_flag in '' yes
7098 # Use a header file that comes with gcc, so configuring glibc
7099 # with a fresh cross-compiler works.
7100 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7101 # <limits.h> exists even on freestanding compilers.
7102 # On the NeXT, cc -E runs the code through the compiler's parser,
7103 # not just through cpp. "Syntax error" is here to catch this case.
7104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7105 /* end confdefs.h. */
7106 #ifdef __STDC__
7107 # include <limits.h>
7108 #else
7109 # include <assert.h>
7110 #endif
7111 Syntax error
7112 _ACEOF
7113 if ac_fn_c_try_cpp "$LINENO"; then :
7115 else
7116 # Broken: fails on valid input.
7117 continue
7119 rm -f conftest.err conftest.$ac_ext
7121 # OK, works on sane cases. Now check whether nonexistent headers
7122 # can be detected and how.
7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124 /* end confdefs.h. */
7125 #include <ac_nonexistent.h>
7126 _ACEOF
7127 if ac_fn_c_try_cpp "$LINENO"; then :
7128 # Broken: success on invalid input.
7129 continue
7130 else
7131 # Passes both tests.
7132 ac_preproc_ok=:
7133 break
7135 rm -f conftest.err conftest.$ac_ext
7137 done
7138 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7139 rm -f conftest.err conftest.$ac_ext
7140 if $ac_preproc_ok; then :
7142 else
7143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7145 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7146 See \`config.log' for more details." "$LINENO" 5; }
7149 ac_ext=c
7150 ac_cpp='$CPP $CPPFLAGS'
7151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7157 $as_echo_n "checking for ANSI C header files... " >&6; }
7158 if test "${ac_cv_header_stdc+set}" = set; then :
7159 $as_echo_n "(cached) " >&6
7160 else
7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162 /* end confdefs.h. */
7163 #include <stdlib.h>
7164 #include <stdarg.h>
7165 #include <string.h>
7166 #include <float.h>
7169 main ()
7173 return 0;
7175 _ACEOF
7176 if ac_fn_c_try_compile "$LINENO"; then :
7177 ac_cv_header_stdc=yes
7178 else
7179 ac_cv_header_stdc=no
7181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7183 if test $ac_cv_header_stdc = yes; then
7184 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186 /* end confdefs.h. */
7187 #include <string.h>
7189 _ACEOF
7190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7191 $EGREP "memchr" >/dev/null 2>&1; then :
7193 else
7194 ac_cv_header_stdc=no
7196 rm -f conftest*
7200 if test $ac_cv_header_stdc = yes; then
7201 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203 /* end confdefs.h. */
7204 #include <stdlib.h>
7206 _ACEOF
7207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7208 $EGREP "free" >/dev/null 2>&1; then :
7210 else
7211 ac_cv_header_stdc=no
7213 rm -f conftest*
7217 if test $ac_cv_header_stdc = yes; then
7218 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7219 if test "$cross_compiling" = yes; then :
7221 else
7222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223 /* end confdefs.h. */
7224 #include <ctype.h>
7225 #include <stdlib.h>
7226 #if ((' ' & 0x0FF) == 0x020)
7227 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7228 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7229 #else
7230 # define ISLOWER(c) \
7231 (('a' <= (c) && (c) <= 'i') \
7232 || ('j' <= (c) && (c) <= 'r') \
7233 || ('s' <= (c) && (c) <= 'z'))
7234 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7235 #endif
7237 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7239 main ()
7241 int i;
7242 for (i = 0; i < 256; i++)
7243 if (XOR (islower (i), ISLOWER (i))
7244 || toupper (i) != TOUPPER (i))
7245 return 2;
7246 return 0;
7248 _ACEOF
7249 if ac_fn_c_try_run "$LINENO"; then :
7251 else
7252 ac_cv_header_stdc=no
7254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7255 conftest.$ac_objext conftest.beam conftest.$ac_ext
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7261 $as_echo "$ac_cv_header_stdc" >&6; }
7262 if test $ac_cv_header_stdc = yes; then
7264 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7268 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7269 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7270 inttypes.h stdint.h unistd.h
7271 do :
7272 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7273 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7275 eval as_val=\$$as_ac_Header
7276 if test "x$as_val" = x""yes; then :
7277 cat >>confdefs.h <<_ACEOF
7278 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7279 _ACEOF
7283 done
7286 for ac_header in dlfcn.h
7287 do :
7288 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7290 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7291 cat >>confdefs.h <<_ACEOF
7292 #define HAVE_DLFCN_H 1
7293 _ACEOF
7297 done
7303 # Set options
7307 enable_dlopen=no
7310 enable_win32_dll=no
7313 # Check whether --enable-shared was given.
7314 if test "${enable_shared+set}" = set; then :
7315 enableval=$enable_shared; p=${PACKAGE-default}
7316 case $enableval in
7317 yes) enable_shared=yes ;;
7318 no) enable_shared=no ;;
7320 enable_shared=no
7321 # Look at the argument we got. We use all the common list separators.
7322 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7323 for pkg in $enableval; do
7324 IFS="$lt_save_ifs"
7325 if test "X$pkg" = "X$p"; then
7326 enable_shared=yes
7328 done
7329 IFS="$lt_save_ifs"
7331 esac
7332 else
7333 enable_shared=yes
7344 # Check whether --enable-static was given.
7345 if test "${enable_static+set}" = set; then :
7346 enableval=$enable_static; p=${PACKAGE-default}
7347 case $enableval in
7348 yes) enable_static=yes ;;
7349 no) enable_static=no ;;
7351 enable_static=no
7352 # Look at the argument we got. We use all the common list separators.
7353 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7354 for pkg in $enableval; do
7355 IFS="$lt_save_ifs"
7356 if test "X$pkg" = "X$p"; then
7357 enable_static=yes
7359 done
7360 IFS="$lt_save_ifs"
7362 esac
7363 else
7364 enable_static=yes
7376 # Check whether --with-pic was given.
7377 if test "${with_pic+set}" = set; then :
7378 withval=$with_pic; pic_mode="$withval"
7379 else
7380 pic_mode=default
7384 test -z "$pic_mode" && pic_mode=default
7392 # Check whether --enable-fast-install was given.
7393 if test "${enable_fast_install+set}" = set; then :
7394 enableval=$enable_fast_install; p=${PACKAGE-default}
7395 case $enableval in
7396 yes) enable_fast_install=yes ;;
7397 no) enable_fast_install=no ;;
7399 enable_fast_install=no
7400 # Look at the argument we got. We use all the common list separators.
7401 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7402 for pkg in $enableval; do
7403 IFS="$lt_save_ifs"
7404 if test "X$pkg" = "X$p"; then
7405 enable_fast_install=yes
7407 done
7408 IFS="$lt_save_ifs"
7410 esac
7411 else
7412 enable_fast_install=yes
7425 # This can be used to rebuild libtool when needed
7426 LIBTOOL_DEPS="$ltmain"
7428 # Always use our own libtool.
7429 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7456 test -z "$LN_S" && LN_S="ln -s"
7471 if test -n "${ZSH_VERSION+set}" ; then
7472 setopt NO_GLOB_SUBST
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7476 $as_echo_n "checking for objdir... " >&6; }
7477 if test "${lt_cv_objdir+set}" = set; then :
7478 $as_echo_n "(cached) " >&6
7479 else
7480 rm -f .libs 2>/dev/null
7481 mkdir .libs 2>/dev/null
7482 if test -d .libs; then
7483 lt_cv_objdir=.libs
7484 else
7485 # MS-DOS does not allow filenames that begin with a dot.
7486 lt_cv_objdir=_libs
7488 rmdir .libs 2>/dev/null
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7491 $as_echo "$lt_cv_objdir" >&6; }
7492 objdir=$lt_cv_objdir
7498 cat >>confdefs.h <<_ACEOF
7499 #define LT_OBJDIR "$lt_cv_objdir/"
7500 _ACEOF
7505 case $host_os in
7506 aix3*)
7507 # AIX sometimes has problems with the GCC collect2 program. For some
7508 # reason, if we set the COLLECT_NAMES environment variable, the problems
7509 # vanish in a puff of smoke.
7510 if test "X${COLLECT_NAMES+set}" != Xset; then
7511 COLLECT_NAMES=
7512 export COLLECT_NAMES
7515 esac
7517 # Global variables:
7518 ofile=libtool
7519 can_build_shared=yes
7521 # All known linkers require a `.a' archive for static linking (except MSVC,
7522 # which needs '.lib').
7523 libext=a
7525 with_gnu_ld="$lt_cv_prog_gnu_ld"
7527 old_CC="$CC"
7528 old_CFLAGS="$CFLAGS"
7530 # Set sane defaults for various variables
7531 test -z "$CC" && CC=cc
7532 test -z "$LTCC" && LTCC=$CC
7533 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7534 test -z "$LD" && LD=ld
7535 test -z "$ac_objext" && ac_objext=o
7537 for cc_temp in $compiler""; do
7538 case $cc_temp in
7539 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7540 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7541 \-*) ;;
7542 *) break;;
7543 esac
7544 done
7545 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7548 # Only perform the check for file, if the check method requires it
7549 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7550 case $deplibs_check_method in
7551 file_magic*)
7552 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7554 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7555 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7556 $as_echo_n "(cached) " >&6
7557 else
7558 case $MAGIC_CMD in
7559 [\\/*] | ?:[\\/]*)
7560 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7563 lt_save_MAGIC_CMD="$MAGIC_CMD"
7564 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7565 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7566 for ac_dir in $ac_dummy; do
7567 IFS="$lt_save_ifs"
7568 test -z "$ac_dir" && ac_dir=.
7569 if test -f $ac_dir/${ac_tool_prefix}file; then
7570 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7571 if test -n "$file_magic_test_file"; then
7572 case $deplibs_check_method in
7573 "file_magic "*)
7574 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7575 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7576 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7577 $EGREP "$file_magic_regex" > /dev/null; then
7579 else
7580 cat <<_LT_EOF 1>&2
7582 *** Warning: the command libtool uses to detect shared libraries,
7583 *** $file_magic_cmd, produces output that libtool cannot recognize.
7584 *** The result is that libtool may fail to recognize shared libraries
7585 *** as such. This will affect the creation of libtool libraries that
7586 *** depend on shared libraries, but programs linked with such libtool
7587 *** libraries will work regardless of this problem. Nevertheless, you
7588 *** may want to report the problem to your system manager and/or to
7589 *** bug-libtool@gnu.org
7591 _LT_EOF
7592 fi ;;
7593 esac
7595 break
7597 done
7598 IFS="$lt_save_ifs"
7599 MAGIC_CMD="$lt_save_MAGIC_CMD"
7601 esac
7604 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7605 if test -n "$MAGIC_CMD"; then
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7607 $as_echo "$MAGIC_CMD" >&6; }
7608 else
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610 $as_echo "no" >&6; }
7617 if test -z "$lt_cv_path_MAGIC_CMD"; then
7618 if test -n "$ac_tool_prefix"; then
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7620 $as_echo_n "checking for file... " >&6; }
7621 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7622 $as_echo_n "(cached) " >&6
7623 else
7624 case $MAGIC_CMD in
7625 [\\/*] | ?:[\\/]*)
7626 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7629 lt_save_MAGIC_CMD="$MAGIC_CMD"
7630 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7631 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7632 for ac_dir in $ac_dummy; do
7633 IFS="$lt_save_ifs"
7634 test -z "$ac_dir" && ac_dir=.
7635 if test -f $ac_dir/file; then
7636 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7637 if test -n "$file_magic_test_file"; then
7638 case $deplibs_check_method in
7639 "file_magic "*)
7640 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7641 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7642 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7643 $EGREP "$file_magic_regex" > /dev/null; then
7645 else
7646 cat <<_LT_EOF 1>&2
7648 *** Warning: the command libtool uses to detect shared libraries,
7649 *** $file_magic_cmd, produces output that libtool cannot recognize.
7650 *** The result is that libtool may fail to recognize shared libraries
7651 *** as such. This will affect the creation of libtool libraries that
7652 *** depend on shared libraries, but programs linked with such libtool
7653 *** libraries will work regardless of this problem. Nevertheless, you
7654 *** may want to report the problem to your system manager and/or to
7655 *** bug-libtool@gnu.org
7657 _LT_EOF
7658 fi ;;
7659 esac
7661 break
7663 done
7664 IFS="$lt_save_ifs"
7665 MAGIC_CMD="$lt_save_MAGIC_CMD"
7667 esac
7670 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7671 if test -n "$MAGIC_CMD"; then
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7673 $as_echo "$MAGIC_CMD" >&6; }
7674 else
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676 $as_echo "no" >&6; }
7680 else
7681 MAGIC_CMD=:
7687 esac
7689 # Use C for the default configuration in the libtool script
7691 lt_save_CC="$CC"
7692 ac_ext=c
7693 ac_cpp='$CPP $CPPFLAGS'
7694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7699 # Source file extension for C test sources.
7700 ac_ext=c
7702 # Object file extension for compiled C test sources.
7703 objext=o
7704 objext=$objext
7706 # Code to be used in simple compile tests
7707 lt_simple_compile_test_code="int some_variable = 0;"
7709 # Code to be used in simple link tests
7710 lt_simple_link_test_code='int main(){return(0);}'
7718 # If no C compiler was specified, use CC.
7719 LTCC=${LTCC-"$CC"}
7721 # If no C compiler flags were specified, use CFLAGS.
7722 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7724 # Allow CC to be a program name with arguments.
7725 compiler=$CC
7727 # Save the default compiler, since it gets overwritten when the other
7728 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7729 compiler_DEFAULT=$CC
7731 # save warnings/boilerplate of simple test code
7732 ac_outfile=conftest.$ac_objext
7733 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7734 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7735 _lt_compiler_boilerplate=`cat conftest.err`
7736 $RM conftest*
7738 ac_outfile=conftest.$ac_objext
7739 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7740 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7741 _lt_linker_boilerplate=`cat conftest.err`
7742 $RM -r conftest*
7745 ## CAVEAT EMPTOR:
7746 ## There is no encapsulation within the following macros, do not change
7747 ## the running order or otherwise move them around unless you know exactly
7748 ## what you are doing...
7749 if test -n "$compiler"; then
7751 lt_prog_compiler_no_builtin_flag=
7753 if test "$GCC" = yes; then
7754 case $cc_basename in
7755 nvcc*)
7756 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7758 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7759 esac
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7762 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7763 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7764 $as_echo_n "(cached) " >&6
7765 else
7766 lt_cv_prog_compiler_rtti_exceptions=no
7767 ac_outfile=conftest.$ac_objext
7768 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7769 lt_compiler_flag="-fno-rtti -fno-exceptions"
7770 # Insert the option either (1) after the last *FLAGS variable, or
7771 # (2) before a word containing "conftest.", or (3) at the end.
7772 # Note that $ac_compile itself does not contain backslashes and begins
7773 # with a dollar sign (not a hyphen), so the echo should work correctly.
7774 # The option is referenced via a variable to avoid confusing sed.
7775 lt_compile=`echo "$ac_compile" | $SED \
7776 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7777 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7778 -e 's:$: $lt_compiler_flag:'`
7779 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7780 (eval "$lt_compile" 2>conftest.err)
7781 ac_status=$?
7782 cat conftest.err >&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 if (exit $ac_status) && test -s "$ac_outfile"; then
7785 # The compiler can only warn and ignore the option if not recognized
7786 # So say no if there are warnings other than the usual output.
7787 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7788 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7789 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7790 lt_cv_prog_compiler_rtti_exceptions=yes
7793 $RM conftest*
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7797 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7799 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7800 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7801 else
7812 lt_prog_compiler_wl=
7813 lt_prog_compiler_pic=
7814 lt_prog_compiler_static=
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7817 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7819 if test "$GCC" = yes; then
7820 lt_prog_compiler_wl='-Wl,'
7821 lt_prog_compiler_static='-static'
7823 case $host_os in
7824 aix*)
7825 # All AIX code is PIC.
7826 if test "$host_cpu" = ia64; then
7827 # AIX 5 now supports IA64 processor
7828 lt_prog_compiler_static='-Bstatic'
7830 lt_prog_compiler_pic='-fPIC'
7833 amigaos*)
7834 case $host_cpu in
7835 powerpc)
7836 # see comment about AmigaOS4 .so support
7837 lt_prog_compiler_pic='-fPIC'
7839 m68k)
7840 # FIXME: we need at least 68020 code to build shared libraries, but
7841 # adding the `-m68020' flag to GCC prevents building anything better,
7842 # like `-m68040'.
7843 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7845 esac
7848 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7849 # PIC is the default for these OSes.
7852 mingw* | cygwin* | pw32* | os2* | cegcc*)
7853 # This hack is so that the source file can tell whether it is being
7854 # built for inclusion in a dll (and should export symbols for example).
7855 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7856 # (--disable-auto-import) libraries
7857 lt_prog_compiler_pic='-DDLL_EXPORT'
7860 darwin* | rhapsody*)
7861 # PIC is the default on this platform
7862 # Common symbols not allowed in MH_DYLIB files
7863 lt_prog_compiler_pic='-fno-common'
7866 haiku*)
7867 # PIC is the default for Haiku.
7868 # The "-static" flag exists, but is broken.
7869 lt_prog_compiler_static=
7872 hpux*)
7873 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7874 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7875 # sets the default TLS model and affects inlining.
7876 case $host_cpu in
7877 hppa*64*)
7878 # +Z the default
7881 lt_prog_compiler_pic='-fPIC'
7883 esac
7886 interix[3-9]*)
7887 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7888 # Instead, we relocate shared libraries at runtime.
7891 msdosdjgpp*)
7892 # Just because we use GCC doesn't mean we suddenly get shared libraries
7893 # on systems that don't support them.
7894 lt_prog_compiler_can_build_shared=no
7895 enable_shared=no
7898 *nto* | *qnx*)
7899 # QNX uses GNU C++, but need to define -shared option too, otherwise
7900 # it will coredump.
7901 lt_prog_compiler_pic='-fPIC -shared'
7904 sysv4*MP*)
7905 if test -d /usr/nec; then
7906 lt_prog_compiler_pic=-Kconform_pic
7911 lt_prog_compiler_pic='-fPIC'
7913 esac
7915 case $cc_basename in
7916 nvcc*) # Cuda Compiler Driver 2.2
7917 lt_prog_compiler_wl='-Xlinker '
7918 lt_prog_compiler_pic='-Xcompiler -fPIC'
7920 esac
7921 else
7922 # PORTME Check for flag to pass linker flags through the system compiler.
7923 case $host_os in
7924 aix*)
7925 lt_prog_compiler_wl='-Wl,'
7926 if test "$host_cpu" = ia64; then
7927 # AIX 5 now supports IA64 processor
7928 lt_prog_compiler_static='-Bstatic'
7929 else
7930 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7934 mingw* | cygwin* | pw32* | os2* | cegcc*)
7935 # This hack is so that the source file can tell whether it is being
7936 # built for inclusion in a dll (and should export symbols for example).
7937 lt_prog_compiler_pic='-DDLL_EXPORT'
7940 hpux9* | hpux10* | hpux11*)
7941 lt_prog_compiler_wl='-Wl,'
7942 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7943 # not for PA HP-UX.
7944 case $host_cpu in
7945 hppa*64*|ia64*)
7946 # +Z the default
7949 lt_prog_compiler_pic='+Z'
7951 esac
7952 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7953 lt_prog_compiler_static='${wl}-a ${wl}archive'
7956 irix5* | irix6* | nonstopux*)
7957 lt_prog_compiler_wl='-Wl,'
7958 # PIC (with -KPIC) is the default.
7959 lt_prog_compiler_static='-non_shared'
7962 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7963 case $cc_basename in
7964 # old Intel for x86_64 which still supported -KPIC.
7965 ecc*)
7966 lt_prog_compiler_wl='-Wl,'
7967 lt_prog_compiler_pic='-KPIC'
7968 lt_prog_compiler_static='-static'
7970 # icc used to be incompatible with GCC.
7971 # ICC 10 doesn't accept -KPIC any more.
7972 icc* | ifort*)
7973 lt_prog_compiler_wl='-Wl,'
7974 lt_prog_compiler_pic='-fPIC'
7975 lt_prog_compiler_static='-static'
7977 # Lahey Fortran 8.1.
7978 lf95*)
7979 lt_prog_compiler_wl='-Wl,'
7980 lt_prog_compiler_pic='--shared'
7981 lt_prog_compiler_static='--static'
7983 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7984 # Portland Group compilers (*not* the Pentium gcc compiler,
7985 # which looks to be a dead project)
7986 lt_prog_compiler_wl='-Wl,'
7987 lt_prog_compiler_pic='-fpic'
7988 lt_prog_compiler_static='-Bstatic'
7990 ccc*)
7991 lt_prog_compiler_wl='-Wl,'
7992 # All Alpha code is PIC.
7993 lt_prog_compiler_static='-non_shared'
7995 xl* | bgxl* | bgf* | mpixl*)
7996 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7997 lt_prog_compiler_wl='-Wl,'
7998 lt_prog_compiler_pic='-qpic'
7999 lt_prog_compiler_static='-qstaticlink'
8002 case `$CC -V 2>&1 | sed 5q` in
8003 *Sun\ F* | *Sun*Fortran*)
8004 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8005 lt_prog_compiler_pic='-KPIC'
8006 lt_prog_compiler_static='-Bstatic'
8007 lt_prog_compiler_wl=''
8009 *Sun\ C*)
8010 # Sun C 5.9
8011 lt_prog_compiler_pic='-KPIC'
8012 lt_prog_compiler_static='-Bstatic'
8013 lt_prog_compiler_wl='-Wl,'
8015 esac
8017 esac
8020 newsos6)
8021 lt_prog_compiler_pic='-KPIC'
8022 lt_prog_compiler_static='-Bstatic'
8025 *nto* | *qnx*)
8026 # QNX uses GNU C++, but need to define -shared option too, otherwise
8027 # it will coredump.
8028 lt_prog_compiler_pic='-fPIC -shared'
8031 osf3* | osf4* | osf5*)
8032 lt_prog_compiler_wl='-Wl,'
8033 # All OSF/1 code is PIC.
8034 lt_prog_compiler_static='-non_shared'
8037 rdos*)
8038 lt_prog_compiler_static='-non_shared'
8041 solaris*)
8042 lt_prog_compiler_pic='-KPIC'
8043 lt_prog_compiler_static='-Bstatic'
8044 case $cc_basename in
8045 f77* | f90* | f95*)
8046 lt_prog_compiler_wl='-Qoption ld ';;
8048 lt_prog_compiler_wl='-Wl,';;
8049 esac
8052 sunos4*)
8053 lt_prog_compiler_wl='-Qoption ld '
8054 lt_prog_compiler_pic='-PIC'
8055 lt_prog_compiler_static='-Bstatic'
8058 sysv4 | sysv4.2uw2* | sysv4.3*)
8059 lt_prog_compiler_wl='-Wl,'
8060 lt_prog_compiler_pic='-KPIC'
8061 lt_prog_compiler_static='-Bstatic'
8064 sysv4*MP*)
8065 if test -d /usr/nec ;then
8066 lt_prog_compiler_pic='-Kconform_pic'
8067 lt_prog_compiler_static='-Bstatic'
8071 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8072 lt_prog_compiler_wl='-Wl,'
8073 lt_prog_compiler_pic='-KPIC'
8074 lt_prog_compiler_static='-Bstatic'
8077 unicos*)
8078 lt_prog_compiler_wl='-Wl,'
8079 lt_prog_compiler_can_build_shared=no
8082 uts4*)
8083 lt_prog_compiler_pic='-pic'
8084 lt_prog_compiler_static='-Bstatic'
8088 lt_prog_compiler_can_build_shared=no
8090 esac
8093 case $host_os in
8094 # For platforms which do not support PIC, -DPIC is meaningless:
8095 *djgpp*)
8096 lt_prog_compiler_pic=
8099 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8101 esac
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8103 $as_echo "$lt_prog_compiler_pic" >&6; }
8111 # Check to make sure the PIC flag actually works.
8113 if test -n "$lt_prog_compiler_pic"; then
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8115 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8116 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8117 $as_echo_n "(cached) " >&6
8118 else
8119 lt_cv_prog_compiler_pic_works=no
8120 ac_outfile=conftest.$ac_objext
8121 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8122 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8123 # Insert the option either (1) after the last *FLAGS variable, or
8124 # (2) before a word containing "conftest.", or (3) at the end.
8125 # Note that $ac_compile itself does not contain backslashes and begins
8126 # with a dollar sign (not a hyphen), so the echo should work correctly.
8127 # The option is referenced via a variable to avoid confusing sed.
8128 lt_compile=`echo "$ac_compile" | $SED \
8129 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8130 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8131 -e 's:$: $lt_compiler_flag:'`
8132 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8133 (eval "$lt_compile" 2>conftest.err)
8134 ac_status=$?
8135 cat conftest.err >&5
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 if (exit $ac_status) && test -s "$ac_outfile"; then
8138 # The compiler can only warn and ignore the option if not recognized
8139 # So say no if there are warnings other than the usual output.
8140 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8141 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8142 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8143 lt_cv_prog_compiler_pic_works=yes
8146 $RM conftest*
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8150 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8152 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8153 case $lt_prog_compiler_pic in
8154 "" | " "*) ;;
8155 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8156 esac
8157 else
8158 lt_prog_compiler_pic=
8159 lt_prog_compiler_can_build_shared=no
8170 # Check to make sure the static flag actually works.
8172 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8174 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8175 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8176 $as_echo_n "(cached) " >&6
8177 else
8178 lt_cv_prog_compiler_static_works=no
8179 save_LDFLAGS="$LDFLAGS"
8180 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8181 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8182 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8183 # The linker can only warn and ignore the option if not recognized
8184 # So say no if there are warnings
8185 if test -s conftest.err; then
8186 # Append any errors to the config.log.
8187 cat conftest.err 1>&5
8188 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8189 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8190 if diff conftest.exp conftest.er2 >/dev/null; then
8191 lt_cv_prog_compiler_static_works=yes
8193 else
8194 lt_cv_prog_compiler_static_works=yes
8197 $RM -r conftest*
8198 LDFLAGS="$save_LDFLAGS"
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8202 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8204 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8206 else
8207 lt_prog_compiler_static=
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8217 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8218 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8219 $as_echo_n "(cached) " >&6
8220 else
8221 lt_cv_prog_compiler_c_o=no
8222 $RM -r conftest 2>/dev/null
8223 mkdir conftest
8224 cd conftest
8225 mkdir out
8226 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8228 lt_compiler_flag="-o out/conftest2.$ac_objext"
8229 # Insert the option either (1) after the last *FLAGS variable, or
8230 # (2) before a word containing "conftest.", or (3) at the end.
8231 # Note that $ac_compile itself does not contain backslashes and begins
8232 # with a dollar sign (not a hyphen), so the echo should work correctly.
8233 lt_compile=`echo "$ac_compile" | $SED \
8234 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8235 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8236 -e 's:$: $lt_compiler_flag:'`
8237 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8238 (eval "$lt_compile" 2>out/conftest.err)
8239 ac_status=$?
8240 cat out/conftest.err >&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8243 then
8244 # The compiler can only warn and ignore the option if not recognized
8245 # So say no if there are warnings
8246 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8247 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8248 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8249 lt_cv_prog_compiler_c_o=yes
8252 chmod u+w . 2>&5
8253 $RM conftest*
8254 # SGI C++ compiler will create directory out/ii_files/ for
8255 # template instantiation
8256 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8257 $RM out/* && rmdir out
8258 cd ..
8259 $RM -r conftest
8260 $RM conftest*
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8264 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8272 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8273 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8274 $as_echo_n "(cached) " >&6
8275 else
8276 lt_cv_prog_compiler_c_o=no
8277 $RM -r conftest 2>/dev/null
8278 mkdir conftest
8279 cd conftest
8280 mkdir out
8281 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8283 lt_compiler_flag="-o out/conftest2.$ac_objext"
8284 # Insert the option either (1) after the last *FLAGS variable, or
8285 # (2) before a word containing "conftest.", or (3) at the end.
8286 # Note that $ac_compile itself does not contain backslashes and begins
8287 # with a dollar sign (not a hyphen), so the echo should work correctly.
8288 lt_compile=`echo "$ac_compile" | $SED \
8289 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8291 -e 's:$: $lt_compiler_flag:'`
8292 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8293 (eval "$lt_compile" 2>out/conftest.err)
8294 ac_status=$?
8295 cat out/conftest.err >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8298 then
8299 # The compiler can only warn and ignore the option if not recognized
8300 # So say no if there are warnings
8301 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8302 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8303 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8304 lt_cv_prog_compiler_c_o=yes
8307 chmod u+w . 2>&5
8308 $RM conftest*
8309 # SGI C++ compiler will create directory out/ii_files/ for
8310 # template instantiation
8311 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8312 $RM out/* && rmdir out
8313 cd ..
8314 $RM -r conftest
8315 $RM conftest*
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8319 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8324 hard_links="nottested"
8325 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8326 # do not overwrite the value of need_locks provided by the user
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8328 $as_echo_n "checking if we can lock with hard links... " >&6; }
8329 hard_links=yes
8330 $RM conftest*
8331 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8332 touch conftest.a
8333 ln conftest.a conftest.b 2>&5 || hard_links=no
8334 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8336 $as_echo "$hard_links" >&6; }
8337 if test "$hard_links" = no; then
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8339 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8340 need_locks=warn
8342 else
8343 need_locks=no
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8352 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8354 runpath_var=
8355 allow_undefined_flag=
8356 always_export_symbols=no
8357 archive_cmds=
8358 archive_expsym_cmds=
8359 compiler_needs_object=no
8360 enable_shared_with_static_runtimes=no
8361 export_dynamic_flag_spec=
8362 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8363 hardcode_automatic=no
8364 hardcode_direct=no
8365 hardcode_direct_absolute=no
8366 hardcode_libdir_flag_spec=
8367 hardcode_libdir_flag_spec_ld=
8368 hardcode_libdir_separator=
8369 hardcode_minus_L=no
8370 hardcode_shlibpath_var=unsupported
8371 inherit_rpath=no
8372 link_all_deplibs=unknown
8373 module_cmds=
8374 module_expsym_cmds=
8375 old_archive_from_new_cmds=
8376 old_archive_from_expsyms_cmds=
8377 thread_safe_flag_spec=
8378 whole_archive_flag_spec=
8379 # include_expsyms should be a list of space-separated symbols to be *always*
8380 # included in the symbol list
8381 include_expsyms=
8382 # exclude_expsyms can be an extended regexp of symbols to exclude
8383 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8384 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8385 # as well as any symbol that contains `d'.
8386 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8387 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8388 # platforms (ab)use it in PIC code, but their linkers get confused if
8389 # the symbol is explicitly referenced. Since portable code cannot
8390 # rely on this symbol name, it's probably fine to never include it in
8391 # preloaded symbol tables.
8392 # Exclude shared library initialization/finalization symbols.
8393 extract_expsyms_cmds=
8395 case $host_os in
8396 cygwin* | mingw* | pw32* | cegcc*)
8397 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8398 # When not using gcc, we currently assume that we are using
8399 # Microsoft Visual C++.
8400 if test "$GCC" != yes; then
8401 with_gnu_ld=no
8404 interix*)
8405 # we just hope/assume this is gcc and not c89 (= MSVC++)
8406 with_gnu_ld=yes
8408 openbsd*)
8409 with_gnu_ld=no
8411 esac
8413 ld_shlibs=yes
8415 # On some targets, GNU ld is compatible enough with the native linker
8416 # that we're better off using the native interface for both.
8417 lt_use_gnu_ld_interface=no
8418 if test "$with_gnu_ld" = yes; then
8419 case $host_os in
8420 aix*)
8421 # The AIX port of GNU ld has always aspired to compatibility
8422 # with the native linker. However, as the warning in the GNU ld
8423 # block says, versions before 2.19.5* couldn't really create working
8424 # shared libraries, regardless of the interface used.
8425 case `$LD -v 2>&1` in
8426 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8427 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8428 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8430 lt_use_gnu_ld_interface=yes
8432 esac
8435 lt_use_gnu_ld_interface=yes
8437 esac
8440 if test "$lt_use_gnu_ld_interface" = yes; then
8441 # If archive_cmds runs LD, not CC, wlarc should be empty
8442 wlarc='${wl}'
8444 # Set some defaults for GNU ld with shared library support. These
8445 # are reset later if shared libraries are not supported. Putting them
8446 # here allows them to be overridden if necessary.
8447 runpath_var=LD_RUN_PATH
8448 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8449 export_dynamic_flag_spec='${wl}--export-dynamic'
8450 # ancient GNU ld didn't support --whole-archive et. al.
8451 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8452 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8453 else
8454 whole_archive_flag_spec=
8456 supports_anon_versioning=no
8457 case `$LD -v 2>&1` in
8458 *GNU\ gold*) supports_anon_versioning=yes ;;
8459 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8460 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8461 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8462 *\ 2.11.*) ;; # other 2.11 versions
8463 *) supports_anon_versioning=yes ;;
8464 esac
8466 # See if GNU ld supports shared libraries.
8467 case $host_os in
8468 aix[3-9]*)
8469 # On AIX/PPC, the GNU linker is very broken
8470 if test "$host_cpu" != ia64; then
8471 ld_shlibs=no
8472 cat <<_LT_EOF 1>&2
8474 *** Warning: the GNU linker, at least up to release 2.19, is reported
8475 *** to be unable to reliably create shared libraries on AIX.
8476 *** Therefore, libtool is disabling shared libraries support. If you
8477 *** really care for shared libraries, you may want to install binutils
8478 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8479 *** You will then need to restart the configuration process.
8481 _LT_EOF
8485 amigaos*)
8486 case $host_cpu in
8487 powerpc)
8488 # see comment about AmigaOS4 .so support
8489 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8490 archive_expsym_cmds=''
8492 m68k)
8493 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)'
8494 hardcode_libdir_flag_spec='-L$libdir'
8495 hardcode_minus_L=yes
8497 esac
8500 beos*)
8501 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8502 allow_undefined_flag=unsupported
8503 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8504 # support --undefined. This deserves some investigation. FIXME
8505 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8506 else
8507 ld_shlibs=no
8511 cygwin* | mingw* | pw32* | cegcc*)
8512 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8513 # as there is no search path for DLLs.
8514 hardcode_libdir_flag_spec='-L$libdir'
8515 export_dynamic_flag_spec='${wl}--export-all-symbols'
8516 allow_undefined_flag=unsupported
8517 always_export_symbols=no
8518 enable_shared_with_static_runtimes=yes
8519 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8521 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8523 # If the export-symbols file already is a .def file (1st line
8524 # is EXPORTS), use it as is; otherwise, prepend...
8525 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8526 cp $export_symbols $output_objdir/$soname.def;
8527 else
8528 echo EXPORTS > $output_objdir/$soname.def;
8529 cat $export_symbols >> $output_objdir/$soname.def;
8531 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8532 else
8533 ld_shlibs=no
8537 haiku*)
8538 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8539 link_all_deplibs=yes
8542 interix[3-9]*)
8543 hardcode_direct=no
8544 hardcode_shlibpath_var=no
8545 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8546 export_dynamic_flag_spec='${wl}-E'
8547 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8548 # Instead, shared libraries are loaded at an image base (0x10000000 by
8549 # default) and relocated if they conflict, which is a slow very memory
8550 # consuming and fragmenting process. To avoid this, we pick a random,
8551 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8552 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8553 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8554 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'
8557 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8558 tmp_diet=no
8559 if test "$host_os" = linux-dietlibc; then
8560 case $cc_basename in
8561 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8562 esac
8564 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8565 && test "$tmp_diet" = no
8566 then
8567 tmp_addflag=
8568 tmp_sharedflag='-shared'
8569 case $cc_basename,$host_cpu in
8570 pgcc*) # Portland Group C compiler
8571 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'
8572 tmp_addflag=' $pic_flag'
8574 pgf77* | pgf90* | pgf95* | pgfortran*)
8575 # Portland Group f77 and f90 compilers
8576 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'
8577 tmp_addflag=' $pic_flag -Mnomain' ;;
8578 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8579 tmp_addflag=' -i_dynamic' ;;
8580 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8581 tmp_addflag=' -i_dynamic -nofor_main' ;;
8582 ifc* | ifort*) # Intel Fortran compiler
8583 tmp_addflag=' -nofor_main' ;;
8584 lf95*) # Lahey Fortran 8.1
8585 whole_archive_flag_spec=
8586 tmp_sharedflag='--shared' ;;
8587 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8588 tmp_sharedflag='-qmkshrobj'
8589 tmp_addflag= ;;
8590 nvcc*) # Cuda Compiler Driver 2.2
8591 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'
8592 compiler_needs_object=yes
8594 esac
8595 case `$CC -V 2>&1 | sed 5q` in
8596 *Sun\ C*) # Sun C 5.9
8597 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'
8598 compiler_needs_object=yes
8599 tmp_sharedflag='-G' ;;
8600 *Sun\ F*) # Sun Fortran 8.3
8601 tmp_sharedflag='-G' ;;
8602 esac
8603 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8605 if test "x$supports_anon_versioning" = xyes; then
8606 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8607 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8608 echo "local: *; };" >> $output_objdir/$libname.ver~
8609 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8612 case $cc_basename in
8613 xlf* | bgf* | bgxlf* | mpixlf*)
8614 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8615 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8616 hardcode_libdir_flag_spec=
8617 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8618 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8619 if test "x$supports_anon_versioning" = xyes; then
8620 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8621 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8622 echo "local: *; };" >> $output_objdir/$libname.ver~
8623 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8626 esac
8627 else
8628 ld_shlibs=no
8632 netbsd*)
8633 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8634 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8635 wlarc=
8636 else
8637 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8638 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8642 solaris*)
8643 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8644 ld_shlibs=no
8645 cat <<_LT_EOF 1>&2
8647 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8648 *** create shared libraries on Solaris systems. Therefore, libtool
8649 *** is disabling shared libraries support. We urge you to upgrade GNU
8650 *** binutils to release 2.9.1 or newer. Another option is to modify
8651 *** your PATH or compiler configuration so that the native linker is
8652 *** used, and then restart.
8654 _LT_EOF
8655 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8656 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8657 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8658 else
8659 ld_shlibs=no
8663 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8664 case `$LD -v 2>&1` in
8665 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8666 ld_shlibs=no
8667 cat <<_LT_EOF 1>&2
8669 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8670 *** reliably create shared libraries on SCO systems. Therefore, libtool
8671 *** is disabling shared libraries support. We urge you to upgrade GNU
8672 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8673 *** your PATH or compiler configuration so that the native linker is
8674 *** used, and then restart.
8676 _LT_EOF
8679 # For security reasons, it is highly recommended that you always
8680 # use absolute paths for naming shared libraries, and exclude the
8681 # DT_RUNPATH tag from executables and libraries. But doing so
8682 # requires that you compile everything twice, which is a pain.
8683 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8684 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8685 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8686 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8687 else
8688 ld_shlibs=no
8691 esac
8694 sunos4*)
8695 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8696 wlarc=
8697 hardcode_direct=yes
8698 hardcode_shlibpath_var=no
8702 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8703 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8704 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8705 else
8706 ld_shlibs=no
8709 esac
8711 if test "$ld_shlibs" = no; then
8712 runpath_var=
8713 hardcode_libdir_flag_spec=
8714 export_dynamic_flag_spec=
8715 whole_archive_flag_spec=
8717 else
8718 # PORTME fill in a description of your system's linker (not GNU ld)
8719 case $host_os in
8720 aix3*)
8721 allow_undefined_flag=unsupported
8722 always_export_symbols=yes
8723 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'
8724 # Note: this linker hardcodes the directories in LIBPATH if there
8725 # are no directories specified by -L.
8726 hardcode_minus_L=yes
8727 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8728 # Neither direct hardcoding nor static linking is supported with a
8729 # broken collect2.
8730 hardcode_direct=unsupported
8734 aix[4-9]*)
8735 if test "$host_cpu" = ia64; then
8736 # On IA64, the linker does run time linking by default, so we don't
8737 # have to do anything special.
8738 aix_use_runtimelinking=no
8739 exp_sym_flag='-Bexport'
8740 no_entry_flag=""
8741 else
8742 # If we're using GNU nm, then we don't want the "-C" option.
8743 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8744 # Also, AIX nm treats weak defined symbols like other global
8745 # defined symbols, whereas GNU nm marks them as "W".
8746 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8747 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'
8748 else
8749 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'
8751 aix_use_runtimelinking=no
8753 # Test if we are trying to use run time linking or normal
8754 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8755 # need to do runtime linking.
8756 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8757 for ld_flag in $LDFLAGS; do
8758 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8759 aix_use_runtimelinking=yes
8760 break
8762 done
8764 esac
8766 exp_sym_flag='-bexport'
8767 no_entry_flag='-bnoentry'
8770 # When large executables or shared objects are built, AIX ld can
8771 # have problems creating the table of contents. If linking a library
8772 # or program results in "error TOC overflow" add -mminimal-toc to
8773 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8774 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8776 archive_cmds=''
8777 hardcode_direct=yes
8778 hardcode_direct_absolute=yes
8779 hardcode_libdir_separator=':'
8780 link_all_deplibs=yes
8781 file_list_spec='${wl}-f,'
8783 if test "$GCC" = yes; then
8784 case $host_os in aix4.[012]|aix4.[012].*)
8785 # We only want to do this on AIX 4.2 and lower, the check
8786 # below for broken collect2 doesn't work under 4.3+
8787 collect2name=`${CC} -print-prog-name=collect2`
8788 if test -f "$collect2name" &&
8789 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8790 then
8791 # We have reworked collect2
8793 else
8794 # We have old collect2
8795 hardcode_direct=unsupported
8796 # It fails to find uninstalled libraries when the uninstalled
8797 # path is not listed in the libpath. Setting hardcode_minus_L
8798 # to unsupported forces relinking
8799 hardcode_minus_L=yes
8800 hardcode_libdir_flag_spec='-L$libdir'
8801 hardcode_libdir_separator=
8804 esac
8805 shared_flag='-shared'
8806 if test "$aix_use_runtimelinking" = yes; then
8807 shared_flag="$shared_flag "'${wl}-G'
8809 else
8810 # not using gcc
8811 if test "$host_cpu" = ia64; then
8812 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8813 # chokes on -Wl,-G. The following line is correct:
8814 shared_flag='-G'
8815 else
8816 if test "$aix_use_runtimelinking" = yes; then
8817 shared_flag='${wl}-G'
8818 else
8819 shared_flag='${wl}-bM:SRE'
8824 export_dynamic_flag_spec='${wl}-bexpall'
8825 # It seems that -bexpall does not export symbols beginning with
8826 # underscore (_), so it is better to generate a list of symbols to export.
8827 always_export_symbols=yes
8828 if test "$aix_use_runtimelinking" = yes; then
8829 # Warning - without using the other runtime loading flags (-brtl),
8830 # -berok will link without error, but may produce a broken library.
8831 allow_undefined_flag='-berok'
8832 # Determine the default libpath from the value encoded in an
8833 # empty executable.
8834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8835 /* end confdefs.h. */
8838 main ()
8842 return 0;
8844 _ACEOF
8845 if ac_fn_c_try_link "$LINENO"; then :
8847 lt_aix_libpath_sed='
8848 /Import File Strings/,/^$/ {
8849 /^0/ {
8850 s/^0 *\(.*\)$/\1/
8854 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8855 # Check for a 64-bit object if we didn't find anything.
8856 if test -z "$aix_libpath"; then
8857 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8860 rm -f core conftest.err conftest.$ac_objext \
8861 conftest$ac_exeext conftest.$ac_ext
8862 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8864 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8865 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"
8866 else
8867 if test "$host_cpu" = ia64; then
8868 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8869 allow_undefined_flag="-z nodefs"
8870 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"
8871 else
8872 # Determine the default libpath from the value encoded in an
8873 # empty executable.
8874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8875 /* end confdefs.h. */
8878 main ()
8882 return 0;
8884 _ACEOF
8885 if ac_fn_c_try_link "$LINENO"; then :
8887 lt_aix_libpath_sed='
8888 /Import File Strings/,/^$/ {
8889 /^0/ {
8890 s/^0 *\(.*\)$/\1/
8894 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8895 # Check for a 64-bit object if we didn't find anything.
8896 if test -z "$aix_libpath"; then
8897 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8900 rm -f core conftest.err conftest.$ac_objext \
8901 conftest$ac_exeext conftest.$ac_ext
8902 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8904 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8905 # Warning - without using the other run time loading flags,
8906 # -berok will link without error, but may produce a broken library.
8907 no_undefined_flag=' ${wl}-bernotok'
8908 allow_undefined_flag=' ${wl}-berok'
8909 if test "$with_gnu_ld" = yes; then
8910 # We only use this code for GNU lds that support --whole-archive.
8911 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8912 else
8913 # Exported symbols can be pulled into shared objects from archives
8914 whole_archive_flag_spec='$convenience'
8916 archive_cmds_need_lc=yes
8917 # This is similar to how AIX traditionally builds its shared libraries.
8918 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'
8923 amigaos*)
8924 case $host_cpu in
8925 powerpc)
8926 # see comment about AmigaOS4 .so support
8927 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8928 archive_expsym_cmds=''
8930 m68k)
8931 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)'
8932 hardcode_libdir_flag_spec='-L$libdir'
8933 hardcode_minus_L=yes
8935 esac
8938 bsdi[45]*)
8939 export_dynamic_flag_spec=-rdynamic
8942 cygwin* | mingw* | pw32* | cegcc*)
8943 # When not using gcc, we currently assume that we are using
8944 # Microsoft Visual C++.
8945 # hardcode_libdir_flag_spec is actually meaningless, as there is
8946 # no search path for DLLs.
8947 hardcode_libdir_flag_spec=' '
8948 allow_undefined_flag=unsupported
8949 # Tell ltmain to make .lib files, not .a files.
8950 libext=lib
8951 # Tell ltmain to make .dll files, not .so files.
8952 shrext_cmds=".dll"
8953 # FIXME: Setting linknames here is a bad hack.
8954 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8955 # The linker will automatically build a .lib file if we build a DLL.
8956 old_archive_from_new_cmds='true'
8957 # FIXME: Should let the user specify the lib program.
8958 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8959 fix_srcfile_path='`cygpath -w "$srcfile"`'
8960 enable_shared_with_static_runtimes=yes
8963 darwin* | rhapsody*)
8966 archive_cmds_need_lc=no
8967 hardcode_direct=no
8968 hardcode_automatic=yes
8969 hardcode_shlibpath_var=unsupported
8970 if test "$lt_cv_ld_force_load" = "yes"; then
8971 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\"`'
8972 else
8973 whole_archive_flag_spec=''
8975 link_all_deplibs=yes
8976 allow_undefined_flag="$_lt_dar_allow_undefined"
8977 case $cc_basename in
8978 ifort*) _lt_dar_can_shared=yes ;;
8979 *) _lt_dar_can_shared=$GCC ;;
8980 esac
8981 if test "$_lt_dar_can_shared" = "yes"; then
8982 output_verbose_link_cmd=func_echo_all
8983 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8984 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8985 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}"
8986 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}"
8988 else
8989 ld_shlibs=no
8994 dgux*)
8995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8996 hardcode_libdir_flag_spec='-L$libdir'
8997 hardcode_shlibpath_var=no
9000 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9001 # support. Future versions do this automatically, but an explicit c++rt0.o
9002 # does not break anything, and helps significantly (at the cost of a little
9003 # extra space).
9004 freebsd2.2*)
9005 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9006 hardcode_libdir_flag_spec='-R$libdir'
9007 hardcode_direct=yes
9008 hardcode_shlibpath_var=no
9011 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9012 freebsd2.*)
9013 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9014 hardcode_direct=yes
9015 hardcode_minus_L=yes
9016 hardcode_shlibpath_var=no
9019 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9020 freebsd* | dragonfly*)
9021 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9022 hardcode_libdir_flag_spec='-R$libdir'
9023 hardcode_direct=yes
9024 hardcode_shlibpath_var=no
9027 hpux9*)
9028 if test "$GCC" = yes; then
9029 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'
9030 else
9031 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'
9033 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9034 hardcode_libdir_separator=:
9035 hardcode_direct=yes
9037 # hardcode_minus_L: Not really in the search PATH,
9038 # but as the default location of the library.
9039 hardcode_minus_L=yes
9040 export_dynamic_flag_spec='${wl}-E'
9043 hpux10*)
9044 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9045 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9046 else
9047 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9049 if test "$with_gnu_ld" = no; then
9050 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9051 hardcode_libdir_flag_spec_ld='+b $libdir'
9052 hardcode_libdir_separator=:
9053 hardcode_direct=yes
9054 hardcode_direct_absolute=yes
9055 export_dynamic_flag_spec='${wl}-E'
9056 # hardcode_minus_L: Not really in the search PATH,
9057 # but as the default location of the library.
9058 hardcode_minus_L=yes
9062 hpux11*)
9063 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9064 case $host_cpu in
9065 hppa*64*)
9066 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9068 ia64*)
9069 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9072 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9074 esac
9075 else
9076 case $host_cpu in
9077 hppa*64*)
9078 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9080 ia64*)
9081 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9085 # Older versions of the 11.00 compiler do not understand -b yet
9086 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9088 $as_echo_n "checking if $CC understands -b... " >&6; }
9089 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9090 $as_echo_n "(cached) " >&6
9091 else
9092 lt_cv_prog_compiler__b=no
9093 save_LDFLAGS="$LDFLAGS"
9094 LDFLAGS="$LDFLAGS -b"
9095 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9096 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9097 # The linker can only warn and ignore the option if not recognized
9098 # So say no if there are warnings
9099 if test -s conftest.err; then
9100 # Append any errors to the config.log.
9101 cat conftest.err 1>&5
9102 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9103 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9104 if diff conftest.exp conftest.er2 >/dev/null; then
9105 lt_cv_prog_compiler__b=yes
9107 else
9108 lt_cv_prog_compiler__b=yes
9111 $RM -r conftest*
9112 LDFLAGS="$save_LDFLAGS"
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9116 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9118 if test x"$lt_cv_prog_compiler__b" = xyes; then
9119 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9120 else
9121 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9125 esac
9127 if test "$with_gnu_ld" = no; then
9128 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9129 hardcode_libdir_separator=:
9131 case $host_cpu in
9132 hppa*64*|ia64*)
9133 hardcode_direct=no
9134 hardcode_shlibpath_var=no
9137 hardcode_direct=yes
9138 hardcode_direct_absolute=yes
9139 export_dynamic_flag_spec='${wl}-E'
9141 # hardcode_minus_L: Not really in the search PATH,
9142 # but as the default location of the library.
9143 hardcode_minus_L=yes
9145 esac
9149 irix5* | irix6* | nonstopux*)
9150 if test "$GCC" = yes; then
9151 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'
9152 # Try to use the -exported_symbol ld option, if it does not
9153 # work, assume that -exports_file does not work either and
9154 # implicitly export all symbols.
9155 save_LDFLAGS="$LDFLAGS"
9156 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9158 /* end confdefs.h. */
9159 int foo(void) {}
9160 _ACEOF
9161 if ac_fn_c_try_link "$LINENO"; then :
9162 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'
9165 rm -f core conftest.err conftest.$ac_objext \
9166 conftest$ac_exeext conftest.$ac_ext
9167 LDFLAGS="$save_LDFLAGS"
9168 else
9169 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'
9170 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'
9172 archive_cmds_need_lc='no'
9173 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9174 hardcode_libdir_separator=:
9175 inherit_rpath=yes
9176 link_all_deplibs=yes
9179 netbsd*)
9180 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9181 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9182 else
9183 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9185 hardcode_libdir_flag_spec='-R$libdir'
9186 hardcode_direct=yes
9187 hardcode_shlibpath_var=no
9190 newsos6)
9191 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9192 hardcode_direct=yes
9193 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9194 hardcode_libdir_separator=:
9195 hardcode_shlibpath_var=no
9198 *nto* | *qnx*)
9201 openbsd*)
9202 if test -f /usr/libexec/ld.so; then
9203 hardcode_direct=yes
9204 hardcode_shlibpath_var=no
9205 hardcode_direct_absolute=yes
9206 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9207 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9208 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9209 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9210 export_dynamic_flag_spec='${wl}-E'
9211 else
9212 case $host_os in
9213 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9214 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9215 hardcode_libdir_flag_spec='-R$libdir'
9218 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9219 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9221 esac
9223 else
9224 ld_shlibs=no
9228 os2*)
9229 hardcode_libdir_flag_spec='-L$libdir'
9230 hardcode_minus_L=yes
9231 allow_undefined_flag=unsupported
9232 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'
9233 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9236 osf3*)
9237 if test "$GCC" = yes; then
9238 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9239 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'
9240 else
9241 allow_undefined_flag=' -expect_unresolved \*'
9242 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'
9244 archive_cmds_need_lc='no'
9245 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9246 hardcode_libdir_separator=:
9249 osf4* | osf5*) # as osf3* with the addition of -msym flag
9250 if test "$GCC" = yes; then
9251 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9252 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'
9253 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9254 else
9255 allow_undefined_flag=' -expect_unresolved \*'
9256 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'
9257 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~
9258 $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'
9260 # Both c and cxx compiler support -rpath directly
9261 hardcode_libdir_flag_spec='-rpath $libdir'
9263 archive_cmds_need_lc='no'
9264 hardcode_libdir_separator=:
9267 solaris*)
9268 no_undefined_flag=' -z defs'
9269 if test "$GCC" = yes; then
9270 wlarc='${wl}'
9271 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9272 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9273 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9274 else
9275 case `$CC -V 2>&1` in
9276 *"Compilers 5.0"*)
9277 wlarc=''
9278 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9279 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9280 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9283 wlarc='${wl}'
9284 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9285 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9286 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9288 esac
9290 hardcode_libdir_flag_spec='-R$libdir'
9291 hardcode_shlibpath_var=no
9292 case $host_os in
9293 solaris2.[0-5] | solaris2.[0-5].*) ;;
9295 # The compiler driver will combine and reorder linker options,
9296 # but understands `-z linker_flag'. GCC discards it without `$wl',
9297 # but is careful enough not to reorder.
9298 # Supported since Solaris 2.6 (maybe 2.5.1?)
9299 if test "$GCC" = yes; then
9300 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9301 else
9302 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9305 esac
9306 link_all_deplibs=yes
9309 sunos4*)
9310 if test "x$host_vendor" = xsequent; then
9311 # Use $CC to link under sequent, because it throws in some extra .o
9312 # files that make .init and .fini sections work.
9313 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9314 else
9315 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9317 hardcode_libdir_flag_spec='-L$libdir'
9318 hardcode_direct=yes
9319 hardcode_minus_L=yes
9320 hardcode_shlibpath_var=no
9323 sysv4)
9324 case $host_vendor in
9325 sni)
9326 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9327 hardcode_direct=yes # is this really true???
9329 siemens)
9330 ## LD is ld it makes a PLAMLIB
9331 ## CC just makes a GrossModule.
9332 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9333 reload_cmds='$CC -r -o $output$reload_objs'
9334 hardcode_direct=no
9336 motorola)
9337 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9338 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9340 esac
9341 runpath_var='LD_RUN_PATH'
9342 hardcode_shlibpath_var=no
9345 sysv4.3*)
9346 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9347 hardcode_shlibpath_var=no
9348 export_dynamic_flag_spec='-Bexport'
9351 sysv4*MP*)
9352 if test -d /usr/nec; then
9353 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9354 hardcode_shlibpath_var=no
9355 runpath_var=LD_RUN_PATH
9356 hardcode_runpath_var=yes
9357 ld_shlibs=yes
9361 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9362 no_undefined_flag='${wl}-z,text'
9363 archive_cmds_need_lc=no
9364 hardcode_shlibpath_var=no
9365 runpath_var='LD_RUN_PATH'
9367 if test "$GCC" = yes; then
9368 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9369 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9370 else
9371 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9372 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9376 sysv5* | sco3.2v5* | sco5v6*)
9377 # Note: We can NOT use -z defs as we might desire, because we do not
9378 # link with -lc, and that would cause any symbols used from libc to
9379 # always be unresolved, which means just about no library would
9380 # ever link correctly. If we're not using GNU ld we use -z text
9381 # though, which does catch some bad symbols but isn't as heavy-handed
9382 # as -z defs.
9383 no_undefined_flag='${wl}-z,text'
9384 allow_undefined_flag='${wl}-z,nodefs'
9385 archive_cmds_need_lc=no
9386 hardcode_shlibpath_var=no
9387 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9388 hardcode_libdir_separator=':'
9389 link_all_deplibs=yes
9390 export_dynamic_flag_spec='${wl}-Bexport'
9391 runpath_var='LD_RUN_PATH'
9393 if test "$GCC" = yes; then
9394 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9395 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9396 else
9397 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9398 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9402 uts4*)
9403 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9404 hardcode_libdir_flag_spec='-L$libdir'
9405 hardcode_shlibpath_var=no
9409 ld_shlibs=no
9411 esac
9413 if test x$host_vendor = xsni; then
9414 case $host in
9415 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9416 export_dynamic_flag_spec='${wl}-Blargedynsym'
9418 esac
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9423 $as_echo "$ld_shlibs" >&6; }
9424 test "$ld_shlibs" = no && can_build_shared=no
9426 with_gnu_ld=$with_gnu_ld
9443 # Do we need to explicitly link libc?
9445 case "x$archive_cmds_need_lc" in
9446 x|xyes)
9447 # Assume -lc should be added
9448 archive_cmds_need_lc=yes
9450 if test "$enable_shared" = yes && test "$GCC" = yes; then
9451 case $archive_cmds in
9452 *'~'*)
9453 # FIXME: we may have to deal with multi-command sequences.
9455 '$CC '*)
9456 # Test whether the compiler implicitly links with -lc since on some
9457 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9458 # to ld, don't add -lc before -lgcc.
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9460 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9461 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9462 $as_echo_n "(cached) " >&6
9463 else
9464 $RM conftest*
9465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9468 (eval $ac_compile) 2>&5
9469 ac_status=$?
9470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9471 test $ac_status = 0; } 2>conftest.err; then
9472 soname=conftest
9473 lib=conftest
9474 libobjs=conftest.$ac_objext
9475 deplibs=
9476 wl=$lt_prog_compiler_wl
9477 pic_flag=$lt_prog_compiler_pic
9478 compiler_flags=-v
9479 linker_flags=-v
9480 verstring=
9481 output_objdir=.
9482 libname=conftest
9483 lt_save_allow_undefined_flag=$allow_undefined_flag
9484 allow_undefined_flag=
9485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9486 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9487 ac_status=$?
9488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9489 test $ac_status = 0; }
9490 then
9491 lt_cv_archive_cmds_need_lc=no
9492 else
9493 lt_cv_archive_cmds_need_lc=yes
9495 allow_undefined_flag=$lt_save_allow_undefined_flag
9496 else
9497 cat conftest.err 1>&5
9499 $RM conftest*
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9503 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9504 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9506 esac
9509 esac
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9668 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9670 if test "$GCC" = yes; then
9671 case $host_os in
9672 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9673 *) lt_awk_arg="/^libraries:/" ;;
9674 esac
9675 case $host_os in
9676 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9677 *) lt_sed_strip_eq="s,=/,/,g" ;;
9678 esac
9679 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9680 case $lt_search_path_spec in
9681 *\;*)
9682 # if the path contains ";" then we assume it to be the separator
9683 # otherwise default to the standard path separator (i.e. ":") - it is
9684 # assumed that no part of a normal pathname contains ";" but that should
9685 # okay in the real world where ";" in dirpaths is itself problematic.
9686 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9689 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9691 esac
9692 # Ok, now we have the path, separated by spaces, we can step through it
9693 # and add multilib dir if necessary.
9694 lt_tmp_lt_search_path_spec=
9695 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9696 for lt_sys_path in $lt_search_path_spec; do
9697 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9698 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9699 else
9700 test -d "$lt_sys_path" && \
9701 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9703 done
9704 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9705 BEGIN {RS=" "; FS="/|\n";} {
9706 lt_foo="";
9707 lt_count=0;
9708 for (lt_i = NF; lt_i > 0; lt_i--) {
9709 if ($lt_i != "" && $lt_i != ".") {
9710 if ($lt_i == "..") {
9711 lt_count++;
9712 } else {
9713 if (lt_count == 0) {
9714 lt_foo="/" $lt_i lt_foo;
9715 } else {
9716 lt_count--;
9721 if (lt_foo != "") { lt_freq[lt_foo]++; }
9722 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9724 # AWK program above erroneously prepends '/' to C:/dos/paths
9725 # for these hosts.
9726 case $host_os in
9727 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9728 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9729 esac
9730 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9731 else
9732 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9734 library_names_spec=
9735 libname_spec='lib$name'
9736 soname_spec=
9737 shrext_cmds=".so"
9738 postinstall_cmds=
9739 postuninstall_cmds=
9740 finish_cmds=
9741 finish_eval=
9742 shlibpath_var=
9743 shlibpath_overrides_runpath=unknown
9744 version_type=none
9745 dynamic_linker="$host_os ld.so"
9746 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9747 need_lib_prefix=unknown
9748 hardcode_into_libs=no
9750 # when you set need_version to no, make sure it does not cause -set_version
9751 # flags to be left without arguments
9752 need_version=unknown
9754 case $host_os in
9755 aix3*)
9756 version_type=linux
9757 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9758 shlibpath_var=LIBPATH
9760 # AIX 3 has no versioning support, so we append a major version to the name.
9761 soname_spec='${libname}${release}${shared_ext}$major'
9764 aix[4-9]*)
9765 version_type=linux
9766 need_lib_prefix=no
9767 need_version=no
9768 hardcode_into_libs=yes
9769 if test "$host_cpu" = ia64; then
9770 # AIX 5 supports IA64
9771 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9772 shlibpath_var=LD_LIBRARY_PATH
9773 else
9774 # With GCC up to 2.95.x, collect2 would create an import file
9775 # for dependence libraries. The import file would start with
9776 # the line `#! .'. This would cause the generated library to
9777 # depend on `.', always an invalid library. This was fixed in
9778 # development snapshots of GCC prior to 3.0.
9779 case $host_os in
9780 aix4 | aix4.[01] | aix4.[01].*)
9781 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9782 echo ' yes '
9783 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9785 else
9786 can_build_shared=no
9789 esac
9790 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9791 # soname into executable. Probably we can add versioning support to
9792 # collect2, so additional links can be useful in future.
9793 if test "$aix_use_runtimelinking" = yes; then
9794 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9795 # instead of lib<name>.a to let people know that these are not
9796 # typical AIX shared libraries.
9797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9798 else
9799 # We preserve .a as extension for shared libraries through AIX4.2
9800 # and later when we are not doing run time linking.
9801 library_names_spec='${libname}${release}.a $libname.a'
9802 soname_spec='${libname}${release}${shared_ext}$major'
9804 shlibpath_var=LIBPATH
9808 amigaos*)
9809 case $host_cpu in
9810 powerpc)
9811 # Since July 2007 AmigaOS4 officially supports .so libraries.
9812 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9815 m68k)
9816 library_names_spec='$libname.ixlibrary $libname.a'
9817 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9818 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'
9820 esac
9823 beos*)
9824 library_names_spec='${libname}${shared_ext}'
9825 dynamic_linker="$host_os ld.so"
9826 shlibpath_var=LIBRARY_PATH
9829 bsdi[45]*)
9830 version_type=linux
9831 need_version=no
9832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9833 soname_spec='${libname}${release}${shared_ext}$major'
9834 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9835 shlibpath_var=LD_LIBRARY_PATH
9836 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9837 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9838 # the default ld.so.conf also contains /usr/contrib/lib and
9839 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9840 # libtool to hard-code these into programs
9843 cygwin* | mingw* | pw32* | cegcc*)
9844 version_type=windows
9845 shrext_cmds=".dll"
9846 need_version=no
9847 need_lib_prefix=no
9849 case $GCC,$host_os in
9850 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9851 library_names_spec='$libname.dll.a'
9852 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9853 postinstall_cmds='base_file=`basename \${file}`~
9854 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9855 dldir=$destdir/`dirname \$dlpath`~
9856 test -d \$dldir || mkdir -p \$dldir~
9857 $install_prog $dir/$dlname \$dldir/$dlname~
9858 chmod a+x \$dldir/$dlname~
9859 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9860 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9862 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9863 dlpath=$dir/\$dldll~
9864 $RM \$dlpath'
9865 shlibpath_overrides_runpath=yes
9867 case $host_os in
9868 cygwin*)
9869 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9870 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9872 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9874 mingw* | cegcc*)
9875 # MinGW DLLs use traditional 'lib' prefix
9876 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9878 pw32*)
9879 # pw32 DLLs use 'pw' prefix rather than 'lib'
9880 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9882 esac
9886 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9888 esac
9889 dynamic_linker='Win32 ld.exe'
9890 # FIXME: first we should search . and the directory the executable is in
9891 shlibpath_var=PATH
9894 darwin* | rhapsody*)
9895 dynamic_linker="$host_os dyld"
9896 version_type=darwin
9897 need_lib_prefix=no
9898 need_version=no
9899 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9900 soname_spec='${libname}${release}${major}$shared_ext'
9901 shlibpath_overrides_runpath=yes
9902 shlibpath_var=DYLD_LIBRARY_PATH
9903 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9905 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9906 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9909 dgux*)
9910 version_type=linux
9911 need_lib_prefix=no
9912 need_version=no
9913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9914 soname_spec='${libname}${release}${shared_ext}$major'
9915 shlibpath_var=LD_LIBRARY_PATH
9918 freebsd* | dragonfly*)
9919 # DragonFly does not have aout. When/if they implement a new
9920 # versioning mechanism, adjust this.
9921 if test -x /usr/bin/objformat; then
9922 objformat=`/usr/bin/objformat`
9923 else
9924 case $host_os in
9925 freebsd[23].*) objformat=aout ;;
9926 *) objformat=elf ;;
9927 esac
9929 version_type=freebsd-$objformat
9930 case $version_type in
9931 freebsd-elf*)
9932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9933 need_version=no
9934 need_lib_prefix=no
9936 freebsd-*)
9937 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9938 need_version=yes
9940 esac
9941 shlibpath_var=LD_LIBRARY_PATH
9942 case $host_os in
9943 freebsd2.*)
9944 shlibpath_overrides_runpath=yes
9946 freebsd3.[01]* | freebsdelf3.[01]*)
9947 shlibpath_overrides_runpath=yes
9948 hardcode_into_libs=yes
9950 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9951 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9952 shlibpath_overrides_runpath=no
9953 hardcode_into_libs=yes
9955 *) # from 4.6 on, and DragonFly
9956 shlibpath_overrides_runpath=yes
9957 hardcode_into_libs=yes
9959 esac
9962 gnu*)
9963 version_type=linux
9964 need_lib_prefix=no
9965 need_version=no
9966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9967 soname_spec='${libname}${release}${shared_ext}$major'
9968 shlibpath_var=LD_LIBRARY_PATH
9969 hardcode_into_libs=yes
9972 haiku*)
9973 version_type=linux
9974 need_lib_prefix=no
9975 need_version=no
9976 dynamic_linker="$host_os runtime_loader"
9977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9978 soname_spec='${libname}${release}${shared_ext}$major'
9979 shlibpath_var=LIBRARY_PATH
9980 shlibpath_overrides_runpath=yes
9981 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9982 hardcode_into_libs=yes
9985 hpux9* | hpux10* | hpux11*)
9986 # Give a soname corresponding to the major version so that dld.sl refuses to
9987 # link against other versions.
9988 version_type=sunos
9989 need_lib_prefix=no
9990 need_version=no
9991 case $host_cpu in
9992 ia64*)
9993 shrext_cmds='.so'
9994 hardcode_into_libs=yes
9995 dynamic_linker="$host_os dld.so"
9996 shlibpath_var=LD_LIBRARY_PATH
9997 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9999 soname_spec='${libname}${release}${shared_ext}$major'
10000 if test "X$HPUX_IA64_MODE" = X32; then
10001 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10002 else
10003 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10005 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10007 hppa*64*)
10008 shrext_cmds='.sl'
10009 hardcode_into_libs=yes
10010 dynamic_linker="$host_os dld.sl"
10011 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10012 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014 soname_spec='${libname}${release}${shared_ext}$major'
10015 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10016 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10019 shrext_cmds='.sl'
10020 dynamic_linker="$host_os dld.sl"
10021 shlibpath_var=SHLIB_PATH
10022 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10024 soname_spec='${libname}${release}${shared_ext}$major'
10026 esac
10027 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10028 postinstall_cmds='chmod 555 $lib'
10029 # or fails outright, so override atomically:
10030 install_override_mode=555
10033 interix[3-9]*)
10034 version_type=linux
10035 need_lib_prefix=no
10036 need_version=no
10037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10038 soname_spec='${libname}${release}${shared_ext}$major'
10039 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10040 shlibpath_var=LD_LIBRARY_PATH
10041 shlibpath_overrides_runpath=no
10042 hardcode_into_libs=yes
10045 irix5* | irix6* | nonstopux*)
10046 case $host_os in
10047 nonstopux*) version_type=nonstopux ;;
10049 if test "$lt_cv_prog_gnu_ld" = yes; then
10050 version_type=linux
10051 else
10052 version_type=irix
10053 fi ;;
10054 esac
10055 need_lib_prefix=no
10056 need_version=no
10057 soname_spec='${libname}${release}${shared_ext}$major'
10058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10059 case $host_os in
10060 irix5* | nonstopux*)
10061 libsuff= shlibsuff=
10064 case $LD in # libtool.m4 will add one of these switches to LD
10065 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10066 libsuff= shlibsuff= libmagic=32-bit;;
10067 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10068 libsuff=32 shlibsuff=N32 libmagic=N32;;
10069 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10070 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10071 *) libsuff= shlibsuff= libmagic=never-match;;
10072 esac
10074 esac
10075 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10076 shlibpath_overrides_runpath=no
10077 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10078 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10079 hardcode_into_libs=yes
10082 # No shared lib support for Linux oldld, aout, or coff.
10083 linux*oldld* | linux*aout* | linux*coff*)
10084 dynamic_linker=no
10087 # This must be Linux ELF.
10088 linux* | k*bsd*-gnu | kopensolaris*-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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10095 shlibpath_var=LD_LIBRARY_PATH
10096 shlibpath_overrides_runpath=no
10098 # Some binutils ld are patched to set DT_RUNPATH
10099 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10100 $as_echo_n "(cached) " >&6
10101 else
10102 lt_cv_shlibpath_overrides_runpath=no
10103 save_LDFLAGS=$LDFLAGS
10104 save_libdir=$libdir
10105 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10106 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10108 /* end confdefs.h. */
10111 main ()
10115 return 0;
10117 _ACEOF
10118 if ac_fn_c_try_link "$LINENO"; then :
10119 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10120 lt_cv_shlibpath_overrides_runpath=yes
10123 rm -f core conftest.err conftest.$ac_objext \
10124 conftest$ac_exeext conftest.$ac_ext
10125 LDFLAGS=$save_LDFLAGS
10126 libdir=$save_libdir
10130 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10132 # This implies no fast_install, which is unacceptable.
10133 # Some rework will be needed to allow for fast_install
10134 # before this can be enabled.
10135 hardcode_into_libs=yes
10137 # Append ld.so.conf contents to the search path
10138 if test -f /etc/ld.so.conf; then
10139 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' ' '`
10140 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10143 # We used to test for /lib/ld.so.1 and disable shared libraries on
10144 # powerpc, because MkLinux only supported shared libraries with the
10145 # GNU dynamic linker. Since this was broken with cross compilers,
10146 # most powerpc-linux boxes support dynamic linking these days and
10147 # people can always --disable-shared, the test was removed, and we
10148 # assume the GNU/Linux dynamic linker is in use.
10149 dynamic_linker='GNU/Linux ld.so'
10152 netbsd*)
10153 version_type=sunos
10154 need_lib_prefix=no
10155 need_version=no
10156 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10158 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10159 dynamic_linker='NetBSD (a.out) ld.so'
10160 else
10161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10162 soname_spec='${libname}${release}${shared_ext}$major'
10163 dynamic_linker='NetBSD ld.elf_so'
10165 shlibpath_var=LD_LIBRARY_PATH
10166 shlibpath_overrides_runpath=yes
10167 hardcode_into_libs=yes
10170 newsos6)
10171 version_type=linux
10172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10173 shlibpath_var=LD_LIBRARY_PATH
10174 shlibpath_overrides_runpath=yes
10177 *nto* | *qnx*)
10178 version_type=qnx
10179 need_lib_prefix=no
10180 need_version=no
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182 soname_spec='${libname}${release}${shared_ext}$major'
10183 shlibpath_var=LD_LIBRARY_PATH
10184 shlibpath_overrides_runpath=no
10185 hardcode_into_libs=yes
10186 dynamic_linker='ldqnx.so'
10189 openbsd*)
10190 version_type=sunos
10191 sys_lib_dlsearch_path_spec="/usr/lib"
10192 need_lib_prefix=no
10193 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10194 case $host_os in
10195 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10196 *) need_version=no ;;
10197 esac
10198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10199 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10200 shlibpath_var=LD_LIBRARY_PATH
10201 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10202 case $host_os in
10203 openbsd2.[89] | openbsd2.[89].*)
10204 shlibpath_overrides_runpath=no
10207 shlibpath_overrides_runpath=yes
10209 esac
10210 else
10211 shlibpath_overrides_runpath=yes
10215 os2*)
10216 libname_spec='$name'
10217 shrext_cmds=".dll"
10218 need_lib_prefix=no
10219 library_names_spec='$libname${shared_ext} $libname.a'
10220 dynamic_linker='OS/2 ld.exe'
10221 shlibpath_var=LIBPATH
10224 osf3* | osf4* | osf5*)
10225 version_type=osf
10226 need_lib_prefix=no
10227 need_version=no
10228 soname_spec='${libname}${release}${shared_ext}$major'
10229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10230 shlibpath_var=LD_LIBRARY_PATH
10231 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10232 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10235 rdos*)
10236 dynamic_linker=no
10239 solaris*)
10240 version_type=linux
10241 need_lib_prefix=no
10242 need_version=no
10243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10244 soname_spec='${libname}${release}${shared_ext}$major'
10245 shlibpath_var=LD_LIBRARY_PATH
10246 shlibpath_overrides_runpath=yes
10247 hardcode_into_libs=yes
10248 # ldd complains unless libraries are executable
10249 postinstall_cmds='chmod +x $lib'
10252 sunos4*)
10253 version_type=sunos
10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10255 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10256 shlibpath_var=LD_LIBRARY_PATH
10257 shlibpath_overrides_runpath=yes
10258 if test "$with_gnu_ld" = yes; then
10259 need_lib_prefix=no
10261 need_version=yes
10264 sysv4 | sysv4.3*)
10265 version_type=linux
10266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10267 soname_spec='${libname}${release}${shared_ext}$major'
10268 shlibpath_var=LD_LIBRARY_PATH
10269 case $host_vendor in
10270 sni)
10271 shlibpath_overrides_runpath=no
10272 need_lib_prefix=no
10273 runpath_var=LD_RUN_PATH
10275 siemens)
10276 need_lib_prefix=no
10278 motorola)
10279 need_lib_prefix=no
10280 need_version=no
10281 shlibpath_overrides_runpath=no
10282 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10284 esac
10287 sysv4*MP*)
10288 if test -d /usr/nec ;then
10289 version_type=linux
10290 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10291 soname_spec='$libname${shared_ext}.$major'
10292 shlibpath_var=LD_LIBRARY_PATH
10296 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10297 version_type=freebsd-elf
10298 need_lib_prefix=no
10299 need_version=no
10300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10301 soname_spec='${libname}${release}${shared_ext}$major'
10302 shlibpath_var=LD_LIBRARY_PATH
10303 shlibpath_overrides_runpath=yes
10304 hardcode_into_libs=yes
10305 if test "$with_gnu_ld" = yes; then
10306 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10307 else
10308 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10309 case $host_os in
10310 sco3.2v5*)
10311 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10313 esac
10315 sys_lib_dlsearch_path_spec='/usr/lib'
10318 tpf*)
10319 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10320 version_type=linux
10321 need_lib_prefix=no
10322 need_version=no
10323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10324 shlibpath_var=LD_LIBRARY_PATH
10325 shlibpath_overrides_runpath=no
10326 hardcode_into_libs=yes
10329 uts4*)
10330 version_type=linux
10331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10332 soname_spec='${libname}${release}${shared_ext}$major'
10333 shlibpath_var=LD_LIBRARY_PATH
10337 dynamic_linker=no
10339 esac
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10341 $as_echo "$dynamic_linker" >&6; }
10342 test "$dynamic_linker" = no && can_build_shared=no
10344 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10345 if test "$GCC" = yes; then
10346 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10349 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10350 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10352 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10353 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10448 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10449 hardcode_action=
10450 if test -n "$hardcode_libdir_flag_spec" ||
10451 test -n "$runpath_var" ||
10452 test "X$hardcode_automatic" = "Xyes" ; then
10454 # We can hardcode non-existent directories.
10455 if test "$hardcode_direct" != no &&
10456 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10457 # have to relink, otherwise we might link with an installed library
10458 # when we should be linking with a yet-to-be-installed one
10459 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10460 test "$hardcode_minus_L" != no; then
10461 # Linking always hardcodes the temporary library directory.
10462 hardcode_action=relink
10463 else
10464 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10465 hardcode_action=immediate
10467 else
10468 # We cannot hardcode anything, or else we can only hardcode existing
10469 # directories.
10470 hardcode_action=unsupported
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10473 $as_echo "$hardcode_action" >&6; }
10475 if test "$hardcode_action" = relink ||
10476 test "$inherit_rpath" = yes; then
10477 # Fast installation is not supported
10478 enable_fast_install=no
10479 elif test "$shlibpath_overrides_runpath" = yes ||
10480 test "$enable_shared" = no; then
10481 # Fast installation is not necessary
10482 enable_fast_install=needless
10490 if test "x$enable_dlopen" != xyes; then
10491 enable_dlopen=unknown
10492 enable_dlopen_self=unknown
10493 enable_dlopen_self_static=unknown
10494 else
10495 lt_cv_dlopen=no
10496 lt_cv_dlopen_libs=
10498 case $host_os in
10499 beos*)
10500 lt_cv_dlopen="load_add_on"
10501 lt_cv_dlopen_libs=
10502 lt_cv_dlopen_self=yes
10505 mingw* | pw32* | cegcc*)
10506 lt_cv_dlopen="LoadLibrary"
10507 lt_cv_dlopen_libs=
10510 cygwin*)
10511 lt_cv_dlopen="dlopen"
10512 lt_cv_dlopen_libs=
10515 darwin*)
10516 # if libdl is installed we need to link against it
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10518 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10519 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10520 $as_echo_n "(cached) " >&6
10521 else
10522 ac_check_lib_save_LIBS=$LIBS
10523 LIBS="-ldl $LIBS"
10524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10525 /* end confdefs.h. */
10527 /* Override any GCC internal prototype to avoid an error.
10528 Use char because int might match the return type of a GCC
10529 builtin and then its argument prototype would still apply. */
10530 #ifdef __cplusplus
10531 extern "C"
10532 #endif
10533 char dlopen ();
10535 main ()
10537 return dlopen ();
10539 return 0;
10541 _ACEOF
10542 if ac_fn_c_try_link "$LINENO"; then :
10543 ac_cv_lib_dl_dlopen=yes
10544 else
10545 ac_cv_lib_dl_dlopen=no
10547 rm -f core conftest.err conftest.$ac_objext \
10548 conftest$ac_exeext conftest.$ac_ext
10549 LIBS=$ac_check_lib_save_LIBS
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10552 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10553 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10554 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10555 else
10557 lt_cv_dlopen="dyld"
10558 lt_cv_dlopen_libs=
10559 lt_cv_dlopen_self=yes
10566 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10567 if test "x$ac_cv_func_shl_load" = x""yes; then :
10568 lt_cv_dlopen="shl_load"
10569 else
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10571 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10572 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10573 $as_echo_n "(cached) " >&6
10574 else
10575 ac_check_lib_save_LIBS=$LIBS
10576 LIBS="-ldld $LIBS"
10577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10578 /* end confdefs.h. */
10580 /* Override any GCC internal prototype to avoid an error.
10581 Use char because int might match the return type of a GCC
10582 builtin and then its argument prototype would still apply. */
10583 #ifdef __cplusplus
10584 extern "C"
10585 #endif
10586 char shl_load ();
10588 main ()
10590 return shl_load ();
10592 return 0;
10594 _ACEOF
10595 if ac_fn_c_try_link "$LINENO"; then :
10596 ac_cv_lib_dld_shl_load=yes
10597 else
10598 ac_cv_lib_dld_shl_load=no
10600 rm -f core conftest.err conftest.$ac_objext \
10601 conftest$ac_exeext conftest.$ac_ext
10602 LIBS=$ac_check_lib_save_LIBS
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10605 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10606 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10607 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10608 else
10609 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10610 if test "x$ac_cv_func_dlopen" = x""yes; then :
10611 lt_cv_dlopen="dlopen"
10612 else
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10614 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10615 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10616 $as_echo_n "(cached) " >&6
10617 else
10618 ac_check_lib_save_LIBS=$LIBS
10619 LIBS="-ldl $LIBS"
10620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10621 /* end confdefs.h. */
10623 /* Override any GCC internal prototype to avoid an error.
10624 Use char because int might match the return type of a GCC
10625 builtin and then its argument prototype would still apply. */
10626 #ifdef __cplusplus
10627 extern "C"
10628 #endif
10629 char dlopen ();
10631 main ()
10633 return dlopen ();
10635 return 0;
10637 _ACEOF
10638 if ac_fn_c_try_link "$LINENO"; then :
10639 ac_cv_lib_dl_dlopen=yes
10640 else
10641 ac_cv_lib_dl_dlopen=no
10643 rm -f core conftest.err conftest.$ac_objext \
10644 conftest$ac_exeext conftest.$ac_ext
10645 LIBS=$ac_check_lib_save_LIBS
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10648 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10649 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10650 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10651 else
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10653 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10654 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10655 $as_echo_n "(cached) " >&6
10656 else
10657 ac_check_lib_save_LIBS=$LIBS
10658 LIBS="-lsvld $LIBS"
10659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10660 /* end confdefs.h. */
10662 /* Override any GCC internal prototype to avoid an error.
10663 Use char because int might match the return type of a GCC
10664 builtin and then its argument prototype would still apply. */
10665 #ifdef __cplusplus
10666 extern "C"
10667 #endif
10668 char dlopen ();
10670 main ()
10672 return dlopen ();
10674 return 0;
10676 _ACEOF
10677 if ac_fn_c_try_link "$LINENO"; then :
10678 ac_cv_lib_svld_dlopen=yes
10679 else
10680 ac_cv_lib_svld_dlopen=no
10682 rm -f core conftest.err conftest.$ac_objext \
10683 conftest$ac_exeext conftest.$ac_ext
10684 LIBS=$ac_check_lib_save_LIBS
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10687 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10688 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10689 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10690 else
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10692 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10693 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10694 $as_echo_n "(cached) " >&6
10695 else
10696 ac_check_lib_save_LIBS=$LIBS
10697 LIBS="-ldld $LIBS"
10698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10699 /* end confdefs.h. */
10701 /* Override any GCC internal prototype to avoid an error.
10702 Use char because int might match the return type of a GCC
10703 builtin and then its argument prototype would still apply. */
10704 #ifdef __cplusplus
10705 extern "C"
10706 #endif
10707 char dld_link ();
10709 main ()
10711 return dld_link ();
10713 return 0;
10715 _ACEOF
10716 if ac_fn_c_try_link "$LINENO"; then :
10717 ac_cv_lib_dld_dld_link=yes
10718 else
10719 ac_cv_lib_dld_dld_link=no
10721 rm -f core conftest.err conftest.$ac_objext \
10722 conftest$ac_exeext conftest.$ac_ext
10723 LIBS=$ac_check_lib_save_LIBS
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10726 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10727 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10728 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10747 esac
10749 if test "x$lt_cv_dlopen" != xno; then
10750 enable_dlopen=yes
10751 else
10752 enable_dlopen=no
10755 case $lt_cv_dlopen in
10756 dlopen)
10757 save_CPPFLAGS="$CPPFLAGS"
10758 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10760 save_LDFLAGS="$LDFLAGS"
10761 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10763 save_LIBS="$LIBS"
10764 LIBS="$lt_cv_dlopen_libs $LIBS"
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10767 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10768 if test "${lt_cv_dlopen_self+set}" = set; then :
10769 $as_echo_n "(cached) " >&6
10770 else
10771 if test "$cross_compiling" = yes; then :
10772 lt_cv_dlopen_self=cross
10773 else
10774 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10775 lt_status=$lt_dlunknown
10776 cat > conftest.$ac_ext <<_LT_EOF
10777 #line 10777 "configure"
10778 #include "confdefs.h"
10780 #if HAVE_DLFCN_H
10781 #include <dlfcn.h>
10782 #endif
10784 #include <stdio.h>
10786 #ifdef RTLD_GLOBAL
10787 # define LT_DLGLOBAL RTLD_GLOBAL
10788 #else
10789 # ifdef DL_GLOBAL
10790 # define LT_DLGLOBAL DL_GLOBAL
10791 # else
10792 # define LT_DLGLOBAL 0
10793 # endif
10794 #endif
10796 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10797 find out it does not work in some platform. */
10798 #ifndef LT_DLLAZY_OR_NOW
10799 # ifdef RTLD_LAZY
10800 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10801 # else
10802 # ifdef DL_LAZY
10803 # define LT_DLLAZY_OR_NOW DL_LAZY
10804 # else
10805 # ifdef RTLD_NOW
10806 # define LT_DLLAZY_OR_NOW RTLD_NOW
10807 # else
10808 # ifdef DL_NOW
10809 # define LT_DLLAZY_OR_NOW DL_NOW
10810 # else
10811 # define LT_DLLAZY_OR_NOW 0
10812 # endif
10813 # endif
10814 # endif
10815 # endif
10816 #endif
10818 /* When -fvisbility=hidden is used, assume the code has been annotated
10819 correspondingly for the symbols needed. */
10820 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10821 void fnord () __attribute__((visibility("default")));
10822 #endif
10824 void fnord () { int i=42; }
10825 int main ()
10827 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10828 int status = $lt_dlunknown;
10830 if (self)
10832 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10833 else
10835 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10836 else puts (dlerror ());
10838 /* dlclose (self); */
10840 else
10841 puts (dlerror ());
10843 return status;
10845 _LT_EOF
10846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10847 (eval $ac_link) 2>&5
10848 ac_status=$?
10849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10850 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10851 (./conftest; exit; ) >&5 2>/dev/null
10852 lt_status=$?
10853 case x$lt_status in
10854 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10855 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10856 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10857 esac
10858 else :
10859 # compilation failed
10860 lt_cv_dlopen_self=no
10863 rm -fr conftest*
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10868 $as_echo "$lt_cv_dlopen_self" >&6; }
10870 if test "x$lt_cv_dlopen_self" = xyes; then
10871 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10873 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10874 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10875 $as_echo_n "(cached) " >&6
10876 else
10877 if test "$cross_compiling" = yes; then :
10878 lt_cv_dlopen_self_static=cross
10879 else
10880 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10881 lt_status=$lt_dlunknown
10882 cat > conftest.$ac_ext <<_LT_EOF
10883 #line 10883 "configure"
10884 #include "confdefs.h"
10886 #if HAVE_DLFCN_H
10887 #include <dlfcn.h>
10888 #endif
10890 #include <stdio.h>
10892 #ifdef RTLD_GLOBAL
10893 # define LT_DLGLOBAL RTLD_GLOBAL
10894 #else
10895 # ifdef DL_GLOBAL
10896 # define LT_DLGLOBAL DL_GLOBAL
10897 # else
10898 # define LT_DLGLOBAL 0
10899 # endif
10900 #endif
10902 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10903 find out it does not work in some platform. */
10904 #ifndef LT_DLLAZY_OR_NOW
10905 # ifdef RTLD_LAZY
10906 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10907 # else
10908 # ifdef DL_LAZY
10909 # define LT_DLLAZY_OR_NOW DL_LAZY
10910 # else
10911 # ifdef RTLD_NOW
10912 # define LT_DLLAZY_OR_NOW RTLD_NOW
10913 # else
10914 # ifdef DL_NOW
10915 # define LT_DLLAZY_OR_NOW DL_NOW
10916 # else
10917 # define LT_DLLAZY_OR_NOW 0
10918 # endif
10919 # endif
10920 # endif
10921 # endif
10922 #endif
10924 /* When -fvisbility=hidden is used, assume the code has been annotated
10925 correspondingly for the symbols needed. */
10926 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10927 void fnord () __attribute__((visibility("default")));
10928 #endif
10930 void fnord () { int i=42; }
10931 int main ()
10933 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10934 int status = $lt_dlunknown;
10936 if (self)
10938 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10939 else
10941 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10942 else puts (dlerror ());
10944 /* dlclose (self); */
10946 else
10947 puts (dlerror ());
10949 return status;
10951 _LT_EOF
10952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10953 (eval $ac_link) 2>&5
10954 ac_status=$?
10955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10956 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10957 (./conftest; exit; ) >&5 2>/dev/null
10958 lt_status=$?
10959 case x$lt_status in
10960 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10961 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10962 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10963 esac
10964 else :
10965 # compilation failed
10966 lt_cv_dlopen_self_static=no
10969 rm -fr conftest*
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10974 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10977 CPPFLAGS="$save_CPPFLAGS"
10978 LDFLAGS="$save_LDFLAGS"
10979 LIBS="$save_LIBS"
10981 esac
10983 case $lt_cv_dlopen_self in
10984 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10985 *) enable_dlopen_self=unknown ;;
10986 esac
10988 case $lt_cv_dlopen_self_static in
10989 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10990 *) enable_dlopen_self_static=unknown ;;
10991 esac
11010 striplib=
11011 old_striplib=
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11013 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11014 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11015 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11016 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11018 $as_echo "yes" >&6; }
11019 else
11020 # FIXME - insert some real tests, host_os isn't really good enough
11021 case $host_os in
11022 darwin*)
11023 if test -n "$STRIP" ; then
11024 striplib="$STRIP -x"
11025 old_striplib="$STRIP -S"
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11027 $as_echo "yes" >&6; }
11028 else
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11030 $as_echo "no" >&6; }
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11035 $as_echo "no" >&6; }
11037 esac
11051 # Report which library types will actually be built
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11053 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11055 $as_echo "$can_build_shared" >&6; }
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11058 $as_echo_n "checking whether to build shared libraries... " >&6; }
11059 test "$can_build_shared" = "no" && enable_shared=no
11061 # On AIX, shared libraries and static libraries use the same namespace, and
11062 # are all built from PIC.
11063 case $host_os in
11064 aix3*)
11065 test "$enable_shared" = yes && enable_static=no
11066 if test -n "$RANLIB"; then
11067 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11068 postinstall_cmds='$RANLIB $lib'
11072 aix[4-9]*)
11073 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11074 test "$enable_shared" = yes && enable_static=no
11077 esac
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11079 $as_echo "$enable_shared" >&6; }
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11082 $as_echo_n "checking whether to build static libraries... " >&6; }
11083 # Make sure either enable_shared or enable_static is yes.
11084 test "$enable_shared" = yes || enable_static=yes
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11086 $as_echo "$enable_static" >&6; }
11092 ac_ext=c
11093 ac_cpp='$CPP $CPPFLAGS'
11094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11098 CC="$lt_save_CC"
11112 ac_config_commands="$ac_config_commands libtool"
11117 # Only expand once:
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11123 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11124 # Check whether --enable-maintainer-mode was given.
11125 if test "${enable_maintainer_mode+set}" = set; then :
11126 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11127 else
11128 USE_MAINTAINER_MODE=no
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11132 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11133 if test $USE_MAINTAINER_MODE = yes; then
11134 MAINTAINER_MODE_TRUE=
11135 MAINTAINER_MODE_FALSE='#'
11136 else
11137 MAINTAINER_MODE_TRUE='#'
11138 MAINTAINER_MODE_FALSE=
11141 MAINT=$MAINTAINER_MODE_TRUE
11145 for ac_header in sys/mman.h
11146 do :
11147 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11148 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11149 cat >>confdefs.h <<_ACEOF
11150 #define HAVE_SYS_MMAN_H 1
11151 _ACEOF
11155 done
11157 for ac_func in mmap
11158 do :
11159 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11160 if test "x$ac_cv_func_mmap" = x""yes; then :
11161 cat >>confdefs.h <<_ACEOF
11162 #define HAVE_MMAP 1
11163 _ACEOF
11166 done
11169 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11170 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11171 libffi_header_sys_mman_h=yes
11172 else
11173 libffi_header_sys_mman_h=no
11177 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11178 if test "x$ac_cv_func_mmap" = x""yes; then :
11179 libffi_func_mmap=yes
11180 else
11181 libffi_func_mmap=no
11184 if test "$libffi_header_sys_mman_h" != yes \
11185 || test "$libffi_func_mmap" != yes; then
11186 ac_cv_func_mmap_file=no
11187 ac_cv_func_mmap_dev_zero=no
11188 ac_cv_func_mmap_anon=no
11189 else
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
11191 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
11192 if test "${ac_cv_func_mmap_file+set}" = set; then :
11193 $as_echo_n "(cached) " >&6
11194 else
11195 # Add a system to this blacklist if
11196 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
11197 # memory area containing the same data that you'd get if you applied
11198 # read() to the same fd. The only system known to have a problem here
11199 # is VMS, where text files have record structure.
11200 case "$host_os" in
11201 vms* | ultrix*)
11202 ac_cv_func_mmap_file=no ;;
11204 ac_cv_func_mmap_file=yes;;
11205 esac
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
11208 $as_echo "$ac_cv_func_mmap_file" >&6; }
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
11210 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
11211 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then :
11212 $as_echo_n "(cached) " >&6
11213 else
11214 # Add a system to this blacklist if it has mmap() but /dev/zero
11215 # does not exist, or if mmapping /dev/zero does not give anonymous
11216 # zeroed pages with both the following properties:
11217 # 1. If you map N consecutive pages in with one call, and then
11218 # unmap any subset of those pages, the pages that were not
11219 # explicitly unmapped remain accessible.
11220 # 2. If you map two adjacent blocks of memory and then unmap them
11221 # both at once, they must both go away.
11222 # Systems known to be in this category are Windows (all variants),
11223 # VMS, and Darwin.
11224 case "$host_os" in
11225 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
11226 ac_cv_func_mmap_dev_zero=no ;;
11228 ac_cv_func_mmap_dev_zero=yes;;
11229 esac
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
11232 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
11234 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
11236 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
11237 if test "${ac_cv_decl_map_anon+set}" = set; then :
11238 $as_echo_n "(cached) " >&6
11239 else
11240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11241 /* end confdefs.h. */
11242 #include <sys/types.h>
11243 #include <sys/mman.h>
11244 #include <unistd.h>
11246 #ifndef MAP_ANONYMOUS
11247 #define MAP_ANONYMOUS MAP_ANON
11248 #endif
11251 main ()
11253 int n = MAP_ANONYMOUS;
11255 return 0;
11257 _ACEOF
11258 if ac_fn_c_try_compile "$LINENO"; then :
11259 ac_cv_decl_map_anon=yes
11260 else
11261 ac_cv_decl_map_anon=no
11263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
11266 $as_echo "$ac_cv_decl_map_anon" >&6; }
11268 if test $ac_cv_decl_map_anon = no; then
11269 ac_cv_func_mmap_anon=no
11270 else
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
11272 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
11273 if test "${ac_cv_func_mmap_anon+set}" = set; then :
11274 $as_echo_n "(cached) " >&6
11275 else
11276 # Add a system to this blacklist if it has mmap() and MAP_ANON or
11277 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
11278 # doesn't give anonymous zeroed pages with the same properties listed
11279 # above for use of /dev/zero.
11280 # Systems known to be in this category are Windows, VMS, and SCO Unix.
11281 case "$host_os" in
11282 vms* | cygwin* | pe | mingw* | sco* | udk* )
11283 ac_cv_func_mmap_anon=no ;;
11285 ac_cv_func_mmap_anon=yes;;
11286 esac
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
11289 $as_echo "$ac_cv_func_mmap_anon" >&6; }
11293 if test $ac_cv_func_mmap_file = yes; then
11295 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
11298 if test $ac_cv_func_mmap_dev_zero = yes; then
11300 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
11303 if test $ac_cv_func_mmap_anon = yes; then
11305 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
11310 if test -d $srcdir/testsuite; then
11311 TESTSUBDIR_TRUE=
11312 TESTSUBDIR_FALSE='#'
11313 else
11314 TESTSUBDIR_TRUE='#'
11315 TESTSUBDIR_FALSE=
11319 TARGETDIR="unknown"
11320 case "$host" in
11321 alpha*-*-*)
11322 TARGET=ALPHA; TARGETDIR=alpha;
11323 # Support 128-bit long double, changeable via command-line switch.
11324 HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
11327 arm*-*-*)
11328 TARGET=ARM; TARGETDIR=arm
11331 amd64-*-freebsd* | amd64-*-openbsd*)
11332 TARGET=X86_64; TARGETDIR=x86
11335 avr32*-*-*)
11336 TARGET=AVR32; TARGETDIR=avr32
11339 cris-*-*)
11340 TARGET=LIBFFI_CRIS; TARGETDIR=cris
11343 frv-*-*)
11344 TARGET=FRV; TARGETDIR=frv
11347 hppa*-*-linux* | parisc*-*-linux*)
11348 TARGET=PA_LINUX; TARGETDIR=pa
11350 hppa*64-*-hpux*)
11351 TARGET=PA64_HPUX; TARGETDIR=pa
11353 hppa*-*-hpux*)
11354 TARGET=PA_HPUX; TARGETDIR=pa
11357 i?86-*-freebsd* | i?86-*-openbsd*)
11358 TARGET=X86_FREEBSD; TARGETDIR=x86
11360 i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2*)
11361 TARGET=X86_WIN32; TARGETDIR=x86
11362 # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
11363 # We must also check with_cross_host to decide if this is a native
11364 # or cross-build and select where to install dlls appropriately.
11365 if test -n "$with_cross_host" &&
11366 test x"$with_cross_host" != x"no"; then
11367 AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
11368 else
11369 AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
11372 i?86-*-darwin*)
11373 TARGET=X86_DARWIN; TARGETDIR=x86
11375 i?86-*-solaris2.1[0-9]*)
11376 TARGET=X86_64; TARGETDIR=x86
11378 i?86-*-*)
11379 TARGET=X86_64; TARGETDIR=x86
11382 ia64*-*-*)
11383 TARGET=IA64; TARGETDIR=ia64
11386 m32r*-*-*)
11387 TARGET=M32R; TARGETDIR=m32r
11390 m68k-*-*)
11391 TARGET=M68K; TARGETDIR=m68k
11394 mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
11395 TARGET=MIPS; TARGETDIR=mips
11397 mips*-*-linux*)
11398 # Support 128-bit long double for NewABI.
11399 HAVE_LONG_DOUBLE='defined(__mips64)'
11400 TARGET=MIPS; TARGETDIR=mips
11403 powerpc*-*-linux* | powerpc-*-sysv*)
11404 TARGET=POWERPC; TARGETDIR=powerpc
11406 powerpc-*-beos*)
11407 TARGET=POWERPC; TARGETDIR=powerpc
11409 powerpc-*-darwin*)
11410 TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
11412 powerpc-*-aix* | rs6000-*-aix*)
11413 TARGET=POWERPC_AIX; TARGETDIR=powerpc
11415 powerpc-*-freebsd*)
11416 TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
11418 powerpc64-*-freebsd*)
11419 TARGET=POWERPC; TARGETDIR=powerpc
11421 powerpc*-*-rtems*)
11422 TARGET=POWERPC; TARGETDIR=powerpc
11425 s390-*-* | s390x-*-*)
11426 TARGET=S390; TARGETDIR=s390
11429 sh-*-* | sh[34]*-*-*)
11430 TARGET=SH; TARGETDIR=sh
11432 sh64-*-* | sh5*-*-*)
11433 TARGET=SH64; TARGETDIR=sh64
11436 sparc*-*-*)
11437 TARGET=SPARC; TARGETDIR=sparc
11440 x86_64-*-darwin*)
11441 TARGET=X86_DARWIN; TARGETDIR=x86
11444 x86_64-*-cygwin* | x86_64-*-mingw*)
11445 TARGET=X86_WIN64; TARGETDIR=x86
11446 # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
11447 # We must also check with_cross_host to decide if this is a native
11448 # or cross-build and select where to install dlls appropriately.
11449 if test -n "$with_cross_host" &&
11450 test x"$with_cross_host" != x"no"; then
11451 AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
11452 else
11453 AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
11457 x86_64-*-*)
11458 TARGET=X86_64; TARGETDIR=x86
11460 esac
11465 if test $TARGETDIR = unknown; then
11466 as_fn_error "\"libffi has not been ported to $host.\"" "$LINENO" 5
11469 if test x$TARGET = xMIPS; then
11470 MIPS_TRUE=
11471 MIPS_FALSE='#'
11472 else
11473 MIPS_TRUE='#'
11474 MIPS_FALSE=
11477 if test x$TARGET = xSPARC; then
11478 SPARC_TRUE=
11479 SPARC_FALSE='#'
11480 else
11481 SPARC_TRUE='#'
11482 SPARC_FALSE=
11485 if test x$TARGET = xX86; then
11486 X86_TRUE=
11487 X86_FALSE='#'
11488 else
11489 X86_TRUE='#'
11490 X86_FALSE=
11493 if test x$TARGET = xX86_FREEBSD; then
11494 X86_FREEBSD_TRUE=
11495 X86_FREEBSD_FALSE='#'
11496 else
11497 X86_FREEBSD_TRUE='#'
11498 X86_FREEBSD_FALSE=
11501 if test x$TARGET = xX86_WIN32; then
11502 X86_WIN32_TRUE=
11503 X86_WIN32_FALSE='#'
11504 else
11505 X86_WIN32_TRUE='#'
11506 X86_WIN32_FALSE=
11509 if test x$TARGET = xX86_WIN64; then
11510 X86_WIN64_TRUE=
11511 X86_WIN64_FALSE='#'
11512 else
11513 X86_WIN64_TRUE='#'
11514 X86_WIN64_FALSE=
11517 if test x$TARGET = xX86_DARWIN; then
11518 X86_DARWIN_TRUE=
11519 X86_DARWIN_FALSE='#'
11520 else
11521 X86_DARWIN_TRUE='#'
11522 X86_DARWIN_FALSE=
11525 if test x$TARGET = xALPHA; then
11526 ALPHA_TRUE=
11527 ALPHA_FALSE='#'
11528 else
11529 ALPHA_TRUE='#'
11530 ALPHA_FALSE=
11533 if test x$TARGET = xIA64; then
11534 IA64_TRUE=
11535 IA64_FALSE='#'
11536 else
11537 IA64_TRUE='#'
11538 IA64_FALSE=
11541 if test x$TARGET = xM32R; then
11542 M32R_TRUE=
11543 M32R_FALSE='#'
11544 else
11545 M32R_TRUE='#'
11546 M32R_FALSE=
11549 if test x$TARGET = xM68K; then
11550 M68K_TRUE=
11551 M68K_FALSE='#'
11552 else
11553 M68K_TRUE='#'
11554 M68K_FALSE=
11557 if test x$TARGET = xPOWERPC; then
11558 POWERPC_TRUE=
11559 POWERPC_FALSE='#'
11560 else
11561 POWERPC_TRUE='#'
11562 POWERPC_FALSE=
11565 if test x$TARGET = xPOWERPC_AIX; then
11566 POWERPC_AIX_TRUE=
11567 POWERPC_AIX_FALSE='#'
11568 else
11569 POWERPC_AIX_TRUE='#'
11570 POWERPC_AIX_FALSE=
11573 if test x$TARGET = xPOWERPC_DARWIN; then
11574 POWERPC_DARWIN_TRUE=
11575 POWERPC_DARWIN_FALSE='#'
11576 else
11577 POWERPC_DARWIN_TRUE='#'
11578 POWERPC_DARWIN_FALSE=
11581 if test x$TARGET = xPOWERPC_FREEBSD; then
11582 POWERPC_FREEBSD_TRUE=
11583 POWERPC_FREEBSD_FALSE='#'
11584 else
11585 POWERPC_FREEBSD_TRUE='#'
11586 POWERPC_FREEBSD_FALSE=
11589 if test x$TARGET = xARM; then
11590 ARM_TRUE=
11591 ARM_FALSE='#'
11592 else
11593 ARM_TRUE='#'
11594 ARM_FALSE=
11597 if test x$TARGET = xAVR32; then
11598 AVR32_TRUE=
11599 AVR32_FALSE='#'
11600 else
11601 AVR32_TRUE='#'
11602 AVR32_FALSE=
11605 if test x$TARGET = xLIBFFI_CRIS; then
11606 LIBFFI_CRIS_TRUE=
11607 LIBFFI_CRIS_FALSE='#'
11608 else
11609 LIBFFI_CRIS_TRUE='#'
11610 LIBFFI_CRIS_FALSE=
11613 if test x$TARGET = xFRV; then
11614 FRV_TRUE=
11615 FRV_FALSE='#'
11616 else
11617 FRV_TRUE='#'
11618 FRV_FALSE=
11621 if test x$TARGET = xS390; then
11622 S390_TRUE=
11623 S390_FALSE='#'
11624 else
11625 S390_TRUE='#'
11626 S390_FALSE=
11629 if test x$TARGET = xX86_64; then
11630 X86_64_TRUE=
11631 X86_64_FALSE='#'
11632 else
11633 X86_64_TRUE='#'
11634 X86_64_FALSE=
11637 if test x$TARGET = xSH; then
11638 SH_TRUE=
11639 SH_FALSE='#'
11640 else
11641 SH_TRUE='#'
11642 SH_FALSE=
11645 if test x$TARGET = xSH64; then
11646 SH64_TRUE=
11647 SH64_FALSE='#'
11648 else
11649 SH64_TRUE='#'
11650 SH64_FALSE=
11653 if test x$TARGET = xPA_LINUX; then
11654 PA_LINUX_TRUE=
11655 PA_LINUX_FALSE='#'
11656 else
11657 PA_LINUX_TRUE='#'
11658 PA_LINUX_FALSE=
11661 if test x$TARGET = xPA_HPUX; then
11662 PA_HPUX_TRUE=
11663 PA_HPUX_FALSE='#'
11664 else
11665 PA_HPUX_TRUE='#'
11666 PA_HPUX_FALSE=
11669 if test x$TARGET = xPA64_HPUX; then
11670 PA64_HPUX_TRUE=
11671 PA64_HPUX_FALSE='#'
11672 else
11673 PA64_HPUX_TRUE='#'
11674 PA64_HPUX_FALSE=
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11679 $as_echo_n "checking for ANSI C header files... " >&6; }
11680 if test "${ac_cv_header_stdc+set}" = set; then :
11681 $as_echo_n "(cached) " >&6
11682 else
11683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11684 /* end confdefs.h. */
11685 #include <stdlib.h>
11686 #include <stdarg.h>
11687 #include <string.h>
11688 #include <float.h>
11691 main ()
11695 return 0;
11697 _ACEOF
11698 if ac_fn_c_try_compile "$LINENO"; then :
11699 ac_cv_header_stdc=yes
11700 else
11701 ac_cv_header_stdc=no
11703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11705 if test $ac_cv_header_stdc = yes; then
11706 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11708 /* end confdefs.h. */
11709 #include <string.h>
11711 _ACEOF
11712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11713 $EGREP "memchr" >/dev/null 2>&1; then :
11715 else
11716 ac_cv_header_stdc=no
11718 rm -f conftest*
11722 if test $ac_cv_header_stdc = yes; then
11723 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11725 /* end confdefs.h. */
11726 #include <stdlib.h>
11728 _ACEOF
11729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11730 $EGREP "free" >/dev/null 2>&1; then :
11732 else
11733 ac_cv_header_stdc=no
11735 rm -f conftest*
11739 if test $ac_cv_header_stdc = yes; then
11740 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11741 if test "$cross_compiling" = yes; then :
11743 else
11744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11745 /* end confdefs.h. */
11746 #include <ctype.h>
11747 #include <stdlib.h>
11748 #if ((' ' & 0x0FF) == 0x020)
11749 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11750 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11751 #else
11752 # define ISLOWER(c) \
11753 (('a' <= (c) && (c) <= 'i') \
11754 || ('j' <= (c) && (c) <= 'r') \
11755 || ('s' <= (c) && (c) <= 'z'))
11756 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11757 #endif
11759 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11761 main ()
11763 int i;
11764 for (i = 0; i < 256; i++)
11765 if (XOR (islower (i), ISLOWER (i))
11766 || toupper (i) != TOUPPER (i))
11767 return 2;
11768 return 0;
11770 _ACEOF
11771 if ac_fn_c_try_run "$LINENO"; then :
11773 else
11774 ac_cv_header_stdc=no
11776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11777 conftest.$ac_objext conftest.beam conftest.$ac_ext
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11783 $as_echo "$ac_cv_header_stdc" >&6; }
11784 if test $ac_cv_header_stdc = yes; then
11786 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11790 for ac_func in memcpy
11791 do :
11792 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
11793 if test "x$ac_cv_func_memcpy" = x""yes; then :
11794 cat >>confdefs.h <<_ACEOF
11795 #define HAVE_MEMCPY 1
11796 _ACEOF
11799 done
11801 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11802 # for constant arguments. Useless!
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11804 $as_echo_n "checking for working alloca.h... " >&6; }
11805 if test "${ac_cv_working_alloca_h+set}" = set; then :
11806 $as_echo_n "(cached) " >&6
11807 else
11808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11809 /* end confdefs.h. */
11810 #include <alloca.h>
11812 main ()
11814 char *p = (char *) alloca (2 * sizeof (int));
11815 if (p) return 0;
11817 return 0;
11819 _ACEOF
11820 if ac_fn_c_try_link "$LINENO"; then :
11821 ac_cv_working_alloca_h=yes
11822 else
11823 ac_cv_working_alloca_h=no
11825 rm -f core conftest.err conftest.$ac_objext \
11826 conftest$ac_exeext conftest.$ac_ext
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11829 $as_echo "$ac_cv_working_alloca_h" >&6; }
11830 if test $ac_cv_working_alloca_h = yes; then
11832 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11837 $as_echo_n "checking for alloca... " >&6; }
11838 if test "${ac_cv_func_alloca_works+set}" = set; then :
11839 $as_echo_n "(cached) " >&6
11840 else
11841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11842 /* end confdefs.h. */
11843 #ifdef __GNUC__
11844 # define alloca __builtin_alloca
11845 #else
11846 # ifdef _MSC_VER
11847 # include <malloc.h>
11848 # define alloca _alloca
11849 # else
11850 # ifdef HAVE_ALLOCA_H
11851 # include <alloca.h>
11852 # else
11853 # ifdef _AIX
11854 #pragma alloca
11855 # else
11856 # ifndef alloca /* predefined by HP cc +Olibcalls */
11857 char *alloca ();
11858 # endif
11859 # endif
11860 # endif
11861 # endif
11862 #endif
11865 main ()
11867 char *p = (char *) alloca (1);
11868 if (p) return 0;
11870 return 0;
11872 _ACEOF
11873 if ac_fn_c_try_link "$LINENO"; then :
11874 ac_cv_func_alloca_works=yes
11875 else
11876 ac_cv_func_alloca_works=no
11878 rm -f core conftest.err conftest.$ac_objext \
11879 conftest$ac_exeext conftest.$ac_ext
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11882 $as_echo "$ac_cv_func_alloca_works" >&6; }
11884 if test $ac_cv_func_alloca_works = yes; then
11886 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11888 else
11889 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11890 # that cause trouble. Some versions do not even contain alloca or
11891 # contain a buggy version. If you still want to use their alloca,
11892 # use ar to extract alloca.o from them instead of compiling alloca.c.
11894 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11896 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11900 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11901 if test "${ac_cv_os_cray+set}" = set; then :
11902 $as_echo_n "(cached) " >&6
11903 else
11904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11905 /* end confdefs.h. */
11906 #if defined CRAY && ! defined CRAY2
11907 webecray
11908 #else
11909 wenotbecray
11910 #endif
11912 _ACEOF
11913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11914 $EGREP "webecray" >/dev/null 2>&1; then :
11915 ac_cv_os_cray=yes
11916 else
11917 ac_cv_os_cray=no
11919 rm -f conftest*
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11923 $as_echo "$ac_cv_os_cray" >&6; }
11924 if test $ac_cv_os_cray = yes; then
11925 for ac_func in _getb67 GETB67 getb67; do
11926 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11927 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11928 eval as_val=\$$as_ac_var
11929 if test "x$as_val" = x""yes; then :
11931 cat >>confdefs.h <<_ACEOF
11932 #define CRAY_STACKSEG_END $ac_func
11933 _ACEOF
11935 break
11938 done
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11942 $as_echo_n "checking stack direction for C alloca... " >&6; }
11943 if test "${ac_cv_c_stack_direction+set}" = set; then :
11944 $as_echo_n "(cached) " >&6
11945 else
11946 if test "$cross_compiling" = yes; then :
11947 ac_cv_c_stack_direction=0
11948 else
11949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11950 /* end confdefs.h. */
11951 $ac_includes_default
11953 find_stack_direction ()
11955 static char *addr = 0;
11956 auto char dummy;
11957 if (addr == 0)
11959 addr = &dummy;
11960 return find_stack_direction ();
11962 else
11963 return (&dummy > addr) ? 1 : -1;
11967 main ()
11969 return find_stack_direction () < 0;
11971 _ACEOF
11972 if ac_fn_c_try_run "$LINENO"; then :
11973 ac_cv_c_stack_direction=1
11974 else
11975 ac_cv_c_stack_direction=-1
11977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11978 conftest.$ac_objext conftest.beam conftest.$ac_ext
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11983 $as_echo "$ac_cv_c_stack_direction" >&6; }
11984 cat >>confdefs.h <<_ACEOF
11985 #define STACK_DIRECTION $ac_cv_c_stack_direction
11986 _ACEOF
11992 # The cast to long int works around a bug in the HP C Compiler
11993 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11994 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11995 # This bug is HP SR number 8606223364.
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
11997 $as_echo_n "checking size of double... " >&6; }
11998 if test "${ac_cv_sizeof_double+set}" = set; then :
11999 $as_echo_n "(cached) " >&6
12000 else
12001 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
12003 else
12004 if test "$ac_cv_type_double" = yes; then
12005 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12007 { as_fn_set_status 77
12008 as_fn_error "cannot compute sizeof (double)
12009 See \`config.log' for more details." "$LINENO" 5; }; }
12010 else
12011 ac_cv_sizeof_double=0
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
12017 $as_echo "$ac_cv_sizeof_double" >&6; }
12021 cat >>confdefs.h <<_ACEOF
12022 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
12023 _ACEOF
12026 # The cast to long int works around a bug in the HP C Compiler
12027 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12028 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12029 # This bug is HP SR number 8606223364.
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
12031 $as_echo_n "checking size of long double... " >&6; }
12032 if test "${ac_cv_sizeof_long_double+set}" = set; then :
12033 $as_echo_n "(cached) " >&6
12034 else
12035 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
12037 else
12038 if test "$ac_cv_type_long_double" = yes; then
12039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12041 { as_fn_set_status 77
12042 as_fn_error "cannot compute sizeof (long double)
12043 See \`config.log' for more details." "$LINENO" 5; }; }
12044 else
12045 ac_cv_sizeof_long_double=0
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
12051 $as_echo "$ac_cv_sizeof_long_double" >&6; }
12055 cat >>confdefs.h <<_ACEOF
12056 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12057 _ACEOF
12061 # Also AC_SUBST this variable for ffi.h.
12062 if test -z "$HAVE_LONG_DOUBLE"; then
12063 HAVE_LONG_DOUBLE=0
12064 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
12065 if test $ac_cv_sizeof_long_double != 0; then
12066 HAVE_LONG_DOUBLE=1
12068 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12076 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12077 if test "${ac_cv_c_bigendian+set}" = set; then :
12078 $as_echo_n "(cached) " >&6
12079 else
12080 ac_cv_c_bigendian=unknown
12081 # See if we're dealing with a universal compiler.
12082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12083 /* end confdefs.h. */
12084 #ifndef __APPLE_CC__
12085 not a universal capable compiler
12086 #endif
12087 typedef int dummy;
12089 _ACEOF
12090 if ac_fn_c_try_compile "$LINENO"; then :
12092 # Check for potential -arch flags. It is not universal unless
12093 # there are at least two -arch flags with different values.
12094 ac_arch=
12095 ac_prev=
12096 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12097 if test -n "$ac_prev"; then
12098 case $ac_word in
12099 i?86 | x86_64 | ppc | ppc64)
12100 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12101 ac_arch=$ac_word
12102 else
12103 ac_cv_c_bigendian=universal
12104 break
12107 esac
12108 ac_prev=
12109 elif test "x$ac_word" = "x-arch"; then
12110 ac_prev=arch
12112 done
12114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12115 if test $ac_cv_c_bigendian = unknown; then
12116 # See if sys/param.h defines the BYTE_ORDER macro.
12117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118 /* end confdefs.h. */
12119 #include <sys/types.h>
12120 #include <sys/param.h>
12123 main ()
12125 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12126 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12127 && LITTLE_ENDIAN)
12128 bogus endian macros
12129 #endif
12132 return 0;
12134 _ACEOF
12135 if ac_fn_c_try_compile "$LINENO"; then :
12136 # It does; now see whether it defined to BIG_ENDIAN or not.
12137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138 /* end confdefs.h. */
12139 #include <sys/types.h>
12140 #include <sys/param.h>
12143 main ()
12145 #if BYTE_ORDER != BIG_ENDIAN
12146 not big endian
12147 #endif
12150 return 0;
12152 _ACEOF
12153 if ac_fn_c_try_compile "$LINENO"; then :
12154 ac_cv_c_bigendian=yes
12155 else
12156 ac_cv_c_bigendian=no
12158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12162 if test $ac_cv_c_bigendian = unknown; then
12163 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12166 #include <limits.h>
12169 main ()
12171 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12172 bogus endian macros
12173 #endif
12176 return 0;
12178 _ACEOF
12179 if ac_fn_c_try_compile "$LINENO"; then :
12180 # It does; now see whether it defined to _BIG_ENDIAN or not.
12181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182 /* end confdefs.h. */
12183 #include <limits.h>
12186 main ()
12188 #ifndef _BIG_ENDIAN
12189 not big endian
12190 #endif
12193 return 0;
12195 _ACEOF
12196 if ac_fn_c_try_compile "$LINENO"; then :
12197 ac_cv_c_bigendian=yes
12198 else
12199 ac_cv_c_bigendian=no
12201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12205 if test $ac_cv_c_bigendian = unknown; then
12206 # Compile a test program.
12207 if test "$cross_compiling" = yes; then :
12208 # Try to guess by grepping values from an object file.
12209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12210 /* end confdefs.h. */
12211 short int ascii_mm[] =
12212 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12213 short int ascii_ii[] =
12214 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12215 int use_ascii (int i) {
12216 return ascii_mm[i] + ascii_ii[i];
12218 short int ebcdic_ii[] =
12219 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12220 short int ebcdic_mm[] =
12221 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12222 int use_ebcdic (int i) {
12223 return ebcdic_mm[i] + ebcdic_ii[i];
12225 extern int foo;
12228 main ()
12230 return use_ascii (foo) == use_ebcdic (foo);
12232 return 0;
12234 _ACEOF
12235 if ac_fn_c_try_compile "$LINENO"; then :
12236 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12237 ac_cv_c_bigendian=yes
12239 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12240 if test "$ac_cv_c_bigendian" = unknown; then
12241 ac_cv_c_bigendian=no
12242 else
12243 # finding both strings is unlikely to happen, but who knows?
12244 ac_cv_c_bigendian=unknown
12248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12249 else
12250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12251 /* end confdefs.h. */
12252 $ac_includes_default
12254 main ()
12257 /* Are we little or big endian? From Harbison&Steele. */
12258 union
12260 long int l;
12261 char c[sizeof (long int)];
12262 } u;
12263 u.l = 1;
12264 return u.c[sizeof (long int) - 1] == 1;
12267 return 0;
12269 _ACEOF
12270 if ac_fn_c_try_run "$LINENO"; then :
12271 ac_cv_c_bigendian=no
12272 else
12273 ac_cv_c_bigendian=yes
12275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12276 conftest.$ac_objext conftest.beam conftest.$ac_ext
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12282 $as_echo "$ac_cv_c_bigendian" >&6; }
12283 case $ac_cv_c_bigendian in #(
12284 yes)
12285 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12286 ;; #(
12288 ;; #(
12289 universal)
12291 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12293 ;; #(
12295 as_fn_error "unknown endianness
12296 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12297 esac
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
12301 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
12302 if test "${gcc_cv_as_cfi_pseudo_op+set}" = set; then :
12303 $as_echo_n "(cached) " >&6
12304 else
12306 gcc_cv_as_cfi_pseudo_op=unknown
12307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12308 /* end confdefs.h. */
12309 asm (".cfi_startproc\n\t.cfi_endproc");
12311 main ()
12315 return 0;
12317 _ACEOF
12318 if ac_fn_c_try_compile "$LINENO"; then :
12319 gcc_cv_as_cfi_pseudo_op=yes
12320 else
12321 gcc_cv_as_cfi_pseudo_op=no
12323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
12327 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
12328 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
12330 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
12335 if test x$TARGET = xSPARC; then
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
12337 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
12338 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then :
12339 $as_echo_n "(cached) " >&6
12340 else
12342 save_CFLAGS="$CFLAGS"
12343 save_LDFLAGS="$LDFLAGS"
12344 CFLAGS="$CFLAGS -fpic"
12345 LDFLAGS="$LDFLAGS -shared"
12346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12347 /* end confdefs.h. */
12348 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
12350 main ()
12354 return 0;
12356 _ACEOF
12357 if ac_fn_c_try_link "$LINENO"; then :
12358 libffi_cv_as_sparc_ua_pcrel=yes
12359 else
12360 libffi_cv_as_sparc_ua_pcrel=no
12362 rm -f core conftest.err conftest.$ac_objext \
12363 conftest$ac_exeext conftest.$ac_ext
12364 CFLAGS="$save_CFLAGS"
12365 LDFLAGS="$save_LDFLAGS"
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
12368 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
12369 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
12371 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
12376 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
12377 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then :
12378 $as_echo_n "(cached) " >&6
12379 else
12381 libffi_cv_as_register_pseudo_op=unknown
12382 # Check if we have .register
12383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12384 /* end confdefs.h. */
12385 asm (".register %g2, #scratch");
12387 main ()
12391 return 0;
12393 _ACEOF
12394 if ac_fn_c_try_compile "$LINENO"; then :
12395 libffi_cv_as_register_pseudo_op=yes
12396 else
12397 libffi_cv_as_register_pseudo_op=no
12399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
12403 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
12404 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
12406 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
12411 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
12413 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
12414 if test "${libffi_cv_as_x86_pcrel+set}" = set; then :
12415 $as_echo_n "(cached) " >&6
12416 else
12418 libffi_cv_as_x86_pcrel=yes
12419 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
12420 if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
12421 libffi_cv_as_x86_pcrel=no
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
12426 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
12427 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
12429 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
12434 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
12435 if test "${libffi_cv_as_ascii_pseudo_op+set}" = set; then :
12436 $as_echo_n "(cached) " >&6
12437 else
12439 libffi_cv_as_ascii_pseudo_op=unknown
12440 # Check if we have .ascii
12441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12442 /* end confdefs.h. */
12443 asm (".ascii \\"string\\"");
12445 main ()
12449 return 0;
12451 _ACEOF
12452 if ac_fn_c_try_compile "$LINENO"; then :
12453 libffi_cv_as_ascii_pseudo_op=yes
12454 else
12455 libffi_cv_as_ascii_pseudo_op=no
12457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
12461 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
12462 if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
12464 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
12469 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
12470 if test "${libffi_cv_as_string_pseudo_op+set}" = set; then :
12471 $as_echo_n "(cached) " >&6
12472 else
12474 libffi_cv_as_string_pseudo_op=unknown
12475 # Check if we have .string
12476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12477 /* end confdefs.h. */
12478 asm (".string \\"string\\"");
12480 main ()
12484 return 0;
12486 _ACEOF
12487 if ac_fn_c_try_compile "$LINENO"; then :
12488 libffi_cv_as_string_pseudo_op=yes
12489 else
12490 libffi_cv_as_string_pseudo_op=no
12492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
12496 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
12497 if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
12499 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
12504 case "$target" in
12505 *-apple-darwin10* | *-*-freebsd* | *-*-openbsd* | *-pc-solaris*)
12507 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
12510 esac
12512 if test x$TARGET = xX86_64; then
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
12514 $as_echo_n "checking assembler supports unwind section type... " >&6; }
12515 if test "${libffi_cv_as_x86_64_unwind_section_type+set}" = set; then :
12516 $as_echo_n "(cached) " >&6
12517 else
12519 libffi_cv_as_x86_64_unwind_section_type=yes
12520 echo '.section .eh_frame,"a",@unwind' > conftest.s
12521 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
12522 libffi_cv_as_x86_64_unwind_section_type=no
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
12527 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
12528 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
12530 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
12536 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
12537 if test "${libffi_cv_ro_eh_frame+set}" = set; then :
12538 $as_echo_n "(cached) " >&6
12539 else
12541 libffi_cv_ro_eh_frame=no
12542 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
12543 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
12544 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
12545 libffi_cv_ro_eh_frame=yes
12546 elif grep '.section.*eh_frame.*#alloc' conftest.c \
12547 | grep -v '#write' > /dev/null; then
12548 libffi_cv_ro_eh_frame=yes
12551 rm -f conftest.*
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
12555 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
12556 if test "x$libffi_cv_ro_eh_frame" = xyes; then
12558 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
12561 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
12563 else
12565 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
12570 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
12571 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then :
12572 $as_echo_n "(cached) " >&6
12573 else
12575 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
12576 libffi_cv_hidden_visibility_attribute=no
12577 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
12578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12579 (eval $ac_try) 2>&5
12580 ac_status=$?
12581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12582 test $ac_status = 0; }; }; then
12583 if grep '\.hidden.*foo' conftest.s >/dev/null; then
12584 libffi_cv_hidden_visibility_attribute=yes
12587 rm -f conftest.*
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
12591 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
12592 if test $libffi_cv_hidden_visibility_attribute = yes; then
12594 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
12605 # Check whether --enable-debug was given.
12606 if test "${enable_debug+set}" = set; then :
12607 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
12609 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
12615 # Check whether --enable-structs was given.
12616 if test "${enable_structs+set}" = set; then :
12617 enableval=$enable_structs; if test "$enable_structs" = "no"; then
12619 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
12625 # Check whether --enable-raw-api was given.
12626 if test "${enable_raw_api+set}" = set; then :
12627 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
12629 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
12635 # Check whether --enable-purify-safety was given.
12636 if test "${enable_purify_safety+set}" = set; then :
12637 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
12639 $as_echo "#define USING_PURIFY 1" >>confdefs.h
12645 if test -n "$with_cross_host" &&
12646 test x"$with_cross_host" != x"no"; then
12647 toolexecdir='$(exec_prefix)/$(target_alias)'
12648 toolexeclibdir='$(toolexecdir)/lib'
12649 else
12650 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
12651 toolexeclibdir='$(libdir)'
12653 multi_os_directory=`$CC -print-multi-os-directory`
12654 case $multi_os_directory in
12655 .) ;; # Avoid trailing /.
12656 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
12657 esac
12661 if test "${multilib}" = "yes"; then
12662 multilib_arg="--enable-multilib"
12663 else
12664 multilib_arg=
12667 ac_config_commands="$ac_config_commands include"
12669 ac_config_commands="$ac_config_commands src"
12672 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
12675 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile"
12678 cat >confcache <<\_ACEOF
12679 # This file is a shell script that caches the results of configure
12680 # tests run on this system so they can be shared between configure
12681 # scripts and configure runs, see configure's option --config-cache.
12682 # It is not useful on other systems. If it contains results you don't
12683 # want to keep, you may remove or edit it.
12685 # config.status only pays attention to the cache file if you give it
12686 # the --recheck option to rerun configure.
12688 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12689 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12690 # following values.
12692 _ACEOF
12694 # The following way of writing the cache mishandles newlines in values,
12695 # but we know of no workaround that is simple, portable, and efficient.
12696 # So, we kill variables containing newlines.
12697 # Ultrix sh set writes to stderr and can't be redirected directly,
12698 # and sets the high bit in the cache file unless we assign to the vars.
12700 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12701 eval ac_val=\$$ac_var
12702 case $ac_val in #(
12703 *${as_nl}*)
12704 case $ac_var in #(
12705 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12706 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12707 esac
12708 case $ac_var in #(
12709 _ | IFS | as_nl) ;; #(
12710 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12711 *) { eval $ac_var=; unset $ac_var;} ;;
12712 esac ;;
12713 esac
12714 done
12716 (set) 2>&1 |
12717 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12718 *${as_nl}ac_space=\ *)
12719 # `set' does not quote correctly, so add quotes: double-quote
12720 # substitution turns \\\\ into \\, and sed turns \\ into \.
12721 sed -n \
12722 "s/'/'\\\\''/g;
12723 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12724 ;; #(
12726 # `set' quotes correctly as required by POSIX, so do not add quotes.
12727 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12729 esac |
12730 sort
12732 sed '
12733 /^ac_cv_env_/b end
12734 t clear
12735 :clear
12736 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12737 t end
12738 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12739 :end' >>confcache
12740 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12741 if test -w "$cache_file"; then
12742 test "x$cache_file" != "x/dev/null" &&
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12744 $as_echo "$as_me: updating cache $cache_file" >&6;}
12745 cat confcache >$cache_file
12746 else
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12748 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12751 rm -f confcache
12753 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12754 # Let make expand exec_prefix.
12755 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12757 DEFS=-DHAVE_CONFIG_H
12759 ac_libobjs=
12760 ac_ltlibobjs=
12761 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12762 # 1. Remove the extension, and $U if already installed.
12763 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12764 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12765 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12766 # will be set to the directory where LIBOBJS objects are built.
12767 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12768 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12769 done
12770 LIBOBJS=$ac_libobjs
12772 LTLIBOBJS=$ac_ltlibobjs
12775 if test -n "$EXEEXT"; then
12776 am__EXEEXT_TRUE=
12777 am__EXEEXT_FALSE='#'
12778 else
12779 am__EXEEXT_TRUE='#'
12780 am__EXEEXT_FALSE=
12783 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12784 as_fn_error "conditional \"AMDEP\" was never defined.
12785 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12787 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12788 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12789 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12791 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
12792 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
12793 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12795 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12796 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12799 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
12800 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
12801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12803 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
12804 as_fn_error "conditional \"MIPS\" was never defined.
12805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12807 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
12808 as_fn_error "conditional \"SPARC\" was never defined.
12809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12811 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
12812 as_fn_error "conditional \"X86\" was never defined.
12813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12815 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
12816 as_fn_error "conditional \"X86_FREEBSD\" was never defined.
12817 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12819 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
12820 as_fn_error "conditional \"X86_WIN32\" was never defined.
12821 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12823 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
12824 as_fn_error "conditional \"X86_WIN64\" was never defined.
12825 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12827 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
12828 as_fn_error "conditional \"X86_DARWIN\" was never defined.
12829 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12831 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
12832 as_fn_error "conditional \"ALPHA\" was never defined.
12833 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12835 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
12836 as_fn_error "conditional \"IA64\" was never defined.
12837 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12839 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
12840 as_fn_error "conditional \"M32R\" was never defined.
12841 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12843 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
12844 as_fn_error "conditional \"M68K\" was never defined.
12845 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12847 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
12848 as_fn_error "conditional \"POWERPC\" was never defined.
12849 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12851 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
12852 as_fn_error "conditional \"POWERPC_AIX\" was never defined.
12853 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12855 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
12856 as_fn_error "conditional \"POWERPC_DARWIN\" was never defined.
12857 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12859 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
12860 as_fn_error "conditional \"POWERPC_FREEBSD\" was never defined.
12861 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12863 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
12864 as_fn_error "conditional \"ARM\" was never defined.
12865 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12867 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
12868 as_fn_error "conditional \"AVR32\" was never defined.
12869 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12871 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
12872 as_fn_error "conditional \"LIBFFI_CRIS\" was never defined.
12873 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12875 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
12876 as_fn_error "conditional \"FRV\" was never defined.
12877 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12879 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
12880 as_fn_error "conditional \"S390\" was never defined.
12881 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12883 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
12884 as_fn_error "conditional \"X86_64\" was never defined.
12885 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12887 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
12888 as_fn_error "conditional \"SH\" was never defined.
12889 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12891 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
12892 as_fn_error "conditional \"SH64\" was never defined.
12893 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12895 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
12896 as_fn_error "conditional \"PA_LINUX\" was never defined.
12897 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12899 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
12900 as_fn_error "conditional \"PA_HPUX\" was never defined.
12901 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12903 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
12904 as_fn_error "conditional \"PA64_HPUX\" was never defined.
12905 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12909 : ${CONFIG_STATUS=./config.status}
12910 ac_write_fail=0
12911 ac_clean_files_save=$ac_clean_files
12912 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12914 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12915 as_write_fail=0
12916 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12917 #! $SHELL
12918 # Generated by $as_me.
12919 # Run this file to recreate the current configuration.
12920 # Compiler output produced by configure, useful for debugging
12921 # configure, is in config.log if it exists.
12923 debug=false
12924 ac_cs_recheck=false
12925 ac_cs_silent=false
12927 SHELL=\${CONFIG_SHELL-$SHELL}
12928 export SHELL
12929 _ASEOF
12930 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12931 ## -------------------- ##
12932 ## M4sh Initialization. ##
12933 ## -------------------- ##
12935 # Be more Bourne compatible
12936 DUALCASE=1; export DUALCASE # for MKS sh
12937 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12938 emulate sh
12939 NULLCMD=:
12940 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12941 # is contrary to our usage. Disable this feature.
12942 alias -g '${1+"$@"}'='"$@"'
12943 setopt NO_GLOB_SUBST
12944 else
12945 case `(set -o) 2>/dev/null` in #(
12946 *posix*) :
12947 set -o posix ;; #(
12948 *) :
12950 esac
12954 as_nl='
12956 export as_nl
12957 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12958 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12959 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12960 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12961 # Prefer a ksh shell builtin over an external printf program on Solaris,
12962 # but without wasting forks for bash or zsh.
12963 if test -z "$BASH_VERSION$ZSH_VERSION" \
12964 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12965 as_echo='print -r --'
12966 as_echo_n='print -rn --'
12967 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12968 as_echo='printf %s\n'
12969 as_echo_n='printf %s'
12970 else
12971 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12972 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12973 as_echo_n='/usr/ucb/echo -n'
12974 else
12975 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12976 as_echo_n_body='eval
12977 arg=$1;
12978 case $arg in #(
12979 *"$as_nl"*)
12980 expr "X$arg" : "X\\(.*\\)$as_nl";
12981 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12982 esac;
12983 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12985 export as_echo_n_body
12986 as_echo_n='sh -c $as_echo_n_body as_echo'
12988 export as_echo_body
12989 as_echo='sh -c $as_echo_body as_echo'
12992 # The user is always right.
12993 if test "${PATH_SEPARATOR+set}" != set; then
12994 PATH_SEPARATOR=:
12995 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12996 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12997 PATH_SEPARATOR=';'
13002 # IFS
13003 # We need space, tab and new line, in precisely that order. Quoting is
13004 # there to prevent editors from complaining about space-tab.
13005 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13006 # splitting by setting IFS to empty value.)
13007 IFS=" "" $as_nl"
13009 # Find who we are. Look in the path if we contain no directory separator.
13010 case $0 in #((
13011 *[\\/]* ) as_myself=$0 ;;
13012 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13013 for as_dir in $PATH
13015 IFS=$as_save_IFS
13016 test -z "$as_dir" && as_dir=.
13017 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13018 done
13019 IFS=$as_save_IFS
13022 esac
13023 # We did not find ourselves, most probably we were run as `sh COMMAND'
13024 # in which case we are not to be found in the path.
13025 if test "x$as_myself" = x; then
13026 as_myself=$0
13028 if test ! -f "$as_myself"; then
13029 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13030 exit 1
13033 # Unset variables that we do not need and which cause bugs (e.g. in
13034 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13035 # suppresses any "Segmentation fault" message there. '((' could
13036 # trigger a bug in pdksh 5.2.14.
13037 for as_var in BASH_ENV ENV MAIL MAILPATH
13038 do eval test x\${$as_var+set} = xset \
13039 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13040 done
13041 PS1='$ '
13042 PS2='> '
13043 PS4='+ '
13045 # NLS nuisances.
13046 LC_ALL=C
13047 export LC_ALL
13048 LANGUAGE=C
13049 export LANGUAGE
13051 # CDPATH.
13052 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13055 # as_fn_error ERROR [LINENO LOG_FD]
13056 # ---------------------------------
13057 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13058 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13059 # script with status $?, using 1 if that was 0.
13060 as_fn_error ()
13062 as_status=$?; test $as_status -eq 0 && as_status=1
13063 if test "$3"; then
13064 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13065 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13067 $as_echo "$as_me: error: $1" >&2
13068 as_fn_exit $as_status
13069 } # as_fn_error
13072 # as_fn_set_status STATUS
13073 # -----------------------
13074 # Set $? to STATUS, without forking.
13075 as_fn_set_status ()
13077 return $1
13078 } # as_fn_set_status
13080 # as_fn_exit STATUS
13081 # -----------------
13082 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13083 as_fn_exit ()
13085 set +e
13086 as_fn_set_status $1
13087 exit $1
13088 } # as_fn_exit
13090 # as_fn_unset VAR
13091 # ---------------
13092 # Portably unset VAR.
13093 as_fn_unset ()
13095 { eval $1=; unset $1;}
13097 as_unset=as_fn_unset
13098 # as_fn_append VAR VALUE
13099 # ----------------------
13100 # Append the text in VALUE to the end of the definition contained in VAR. Take
13101 # advantage of any shell optimizations that allow amortized linear growth over
13102 # repeated appends, instead of the typical quadratic growth present in naive
13103 # implementations.
13104 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13105 eval 'as_fn_append ()
13107 eval $1+=\$2
13109 else
13110 as_fn_append ()
13112 eval $1=\$$1\$2
13114 fi # as_fn_append
13116 # as_fn_arith ARG...
13117 # ------------------
13118 # Perform arithmetic evaluation on the ARGs, and store the result in the
13119 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13120 # must be portable across $(()) and expr.
13121 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13122 eval 'as_fn_arith ()
13124 as_val=$(( $* ))
13126 else
13127 as_fn_arith ()
13129 as_val=`expr "$@" || test $? -eq 1`
13131 fi # as_fn_arith
13134 if expr a : '\(a\)' >/dev/null 2>&1 &&
13135 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13136 as_expr=expr
13137 else
13138 as_expr=false
13141 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13142 as_basename=basename
13143 else
13144 as_basename=false
13147 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13148 as_dirname=dirname
13149 else
13150 as_dirname=false
13153 as_me=`$as_basename -- "$0" ||
13154 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13155 X"$0" : 'X\(//\)$' \| \
13156 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13157 $as_echo X/"$0" |
13158 sed '/^.*\/\([^/][^/]*\)\/*$/{
13159 s//\1/
13162 /^X\/\(\/\/\)$/{
13163 s//\1/
13166 /^X\/\(\/\).*/{
13167 s//\1/
13170 s/.*/./; q'`
13172 # Avoid depending upon Character Ranges.
13173 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13174 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13175 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13176 as_cr_digits='0123456789'
13177 as_cr_alnum=$as_cr_Letters$as_cr_digits
13179 ECHO_C= ECHO_N= ECHO_T=
13180 case `echo -n x` in #(((((
13181 -n*)
13182 case `echo 'xy\c'` in
13183 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13184 xy) ECHO_C='\c';;
13185 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13186 ECHO_T=' ';;
13187 esac;;
13189 ECHO_N='-n';;
13190 esac
13192 rm -f conf$$ conf$$.exe conf$$.file
13193 if test -d conf$$.dir; then
13194 rm -f conf$$.dir/conf$$.file
13195 else
13196 rm -f conf$$.dir
13197 mkdir conf$$.dir 2>/dev/null
13199 if (echo >conf$$.file) 2>/dev/null; then
13200 if ln -s conf$$.file conf$$ 2>/dev/null; then
13201 as_ln_s='ln -s'
13202 # ... but there are two gotchas:
13203 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13204 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13205 # In both cases, we have to default to `cp -p'.
13206 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13207 as_ln_s='cp -p'
13208 elif ln conf$$.file conf$$ 2>/dev/null; then
13209 as_ln_s=ln
13210 else
13211 as_ln_s='cp -p'
13213 else
13214 as_ln_s='cp -p'
13216 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13217 rmdir conf$$.dir 2>/dev/null
13220 # as_fn_mkdir_p
13221 # -------------
13222 # Create "$as_dir" as a directory, including parents if necessary.
13223 as_fn_mkdir_p ()
13226 case $as_dir in #(
13227 -*) as_dir=./$as_dir;;
13228 esac
13229 test -d "$as_dir" || eval $as_mkdir_p || {
13230 as_dirs=
13231 while :; do
13232 case $as_dir in #(
13233 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13234 *) as_qdir=$as_dir;;
13235 esac
13236 as_dirs="'$as_qdir' $as_dirs"
13237 as_dir=`$as_dirname -- "$as_dir" ||
13238 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13239 X"$as_dir" : 'X\(//\)[^/]' \| \
13240 X"$as_dir" : 'X\(//\)$' \| \
13241 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13242 $as_echo X"$as_dir" |
13243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13244 s//\1/
13247 /^X\(\/\/\)[^/].*/{
13248 s//\1/
13251 /^X\(\/\/\)$/{
13252 s//\1/
13255 /^X\(\/\).*/{
13256 s//\1/
13259 s/.*/./; q'`
13260 test -d "$as_dir" && break
13261 done
13262 test -z "$as_dirs" || eval "mkdir $as_dirs"
13263 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13266 } # as_fn_mkdir_p
13267 if mkdir -p . 2>/dev/null; then
13268 as_mkdir_p='mkdir -p "$as_dir"'
13269 else
13270 test -d ./-p && rmdir ./-p
13271 as_mkdir_p=false
13274 if test -x / >/dev/null 2>&1; then
13275 as_test_x='test -x'
13276 else
13277 if ls -dL / >/dev/null 2>&1; then
13278 as_ls_L_option=L
13279 else
13280 as_ls_L_option=
13282 as_test_x='
13283 eval sh -c '\''
13284 if test -d "$1"; then
13285 test -d "$1/.";
13286 else
13287 case $1 in #(
13288 -*)set "./$1";;
13289 esac;
13290 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13291 ???[sx]*):;;*)false;;esac;fi
13292 '\'' sh
13295 as_executable_p=$as_test_x
13297 # Sed expression to map a string onto a valid CPP name.
13298 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13300 # Sed expression to map a string onto a valid variable name.
13301 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13304 exec 6>&1
13305 ## ----------------------------------- ##
13306 ## Main body of $CONFIG_STATUS script. ##
13307 ## ----------------------------------- ##
13308 _ASEOF
13309 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13312 # Save the log message, to keep $0 and so on meaningful, and to
13313 # report actual input values of CONFIG_FILES etc. instead of their
13314 # values after options handling.
13315 ac_log="
13316 This file was extended by libffi $as_me 3.0.9, which was
13317 generated by GNU Autoconf 2.64. Invocation command line was
13319 CONFIG_FILES = $CONFIG_FILES
13320 CONFIG_HEADERS = $CONFIG_HEADERS
13321 CONFIG_LINKS = $CONFIG_LINKS
13322 CONFIG_COMMANDS = $CONFIG_COMMANDS
13323 $ $0 $@
13325 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13328 _ACEOF
13330 case $ac_config_files in *"
13331 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13332 esac
13334 case $ac_config_headers in *"
13335 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13336 esac
13339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13340 # Files that config.status was made for.
13341 config_files="$ac_config_files"
13342 config_headers="$ac_config_headers"
13343 config_links="$ac_config_links"
13344 config_commands="$ac_config_commands"
13346 _ACEOF
13348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13349 ac_cs_usage="\
13350 \`$as_me' instantiates files and other configuration actions
13351 from templates according to the current configuration. Unless the files
13352 and actions are specified as TAGs, all are instantiated by default.
13354 Usage: $0 [OPTION]... [TAG]...
13356 -h, --help print this help, then exit
13357 -V, --version print version number and configuration settings, then exit
13358 -q, --quiet, --silent
13359 do not print progress messages
13360 -d, --debug don't remove temporary files
13361 --recheck update $as_me by reconfiguring in the same conditions
13362 --file=FILE[:TEMPLATE]
13363 instantiate the configuration file FILE
13364 --header=FILE[:TEMPLATE]
13365 instantiate the configuration header FILE
13367 Configuration files:
13368 $config_files
13370 Configuration headers:
13371 $config_headers
13373 Configuration links:
13374 $config_links
13376 Configuration commands:
13377 $config_commands
13379 Report bugs to <http://gcc.gnu.org/bugs.html>."
13381 _ACEOF
13382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13383 ac_cs_version="\\
13384 libffi config.status 3.0.9
13385 configured by $0, generated by GNU Autoconf 2.64,
13386 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13388 Copyright (C) 2009 Free Software Foundation, Inc.
13389 This config.status script is free software; the Free Software Foundation
13390 gives unlimited permission to copy, distribute and modify it."
13392 ac_pwd='$ac_pwd'
13393 srcdir='$srcdir'
13394 INSTALL='$INSTALL'
13395 MKDIR_P='$MKDIR_P'
13396 AWK='$AWK'
13397 test -n "\$AWK" || AWK=awk
13398 _ACEOF
13400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13401 # The default lists apply if the user does not specify any file.
13402 ac_need_defaults=:
13403 while test $# != 0
13405 case $1 in
13406 --*=*)
13407 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13408 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13409 ac_shift=:
13412 ac_option=$1
13413 ac_optarg=$2
13414 ac_shift=shift
13416 esac
13418 case $ac_option in
13419 # Handling of the options.
13420 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13421 ac_cs_recheck=: ;;
13422 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13423 $as_echo "$ac_cs_version"; exit ;;
13424 --debug | --debu | --deb | --de | --d | -d )
13425 debug=: ;;
13426 --file | --fil | --fi | --f )
13427 $ac_shift
13428 case $ac_optarg in
13429 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13430 esac
13431 as_fn_append CONFIG_FILES " '$ac_optarg'"
13432 ac_need_defaults=false;;
13433 --header | --heade | --head | --hea )
13434 $ac_shift
13435 case $ac_optarg in
13436 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13437 esac
13438 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13439 ac_need_defaults=false;;
13440 --he | --h)
13441 # Conflict between --help and --header
13442 as_fn_error "ambiguous option: \`$1'
13443 Try \`$0 --help' for more information.";;
13444 --help | --hel | -h )
13445 $as_echo "$ac_cs_usage"; exit ;;
13446 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13447 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13448 ac_cs_silent=: ;;
13450 # This is an error.
13451 -*) as_fn_error "unrecognized option: \`$1'
13452 Try \`$0 --help' for more information." ;;
13454 *) as_fn_append ac_config_targets " $1"
13455 ac_need_defaults=false ;;
13457 esac
13458 shift
13459 done
13461 ac_configure_extra_args=
13463 if $ac_cs_silent; then
13464 exec 6>/dev/null
13465 ac_configure_extra_args="$ac_configure_extra_args --silent"
13468 _ACEOF
13469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13470 if \$ac_cs_recheck; then
13471 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13472 shift
13473 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13474 CONFIG_SHELL='$SHELL'
13475 export CONFIG_SHELL
13476 exec "\$@"
13479 _ACEOF
13480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13481 exec 5>>config.log
13483 echo
13484 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13485 ## Running $as_me. ##
13486 _ASBOX
13487 $as_echo "$ac_log"
13488 } >&5
13490 _ACEOF
13491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13493 # INIT-COMMANDS
13496 srcdir="$srcdir"
13497 host="$host"
13498 target="$target"
13499 with_multisubdir="$with_multisubdir"
13500 with_multisrctop="$with_multisrctop"
13501 with_target_subdir="$with_target_subdir"
13502 ac_configure_args="${multilib_arg} ${ac_configure_args}"
13503 multi_basedir="$multi_basedir"
13504 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13505 CC="$CC"
13506 CXX="$CXX"
13507 GFORTRAN="$GFORTRAN"
13508 GCJ="$GCJ"
13509 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13512 # The HP-UX ksh and POSIX shell print the target directory to stdout
13513 # if CDPATH is set.
13514 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13516 sed_quote_subst='$sed_quote_subst'
13517 double_quote_subst='$double_quote_subst'
13518 delay_variable_subst='$delay_variable_subst'
13519 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13520 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13521 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13522 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13523 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13524 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13525 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13526 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13527 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13528 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13529 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13530 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13531 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13532 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13533 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13534 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13535 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13536 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13537 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13538 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13539 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13540 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13541 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13542 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13543 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13544 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13545 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13546 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13547 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13548 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13549 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13550 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13551 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13552 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13553 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13554 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13555 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13556 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13557 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13558 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13559 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13560 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13561 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13562 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13563 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13564 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13565 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13566 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13567 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"`'
13568 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13569 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13570 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13571 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13572 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13573 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13574 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13575 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13576 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13577 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13578 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13579 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13580 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13581 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13582 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13583 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13584 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13585 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13586 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13587 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13588 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13589 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13590 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13591 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13592 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13593 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13594 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13595 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13596 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13597 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13598 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13599 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13600 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13601 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13602 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13603 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13604 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13605 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13606 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13607 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13608 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13609 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13610 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13611 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13612 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13613 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13614 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13615 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13616 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13617 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13618 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13619 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13620 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13621 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13622 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13623 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13624 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13625 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13626 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13627 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13628 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13629 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13630 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13631 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13632 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13633 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13634 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13635 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13636 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13637 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13638 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13640 LTCC='$LTCC'
13641 LTCFLAGS='$LTCFLAGS'
13642 compiler='$compiler_DEFAULT'
13644 # A function that is used when there is no print builtin or printf.
13645 func_fallback_echo ()
13647 eval 'cat <<_LTECHO_EOF
13649 _LTECHO_EOF'
13652 # Quote evaled strings.
13653 for var in SHELL \
13654 ECHO \
13655 SED \
13656 GREP \
13657 EGREP \
13658 FGREP \
13659 LD \
13660 NM \
13661 LN_S \
13662 lt_SP2NL \
13663 lt_NL2SP \
13664 reload_flag \
13665 OBJDUMP \
13666 deplibs_check_method \
13667 file_magic_cmd \
13668 AR \
13669 AR_FLAGS \
13670 STRIP \
13671 RANLIB \
13672 CC \
13673 CFLAGS \
13674 compiler \
13675 lt_cv_sys_global_symbol_pipe \
13676 lt_cv_sys_global_symbol_to_cdecl \
13677 lt_cv_sys_global_symbol_to_c_name_address \
13678 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13679 lt_prog_compiler_no_builtin_flag \
13680 lt_prog_compiler_wl \
13681 lt_prog_compiler_pic \
13682 lt_prog_compiler_static \
13683 lt_cv_prog_compiler_c_o \
13684 need_locks \
13685 DSYMUTIL \
13686 NMEDIT \
13687 LIPO \
13688 OTOOL \
13689 OTOOL64 \
13690 shrext_cmds \
13691 export_dynamic_flag_spec \
13692 whole_archive_flag_spec \
13693 compiler_needs_object \
13694 with_gnu_ld \
13695 allow_undefined_flag \
13696 no_undefined_flag \
13697 hardcode_libdir_flag_spec \
13698 hardcode_libdir_flag_spec_ld \
13699 hardcode_libdir_separator \
13700 fix_srcfile_path \
13701 exclude_expsyms \
13702 include_expsyms \
13703 file_list_spec \
13704 variables_saved_for_relink \
13705 libname_spec \
13706 library_names_spec \
13707 soname_spec \
13708 install_override_mode \
13709 finish_eval \
13710 old_striplib \
13711 striplib; do
13712 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13713 *[\\\\\\\`\\"\\\$]*)
13714 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13717 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13719 esac
13720 done
13722 # Double-quote double-evaled strings.
13723 for var in reload_cmds \
13724 old_postinstall_cmds \
13725 old_postuninstall_cmds \
13726 old_archive_cmds \
13727 extract_expsyms_cmds \
13728 old_archive_from_new_cmds \
13729 old_archive_from_expsyms_cmds \
13730 archive_cmds \
13731 archive_expsym_cmds \
13732 module_cmds \
13733 module_expsym_cmds \
13734 export_symbols_cmds \
13735 prelink_cmds \
13736 postinstall_cmds \
13737 postuninstall_cmds \
13738 finish_cmds \
13739 sys_lib_search_path_spec \
13740 sys_lib_dlsearch_path_spec; do
13741 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13742 *[\\\\\\\`\\"\\\$]*)
13743 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13746 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13748 esac
13749 done
13751 ac_aux_dir='$ac_aux_dir'
13752 xsi_shell='$xsi_shell'
13753 lt_shell_append='$lt_shell_append'
13755 # See if we are running on zsh, and set the options which allow our
13756 # commands through without removal of \ escapes INIT.
13757 if test -n "\${ZSH_VERSION+set}" ; then
13758 setopt NO_GLOB_SUBST
13762 PACKAGE='$PACKAGE'
13763 VERSION='$VERSION'
13764 TIMESTAMP='$TIMESTAMP'
13765 RM='$RM'
13766 ofile='$ofile'
13770 TARGETDIR="$TARGETDIR"
13772 _ACEOF
13774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13776 # Handling of arguments.
13777 for ac_config_target in $ac_config_targets
13779 case $ac_config_target in
13780 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
13781 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13782 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13783 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13784 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
13785 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
13786 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
13787 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13788 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
13789 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13790 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
13791 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13793 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13794 esac
13795 done
13798 # If the user did not use the arguments to specify the items to instantiate,
13799 # then the envvar interface is used. Set only those that are not.
13800 # We use the long form for the default assignment because of an extremely
13801 # bizarre bug on SunOS 4.1.3.
13802 if $ac_need_defaults; then
13803 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13804 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13805 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
13806 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13809 # Have a temporary directory for convenience. Make it in the build tree
13810 # simply because there is no reason against having it here, and in addition,
13811 # creating and moving files from /tmp can sometimes cause problems.
13812 # Hook for its removal unless debugging.
13813 # Note that there is a small window in which the directory will not be cleaned:
13814 # after its creation but before its name has been assigned to `$tmp'.
13815 $debug ||
13817 tmp=
13818 trap 'exit_status=$?
13819 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13821 trap 'as_fn_exit 1' 1 2 13 15
13823 # Create a (secure) tmp directory for tmp files.
13826 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13827 test -n "$tmp" && test -d "$tmp"
13828 } ||
13830 tmp=./conf$$-$RANDOM
13831 (umask 077 && mkdir "$tmp")
13832 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13834 # Set up the scripts for CONFIG_FILES section.
13835 # No need to generate them if there are no CONFIG_FILES.
13836 # This happens for instance with `./config.status config.h'.
13837 if test -n "$CONFIG_FILES"; then
13840 ac_cr=`echo X | tr X '\015'`
13841 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13842 # But we know of no other shell where ac_cr would be empty at this
13843 # point, so we can use a bashism as a fallback.
13844 if test "x$ac_cr" = x; then
13845 eval ac_cr=\$\'\\r\'
13847 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13848 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13849 ac_cs_awk_cr='\r'
13850 else
13851 ac_cs_awk_cr=$ac_cr
13854 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13855 _ACEOF
13859 echo "cat >conf$$subs.awk <<_ACEOF" &&
13860 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13861 echo "_ACEOF"
13862 } >conf$$subs.sh ||
13863 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13864 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13865 ac_delim='%!_!# '
13866 for ac_last_try in false false false false false :; do
13867 . ./conf$$subs.sh ||
13868 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13870 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13871 if test $ac_delim_n = $ac_delim_num; then
13872 break
13873 elif $ac_last_try; then
13874 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13875 else
13876 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13878 done
13879 rm -f conf$$subs.sh
13881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13882 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13883 _ACEOF
13884 sed -n '
13886 s/^/S["/; s/!.*/"]=/
13889 s/^[^!]*!//
13890 :repl
13891 t repl
13892 s/'"$ac_delim"'$//
13893 t delim
13896 s/\(.\{148\}\).*/\1/
13897 t more1
13898 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13901 b repl
13902 :more1
13903 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13906 s/.\{148\}//
13907 t nl
13908 :delim
13910 s/\(.\{148\}\).*/\1/
13911 t more2
13912 s/["\\]/\\&/g; s/^/"/; s/$/"/
13915 :more2
13916 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13919 s/.\{148\}//
13920 t delim
13921 ' <conf$$subs.awk | sed '
13922 /^[^""]/{
13924 s/\n//
13926 ' >>$CONFIG_STATUS || ac_write_fail=1
13927 rm -f conf$$subs.awk
13928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13929 _ACAWK
13930 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13931 for (key in S) S_is_set[key] = 1
13932 FS = "\a"
13936 line = $ 0
13937 nfields = split(line, field, "@")
13938 substed = 0
13939 len = length(field[1])
13940 for (i = 2; i < nfields; i++) {
13941 key = field[i]
13942 keylen = length(key)
13943 if (S_is_set[key]) {
13944 value = S[key]
13945 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13946 len += length(value) + length(field[++i])
13947 substed = 1
13948 } else
13949 len += 1 + keylen
13952 print line
13955 _ACAWK
13956 _ACEOF
13957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13958 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13959 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13960 else
13962 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13963 || as_fn_error "could not setup config files machinery" "$LINENO" 5
13964 _ACEOF
13966 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13967 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13968 # trailing colons and then remove the whole line if VPATH becomes empty
13969 # (actually we leave an empty line to preserve line numbers).
13970 if test "x$srcdir" = x.; then
13971 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13972 s/:*\$(srcdir):*/:/
13973 s/:*\${srcdir}:*/:/
13974 s/:*@srcdir@:*/:/
13975 s/^\([^=]*=[ ]*\):*/\1/
13976 s/:*$//
13977 s/^[^=]*=[ ]*$//
13981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13982 fi # test -n "$CONFIG_FILES"
13984 # Set up the scripts for CONFIG_HEADERS section.
13985 # No need to generate them if there are no CONFIG_HEADERS.
13986 # This happens for instance with `./config.status Makefile'.
13987 if test -n "$CONFIG_HEADERS"; then
13988 cat >"$tmp/defines.awk" <<\_ACAWK ||
13989 BEGIN {
13990 _ACEOF
13992 # Transform confdefs.h into an awk script `defines.awk', embedded as
13993 # here-document in config.status, that substitutes the proper values into
13994 # config.h.in to produce config.h.
13996 # Create a delimiter string that does not exist in confdefs.h, to ease
13997 # handling of long lines.
13998 ac_delim='%!_!# '
13999 for ac_last_try in false false :; do
14000 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14001 if test -z "$ac_t"; then
14002 break
14003 elif $ac_last_try; then
14004 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14005 else
14006 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14008 done
14010 # For the awk script, D is an array of macro values keyed by name,
14011 # likewise P contains macro parameters if any. Preserve backslash
14012 # newline sequences.
14014 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14015 sed -n '
14016 s/.\{148\}/&'"$ac_delim"'/g
14017 t rset
14018 :rset
14019 s/^[ ]*#[ ]*define[ ][ ]*/ /
14020 t def
14022 :def
14023 s/\\$//
14024 t bsnl
14025 s/["\\]/\\&/g
14026 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14027 D["\1"]=" \3"/p
14028 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14030 :bsnl
14031 s/["\\]/\\&/g
14032 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14033 D["\1"]=" \3\\\\\\n"\\/p
14034 t cont
14035 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14036 t cont
14038 :cont
14040 s/.\{148\}/&'"$ac_delim"'/g
14041 t clear
14042 :clear
14043 s/\\$//
14044 t bsnlc
14045 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14047 :bsnlc
14048 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14049 b cont
14050 ' <confdefs.h | sed '
14051 s/'"$ac_delim"'/"\\\
14052 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14055 for (key in D) D_is_set[key] = 1
14056 FS = "\a"
14058 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14059 line = \$ 0
14060 split(line, arg, " ")
14061 if (arg[1] == "#") {
14062 defundef = arg[2]
14063 mac1 = arg[3]
14064 } else {
14065 defundef = substr(arg[1], 2)
14066 mac1 = arg[2]
14068 split(mac1, mac2, "(") #)
14069 macro = mac2[1]
14070 prefix = substr(line, 1, index(line, defundef) - 1)
14071 if (D_is_set[macro]) {
14072 # Preserve the white space surrounding the "#".
14073 print prefix "define", macro P[macro] D[macro]
14074 next
14075 } else {
14076 # Replace #undef with comments. This is necessary, for example,
14077 # in the case of _POSIX_SOURCE, which is predefined and required
14078 # on some systems where configure will not decide to define it.
14079 if (defundef == "undef") {
14080 print "/*", prefix defundef, macro, "*/"
14081 next
14085 { print }
14086 _ACAWK
14087 _ACEOF
14088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14089 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14090 fi # test -n "$CONFIG_HEADERS"
14093 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
14094 shift
14095 for ac_tag
14097 case $ac_tag in
14098 :[FHLC]) ac_mode=$ac_tag; continue;;
14099 esac
14100 case $ac_mode$ac_tag in
14101 :[FHL]*:*);;
14102 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14103 :[FH]-) ac_tag=-:-;;
14104 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14105 esac
14106 ac_save_IFS=$IFS
14107 IFS=:
14108 set x $ac_tag
14109 IFS=$ac_save_IFS
14110 shift
14111 ac_file=$1
14112 shift
14114 case $ac_mode in
14115 :L) ac_source=$1;;
14116 :[FH])
14117 ac_file_inputs=
14118 for ac_f
14120 case $ac_f in
14121 -) ac_f="$tmp/stdin";;
14122 *) # Look for the file first in the build tree, then in the source tree
14123 # (if the path is not absolute). The absolute path cannot be DOS-style,
14124 # because $ac_f cannot contain `:'.
14125 test -f "$ac_f" ||
14126 case $ac_f in
14127 [\\/$]*) false;;
14128 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14129 esac ||
14130 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14131 esac
14132 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14133 as_fn_append ac_file_inputs " '$ac_f'"
14134 done
14136 # Let's still pretend it is `configure' which instantiates (i.e., don't
14137 # use $as_me), people would be surprised to read:
14138 # /* config.h. Generated by config.status. */
14139 configure_input='Generated from '`
14140 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14141 `' by configure.'
14142 if test x"$ac_file" != x-; then
14143 configure_input="$ac_file. $configure_input"
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14145 $as_echo "$as_me: creating $ac_file" >&6;}
14147 # Neutralize special characters interpreted by sed in replacement strings.
14148 case $configure_input in #(
14149 *\&* | *\|* | *\\* )
14150 ac_sed_conf_input=`$as_echo "$configure_input" |
14151 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14152 *) ac_sed_conf_input=$configure_input;;
14153 esac
14155 case $ac_tag in
14156 *:-:* | *:-) cat >"$tmp/stdin" \
14157 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14158 esac
14160 esac
14162 ac_dir=`$as_dirname -- "$ac_file" ||
14163 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14164 X"$ac_file" : 'X\(//\)[^/]' \| \
14165 X"$ac_file" : 'X\(//\)$' \| \
14166 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14167 $as_echo X"$ac_file" |
14168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14169 s//\1/
14172 /^X\(\/\/\)[^/].*/{
14173 s//\1/
14176 /^X\(\/\/\)$/{
14177 s//\1/
14180 /^X\(\/\).*/{
14181 s//\1/
14184 s/.*/./; q'`
14185 as_dir="$ac_dir"; as_fn_mkdir_p
14186 ac_builddir=.
14188 case "$ac_dir" in
14189 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14191 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14192 # A ".." for each directory in $ac_dir_suffix.
14193 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14194 case $ac_top_builddir_sub in
14195 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14196 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14197 esac ;;
14198 esac
14199 ac_abs_top_builddir=$ac_pwd
14200 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14201 # for backward compatibility:
14202 ac_top_builddir=$ac_top_build_prefix
14204 case $srcdir in
14205 .) # We are building in place.
14206 ac_srcdir=.
14207 ac_top_srcdir=$ac_top_builddir_sub
14208 ac_abs_top_srcdir=$ac_pwd ;;
14209 [\\/]* | ?:[\\/]* ) # Absolute name.
14210 ac_srcdir=$srcdir$ac_dir_suffix;
14211 ac_top_srcdir=$srcdir
14212 ac_abs_top_srcdir=$srcdir ;;
14213 *) # Relative name.
14214 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14215 ac_top_srcdir=$ac_top_build_prefix$srcdir
14216 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14217 esac
14218 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14221 case $ac_mode in
14224 # CONFIG_FILE
14227 case $INSTALL in
14228 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14229 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14230 esac
14231 ac_MKDIR_P=$MKDIR_P
14232 case $MKDIR_P in
14233 [\\/$]* | ?:[\\/]* ) ;;
14234 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14235 esac
14236 _ACEOF
14238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14239 # If the template does not know about datarootdir, expand it.
14240 # FIXME: This hack should be removed a few years after 2.60.
14241 ac_datarootdir_hack=; ac_datarootdir_seen=
14242 ac_sed_dataroot='
14243 /datarootdir/ {
14247 /@datadir@/p
14248 /@docdir@/p
14249 /@infodir@/p
14250 /@localedir@/p
14251 /@mandir@/p'
14252 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14253 *datarootdir*) ac_datarootdir_seen=yes;;
14254 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14256 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14257 _ACEOF
14258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14259 ac_datarootdir_hack='
14260 s&@datadir@&$datadir&g
14261 s&@docdir@&$docdir&g
14262 s&@infodir@&$infodir&g
14263 s&@localedir@&$localedir&g
14264 s&@mandir@&$mandir&g
14265 s&\\\${datarootdir}&$datarootdir&g' ;;
14266 esac
14267 _ACEOF
14269 # Neutralize VPATH when `$srcdir' = `.'.
14270 # Shell code in configure.ac might set extrasub.
14271 # FIXME: do we really want to maintain this feature?
14272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14273 ac_sed_extra="$ac_vpsub
14274 $extrasub
14275 _ACEOF
14276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14278 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14279 s|@configure_input@|$ac_sed_conf_input|;t t
14280 s&@top_builddir@&$ac_top_builddir_sub&;t t
14281 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14282 s&@srcdir@&$ac_srcdir&;t t
14283 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14284 s&@top_srcdir@&$ac_top_srcdir&;t t
14285 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14286 s&@builddir@&$ac_builddir&;t t
14287 s&@abs_builddir@&$ac_abs_builddir&;t t
14288 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14289 s&@INSTALL@&$ac_INSTALL&;t t
14290 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14291 $ac_datarootdir_hack
14293 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14294 || as_fn_error "could not create $ac_file" "$LINENO" 5
14296 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14297 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14298 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14300 which seems to be undefined. Please make sure it is defined." >&5
14301 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14302 which seems to be undefined. Please make sure it is defined." >&2;}
14304 rm -f "$tmp/stdin"
14305 case $ac_file in
14306 -) cat "$tmp/out" && rm -f "$tmp/out";;
14307 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14308 esac \
14309 || as_fn_error "could not create $ac_file" "$LINENO" 5
14313 # CONFIG_HEADER
14315 if test x"$ac_file" != x-; then
14317 $as_echo "/* $configure_input */" \
14318 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14319 } >"$tmp/config.h" \
14320 || as_fn_error "could not create $ac_file" "$LINENO" 5
14321 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14323 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14324 else
14325 rm -f "$ac_file"
14326 mv "$tmp/config.h" "$ac_file" \
14327 || as_fn_error "could not create $ac_file" "$LINENO" 5
14329 else
14330 $as_echo "/* $configure_input */" \
14331 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14332 || as_fn_error "could not create -" "$LINENO" 5
14334 # Compute "$ac_file"'s index in $config_headers.
14335 _am_arg="$ac_file"
14336 _am_stamp_count=1
14337 for _am_header in $config_headers :; do
14338 case $_am_header in
14339 $_am_arg | $_am_arg:* )
14340 break ;;
14342 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14343 esac
14344 done
14345 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14346 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14347 X"$_am_arg" : 'X\(//\)[^/]' \| \
14348 X"$_am_arg" : 'X\(//\)$' \| \
14349 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14350 $as_echo X"$_am_arg" |
14351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14352 s//\1/
14355 /^X\(\/\/\)[^/].*/{
14356 s//\1/
14359 /^X\(\/\/\)$/{
14360 s//\1/
14363 /^X\(\/\).*/{
14364 s//\1/
14367 s/.*/./; q'`/stamp-h$_am_stamp_count
14371 # CONFIG_LINK
14374 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
14376 else
14377 # Prefer the file from the source tree if names are identical.
14378 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
14379 ac_source=$srcdir/$ac_source
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
14383 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
14385 if test ! -r "$ac_source"; then
14386 as_fn_error "$ac_source: file not found" "$LINENO" 5
14388 rm -f "$ac_file"
14390 # Try a relative symlink, then a hard link, then a copy.
14391 case $srcdir in
14392 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
14393 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
14394 esac
14395 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
14396 ln "$ac_source" "$ac_file" 2>/dev/null ||
14397 cp -p "$ac_source" "$ac_file" ||
14398 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
14401 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14402 $as_echo "$as_me: executing $ac_file commands" >&6;}
14404 esac
14407 case $ac_file$ac_mode in
14408 "default-1":C)
14409 # Only add multilib support code if we just rebuilt the top-level
14410 # Makefile.
14411 case " $CONFIG_FILES " in
14412 *" Makefile "*)
14413 ac_file=Makefile . ${multi_basedir}/config-ml.in
14415 esac ;;
14416 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14417 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14418 # are listed without --file. Let's play safe and only enable the eval
14419 # if we detect the quoting.
14420 case $CONFIG_FILES in
14421 *\'*) eval set x "$CONFIG_FILES" ;;
14422 *) set x $CONFIG_FILES ;;
14423 esac
14424 shift
14425 for mf
14427 # Strip MF so we end up with the name of the file.
14428 mf=`echo "$mf" | sed -e 's/:.*$//'`
14429 # Check whether this is an Automake generated Makefile or not.
14430 # We used to match only the files named `Makefile.in', but
14431 # some people rename them; so instead we look at the file content.
14432 # Grep'ing the first line is not enough: some people post-process
14433 # each Makefile.in and add a new line on top of each file to say so.
14434 # Grep'ing the whole file is not good either: AIX grep has a line
14435 # limit of 2048, but all sed's we know have understand at least 4000.
14436 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14437 dirpart=`$as_dirname -- "$mf" ||
14438 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14439 X"$mf" : 'X\(//\)[^/]' \| \
14440 X"$mf" : 'X\(//\)$' \| \
14441 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14442 $as_echo X"$mf" |
14443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14444 s//\1/
14447 /^X\(\/\/\)[^/].*/{
14448 s//\1/
14451 /^X\(\/\/\)$/{
14452 s//\1/
14455 /^X\(\/\).*/{
14456 s//\1/
14459 s/.*/./; q'`
14460 else
14461 continue
14463 # Extract the definition of DEPDIR, am__include, and am__quote
14464 # from the Makefile without running `make'.
14465 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14466 test -z "$DEPDIR" && continue
14467 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14468 test -z "am__include" && continue
14469 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14470 # When using ansi2knr, U may be empty or an underscore; expand it
14471 U=`sed -n 's/^U = //p' < "$mf"`
14472 # Find all dependency output files, they are included files with
14473 # $(DEPDIR) in their names. We invoke sed twice because it is the
14474 # simplest approach to changing $(DEPDIR) to its actual value in the
14475 # expansion.
14476 for file in `sed -n "
14477 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14478 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14479 # Make sure the directory exists.
14480 test -f "$dirpart/$file" && continue
14481 fdir=`$as_dirname -- "$file" ||
14482 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14483 X"$file" : 'X\(//\)[^/]' \| \
14484 X"$file" : 'X\(//\)$' \| \
14485 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14486 $as_echo X"$file" |
14487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14488 s//\1/
14491 /^X\(\/\/\)[^/].*/{
14492 s//\1/
14495 /^X\(\/\/\)$/{
14496 s//\1/
14499 /^X\(\/\).*/{
14500 s//\1/
14503 s/.*/./; q'`
14504 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14505 # echo "creating $dirpart/$file"
14506 echo '# dummy' > "$dirpart/$file"
14507 done
14508 done
14511 "libtool":C)
14513 # See if we are running on zsh, and set the options which allow our
14514 # commands through without removal of \ escapes.
14515 if test -n "${ZSH_VERSION+set}" ; then
14516 setopt NO_GLOB_SUBST
14519 cfgfile="${ofile}T"
14520 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14521 $RM "$cfgfile"
14523 cat <<_LT_EOF >> "$cfgfile"
14524 #! $SHELL
14526 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14527 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14528 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14529 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14531 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14532 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14533 # Written by Gordon Matzigkeit, 1996
14535 # This file is part of GNU Libtool.
14537 # GNU Libtool is free software; you can redistribute it and/or
14538 # modify it under the terms of the GNU General Public License as
14539 # published by the Free Software Foundation; either version 2 of
14540 # the License, or (at your option) any later version.
14542 # As a special exception to the GNU General Public License,
14543 # if you distribute this file as part of a program or library that
14544 # is built using GNU Libtool, you may include this file under the
14545 # same distribution terms that you use for the rest of that program.
14547 # GNU Libtool is distributed in the hope that it will be useful,
14548 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14549 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14550 # GNU General Public License for more details.
14552 # You should have received a copy of the GNU General Public License
14553 # along with GNU Libtool; see the file COPYING. If not, a copy
14554 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14555 # obtained by writing to the Free Software Foundation, Inc.,
14556 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14559 # The names of the tagged configurations supported by this script.
14560 available_tags=""
14562 # ### BEGIN LIBTOOL CONFIG
14564 # Which release of libtool.m4 was used?
14565 macro_version=$macro_version
14566 macro_revision=$macro_revision
14568 # Whether or not to build shared libraries.
14569 build_libtool_libs=$enable_shared
14571 # Whether or not to build static libraries.
14572 build_old_libs=$enable_static
14574 # What type of objects to build.
14575 pic_mode=$pic_mode
14577 # Whether or not to optimize for fast installation.
14578 fast_install=$enable_fast_install
14580 # Shell to use when invoking shell scripts.
14581 SHELL=$lt_SHELL
14583 # An echo program that protects backslashes.
14584 ECHO=$lt_ECHO
14586 # The host system.
14587 host_alias=$host_alias
14588 host=$host
14589 host_os=$host_os
14591 # The build system.
14592 build_alias=$build_alias
14593 build=$build
14594 build_os=$build_os
14596 # A sed program that does not truncate output.
14597 SED=$lt_SED
14599 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14600 Xsed="\$SED -e 1s/^X//"
14602 # A grep program that handles long lines.
14603 GREP=$lt_GREP
14605 # An ERE matcher.
14606 EGREP=$lt_EGREP
14608 # A literal string matcher.
14609 FGREP=$lt_FGREP
14611 # A BSD- or MS-compatible name lister.
14612 NM=$lt_NM
14614 # Whether we need soft or hard links.
14615 LN_S=$lt_LN_S
14617 # What is the maximum length of a command?
14618 max_cmd_len=$max_cmd_len
14620 # Object file suffix (normally "o").
14621 objext=$ac_objext
14623 # Executable file suffix (normally "").
14624 exeext=$exeext
14626 # whether the shell understands "unset".
14627 lt_unset=$lt_unset
14629 # turn spaces into newlines.
14630 SP2NL=$lt_lt_SP2NL
14632 # turn newlines into spaces.
14633 NL2SP=$lt_lt_NL2SP
14635 # An object symbol dumper.
14636 OBJDUMP=$lt_OBJDUMP
14638 # Method to check whether dependent libraries are shared objects.
14639 deplibs_check_method=$lt_deplibs_check_method
14641 # Command to use when deplibs_check_method == "file_magic".
14642 file_magic_cmd=$lt_file_magic_cmd
14644 # The archiver.
14645 AR=$lt_AR
14646 AR_FLAGS=$lt_AR_FLAGS
14648 # A symbol stripping program.
14649 STRIP=$lt_STRIP
14651 # Commands used to install an old-style archive.
14652 RANLIB=$lt_RANLIB
14653 old_postinstall_cmds=$lt_old_postinstall_cmds
14654 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14656 # Whether to use a lock for old archive extraction.
14657 lock_old_archive_extraction=$lock_old_archive_extraction
14659 # A C compiler.
14660 LTCC=$lt_CC
14662 # LTCC compiler flags.
14663 LTCFLAGS=$lt_CFLAGS
14665 # Take the output of nm and produce a listing of raw symbols and C names.
14666 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14668 # Transform the output of nm in a proper C declaration.
14669 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14671 # Transform the output of nm in a C name address pair.
14672 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14674 # Transform the output of nm in a C name address pair when lib prefix is needed.
14675 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14677 # The name of the directory that contains temporary libtool files.
14678 objdir=$objdir
14680 # Used to examine libraries when file_magic_cmd begins with "file".
14681 MAGIC_CMD=$MAGIC_CMD
14683 # Must we lock files when doing compilation?
14684 need_locks=$lt_need_locks
14686 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14687 DSYMUTIL=$lt_DSYMUTIL
14689 # Tool to change global to local symbols on Mac OS X.
14690 NMEDIT=$lt_NMEDIT
14692 # Tool to manipulate fat objects and archives on Mac OS X.
14693 LIPO=$lt_LIPO
14695 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14696 OTOOL=$lt_OTOOL
14698 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14699 OTOOL64=$lt_OTOOL64
14701 # Old archive suffix (normally "a").
14702 libext=$libext
14704 # Shared library suffix (normally ".so").
14705 shrext_cmds=$lt_shrext_cmds
14707 # The commands to extract the exported symbol list from a shared archive.
14708 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14710 # Variables whose values should be saved in libtool wrapper scripts and
14711 # restored at link time.
14712 variables_saved_for_relink=$lt_variables_saved_for_relink
14714 # Do we need the "lib" prefix for modules?
14715 need_lib_prefix=$need_lib_prefix
14717 # Do we need a version for libraries?
14718 need_version=$need_version
14720 # Library versioning type.
14721 version_type=$version_type
14723 # Shared library runtime path variable.
14724 runpath_var=$runpath_var
14726 # Shared library path variable.
14727 shlibpath_var=$shlibpath_var
14729 # Is shlibpath searched before the hard-coded library search path?
14730 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14732 # Format of library name prefix.
14733 libname_spec=$lt_libname_spec
14735 # List of archive names. First name is the real one, the rest are links.
14736 # The last name is the one that the linker finds with -lNAME
14737 library_names_spec=$lt_library_names_spec
14739 # The coded name of the library, if different from the real name.
14740 soname_spec=$lt_soname_spec
14742 # Permission mode override for installation of shared libraries.
14743 install_override_mode=$lt_install_override_mode
14745 # Command to use after installation of a shared archive.
14746 postinstall_cmds=$lt_postinstall_cmds
14748 # Command to use after uninstallation of a shared archive.
14749 postuninstall_cmds=$lt_postuninstall_cmds
14751 # Commands used to finish a libtool library installation in a directory.
14752 finish_cmds=$lt_finish_cmds
14754 # As "finish_cmds", except a single script fragment to be evaled but
14755 # not shown.
14756 finish_eval=$lt_finish_eval
14758 # Whether we should hardcode library paths into libraries.
14759 hardcode_into_libs=$hardcode_into_libs
14761 # Compile-time system search path for libraries.
14762 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14764 # Run-time system search path for libraries.
14765 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14767 # Whether dlopen is supported.
14768 dlopen_support=$enable_dlopen
14770 # Whether dlopen of programs is supported.
14771 dlopen_self=$enable_dlopen_self
14773 # Whether dlopen of statically linked programs is supported.
14774 dlopen_self_static=$enable_dlopen_self_static
14776 # Commands to strip libraries.
14777 old_striplib=$lt_old_striplib
14778 striplib=$lt_striplib
14781 # The linker used to build libraries.
14782 LD=$lt_LD
14784 # How to create reloadable object files.
14785 reload_flag=$lt_reload_flag
14786 reload_cmds=$lt_reload_cmds
14788 # Commands used to build an old-style archive.
14789 old_archive_cmds=$lt_old_archive_cmds
14791 # A language specific compiler.
14792 CC=$lt_compiler
14794 # Is the compiler the GNU compiler?
14795 with_gcc=$GCC
14797 # Compiler flag to turn off builtin functions.
14798 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14800 # How to pass a linker flag through the compiler.
14801 wl=$lt_lt_prog_compiler_wl
14803 # Additional compiler flags for building library objects.
14804 pic_flag=$lt_lt_prog_compiler_pic
14806 # Compiler flag to prevent dynamic linking.
14807 link_static_flag=$lt_lt_prog_compiler_static
14809 # Does compiler simultaneously support -c and -o options?
14810 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14812 # Whether or not to add -lc for building shared libraries.
14813 build_libtool_need_lc=$archive_cmds_need_lc
14815 # Whether or not to disallow shared libs when runtime libs are static.
14816 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14818 # Compiler flag to allow reflexive dlopens.
14819 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14821 # Compiler flag to generate shared objects directly from archives.
14822 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14824 # Whether the compiler copes with passing no objects directly.
14825 compiler_needs_object=$lt_compiler_needs_object
14827 # Create an old-style archive from a shared archive.
14828 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14830 # Create a temporary old-style archive to link instead of a shared archive.
14831 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14833 # Commands used to build a shared archive.
14834 archive_cmds=$lt_archive_cmds
14835 archive_expsym_cmds=$lt_archive_expsym_cmds
14837 # Commands used to build a loadable module if different from building
14838 # a shared archive.
14839 module_cmds=$lt_module_cmds
14840 module_expsym_cmds=$lt_module_expsym_cmds
14842 # Whether we are building with GNU ld or not.
14843 with_gnu_ld=$lt_with_gnu_ld
14845 # Flag that allows shared libraries with undefined symbols to be built.
14846 allow_undefined_flag=$lt_allow_undefined_flag
14848 # Flag that enforces no undefined symbols.
14849 no_undefined_flag=$lt_no_undefined_flag
14851 # Flag to hardcode \$libdir into a binary during linking.
14852 # This must work even if \$libdir does not exist
14853 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14855 # If ld is used when linking, flag to hardcode \$libdir into a binary
14856 # during linking. This must work even if \$libdir does not exist.
14857 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14859 # Whether we need a single "-rpath" flag with a separated argument.
14860 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14862 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14863 # DIR into the resulting binary.
14864 hardcode_direct=$hardcode_direct
14866 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14867 # DIR into the resulting binary and the resulting library dependency is
14868 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14869 # library is relocated.
14870 hardcode_direct_absolute=$hardcode_direct_absolute
14872 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14873 # into the resulting binary.
14874 hardcode_minus_L=$hardcode_minus_L
14876 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14877 # into the resulting binary.
14878 hardcode_shlibpath_var=$hardcode_shlibpath_var
14880 # Set to "yes" if building a shared library automatically hardcodes DIR
14881 # into the library and all subsequent libraries and executables linked
14882 # against it.
14883 hardcode_automatic=$hardcode_automatic
14885 # Set to yes if linker adds runtime paths of dependent libraries
14886 # to runtime path list.
14887 inherit_rpath=$inherit_rpath
14889 # Whether libtool must link a program against all its dependency libraries.
14890 link_all_deplibs=$link_all_deplibs
14892 # Fix the shell variable \$srcfile for the compiler.
14893 fix_srcfile_path=$lt_fix_srcfile_path
14895 # Set to "yes" if exported symbols are required.
14896 always_export_symbols=$always_export_symbols
14898 # The commands to list exported symbols.
14899 export_symbols_cmds=$lt_export_symbols_cmds
14901 # Symbols that should not be listed in the preloaded symbols.
14902 exclude_expsyms=$lt_exclude_expsyms
14904 # Symbols that must always be exported.
14905 include_expsyms=$lt_include_expsyms
14907 # Commands necessary for linking programs (against libraries) with templates.
14908 prelink_cmds=$lt_prelink_cmds
14910 # Specify filename containing input files.
14911 file_list_spec=$lt_file_list_spec
14913 # How to hardcode a shared library path into an executable.
14914 hardcode_action=$hardcode_action
14916 # ### END LIBTOOL CONFIG
14918 _LT_EOF
14920 case $host_os in
14921 aix3*)
14922 cat <<\_LT_EOF >> "$cfgfile"
14923 # AIX sometimes has problems with the GCC collect2 program. For some
14924 # reason, if we set the COLLECT_NAMES environment variable, the problems
14925 # vanish in a puff of smoke.
14926 if test "X${COLLECT_NAMES+set}" != Xset; then
14927 COLLECT_NAMES=
14928 export COLLECT_NAMES
14930 _LT_EOF
14932 esac
14935 ltmain="$ac_aux_dir/ltmain.sh"
14938 # We use sed instead of cat because bash on DJGPP gets confused if
14939 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14940 # text mode, it properly converts lines to CR/LF. This bash problem
14941 # is reportedly fixed, but why not run on old versions too?
14942 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14943 || (rm -f "$cfgfile"; exit 1)
14945 case $xsi_shell in
14946 yes)
14947 cat << \_LT_EOF >> "$cfgfile"
14949 # func_dirname file append nondir_replacement
14950 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14951 # otherwise set result to NONDIR_REPLACEMENT.
14952 func_dirname ()
14954 case ${1} in
14955 */*) func_dirname_result="${1%/*}${2}" ;;
14956 * ) func_dirname_result="${3}" ;;
14957 esac
14960 # func_basename file
14961 func_basename ()
14963 func_basename_result="${1##*/}"
14966 # func_dirname_and_basename file append nondir_replacement
14967 # perform func_basename and func_dirname in a single function
14968 # call:
14969 # dirname: Compute the dirname of FILE. If nonempty,
14970 # add APPEND to the result, otherwise set result
14971 # to NONDIR_REPLACEMENT.
14972 # value returned in "$func_dirname_result"
14973 # basename: Compute filename of FILE.
14974 # value retuned in "$func_basename_result"
14975 # Implementation must be kept synchronized with func_dirname
14976 # and func_basename. For efficiency, we do not delegate to
14977 # those functions but instead duplicate the functionality here.
14978 func_dirname_and_basename ()
14980 case ${1} in
14981 */*) func_dirname_result="${1%/*}${2}" ;;
14982 * ) func_dirname_result="${3}" ;;
14983 esac
14984 func_basename_result="${1##*/}"
14987 # func_stripname prefix suffix name
14988 # strip PREFIX and SUFFIX off of NAME.
14989 # PREFIX and SUFFIX must not contain globbing or regex special
14990 # characters, hashes, percent signs, but SUFFIX may contain a leading
14991 # dot (in which case that matches only a dot).
14992 func_stripname ()
14994 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14995 # positional parameters, so assign one to ordinary parameter first.
14996 func_stripname_result=${3}
14997 func_stripname_result=${func_stripname_result#"${1}"}
14998 func_stripname_result=${func_stripname_result%"${2}"}
15001 # func_opt_split
15002 func_opt_split ()
15004 func_opt_split_opt=${1%%=*}
15005 func_opt_split_arg=${1#*=}
15008 # func_lo2o object
15009 func_lo2o ()
15011 case ${1} in
15012 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15013 *) func_lo2o_result=${1} ;;
15014 esac
15017 # func_xform libobj-or-source
15018 func_xform ()
15020 func_xform_result=${1%.*}.lo
15023 # func_arith arithmetic-term...
15024 func_arith ()
15026 func_arith_result=$(( $* ))
15029 # func_len string
15030 # STRING may not start with a hyphen.
15031 func_len ()
15033 func_len_result=${#1}
15036 _LT_EOF
15038 *) # Bourne compatible functions.
15039 cat << \_LT_EOF >> "$cfgfile"
15041 # func_dirname file append nondir_replacement
15042 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15043 # otherwise set result to NONDIR_REPLACEMENT.
15044 func_dirname ()
15046 # Extract subdirectory from the argument.
15047 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15048 if test "X$func_dirname_result" = "X${1}"; then
15049 func_dirname_result="${3}"
15050 else
15051 func_dirname_result="$func_dirname_result${2}"
15055 # func_basename file
15056 func_basename ()
15058 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15062 # func_stripname prefix suffix name
15063 # strip PREFIX and SUFFIX off of NAME.
15064 # PREFIX and SUFFIX must not contain globbing or regex special
15065 # characters, hashes, percent signs, but SUFFIX may contain a leading
15066 # dot (in which case that matches only a dot).
15067 # func_strip_suffix prefix name
15068 func_stripname ()
15070 case ${2} in
15071 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15072 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15073 esac
15076 # sed scripts:
15077 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15078 my_sed_long_arg='1s/^-[^=]*=//'
15080 # func_opt_split
15081 func_opt_split ()
15083 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15084 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15087 # func_lo2o object
15088 func_lo2o ()
15090 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15093 # func_xform libobj-or-source
15094 func_xform ()
15096 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15099 # func_arith arithmetic-term...
15100 func_arith ()
15102 func_arith_result=`expr "$@"`
15105 # func_len string
15106 # STRING may not start with a hyphen.
15107 func_len ()
15109 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15112 _LT_EOF
15113 esac
15115 case $lt_shell_append in
15116 yes)
15117 cat << \_LT_EOF >> "$cfgfile"
15119 # func_append var value
15120 # Append VALUE to the end of shell variable VAR.
15121 func_append ()
15123 eval "$1+=\$2"
15125 _LT_EOF
15128 cat << \_LT_EOF >> "$cfgfile"
15130 # func_append var value
15131 # Append VALUE to the end of shell variable VAR.
15132 func_append ()
15134 eval "$1=\$$1\$2"
15137 _LT_EOF
15139 esac
15142 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15143 || (rm -f "$cfgfile"; exit 1)
15145 mv -f "$cfgfile" "$ofile" ||
15146 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15147 chmod +x "$ofile"
15150 "include":C) test -d include || mkdir include ;;
15151 "src":C)
15152 test -d src || mkdir src
15153 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
15156 esac
15157 done # for ac_tag
15160 as_fn_exit 0
15161 _ACEOF
15162 ac_clean_files=$ac_clean_files_save
15164 test $ac_write_fail = 0 ||
15165 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15168 # configure is writing to config.log, and then calls config.status.
15169 # config.status does its own redirection, appending to config.log.
15170 # Unfortunately, on DOS this fails, as config.log is still kept open
15171 # by configure, so config.status won't be able to write to it; its
15172 # output is simply discarded. So we exec the FD to /dev/null,
15173 # effectively closing config.log, so it can be properly (re)opened and
15174 # appended to by config.status. When coming back to configure, we
15175 # need to make the FD available again.
15176 if test "$no_create" != yes; then
15177 ac_cs_success=:
15178 ac_config_status_args=
15179 test "$silent" = yes &&
15180 ac_config_status_args="$ac_config_status_args --quiet"
15181 exec 5>/dev/null
15182 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15183 exec 5>>config.log
15184 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15185 # would make configure fail if this is the last instruction.
15186 $ac_cs_success || as_fn_exit $?
15188 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15190 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}