2018-01-22 Sebastian Perta <sebastian.perta@renesas.com>
[official-gcc.git] / libffi / configure
blob74b747b3b7e89e2c7e08154f20e75e27b35f4717
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libffi 3.99999.
5 # Report bugs to <http://github.com/atgreen/libffi/issues>.
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://github.com/atgreen/libffi/issues about your
241 $0: system, 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.99999'
563 PACKAGE_STRING='libffi 3.99999'
564 PACKAGE_BUGREPORT='http://github.com/atgreen/libffi/issues'
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 get_gcc_base_ver
608 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE
609 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE
610 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE
611 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE
612 LIBAT_BUILD_VERSIONED_SHLIB_FALSE
613 LIBAT_BUILD_VERSIONED_SHLIB_TRUE
614 OPT_LDFLAGS
615 SECTION_LDFLAGS
616 toolexeclibdir
617 toolexecdir
618 FFI_DEBUG_FALSE
619 FFI_DEBUG_TRUE
620 TARGET_OBJ
621 TARGETDIR
622 TARGET
623 FFI_EXEC_TRAMPOLINE_TABLE
624 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
625 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
626 HAVE_LONG_DOUBLE_VARIANT
627 HAVE_LONG_DOUBLE
628 ALLOCA
629 AM_LTLDFLAGS
630 AM_RUNTESTFLAGS
631 TESTSUBDIR_FALSE
632 TESTSUBDIR_TRUE
633 MAINT
634 MAINTAINER_MODE_FALSE
635 MAINTAINER_MODE_TRUE
636 CXXCPP
638 OTOOL64
639 OTOOL
640 LIPO
641 NMEDIT
642 DSYMUTIL
643 RANLIB
645 OBJDUMP
646 LN_S
648 ac_ct_DUMPBIN
649 DUMPBIN
651 FGREP
652 EGREP
653 GREP
655 LIBTOOL
656 am__fastdepCCAS_FALSE
657 am__fastdepCCAS_TRUE
658 CCASDEPMODE
659 CCASFLAGS
660 CCAS
661 am__fastdepCXX_FALSE
662 am__fastdepCXX_TRUE
663 CXXDEPMODE
664 ac_ct_CXX
665 CXXFLAGS
667 am__fastdepCC_FALSE
668 am__fastdepCC_TRUE
669 CCDEPMODE
670 am__nodep
671 AMDEPBACKSLASH
672 AMDEP_FALSE
673 AMDEP_TRUE
674 am__quote
675 am__include
676 DEPDIR
677 OBJEXT
678 EXEEXT
679 ac_ct_CC
680 CPPFLAGS
681 LDFLAGS
682 CFLAGS
684 GENINSRC_FALSE
685 GENINSRC_TRUE
686 BUILD_INFO_FALSE
687 BUILD_INFO_TRUE
688 am__untar
689 am__tar
690 AMTAR
691 am__leading_dot
692 SET_MAKE
694 mkdir_p
695 MKDIR_P
696 INSTALL_STRIP_PROGRAM
697 STRIP
698 install_sh
699 MAKEINFO
700 AUTOHEADER
701 AUTOMAKE
702 AUTOCONF
703 ACLOCAL
704 VERSION
705 PACKAGE
706 CYGPATH_W
707 am__isrc
708 INSTALL_DATA
709 INSTALL_SCRIPT
710 INSTALL_PROGRAM
711 target_os
712 target_vendor
713 target_cpu
714 target
715 host_os
716 host_vendor
717 host_cpu
718 host
719 build_os
720 build_vendor
721 build_cpu
722 build
723 multi_basedir
724 target_alias
725 host_alias
726 build_alias
727 LIBS
728 ECHO_T
729 ECHO_N
730 ECHO_C
731 DEFS
732 mandir
733 localedir
734 libdir
735 psdir
736 pdfdir
737 dvidir
738 htmldir
739 infodir
740 docdir
741 oldincludedir
742 includedir
743 localstatedir
744 sharedstatedir
745 sysconfdir
746 datadir
747 datarootdir
748 libexecdir
749 sbindir
750 bindir
751 program_transform_name
752 prefix
753 exec_prefix
754 PACKAGE_URL
755 PACKAGE_BUGREPORT
756 PACKAGE_STRING
757 PACKAGE_VERSION
758 PACKAGE_TARNAME
759 PACKAGE_NAME
760 PATH_SEPARATOR
761 SHELL'
762 ac_subst_files=''
763 ac_user_opts='
764 enable_option_checking
765 enable_multilib
766 enable_generated_files_in_srcdir
767 enable_dependency_tracking
768 enable_shared
769 enable_static
770 with_pic
771 enable_fast_install
772 with_gnu_ld
773 enable_libtool_lock
774 enable_maintainer_mode
775 enable_pax_emutramp
776 enable_debug
777 enable_structs
778 enable_raw_api
779 enable_purify_safety
780 enable_symvers
781 with_gcc_major_version_only
783 ac_precious_vars='build_alias
784 host_alias
785 target_alias
786 CCAS
787 CCASFLAGS
789 CPPFLAGS
790 CXXCPP'
793 # Initialize some variables set by options.
794 ac_init_help=
795 ac_init_version=false
796 ac_unrecognized_opts=
797 ac_unrecognized_sep=
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
800 cache_file=/dev/null
801 exec_prefix=NONE
802 no_create=
803 no_recursion=
804 prefix=NONE
805 program_prefix=NONE
806 program_suffix=NONE
807 program_transform_name=s,x,x,
808 silent=
809 site=
810 srcdir=
811 verbose=
812 x_includes=NONE
813 x_libraries=NONE
815 # Installation directory options.
816 # These are left unexpanded so users can "make install exec_prefix=/foo"
817 # and all the variables that are supposed to be based on exec_prefix
818 # by default will actually change.
819 # Use braces instead of parens because sh, perl, etc. also accept them.
820 # (The list follows the same order as the GNU Coding Standards.)
821 bindir='${exec_prefix}/bin'
822 sbindir='${exec_prefix}/sbin'
823 libexecdir='${exec_prefix}/libexec'
824 datarootdir='${prefix}/share'
825 datadir='${datarootdir}'
826 sysconfdir='${prefix}/etc'
827 sharedstatedir='${prefix}/com'
828 localstatedir='${prefix}/var'
829 includedir='${prefix}/include'
830 oldincludedir='/usr/include'
831 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832 infodir='${datarootdir}/info'
833 htmldir='${docdir}'
834 dvidir='${docdir}'
835 pdfdir='${docdir}'
836 psdir='${docdir}'
837 libdir='${exec_prefix}/lib'
838 localedir='${datarootdir}/locale'
839 mandir='${datarootdir}/man'
841 ac_prev=
842 ac_dashdash=
843 for ac_option
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
848 ac_prev=
849 continue
852 case $ac_option in
853 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *) ac_optarg=yes ;;
855 esac
857 # Accept the important Cygnus configure options, so we can diagnose typos.
859 case $ac_dashdash$ac_option in
861 ac_dashdash=yes ;;
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 bindir=$ac_optarg ;;
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
880 --config-cache | -C)
881 cache_file=config.cache ;;
883 -datadir | --datadir | --datadi | --datad)
884 ac_prev=datadir ;;
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
895 -disable-* | --disable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
904 "enable_$ac_useropt"
905 "*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=no ;;
911 -docdir | --docdir | --docdi | --doc | --do)
912 ac_prev=docdir ;;
913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914 docdir=$ac_optarg ;;
916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917 ac_prev=dvidir ;;
918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919 dvidir=$ac_optarg ;;
921 -enable-* | --enable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
930 "enable_$ac_useropt"
931 "*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=\$ac_optarg ;;
937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939 | --exec | --exe | --ex)
940 ac_prev=exec_prefix ;;
941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943 | --exec=* | --exe=* | --ex=*)
944 exec_prefix=$ac_optarg ;;
946 -gas | --gas | --ga | --g)
947 # Obsolete; use --with-gas.
948 with_gas=yes ;;
950 -help | --help | --hel | --he | -h)
951 ac_init_help=long ;;
952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953 ac_init_help=recursive ;;
954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955 ac_init_help=short ;;
957 -host | --host | --hos | --ho)
958 ac_prev=host_alias ;;
959 -host=* | --host=* | --hos=* | --ho=*)
960 host_alias=$ac_optarg ;;
962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963 ac_prev=htmldir ;;
964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965 | --ht=*)
966 htmldir=$ac_optarg ;;
968 -includedir | --includedir | --includedi | --included | --include \
969 | --includ | --inclu | --incl | --inc)
970 ac_prev=includedir ;;
971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972 | --includ=* | --inclu=* | --incl=* | --inc=*)
973 includedir=$ac_optarg ;;
975 -infodir | --infodir | --infodi | --infod | --info | --inf)
976 ac_prev=infodir ;;
977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978 infodir=$ac_optarg ;;
980 -libdir | --libdir | --libdi | --libd)
981 ac_prev=libdir ;;
982 -libdir=* | --libdir=* | --libdi=* | --libd=*)
983 libdir=$ac_optarg ;;
985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986 | --libexe | --libex | --libe)
987 ac_prev=libexecdir ;;
988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989 | --libexe=* | --libex=* | --libe=*)
990 libexecdir=$ac_optarg ;;
992 -localedir | --localedir | --localedi | --localed | --locale)
993 ac_prev=localedir ;;
994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995 localedir=$ac_optarg ;;
997 -localstatedir | --localstatedir | --localstatedi | --localstated \
998 | --localstate | --localstat | --localsta | --localst | --locals)
999 ac_prev=localstatedir ;;
1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002 localstatedir=$ac_optarg ;;
1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005 ac_prev=mandir ;;
1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007 mandir=$ac_optarg ;;
1009 -nfp | --nfp | --nf)
1010 # Obsolete; use --without-fp.
1011 with_fp=no ;;
1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014 | --no-cr | --no-c | -n)
1015 no_create=yes ;;
1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019 no_recursion=yes ;;
1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023 | --oldin | --oldi | --old | --ol | --o)
1024 ac_prev=oldincludedir ;;
1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028 oldincludedir=$ac_optarg ;;
1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031 ac_prev=prefix ;;
1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033 prefix=$ac_optarg ;;
1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036 | --program-pre | --program-pr | --program-p)
1037 ac_prev=program_prefix ;;
1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040 program_prefix=$ac_optarg ;;
1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043 | --program-suf | --program-su | --program-s)
1044 ac_prev=program_suffix ;;
1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047 program_suffix=$ac_optarg ;;
1049 -program-transform-name | --program-transform-name \
1050 | --program-transform-nam | --program-transform-na \
1051 | --program-transform-n | --program-transform- \
1052 | --program-transform | --program-transfor \
1053 | --program-transfo | --program-transf \
1054 | --program-trans | --program-tran \
1055 | --progr-tra | --program-tr | --program-t)
1056 ac_prev=program_transform_name ;;
1057 -program-transform-name=* | --program-transform-name=* \
1058 | --program-transform-nam=* | --program-transform-na=* \
1059 | --program-transform-n=* | --program-transform-=* \
1060 | --program-transform=* | --program-transfor=* \
1061 | --program-transfo=* | --program-transf=* \
1062 | --program-trans=* | --program-tran=* \
1063 | --progr-tra=* | --program-tr=* | --program-t=*)
1064 program_transform_name=$ac_optarg ;;
1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067 ac_prev=pdfdir ;;
1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069 pdfdir=$ac_optarg ;;
1071 -psdir | --psdir | --psdi | --psd | --ps)
1072 ac_prev=psdir ;;
1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074 psdir=$ac_optarg ;;
1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077 | -silent | --silent | --silen | --sile | --sil)
1078 silent=yes ;;
1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081 ac_prev=sbindir ;;
1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083 | --sbi=* | --sb=*)
1084 sbindir=$ac_optarg ;;
1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088 | --sharedst | --shareds | --shared | --share | --shar \
1089 | --sha | --sh)
1090 ac_prev=sharedstatedir ;;
1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094 | --sha=* | --sh=*)
1095 sharedstatedir=$ac_optarg ;;
1097 -site | --site | --sit)
1098 ac_prev=site ;;
1099 -site=* | --site=* | --sit=*)
1100 site=$ac_optarg ;;
1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103 ac_prev=srcdir ;;
1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105 srcdir=$ac_optarg ;;
1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108 | --syscon | --sysco | --sysc | --sys | --sy)
1109 ac_prev=sysconfdir ;;
1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112 sysconfdir=$ac_optarg ;;
1114 -target | --target | --targe | --targ | --tar | --ta | --t)
1115 ac_prev=target_alias ;;
1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117 target_alias=$ac_optarg ;;
1119 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120 verbose=yes ;;
1122 -version | --version | --versio | --versi | --vers | -V)
1123 ac_init_version=: ;;
1125 -with-* | --with-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1134 "with_$ac_useropt"
1135 "*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1138 esac
1139 eval with_$ac_useropt=\$ac_optarg ;;
1141 -without-* | --without-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1150 "with_$ac_useropt"
1151 "*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=no ;;
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1175 -*) as_fn_error "unrecognized option: \`$ac_option'
1176 Try \`$0 --help' for more information."
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 case $ac_envvar in #(
1183 '' | [0-9]* | *[!_$as_cr_alnum]* )
1184 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1185 esac
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1190 # FIXME: should be removed in autoconf 3.0.
1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1197 esac
1198 done
1200 if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 as_fn_error "missing argument to $ac_option"
1205 if test -n "$ac_unrecognized_opts"; then
1206 case $enable_option_checking in
1207 no) ;;
1208 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210 esac
1213 # Check all directory arguments for consistency.
1214 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
1219 eval ac_val=\$$ac_var
1220 # Remove trailing slashes.
1221 case $ac_val in
1222 */ )
1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224 eval $ac_var=\$ac_val;;
1225 esac
1226 # Be sure to have absolute directory names.
1227 case $ac_val in
1228 [\\/$]* | ?:[\\/]* ) continue;;
1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230 esac
1231 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1232 done
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1237 build=$build_alias
1238 host=$host_alias
1239 target=$target_alias
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
1245 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1246 If a cross compiler is detected then cross compile mode will be used." >&2
1247 elif test "x$build_alias" != "x$host_alias"; then
1248 cross_compiling=yes
1252 ac_tool_prefix=
1253 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1255 test "$silent" = yes && exec 6>/dev/null
1258 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259 ac_ls_di=`ls -di .` &&
1260 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261 as_fn_error "working directory cannot be determined"
1262 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263 as_fn_error "pwd does not report name of working directory"
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268 ac_srcdir_defaulted=yes
1269 # Try the directory containing this script, then the parent directory.
1270 ac_confdir=`$as_dirname -- "$as_myself" ||
1271 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272 X"$as_myself" : 'X\(//\)[^/]' \| \
1273 X"$as_myself" : 'X\(//\)$' \| \
1274 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1275 $as_echo X"$as_myself" |
1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277 s//\1/
1280 /^X\(\/\/\)[^/].*/{
1281 s//\1/
1284 /^X\(\/\/\)$/{
1285 s//\1/
1288 /^X\(\/\).*/{
1289 s//\1/
1292 s/.*/./; q'`
1293 srcdir=$ac_confdir
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295 srcdir=..
1297 else
1298 ac_srcdir_defaulted=no
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1304 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305 ac_abs_confdir=`(
1306 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1307 pwd)`
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 srcdir=.
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1315 case $srcdir in
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 esac
1318 for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323 done
1326 # Report the --help message.
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1331 cat <<_ACEOF
1332 \`configure' configures libffi 3.99999 to adapt to many kinds of systems.
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1339 Defaults for the options are specified in brackets.
1341 Configuration:
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1356 [PREFIX]
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1363 For better control, use the options below.
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
1385 _ACEOF
1387 cat <<\_ACEOF
1389 Program names:
1390 --program-prefix=PREFIX prepend PREFIX to installed program names
1391 --program-suffix=SUFFIX append SUFFIX to installed program names
1392 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1394 System types:
1395 --build=BUILD configure for building on BUILD [guessed]
1396 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1397 --target=TARGET configure for building compilers for TARGET [HOST]
1398 _ACEOF
1401 if test -n "$ac_init_help"; then
1402 case $ac_init_help in
1403 short | recursive ) echo "Configuration of libffi 3.99999:";;
1404 esac
1405 cat <<\_ACEOF
1407 Optional Features:
1408 --disable-option-checking ignore unrecognized --enable/--with options
1409 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1410 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1411 --enable-multilib build many library versions (default)
1412 --enable-generated-files-in-srcdir
1413 put copies of generated files in source dir intended
1414 for creating source tarballs for users without
1415 texinfo bison or flex
1416 --disable-dependency-tracking speeds up one-time build
1417 --enable-dependency-tracking do not reject slow dependency extractors
1418 --enable-shared[=PKGS] build shared libraries [default=yes]
1419 --enable-static[=PKGS] build static libraries [default=yes]
1420 --enable-fast-install[=PKGS]
1421 optimize for fast installation [default=yes]
1422 --disable-libtool-lock avoid locking (might break parallel builds)
1423 --enable-maintainer-mode enable make rules and dependencies not useful
1424 (and sometimes confusing) to the casual installer
1425 --enable-pax_emutramp enable pax emulated trampolines, for we can't use PROT_EXEC
1426 --enable-debug debugging mode
1427 --disable-structs omit code for struct support
1428 --disable-raw-api make the raw api unavailable
1429 --enable-purify-safety purify-safe mode
1430 --enable-symvers=STYLE enables symbol versioning of the shared library
1431 [default=yes]
1433 Optional Packages:
1434 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1435 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1436 --with-pic try to use only PIC/non-PIC objects [default=use
1437 both]
1438 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1439 --with-gcc-major-version-only
1440 use only GCC major number in filesystem paths
1442 Some influential environment variables:
1443 CC C compiler command
1444 CFLAGS C compiler flags
1445 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1446 nonstandard directory <lib dir>
1447 LIBS libraries to pass to the linker, e.g. -l<library>
1448 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1449 you have headers in a nonstandard directory <include dir>
1450 CXX C++ compiler command
1451 CXXFLAGS C++ compiler flags
1452 CCAS assembler compiler command (defaults to CC)
1453 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1454 CPP C preprocessor
1455 CXXCPP C++ preprocessor
1457 Use these variables to override the choices made by `configure' or to help
1458 it to find libraries and programs with nonstandard names/locations.
1460 Report bugs to <http://github.com/atgreen/libffi/issues>.
1461 _ACEOF
1462 ac_status=$?
1465 if test "$ac_init_help" = "recursive"; then
1466 # If there are subdirs, report their specific --help.
1467 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1468 test -d "$ac_dir" ||
1469 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1470 continue
1471 ac_builddir=.
1473 case "$ac_dir" in
1474 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1477 # A ".." for each directory in $ac_dir_suffix.
1478 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1479 case $ac_top_builddir_sub in
1480 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1482 esac ;;
1483 esac
1484 ac_abs_top_builddir=$ac_pwd
1485 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1486 # for backward compatibility:
1487 ac_top_builddir=$ac_top_build_prefix
1489 case $srcdir in
1490 .) # We are building in place.
1491 ac_srcdir=.
1492 ac_top_srcdir=$ac_top_builddir_sub
1493 ac_abs_top_srcdir=$ac_pwd ;;
1494 [\\/]* | ?:[\\/]* ) # Absolute name.
1495 ac_srcdir=$srcdir$ac_dir_suffix;
1496 ac_top_srcdir=$srcdir
1497 ac_abs_top_srcdir=$srcdir ;;
1498 *) # Relative name.
1499 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1500 ac_top_srcdir=$ac_top_build_prefix$srcdir
1501 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1502 esac
1503 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1505 cd "$ac_dir" || { ac_status=$?; continue; }
1506 # Check for guested configure.
1507 if test -f "$ac_srcdir/configure.gnu"; then
1508 echo &&
1509 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1510 elif test -f "$ac_srcdir/configure"; then
1511 echo &&
1512 $SHELL "$ac_srcdir/configure" --help=recursive
1513 else
1514 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1515 fi || ac_status=$?
1516 cd "$ac_pwd" || { ac_status=$?; break; }
1517 done
1520 test -n "$ac_init_help" && exit $ac_status
1521 if $ac_init_version; then
1522 cat <<\_ACEOF
1523 libffi configure 3.99999
1524 generated by GNU Autoconf 2.64
1526 Copyright (C) 2009 Free Software Foundation, Inc.
1527 This configure script is free software; the Free Software Foundation
1528 gives unlimited permission to copy, distribute and modify it.
1529 _ACEOF
1530 exit
1533 ## ------------------------ ##
1534 ## Autoconf initialization. ##
1535 ## ------------------------ ##
1537 # ac_fn_c_try_compile LINENO
1538 # --------------------------
1539 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1540 ac_fn_c_try_compile ()
1542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543 rm -f conftest.$ac_objext
1544 if { { ac_try="$ac_compile"
1545 case "(($ac_try" in
1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547 *) ac_try_echo=$ac_try;;
1548 esac
1549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550 $as_echo "$ac_try_echo"; } >&5
1551 (eval "$ac_compile") 2>conftest.err
1552 ac_status=$?
1553 if test -s conftest.err; then
1554 grep -v '^ *+' conftest.err >conftest.er1
1555 cat conftest.er1 >&5
1556 mv -f conftest.er1 conftest.err
1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559 test $ac_status = 0; } && {
1560 test -z "$ac_c_werror_flag" ||
1561 test ! -s conftest.err
1562 } && test -s conftest.$ac_objext; then :
1563 ac_retval=0
1564 else
1565 $as_echo "$as_me: failed program was:" >&5
1566 sed 's/^/| /' conftest.$ac_ext >&5
1568 ac_retval=1
1570 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1571 return $ac_retval
1573 } # ac_fn_c_try_compile
1575 # ac_fn_cxx_try_compile LINENO
1576 # ----------------------------
1577 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1578 ac_fn_cxx_try_compile ()
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 rm -f conftest.$ac_objext
1582 if { { ac_try="$ac_compile"
1583 case "(($ac_try" in
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1586 esac
1587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_compile") 2>conftest.err
1590 ac_status=$?
1591 if test -s conftest.err; then
1592 grep -v '^ *+' conftest.err >conftest.er1
1593 cat conftest.er1 >&5
1594 mv -f conftest.er1 conftest.err
1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } && {
1598 test -z "$ac_cxx_werror_flag" ||
1599 test ! -s conftest.err
1600 } && test -s conftest.$ac_objext; then :
1601 ac_retval=0
1602 else
1603 $as_echo "$as_me: failed program was:" >&5
1604 sed 's/^/| /' conftest.$ac_ext >&5
1606 ac_retval=1
1608 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1609 return $ac_retval
1611 } # ac_fn_cxx_try_compile
1613 # ac_fn_c_try_link LINENO
1614 # -----------------------
1615 # Try to link conftest.$ac_ext, and return whether this succeeded.
1616 ac_fn_c_try_link ()
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 rm -f conftest.$ac_objext conftest$ac_exeext
1620 if { { ac_try="$ac_link"
1621 case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_link") 2>conftest.err
1628 ac_status=$?
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } && {
1636 test -z "$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1638 } && test -s conftest$ac_exeext && {
1639 test "$cross_compiling" = yes ||
1640 $as_test_x conftest$ac_exeext
1641 }; then :
1642 ac_retval=0
1643 else
1644 $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1647 ac_retval=1
1649 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1650 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1651 # interfere with the next link command; also delete a directory that is
1652 # left behind by Apple's compiler. We do this before executing the actions.
1653 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1654 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1655 return $ac_retval
1657 } # ac_fn_c_try_link
1659 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1660 # -------------------------------------------------------
1661 # Tests whether HEADER exists and can be compiled using the include files in
1662 # INCLUDES, setting the cache variable VAR accordingly.
1663 ac_fn_c_check_header_compile ()
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1667 $as_echo_n "checking for $2... " >&6; }
1668 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1669 $as_echo_n "(cached) " >&6
1670 else
1671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672 /* end confdefs.h. */
1674 #include <$2>
1675 _ACEOF
1676 if ac_fn_c_try_compile "$LINENO"; then :
1677 eval "$3=yes"
1678 else
1679 eval "$3=no"
1681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1683 eval ac_res=\$$3
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1685 $as_echo "$ac_res" >&6; }
1686 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1688 } # ac_fn_c_check_header_compile
1690 # ac_fn_c_try_cpp LINENO
1691 # ----------------------
1692 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1693 ac_fn_c_try_cpp ()
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if { { ac_try="$ac_cpp conftest.$ac_ext"
1697 case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1704 ac_status=$?
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } >/dev/null && {
1712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1713 test ! -s conftest.err
1714 }; then :
1715 ac_retval=0
1716 else
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1720 ac_retval=1
1722 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1723 return $ac_retval
1725 } # ac_fn_c_try_cpp
1727 # ac_fn_c_try_run LINENO
1728 # ----------------------
1729 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1730 # that executables *can* be run.
1731 ac_fn_c_try_run ()
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 if { { ac_try="$ac_link"
1735 case "(($ac_try" in
1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737 *) ac_try_echo=$ac_try;;
1738 esac
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741 (eval "$ac_link") 2>&5
1742 ac_status=$?
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1745 { { case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_try") 2>&5
1752 ac_status=$?
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; }; }; then :
1755 ac_retval=0
1756 else
1757 $as_echo "$as_me: program exited with status $ac_status" >&5
1758 $as_echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.$ac_ext >&5
1761 ac_retval=$ac_status
1763 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1764 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1765 return $ac_retval
1767 } # ac_fn_c_try_run
1769 # ac_fn_c_check_func LINENO FUNC VAR
1770 # ----------------------------------
1771 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1772 ac_fn_c_check_func ()
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1778 $as_echo_n "(cached) " >&6
1779 else
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1782 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1784 #define $2 innocuous_$2
1786 /* System header to define __stub macros and hopefully few prototypes,
1787 which can conflict with char $2 (); below.
1788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1789 <limits.h> exists even on freestanding compilers. */
1791 #ifdef __STDC__
1792 # include <limits.h>
1793 #else
1794 # include <assert.h>
1795 #endif
1797 #undef $2
1799 /* Override any GCC internal prototype to avoid an error.
1800 Use char because int might match the return type of a GCC
1801 builtin and then its argument prototype would still apply. */
1802 #ifdef __cplusplus
1803 extern "C"
1804 #endif
1805 char $2 ();
1806 /* The GNU C library defines this for functions which it implements
1807 to always fail with ENOSYS. Some functions are actually named
1808 something starting with __ and the normal name is an alias. */
1809 #if defined __stub_$2 || defined __stub___$2
1810 choke me
1811 #endif
1814 main ()
1816 return $2 ();
1818 return 0;
1820 _ACEOF
1821 if ac_fn_c_try_link "$LINENO"; then :
1822 eval "$3=yes"
1823 else
1824 eval "$3=no"
1826 rm -f core conftest.err conftest.$ac_objext \
1827 conftest$ac_exeext conftest.$ac_ext
1829 eval ac_res=\$$3
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831 $as_echo "$ac_res" >&6; }
1832 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834 } # ac_fn_c_check_func
1836 # ac_fn_cxx_try_cpp LINENO
1837 # ------------------------
1838 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1839 ac_fn_cxx_try_cpp ()
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 if { { ac_try="$ac_cpp conftest.$ac_ext"
1843 case "(($ac_try" in
1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845 *) ac_try_echo=$ac_try;;
1846 esac
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 $as_echo "$ac_try_echo"; } >&5
1849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1850 ac_status=$?
1851 if test -s conftest.err; then
1852 grep -v '^ *+' conftest.err >conftest.er1
1853 cat conftest.er1 >&5
1854 mv -f conftest.er1 conftest.err
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } >/dev/null && {
1858 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1859 test ! -s conftest.err
1860 }; then :
1861 ac_retval=0
1862 else
1863 $as_echo "$as_me: failed program was:" >&5
1864 sed 's/^/| /' conftest.$ac_ext >&5
1866 ac_retval=1
1868 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869 return $ac_retval
1871 } # ac_fn_cxx_try_cpp
1873 # ac_fn_cxx_try_link LINENO
1874 # -------------------------
1875 # Try to link conftest.$ac_ext, and return whether this succeeded.
1876 ac_fn_cxx_try_link ()
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 rm -f conftest.$ac_objext conftest$ac_exeext
1880 if { { ac_try="$ac_link"
1881 case "(($ac_try" in
1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883 *) ac_try_echo=$ac_try;;
1884 esac
1885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 $as_echo "$ac_try_echo"; } >&5
1887 (eval "$ac_link") 2>conftest.err
1888 ac_status=$?
1889 if test -s conftest.err; then
1890 grep -v '^ *+' conftest.err >conftest.er1
1891 cat conftest.er1 >&5
1892 mv -f conftest.er1 conftest.err
1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895 test $ac_status = 0; } && {
1896 test -z "$ac_cxx_werror_flag" ||
1897 test ! -s conftest.err
1898 } && test -s conftest$ac_exeext && {
1899 test "$cross_compiling" = yes ||
1900 $as_test_x conftest$ac_exeext
1901 }; then :
1902 ac_retval=0
1903 else
1904 $as_echo "$as_me: failed program was:" >&5
1905 sed 's/^/| /' conftest.$ac_ext >&5
1907 ac_retval=1
1909 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1910 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1911 # interfere with the next link command; also delete a directory that is
1912 # left behind by Apple's compiler. We do this before executing the actions.
1913 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1914 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1915 return $ac_retval
1917 } # ac_fn_cxx_try_link
1919 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1920 # --------------------------------------------
1921 # Tries to find the compile-time value of EXPR in a program that includes
1922 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1923 # computed
1924 ac_fn_c_compute_int ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 if test "$cross_compiling" = yes; then
1928 # Depending upon the size, compute the lo and hi bounds.
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1933 main ()
1935 static int test_array [1 - 2 * !(($2) >= 0)];
1936 test_array [0] = 0
1939 return 0;
1941 _ACEOF
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943 ac_lo=0 ac_mid=0
1944 while :; do
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1949 main ()
1951 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1952 test_array [0] = 0
1955 return 0;
1957 _ACEOF
1958 if ac_fn_c_try_compile "$LINENO"; then :
1959 ac_hi=$ac_mid; break
1960 else
1961 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1962 if test $ac_lo -le $ac_mid; then
1963 ac_lo= ac_hi=
1964 break
1966 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969 done
1970 else
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1975 main ()
1977 static int test_array [1 - 2 * !(($2) < 0)];
1978 test_array [0] = 0
1981 return 0;
1983 _ACEOF
1984 if ac_fn_c_try_compile "$LINENO"; then :
1985 ac_hi=-1 ac_mid=-1
1986 while :; do
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1991 main ()
1993 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1994 test_array [0] = 0
1997 return 0;
1999 _ACEOF
2000 if ac_fn_c_try_compile "$LINENO"; then :
2001 ac_lo=$ac_mid; break
2002 else
2003 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2004 if test $ac_mid -le $ac_hi; then
2005 ac_lo= ac_hi=
2006 break
2008 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011 done
2012 else
2013 ac_lo= ac_hi=
2015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018 # Binary search between lo and hi bounds.
2019 while test "x$ac_lo" != "x$ac_hi"; do
2020 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2025 main ()
2027 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2028 test_array [0] = 0
2031 return 0;
2033 _ACEOF
2034 if ac_fn_c_try_compile "$LINENO"; then :
2035 ac_hi=$ac_mid
2036 else
2037 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040 done
2041 case $ac_lo in #((
2042 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2043 '') ac_retval=1 ;;
2044 esac
2045 else
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2049 static long int longval () { return $2; }
2050 static unsigned long int ulongval () { return $2; }
2051 #include <stdio.h>
2052 #include <stdlib.h>
2054 main ()
2057 FILE *f = fopen ("conftest.val", "w");
2058 if (! f)
2059 return 1;
2060 if (($2) < 0)
2062 long int i = longval ();
2063 if (i != ($2))
2064 return 1;
2065 fprintf (f, "%ld", i);
2067 else
2069 unsigned long int i = ulongval ();
2070 if (i != ($2))
2071 return 1;
2072 fprintf (f, "%lu", i);
2074 /* Do not output a trailing newline, as this causes \r\n confusion
2075 on some platforms. */
2076 return ferror (f) || fclose (f) != 0;
2079 return 0;
2081 _ACEOF
2082 if ac_fn_c_try_run "$LINENO"; then :
2083 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2084 else
2085 ac_retval=1
2087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2088 conftest.$ac_objext conftest.beam conftest.$ac_ext
2089 rm -f conftest.val
2092 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2093 return $ac_retval
2095 } # ac_fn_c_compute_int
2097 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2098 # -------------------------------------------------------
2099 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2100 # the include files in INCLUDES and setting the cache variable VAR
2101 # accordingly.
2102 ac_fn_c_check_header_mongrel ()
2104 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2105 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2107 $as_echo_n "checking for $2... " >&6; }
2108 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2109 $as_echo_n "(cached) " >&6
2111 eval ac_res=\$$3
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2113 $as_echo "$ac_res" >&6; }
2114 else
2115 # Is the header compilable?
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2117 $as_echo_n "checking $2 usability... " >&6; }
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2121 #include <$2>
2122 _ACEOF
2123 if ac_fn_c_try_compile "$LINENO"; then :
2124 ac_header_compiler=yes
2125 else
2126 ac_header_compiler=no
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2130 $as_echo "$ac_header_compiler" >&6; }
2132 # Is the header present?
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2134 $as_echo_n "checking $2 presence... " >&6; }
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2137 #include <$2>
2138 _ACEOF
2139 if ac_fn_c_try_cpp "$LINENO"; then :
2140 ac_header_preproc=yes
2141 else
2142 ac_header_preproc=no
2144 rm -f conftest.err conftest.$ac_ext
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2146 $as_echo "$ac_header_preproc" >&6; }
2148 # So? What about this header?
2149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2150 yes:no: )
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2152 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2154 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2156 no:yes:* )
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2158 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2160 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2162 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2164 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2166 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2167 ( cat <<\_ASBOX
2168 ## ------------------------------------------------------ ##
2169 ## Report this to http://github.com/atgreen/libffi/issues ##
2170 ## ------------------------------------------------------ ##
2171 _ASBOX
2172 ) | sed "s/^/$as_me: WARNING: /" >&2
2174 esac
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2176 $as_echo_n "checking for $2... " >&6; }
2177 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2178 $as_echo_n "(cached) " >&6
2179 else
2180 eval "$3=\$ac_header_compiler"
2182 eval ac_res=\$$3
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2184 $as_echo "$ac_res" >&6; }
2186 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2188 } # ac_fn_c_check_header_mongrel
2189 cat >config.log <<_ACEOF
2190 This file contains any messages produced by compilers while
2191 running configure, to aid debugging if configure makes a mistake.
2193 It was created by libffi $as_me 3.99999, which was
2194 generated by GNU Autoconf 2.64. Invocation command line was
2196 $ $0 $@
2198 _ACEOF
2199 exec 5>>config.log
2201 cat <<_ASUNAME
2202 ## --------- ##
2203 ## Platform. ##
2204 ## --------- ##
2206 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2207 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2208 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2209 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2210 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2212 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2213 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2215 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2216 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2217 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2218 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2219 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2220 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2221 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2223 _ASUNAME
2225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226 for as_dir in $PATH
2228 IFS=$as_save_IFS
2229 test -z "$as_dir" && as_dir=.
2230 $as_echo "PATH: $as_dir"
2231 done
2232 IFS=$as_save_IFS
2234 } >&5
2236 cat >&5 <<_ACEOF
2239 ## ----------- ##
2240 ## Core tests. ##
2241 ## ----------- ##
2243 _ACEOF
2246 # Keep a trace of the command line.
2247 # Strip out --no-create and --no-recursion so they do not pile up.
2248 # Strip out --silent because we don't want to record it for future runs.
2249 # Also quote any args containing shell meta-characters.
2250 # Make two passes to allow for proper duplicate-argument suppression.
2251 ac_configure_args=
2252 ac_configure_args0=
2253 ac_configure_args1=
2254 ac_must_keep_next=false
2255 for ac_pass in 1 2
2257 for ac_arg
2259 case $ac_arg in
2260 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2261 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2262 | -silent | --silent | --silen | --sile | --sil)
2263 continue ;;
2264 *\'*)
2265 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2266 esac
2267 case $ac_pass in
2268 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2270 as_fn_append ac_configure_args1 " '$ac_arg'"
2271 if test $ac_must_keep_next = true; then
2272 ac_must_keep_next=false # Got value, back to normal.
2273 else
2274 case $ac_arg in
2275 *=* | --config-cache | -C | -disable-* | --disable-* \
2276 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2277 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2278 | -with-* | --with-* | -without-* | --without-* | --x)
2279 case "$ac_configure_args0 " in
2280 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2281 esac
2283 -* ) ac_must_keep_next=true ;;
2284 esac
2286 as_fn_append ac_configure_args " '$ac_arg'"
2288 esac
2289 done
2290 done
2291 { ac_configure_args0=; unset ac_configure_args0;}
2292 { ac_configure_args1=; unset ac_configure_args1;}
2294 # When interrupted or exit'd, cleanup temporary files, and complete
2295 # config.log. We remove comments because anyway the quotes in there
2296 # would cause problems or look ugly.
2297 # WARNING: Use '\'' to represent an apostrophe within the trap.
2298 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2299 trap 'exit_status=$?
2300 # Save into config.log some information that might help in debugging.
2302 echo
2304 cat <<\_ASBOX
2305 ## ---------------- ##
2306 ## Cache variables. ##
2307 ## ---------------- ##
2308 _ASBOX
2309 echo
2310 # The following way of writing the cache mishandles newlines in values,
2312 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2313 eval ac_val=\$$ac_var
2314 case $ac_val in #(
2315 *${as_nl}*)
2316 case $ac_var in #(
2317 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2318 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2319 esac
2320 case $ac_var in #(
2321 _ | IFS | as_nl) ;; #(
2322 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2323 *) { eval $ac_var=; unset $ac_var;} ;;
2324 esac ;;
2325 esac
2326 done
2327 (set) 2>&1 |
2328 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2329 *${as_nl}ac_space=\ *)
2330 sed -n \
2331 "s/'\''/'\''\\\\'\'''\''/g;
2332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2333 ;; #(
2335 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2337 esac |
2338 sort
2340 echo
2342 cat <<\_ASBOX
2343 ## ----------------- ##
2344 ## Output variables. ##
2345 ## ----------------- ##
2346 _ASBOX
2347 echo
2348 for ac_var in $ac_subst_vars
2350 eval ac_val=\$$ac_var
2351 case $ac_val in
2352 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2353 esac
2354 $as_echo "$ac_var='\''$ac_val'\''"
2355 done | sort
2356 echo
2358 if test -n "$ac_subst_files"; then
2359 cat <<\_ASBOX
2360 ## ------------------- ##
2361 ## File substitutions. ##
2362 ## ------------------- ##
2363 _ASBOX
2364 echo
2365 for ac_var in $ac_subst_files
2367 eval ac_val=\$$ac_var
2368 case $ac_val in
2369 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2370 esac
2371 $as_echo "$ac_var='\''$ac_val'\''"
2372 done | sort
2373 echo
2376 if test -s confdefs.h; then
2377 cat <<\_ASBOX
2378 ## ----------- ##
2379 ## confdefs.h. ##
2380 ## ----------- ##
2381 _ASBOX
2382 echo
2383 cat confdefs.h
2384 echo
2386 test "$ac_signal" != 0 &&
2387 $as_echo "$as_me: caught signal $ac_signal"
2388 $as_echo "$as_me: exit $exit_status"
2389 } >&5
2390 rm -f core *.core core.conftest.* &&
2391 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2392 exit $exit_status
2394 for ac_signal in 1 2 13 15; do
2395 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2396 done
2397 ac_signal=0
2399 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2400 rm -f -r conftest* confdefs.h
2402 $as_echo "/* confdefs.h */" > confdefs.h
2404 # Predefined preprocessor variables.
2406 cat >>confdefs.h <<_ACEOF
2407 #define PACKAGE_NAME "$PACKAGE_NAME"
2408 _ACEOF
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2412 _ACEOF
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2416 _ACEOF
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_STRING "$PACKAGE_STRING"
2420 _ACEOF
2422 cat >>confdefs.h <<_ACEOF
2423 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2424 _ACEOF
2426 cat >>confdefs.h <<_ACEOF
2427 #define PACKAGE_URL "$PACKAGE_URL"
2428 _ACEOF
2431 # Let the site file select an alternate cache file if it wants to.
2432 # Prefer an explicitly selected file to automatically selected ones.
2433 ac_site_file1=NONE
2434 ac_site_file2=NONE
2435 if test -n "$CONFIG_SITE"; then
2436 ac_site_file1=$CONFIG_SITE
2437 elif test "x$prefix" != xNONE; then
2438 ac_site_file1=$prefix/share/config.site
2439 ac_site_file2=$prefix/etc/config.site
2440 else
2441 ac_site_file1=$ac_default_prefix/share/config.site
2442 ac_site_file2=$ac_default_prefix/etc/config.site
2444 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2446 test "x$ac_site_file" = xNONE && continue
2447 if test -r "$ac_site_file"; then
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2449 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2450 sed 's/^/| /' "$ac_site_file" >&5
2451 . "$ac_site_file"
2453 done
2455 if test -r "$cache_file"; then
2456 # Some versions of bash will fail to source /dev/null (special
2457 # files actually), so we avoid doing that.
2458 if test -f "$cache_file"; then
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2460 $as_echo "$as_me: loading cache $cache_file" >&6;}
2461 case $cache_file in
2462 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2463 *) . "./$cache_file";;
2464 esac
2466 else
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2468 $as_echo "$as_me: creating cache $cache_file" >&6;}
2469 >$cache_file
2472 # Check that the precious variables saved in the cache have kept the same
2473 # value.
2474 ac_cache_corrupted=false
2475 for ac_var in $ac_precious_vars; do
2476 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2477 eval ac_new_set=\$ac_env_${ac_var}_set
2478 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2479 eval ac_new_val=\$ac_env_${ac_var}_value
2480 case $ac_old_set,$ac_new_set in
2481 set,)
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2483 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2484 ac_cache_corrupted=: ;;
2485 ,set)
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2487 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2488 ac_cache_corrupted=: ;;
2489 ,);;
2491 if test "x$ac_old_val" != "x$ac_new_val"; then
2492 # differences in whitespace do not lead to failure.
2493 ac_old_val_w=`echo x $ac_old_val`
2494 ac_new_val_w=`echo x $ac_new_val`
2495 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2497 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2498 ac_cache_corrupted=:
2499 else
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2501 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2502 eval $ac_var=\$ac_old_val
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2505 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2507 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2508 fi;;
2509 esac
2510 # Pass precious variables to config.status.
2511 if test "$ac_new_set" = set; then
2512 case $ac_new_val in
2513 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2514 *) ac_arg=$ac_var=$ac_new_val ;;
2515 esac
2516 case " $ac_configure_args " in
2517 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2518 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2519 esac
2521 done
2522 if $ac_cache_corrupted; then
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2526 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2527 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2529 ## -------------------- ##
2530 ## Main body of script. ##
2531 ## -------------------- ##
2533 ac_ext=c
2534 ac_cpp='$CPP $CPPFLAGS'
2535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2543 ac_config_headers="$ac_config_headers fficonfig.h"
2546 # Default to --enable-multilib
2547 # Check whether --enable-multilib was given.
2548 if test "${enable_multilib+set}" = set; then :
2549 enableval=$enable_multilib; case "$enableval" in
2550 yes) multilib=yes ;;
2551 no) multilib=no ;;
2552 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2553 esac
2554 else
2555 multilib=yes
2559 # We may get other options which we leave undocumented:
2560 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2561 # See config-ml.in if you want the gory details.
2563 if test "$srcdir" = "."; then
2564 if test "$with_target_subdir" != "."; then
2565 multi_basedir="$srcdir/$with_multisrctop../.."
2566 else
2567 multi_basedir="$srcdir/$with_multisrctop.."
2569 else
2570 multi_basedir="$srcdir/.."
2574 # Even if the default multilib is not a cross compilation,
2575 # it may be that some of the other multilibs are.
2576 if test $cross_compiling = no && test $multilib = yes \
2577 && test "x${with_multisubdir}" != x ; then
2578 cross_compiling=maybe
2581 ac_config_commands="$ac_config_commands default-1"
2584 ac_aux_dir=
2585 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2586 for ac_t in install-sh install.sh shtool; do
2587 if test -f "$ac_dir/$ac_t"; then
2588 ac_aux_dir=$ac_dir
2589 ac_install_sh="$ac_aux_dir/$ac_t -c"
2590 break 2
2592 done
2593 done
2594 if test -z "$ac_aux_dir"; then
2595 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2598 # These three variables are undocumented and unsupported,
2599 # and are intended to be withdrawn in a future Autoconf release.
2600 # They can cause serious problems if a builder's source tree is in a directory
2601 # whose full name contains unusual characters.
2602 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2603 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2604 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2607 # Make sure we can run config.sub.
2608 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2609 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2612 $as_echo_n "checking build system type... " >&6; }
2613 if test "${ac_cv_build+set}" = set; then :
2614 $as_echo_n "(cached) " >&6
2615 else
2616 ac_build_alias=$build_alias
2617 test "x$ac_build_alias" = x &&
2618 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2619 test "x$ac_build_alias" = x &&
2620 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2621 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2622 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2626 $as_echo "$ac_cv_build" >&6; }
2627 case $ac_cv_build in
2628 *-*-*) ;;
2629 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2630 esac
2631 build=$ac_cv_build
2632 ac_save_IFS=$IFS; IFS='-'
2633 set x $ac_cv_build
2634 shift
2635 build_cpu=$1
2636 build_vendor=$2
2637 shift; shift
2638 # Remember, the first character of IFS is used to create $*,
2639 # except with old shells:
2640 build_os=$*
2641 IFS=$ac_save_IFS
2642 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2646 $as_echo_n "checking host system type... " >&6; }
2647 if test "${ac_cv_host+set}" = set; then :
2648 $as_echo_n "(cached) " >&6
2649 else
2650 if test "x$host_alias" = x; then
2651 ac_cv_host=$ac_cv_build
2652 else
2653 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2654 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2659 $as_echo "$ac_cv_host" >&6; }
2660 case $ac_cv_host in
2661 *-*-*) ;;
2662 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2663 esac
2664 host=$ac_cv_host
2665 ac_save_IFS=$IFS; IFS='-'
2666 set x $ac_cv_host
2667 shift
2668 host_cpu=$1
2669 host_vendor=$2
2670 shift; shift
2671 # Remember, the first character of IFS is used to create $*,
2672 # except with old shells:
2673 host_os=$*
2674 IFS=$ac_save_IFS
2675 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2679 $as_echo_n "checking target system type... " >&6; }
2680 if test "${ac_cv_target+set}" = set; then :
2681 $as_echo_n "(cached) " >&6
2682 else
2683 if test "x$target_alias" = x; then
2684 ac_cv_target=$ac_cv_host
2685 else
2686 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2687 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2692 $as_echo "$ac_cv_target" >&6; }
2693 case $ac_cv_target in
2694 *-*-*) ;;
2695 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2696 esac
2697 target=$ac_cv_target
2698 ac_save_IFS=$IFS; IFS='-'
2699 set x $ac_cv_target
2700 shift
2701 target_cpu=$1
2702 target_vendor=$2
2703 shift; shift
2704 # Remember, the first character of IFS is used to create $*,
2705 # except with old shells:
2706 target_os=$*
2707 IFS=$ac_save_IFS
2708 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2711 # The aliases save the names the user supplied, while $host etc.
2712 # will get canonicalized.
2713 test -n "$target_alias" &&
2714 test "$program_prefix$program_suffix$program_transform_name" = \
2715 NONENONEs,x,x, &&
2716 program_prefix=${target_alias}-
2718 target_alias=${target_alias-$host_alias}
2720 am__api_version='1.11'
2722 # Find a good install program. We prefer a C program (faster),
2723 # so one script is as good as another. But avoid the broken or
2724 # incompatible versions:
2725 # SysV /etc/install, /usr/sbin/install
2726 # SunOS /usr/etc/install
2727 # IRIX /sbin/install
2728 # AIX /bin/install
2729 # AmigaOS /C/install, which installs bootblocks on floppy discs
2730 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2731 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2732 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2733 # OS/2's system install, which has a completely different semantic
2734 # ./install, which can be erroneously created by make from ./install.sh.
2735 # Reject install programs that cannot install multiple files.
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2737 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2738 if test -z "$INSTALL"; then
2739 if test "${ac_cv_path_install+set}" = set; then :
2740 $as_echo_n "(cached) " >&6
2741 else
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 for as_dir in $PATH
2745 IFS=$as_save_IFS
2746 test -z "$as_dir" && as_dir=.
2747 # Account for people who put trailing slashes in PATH elements.
2748 case $as_dir/ in #((
2749 ./ | .// | /[cC]/* | \
2750 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2751 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2752 /usr/ucb/* ) ;;
2754 # OSF1 and SCO ODT 3.0 have their own names for install.
2755 # Don't use installbsd from OSF since it installs stuff as root
2756 # by default.
2757 for ac_prog in ginstall scoinst install; do
2758 for ac_exec_ext in '' $ac_executable_extensions; do
2759 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2760 if test $ac_prog = install &&
2761 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2762 # AIX install. It has an incompatible calling convention.
2764 elif test $ac_prog = install &&
2765 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2766 # program-specific install script used by HP pwplus--don't use.
2768 else
2769 rm -rf conftest.one conftest.two conftest.dir
2770 echo one > conftest.one
2771 echo two > conftest.two
2772 mkdir conftest.dir
2773 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2774 test -s conftest.one && test -s conftest.two &&
2775 test -s conftest.dir/conftest.one &&
2776 test -s conftest.dir/conftest.two
2777 then
2778 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2779 break 3
2783 done
2784 done
2786 esac
2788 done
2789 IFS=$as_save_IFS
2791 rm -rf conftest.one conftest.two conftest.dir
2794 if test "${ac_cv_path_install+set}" = set; then
2795 INSTALL=$ac_cv_path_install
2796 else
2797 # As a last resort, use the slow shell script. Don't cache a
2798 # value for INSTALL within a source directory, because that will
2799 # break other packages using the cache if that directory is
2800 # removed, or if the value is a relative name.
2801 INSTALL=$ac_install_sh
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2805 $as_echo "$INSTALL" >&6; }
2807 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2808 # It thinks the first close brace ends the variable substitution.
2809 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2811 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2813 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2816 $as_echo_n "checking whether build environment is sane... " >&6; }
2817 # Just in case
2818 sleep 1
2819 echo timestamp > conftest.file
2820 # Reject unsafe characters in $srcdir or the absolute working directory
2821 # name. Accept space and tab only in the latter.
2822 am_lf='
2824 case `pwd` in
2825 *[\\\"\#\$\&\'\`$am_lf]*)
2826 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2827 esac
2828 case $srcdir in
2829 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2830 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2831 esac
2833 # Do `set' in a subshell so we don't clobber the current shell's
2834 # arguments. Must try -L first in case configure is actually a
2835 # symlink; some systems play weird games with the mod time of symlinks
2836 # (eg FreeBSD returns the mod time of the symlink's containing
2837 # directory).
2838 if (
2839 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2840 if test "$*" = "X"; then
2841 # -L didn't work.
2842 set X `ls -t "$srcdir/configure" conftest.file`
2844 rm -f conftest.file
2845 if test "$*" != "X $srcdir/configure conftest.file" \
2846 && test "$*" != "X conftest.file $srcdir/configure"; then
2848 # If neither matched, then we have a broken ls. This can happen
2849 # if, for instance, CONFIG_SHELL is bash and it inherits a
2850 # broken ls alias from the environment. This has actually
2851 # happened. Such a system could not be considered "sane".
2852 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2853 alias in your environment" "$LINENO" 5
2856 test "$2" = conftest.file
2858 then
2859 # Ok.
2861 else
2862 as_fn_error "newly created file is older than distributed files!
2863 Check your system clock" "$LINENO" 5
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2866 $as_echo "yes" >&6; }
2867 test "$program_prefix" != NONE &&
2868 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2869 # Use a double $ so make ignores it.
2870 test "$program_suffix" != NONE &&
2871 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2872 # Double any \ or $.
2873 # By default was `s,x,x', remove it if useless.
2874 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2875 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2877 # expand $ac_aux_dir to an absolute path
2878 am_aux_dir=`cd $ac_aux_dir && pwd`
2880 if test x"${MISSING+set}" != xset; then
2881 case $am_aux_dir in
2882 *\ * | *\ *)
2883 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2885 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2886 esac
2888 # Use eval to expand $SHELL
2889 if eval "$MISSING --run true"; then
2890 am_missing_run="$MISSING --run "
2891 else
2892 am_missing_run=
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2894 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2897 if test x"${install_sh}" != xset; then
2898 case $am_aux_dir in
2899 *\ * | *\ *)
2900 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2902 install_sh="\${SHELL} $am_aux_dir/install-sh"
2903 esac
2906 # Installed binaries are usually stripped using `strip' when the user
2907 # run `make install-strip'. However `strip' might not be the right
2908 # tool to use in cross-compilation environments, therefore Automake
2909 # will honor the `STRIP' environment variable to overrule this program.
2910 if test "$cross_compiling" != no; then
2911 if test -n "$ac_tool_prefix"; then
2912 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2913 set dummy ${ac_tool_prefix}strip; ac_word=$2
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915 $as_echo_n "checking for $ac_word... " >&6; }
2916 if test "${ac_cv_prog_STRIP+set}" = set; then :
2917 $as_echo_n "(cached) " >&6
2918 else
2919 if test -n "$STRIP"; then
2920 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2929 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2933 done
2934 done
2935 IFS=$as_save_IFS
2939 STRIP=$ac_cv_prog_STRIP
2940 if test -n "$STRIP"; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2942 $as_echo "$STRIP" >&6; }
2943 else
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945 $as_echo "no" >&6; }
2950 if test -z "$ac_cv_prog_STRIP"; then
2951 ac_ct_STRIP=$STRIP
2952 # Extract the first word of "strip", so it can be a program name with args.
2953 set dummy strip; ac_word=$2
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2955 $as_echo_n "checking for $ac_word... " >&6; }
2956 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2957 $as_echo_n "(cached) " >&6
2958 else
2959 if test -n "$ac_ct_STRIP"; then
2960 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2961 else
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH
2965 IFS=$as_save_IFS
2966 test -z "$as_dir" && as_dir=.
2967 for ac_exec_ext in '' $ac_executable_extensions; do
2968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2969 ac_cv_prog_ac_ct_STRIP="strip"
2970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2971 break 2
2973 done
2974 done
2975 IFS=$as_save_IFS
2979 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2980 if test -n "$ac_ct_STRIP"; then
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2982 $as_echo "$ac_ct_STRIP" >&6; }
2983 else
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985 $as_echo "no" >&6; }
2988 if test "x$ac_ct_STRIP" = x; then
2989 STRIP=":"
2990 else
2991 case $cross_compiling:$ac_tool_warned in
2992 yes:)
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2995 ac_tool_warned=yes ;;
2996 esac
2997 STRIP=$ac_ct_STRIP
2999 else
3000 STRIP="$ac_cv_prog_STRIP"
3004 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3007 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3008 if test -z "$MKDIR_P"; then
3009 if test "${ac_cv_path_mkdir+set}" = set; then :
3010 $as_echo_n "(cached) " >&6
3011 else
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3015 IFS=$as_save_IFS
3016 test -z "$as_dir" && as_dir=.
3017 for ac_prog in mkdir gmkdir; do
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3020 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3021 'mkdir (GNU coreutils) '* | \
3022 'mkdir (coreutils) '* | \
3023 'mkdir (fileutils) '4.1*)
3024 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3025 break 3;;
3026 esac
3027 done
3028 done
3029 done
3030 IFS=$as_save_IFS
3034 if test "${ac_cv_path_mkdir+set}" = set; then
3035 MKDIR_P="$ac_cv_path_mkdir -p"
3036 else
3037 # As a last resort, use the slow shell script. Don't cache a
3038 # value for MKDIR_P within a source directory, because that will
3039 # break other packages using the cache if that directory is
3040 # removed, or if the value is a relative name.
3041 test -d ./--version && rmdir ./--version
3042 MKDIR_P="$ac_install_sh -d"
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3046 $as_echo "$MKDIR_P" >&6; }
3048 mkdir_p="$MKDIR_P"
3049 case $mkdir_p in
3050 [\\/$]* | ?:[\\/]*) ;;
3051 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3052 esac
3054 for ac_prog in gawk mawk nawk awk
3056 # Extract the first word of "$ac_prog", so it can be a program name with args.
3057 set dummy $ac_prog; ac_word=$2
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059 $as_echo_n "checking for $ac_word... " >&6; }
3060 if test "${ac_cv_prog_AWK+set}" = set; then :
3061 $as_echo_n "(cached) " >&6
3062 else
3063 if test -n "$AWK"; then
3064 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3065 else
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 for as_dir in $PATH
3069 IFS=$as_save_IFS
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3073 ac_cv_prog_AWK="$ac_prog"
3074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 break 2
3077 done
3078 done
3079 IFS=$as_save_IFS
3083 AWK=$ac_cv_prog_AWK
3084 if test -n "$AWK"; then
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3086 $as_echo "$AWK" >&6; }
3087 else
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089 $as_echo "no" >&6; }
3093 test -n "$AWK" && break
3094 done
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3097 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3098 set x ${MAKE-make}
3099 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3100 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3101 $as_echo_n "(cached) " >&6
3102 else
3103 cat >conftest.make <<\_ACEOF
3104 SHELL = /bin/sh
3105 all:
3106 @echo '@@@%%%=$(MAKE)=@@@%%%'
3107 _ACEOF
3108 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3109 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3110 *@@@%%%=?*=@@@%%%*)
3111 eval ac_cv_prog_make_${ac_make}_set=yes;;
3113 eval ac_cv_prog_make_${ac_make}_set=no;;
3114 esac
3115 rm -f conftest.make
3117 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3119 $as_echo "yes" >&6; }
3120 SET_MAKE=
3121 else
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123 $as_echo "no" >&6; }
3124 SET_MAKE="MAKE=${MAKE-make}"
3127 rm -rf .tst 2>/dev/null
3128 mkdir .tst 2>/dev/null
3129 if test -d .tst; then
3130 am__leading_dot=.
3131 else
3132 am__leading_dot=_
3134 rmdir .tst 2>/dev/null
3136 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3137 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3138 # is not polluted with repeated "-I."
3139 am__isrc=' -I$(srcdir)'
3140 # test to see if srcdir already configured
3141 if test -f $srcdir/config.status; then
3142 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3146 # test whether we have cygpath
3147 if test -z "$CYGPATH_W"; then
3148 if (cygpath --version) >/dev/null 2>/dev/null; then
3149 CYGPATH_W='cygpath -w'
3150 else
3151 CYGPATH_W=echo
3156 # Define the identity of the package.
3157 PACKAGE='libffi'
3158 VERSION='3.99999'
3161 cat >>confdefs.h <<_ACEOF
3162 #define PACKAGE "$PACKAGE"
3163 _ACEOF
3166 cat >>confdefs.h <<_ACEOF
3167 #define VERSION "$VERSION"
3168 _ACEOF
3170 # Some tools Automake needs.
3172 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3175 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3178 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3181 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3184 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3186 # We need awk for the "check" target. The system "awk" is bad on
3187 # some platforms.
3188 # Always define AMTAR for backward compatibility. Yes, it's still used
3189 # in the wild :-( We should find a proper way to deprecate it ...
3190 AMTAR='$${TAR-tar}'
3192 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3199 # See if makeinfo has been installed and is modern enough
3200 # that we can use it.
3202 # Extract the first word of "makeinfo", so it can be a program name with args.
3203 set dummy makeinfo; ac_word=$2
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3205 $as_echo_n "checking for $ac_word... " >&6; }
3206 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
3207 $as_echo_n "(cached) " >&6
3208 else
3209 if test -n "$MAKEINFO"; then
3210 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3211 else
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 for as_dir in $PATH
3215 IFS=$as_save_IFS
3216 test -z "$as_dir" && as_dir=.
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3219 ac_cv_prog_MAKEINFO="makeinfo"
3220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 break 2
3223 done
3224 done
3225 IFS=$as_save_IFS
3229 MAKEINFO=$ac_cv_prog_MAKEINFO
3230 if test -n "$MAKEINFO"; then
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
3232 $as_echo "$MAKEINFO" >&6; }
3233 else
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235 $as_echo "no" >&6; }
3239 if test -n "$MAKEINFO"; then
3240 # Found it, now check the version.
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
3242 $as_echo_n "checking for modern makeinfo... " >&6; }
3243 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
3244 $as_echo_n "(cached) " >&6
3245 else
3246 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3247 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3249 case $ac_prog_version in
3250 '') gcc_cv_prog_makeinfo_modern=no;;
3251 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
3252 *) gcc_cv_prog_makeinfo_modern=no;;
3253 esac
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
3257 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
3258 else
3259 gcc_cv_prog_makeinfo_modern=no
3261 if test $gcc_cv_prog_makeinfo_modern = no; then
3262 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3265 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3266 BUILD_INFO_TRUE=
3267 BUILD_INFO_FALSE='#'
3268 else
3269 BUILD_INFO_TRUE='#'
3270 BUILD_INFO_FALSE=
3274 # We would like our source tree to be readonly. However when releases or
3275 # pre-releases are generated, the flex/bison generated files as well as the
3276 # various formats of manuals need to be included along with the rest of the
3277 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3278 # just that.
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
3280 $as_echo_n "checking generated-files-in-srcdir... " >&6; }
3281 # Check whether --enable-generated-files-in-srcdir was given.
3282 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3283 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
3284 yes) enable_generated_files_in_srcdir=yes ;;
3285 no) enable_generated_files_in_srcdir=no ;;
3286 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3287 esac
3288 else
3289 enable_generated_files_in_srcdir=no
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
3293 $as_echo "$enable_generated_files_in_srcdir" >&6; }
3294 if test "$enable_generated_files_in_srcdir" = yes; then
3295 GENINSRC_TRUE=
3296 GENINSRC_FALSE='#'
3297 else
3298 GENINSRC_TRUE='#'
3299 GENINSRC_FALSE=
3303 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3304 # We must force CC to /not/ be precious variables; otherwise
3305 # the wrong, non-multilib-adjusted value will be used in multilibs.
3306 # As a side effect, we have to subst CFLAGS ourselves.
3307 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3308 # defaults of its own if none are provided.
3312 save_CFLAGS=$CFLAGS
3313 ac_ext=c
3314 ac_cpp='$CPP $CPPFLAGS'
3315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3318 if test -n "$ac_tool_prefix"; then
3319 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3320 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3322 $as_echo_n "checking for $ac_word... " >&6; }
3323 if test "${ac_cv_prog_CC+set}" = set; then :
3324 $as_echo_n "(cached) " >&6
3325 else
3326 if test -n "$CC"; then
3327 ac_cv_prog_CC="$CC" # Let the user override the test.
3328 else
3329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330 for as_dir in $PATH
3332 IFS=$as_save_IFS
3333 test -z "$as_dir" && as_dir=.
3334 for ac_exec_ext in '' $ac_executable_extensions; do
3335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3336 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3338 break 2
3340 done
3341 done
3342 IFS=$as_save_IFS
3346 CC=$ac_cv_prog_CC
3347 if test -n "$CC"; then
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3349 $as_echo "$CC" >&6; }
3350 else
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352 $as_echo "no" >&6; }
3357 if test -z "$ac_cv_prog_CC"; then
3358 ac_ct_CC=$CC
3359 # Extract the first word of "gcc", so it can be a program name with args.
3360 set dummy gcc; ac_word=$2
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362 $as_echo_n "checking for $ac_word... " >&6; }
3363 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3364 $as_echo_n "(cached) " >&6
3365 else
3366 if test -n "$ac_ct_CC"; then
3367 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3368 else
3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370 for as_dir in $PATH
3372 IFS=$as_save_IFS
3373 test -z "$as_dir" && as_dir=.
3374 for ac_exec_ext in '' $ac_executable_extensions; do
3375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3376 ac_cv_prog_ac_ct_CC="gcc"
3377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3378 break 2
3380 done
3381 done
3382 IFS=$as_save_IFS
3386 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3387 if test -n "$ac_ct_CC"; then
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3389 $as_echo "$ac_ct_CC" >&6; }
3390 else
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392 $as_echo "no" >&6; }
3395 if test "x$ac_ct_CC" = x; then
3396 CC=""
3397 else
3398 case $cross_compiling:$ac_tool_warned in
3399 yes:)
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3402 ac_tool_warned=yes ;;
3403 esac
3404 CC=$ac_ct_CC
3406 else
3407 CC="$ac_cv_prog_CC"
3410 if test -z "$CC"; then
3411 if test -n "$ac_tool_prefix"; then
3412 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3413 set dummy ${ac_tool_prefix}cc; ac_word=$2
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3415 $as_echo_n "checking for $ac_word... " >&6; }
3416 if test "${ac_cv_prog_CC+set}" = set; then :
3417 $as_echo_n "(cached) " >&6
3418 else
3419 if test -n "$CC"; then
3420 ac_cv_prog_CC="$CC" # Let the user override the test.
3421 else
3422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423 for as_dir in $PATH
3425 IFS=$as_save_IFS
3426 test -z "$as_dir" && as_dir=.
3427 for ac_exec_ext in '' $ac_executable_extensions; do
3428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3429 ac_cv_prog_CC="${ac_tool_prefix}cc"
3430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3431 break 2
3433 done
3434 done
3435 IFS=$as_save_IFS
3439 CC=$ac_cv_prog_CC
3440 if test -n "$CC"; then
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3442 $as_echo "$CC" >&6; }
3443 else
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3445 $as_echo "no" >&6; }
3451 if test -z "$CC"; then
3452 # Extract the first word of "cc", so it can be a program name with args.
3453 set dummy cc; ac_word=$2
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3455 $as_echo_n "checking for $ac_word... " >&6; }
3456 if test "${ac_cv_prog_CC+set}" = set; then :
3457 $as_echo_n "(cached) " >&6
3458 else
3459 if test -n "$CC"; then
3460 ac_cv_prog_CC="$CC" # Let the user override the test.
3461 else
3462 ac_prog_rejected=no
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 for as_dir in $PATH
3466 IFS=$as_save_IFS
3467 test -z "$as_dir" && as_dir=.
3468 for ac_exec_ext in '' $ac_executable_extensions; do
3469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3470 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3471 ac_prog_rejected=yes
3472 continue
3474 ac_cv_prog_CC="cc"
3475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3476 break 2
3478 done
3479 done
3480 IFS=$as_save_IFS
3482 if test $ac_prog_rejected = yes; then
3483 # We found a bogon in the path, so make sure we never use it.
3484 set dummy $ac_cv_prog_CC
3485 shift
3486 if test $# != 0; then
3487 # We chose a different compiler from the bogus one.
3488 # However, it has the same basename, so the bogon will be chosen
3489 # first if we set CC to just the basename; use the full file name.
3490 shift
3491 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3496 CC=$ac_cv_prog_CC
3497 if test -n "$CC"; then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3499 $as_echo "$CC" >&6; }
3500 else
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502 $as_echo "no" >&6; }
3507 if test -z "$CC"; then
3508 if test -n "$ac_tool_prefix"; then
3509 for ac_prog in cl.exe
3511 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3512 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3514 $as_echo_n "checking for $ac_word... " >&6; }
3515 if test "${ac_cv_prog_CC+set}" = set; then :
3516 $as_echo_n "(cached) " >&6
3517 else
3518 if test -n "$CC"; then
3519 ac_cv_prog_CC="$CC" # Let the user override the test.
3520 else
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522 for as_dir in $PATH
3524 IFS=$as_save_IFS
3525 test -z "$as_dir" && as_dir=.
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3528 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 break 2
3532 done
3533 done
3534 IFS=$as_save_IFS
3538 CC=$ac_cv_prog_CC
3539 if test -n "$CC"; then
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3541 $as_echo "$CC" >&6; }
3542 else
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3544 $as_echo "no" >&6; }
3548 test -n "$CC" && break
3549 done
3551 if test -z "$CC"; then
3552 ac_ct_CC=$CC
3553 for ac_prog in cl.exe
3555 # Extract the first word of "$ac_prog", so it can be a program name with args.
3556 set dummy $ac_prog; ac_word=$2
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3558 $as_echo_n "checking for $ac_word... " >&6; }
3559 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3560 $as_echo_n "(cached) " >&6
3561 else
3562 if test -n "$ac_ct_CC"; then
3563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3564 else
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 for as_dir in $PATH
3568 IFS=$as_save_IFS
3569 test -z "$as_dir" && as_dir=.
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3572 ac_cv_prog_ac_ct_CC="$ac_prog"
3573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3574 break 2
3576 done
3577 done
3578 IFS=$as_save_IFS
3582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3583 if test -n "$ac_ct_CC"; then
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3585 $as_echo "$ac_ct_CC" >&6; }
3586 else
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588 $as_echo "no" >&6; }
3592 test -n "$ac_ct_CC" && break
3593 done
3595 if test "x$ac_ct_CC" = x; then
3596 CC=""
3597 else
3598 case $cross_compiling:$ac_tool_warned in
3599 yes:)
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3602 ac_tool_warned=yes ;;
3603 esac
3604 CC=$ac_ct_CC
3611 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3613 as_fn_error "no acceptable C compiler found in \$PATH
3614 See \`config.log' for more details." "$LINENO" 5; }
3616 # Provide some information about the compiler.
3617 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3618 set X $ac_compile
3619 ac_compiler=$2
3620 for ac_option in --version -v -V -qversion; do
3621 { { ac_try="$ac_compiler $ac_option >&5"
3622 case "(($ac_try" in
3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3625 esac
3626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3627 $as_echo "$ac_try_echo"; } >&5
3628 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3629 ac_status=$?
3630 if test -s conftest.err; then
3631 sed '10a\
3632 ... rest of stderr output deleted ...
3633 10q' conftest.err >conftest.er1
3634 cat conftest.er1 >&5
3635 rm -f conftest.er1 conftest.err
3637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3638 test $ac_status = 0; }
3639 done
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h. */
3645 main ()
3649 return 0;
3651 _ACEOF
3652 ac_clean_files_save=$ac_clean_files
3653 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3654 # Try to create an executable without -o first, disregard a.out.
3655 # It will help us diagnose broken compilers, and finding out an intuition
3656 # of exeext.
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3658 $as_echo_n "checking for C compiler default output file name... " >&6; }
3659 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3661 # The possible output files:
3662 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3664 ac_rmfiles=
3665 for ac_file in $ac_files
3667 case $ac_file in
3668 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3669 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3670 esac
3671 done
3672 rm -f $ac_rmfiles
3674 if { { ac_try="$ac_link_default"
3675 case "(($ac_try" in
3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677 *) ac_try_echo=$ac_try;;
3678 esac
3679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3680 $as_echo "$ac_try_echo"; } >&5
3681 (eval "$ac_link_default") 2>&5
3682 ac_status=$?
3683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3684 test $ac_status = 0; }; then :
3685 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3686 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3687 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3688 # so that the user can short-circuit this test for compilers unknown to
3689 # Autoconf.
3690 for ac_file in $ac_files ''
3692 test -f "$ac_file" || continue
3693 case $ac_file in
3694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3696 [ab].out )
3697 # We found the default executable, but exeext='' is most
3698 # certainly right.
3699 break;;
3700 *.* )
3701 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3702 then :; else
3703 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3705 # We set ac_cv_exeext here because the later test for it is not
3706 # safe: cross compilers may not add the suffix if given an `-o'
3707 # argument, so we may need to know it at that point already.
3708 # Even if this section looks crufty: it has the advantage of
3709 # actually working.
3710 break;;
3712 break;;
3713 esac
3714 done
3715 test "$ac_cv_exeext" = no && ac_cv_exeext=
3717 else
3718 ac_file=''
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3721 $as_echo "$ac_file" >&6; }
3722 if test -z "$ac_file"; then :
3723 $as_echo "$as_me: failed program was:" >&5
3724 sed 's/^/| /' conftest.$ac_ext >&5
3726 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3728 { as_fn_set_status 77
3729 as_fn_error "C compiler cannot create executables
3730 See \`config.log' for more details." "$LINENO" 5; }; }
3732 ac_exeext=$ac_cv_exeext
3734 # Check that the compiler produces executables we can run. If not, either
3735 # the compiler is broken, or we cross compile.
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3737 $as_echo_n "checking whether the C compiler works... " >&6; }
3738 # If not cross compiling, check that we can run a simple program.
3739 if test "$cross_compiling" != yes; then
3740 if { ac_try='./$ac_file'
3741 { { case "(($ac_try" in
3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743 *) ac_try_echo=$ac_try;;
3744 esac
3745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3746 $as_echo "$ac_try_echo"; } >&5
3747 (eval "$ac_try") 2>&5
3748 ac_status=$?
3749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3750 test $ac_status = 0; }; }; then
3751 cross_compiling=no
3752 else
3753 if test "$cross_compiling" = maybe; then
3754 cross_compiling=yes
3755 else
3756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3758 as_fn_error "cannot run C compiled programs.
3759 If you meant to cross compile, use \`--host'.
3760 See \`config.log' for more details." "$LINENO" 5; }
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3765 $as_echo "yes" >&6; }
3767 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3768 ac_clean_files=$ac_clean_files_save
3769 # Check that the compiler produces executables we can run. If not, either
3770 # the compiler is broken, or we cross compile.
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3772 $as_echo_n "checking whether we are cross compiling... " >&6; }
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3774 $as_echo "$cross_compiling" >&6; }
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3777 $as_echo_n "checking for suffix of executables... " >&6; }
3778 if { { ac_try="$ac_link"
3779 case "(($ac_try" in
3780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781 *) ac_try_echo=$ac_try;;
3782 esac
3783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3784 $as_echo "$ac_try_echo"; } >&5
3785 (eval "$ac_link") 2>&5
3786 ac_status=$?
3787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3788 test $ac_status = 0; }; then :
3789 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3790 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3791 # work properly (i.e., refer to `conftest.exe'), while it won't with
3792 # `rm'.
3793 for ac_file in conftest.exe conftest conftest.*; do
3794 test -f "$ac_file" || continue
3795 case $ac_file in
3796 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3797 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3798 break;;
3799 * ) break;;
3800 esac
3801 done
3802 else
3803 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3805 as_fn_error "cannot compute suffix of executables: cannot compile and link
3806 See \`config.log' for more details." "$LINENO" 5; }
3808 rm -f conftest$ac_cv_exeext
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3810 $as_echo "$ac_cv_exeext" >&6; }
3812 rm -f conftest.$ac_ext
3813 EXEEXT=$ac_cv_exeext
3814 ac_exeext=$EXEEXT
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3816 $as_echo_n "checking for suffix of object files... " >&6; }
3817 if test "${ac_cv_objext+set}" = set; then :
3818 $as_echo_n "(cached) " >&6
3819 else
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3824 main ()
3828 return 0;
3830 _ACEOF
3831 rm -f conftest.o conftest.obj
3832 if { { ac_try="$ac_compile"
3833 case "(($ac_try" in
3834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3835 *) ac_try_echo=$ac_try;;
3836 esac
3837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3838 $as_echo "$ac_try_echo"; } >&5
3839 (eval "$ac_compile") 2>&5
3840 ac_status=$?
3841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3842 test $ac_status = 0; }; then :
3843 for ac_file in conftest.o conftest.obj conftest.*; do
3844 test -f "$ac_file" || continue;
3845 case $ac_file in
3846 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3847 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3848 break;;
3849 esac
3850 done
3851 else
3852 $as_echo "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.$ac_ext >&5
3855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3857 as_fn_error "cannot compute suffix of object files: cannot compile
3858 See \`config.log' for more details." "$LINENO" 5; }
3860 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3863 $as_echo "$ac_cv_objext" >&6; }
3864 OBJEXT=$ac_cv_objext
3865 ac_objext=$OBJEXT
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3867 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3868 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3869 $as_echo_n "(cached) " >&6
3870 else
3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872 /* end confdefs.h. */
3875 main ()
3877 #ifndef __GNUC__
3878 choke me
3879 #endif
3882 return 0;
3884 _ACEOF
3885 if ac_fn_c_try_compile "$LINENO"; then :
3886 ac_compiler_gnu=yes
3887 else
3888 ac_compiler_gnu=no
3890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3891 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3895 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3896 if test $ac_compiler_gnu = yes; then
3897 GCC=yes
3898 else
3899 GCC=
3901 ac_test_CFLAGS=${CFLAGS+set}
3902 ac_save_CFLAGS=$CFLAGS
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3904 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3905 if test "${ac_cv_prog_cc_g+set}" = set; then :
3906 $as_echo_n "(cached) " >&6
3907 else
3908 ac_save_c_werror_flag=$ac_c_werror_flag
3909 ac_c_werror_flag=yes
3910 ac_cv_prog_cc_g=no
3911 CFLAGS="-g"
3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913 /* end confdefs.h. */
3916 main ()
3920 return 0;
3922 _ACEOF
3923 if ac_fn_c_try_compile "$LINENO"; then :
3924 ac_cv_prog_cc_g=yes
3925 else
3926 CFLAGS=""
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3931 main ()
3935 return 0;
3937 _ACEOF
3938 if ac_fn_c_try_compile "$LINENO"; then :
3940 else
3941 ac_c_werror_flag=$ac_save_c_werror_flag
3942 CFLAGS="-g"
3943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h. */
3947 main ()
3951 return 0;
3953 _ACEOF
3954 if ac_fn_c_try_compile "$LINENO"; then :
3955 ac_cv_prog_cc_g=yes
3957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3962 ac_c_werror_flag=$ac_save_c_werror_flag
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3965 $as_echo "$ac_cv_prog_cc_g" >&6; }
3966 if test "$ac_test_CFLAGS" = set; then
3967 CFLAGS=$ac_save_CFLAGS
3968 elif test $ac_cv_prog_cc_g = yes; then
3969 if test "$GCC" = yes; then
3970 CFLAGS="-g -O2"
3971 else
3972 CFLAGS="-g"
3974 else
3975 if test "$GCC" = yes; then
3976 CFLAGS="-O2"
3977 else
3978 CFLAGS=
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3982 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3983 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3984 $as_echo_n "(cached) " >&6
3985 else
3986 ac_cv_prog_cc_c89=no
3987 ac_save_CC=$CC
3988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h. */
3990 #include <stdarg.h>
3991 #include <stdio.h>
3992 #include <sys/types.h>
3993 #include <sys/stat.h>
3994 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3995 struct buf { int x; };
3996 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3997 static char *e (p, i)
3998 char **p;
3999 int i;
4001 return p[i];
4003 static char *f (char * (*g) (char **, int), char **p, ...)
4005 char *s;
4006 va_list v;
4007 va_start (v,p);
4008 s = g (p, va_arg (v,int));
4009 va_end (v);
4010 return s;
4013 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4014 function prototypes and stuff, but not '\xHH' hex character constants.
4015 These don't provoke an error unfortunately, instead are silently treated
4016 as 'x'. The following induces an error, until -std is added to get
4017 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4018 array size at least. It's necessary to write '\x00'==0 to get something
4019 that's true only with -std. */
4020 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4022 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4023 inside strings and character constants. */
4024 #define FOO(x) 'x'
4025 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4027 int test (int i, double x);
4028 struct s1 {int (*f) (int a);};
4029 struct s2 {int (*f) (double a);};
4030 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4031 int argc;
4032 char **argv;
4034 main ()
4036 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4038 return 0;
4040 _ACEOF
4041 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4042 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4044 CC="$ac_save_CC $ac_arg"
4045 if ac_fn_c_try_compile "$LINENO"; then :
4046 ac_cv_prog_cc_c89=$ac_arg
4048 rm -f core conftest.err conftest.$ac_objext
4049 test "x$ac_cv_prog_cc_c89" != "xno" && break
4050 done
4051 rm -f conftest.$ac_ext
4052 CC=$ac_save_CC
4055 # AC_CACHE_VAL
4056 case "x$ac_cv_prog_cc_c89" in
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4059 $as_echo "none needed" >&6; } ;;
4060 xno)
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4062 $as_echo "unsupported" >&6; } ;;
4064 CC="$CC $ac_cv_prog_cc_c89"
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4066 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4067 esac
4068 if test "x$ac_cv_prog_cc_c89" != xno; then :
4072 ac_ext=c
4073 ac_cpp='$CPP $CPPFLAGS'
4074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4077 DEPDIR="${am__leading_dot}deps"
4079 ac_config_commands="$ac_config_commands depfiles"
4082 am_make=${MAKE-make}
4083 cat > confinc << 'END'
4084 am__doit:
4085 @echo this is the am__doit target
4086 .PHONY: am__doit
4088 # If we don't find an include directive, just comment out the code.
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4090 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4091 am__include="#"
4092 am__quote=
4093 _am_result=none
4094 # First try GNU make style include.
4095 echo "include confinc" > confmf
4096 # Ignore all kinds of additional output from `make'.
4097 case `$am_make -s -f confmf 2> /dev/null` in #(
4098 *the\ am__doit\ target*)
4099 am__include=include
4100 am__quote=
4101 _am_result=GNU
4103 esac
4104 # Now try BSD make style include.
4105 if test "$am__include" = "#"; then
4106 echo '.include "confinc"' > confmf
4107 case `$am_make -s -f confmf 2> /dev/null` in #(
4108 *the\ am__doit\ target*)
4109 am__include=.include
4110 am__quote="\""
4111 _am_result=BSD
4113 esac
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4118 $as_echo "$_am_result" >&6; }
4119 rm -f confinc confmf
4121 # Check whether --enable-dependency-tracking was given.
4122 if test "${enable_dependency_tracking+set}" = set; then :
4123 enableval=$enable_dependency_tracking;
4126 if test "x$enable_dependency_tracking" != xno; then
4127 am_depcomp="$ac_aux_dir/depcomp"
4128 AMDEPBACKSLASH='\'
4129 am__nodep='_no'
4131 if test "x$enable_dependency_tracking" != xno; then
4132 AMDEP_TRUE=
4133 AMDEP_FALSE='#'
4134 else
4135 AMDEP_TRUE='#'
4136 AMDEP_FALSE=
4141 depcc="$CC" am_compiler_list=
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4144 $as_echo_n "checking dependency style of $depcc... " >&6; }
4145 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4146 $as_echo_n "(cached) " >&6
4147 else
4148 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4149 # We make a subdir and do the tests there. Otherwise we can end up
4150 # making bogus files that we don't know about and never remove. For
4151 # instance it was reported that on HP-UX the gcc test will end up
4152 # making a dummy file named `D' -- because `-MD' means `put the output
4153 # in D'.
4154 rm -rf conftest.dir
4155 mkdir conftest.dir
4156 # Copy depcomp to subdir because otherwise we won't find it if we're
4157 # using a relative directory.
4158 cp "$am_depcomp" conftest.dir
4159 cd conftest.dir
4160 # We will build objects and dependencies in a subdirectory because
4161 # it helps to detect inapplicable dependency modes. For instance
4162 # both Tru64's cc and ICC support -MD to output dependencies as a
4163 # side effect of compilation, but ICC will put the dependencies in
4164 # the current directory while Tru64 will put them in the object
4165 # directory.
4166 mkdir sub
4168 am_cv_CC_dependencies_compiler_type=none
4169 if test "$am_compiler_list" = ""; then
4170 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4172 am__universal=false
4173 case " $depcc " in #(
4174 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4175 esac
4177 for depmode in $am_compiler_list; do
4178 # Setup a source with many dependencies, because some compilers
4179 # like to wrap large dependency lists on column 80 (with \), and
4180 # we should not choose a depcomp mode which is confused by this.
4182 # We need to recreate these files for each test, as the compiler may
4183 # overwrite some of them when testing with obscure command lines.
4184 # This happens at least with the AIX C compiler.
4185 : > sub/conftest.c
4186 for i in 1 2 3 4 5 6; do
4187 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4188 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4189 # Solaris 8's {/usr,}/bin/sh.
4190 touch sub/conftst$i.h
4191 done
4192 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4194 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4195 # mode. It turns out that the SunPro C++ compiler does not properly
4196 # handle `-M -o', and we need to detect this. Also, some Intel
4197 # versions had trouble with output in subdirs
4198 am__obj=sub/conftest.${OBJEXT-o}
4199 am__minus_obj="-o $am__obj"
4200 case $depmode in
4201 gcc)
4202 # This depmode causes a compiler race in universal mode.
4203 test "$am__universal" = false || continue
4205 nosideeffect)
4206 # after this tag, mechanisms are not by side-effect, so they'll
4207 # only be used when explicitly requested
4208 if test "x$enable_dependency_tracking" = xyes; then
4209 continue
4210 else
4211 break
4214 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4215 # This compiler won't grok `-c -o', but also, the minuso test has
4216 # not run yet. These depmodes are late enough in the game, and
4217 # so weak that their functioning should not be impacted.
4218 am__obj=conftest.${OBJEXT-o}
4219 am__minus_obj=
4221 none) break ;;
4222 esac
4223 if depmode=$depmode \
4224 source=sub/conftest.c object=$am__obj \
4225 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4226 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4227 >/dev/null 2>conftest.err &&
4228 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4229 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4230 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4231 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4232 # icc doesn't choke on unknown options, it will just issue warnings
4233 # or remarks (even with -Werror). So we grep stderr for any message
4234 # that says an option was ignored or not supported.
4235 # When given -MP, icc 7.0 and 7.1 complain thusly:
4236 # icc: Command line warning: ignoring option '-M'; no argument required
4237 # The diagnosis changed in icc 8.0:
4238 # icc: Command line remark: option '-MP' not supported
4239 if (grep 'ignoring option' conftest.err ||
4240 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4241 am_cv_CC_dependencies_compiler_type=$depmode
4242 break
4245 done
4247 cd ..
4248 rm -rf conftest.dir
4249 else
4250 am_cv_CC_dependencies_compiler_type=none
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4255 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4256 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4259 test "x$enable_dependency_tracking" != xno \
4260 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4261 am__fastdepCC_TRUE=
4262 am__fastdepCC_FALSE='#'
4263 else
4264 am__fastdepCC_TRUE='#'
4265 am__fastdepCC_FALSE=
4269 ac_ext=cpp
4270 ac_cpp='$CXXCPP $CPPFLAGS'
4271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4274 if test -z "$CXX"; then
4275 if test -n "$CCC"; then
4276 CXX=$CCC
4277 else
4278 if test -n "$ac_tool_prefix"; then
4279 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4282 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4284 $as_echo_n "checking for $ac_word... " >&6; }
4285 if test "${ac_cv_prog_CXX+set}" = set; then :
4286 $as_echo_n "(cached) " >&6
4287 else
4288 if test -n "$CXX"; then
4289 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4290 else
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 for as_dir in $PATH
4294 IFS=$as_save_IFS
4295 test -z "$as_dir" && as_dir=.
4296 for ac_exec_ext in '' $ac_executable_extensions; do
4297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4298 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4300 break 2
4302 done
4303 done
4304 IFS=$as_save_IFS
4308 CXX=$ac_cv_prog_CXX
4309 if test -n "$CXX"; then
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4311 $as_echo "$CXX" >&6; }
4312 else
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314 $as_echo "no" >&6; }
4318 test -n "$CXX" && break
4319 done
4321 if test -z "$CXX"; then
4322 ac_ct_CXX=$CXX
4323 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4325 # Extract the first word of "$ac_prog", so it can be a program name with args.
4326 set dummy $ac_prog; ac_word=$2
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4328 $as_echo_n "checking for $ac_word... " >&6; }
4329 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4330 $as_echo_n "(cached) " >&6
4331 else
4332 if test -n "$ac_ct_CXX"; then
4333 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4334 else
4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336 for as_dir in $PATH
4338 IFS=$as_save_IFS
4339 test -z "$as_dir" && as_dir=.
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4342 ac_cv_prog_ac_ct_CXX="$ac_prog"
4343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4344 break 2
4346 done
4347 done
4348 IFS=$as_save_IFS
4352 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4353 if test -n "$ac_ct_CXX"; then
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4355 $as_echo "$ac_ct_CXX" >&6; }
4356 else
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 $as_echo "no" >&6; }
4362 test -n "$ac_ct_CXX" && break
4363 done
4365 if test "x$ac_ct_CXX" = x; then
4366 CXX="g++"
4367 else
4368 case $cross_compiling:$ac_tool_warned in
4369 yes:)
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4372 ac_tool_warned=yes ;;
4373 esac
4374 CXX=$ac_ct_CXX
4380 # Provide some information about the compiler.
4381 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4382 set X $ac_compile
4383 ac_compiler=$2
4384 for ac_option in --version -v -V -qversion; do
4385 { { ac_try="$ac_compiler $ac_option >&5"
4386 case "(($ac_try" in
4387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4388 *) ac_try_echo=$ac_try;;
4389 esac
4390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4391 $as_echo "$ac_try_echo"; } >&5
4392 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4393 ac_status=$?
4394 if test -s conftest.err; then
4395 sed '10a\
4396 ... rest of stderr output deleted ...
4397 10q' conftest.err >conftest.er1
4398 cat conftest.er1 >&5
4399 rm -f conftest.er1 conftest.err
4401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4402 test $ac_status = 0; }
4403 done
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4406 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4407 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4408 $as_echo_n "(cached) " >&6
4409 else
4410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4411 /* end confdefs.h. */
4414 main ()
4416 #ifndef __GNUC__
4417 choke me
4418 #endif
4421 return 0;
4423 _ACEOF
4424 if ac_fn_cxx_try_compile "$LINENO"; then :
4425 ac_compiler_gnu=yes
4426 else
4427 ac_compiler_gnu=no
4429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4434 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4435 if test $ac_compiler_gnu = yes; then
4436 GXX=yes
4437 else
4438 GXX=
4440 ac_test_CXXFLAGS=${CXXFLAGS+set}
4441 ac_save_CXXFLAGS=$CXXFLAGS
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4443 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4444 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4445 $as_echo_n "(cached) " >&6
4446 else
4447 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4448 ac_cxx_werror_flag=yes
4449 ac_cv_prog_cxx_g=no
4450 CXXFLAGS="-g"
4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h. */
4455 main ()
4459 return 0;
4461 _ACEOF
4462 if ac_fn_cxx_try_compile "$LINENO"; then :
4463 ac_cv_prog_cxx_g=yes
4464 else
4465 CXXFLAGS=""
4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h. */
4470 main ()
4474 return 0;
4476 _ACEOF
4477 if ac_fn_cxx_try_compile "$LINENO"; then :
4479 else
4480 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4481 CXXFLAGS="-g"
4482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4483 /* end confdefs.h. */
4486 main ()
4490 return 0;
4492 _ACEOF
4493 if ac_fn_cxx_try_compile "$LINENO"; then :
4494 ac_cv_prog_cxx_g=yes
4496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4501 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4504 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4505 if test "$ac_test_CXXFLAGS" = set; then
4506 CXXFLAGS=$ac_save_CXXFLAGS
4507 elif test $ac_cv_prog_cxx_g = yes; then
4508 if test "$GXX" = yes; then
4509 CXXFLAGS="-g -O2"
4510 else
4511 CXXFLAGS="-g"
4513 else
4514 if test "$GXX" = yes; then
4515 CXXFLAGS="-O2"
4516 else
4517 CXXFLAGS=
4520 ac_ext=c
4521 ac_cpp='$CPP $CPPFLAGS'
4522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4526 depcc="$CXX" am_compiler_list=
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4529 $as_echo_n "checking dependency style of $depcc... " >&6; }
4530 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4534 # We make a subdir and do the tests there. Otherwise we can end up
4535 # making bogus files that we don't know about and never remove. For
4536 # instance it was reported that on HP-UX the gcc test will end up
4537 # making a dummy file named `D' -- because `-MD' means `put the output
4538 # in D'.
4539 rm -rf conftest.dir
4540 mkdir conftest.dir
4541 # Copy depcomp to subdir because otherwise we won't find it if we're
4542 # using a relative directory.
4543 cp "$am_depcomp" conftest.dir
4544 cd conftest.dir
4545 # We will build objects and dependencies in a subdirectory because
4546 # it helps to detect inapplicable dependency modes. For instance
4547 # both Tru64's cc and ICC support -MD to output dependencies as a
4548 # side effect of compilation, but ICC will put the dependencies in
4549 # the current directory while Tru64 will put them in the object
4550 # directory.
4551 mkdir sub
4553 am_cv_CXX_dependencies_compiler_type=none
4554 if test "$am_compiler_list" = ""; then
4555 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4557 am__universal=false
4558 case " $depcc " in #(
4559 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4560 esac
4562 for depmode in $am_compiler_list; do
4563 # Setup a source with many dependencies, because some compilers
4564 # like to wrap large dependency lists on column 80 (with \), and
4565 # we should not choose a depcomp mode which is confused by this.
4567 # We need to recreate these files for each test, as the compiler may
4568 # overwrite some of them when testing with obscure command lines.
4569 # This happens at least with the AIX C compiler.
4570 : > sub/conftest.c
4571 for i in 1 2 3 4 5 6; do
4572 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4573 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4574 # Solaris 8's {/usr,}/bin/sh.
4575 touch sub/conftst$i.h
4576 done
4577 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4579 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4580 # mode. It turns out that the SunPro C++ compiler does not properly
4581 # handle `-M -o', and we need to detect this. Also, some Intel
4582 # versions had trouble with output in subdirs
4583 am__obj=sub/conftest.${OBJEXT-o}
4584 am__minus_obj="-o $am__obj"
4585 case $depmode in
4586 gcc)
4587 # This depmode causes a compiler race in universal mode.
4588 test "$am__universal" = false || continue
4590 nosideeffect)
4591 # after this tag, mechanisms are not by side-effect, so they'll
4592 # only be used when explicitly requested
4593 if test "x$enable_dependency_tracking" = xyes; then
4594 continue
4595 else
4596 break
4599 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4600 # This compiler won't grok `-c -o', but also, the minuso test has
4601 # not run yet. These depmodes are late enough in the game, and
4602 # so weak that their functioning should not be impacted.
4603 am__obj=conftest.${OBJEXT-o}
4604 am__minus_obj=
4606 none) break ;;
4607 esac
4608 if depmode=$depmode \
4609 source=sub/conftest.c object=$am__obj \
4610 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4611 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4612 >/dev/null 2>conftest.err &&
4613 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4614 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4615 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4616 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4617 # icc doesn't choke on unknown options, it will just issue warnings
4618 # or remarks (even with -Werror). So we grep stderr for any message
4619 # that says an option was ignored or not supported.
4620 # When given -MP, icc 7.0 and 7.1 complain thusly:
4621 # icc: Command line warning: ignoring option '-M'; no argument required
4622 # The diagnosis changed in icc 8.0:
4623 # icc: Command line remark: option '-MP' not supported
4624 if (grep 'ignoring option' conftest.err ||
4625 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4626 am_cv_CXX_dependencies_compiler_type=$depmode
4627 break
4630 done
4632 cd ..
4633 rm -rf conftest.dir
4634 else
4635 am_cv_CXX_dependencies_compiler_type=none
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4640 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4641 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4644 test "x$enable_dependency_tracking" != xno \
4645 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4646 am__fastdepCXX_TRUE=
4647 am__fastdepCXX_FALSE='#'
4648 else
4649 am__fastdepCXX_TRUE='#'
4650 am__fastdepCXX_FALSE=
4654 CFLAGS=$save_CFLAGS
4660 # By default we simply use the C compiler to build assembly code.
4662 test "${CCAS+set}" = set || CCAS=$CC
4663 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4667 depcc="$CCAS" am_compiler_list=
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4670 $as_echo_n "checking dependency style of $depcc... " >&6; }
4671 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4672 $as_echo_n "(cached) " >&6
4673 else
4674 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4675 # We make a subdir and do the tests there. Otherwise we can end up
4676 # making bogus files that we don't know about and never remove. For
4677 # instance it was reported that on HP-UX the gcc test will end up
4678 # making a dummy file named `D' -- because `-MD' means `put the output
4679 # in D'.
4680 rm -rf conftest.dir
4681 mkdir conftest.dir
4682 # Copy depcomp to subdir because otherwise we won't find it if we're
4683 # using a relative directory.
4684 cp "$am_depcomp" conftest.dir
4685 cd conftest.dir
4686 # We will build objects and dependencies in a subdirectory because
4687 # it helps to detect inapplicable dependency modes. For instance
4688 # both Tru64's cc and ICC support -MD to output dependencies as a
4689 # side effect of compilation, but ICC will put the dependencies in
4690 # the current directory while Tru64 will put them in the object
4691 # directory.
4692 mkdir sub
4694 am_cv_CCAS_dependencies_compiler_type=none
4695 if test "$am_compiler_list" = ""; then
4696 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4698 am__universal=false
4701 for depmode in $am_compiler_list; do
4702 # Setup a source with many dependencies, because some compilers
4703 # like to wrap large dependency lists on column 80 (with \), and
4704 # we should not choose a depcomp mode which is confused by this.
4706 # We need to recreate these files for each test, as the compiler may
4707 # overwrite some of them when testing with obscure command lines.
4708 # This happens at least with the AIX C compiler.
4709 : > sub/conftest.c
4710 for i in 1 2 3 4 5 6; do
4711 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4712 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4713 # Solaris 8's {/usr,}/bin/sh.
4714 touch sub/conftst$i.h
4715 done
4716 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4718 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4719 # mode. It turns out that the SunPro C++ compiler does not properly
4720 # handle `-M -o', and we need to detect this. Also, some Intel
4721 # versions had trouble with output in subdirs
4722 am__obj=sub/conftest.${OBJEXT-o}
4723 am__minus_obj="-o $am__obj"
4724 case $depmode in
4725 gcc)
4726 # This depmode causes a compiler race in universal mode.
4727 test "$am__universal" = false || continue
4729 nosideeffect)
4730 # after this tag, mechanisms are not by side-effect, so they'll
4731 # only be used when explicitly requested
4732 if test "x$enable_dependency_tracking" = xyes; then
4733 continue
4734 else
4735 break
4738 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4739 # This compiler won't grok `-c -o', but also, the minuso test has
4740 # not run yet. These depmodes are late enough in the game, and
4741 # so weak that their functioning should not be impacted.
4742 am__obj=conftest.${OBJEXT-o}
4743 am__minus_obj=
4745 none) break ;;
4746 esac
4747 if depmode=$depmode \
4748 source=sub/conftest.c object=$am__obj \
4749 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4750 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4751 >/dev/null 2>conftest.err &&
4752 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4753 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4754 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4755 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4756 # icc doesn't choke on unknown options, it will just issue warnings
4757 # or remarks (even with -Werror). So we grep stderr for any message
4758 # that says an option was ignored or not supported.
4759 # When given -MP, icc 7.0 and 7.1 complain thusly:
4760 # icc: Command line warning: ignoring option '-M'; no argument required
4761 # The diagnosis changed in icc 8.0:
4762 # icc: Command line remark: option '-MP' not supported
4763 if (grep 'ignoring option' conftest.err ||
4764 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4765 am_cv_CCAS_dependencies_compiler_type=$depmode
4766 break
4769 done
4771 cd ..
4772 rm -rf conftest.dir
4773 else
4774 am_cv_CCAS_dependencies_compiler_type=none
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4779 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4780 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4783 test "x$enable_dependency_tracking" != xno \
4784 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4785 am__fastdepCCAS_TRUE=
4786 am__fastdepCCAS_FALSE='#'
4787 else
4788 am__fastdepCCAS_TRUE='#'
4789 am__fastdepCCAS_FALSE=
4793 if test "x$CC" != xcc; then
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4795 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4796 else
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4798 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4800 set dummy $CC; ac_cc=`$as_echo "$2" |
4801 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4802 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4803 $as_echo_n "(cached) " >&6
4804 else
4805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806 /* end confdefs.h. */
4809 main ()
4813 return 0;
4815 _ACEOF
4816 # Make sure it works both with $CC and with simple cc.
4817 # We do the test twice because some compilers refuse to overwrite an
4818 # existing .o file with -o, though they will create one.
4819 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4820 rm -f conftest2.*
4821 if { { case "(($ac_try" in
4822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823 *) ac_try_echo=$ac_try;;
4824 esac
4825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4826 $as_echo "$ac_try_echo"; } >&5
4827 (eval "$ac_try") 2>&5
4828 ac_status=$?
4829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4830 test $ac_status = 0; } &&
4831 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4834 esac
4835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4836 $as_echo "$ac_try_echo"; } >&5
4837 (eval "$ac_try") 2>&5
4838 ac_status=$?
4839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4840 test $ac_status = 0; };
4841 then
4842 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4843 if test "x$CC" != xcc; then
4844 # Test first that cc exists at all.
4845 if { ac_try='cc -c conftest.$ac_ext >&5'
4846 { { case "(($ac_try" in
4847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4848 *) ac_try_echo=$ac_try;;
4849 esac
4850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4851 $as_echo "$ac_try_echo"; } >&5
4852 (eval "$ac_try") 2>&5
4853 ac_status=$?
4854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4855 test $ac_status = 0; }; }; then
4856 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4857 rm -f conftest2.*
4858 if { { case "(($ac_try" in
4859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4860 *) ac_try_echo=$ac_try;;
4861 esac
4862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4863 $as_echo "$ac_try_echo"; } >&5
4864 (eval "$ac_try") 2>&5
4865 ac_status=$?
4866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4867 test $ac_status = 0; } &&
4868 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870 *) ac_try_echo=$ac_try;;
4871 esac
4872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4873 $as_echo "$ac_try_echo"; } >&5
4874 (eval "$ac_try") 2>&5
4875 ac_status=$?
4876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4877 test $ac_status = 0; };
4878 then
4879 # cc works too.
4881 else
4882 # cc exists but doesn't like -o.
4883 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4887 else
4888 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4890 rm -f core conftest*
4893 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4895 $as_echo "yes" >&6; }
4896 else
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4898 $as_echo "no" >&6; }
4900 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4904 # FIXME: we rely on the cache variable name because
4905 # there is no other way.
4906 set dummy $CC
4907 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4908 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4909 if test "$am_t" != yes; then
4910 # Losing compiler, so override with the script.
4911 # FIXME: It is wrong to rewrite CC.
4912 # But if we don't then we get into trouble of one sort or another.
4913 # A longer-term fix would be to have automake use am__CC in this case,
4914 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4915 CC="$am_aux_dir/compile $CC"
4919 case `pwd` in
4920 *\ * | *\ *)
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4922 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4923 esac
4927 macro_version='2.2.7a'
4928 macro_revision='1.3134'
4942 ltmain="$ac_aux_dir/ltmain.sh"
4944 # Backslashify metacharacters that are still active within
4945 # double-quoted strings.
4946 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4948 # Same as above, but do not quote variable references.
4949 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4951 # Sed substitution to delay expansion of an escaped shell variable in a
4952 # double_quote_subst'ed string.
4953 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4955 # Sed substitution to delay expansion of an escaped single quote.
4956 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4958 # Sed substitution to avoid accidental globbing in evaled expressions
4959 no_glob_subst='s/\*/\\\*/g'
4961 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4962 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4963 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4966 $as_echo_n "checking how to print strings... " >&6; }
4967 # Test print first, because it will be a builtin if present.
4968 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4969 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4970 ECHO='print -r --'
4971 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4972 ECHO='printf %s\n'
4973 else
4974 # Use this function as a fallback that always works.
4975 func_fallback_echo ()
4977 eval 'cat <<_LTECHO_EOF
4979 _LTECHO_EOF'
4981 ECHO='func_fallback_echo'
4984 # func_echo_all arg...
4985 # Invoke $ECHO with all args, space-separated.
4986 func_echo_all ()
4988 $ECHO ""
4991 case "$ECHO" in
4992 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4993 $as_echo "printf" >&6; } ;;
4994 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4995 $as_echo "print -r" >&6; } ;;
4996 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4997 $as_echo "cat" >&6; } ;;
4998 esac
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5014 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5015 if test "${ac_cv_path_SED+set}" = set; then :
5016 $as_echo_n "(cached) " >&6
5017 else
5018 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5019 for ac_i in 1 2 3 4 5 6 7; do
5020 ac_script="$ac_script$as_nl$ac_script"
5021 done
5022 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5023 { ac_script=; unset ac_script;}
5024 if test -z "$SED"; then
5025 ac_path_SED_found=false
5026 # Loop through the user's path and test for each of PROGNAME-LIST
5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 for as_dir in $PATH
5030 IFS=$as_save_IFS
5031 test -z "$as_dir" && as_dir=.
5032 for ac_prog in sed gsed; do
5033 for ac_exec_ext in '' $ac_executable_extensions; do
5034 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5035 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5036 # Check for GNU ac_path_SED and select it if it is found.
5037 # Check for GNU $ac_path_SED
5038 case `"$ac_path_SED" --version 2>&1` in
5039 *GNU*)
5040 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5042 ac_count=0
5043 $as_echo_n 0123456789 >"conftest.in"
5044 while :
5046 cat "conftest.in" "conftest.in" >"conftest.tmp"
5047 mv "conftest.tmp" "conftest.in"
5048 cp "conftest.in" "conftest.nl"
5049 $as_echo '' >> "conftest.nl"
5050 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5051 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5052 as_fn_arith $ac_count + 1 && ac_count=$as_val
5053 if test $ac_count -gt ${ac_path_SED_max-0}; then
5054 # Best one so far, save it but keep looking for a better one
5055 ac_cv_path_SED="$ac_path_SED"
5056 ac_path_SED_max=$ac_count
5058 # 10*(2^10) chars as input seems more than enough
5059 test $ac_count -gt 10 && break
5060 done
5061 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5062 esac
5064 $ac_path_SED_found && break 3
5065 done
5066 done
5067 done
5068 IFS=$as_save_IFS
5069 if test -z "$ac_cv_path_SED"; then
5070 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5072 else
5073 ac_cv_path_SED=$SED
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5078 $as_echo "$ac_cv_path_SED" >&6; }
5079 SED="$ac_cv_path_SED"
5080 rm -f conftest.sed
5082 test -z "$SED" && SED=sed
5083 Xsed="$SED -e 1s/^X//"
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5096 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5097 if test "${ac_cv_path_GREP+set}" = set; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 if test -z "$GREP"; then
5101 ac_path_GREP_found=false
5102 # Loop through the user's path and test for each of PROGNAME-LIST
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5106 IFS=$as_save_IFS
5107 test -z "$as_dir" && as_dir=.
5108 for ac_prog in grep ggrep; do
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5111 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5112 # Check for GNU ac_path_GREP and select it if it is found.
5113 # Check for GNU $ac_path_GREP
5114 case `"$ac_path_GREP" --version 2>&1` in
5115 *GNU*)
5116 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5118 ac_count=0
5119 $as_echo_n 0123456789 >"conftest.in"
5120 while :
5122 cat "conftest.in" "conftest.in" >"conftest.tmp"
5123 mv "conftest.tmp" "conftest.in"
5124 cp "conftest.in" "conftest.nl"
5125 $as_echo 'GREP' >> "conftest.nl"
5126 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5127 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5128 as_fn_arith $ac_count + 1 && ac_count=$as_val
5129 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5130 # Best one so far, save it but keep looking for a better one
5131 ac_cv_path_GREP="$ac_path_GREP"
5132 ac_path_GREP_max=$ac_count
5134 # 10*(2^10) chars as input seems more than enough
5135 test $ac_count -gt 10 && break
5136 done
5137 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5138 esac
5140 $ac_path_GREP_found && break 3
5141 done
5142 done
5143 done
5144 IFS=$as_save_IFS
5145 if test -z "$ac_cv_path_GREP"; then
5146 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5148 else
5149 ac_cv_path_GREP=$GREP
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5154 $as_echo "$ac_cv_path_GREP" >&6; }
5155 GREP="$ac_cv_path_GREP"
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5159 $as_echo_n "checking for egrep... " >&6; }
5160 if test "${ac_cv_path_EGREP+set}" = set; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5164 then ac_cv_path_EGREP="$GREP -E"
5165 else
5166 if test -z "$EGREP"; then
5167 ac_path_EGREP_found=false
5168 # Loop through the user's path and test for each of PROGNAME-LIST
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
5174 for ac_prog in egrep; do
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5177 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5178 # Check for GNU ac_path_EGREP and select it if it is found.
5179 # Check for GNU $ac_path_EGREP
5180 case `"$ac_path_EGREP" --version 2>&1` in
5181 *GNU*)
5182 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5184 ac_count=0
5185 $as_echo_n 0123456789 >"conftest.in"
5186 while :
5188 cat "conftest.in" "conftest.in" >"conftest.tmp"
5189 mv "conftest.tmp" "conftest.in"
5190 cp "conftest.in" "conftest.nl"
5191 $as_echo 'EGREP' >> "conftest.nl"
5192 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5194 as_fn_arith $ac_count + 1 && ac_count=$as_val
5195 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5196 # Best one so far, save it but keep looking for a better one
5197 ac_cv_path_EGREP="$ac_path_EGREP"
5198 ac_path_EGREP_max=$ac_count
5200 # 10*(2^10) chars as input seems more than enough
5201 test $ac_count -gt 10 && break
5202 done
5203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5204 esac
5206 $ac_path_EGREP_found && break 3
5207 done
5208 done
5209 done
5210 IFS=$as_save_IFS
5211 if test -z "$ac_cv_path_EGREP"; then
5212 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5214 else
5215 ac_cv_path_EGREP=$EGREP
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5221 $as_echo "$ac_cv_path_EGREP" >&6; }
5222 EGREP="$ac_cv_path_EGREP"
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5226 $as_echo_n "checking for fgrep... " >&6; }
5227 if test "${ac_cv_path_FGREP+set}" = set; then :
5228 $as_echo_n "(cached) " >&6
5229 else
5230 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5231 then ac_cv_path_FGREP="$GREP -F"
5232 else
5233 if test -z "$FGREP"; then
5234 ac_path_FGREP_found=false
5235 # Loop through the user's path and test for each of PROGNAME-LIST
5236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5239 IFS=$as_save_IFS
5240 test -z "$as_dir" && as_dir=.
5241 for ac_prog in fgrep; do
5242 for ac_exec_ext in '' $ac_executable_extensions; do
5243 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5244 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5245 # Check for GNU ac_path_FGREP and select it if it is found.
5246 # Check for GNU $ac_path_FGREP
5247 case `"$ac_path_FGREP" --version 2>&1` in
5248 *GNU*)
5249 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5251 ac_count=0
5252 $as_echo_n 0123456789 >"conftest.in"
5253 while :
5255 cat "conftest.in" "conftest.in" >"conftest.tmp"
5256 mv "conftest.tmp" "conftest.in"
5257 cp "conftest.in" "conftest.nl"
5258 $as_echo 'FGREP' >> "conftest.nl"
5259 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5260 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5261 as_fn_arith $ac_count + 1 && ac_count=$as_val
5262 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5263 # Best one so far, save it but keep looking for a better one
5264 ac_cv_path_FGREP="$ac_path_FGREP"
5265 ac_path_FGREP_max=$ac_count
5267 # 10*(2^10) chars as input seems more than enough
5268 test $ac_count -gt 10 && break
5269 done
5270 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5271 esac
5273 $ac_path_FGREP_found && break 3
5274 done
5275 done
5276 done
5277 IFS=$as_save_IFS
5278 if test -z "$ac_cv_path_FGREP"; then
5279 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5281 else
5282 ac_cv_path_FGREP=$FGREP
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5288 $as_echo "$ac_cv_path_FGREP" >&6; }
5289 FGREP="$ac_cv_path_FGREP"
5292 test -z "$GREP" && GREP=grep
5312 # Check whether --with-gnu-ld was given.
5313 if test "${with_gnu_ld+set}" = set; then :
5314 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5315 else
5316 with_gnu_ld=no
5319 ac_prog=ld
5320 if test "$GCC" = yes; then
5321 # Check if gcc -print-prog-name=ld gives a path.
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5323 $as_echo_n "checking for ld used by $CC... " >&6; }
5324 case $host in
5325 *-*-mingw*)
5326 # gcc leaves a trailing carriage return which upsets mingw
5327 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5329 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5330 esac
5331 case $ac_prog in
5332 # Accept absolute paths.
5333 [\\/]* | ?:[\\/]*)
5334 re_direlt='/[^/][^/]*/\.\./'
5335 # Canonicalize the pathname of ld
5336 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5337 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5338 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5339 done
5340 test -z "$LD" && LD="$ac_prog"
5343 # If it fails, then pretend we aren't using GCC.
5344 ac_prog=ld
5347 # If it is relative, then search for the first ld in PATH.
5348 with_gnu_ld=unknown
5350 esac
5351 elif test "$with_gnu_ld" = yes; then
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5353 $as_echo_n "checking for GNU ld... " >&6; }
5354 else
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5356 $as_echo_n "checking for non-GNU ld... " >&6; }
5358 if test "${lt_cv_path_LD+set}" = set; then :
5359 $as_echo_n "(cached) " >&6
5360 else
5361 if test -z "$LD"; then
5362 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5363 for ac_dir in $PATH; do
5364 IFS="$lt_save_ifs"
5365 test -z "$ac_dir" && ac_dir=.
5366 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5367 lt_cv_path_LD="$ac_dir/$ac_prog"
5368 # Check to see if the program is GNU ld. I'd rather use --version,
5369 # but apparently some variants of GNU ld only accept -v.
5370 # Break only if it was the GNU/non-GNU ld that we prefer.
5371 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5372 *GNU* | *'with BFD'*)
5373 test "$with_gnu_ld" != no && break
5376 test "$with_gnu_ld" != yes && break
5378 esac
5380 done
5381 IFS="$lt_save_ifs"
5382 else
5383 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5387 LD="$lt_cv_path_LD"
5388 if test -n "$LD"; then
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5390 $as_echo "$LD" >&6; }
5391 else
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5393 $as_echo "no" >&6; }
5395 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5397 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5398 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5401 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5402 case `$LD -v 2>&1 </dev/null` in
5403 *GNU* | *'with BFD'*)
5404 lt_cv_prog_gnu_ld=yes
5407 lt_cv_prog_gnu_ld=no
5409 esac
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5412 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5413 with_gnu_ld=$lt_cv_prog_gnu_ld
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5424 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5425 if test "${lt_cv_path_NM+set}" = set; then :
5426 $as_echo_n "(cached) " >&6
5427 else
5428 if test -n "$NM"; then
5429 # Let the user override the test.
5430 lt_cv_path_NM="$NM"
5431 else
5432 lt_nm_to_check="${ac_tool_prefix}nm"
5433 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5434 lt_nm_to_check="$lt_nm_to_check nm"
5436 for lt_tmp_nm in $lt_nm_to_check; do
5437 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5438 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5439 IFS="$lt_save_ifs"
5440 test -z "$ac_dir" && ac_dir=.
5441 tmp_nm="$ac_dir/$lt_tmp_nm"
5442 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5443 # Check to see if the nm accepts a BSD-compat flag.
5444 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5445 # nm: unknown option "B" ignored
5446 # Tru64's nm complains that /dev/null is an invalid object file
5447 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5448 */dev/null* | *'Invalid file or object type'*)
5449 lt_cv_path_NM="$tmp_nm -B"
5450 break
5453 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5454 */dev/null*)
5455 lt_cv_path_NM="$tmp_nm -p"
5456 break
5459 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5460 continue # so that we can try to find one that supports BSD flags
5462 esac
5464 esac
5466 done
5467 IFS="$lt_save_ifs"
5468 done
5469 : ${lt_cv_path_NM=no}
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5473 $as_echo "$lt_cv_path_NM" >&6; }
5474 if test "$lt_cv_path_NM" != "no"; then
5475 NM="$lt_cv_path_NM"
5476 else
5477 # Didn't find any BSD compatible name lister, look for dumpbin.
5478 if test -n "$DUMPBIN"; then :
5479 # Let the user override the test.
5480 else
5481 if test -n "$ac_tool_prefix"; then
5482 for ac_prog in dumpbin "link -dump"
5484 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5485 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5487 $as_echo_n "checking for $ac_word... " >&6; }
5488 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5489 $as_echo_n "(cached) " >&6
5490 else
5491 if test -n "$DUMPBIN"; then
5492 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5493 else
5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495 for as_dir in $PATH
5497 IFS=$as_save_IFS
5498 test -z "$as_dir" && as_dir=.
5499 for ac_exec_ext in '' $ac_executable_extensions; do
5500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5501 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 break 2
5505 done
5506 done
5507 IFS=$as_save_IFS
5511 DUMPBIN=$ac_cv_prog_DUMPBIN
5512 if test -n "$DUMPBIN"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5514 $as_echo "$DUMPBIN" >&6; }
5515 else
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5521 test -n "$DUMPBIN" && break
5522 done
5524 if test -z "$DUMPBIN"; then
5525 ac_ct_DUMPBIN=$DUMPBIN
5526 for ac_prog in dumpbin "link -dump"
5528 # Extract the first word of "$ac_prog", so it can be a program name with args.
5529 set dummy $ac_prog; ac_word=$2
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5531 $as_echo_n "checking for $ac_word... " >&6; }
5532 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5533 $as_echo_n "(cached) " >&6
5534 else
5535 if test -n "$ac_ct_DUMPBIN"; then
5536 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5537 else
5538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 for as_dir in $PATH
5541 IFS=$as_save_IFS
5542 test -z "$as_dir" && as_dir=.
5543 for ac_exec_ext in '' $ac_executable_extensions; do
5544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5545 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5547 break 2
5549 done
5550 done
5551 IFS=$as_save_IFS
5555 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5556 if test -n "$ac_ct_DUMPBIN"; then
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5558 $as_echo "$ac_ct_DUMPBIN" >&6; }
5559 else
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561 $as_echo "no" >&6; }
5565 test -n "$ac_ct_DUMPBIN" && break
5566 done
5568 if test "x$ac_ct_DUMPBIN" = x; then
5569 DUMPBIN=":"
5570 else
5571 case $cross_compiling:$ac_tool_warned in
5572 yes:)
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5575 ac_tool_warned=yes ;;
5576 esac
5577 DUMPBIN=$ac_ct_DUMPBIN
5581 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5582 *COFF*)
5583 DUMPBIN="$DUMPBIN -symbols"
5586 DUMPBIN=:
5588 esac
5591 if test "$DUMPBIN" != ":"; then
5592 NM="$DUMPBIN"
5595 test -z "$NM" && NM=nm
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5603 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5604 if test "${lt_cv_nm_interface+set}" = set; then :
5605 $as_echo_n "(cached) " >&6
5606 else
5607 lt_cv_nm_interface="BSD nm"
5608 echo "int some_variable = 0;" > conftest.$ac_ext
5609 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5610 (eval "$ac_compile" 2>conftest.err)
5611 cat conftest.err >&5
5612 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5613 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5614 cat conftest.err >&5
5615 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5616 cat conftest.out >&5
5617 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5618 lt_cv_nm_interface="MS dumpbin"
5620 rm -f conftest*
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5623 $as_echo "$lt_cv_nm_interface" >&6; }
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5626 $as_echo_n "checking whether ln -s works... " >&6; }
5627 LN_S=$as_ln_s
5628 if test "$LN_S" = "ln -s"; then
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5630 $as_echo "yes" >&6; }
5631 else
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5633 $as_echo "no, using $LN_S" >&6; }
5636 # find the maximum length of command line arguments
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5638 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5639 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5640 $as_echo_n "(cached) " >&6
5641 else
5643 teststring="ABCD"
5645 case $build_os in
5646 msdosdjgpp*)
5647 # On DJGPP, this test can blow up pretty badly due to problems in libc
5648 # (any single argument exceeding 2000 bytes causes a buffer overrun
5649 # during glob expansion). Even if it were fixed, the result of this
5650 # check would be larger than it should be.
5651 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5654 gnu*)
5655 # Under GNU Hurd, this test is not required because there is
5656 # no limit to the length of command line arguments.
5657 # Libtool will interpret -1 as no limit whatsoever
5658 lt_cv_sys_max_cmd_len=-1;
5661 cygwin* | mingw* | cegcc*)
5662 # On Win9x/ME, this test blows up -- it succeeds, but takes
5663 # about 5 minutes as the teststring grows exponentially.
5664 # Worse, since 9x/ME are not pre-emptively multitasking,
5665 # you end up with a "frozen" computer, even though with patience
5666 # the test eventually succeeds (with a max line length of 256k).
5667 # Instead, let's just punt: use the minimum linelength reported by
5668 # all of the supported platforms: 8192 (on NT/2K/XP).
5669 lt_cv_sys_max_cmd_len=8192;
5672 mint*)
5673 # On MiNT this can take a long time and run out of memory.
5674 lt_cv_sys_max_cmd_len=8192;
5677 amigaos*)
5678 # On AmigaOS with pdksh, this test takes hours, literally.
5679 # So we just punt and use a minimum line length of 8192.
5680 lt_cv_sys_max_cmd_len=8192;
5683 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5684 # This has been around since 386BSD, at least. Likely further.
5685 if test -x /sbin/sysctl; then
5686 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5687 elif test -x /usr/sbin/sysctl; then
5688 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5689 else
5690 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5692 # And add a safety zone
5693 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5694 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5697 interix*)
5698 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5699 lt_cv_sys_max_cmd_len=196608
5702 osf*)
5703 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5704 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5705 # nice to cause kernel panics so lets avoid the loop below.
5706 # First set a reasonable default.
5707 lt_cv_sys_max_cmd_len=16384
5709 if test -x /sbin/sysconfig; then
5710 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5711 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5712 esac
5715 sco3.2v5*)
5716 lt_cv_sys_max_cmd_len=102400
5718 sysv5* | sco5v6* | sysv4.2uw2*)
5719 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5720 if test -n "$kargmax"; then
5721 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5722 else
5723 lt_cv_sys_max_cmd_len=32768
5727 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5728 if test -n "$lt_cv_sys_max_cmd_len"; then
5729 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5730 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5731 else
5732 # Make teststring a little bigger before we do anything with it.
5733 # a 1K string should be a reasonable start.
5734 for i in 1 2 3 4 5 6 7 8 ; do
5735 teststring=$teststring$teststring
5736 done
5737 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5738 # If test is not a shell built-in, we'll probably end up computing a
5739 # maximum length that is only half of the actual maximum length, but
5740 # we can't tell.
5741 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5742 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5743 test $i != 17 # 1/2 MB should be enough
5745 i=`expr $i + 1`
5746 teststring=$teststring$teststring
5747 done
5748 # Only check the string length outside the loop.
5749 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5750 teststring=
5751 # Add a significant safety factor because C++ compilers can tack on
5752 # massive amounts of additional arguments before passing them to the
5753 # linker. It appears as though 1/2 is a usable value.
5754 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5757 esac
5761 if test -n $lt_cv_sys_max_cmd_len ; then
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5763 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5764 else
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5766 $as_echo "none" >&6; }
5768 max_cmd_len=$lt_cv_sys_max_cmd_len
5775 : ${CP="cp -f"}
5776 : ${MV="mv -f"}
5777 : ${RM="rm -f"}
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5780 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5781 # Try some XSI features
5782 xsi_shell=no
5783 ( _lt_dummy="a/b/c"
5784 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5785 = c,a/b,, \
5786 && eval 'test $(( 1 + 1 )) -eq 2 \
5787 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5788 && xsi_shell=yes
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5790 $as_echo "$xsi_shell" >&6; }
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5794 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5795 lt_shell_append=no
5796 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5797 >/dev/null 2>&1 \
5798 && lt_shell_append=yes
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5800 $as_echo "$lt_shell_append" >&6; }
5803 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5804 lt_unset=unset
5805 else
5806 lt_unset=false
5813 # test EBCDIC or ASCII
5814 case `echo X|tr X '\101'` in
5815 A) # ASCII based system
5816 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5817 lt_SP2NL='tr \040 \012'
5818 lt_NL2SP='tr \015\012 \040\040'
5820 *) # EBCDIC based system
5821 lt_SP2NL='tr \100 \n'
5822 lt_NL2SP='tr \r\n \100\100'
5824 esac
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5835 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5836 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5837 $as_echo_n "(cached) " >&6
5838 else
5839 lt_cv_ld_reload_flag='-r'
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5842 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5843 reload_flag=$lt_cv_ld_reload_flag
5844 case $reload_flag in
5845 "" | " "*) ;;
5846 *) reload_flag=" $reload_flag" ;;
5847 esac
5848 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5849 case $host_os in
5850 darwin*)
5851 if test "$GCC" = yes; then
5852 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5853 else
5854 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5857 esac
5867 if test -n "$ac_tool_prefix"; then
5868 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5869 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5871 $as_echo_n "checking for $ac_word... " >&6; }
5872 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5873 $as_echo_n "(cached) " >&6
5874 else
5875 if test -n "$OBJDUMP"; then
5876 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5877 else
5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879 for as_dir in $PATH
5881 IFS=$as_save_IFS
5882 test -z "$as_dir" && as_dir=.
5883 for ac_exec_ext in '' $ac_executable_extensions; do
5884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5885 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5887 break 2
5889 done
5890 done
5891 IFS=$as_save_IFS
5895 OBJDUMP=$ac_cv_prog_OBJDUMP
5896 if test -n "$OBJDUMP"; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5898 $as_echo "$OBJDUMP" >&6; }
5899 else
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901 $as_echo "no" >&6; }
5906 if test -z "$ac_cv_prog_OBJDUMP"; then
5907 ac_ct_OBJDUMP=$OBJDUMP
5908 # Extract the first word of "objdump", so it can be a program name with args.
5909 set dummy objdump; ac_word=$2
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5911 $as_echo_n "checking for $ac_word... " >&6; }
5912 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5913 $as_echo_n "(cached) " >&6
5914 else
5915 if test -n "$ac_ct_OBJDUMP"; then
5916 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5917 else
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 for as_dir in $PATH
5921 IFS=$as_save_IFS
5922 test -z "$as_dir" && as_dir=.
5923 for ac_exec_ext in '' $ac_executable_extensions; do
5924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5925 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 break 2
5929 done
5930 done
5931 IFS=$as_save_IFS
5935 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5936 if test -n "$ac_ct_OBJDUMP"; then
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5938 $as_echo "$ac_ct_OBJDUMP" >&6; }
5939 else
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941 $as_echo "no" >&6; }
5944 if test "x$ac_ct_OBJDUMP" = x; then
5945 OBJDUMP="false"
5946 else
5947 case $cross_compiling:$ac_tool_warned in
5948 yes:)
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5951 ac_tool_warned=yes ;;
5952 esac
5953 OBJDUMP=$ac_ct_OBJDUMP
5955 else
5956 OBJDUMP="$ac_cv_prog_OBJDUMP"
5959 test -z "$OBJDUMP" && OBJDUMP=objdump
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5970 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5971 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5972 $as_echo_n "(cached) " >&6
5973 else
5974 lt_cv_file_magic_cmd='$MAGIC_CMD'
5975 lt_cv_file_magic_test_file=
5976 lt_cv_deplibs_check_method='unknown'
5977 # Need to set the preceding variable on all platforms that support
5978 # interlibrary dependencies.
5979 # 'none' -- dependencies not supported.
5980 # `unknown' -- same as none, but documents that we really don't know.
5981 # 'pass_all' -- all dependencies passed with no checks.
5982 # 'test_compile' -- check by making test program.
5983 # 'file_magic [[regex]]' -- check by looking for files in library path
5984 # which responds to the $file_magic_cmd with a given extended regex.
5985 # If you have `file' or equivalent on your system and you're not sure
5986 # whether `pass_all' will *always* work, you probably want this one.
5988 case $host_os in
5989 aix[4-9]*)
5990 lt_cv_deplibs_check_method=pass_all
5993 beos*)
5994 lt_cv_deplibs_check_method=pass_all
5997 bsdi[45]*)
5998 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5999 lt_cv_file_magic_cmd='/usr/bin/file -L'
6000 lt_cv_file_magic_test_file=/shlib/libc.so
6003 cygwin*)
6004 # func_win32_libid is a shell function defined in ltmain.sh
6005 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6006 lt_cv_file_magic_cmd='func_win32_libid'
6009 mingw* | pw32*)
6010 # Base MSYS/MinGW do not provide the 'file' command needed by
6011 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6012 # unless we find 'file', for example because we are cross-compiling.
6013 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6014 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6015 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6016 lt_cv_file_magic_cmd='func_win32_libid'
6017 else
6018 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6019 lt_cv_file_magic_cmd='$OBJDUMP -f'
6023 cegcc*)
6024 # use the weaker test based on 'objdump'. See mingw*.
6025 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6026 lt_cv_file_magic_cmd='$OBJDUMP -f'
6029 darwin* | rhapsody*)
6030 lt_cv_deplibs_check_method=pass_all
6033 freebsd* | dragonfly*)
6034 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6035 case $host_cpu in
6036 i*86 )
6037 # Not sure whether the presence of OpenBSD here was a mistake.
6038 # Let's accept both of them until this is cleared up.
6039 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6040 lt_cv_file_magic_cmd=/usr/bin/file
6041 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6043 esac
6044 else
6045 lt_cv_deplibs_check_method=pass_all
6049 gnu*)
6050 lt_cv_deplibs_check_method=pass_all
6053 haiku*)
6054 lt_cv_deplibs_check_method=pass_all
6057 hpux10.20* | hpux11*)
6058 lt_cv_file_magic_cmd=/usr/bin/file
6059 case $host_cpu in
6060 ia64*)
6061 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6062 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6064 hppa*64*)
6065 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]'
6066 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6069 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6070 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6072 esac
6075 interix[3-9]*)
6076 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6077 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6080 irix5* | irix6* | nonstopux*)
6081 case $LD in
6082 *-32|*"-32 ") libmagic=32-bit;;
6083 *-n32|*"-n32 ") libmagic=N32;;
6084 *-64|*"-64 ") libmagic=64-bit;;
6085 *) libmagic=never-match;;
6086 esac
6087 lt_cv_deplibs_check_method=pass_all
6090 # This must be Linux ELF.
6091 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6092 lt_cv_deplibs_check_method=pass_all
6095 netbsd*)
6096 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6097 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6098 else
6099 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6103 newos6*)
6104 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6105 lt_cv_file_magic_cmd=/usr/bin/file
6106 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6109 *nto* | *qnx*)
6110 lt_cv_deplibs_check_method=pass_all
6113 openbsd*)
6114 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6115 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6116 else
6117 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6121 osf3* | osf4* | osf5*)
6122 lt_cv_deplibs_check_method=pass_all
6125 rdos*)
6126 lt_cv_deplibs_check_method=pass_all
6129 solaris*)
6130 lt_cv_deplibs_check_method=pass_all
6133 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6134 lt_cv_deplibs_check_method=pass_all
6137 sysv4 | sysv4.3*)
6138 case $host_vendor in
6139 motorola)
6140 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]'
6141 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6143 ncr)
6144 lt_cv_deplibs_check_method=pass_all
6146 sequent)
6147 lt_cv_file_magic_cmd='/bin/file'
6148 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6150 sni)
6151 lt_cv_file_magic_cmd='/bin/file'
6152 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6153 lt_cv_file_magic_test_file=/lib/libc.so
6155 siemens)
6156 lt_cv_deplibs_check_method=pass_all
6159 lt_cv_deplibs_check_method=pass_all
6161 esac
6164 tpf*)
6165 lt_cv_deplibs_check_method=pass_all
6167 esac
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6171 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6172 file_magic_cmd=$lt_cv_file_magic_cmd
6173 deplibs_check_method=$lt_cv_deplibs_check_method
6174 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6187 if test -n "$ac_tool_prefix"; then
6188 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6189 set dummy ${ac_tool_prefix}ar; ac_word=$2
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6191 $as_echo_n "checking for $ac_word... " >&6; }
6192 if test "${ac_cv_prog_AR+set}" = set; then :
6193 $as_echo_n "(cached) " >&6
6194 else
6195 if test -n "$AR"; then
6196 ac_cv_prog_AR="$AR" # Let the user override the test.
6197 else
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 for as_dir in $PATH
6201 IFS=$as_save_IFS
6202 test -z "$as_dir" && as_dir=.
6203 for ac_exec_ext in '' $ac_executable_extensions; do
6204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6205 ac_cv_prog_AR="${ac_tool_prefix}ar"
6206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6207 break 2
6209 done
6210 done
6211 IFS=$as_save_IFS
6215 AR=$ac_cv_prog_AR
6216 if test -n "$AR"; then
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6218 $as_echo "$AR" >&6; }
6219 else
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6221 $as_echo "no" >&6; }
6226 if test -z "$ac_cv_prog_AR"; then
6227 ac_ct_AR=$AR
6228 # Extract the first word of "ar", so it can be a program name with args.
6229 set dummy ar; ac_word=$2
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6231 $as_echo_n "checking for $ac_word... " >&6; }
6232 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6233 $as_echo_n "(cached) " >&6
6234 else
6235 if test -n "$ac_ct_AR"; then
6236 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6237 else
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 for as_dir in $PATH
6241 IFS=$as_save_IFS
6242 test -z "$as_dir" && as_dir=.
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6245 ac_cv_prog_ac_ct_AR="ar"
6246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6247 break 2
6249 done
6250 done
6251 IFS=$as_save_IFS
6255 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6256 if test -n "$ac_ct_AR"; then
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6258 $as_echo "$ac_ct_AR" >&6; }
6259 else
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261 $as_echo "no" >&6; }
6264 if test "x$ac_ct_AR" = x; then
6265 AR="false"
6266 else
6267 case $cross_compiling:$ac_tool_warned in
6268 yes:)
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6271 ac_tool_warned=yes ;;
6272 esac
6273 AR=$ac_ct_AR
6275 else
6276 AR="$ac_cv_prog_AR"
6279 test -z "$AR" && AR=ar
6280 test -z "$AR_FLAGS" && AR_FLAGS=cru
6292 if test -n "$ac_tool_prefix"; then
6293 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6294 set dummy ${ac_tool_prefix}strip; ac_word=$2
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6296 $as_echo_n "checking for $ac_word... " >&6; }
6297 if test "${ac_cv_prog_STRIP+set}" = set; then :
6298 $as_echo_n "(cached) " >&6
6299 else
6300 if test -n "$STRIP"; then
6301 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6302 else
6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 for as_dir in $PATH
6306 IFS=$as_save_IFS
6307 test -z "$as_dir" && as_dir=.
6308 for ac_exec_ext in '' $ac_executable_extensions; do
6309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6310 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 break 2
6314 done
6315 done
6316 IFS=$as_save_IFS
6320 STRIP=$ac_cv_prog_STRIP
6321 if test -n "$STRIP"; then
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6323 $as_echo "$STRIP" >&6; }
6324 else
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6326 $as_echo "no" >&6; }
6331 if test -z "$ac_cv_prog_STRIP"; then
6332 ac_ct_STRIP=$STRIP
6333 # Extract the first word of "strip", so it can be a program name with args.
6334 set dummy strip; ac_word=$2
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6336 $as_echo_n "checking for $ac_word... " >&6; }
6337 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6338 $as_echo_n "(cached) " >&6
6339 else
6340 if test -n "$ac_ct_STRIP"; then
6341 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6342 else
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344 for as_dir in $PATH
6346 IFS=$as_save_IFS
6347 test -z "$as_dir" && as_dir=.
6348 for ac_exec_ext in '' $ac_executable_extensions; do
6349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6350 ac_cv_prog_ac_ct_STRIP="strip"
6351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6352 break 2
6354 done
6355 done
6356 IFS=$as_save_IFS
6360 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6361 if test -n "$ac_ct_STRIP"; then
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6363 $as_echo "$ac_ct_STRIP" >&6; }
6364 else
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6366 $as_echo "no" >&6; }
6369 if test "x$ac_ct_STRIP" = x; then
6370 STRIP=":"
6371 else
6372 case $cross_compiling:$ac_tool_warned in
6373 yes:)
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6376 ac_tool_warned=yes ;;
6377 esac
6378 STRIP=$ac_ct_STRIP
6380 else
6381 STRIP="$ac_cv_prog_STRIP"
6384 test -z "$STRIP" && STRIP=:
6391 if test -n "$ac_tool_prefix"; then
6392 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6393 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6395 $as_echo_n "checking for $ac_word... " >&6; }
6396 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6397 $as_echo_n "(cached) " >&6
6398 else
6399 if test -n "$RANLIB"; then
6400 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6401 else
6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 for as_dir in $PATH
6405 IFS=$as_save_IFS
6406 test -z "$as_dir" && as_dir=.
6407 for ac_exec_ext in '' $ac_executable_extensions; do
6408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6409 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 break 2
6413 done
6414 done
6415 IFS=$as_save_IFS
6419 RANLIB=$ac_cv_prog_RANLIB
6420 if test -n "$RANLIB"; then
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6422 $as_echo "$RANLIB" >&6; }
6423 else
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6425 $as_echo "no" >&6; }
6430 if test -z "$ac_cv_prog_RANLIB"; then
6431 ac_ct_RANLIB=$RANLIB
6432 # Extract the first word of "ranlib", so it can be a program name with args.
6433 set dummy ranlib; ac_word=$2
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6435 $as_echo_n "checking for $ac_word... " >&6; }
6436 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6437 $as_echo_n "(cached) " >&6
6438 else
6439 if test -n "$ac_ct_RANLIB"; then
6440 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6441 else
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 for as_dir in $PATH
6445 IFS=$as_save_IFS
6446 test -z "$as_dir" && as_dir=.
6447 for ac_exec_ext in '' $ac_executable_extensions; do
6448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6449 ac_cv_prog_ac_ct_RANLIB="ranlib"
6450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6451 break 2
6453 done
6454 done
6455 IFS=$as_save_IFS
6459 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6460 if test -n "$ac_ct_RANLIB"; then
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6462 $as_echo "$ac_ct_RANLIB" >&6; }
6463 else
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465 $as_echo "no" >&6; }
6468 if test "x$ac_ct_RANLIB" = x; then
6469 RANLIB=":"
6470 else
6471 case $cross_compiling:$ac_tool_warned in
6472 yes:)
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6475 ac_tool_warned=yes ;;
6476 esac
6477 RANLIB=$ac_ct_RANLIB
6479 else
6480 RANLIB="$ac_cv_prog_RANLIB"
6483 test -z "$RANLIB" && RANLIB=:
6490 # Determine commands to create old-style static archives.
6491 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6492 old_postinstall_cmds='chmod 644 $oldlib'
6493 old_postuninstall_cmds=
6495 if test -n "$RANLIB"; then
6496 case $host_os in
6497 openbsd*)
6498 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6501 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6503 esac
6504 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6507 case $host_os in
6508 darwin*)
6509 lock_old_archive_extraction=yes ;;
6511 lock_old_archive_extraction=no ;;
6512 esac
6552 # If no C compiler was specified, use CC.
6553 LTCC=${LTCC-"$CC"}
6555 # If no C compiler flags were specified, use CFLAGS.
6556 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6558 # Allow CC to be a program name with arguments.
6559 compiler=$CC
6562 # Check for command to grab the raw symbol name followed by C symbol from nm.
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6564 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6565 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6566 $as_echo_n "(cached) " >&6
6567 else
6569 # These are sane defaults that work on at least a few old systems.
6570 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6572 # Character class describing NM global symbol codes.
6573 symcode='[BCDEGRST]'
6575 # Regexp to match symbols that can be accessed directly from C.
6576 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6578 # Define system-specific variables.
6579 case $host_os in
6580 aix*)
6581 symcode='[BCDT]'
6583 cygwin* | mingw* | pw32* | cegcc*)
6584 symcode='[ABCDGISTW]'
6586 hpux*)
6587 if test "$host_cpu" = ia64; then
6588 symcode='[ABCDEGRST]'
6591 irix* | nonstopux*)
6592 symcode='[BCDEGRST]'
6594 osf*)
6595 symcode='[BCDEGQRST]'
6597 solaris*)
6598 symcode='[BDRT]'
6600 sco3.2v5*)
6601 symcode='[DT]'
6603 sysv4.2uw2*)
6604 symcode='[DT]'
6606 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6607 symcode='[ABDT]'
6609 sysv4)
6610 symcode='[DFNSTU]'
6612 esac
6614 # If we're using GNU nm, then use its standard symbol codes.
6615 case `$NM -V 2>&1` in
6616 *GNU* | *'with BFD'*)
6617 symcode='[ABCDGIRSTW]' ;;
6618 esac
6620 # Transform an extracted symbol line into a proper C declaration.
6621 # Some systems (esp. on ia64) link data and code symbols differently,
6622 # so use this general approach.
6623 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6625 # Transform an extracted symbol line into symbol name and symbol address
6626 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6627 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'"
6629 # Handle CRLF in mingw tool chain
6630 opt_cr=
6631 case $build_os in
6632 mingw*)
6633 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6635 esac
6637 # Try without a prefix underscore, then with it.
6638 for ac_symprfx in "" "_"; do
6640 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6641 symxfrm="\\1 $ac_symprfx\\2 \\2"
6643 # Write the raw and C identifiers.
6644 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6645 # Fake it for dumpbin and say T for any non-static function
6646 # and D for any global variable.
6647 # Also find C++ and __fastcall symbols from MSVC++,
6648 # which start with @ or ?.
6649 lt_cv_sys_global_symbol_pipe="$AWK '"\
6650 " {last_section=section; section=\$ 3};"\
6651 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6652 " \$ 0!~/External *\|/{next};"\
6653 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6654 " {if(hide[section]) next};"\
6655 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6656 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6657 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6658 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6659 " ' prfx=^$ac_symprfx"
6660 else
6661 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6664 # Check to see that the pipe works correctly.
6665 pipe_works=no
6667 rm -f conftest*
6668 cat > conftest.$ac_ext <<_LT_EOF
6669 #ifdef __cplusplus
6670 extern "C" {
6671 #endif
6672 char nm_test_var;
6673 void nm_test_func(void);
6674 void nm_test_func(void){}
6675 #ifdef __cplusplus
6677 #endif
6678 int main(){nm_test_var='a';nm_test_func();return(0);}
6679 _LT_EOF
6681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6682 (eval $ac_compile) 2>&5
6683 ac_status=$?
6684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6685 test $ac_status = 0; }; then
6686 # Now try to grab the symbols.
6687 nlist=conftest.nm
6688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6689 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6690 ac_status=$?
6691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6692 test $ac_status = 0; } && test -s "$nlist"; then
6693 # Try sorting and uniquifying the output.
6694 if sort "$nlist" | uniq > "$nlist"T; then
6695 mv -f "$nlist"T "$nlist"
6696 else
6697 rm -f "$nlist"T
6700 # Make sure that we snagged all the symbols we need.
6701 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6702 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6703 cat <<_LT_EOF > conftest.$ac_ext
6704 #ifdef __cplusplus
6705 extern "C" {
6706 #endif
6708 _LT_EOF
6709 # Now generate the symbol file.
6710 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6712 cat <<_LT_EOF >> conftest.$ac_ext
6714 /* The mapping between symbol names and symbols. */
6715 const struct {
6716 const char *name;
6717 void *address;
6719 lt__PROGRAM__LTX_preloaded_symbols[] =
6721 { "@PROGRAM@", (void *) 0 },
6722 _LT_EOF
6723 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6724 cat <<\_LT_EOF >> conftest.$ac_ext
6725 {0, (void *) 0}
6728 /* This works around a problem in FreeBSD linker */
6729 #ifdef FREEBSD_WORKAROUND
6730 static const void *lt_preloaded_setup() {
6731 return lt__PROGRAM__LTX_preloaded_symbols;
6733 #endif
6735 #ifdef __cplusplus
6737 #endif
6738 _LT_EOF
6739 # Now try linking the two files.
6740 mv conftest.$ac_objext conftstm.$ac_objext
6741 lt_save_LIBS="$LIBS"
6742 lt_save_CFLAGS="$CFLAGS"
6743 LIBS="conftstm.$ac_objext"
6744 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6746 (eval $ac_link) 2>&5
6747 ac_status=$?
6748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6749 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6750 pipe_works=yes
6752 LIBS="$lt_save_LIBS"
6753 CFLAGS="$lt_save_CFLAGS"
6754 else
6755 echo "cannot find nm_test_func in $nlist" >&5
6757 else
6758 echo "cannot find nm_test_var in $nlist" >&5
6760 else
6761 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6763 else
6764 echo "$progname: failed program was:" >&5
6765 cat conftest.$ac_ext >&5
6767 rm -rf conftest* conftst*
6769 # Do not use the global_symbol_pipe unless it works.
6770 if test "$pipe_works" = yes; then
6771 break
6772 else
6773 lt_cv_sys_global_symbol_pipe=
6775 done
6779 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6780 lt_cv_sys_global_symbol_to_cdecl=
6782 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6784 $as_echo "failed" >&6; }
6785 else
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6787 $as_echo "ok" >&6; }
6812 # Check whether --enable-libtool-lock was given.
6813 if test "${enable_libtool_lock+set}" = set; then :
6814 enableval=$enable_libtool_lock;
6817 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6819 # Some flags need to be propagated to the compiler or linker for good
6820 # libtool support.
6821 case $host in
6822 ia64-*-hpux*)
6823 # Find out which ABI we are using.
6824 echo 'int i;' > conftest.$ac_ext
6825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6826 (eval $ac_compile) 2>&5
6827 ac_status=$?
6828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6829 test $ac_status = 0; }; then
6830 case `/usr/bin/file conftest.$ac_objext` in
6831 *ELF-32*)
6832 HPUX_IA64_MODE="32"
6834 *ELF-64*)
6835 HPUX_IA64_MODE="64"
6837 esac
6839 rm -rf conftest*
6841 *-*-irix6*)
6842 # Find out which ABI we are using.
6843 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6845 (eval $ac_compile) 2>&5
6846 ac_status=$?
6847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6848 test $ac_status = 0; }; then
6849 if test "$lt_cv_prog_gnu_ld" = yes; then
6850 case `/usr/bin/file conftest.$ac_objext` in
6851 *32-bit*)
6852 LD="${LD-ld} -melf32bsmip"
6854 *N32*)
6855 LD="${LD-ld} -melf32bmipn32"
6857 *64-bit*)
6858 LD="${LD-ld} -melf64bmip"
6860 esac
6861 else
6862 case `/usr/bin/file conftest.$ac_objext` in
6863 *32-bit*)
6864 LD="${LD-ld} -32"
6866 *N32*)
6867 LD="${LD-ld} -n32"
6869 *64-bit*)
6870 LD="${LD-ld} -64"
6872 esac
6875 rm -rf conftest*
6878 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6879 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6880 # Find out which ABI we are using.
6881 echo 'int i;' > conftest.$ac_ext
6882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6883 (eval $ac_compile) 2>&5
6884 ac_status=$?
6885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6886 test $ac_status = 0; }; then
6887 case `/usr/bin/file conftest.o` in
6888 *32-bit*)
6889 case $host in
6890 x86_64-*kfreebsd*-gnu)
6891 LD="${LD-ld} -m elf_i386_fbsd"
6893 x86_64-*linux*)
6894 case `/usr/bin/file conftest.o` in
6895 *x86-64*)
6896 LD="${LD-ld} -m elf32_x86_64"
6899 LD="${LD-ld} -m elf_i386"
6901 esac
6903 powerpc64le-*linux*)
6904 LD="${LD-ld} -m elf32lppclinux"
6906 powerpc64-*linux*)
6907 LD="${LD-ld} -m elf32ppclinux"
6909 s390x-*linux*)
6910 LD="${LD-ld} -m elf_s390"
6912 sparc64-*linux*)
6913 LD="${LD-ld} -m elf32_sparc"
6915 esac
6917 *64-bit*)
6918 case $host in
6919 x86_64-*kfreebsd*-gnu)
6920 LD="${LD-ld} -m elf_x86_64_fbsd"
6922 x86_64-*linux*)
6923 LD="${LD-ld} -m elf_x86_64"
6925 powerpcle-*linux*)
6926 LD="${LD-ld} -m elf64lppc"
6928 powerpc-*linux*)
6929 LD="${LD-ld} -m elf64ppc"
6931 s390*-*linux*|s390*-*tpf*)
6932 LD="${LD-ld} -m elf64_s390"
6934 sparc*-*linux*)
6935 LD="${LD-ld} -m elf64_sparc"
6937 esac
6939 esac
6941 rm -rf conftest*
6944 *-*-sco3.2v5*)
6945 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6946 SAVE_CFLAGS="$CFLAGS"
6947 CFLAGS="$CFLAGS -belf"
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6949 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6950 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6951 $as_echo_n "(cached) " >&6
6952 else
6953 ac_ext=c
6954 ac_cpp='$CPP $CPPFLAGS'
6955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6960 /* end confdefs.h. */
6963 main ()
6967 return 0;
6969 _ACEOF
6970 if ac_fn_c_try_link "$LINENO"; then :
6971 lt_cv_cc_needs_belf=yes
6972 else
6973 lt_cv_cc_needs_belf=no
6975 rm -f core conftest.err conftest.$ac_objext \
6976 conftest$ac_exeext conftest.$ac_ext
6977 ac_ext=c
6978 ac_cpp='$CPP $CPPFLAGS'
6979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6985 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6986 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6987 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6988 CFLAGS="$SAVE_CFLAGS"
6991 sparc*-*solaris*)
6992 # Find out which ABI we are using.
6993 echo 'int i;' > conftest.$ac_ext
6994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6995 (eval $ac_compile) 2>&5
6996 ac_status=$?
6997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6998 test $ac_status = 0; }; then
6999 case `/usr/bin/file conftest.o` in
7000 *64-bit*)
7001 case $lt_cv_prog_gnu_ld in
7002 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7004 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7005 LD="${LD-ld} -64"
7008 esac
7010 esac
7012 rm -rf conftest*
7014 esac
7016 need_locks="$enable_libtool_lock"
7019 case $host_os in
7020 rhapsody* | darwin*)
7021 if test -n "$ac_tool_prefix"; then
7022 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7023 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7025 $as_echo_n "checking for $ac_word... " >&6; }
7026 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7027 $as_echo_n "(cached) " >&6
7028 else
7029 if test -n "$DSYMUTIL"; then
7030 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7031 else
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 for as_dir in $PATH
7035 IFS=$as_save_IFS
7036 test -z "$as_dir" && as_dir=.
7037 for ac_exec_ext in '' $ac_executable_extensions; do
7038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7039 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7041 break 2
7043 done
7044 done
7045 IFS=$as_save_IFS
7049 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7050 if test -n "$DSYMUTIL"; then
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7052 $as_echo "$DSYMUTIL" >&6; }
7053 else
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7055 $as_echo "no" >&6; }
7060 if test -z "$ac_cv_prog_DSYMUTIL"; then
7061 ac_ct_DSYMUTIL=$DSYMUTIL
7062 # Extract the first word of "dsymutil", so it can be a program name with args.
7063 set dummy dsymutil; ac_word=$2
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7065 $as_echo_n "checking for $ac_word... " >&6; }
7066 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7067 $as_echo_n "(cached) " >&6
7068 else
7069 if test -n "$ac_ct_DSYMUTIL"; then
7070 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7071 else
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 for as_dir in $PATH
7075 IFS=$as_save_IFS
7076 test -z "$as_dir" && as_dir=.
7077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7079 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7081 break 2
7083 done
7084 done
7085 IFS=$as_save_IFS
7089 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7090 if test -n "$ac_ct_DSYMUTIL"; then
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7092 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7093 else
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7095 $as_echo "no" >&6; }
7098 if test "x$ac_ct_DSYMUTIL" = x; then
7099 DSYMUTIL=":"
7100 else
7101 case $cross_compiling:$ac_tool_warned in
7102 yes:)
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7105 ac_tool_warned=yes ;;
7106 esac
7107 DSYMUTIL=$ac_ct_DSYMUTIL
7109 else
7110 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7113 if test -n "$ac_tool_prefix"; then
7114 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7115 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7117 $as_echo_n "checking for $ac_word... " >&6; }
7118 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7119 $as_echo_n "(cached) " >&6
7120 else
7121 if test -n "$NMEDIT"; then
7122 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7123 else
7124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7125 for as_dir in $PATH
7127 IFS=$as_save_IFS
7128 test -z "$as_dir" && as_dir=.
7129 for ac_exec_ext in '' $ac_executable_extensions; do
7130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7131 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7133 break 2
7135 done
7136 done
7137 IFS=$as_save_IFS
7141 NMEDIT=$ac_cv_prog_NMEDIT
7142 if test -n "$NMEDIT"; then
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7144 $as_echo "$NMEDIT" >&6; }
7145 else
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147 $as_echo "no" >&6; }
7152 if test -z "$ac_cv_prog_NMEDIT"; then
7153 ac_ct_NMEDIT=$NMEDIT
7154 # Extract the first word of "nmedit", so it can be a program name with args.
7155 set dummy nmedit; ac_word=$2
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7157 $as_echo_n "checking for $ac_word... " >&6; }
7158 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7159 $as_echo_n "(cached) " >&6
7160 else
7161 if test -n "$ac_ct_NMEDIT"; then
7162 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7163 else
7164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165 for as_dir in $PATH
7167 IFS=$as_save_IFS
7168 test -z "$as_dir" && as_dir=.
7169 for ac_exec_ext in '' $ac_executable_extensions; do
7170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7171 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7173 break 2
7175 done
7176 done
7177 IFS=$as_save_IFS
7181 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7182 if test -n "$ac_ct_NMEDIT"; then
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7184 $as_echo "$ac_ct_NMEDIT" >&6; }
7185 else
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7187 $as_echo "no" >&6; }
7190 if test "x$ac_ct_NMEDIT" = x; then
7191 NMEDIT=":"
7192 else
7193 case $cross_compiling:$ac_tool_warned in
7194 yes:)
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7197 ac_tool_warned=yes ;;
7198 esac
7199 NMEDIT=$ac_ct_NMEDIT
7201 else
7202 NMEDIT="$ac_cv_prog_NMEDIT"
7205 if test -n "$ac_tool_prefix"; then
7206 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7207 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209 $as_echo_n "checking for $ac_word... " >&6; }
7210 if test "${ac_cv_prog_LIPO+set}" = set; then :
7211 $as_echo_n "(cached) " >&6
7212 else
7213 if test -n "$LIPO"; then
7214 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7215 else
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 for as_dir in $PATH
7219 IFS=$as_save_IFS
7220 test -z "$as_dir" && as_dir=.
7221 for ac_exec_ext in '' $ac_executable_extensions; do
7222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7223 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7225 break 2
7227 done
7228 done
7229 IFS=$as_save_IFS
7233 LIPO=$ac_cv_prog_LIPO
7234 if test -n "$LIPO"; then
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7236 $as_echo "$LIPO" >&6; }
7237 else
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239 $as_echo "no" >&6; }
7244 if test -z "$ac_cv_prog_LIPO"; then
7245 ac_ct_LIPO=$LIPO
7246 # Extract the first word of "lipo", so it can be a program name with args.
7247 set dummy lipo; ac_word=$2
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249 $as_echo_n "checking for $ac_word... " >&6; }
7250 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7251 $as_echo_n "(cached) " >&6
7252 else
7253 if test -n "$ac_ct_LIPO"; then
7254 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7255 else
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 for as_dir in $PATH
7259 IFS=$as_save_IFS
7260 test -z "$as_dir" && as_dir=.
7261 for ac_exec_ext in '' $ac_executable_extensions; do
7262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7263 ac_cv_prog_ac_ct_LIPO="lipo"
7264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7265 break 2
7267 done
7268 done
7269 IFS=$as_save_IFS
7273 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7274 if test -n "$ac_ct_LIPO"; then
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7276 $as_echo "$ac_ct_LIPO" >&6; }
7277 else
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7279 $as_echo "no" >&6; }
7282 if test "x$ac_ct_LIPO" = x; then
7283 LIPO=":"
7284 else
7285 case $cross_compiling:$ac_tool_warned in
7286 yes:)
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7289 ac_tool_warned=yes ;;
7290 esac
7291 LIPO=$ac_ct_LIPO
7293 else
7294 LIPO="$ac_cv_prog_LIPO"
7297 if test -n "$ac_tool_prefix"; then
7298 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7299 set dummy ${ac_tool_prefix}otool; ac_word=$2
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301 $as_echo_n "checking for $ac_word... " >&6; }
7302 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7303 $as_echo_n "(cached) " >&6
7304 else
7305 if test -n "$OTOOL"; then
7306 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7307 else
7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 for as_dir in $PATH
7311 IFS=$as_save_IFS
7312 test -z "$as_dir" && as_dir=.
7313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7315 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7317 break 2
7319 done
7320 done
7321 IFS=$as_save_IFS
7325 OTOOL=$ac_cv_prog_OTOOL
7326 if test -n "$OTOOL"; then
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7328 $as_echo "$OTOOL" >&6; }
7329 else
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331 $as_echo "no" >&6; }
7336 if test -z "$ac_cv_prog_OTOOL"; then
7337 ac_ct_OTOOL=$OTOOL
7338 # Extract the first word of "otool", so it can be a program name with args.
7339 set dummy otool; ac_word=$2
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7341 $as_echo_n "checking for $ac_word... " >&6; }
7342 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7343 $as_echo_n "(cached) " >&6
7344 else
7345 if test -n "$ac_ct_OTOOL"; then
7346 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7347 else
7348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349 for as_dir in $PATH
7351 IFS=$as_save_IFS
7352 test -z "$as_dir" && as_dir=.
7353 for ac_exec_ext in '' $ac_executable_extensions; do
7354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7355 ac_cv_prog_ac_ct_OTOOL="otool"
7356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357 break 2
7359 done
7360 done
7361 IFS=$as_save_IFS
7365 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7366 if test -n "$ac_ct_OTOOL"; then
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7368 $as_echo "$ac_ct_OTOOL" >&6; }
7369 else
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7371 $as_echo "no" >&6; }
7374 if test "x$ac_ct_OTOOL" = x; then
7375 OTOOL=":"
7376 else
7377 case $cross_compiling:$ac_tool_warned in
7378 yes:)
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7381 ac_tool_warned=yes ;;
7382 esac
7383 OTOOL=$ac_ct_OTOOL
7385 else
7386 OTOOL="$ac_cv_prog_OTOOL"
7389 if test -n "$ac_tool_prefix"; then
7390 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7391 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7393 $as_echo_n "checking for $ac_word... " >&6; }
7394 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7395 $as_echo_n "(cached) " >&6
7396 else
7397 if test -n "$OTOOL64"; then
7398 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7399 else
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 for as_dir in $PATH
7403 IFS=$as_save_IFS
7404 test -z "$as_dir" && as_dir=.
7405 for ac_exec_ext in '' $ac_executable_extensions; do
7406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7407 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409 break 2
7411 done
7412 done
7413 IFS=$as_save_IFS
7417 OTOOL64=$ac_cv_prog_OTOOL64
7418 if test -n "$OTOOL64"; then
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7420 $as_echo "$OTOOL64" >&6; }
7421 else
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7428 if test -z "$ac_cv_prog_OTOOL64"; then
7429 ac_ct_OTOOL64=$OTOOL64
7430 # Extract the first word of "otool64", so it can be a program name with args.
7431 set dummy otool64; ac_word=$2
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7433 $as_echo_n "checking for $ac_word... " >&6; }
7434 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7435 $as_echo_n "(cached) " >&6
7436 else
7437 if test -n "$ac_ct_OTOOL64"; then
7438 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7439 else
7440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441 for as_dir in $PATH
7443 IFS=$as_save_IFS
7444 test -z "$as_dir" && as_dir=.
7445 for ac_exec_ext in '' $ac_executable_extensions; do
7446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7447 ac_cv_prog_ac_ct_OTOOL64="otool64"
7448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7449 break 2
7451 done
7452 done
7453 IFS=$as_save_IFS
7457 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7458 if test -n "$ac_ct_OTOOL64"; then
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7460 $as_echo "$ac_ct_OTOOL64" >&6; }
7461 else
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7463 $as_echo "no" >&6; }
7466 if test "x$ac_ct_OTOOL64" = x; then
7467 OTOOL64=":"
7468 else
7469 case $cross_compiling:$ac_tool_warned in
7470 yes:)
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7473 ac_tool_warned=yes ;;
7474 esac
7475 OTOOL64=$ac_ct_OTOOL64
7477 else
7478 OTOOL64="$ac_cv_prog_OTOOL64"
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7508 $as_echo_n "checking for -single_module linker flag... " >&6; }
7509 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7510 $as_echo_n "(cached) " >&6
7511 else
7512 lt_cv_apple_cc_single_mod=no
7513 if test -z "${LT_MULTI_MODULE}"; then
7514 # By default we will add the -single_module flag. You can override
7515 # by either setting the environment variable LT_MULTI_MODULE
7516 # non-empty at configure time, or by adding -multi_module to the
7517 # link flags.
7518 rm -rf libconftest.dylib*
7519 echo "int foo(void){return 1;}" > conftest.c
7520 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7521 -dynamiclib -Wl,-single_module conftest.c" >&5
7522 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7523 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7524 _lt_result=$?
7525 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7526 lt_cv_apple_cc_single_mod=yes
7527 else
7528 cat conftest.err >&5
7530 rm -rf libconftest.dylib*
7531 rm -f conftest.*
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7535 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7537 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7538 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7539 $as_echo_n "(cached) " >&6
7540 else
7541 lt_cv_ld_exported_symbols_list=no
7542 save_LDFLAGS=$LDFLAGS
7543 echo "_main" > conftest.sym
7544 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7546 /* end confdefs.h. */
7549 main ()
7553 return 0;
7555 _ACEOF
7556 if ac_fn_c_try_link "$LINENO"; then :
7557 lt_cv_ld_exported_symbols_list=yes
7558 else
7559 lt_cv_ld_exported_symbols_list=no
7561 rm -f core conftest.err conftest.$ac_objext \
7562 conftest$ac_exeext conftest.$ac_ext
7563 LDFLAGS="$save_LDFLAGS"
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7567 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7569 $as_echo_n "checking for -force_load linker flag... " >&6; }
7570 if test "${lt_cv_ld_force_load+set}" = set; then :
7571 $as_echo_n "(cached) " >&6
7572 else
7573 lt_cv_ld_force_load=no
7574 cat > conftest.c << _LT_EOF
7575 int forced_loaded() { return 2;}
7576 _LT_EOF
7577 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7578 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7579 echo "$AR cru libconftest.a conftest.o" >&5
7580 $AR cru libconftest.a conftest.o 2>&5
7581 cat > conftest.c << _LT_EOF
7582 int main() { return 0;}
7583 _LT_EOF
7584 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7585 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7586 _lt_result=$?
7587 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7588 lt_cv_ld_force_load=yes
7589 else
7590 cat conftest.err >&5
7592 rm -f conftest.err libconftest.a conftest conftest.c
7593 rm -rf conftest.dSYM
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7597 $as_echo "$lt_cv_ld_force_load" >&6; }
7598 case $host_os in
7599 rhapsody* | darwin1.[012])
7600 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7601 darwin1.*)
7602 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7603 darwin*) # darwin 5.x on
7604 # if running on 10.5 or later, the deployment target defaults
7605 # to the OS version, if on x86, and 10.4, the deployment
7606 # target defaults to 10.4. Don't you love it?
7607 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7608 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7609 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7610 10.[012][,.]*)
7611 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7612 10.*)
7613 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7614 esac
7616 esac
7617 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7618 _lt_dar_single_mod='$single_module'
7620 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7621 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7622 else
7623 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7625 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7626 _lt_dsymutil='~$DSYMUTIL $lib || :'
7627 else
7628 _lt_dsymutil=
7631 esac
7633 ac_ext=c
7634 ac_cpp='$CPP $CPPFLAGS'
7635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7639 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7640 # On Suns, sometimes $CPP names a directory.
7641 if test -n "$CPP" && test -d "$CPP"; then
7642 CPP=
7644 if test -z "$CPP"; then
7645 if test "${ac_cv_prog_CPP+set}" = set; then :
7646 $as_echo_n "(cached) " >&6
7647 else
7648 # Double quotes because CPP needs to be expanded
7649 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7651 ac_preproc_ok=false
7652 for ac_c_preproc_warn_flag in '' yes
7654 # Use a header file that comes with gcc, so configuring glibc
7655 # with a fresh cross-compiler works.
7656 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7657 # <limits.h> exists even on freestanding compilers.
7658 # On the NeXT, cc -E runs the code through the compiler's parser,
7659 # not just through cpp. "Syntax error" is here to catch this case.
7660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7661 /* end confdefs.h. */
7662 #ifdef __STDC__
7663 # include <limits.h>
7664 #else
7665 # include <assert.h>
7666 #endif
7667 Syntax error
7668 _ACEOF
7669 if ac_fn_c_try_cpp "$LINENO"; then :
7671 else
7672 # Broken: fails on valid input.
7673 continue
7675 rm -f conftest.err conftest.$ac_ext
7677 # OK, works on sane cases. Now check whether nonexistent headers
7678 # can be detected and how.
7679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680 /* end confdefs.h. */
7681 #include <ac_nonexistent.h>
7682 _ACEOF
7683 if ac_fn_c_try_cpp "$LINENO"; then :
7684 # Broken: success on invalid input.
7685 continue
7686 else
7687 # Passes both tests.
7688 ac_preproc_ok=:
7689 break
7691 rm -f conftest.err conftest.$ac_ext
7693 done
7694 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7695 rm -f conftest.err conftest.$ac_ext
7696 if $ac_preproc_ok; then :
7697 break
7700 done
7701 ac_cv_prog_CPP=$CPP
7704 CPP=$ac_cv_prog_CPP
7705 else
7706 ac_cv_prog_CPP=$CPP
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7709 $as_echo "$CPP" >&6; }
7710 ac_preproc_ok=false
7711 for ac_c_preproc_warn_flag in '' yes
7713 # Use a header file that comes with gcc, so configuring glibc
7714 # with a fresh cross-compiler works.
7715 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7716 # <limits.h> exists even on freestanding compilers.
7717 # On the NeXT, cc -E runs the code through the compiler's parser,
7718 # not just through cpp. "Syntax error" is here to catch this case.
7719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h. */
7721 #ifdef __STDC__
7722 # include <limits.h>
7723 #else
7724 # include <assert.h>
7725 #endif
7726 Syntax error
7727 _ACEOF
7728 if ac_fn_c_try_cpp "$LINENO"; then :
7730 else
7731 # Broken: fails on valid input.
7732 continue
7734 rm -f conftest.err conftest.$ac_ext
7736 # OK, works on sane cases. Now check whether nonexistent headers
7737 # can be detected and how.
7738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7739 /* end confdefs.h. */
7740 #include <ac_nonexistent.h>
7741 _ACEOF
7742 if ac_fn_c_try_cpp "$LINENO"; then :
7743 # Broken: success on invalid input.
7744 continue
7745 else
7746 # Passes both tests.
7747 ac_preproc_ok=:
7748 break
7750 rm -f conftest.err conftest.$ac_ext
7752 done
7753 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7754 rm -f conftest.err conftest.$ac_ext
7755 if $ac_preproc_ok; then :
7757 else
7758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7760 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7761 See \`config.log' for more details." "$LINENO" 5; }
7764 ac_ext=c
7765 ac_cpp='$CPP $CPPFLAGS'
7766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7772 $as_echo_n "checking for ANSI C header files... " >&6; }
7773 if test "${ac_cv_header_stdc+set}" = set; then :
7774 $as_echo_n "(cached) " >&6
7775 else
7776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h. */
7778 #include <stdlib.h>
7779 #include <stdarg.h>
7780 #include <string.h>
7781 #include <float.h>
7784 main ()
7788 return 0;
7790 _ACEOF
7791 if ac_fn_c_try_compile "$LINENO"; then :
7792 ac_cv_header_stdc=yes
7793 else
7794 ac_cv_header_stdc=no
7796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7798 if test $ac_cv_header_stdc = yes; then
7799 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7801 /* end confdefs.h. */
7802 #include <string.h>
7804 _ACEOF
7805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7806 $EGREP "memchr" >/dev/null 2>&1; then :
7808 else
7809 ac_cv_header_stdc=no
7811 rm -f conftest*
7815 if test $ac_cv_header_stdc = yes; then
7816 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818 /* end confdefs.h. */
7819 #include <stdlib.h>
7821 _ACEOF
7822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7823 $EGREP "free" >/dev/null 2>&1; then :
7825 else
7826 ac_cv_header_stdc=no
7828 rm -f conftest*
7832 if test $ac_cv_header_stdc = yes; then
7833 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7834 if test "$cross_compiling" = yes; then :
7836 else
7837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7838 /* end confdefs.h. */
7839 #include <ctype.h>
7840 #include <stdlib.h>
7841 #if ((' ' & 0x0FF) == 0x020)
7842 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7843 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7844 #else
7845 # define ISLOWER(c) \
7846 (('a' <= (c) && (c) <= 'i') \
7847 || ('j' <= (c) && (c) <= 'r') \
7848 || ('s' <= (c) && (c) <= 'z'))
7849 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7850 #endif
7852 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7854 main ()
7856 int i;
7857 for (i = 0; i < 256; i++)
7858 if (XOR (islower (i), ISLOWER (i))
7859 || toupper (i) != TOUPPER (i))
7860 return 2;
7861 return 0;
7863 _ACEOF
7864 if ac_fn_c_try_run "$LINENO"; then :
7866 else
7867 ac_cv_header_stdc=no
7869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7870 conftest.$ac_objext conftest.beam conftest.$ac_ext
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7876 $as_echo "$ac_cv_header_stdc" >&6; }
7877 if test $ac_cv_header_stdc = yes; then
7879 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7883 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7884 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7885 inttypes.h stdint.h unistd.h
7886 do :
7887 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7888 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7890 eval as_val=\$$as_ac_Header
7891 if test "x$as_val" = x""yes; then :
7892 cat >>confdefs.h <<_ACEOF
7893 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7894 _ACEOF
7898 done
7901 for ac_header in dlfcn.h
7902 do :
7903 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7905 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7906 cat >>confdefs.h <<_ACEOF
7907 #define HAVE_DLFCN_H 1
7908 _ACEOF
7912 done
7919 # Set options
7923 enable_dlopen=no
7926 enable_win32_dll=no
7929 # Check whether --enable-shared was given.
7930 if test "${enable_shared+set}" = set; then :
7931 enableval=$enable_shared; p=${PACKAGE-default}
7932 case $enableval in
7933 yes) enable_shared=yes ;;
7934 no) enable_shared=no ;;
7936 enable_shared=no
7937 # Look at the argument we got. We use all the common list separators.
7938 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7939 for pkg in $enableval; do
7940 IFS="$lt_save_ifs"
7941 if test "X$pkg" = "X$p"; then
7942 enable_shared=yes
7944 done
7945 IFS="$lt_save_ifs"
7947 esac
7948 else
7949 enable_shared=yes
7960 # Check whether --enable-static was given.
7961 if test "${enable_static+set}" = set; then :
7962 enableval=$enable_static; p=${PACKAGE-default}
7963 case $enableval in
7964 yes) enable_static=yes ;;
7965 no) enable_static=no ;;
7967 enable_static=no
7968 # Look at the argument we got. We use all the common list separators.
7969 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7970 for pkg in $enableval; do
7971 IFS="$lt_save_ifs"
7972 if test "X$pkg" = "X$p"; then
7973 enable_static=yes
7975 done
7976 IFS="$lt_save_ifs"
7978 esac
7979 else
7980 enable_static=yes
7992 # Check whether --with-pic was given.
7993 if test "${with_pic+set}" = set; then :
7994 withval=$with_pic; pic_mode="$withval"
7995 else
7996 pic_mode=default
8000 test -z "$pic_mode" && pic_mode=default
8008 # Check whether --enable-fast-install was given.
8009 if test "${enable_fast_install+set}" = set; then :
8010 enableval=$enable_fast_install; p=${PACKAGE-default}
8011 case $enableval in
8012 yes) enable_fast_install=yes ;;
8013 no) enable_fast_install=no ;;
8015 enable_fast_install=no
8016 # Look at the argument we got. We use all the common list separators.
8017 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8018 for pkg in $enableval; do
8019 IFS="$lt_save_ifs"
8020 if test "X$pkg" = "X$p"; then
8021 enable_fast_install=yes
8023 done
8024 IFS="$lt_save_ifs"
8026 esac
8027 else
8028 enable_fast_install=yes
8041 # This can be used to rebuild libtool when needed
8042 LIBTOOL_DEPS="$ltmain"
8044 # Always use our own libtool.
8045 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8072 test -z "$LN_S" && LN_S="ln -s"
8087 if test -n "${ZSH_VERSION+set}" ; then
8088 setopt NO_GLOB_SUBST
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8092 $as_echo_n "checking for objdir... " >&6; }
8093 if test "${lt_cv_objdir+set}" = set; then :
8094 $as_echo_n "(cached) " >&6
8095 else
8096 rm -f .libs 2>/dev/null
8097 mkdir .libs 2>/dev/null
8098 if test -d .libs; then
8099 lt_cv_objdir=.libs
8100 else
8101 # MS-DOS does not allow filenames that begin with a dot.
8102 lt_cv_objdir=_libs
8104 rmdir .libs 2>/dev/null
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8107 $as_echo "$lt_cv_objdir" >&6; }
8108 objdir=$lt_cv_objdir
8114 cat >>confdefs.h <<_ACEOF
8115 #define LT_OBJDIR "$lt_cv_objdir/"
8116 _ACEOF
8121 case $host_os in
8122 aix3*)
8123 # AIX sometimes has problems with the GCC collect2 program. For some
8124 # reason, if we set the COLLECT_NAMES environment variable, the problems
8125 # vanish in a puff of smoke.
8126 if test "X${COLLECT_NAMES+set}" != Xset; then
8127 COLLECT_NAMES=
8128 export COLLECT_NAMES
8131 esac
8133 # Global variables:
8134 ofile=libtool
8135 can_build_shared=yes
8137 # All known linkers require a `.a' archive for static linking (except MSVC,
8138 # which needs '.lib').
8139 libext=a
8141 with_gnu_ld="$lt_cv_prog_gnu_ld"
8143 old_CC="$CC"
8144 old_CFLAGS="$CFLAGS"
8146 # Set sane defaults for various variables
8147 test -z "$CC" && CC=cc
8148 test -z "$LTCC" && LTCC=$CC
8149 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8150 test -z "$LD" && LD=ld
8151 test -z "$ac_objext" && ac_objext=o
8153 for cc_temp in $compiler""; do
8154 case $cc_temp in
8155 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8156 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8157 \-*) ;;
8158 *) break;;
8159 esac
8160 done
8161 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8164 # Only perform the check for file, if the check method requires it
8165 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8166 case $deplibs_check_method in
8167 file_magic*)
8168 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8170 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8171 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8172 $as_echo_n "(cached) " >&6
8173 else
8174 case $MAGIC_CMD in
8175 [\\/*] | ?:[\\/]*)
8176 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8179 lt_save_MAGIC_CMD="$MAGIC_CMD"
8180 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8181 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8182 for ac_dir in $ac_dummy; do
8183 IFS="$lt_save_ifs"
8184 test -z "$ac_dir" && ac_dir=.
8185 if test -f $ac_dir/${ac_tool_prefix}file; then
8186 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8187 if test -n "$file_magic_test_file"; then
8188 case $deplibs_check_method in
8189 "file_magic "*)
8190 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8191 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8192 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8193 $EGREP "$file_magic_regex" > /dev/null; then
8195 else
8196 cat <<_LT_EOF 1>&2
8198 *** Warning: the command libtool uses to detect shared libraries,
8199 *** $file_magic_cmd, produces output that libtool cannot recognize.
8200 *** The result is that libtool may fail to recognize shared libraries
8201 *** as such. This will affect the creation of libtool libraries that
8202 *** depend on shared libraries, but programs linked with such libtool
8203 *** libraries will work regardless of this problem. Nevertheless, you
8204 *** may want to report the problem to your system manager and/or to
8205 *** bug-libtool@gnu.org
8207 _LT_EOF
8208 fi ;;
8209 esac
8211 break
8213 done
8214 IFS="$lt_save_ifs"
8215 MAGIC_CMD="$lt_save_MAGIC_CMD"
8217 esac
8220 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8221 if test -n "$MAGIC_CMD"; then
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8223 $as_echo "$MAGIC_CMD" >&6; }
8224 else
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226 $as_echo "no" >&6; }
8233 if test -z "$lt_cv_path_MAGIC_CMD"; then
8234 if test -n "$ac_tool_prefix"; then
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8236 $as_echo_n "checking for file... " >&6; }
8237 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8238 $as_echo_n "(cached) " >&6
8239 else
8240 case $MAGIC_CMD in
8241 [\\/*] | ?:[\\/]*)
8242 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8245 lt_save_MAGIC_CMD="$MAGIC_CMD"
8246 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8247 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8248 for ac_dir in $ac_dummy; do
8249 IFS="$lt_save_ifs"
8250 test -z "$ac_dir" && ac_dir=.
8251 if test -f $ac_dir/file; then
8252 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8253 if test -n "$file_magic_test_file"; then
8254 case $deplibs_check_method in
8255 "file_magic "*)
8256 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8257 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8258 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8259 $EGREP "$file_magic_regex" > /dev/null; then
8261 else
8262 cat <<_LT_EOF 1>&2
8264 *** Warning: the command libtool uses to detect shared libraries,
8265 *** $file_magic_cmd, produces output that libtool cannot recognize.
8266 *** The result is that libtool may fail to recognize shared libraries
8267 *** as such. This will affect the creation of libtool libraries that
8268 *** depend on shared libraries, but programs linked with such libtool
8269 *** libraries will work regardless of this problem. Nevertheless, you
8270 *** may want to report the problem to your system manager and/or to
8271 *** bug-libtool@gnu.org
8273 _LT_EOF
8274 fi ;;
8275 esac
8277 break
8279 done
8280 IFS="$lt_save_ifs"
8281 MAGIC_CMD="$lt_save_MAGIC_CMD"
8283 esac
8286 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8287 if test -n "$MAGIC_CMD"; then
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8289 $as_echo "$MAGIC_CMD" >&6; }
8290 else
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292 $as_echo "no" >&6; }
8296 else
8297 MAGIC_CMD=:
8303 esac
8305 # Use C for the default configuration in the libtool script
8307 lt_save_CC="$CC"
8308 ac_ext=c
8309 ac_cpp='$CPP $CPPFLAGS'
8310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8315 # Source file extension for C test sources.
8316 ac_ext=c
8318 # Object file extension for compiled C test sources.
8319 objext=o
8320 objext=$objext
8322 # Code to be used in simple compile tests
8323 lt_simple_compile_test_code="int some_variable = 0;"
8325 # Code to be used in simple link tests
8326 lt_simple_link_test_code='int main(){return(0);}'
8334 # If no C compiler was specified, use CC.
8335 LTCC=${LTCC-"$CC"}
8337 # If no C compiler flags were specified, use CFLAGS.
8338 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8340 # Allow CC to be a program name with arguments.
8341 compiler=$CC
8343 # Save the default compiler, since it gets overwritten when the other
8344 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8345 compiler_DEFAULT=$CC
8347 # save warnings/boilerplate of simple test code
8348 ac_outfile=conftest.$ac_objext
8349 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8350 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8351 _lt_compiler_boilerplate=`cat conftest.err`
8352 $RM conftest*
8354 ac_outfile=conftest.$ac_objext
8355 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8356 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8357 _lt_linker_boilerplate=`cat conftest.err`
8358 $RM -r conftest*
8361 ## CAVEAT EMPTOR:
8362 ## There is no encapsulation within the following macros, do not change
8363 ## the running order or otherwise move them around unless you know exactly
8364 ## what you are doing...
8365 if test -n "$compiler"; then
8367 lt_prog_compiler_no_builtin_flag=
8369 if test "$GCC" = yes; then
8370 case $cc_basename in
8371 nvcc*)
8372 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8374 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8375 esac
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8378 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8379 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8380 $as_echo_n "(cached) " >&6
8381 else
8382 lt_cv_prog_compiler_rtti_exceptions=no
8383 ac_outfile=conftest.$ac_objext
8384 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8385 lt_compiler_flag="-fno-rtti -fno-exceptions"
8386 # Insert the option either (1) after the last *FLAGS variable, or
8387 # (2) before a word containing "conftest.", or (3) at the end.
8388 # Note that $ac_compile itself does not contain backslashes and begins
8389 # with a dollar sign (not a hyphen), so the echo should work correctly.
8390 # The option is referenced via a variable to avoid confusing sed.
8391 lt_compile=`echo "$ac_compile" | $SED \
8392 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8393 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8394 -e 's:$: $lt_compiler_flag:'`
8395 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8396 (eval "$lt_compile" 2>conftest.err)
8397 ac_status=$?
8398 cat conftest.err >&5
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 if (exit $ac_status) && test -s "$ac_outfile"; then
8401 # The compiler can only warn and ignore the option if not recognized
8402 # So say no if there are warnings other than the usual output.
8403 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8404 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8405 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8406 lt_cv_prog_compiler_rtti_exceptions=yes
8409 $RM conftest*
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8413 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8415 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8416 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8417 else
8428 lt_prog_compiler_wl=
8429 lt_prog_compiler_pic=
8430 lt_prog_compiler_static=
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8433 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8435 if test "$GCC" = yes; then
8436 lt_prog_compiler_wl='-Wl,'
8437 lt_prog_compiler_static='-static'
8439 case $host_os in
8440 aix*)
8441 # All AIX code is PIC.
8442 if test "$host_cpu" = ia64; then
8443 # AIX 5 now supports IA64 processor
8444 lt_prog_compiler_static='-Bstatic'
8446 lt_prog_compiler_pic='-fPIC'
8449 amigaos*)
8450 case $host_cpu in
8451 powerpc)
8452 # see comment about AmigaOS4 .so support
8453 lt_prog_compiler_pic='-fPIC'
8455 m68k)
8456 # FIXME: we need at least 68020 code to build shared libraries, but
8457 # adding the `-m68020' flag to GCC prevents building anything better,
8458 # like `-m68040'.
8459 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8461 esac
8464 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8465 # PIC is the default for these OSes.
8468 mingw* | cygwin* | pw32* | os2* | cegcc*)
8469 # This hack is so that the source file can tell whether it is being
8470 # built for inclusion in a dll (and should export symbols for example).
8471 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8472 # (--disable-auto-import) libraries
8473 lt_prog_compiler_pic='-DDLL_EXPORT'
8476 darwin* | rhapsody*)
8477 # PIC is the default on this platform
8478 # Common symbols not allowed in MH_DYLIB files
8479 lt_prog_compiler_pic='-fno-common'
8482 haiku*)
8483 # PIC is the default for Haiku.
8484 # The "-static" flag exists, but is broken.
8485 lt_prog_compiler_static=
8488 hpux*)
8489 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8490 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8491 # sets the default TLS model and affects inlining.
8492 case $host_cpu in
8493 hppa*64*)
8494 # +Z the default
8497 lt_prog_compiler_pic='-fPIC'
8499 esac
8502 interix[3-9]*)
8503 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8504 # Instead, we relocate shared libraries at runtime.
8507 msdosdjgpp*)
8508 # Just because we use GCC doesn't mean we suddenly get shared libraries
8509 # on systems that don't support them.
8510 lt_prog_compiler_can_build_shared=no
8511 enable_shared=no
8514 *nto* | *qnx*)
8515 # QNX uses GNU C++, but need to define -shared option too, otherwise
8516 # it will coredump.
8517 lt_prog_compiler_pic='-fPIC -shared'
8520 sysv4*MP*)
8521 if test -d /usr/nec; then
8522 lt_prog_compiler_pic=-Kconform_pic
8527 lt_prog_compiler_pic='-fPIC'
8529 esac
8531 case $cc_basename in
8532 nvcc*) # Cuda Compiler Driver 2.2
8533 lt_prog_compiler_wl='-Xlinker '
8534 lt_prog_compiler_pic='-Xcompiler -fPIC'
8536 esac
8537 else
8538 # PORTME Check for flag to pass linker flags through the system compiler.
8539 case $host_os in
8540 aix*)
8541 lt_prog_compiler_wl='-Wl,'
8542 if test "$host_cpu" = ia64; then
8543 # AIX 5 now supports IA64 processor
8544 lt_prog_compiler_static='-Bstatic'
8545 else
8546 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8550 mingw* | cygwin* | pw32* | os2* | cegcc*)
8551 # This hack is so that the source file can tell whether it is being
8552 # built for inclusion in a dll (and should export symbols for example).
8553 lt_prog_compiler_pic='-DDLL_EXPORT'
8556 hpux9* | hpux10* | hpux11*)
8557 lt_prog_compiler_wl='-Wl,'
8558 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8559 # not for PA HP-UX.
8560 case $host_cpu in
8561 hppa*64*|ia64*)
8562 # +Z the default
8565 lt_prog_compiler_pic='+Z'
8567 esac
8568 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8569 lt_prog_compiler_static='${wl}-a ${wl}archive'
8572 irix5* | irix6* | nonstopux*)
8573 lt_prog_compiler_wl='-Wl,'
8574 # PIC (with -KPIC) is the default.
8575 lt_prog_compiler_static='-non_shared'
8578 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8579 case $cc_basename in
8580 # old Intel for x86_64 which still supported -KPIC.
8581 ecc*)
8582 lt_prog_compiler_wl='-Wl,'
8583 lt_prog_compiler_pic='-KPIC'
8584 lt_prog_compiler_static='-static'
8586 # icc used to be incompatible with GCC.
8587 # ICC 10 doesn't accept -KPIC any more.
8588 icc* | ifort*)
8589 lt_prog_compiler_wl='-Wl,'
8590 lt_prog_compiler_pic='-fPIC'
8591 lt_prog_compiler_static='-static'
8593 # Lahey Fortran 8.1.
8594 lf95*)
8595 lt_prog_compiler_wl='-Wl,'
8596 lt_prog_compiler_pic='--shared'
8597 lt_prog_compiler_static='--static'
8599 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8600 # Portland Group compilers (*not* the Pentium gcc compiler,
8601 # which looks to be a dead project)
8602 lt_prog_compiler_wl='-Wl,'
8603 lt_prog_compiler_pic='-fpic'
8604 lt_prog_compiler_static='-Bstatic'
8606 ccc*)
8607 lt_prog_compiler_wl='-Wl,'
8608 # All Alpha code is PIC.
8609 lt_prog_compiler_static='-non_shared'
8611 xl* | bgxl* | bgf* | mpixl*)
8612 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8613 lt_prog_compiler_wl='-Wl,'
8614 lt_prog_compiler_pic='-qpic'
8615 lt_prog_compiler_static='-qstaticlink'
8618 case `$CC -V 2>&1 | sed 5q` in
8619 *Sun\ F* | *Sun*Fortran*)
8620 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8621 lt_prog_compiler_pic='-KPIC'
8622 lt_prog_compiler_static='-Bstatic'
8623 lt_prog_compiler_wl=''
8625 *Sun\ C*)
8626 # Sun C 5.9
8627 lt_prog_compiler_pic='-KPIC'
8628 lt_prog_compiler_static='-Bstatic'
8629 lt_prog_compiler_wl='-Wl,'
8631 esac
8633 esac
8636 newsos6)
8637 lt_prog_compiler_pic='-KPIC'
8638 lt_prog_compiler_static='-Bstatic'
8641 *nto* | *qnx*)
8642 # QNX uses GNU C++, but need to define -shared option too, otherwise
8643 # it will coredump.
8644 lt_prog_compiler_pic='-fPIC -shared'
8647 osf3* | osf4* | osf5*)
8648 lt_prog_compiler_wl='-Wl,'
8649 # All OSF/1 code is PIC.
8650 lt_prog_compiler_static='-non_shared'
8653 rdos*)
8654 lt_prog_compiler_static='-non_shared'
8657 solaris*)
8658 lt_prog_compiler_pic='-KPIC'
8659 lt_prog_compiler_static='-Bstatic'
8660 case $cc_basename in
8661 f77* | f90* | f95*)
8662 lt_prog_compiler_wl='-Qoption ld ';;
8664 lt_prog_compiler_wl='-Wl,';;
8665 esac
8668 sunos4*)
8669 lt_prog_compiler_wl='-Qoption ld '
8670 lt_prog_compiler_pic='-PIC'
8671 lt_prog_compiler_static='-Bstatic'
8674 sysv4 | sysv4.2uw2* | sysv4.3*)
8675 lt_prog_compiler_wl='-Wl,'
8676 lt_prog_compiler_pic='-KPIC'
8677 lt_prog_compiler_static='-Bstatic'
8680 sysv4*MP*)
8681 if test -d /usr/nec ;then
8682 lt_prog_compiler_pic='-Kconform_pic'
8683 lt_prog_compiler_static='-Bstatic'
8687 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8688 lt_prog_compiler_wl='-Wl,'
8689 lt_prog_compiler_pic='-KPIC'
8690 lt_prog_compiler_static='-Bstatic'
8693 unicos*)
8694 lt_prog_compiler_wl='-Wl,'
8695 lt_prog_compiler_can_build_shared=no
8698 uts4*)
8699 lt_prog_compiler_pic='-pic'
8700 lt_prog_compiler_static='-Bstatic'
8704 lt_prog_compiler_can_build_shared=no
8706 esac
8709 case $host_os in
8710 # For platforms which do not support PIC, -DPIC is meaningless:
8711 *djgpp*)
8712 lt_prog_compiler_pic=
8715 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8717 esac
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8719 $as_echo "$lt_prog_compiler_pic" >&6; }
8727 # Check to make sure the PIC flag actually works.
8729 if test -n "$lt_prog_compiler_pic"; then
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8731 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8732 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8733 $as_echo_n "(cached) " >&6
8734 else
8735 lt_cv_prog_compiler_pic_works=no
8736 ac_outfile=conftest.$ac_objext
8737 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8738 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8739 # Insert the option either (1) after the last *FLAGS variable, or
8740 # (2) before a word containing "conftest.", or (3) at the end.
8741 # Note that $ac_compile itself does not contain backslashes and begins
8742 # with a dollar sign (not a hyphen), so the echo should work correctly.
8743 # The option is referenced via a variable to avoid confusing sed.
8744 lt_compile=`echo "$ac_compile" | $SED \
8745 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8746 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8747 -e 's:$: $lt_compiler_flag:'`
8748 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8749 (eval "$lt_compile" 2>conftest.err)
8750 ac_status=$?
8751 cat conftest.err >&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 if (exit $ac_status) && test -s "$ac_outfile"; then
8754 # The compiler can only warn and ignore the option if not recognized
8755 # So say no if there are warnings other than the usual output.
8756 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8757 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8758 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8759 lt_cv_prog_compiler_pic_works=yes
8762 $RM conftest*
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8766 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8768 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8769 case $lt_prog_compiler_pic in
8770 "" | " "*) ;;
8771 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8772 esac
8773 else
8774 lt_prog_compiler_pic=
8775 lt_prog_compiler_can_build_shared=no
8786 # Check to make sure the static flag actually works.
8788 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8790 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8791 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8792 $as_echo_n "(cached) " >&6
8793 else
8794 lt_cv_prog_compiler_static_works=no
8795 save_LDFLAGS="$LDFLAGS"
8796 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8797 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8798 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8799 # The linker can only warn and ignore the option if not recognized
8800 # So say no if there are warnings
8801 if test -s conftest.err; then
8802 # Append any errors to the config.log.
8803 cat conftest.err 1>&5
8804 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8805 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8806 if diff conftest.exp conftest.er2 >/dev/null; then
8807 lt_cv_prog_compiler_static_works=yes
8809 else
8810 lt_cv_prog_compiler_static_works=yes
8813 $RM -r conftest*
8814 LDFLAGS="$save_LDFLAGS"
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8818 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8820 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8822 else
8823 lt_prog_compiler_static=
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8833 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8834 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8835 $as_echo_n "(cached) " >&6
8836 else
8837 lt_cv_prog_compiler_c_o=no
8838 $RM -r conftest 2>/dev/null
8839 mkdir conftest
8840 cd conftest
8841 mkdir out
8842 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8844 lt_compiler_flag="-o out/conftest2.$ac_objext"
8845 # Insert the option either (1) after the last *FLAGS variable, or
8846 # (2) before a word containing "conftest.", or (3) at the end.
8847 # Note that $ac_compile itself does not contain backslashes and begins
8848 # with a dollar sign (not a hyphen), so the echo should work correctly.
8849 lt_compile=`echo "$ac_compile" | $SED \
8850 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8851 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8852 -e 's:$: $lt_compiler_flag:'`
8853 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8854 (eval "$lt_compile" 2>out/conftest.err)
8855 ac_status=$?
8856 cat out/conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8859 then
8860 # The compiler can only warn and ignore the option if not recognized
8861 # So say no if there are warnings
8862 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8863 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8864 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8865 lt_cv_prog_compiler_c_o=yes
8868 chmod u+w . 2>&5
8869 $RM conftest*
8870 # SGI C++ compiler will create directory out/ii_files/ for
8871 # template instantiation
8872 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8873 $RM out/* && rmdir out
8874 cd ..
8875 $RM -r conftest
8876 $RM conftest*
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8880 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8888 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8889 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8890 $as_echo_n "(cached) " >&6
8891 else
8892 lt_cv_prog_compiler_c_o=no
8893 $RM -r conftest 2>/dev/null
8894 mkdir conftest
8895 cd conftest
8896 mkdir out
8897 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8899 lt_compiler_flag="-o out/conftest2.$ac_objext"
8900 # Insert the option either (1) after the last *FLAGS variable, or
8901 # (2) before a word containing "conftest.", or (3) at the end.
8902 # Note that $ac_compile itself does not contain backslashes and begins
8903 # with a dollar sign (not a hyphen), so the echo should work correctly.
8904 lt_compile=`echo "$ac_compile" | $SED \
8905 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8906 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8907 -e 's:$: $lt_compiler_flag:'`
8908 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8909 (eval "$lt_compile" 2>out/conftest.err)
8910 ac_status=$?
8911 cat out/conftest.err >&5
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8914 then
8915 # The compiler can only warn and ignore the option if not recognized
8916 # So say no if there are warnings
8917 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8918 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8919 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8920 lt_cv_prog_compiler_c_o=yes
8923 chmod u+w . 2>&5
8924 $RM conftest*
8925 # SGI C++ compiler will create directory out/ii_files/ for
8926 # template instantiation
8927 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8928 $RM out/* && rmdir out
8929 cd ..
8930 $RM -r conftest
8931 $RM conftest*
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8935 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8940 hard_links="nottested"
8941 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8942 # do not overwrite the value of need_locks provided by the user
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8944 $as_echo_n "checking if we can lock with hard links... " >&6; }
8945 hard_links=yes
8946 $RM conftest*
8947 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8948 touch conftest.a
8949 ln conftest.a conftest.b 2>&5 || hard_links=no
8950 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8952 $as_echo "$hard_links" >&6; }
8953 if test "$hard_links" = no; then
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8955 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8956 need_locks=warn
8958 else
8959 need_locks=no
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8968 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8970 runpath_var=
8971 allow_undefined_flag=
8972 always_export_symbols=no
8973 archive_cmds=
8974 archive_expsym_cmds=
8975 compiler_needs_object=no
8976 enable_shared_with_static_runtimes=no
8977 export_dynamic_flag_spec=
8978 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8979 hardcode_automatic=no
8980 hardcode_direct=no
8981 hardcode_direct_absolute=no
8982 hardcode_libdir_flag_spec=
8983 hardcode_libdir_flag_spec_ld=
8984 hardcode_libdir_separator=
8985 hardcode_minus_L=no
8986 hardcode_shlibpath_var=unsupported
8987 inherit_rpath=no
8988 link_all_deplibs=unknown
8989 module_cmds=
8990 module_expsym_cmds=
8991 old_archive_from_new_cmds=
8992 old_archive_from_expsyms_cmds=
8993 thread_safe_flag_spec=
8994 whole_archive_flag_spec=
8995 # include_expsyms should be a list of space-separated symbols to be *always*
8996 # included in the symbol list
8997 include_expsyms=
8998 # exclude_expsyms can be an extended regexp of symbols to exclude
8999 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9000 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9001 # as well as any symbol that contains `d'.
9002 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9003 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9004 # platforms (ab)use it in PIC code, but their linkers get confused if
9005 # the symbol is explicitly referenced. Since portable code cannot
9006 # rely on this symbol name, it's probably fine to never include it in
9007 # preloaded symbol tables.
9008 # Exclude shared library initialization/finalization symbols.
9009 extract_expsyms_cmds=
9011 case $host_os in
9012 cygwin* | mingw* | pw32* | cegcc*)
9013 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9014 # When not using gcc, we currently assume that we are using
9015 # Microsoft Visual C++.
9016 if test "$GCC" != yes; then
9017 with_gnu_ld=no
9020 interix*)
9021 # we just hope/assume this is gcc and not c89 (= MSVC++)
9022 with_gnu_ld=yes
9024 openbsd*)
9025 with_gnu_ld=no
9027 esac
9029 ld_shlibs=yes
9031 # On some targets, GNU ld is compatible enough with the native linker
9032 # that we're better off using the native interface for both.
9033 lt_use_gnu_ld_interface=no
9034 if test "$with_gnu_ld" = yes; then
9035 case $host_os in
9036 aix*)
9037 # The AIX port of GNU ld has always aspired to compatibility
9038 # with the native linker. However, as the warning in the GNU ld
9039 # block says, versions before 2.19.5* couldn't really create working
9040 # shared libraries, regardless of the interface used.
9041 case `$LD -v 2>&1` in
9042 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9043 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9044 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9046 lt_use_gnu_ld_interface=yes
9048 esac
9051 lt_use_gnu_ld_interface=yes
9053 esac
9056 if test "$lt_use_gnu_ld_interface" = yes; then
9057 # If archive_cmds runs LD, not CC, wlarc should be empty
9058 wlarc='${wl}'
9060 # Set some defaults for GNU ld with shared library support. These
9061 # are reset later if shared libraries are not supported. Putting them
9062 # here allows them to be overridden if necessary.
9063 runpath_var=LD_RUN_PATH
9064 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9065 export_dynamic_flag_spec='${wl}--export-dynamic'
9066 # ancient GNU ld didn't support --whole-archive et. al.
9067 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9068 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9069 else
9070 whole_archive_flag_spec=
9072 supports_anon_versioning=no
9073 case `$LD -v 2>&1` in
9074 *GNU\ gold*) supports_anon_versioning=yes ;;
9075 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9076 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9077 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9078 *\ 2.11.*) ;; # other 2.11 versions
9079 *) supports_anon_versioning=yes ;;
9080 esac
9082 # See if GNU ld supports shared libraries.
9083 case $host_os in
9084 aix[3-9]*)
9085 # On AIX/PPC, the GNU linker is very broken
9086 if test "$host_cpu" != ia64; then
9087 ld_shlibs=no
9088 cat <<_LT_EOF 1>&2
9090 *** Warning: the GNU linker, at least up to release 2.19, is reported
9091 *** to be unable to reliably create shared libraries on AIX.
9092 *** Therefore, libtool is disabling shared libraries support. If you
9093 *** really care for shared libraries, you may want to install binutils
9094 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9095 *** You will then need to restart the configuration process.
9097 _LT_EOF
9101 amigaos*)
9102 case $host_cpu in
9103 powerpc)
9104 # see comment about AmigaOS4 .so support
9105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9106 archive_expsym_cmds=''
9108 m68k)
9109 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)'
9110 hardcode_libdir_flag_spec='-L$libdir'
9111 hardcode_minus_L=yes
9113 esac
9116 beos*)
9117 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9118 allow_undefined_flag=unsupported
9119 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9120 # support --undefined. This deserves some investigation. FIXME
9121 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9122 else
9123 ld_shlibs=no
9127 cygwin* | mingw* | pw32* | cegcc*)
9128 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9129 # as there is no search path for DLLs.
9130 hardcode_libdir_flag_spec='-L$libdir'
9131 export_dynamic_flag_spec='${wl}--export-all-symbols'
9132 allow_undefined_flag=unsupported
9133 always_export_symbols=no
9134 enable_shared_with_static_runtimes=yes
9135 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9137 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9138 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9139 # If the export-symbols file already is a .def file (1st line
9140 # is EXPORTS), use it as is; otherwise, prepend...
9141 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9142 cp $export_symbols $output_objdir/$soname.def;
9143 else
9144 echo EXPORTS > $output_objdir/$soname.def;
9145 cat $export_symbols >> $output_objdir/$soname.def;
9147 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9148 else
9149 ld_shlibs=no
9153 haiku*)
9154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9155 link_all_deplibs=yes
9158 interix[3-9]*)
9159 hardcode_direct=no
9160 hardcode_shlibpath_var=no
9161 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9162 export_dynamic_flag_spec='${wl}-E'
9163 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9164 # Instead, shared libraries are loaded at an image base (0x10000000 by
9165 # default) and relocated if they conflict, which is a slow very memory
9166 # consuming and fragmenting process. To avoid this, we pick a random,
9167 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9168 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9169 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9170 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'
9173 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9174 tmp_diet=no
9175 if test "$host_os" = linux-dietlibc; then
9176 case $cc_basename in
9177 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9178 esac
9180 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9181 && test "$tmp_diet" = no
9182 then
9183 tmp_addflag=' $pic_flag'
9184 tmp_sharedflag='-shared'
9185 case $cc_basename,$host_cpu in
9186 pgcc*) # Portland Group C compiler
9187 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'
9188 tmp_addflag=' $pic_flag'
9190 pgf77* | pgf90* | pgf95* | pgfortran*)
9191 # Portland Group f77 and f90 compilers
9192 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'
9193 tmp_addflag=' $pic_flag -Mnomain' ;;
9194 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9195 tmp_addflag=' -i_dynamic' ;;
9196 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9197 tmp_addflag=' -i_dynamic -nofor_main' ;;
9198 ifc* | ifort*) # Intel Fortran compiler
9199 tmp_addflag=' -nofor_main' ;;
9200 lf95*) # Lahey Fortran 8.1
9201 whole_archive_flag_spec=
9202 tmp_sharedflag='--shared' ;;
9203 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9204 tmp_sharedflag='-qmkshrobj'
9205 tmp_addflag= ;;
9206 nvcc*) # Cuda Compiler Driver 2.2
9207 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'
9208 compiler_needs_object=yes
9210 esac
9211 case `$CC -V 2>&1 | sed 5q` in
9212 *Sun\ C*) # Sun C 5.9
9213 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'
9214 compiler_needs_object=yes
9215 tmp_sharedflag='-G' ;;
9216 *Sun\ F*) # Sun Fortran 8.3
9217 tmp_sharedflag='-G' ;;
9218 esac
9219 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9221 if test "x$supports_anon_versioning" = xyes; then
9222 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9223 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9224 echo "local: *; };" >> $output_objdir/$libname.ver~
9225 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9228 case $cc_basename in
9229 xlf* | bgf* | bgxlf* | mpixlf*)
9230 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9231 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9232 hardcode_libdir_flag_spec=
9233 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9234 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9235 if test "x$supports_anon_versioning" = xyes; then
9236 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9237 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9238 echo "local: *; };" >> $output_objdir/$libname.ver~
9239 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9242 esac
9243 else
9244 ld_shlibs=no
9248 netbsd*)
9249 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9250 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9251 wlarc=
9252 else
9253 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9254 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9258 solaris*)
9259 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9260 ld_shlibs=no
9261 cat <<_LT_EOF 1>&2
9263 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9264 *** create shared libraries on Solaris systems. Therefore, libtool
9265 *** is disabling shared libraries support. We urge you to upgrade GNU
9266 *** binutils to release 2.9.1 or newer. Another option is to modify
9267 *** your PATH or compiler configuration so that the native linker is
9268 *** used, and then restart.
9270 _LT_EOF
9271 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9272 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9273 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9274 else
9275 ld_shlibs=no
9279 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9280 case `$LD -v 2>&1` in
9281 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9282 ld_shlibs=no
9283 cat <<_LT_EOF 1>&2
9285 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9286 *** reliably create shared libraries on SCO systems. Therefore, libtool
9287 *** is disabling shared libraries support. We urge you to upgrade GNU
9288 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9289 *** your PATH or compiler configuration so that the native linker is
9290 *** used, and then restart.
9292 _LT_EOF
9295 # For security reasons, it is highly recommended that you always
9296 # use absolute paths for naming shared libraries, and exclude the
9297 # DT_RUNPATH tag from executables and libraries. But doing so
9298 # requires that you compile everything twice, which is a pain.
9299 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9300 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9301 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9302 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9303 else
9304 ld_shlibs=no
9307 esac
9310 sunos4*)
9311 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9312 wlarc=
9313 hardcode_direct=yes
9314 hardcode_shlibpath_var=no
9318 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9319 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9320 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9321 else
9322 ld_shlibs=no
9325 esac
9327 if test "$ld_shlibs" = no; then
9328 runpath_var=
9329 hardcode_libdir_flag_spec=
9330 export_dynamic_flag_spec=
9331 whole_archive_flag_spec=
9333 else
9334 # PORTME fill in a description of your system's linker (not GNU ld)
9335 case $host_os in
9336 aix3*)
9337 allow_undefined_flag=unsupported
9338 always_export_symbols=yes
9339 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'
9340 # Note: this linker hardcodes the directories in LIBPATH if there
9341 # are no directories specified by -L.
9342 hardcode_minus_L=yes
9343 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9344 # Neither direct hardcoding nor static linking is supported with a
9345 # broken collect2.
9346 hardcode_direct=unsupported
9350 aix[4-9]*)
9351 if test "$host_cpu" = ia64; then
9352 # On IA64, the linker does run time linking by default, so we don't
9353 # have to do anything special.
9354 aix_use_runtimelinking=no
9355 exp_sym_flag='-Bexport'
9356 no_entry_flag=""
9357 else
9358 # If we're using GNU nm, then we don't want the "-C" option.
9359 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9360 # Also, AIX nm treats weak defined symbols like other global
9361 # defined symbols, whereas GNU nm marks them as "W".
9362 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9363 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'
9364 else
9365 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9367 aix_use_runtimelinking=no
9369 # Test if we are trying to use run time linking or normal
9370 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9371 # need to do runtime linking.
9372 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9373 for ld_flag in $LDFLAGS; do
9374 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9375 aix_use_runtimelinking=yes
9376 break
9378 done
9380 esac
9382 exp_sym_flag='-bexport'
9383 no_entry_flag='-bnoentry'
9386 # When large executables or shared objects are built, AIX ld can
9387 # have problems creating the table of contents. If linking a library
9388 # or program results in "error TOC overflow" add -mminimal-toc to
9389 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9390 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9392 archive_cmds=''
9393 hardcode_direct=yes
9394 hardcode_direct_absolute=yes
9395 hardcode_libdir_separator=':'
9396 link_all_deplibs=yes
9397 file_list_spec='${wl}-f,'
9399 if test "$GCC" = yes; then
9400 case $host_os in aix4.[012]|aix4.[012].*)
9401 # We only want to do this on AIX 4.2 and lower, the check
9402 # below for broken collect2 doesn't work under 4.3+
9403 collect2name=`${CC} -print-prog-name=collect2`
9404 if test -f "$collect2name" &&
9405 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9406 then
9407 # We have reworked collect2
9409 else
9410 # We have old collect2
9411 hardcode_direct=unsupported
9412 # It fails to find uninstalled libraries when the uninstalled
9413 # path is not listed in the libpath. Setting hardcode_minus_L
9414 # to unsupported forces relinking
9415 hardcode_minus_L=yes
9416 hardcode_libdir_flag_spec='-L$libdir'
9417 hardcode_libdir_separator=
9420 esac
9421 shared_flag='-shared'
9422 if test "$aix_use_runtimelinking" = yes; then
9423 shared_flag="$shared_flag "'${wl}-G'
9425 else
9426 # not using gcc
9427 if test "$host_cpu" = ia64; then
9428 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9429 # chokes on -Wl,-G. The following line is correct:
9430 shared_flag='-G'
9431 else
9432 if test "$aix_use_runtimelinking" = yes; then
9433 shared_flag='${wl}-G'
9434 else
9435 shared_flag='${wl}-bM:SRE'
9440 export_dynamic_flag_spec='${wl}-bexpall'
9441 # It seems that -bexpall does not export symbols beginning with
9442 # underscore (_), so it is better to generate a list of symbols to export.
9443 always_export_symbols=yes
9444 if test "$aix_use_runtimelinking" = yes; then
9445 # Warning - without using the other runtime loading flags (-brtl),
9446 # -berok will link without error, but may produce a broken library.
9447 allow_undefined_flag='-berok'
9448 # Determine the default libpath from the value encoded in an
9449 # empty executable.
9450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9451 /* end confdefs.h. */
9454 main ()
9458 return 0;
9460 _ACEOF
9461 if ac_fn_c_try_link "$LINENO"; then :
9463 lt_aix_libpath_sed='
9464 /Import File Strings/,/^$/ {
9465 /^0/ {
9466 s/^0 *\(.*\)$/\1/
9470 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9471 # Check for a 64-bit object if we didn't find anything.
9472 if test -z "$aix_libpath"; then
9473 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9476 rm -f core conftest.err conftest.$ac_objext \
9477 conftest$ac_exeext conftest.$ac_ext
9478 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9480 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9481 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"
9482 else
9483 if test "$host_cpu" = ia64; then
9484 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9485 allow_undefined_flag="-z nodefs"
9486 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"
9487 else
9488 # Determine the default libpath from the value encoded in an
9489 # empty executable.
9490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9491 /* end confdefs.h. */
9494 main ()
9498 return 0;
9500 _ACEOF
9501 if ac_fn_c_try_link "$LINENO"; then :
9503 lt_aix_libpath_sed='
9504 /Import File Strings/,/^$/ {
9505 /^0/ {
9506 s/^0 *\(.*\)$/\1/
9510 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9511 # Check for a 64-bit object if we didn't find anything.
9512 if test -z "$aix_libpath"; then
9513 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9516 rm -f core conftest.err conftest.$ac_objext \
9517 conftest$ac_exeext conftest.$ac_ext
9518 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9520 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9521 # Warning - without using the other run time loading flags,
9522 # -berok will link without error, but may produce a broken library.
9523 no_undefined_flag=' ${wl}-bernotok'
9524 allow_undefined_flag=' ${wl}-berok'
9525 if test "$with_gnu_ld" = yes; then
9526 # We only use this code for GNU lds that support --whole-archive.
9527 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9528 else
9529 # Exported symbols can be pulled into shared objects from archives
9530 whole_archive_flag_spec='$convenience'
9532 archive_cmds_need_lc=yes
9533 # This is similar to how AIX traditionally builds its shared libraries.
9534 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'
9539 amigaos*)
9540 case $host_cpu in
9541 powerpc)
9542 # see comment about AmigaOS4 .so support
9543 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9544 archive_expsym_cmds=''
9546 m68k)
9547 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)'
9548 hardcode_libdir_flag_spec='-L$libdir'
9549 hardcode_minus_L=yes
9551 esac
9554 bsdi[45]*)
9555 export_dynamic_flag_spec=-rdynamic
9558 cygwin* | mingw* | pw32* | cegcc*)
9559 # When not using gcc, we currently assume that we are using
9560 # Microsoft Visual C++.
9561 # hardcode_libdir_flag_spec is actually meaningless, as there is
9562 # no search path for DLLs.
9563 hardcode_libdir_flag_spec=' '
9564 allow_undefined_flag=unsupported
9565 # Tell ltmain to make .lib files, not .a files.
9566 libext=lib
9567 # Tell ltmain to make .dll files, not .so files.
9568 shrext_cmds=".dll"
9569 # FIXME: Setting linknames here is a bad hack.
9570 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9571 # The linker will automatically build a .lib file if we build a DLL.
9572 old_archive_from_new_cmds='true'
9573 # FIXME: Should let the user specify the lib program.
9574 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9575 fix_srcfile_path='`cygpath -w "$srcfile"`'
9576 enable_shared_with_static_runtimes=yes
9579 darwin* | rhapsody*)
9582 archive_cmds_need_lc=no
9583 hardcode_direct=no
9584 hardcode_automatic=yes
9585 hardcode_shlibpath_var=unsupported
9586 if test "$lt_cv_ld_force_load" = "yes"; then
9587 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\"`'
9588 else
9589 whole_archive_flag_spec=''
9591 link_all_deplibs=yes
9592 allow_undefined_flag="$_lt_dar_allow_undefined"
9593 case $cc_basename in
9594 ifort*) _lt_dar_can_shared=yes ;;
9595 *) _lt_dar_can_shared=$GCC ;;
9596 esac
9597 if test "$_lt_dar_can_shared" = "yes"; then
9598 output_verbose_link_cmd=func_echo_all
9599 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9600 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9601 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}"
9602 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}"
9604 else
9605 ld_shlibs=no
9610 dgux*)
9611 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9612 hardcode_libdir_flag_spec='-L$libdir'
9613 hardcode_shlibpath_var=no
9616 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9617 # support. Future versions do this automatically, but an explicit c++rt0.o
9618 # does not break anything, and helps significantly (at the cost of a little
9619 # extra space).
9620 freebsd2.2*)
9621 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9622 hardcode_libdir_flag_spec='-R$libdir'
9623 hardcode_direct=yes
9624 hardcode_shlibpath_var=no
9627 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9628 freebsd2.*)
9629 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9630 hardcode_direct=yes
9631 hardcode_minus_L=yes
9632 hardcode_shlibpath_var=no
9635 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9636 freebsd* | dragonfly*)
9637 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9638 hardcode_libdir_flag_spec='-R$libdir'
9639 hardcode_direct=yes
9640 hardcode_shlibpath_var=no
9643 hpux9*)
9644 if test "$GCC" = yes; then
9645 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'
9646 else
9647 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'
9649 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9650 hardcode_libdir_separator=:
9651 hardcode_direct=yes
9653 # hardcode_minus_L: Not really in the search PATH,
9654 # but as the default location of the library.
9655 hardcode_minus_L=yes
9656 export_dynamic_flag_spec='${wl}-E'
9659 hpux10*)
9660 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9661 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9662 else
9663 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9665 if test "$with_gnu_ld" = no; then
9666 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9667 hardcode_libdir_flag_spec_ld='+b $libdir'
9668 hardcode_libdir_separator=:
9669 hardcode_direct=yes
9670 hardcode_direct_absolute=yes
9671 export_dynamic_flag_spec='${wl}-E'
9672 # hardcode_minus_L: Not really in the search PATH,
9673 # but as the default location of the library.
9674 hardcode_minus_L=yes
9678 hpux11*)
9679 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9680 case $host_cpu in
9681 hppa*64*)
9682 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9684 ia64*)
9685 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9688 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9690 esac
9691 else
9692 case $host_cpu in
9693 hppa*64*)
9694 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9696 ia64*)
9697 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9701 # Older versions of the 11.00 compiler do not understand -b yet
9702 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9704 $as_echo_n "checking if $CC understands -b... " >&6; }
9705 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9706 $as_echo_n "(cached) " >&6
9707 else
9708 lt_cv_prog_compiler__b=no
9709 save_LDFLAGS="$LDFLAGS"
9710 LDFLAGS="$LDFLAGS -b"
9711 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9712 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9713 # The linker can only warn and ignore the option if not recognized
9714 # So say no if there are warnings
9715 if test -s conftest.err; then
9716 # Append any errors to the config.log.
9717 cat conftest.err 1>&5
9718 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9719 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9720 if diff conftest.exp conftest.er2 >/dev/null; then
9721 lt_cv_prog_compiler__b=yes
9723 else
9724 lt_cv_prog_compiler__b=yes
9727 $RM -r conftest*
9728 LDFLAGS="$save_LDFLAGS"
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9732 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9734 if test x"$lt_cv_prog_compiler__b" = xyes; then
9735 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9736 else
9737 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9741 esac
9743 if test "$with_gnu_ld" = no; then
9744 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9745 hardcode_libdir_separator=:
9747 case $host_cpu in
9748 hppa*64*|ia64*)
9749 hardcode_direct=no
9750 hardcode_shlibpath_var=no
9753 hardcode_direct=yes
9754 hardcode_direct_absolute=yes
9755 export_dynamic_flag_spec='${wl}-E'
9757 # hardcode_minus_L: Not really in the search PATH,
9758 # but as the default location of the library.
9759 hardcode_minus_L=yes
9761 esac
9765 irix5* | irix6* | nonstopux*)
9766 if test "$GCC" = yes; then
9767 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'
9768 # Try to use the -exported_symbol ld option, if it does not
9769 # work, assume that -exports_file does not work either and
9770 # implicitly export all symbols.
9771 save_LDFLAGS="$LDFLAGS"
9772 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774 /* end confdefs.h. */
9775 int foo(void) {}
9776 _ACEOF
9777 if ac_fn_c_try_link "$LINENO"; then :
9778 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'
9781 rm -f core conftest.err conftest.$ac_objext \
9782 conftest$ac_exeext conftest.$ac_ext
9783 LDFLAGS="$save_LDFLAGS"
9784 else
9785 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'
9786 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'
9788 archive_cmds_need_lc='no'
9789 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9790 hardcode_libdir_separator=:
9791 inherit_rpath=yes
9792 link_all_deplibs=yes
9795 netbsd*)
9796 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9797 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9798 else
9799 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9801 hardcode_libdir_flag_spec='-R$libdir'
9802 hardcode_direct=yes
9803 hardcode_shlibpath_var=no
9806 newsos6)
9807 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9808 hardcode_direct=yes
9809 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9810 hardcode_libdir_separator=:
9811 hardcode_shlibpath_var=no
9814 *nto* | *qnx*)
9817 openbsd*)
9818 if test -f /usr/libexec/ld.so; then
9819 hardcode_direct=yes
9820 hardcode_shlibpath_var=no
9821 hardcode_direct_absolute=yes
9822 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9823 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9824 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9825 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9826 export_dynamic_flag_spec='${wl}-E'
9827 else
9828 case $host_os in
9829 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9830 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9831 hardcode_libdir_flag_spec='-R$libdir'
9834 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9835 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9837 esac
9839 else
9840 ld_shlibs=no
9844 os2*)
9845 hardcode_libdir_flag_spec='-L$libdir'
9846 hardcode_minus_L=yes
9847 allow_undefined_flag=unsupported
9848 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'
9849 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9852 osf3*)
9853 if test "$GCC" = yes; then
9854 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9855 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'
9856 else
9857 allow_undefined_flag=' -expect_unresolved \*'
9858 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'
9860 archive_cmds_need_lc='no'
9861 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9862 hardcode_libdir_separator=:
9865 osf4* | osf5*) # as osf3* with the addition of -msym flag
9866 if test "$GCC" = yes; then
9867 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9868 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'
9869 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9870 else
9871 allow_undefined_flag=' -expect_unresolved \*'
9872 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'
9873 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~
9874 $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'
9876 # Both c and cxx compiler support -rpath directly
9877 hardcode_libdir_flag_spec='-rpath $libdir'
9879 archive_cmds_need_lc='no'
9880 hardcode_libdir_separator=:
9883 solaris*)
9884 no_undefined_flag=' -z defs'
9885 if test "$GCC" = yes; then
9886 wlarc='${wl}'
9887 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9888 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9889 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9890 else
9891 case `$CC -V 2>&1` in
9892 *"Compilers 5.0"*)
9893 wlarc=''
9894 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9895 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9896 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9899 wlarc='${wl}'
9900 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9901 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9902 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9904 esac
9906 hardcode_libdir_flag_spec='-R$libdir'
9907 hardcode_shlibpath_var=no
9908 case $host_os in
9909 solaris2.[0-5] | solaris2.[0-5].*) ;;
9911 # The compiler driver will combine and reorder linker options,
9912 # but understands `-z linker_flag'. GCC discards it without `$wl',
9913 # but is careful enough not to reorder.
9914 # Supported since Solaris 2.6 (maybe 2.5.1?)
9915 if test "$GCC" = yes; then
9916 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9917 else
9918 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9921 esac
9922 link_all_deplibs=yes
9925 sunos4*)
9926 if test "x$host_vendor" = xsequent; then
9927 # Use $CC to link under sequent, because it throws in some extra .o
9928 # files that make .init and .fini sections work.
9929 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9930 else
9931 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9933 hardcode_libdir_flag_spec='-L$libdir'
9934 hardcode_direct=yes
9935 hardcode_minus_L=yes
9936 hardcode_shlibpath_var=no
9939 sysv4)
9940 case $host_vendor in
9941 sni)
9942 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9943 hardcode_direct=yes # is this really true???
9945 siemens)
9946 ## LD is ld it makes a PLAMLIB
9947 ## CC just makes a GrossModule.
9948 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9949 reload_cmds='$CC -r -o $output$reload_objs'
9950 hardcode_direct=no
9952 motorola)
9953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9954 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9956 esac
9957 runpath_var='LD_RUN_PATH'
9958 hardcode_shlibpath_var=no
9961 sysv4.3*)
9962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9963 hardcode_shlibpath_var=no
9964 export_dynamic_flag_spec='-Bexport'
9967 sysv4*MP*)
9968 if test -d /usr/nec; then
9969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9970 hardcode_shlibpath_var=no
9971 runpath_var=LD_RUN_PATH
9972 hardcode_runpath_var=yes
9973 ld_shlibs=yes
9977 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9978 no_undefined_flag='${wl}-z,text'
9979 archive_cmds_need_lc=no
9980 hardcode_shlibpath_var=no
9981 runpath_var='LD_RUN_PATH'
9983 if test "$GCC" = yes; then
9984 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9985 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9986 else
9987 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9988 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9992 sysv5* | sco3.2v5* | sco5v6*)
9993 # Note: We can NOT use -z defs as we might desire, because we do not
9994 # link with -lc, and that would cause any symbols used from libc to
9995 # always be unresolved, which means just about no library would
9996 # ever link correctly. If we're not using GNU ld we use -z text
9997 # though, which does catch some bad symbols but isn't as heavy-handed
9998 # as -z defs.
9999 no_undefined_flag='${wl}-z,text'
10000 allow_undefined_flag='${wl}-z,nodefs'
10001 archive_cmds_need_lc=no
10002 hardcode_shlibpath_var=no
10003 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10004 hardcode_libdir_separator=':'
10005 link_all_deplibs=yes
10006 export_dynamic_flag_spec='${wl}-Bexport'
10007 runpath_var='LD_RUN_PATH'
10009 if test "$GCC" = yes; then
10010 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10011 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10012 else
10013 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10014 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10018 uts4*)
10019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10020 hardcode_libdir_flag_spec='-L$libdir'
10021 hardcode_shlibpath_var=no
10025 ld_shlibs=no
10027 esac
10029 if test x$host_vendor = xsni; then
10030 case $host in
10031 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10032 export_dynamic_flag_spec='${wl}-Blargedynsym'
10034 esac
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10039 $as_echo "$ld_shlibs" >&6; }
10040 test "$ld_shlibs" = no && can_build_shared=no
10042 with_gnu_ld=$with_gnu_ld
10059 # Do we need to explicitly link libc?
10061 case "x$archive_cmds_need_lc" in
10062 x|xyes)
10063 # Assume -lc should be added
10064 archive_cmds_need_lc=yes
10066 if test "$enable_shared" = yes && test "$GCC" = yes; then
10067 case $archive_cmds in
10068 *'~'*)
10069 # FIXME: we may have to deal with multi-command sequences.
10071 '$CC '*)
10072 # Test whether the compiler implicitly links with -lc since on some
10073 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10074 # to ld, don't add -lc before -lgcc.
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10076 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10077 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10078 $as_echo_n "(cached) " >&6
10079 else
10080 $RM conftest*
10081 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10084 (eval $ac_compile) 2>&5
10085 ac_status=$?
10086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10087 test $ac_status = 0; } 2>conftest.err; then
10088 soname=conftest
10089 lib=conftest
10090 libobjs=conftest.$ac_objext
10091 deplibs=
10092 wl=$lt_prog_compiler_wl
10093 pic_flag=$lt_prog_compiler_pic
10094 compiler_flags=-v
10095 linker_flags=-v
10096 verstring=
10097 output_objdir=.
10098 libname=conftest
10099 lt_save_allow_undefined_flag=$allow_undefined_flag
10100 allow_undefined_flag=
10101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10102 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10103 ac_status=$?
10104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10105 test $ac_status = 0; }
10106 then
10107 lt_cv_archive_cmds_need_lc=no
10108 else
10109 lt_cv_archive_cmds_need_lc=yes
10111 allow_undefined_flag=$lt_save_allow_undefined_flag
10112 else
10113 cat conftest.err 1>&5
10115 $RM conftest*
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10119 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10120 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10122 esac
10125 esac
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10284 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10286 if test "$GCC" = yes; then
10287 case $host_os in
10288 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10289 *) lt_awk_arg="/^libraries:/" ;;
10290 esac
10291 case $host_os in
10292 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10293 *) lt_sed_strip_eq="s,=/,/,g" ;;
10294 esac
10295 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10296 case $lt_search_path_spec in
10297 *\;*)
10298 # if the path contains ";" then we assume it to be the separator
10299 # otherwise default to the standard path separator (i.e. ":") - it is
10300 # assumed that no part of a normal pathname contains ";" but that should
10301 # okay in the real world where ";" in dirpaths is itself problematic.
10302 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10305 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10307 esac
10308 # Ok, now we have the path, separated by spaces, we can step through it
10309 # and add multilib dir if necessary.
10310 lt_tmp_lt_search_path_spec=
10311 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10312 for lt_sys_path in $lt_search_path_spec; do
10313 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10314 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10315 else
10316 test -d "$lt_sys_path" && \
10317 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10319 done
10320 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10321 BEGIN {RS=" "; FS="/|\n";} {
10322 lt_foo="";
10323 lt_count=0;
10324 for (lt_i = NF; lt_i > 0; lt_i--) {
10325 if ($lt_i != "" && $lt_i != ".") {
10326 if ($lt_i == "..") {
10327 lt_count++;
10328 } else {
10329 if (lt_count == 0) {
10330 lt_foo="/" $lt_i lt_foo;
10331 } else {
10332 lt_count--;
10337 if (lt_foo != "") { lt_freq[lt_foo]++; }
10338 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10340 # AWK program above erroneously prepends '/' to C:/dos/paths
10341 # for these hosts.
10342 case $host_os in
10343 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10344 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10345 esac
10346 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10347 else
10348 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10350 library_names_spec=
10351 libname_spec='lib$name'
10352 soname_spec=
10353 shrext_cmds=".so"
10354 postinstall_cmds=
10355 postuninstall_cmds=
10356 finish_cmds=
10357 finish_eval=
10358 shlibpath_var=
10359 shlibpath_overrides_runpath=unknown
10360 version_type=none
10361 dynamic_linker="$host_os ld.so"
10362 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10363 need_lib_prefix=unknown
10364 hardcode_into_libs=no
10366 # when you set need_version to no, make sure it does not cause -set_version
10367 # flags to be left without arguments
10368 need_version=unknown
10370 case $host_os in
10371 aix3*)
10372 version_type=linux
10373 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10374 shlibpath_var=LIBPATH
10376 # AIX 3 has no versioning support, so we append a major version to the name.
10377 soname_spec='${libname}${release}${shared_ext}$major'
10380 aix[4-9]*)
10381 version_type=linux
10382 need_lib_prefix=no
10383 need_version=no
10384 hardcode_into_libs=yes
10385 if test "$host_cpu" = ia64; then
10386 # AIX 5 supports IA64
10387 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10388 shlibpath_var=LD_LIBRARY_PATH
10389 else
10390 # With GCC up to 2.95.x, collect2 would create an import file
10391 # for dependence libraries. The import file would start with
10392 # the line `#! .'. This would cause the generated library to
10393 # depend on `.', always an invalid library. This was fixed in
10394 # development snapshots of GCC prior to 3.0.
10395 case $host_os in
10396 aix4 | aix4.[01] | aix4.[01].*)
10397 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10398 echo ' yes '
10399 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10401 else
10402 can_build_shared=no
10405 esac
10406 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10407 # soname into executable. Probably we can add versioning support to
10408 # collect2, so additional links can be useful in future.
10409 if test "$aix_use_runtimelinking" = yes; then
10410 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10411 # instead of lib<name>.a to let people know that these are not
10412 # typical AIX shared libraries.
10413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10414 else
10415 # We preserve .a as extension for shared libraries through AIX4.2
10416 # and later when we are not doing run time linking.
10417 library_names_spec='${libname}${release}.a $libname.a'
10418 soname_spec='${libname}${release}${shared_ext}$major'
10420 shlibpath_var=LIBPATH
10424 amigaos*)
10425 case $host_cpu in
10426 powerpc)
10427 # Since July 2007 AmigaOS4 officially supports .so libraries.
10428 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10431 m68k)
10432 library_names_spec='$libname.ixlibrary $libname.a'
10433 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10434 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'
10436 esac
10439 beos*)
10440 library_names_spec='${libname}${shared_ext}'
10441 dynamic_linker="$host_os ld.so"
10442 shlibpath_var=LIBRARY_PATH
10445 bsdi[45]*)
10446 version_type=linux
10447 need_version=no
10448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10449 soname_spec='${libname}${release}${shared_ext}$major'
10450 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10451 shlibpath_var=LD_LIBRARY_PATH
10452 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10453 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10454 # the default ld.so.conf also contains /usr/contrib/lib and
10455 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10456 # libtool to hard-code these into programs
10459 cygwin* | mingw* | pw32* | cegcc*)
10460 version_type=windows
10461 shrext_cmds=".dll"
10462 need_version=no
10463 need_lib_prefix=no
10465 case $GCC,$host_os in
10466 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10467 library_names_spec='$libname.dll.a'
10468 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10469 postinstall_cmds='base_file=`basename \${file}`~
10470 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10471 dldir=$destdir/`dirname \$dlpath`~
10472 test -d \$dldir || mkdir -p \$dldir~
10473 $install_prog $dir/$dlname \$dldir/$dlname~
10474 chmod a+x \$dldir/$dlname~
10475 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10476 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10478 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10479 dlpath=$dir/\$dldll~
10480 $RM \$dlpath'
10481 shlibpath_overrides_runpath=yes
10483 case $host_os in
10484 cygwin*)
10485 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10486 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10488 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10490 mingw* | cegcc*)
10491 # MinGW DLLs use traditional 'lib' prefix
10492 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10494 pw32*)
10495 # pw32 DLLs use 'pw' prefix rather than 'lib'
10496 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10498 esac
10502 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10504 esac
10505 dynamic_linker='Win32 ld.exe'
10506 # FIXME: first we should search . and the directory the executable is in
10507 shlibpath_var=PATH
10510 darwin* | rhapsody*)
10511 dynamic_linker="$host_os dyld"
10512 version_type=darwin
10513 need_lib_prefix=no
10514 need_version=no
10515 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10516 soname_spec='${libname}${release}${major}$shared_ext'
10517 shlibpath_overrides_runpath=yes
10518 shlibpath_var=DYLD_LIBRARY_PATH
10519 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10521 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10522 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10525 dgux*)
10526 version_type=linux
10527 need_lib_prefix=no
10528 need_version=no
10529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10530 soname_spec='${libname}${release}${shared_ext}$major'
10531 shlibpath_var=LD_LIBRARY_PATH
10534 freebsd* | dragonfly*)
10535 # DragonFly does not have aout. When/if they implement a new
10536 # versioning mechanism, adjust this.
10537 if test -x /usr/bin/objformat; then
10538 objformat=`/usr/bin/objformat`
10539 else
10540 case $host_os in
10541 freebsd[23].*) objformat=aout ;;
10542 *) objformat=elf ;;
10543 esac
10545 version_type=freebsd-$objformat
10546 case $version_type in
10547 freebsd-elf*)
10548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10549 need_version=no
10550 need_lib_prefix=no
10552 freebsd-*)
10553 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10554 need_version=yes
10556 esac
10557 shlibpath_var=LD_LIBRARY_PATH
10558 case $host_os in
10559 freebsd2.*)
10560 shlibpath_overrides_runpath=yes
10562 freebsd3.[01]* | freebsdelf3.[01]*)
10563 shlibpath_overrides_runpath=yes
10564 hardcode_into_libs=yes
10566 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10567 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10568 shlibpath_overrides_runpath=no
10569 hardcode_into_libs=yes
10571 *) # from 4.6 on, and DragonFly
10572 shlibpath_overrides_runpath=yes
10573 hardcode_into_libs=yes
10575 esac
10578 gnu*)
10579 version_type=linux
10580 need_lib_prefix=no
10581 need_version=no
10582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10583 soname_spec='${libname}${release}${shared_ext}$major'
10584 shlibpath_var=LD_LIBRARY_PATH
10585 hardcode_into_libs=yes
10588 haiku*)
10589 version_type=linux
10590 need_lib_prefix=no
10591 need_version=no
10592 dynamic_linker="$host_os runtime_loader"
10593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10594 soname_spec='${libname}${release}${shared_ext}$major'
10595 shlibpath_var=LIBRARY_PATH
10596 shlibpath_overrides_runpath=yes
10597 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10598 hardcode_into_libs=yes
10601 hpux9* | hpux10* | hpux11*)
10602 # Give a soname corresponding to the major version so that dld.sl refuses to
10603 # link against other versions.
10604 version_type=sunos
10605 need_lib_prefix=no
10606 need_version=no
10607 case $host_cpu in
10608 ia64*)
10609 shrext_cmds='.so'
10610 hardcode_into_libs=yes
10611 dynamic_linker="$host_os dld.so"
10612 shlibpath_var=LD_LIBRARY_PATH
10613 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10615 soname_spec='${libname}${release}${shared_ext}$major'
10616 if test "X$HPUX_IA64_MODE" = X32; then
10617 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10618 else
10619 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10621 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10623 hppa*64*)
10624 shrext_cmds='.sl'
10625 hardcode_into_libs=yes
10626 dynamic_linker="$host_os dld.sl"
10627 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10628 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10630 soname_spec='${libname}${release}${shared_ext}$major'
10631 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10632 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10635 shrext_cmds='.sl'
10636 dynamic_linker="$host_os dld.sl"
10637 shlibpath_var=SHLIB_PATH
10638 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10640 soname_spec='${libname}${release}${shared_ext}$major'
10642 esac
10643 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10644 postinstall_cmds='chmod 555 $lib'
10645 # or fails outright, so override atomically:
10646 install_override_mode=555
10649 interix[3-9]*)
10650 version_type=linux
10651 need_lib_prefix=no
10652 need_version=no
10653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10654 soname_spec='${libname}${release}${shared_ext}$major'
10655 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10656 shlibpath_var=LD_LIBRARY_PATH
10657 shlibpath_overrides_runpath=no
10658 hardcode_into_libs=yes
10661 irix5* | irix6* | nonstopux*)
10662 case $host_os in
10663 nonstopux*) version_type=nonstopux ;;
10665 if test "$lt_cv_prog_gnu_ld" = yes; then
10666 version_type=linux
10667 else
10668 version_type=irix
10669 fi ;;
10670 esac
10671 need_lib_prefix=no
10672 need_version=no
10673 soname_spec='${libname}${release}${shared_ext}$major'
10674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10675 case $host_os in
10676 irix5* | nonstopux*)
10677 libsuff= shlibsuff=
10680 case $LD in # libtool.m4 will add one of these switches to LD
10681 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10682 libsuff= shlibsuff= libmagic=32-bit;;
10683 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10684 libsuff=32 shlibsuff=N32 libmagic=N32;;
10685 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10686 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10687 *) libsuff= shlibsuff= libmagic=never-match;;
10688 esac
10690 esac
10691 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10692 shlibpath_overrides_runpath=no
10693 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10694 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10695 hardcode_into_libs=yes
10698 # No shared lib support for Linux oldld, aout, or coff.
10699 linux*oldld* | linux*aout* | linux*coff*)
10700 dynamic_linker=no
10703 # This must be Linux ELF.
10704 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10705 version_type=linux
10706 need_lib_prefix=no
10707 need_version=no
10708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10709 soname_spec='${libname}${release}${shared_ext}$major'
10710 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10711 shlibpath_var=LD_LIBRARY_PATH
10712 shlibpath_overrides_runpath=no
10714 # Some binutils ld are patched to set DT_RUNPATH
10715 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10716 $as_echo_n "(cached) " >&6
10717 else
10718 lt_cv_shlibpath_overrides_runpath=no
10719 save_LDFLAGS=$LDFLAGS
10720 save_libdir=$libdir
10721 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10722 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10724 /* end confdefs.h. */
10727 main ()
10731 return 0;
10733 _ACEOF
10734 if ac_fn_c_try_link "$LINENO"; then :
10735 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10736 lt_cv_shlibpath_overrides_runpath=yes
10739 rm -f core conftest.err conftest.$ac_objext \
10740 conftest$ac_exeext conftest.$ac_ext
10741 LDFLAGS=$save_LDFLAGS
10742 libdir=$save_libdir
10746 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10748 # This implies no fast_install, which is unacceptable.
10749 # Some rework will be needed to allow for fast_install
10750 # before this can be enabled.
10751 hardcode_into_libs=yes
10753 # Append ld.so.conf contents to the search path
10754 if test -f /etc/ld.so.conf; then
10755 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' ' '`
10756 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10759 # We used to test for /lib/ld.so.1 and disable shared libraries on
10760 # powerpc, because MkLinux only supported shared libraries with the
10761 # GNU dynamic linker. Since this was broken with cross compilers,
10762 # most powerpc-linux boxes support dynamic linking these days and
10763 # people can always --disable-shared, the test was removed, and we
10764 # assume the GNU/Linux dynamic linker is in use.
10765 dynamic_linker='GNU/Linux ld.so'
10768 netbsd*)
10769 version_type=sunos
10770 need_lib_prefix=no
10771 need_version=no
10772 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10774 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10775 dynamic_linker='NetBSD (a.out) ld.so'
10776 else
10777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10778 soname_spec='${libname}${release}${shared_ext}$major'
10779 dynamic_linker='NetBSD ld.elf_so'
10781 shlibpath_var=LD_LIBRARY_PATH
10782 shlibpath_overrides_runpath=yes
10783 hardcode_into_libs=yes
10786 newsos6)
10787 version_type=linux
10788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10789 shlibpath_var=LD_LIBRARY_PATH
10790 shlibpath_overrides_runpath=yes
10793 *nto* | *qnx*)
10794 version_type=qnx
10795 need_lib_prefix=no
10796 need_version=no
10797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10798 soname_spec='${libname}${release}${shared_ext}$major'
10799 shlibpath_var=LD_LIBRARY_PATH
10800 shlibpath_overrides_runpath=no
10801 hardcode_into_libs=yes
10802 dynamic_linker='ldqnx.so'
10805 openbsd*)
10806 version_type=sunos
10807 sys_lib_dlsearch_path_spec="/usr/lib"
10808 need_lib_prefix=no
10809 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10810 case $host_os in
10811 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10812 *) need_version=no ;;
10813 esac
10814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10816 shlibpath_var=LD_LIBRARY_PATH
10817 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10818 case $host_os in
10819 openbsd2.[89] | openbsd2.[89].*)
10820 shlibpath_overrides_runpath=no
10823 shlibpath_overrides_runpath=yes
10825 esac
10826 else
10827 shlibpath_overrides_runpath=yes
10831 os2*)
10832 libname_spec='$name'
10833 shrext_cmds=".dll"
10834 need_lib_prefix=no
10835 library_names_spec='$libname${shared_ext} $libname.a'
10836 dynamic_linker='OS/2 ld.exe'
10837 shlibpath_var=LIBPATH
10840 osf3* | osf4* | osf5*)
10841 version_type=osf
10842 need_lib_prefix=no
10843 need_version=no
10844 soname_spec='${libname}${release}${shared_ext}$major'
10845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10846 shlibpath_var=LD_LIBRARY_PATH
10847 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10848 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10851 rdos*)
10852 dynamic_linker=no
10855 solaris*)
10856 version_type=linux
10857 need_lib_prefix=no
10858 need_version=no
10859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10860 soname_spec='${libname}${release}${shared_ext}$major'
10861 shlibpath_var=LD_LIBRARY_PATH
10862 shlibpath_overrides_runpath=yes
10863 hardcode_into_libs=yes
10864 # ldd complains unless libraries are executable
10865 postinstall_cmds='chmod +x $lib'
10868 sunos4*)
10869 version_type=sunos
10870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10871 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10872 shlibpath_var=LD_LIBRARY_PATH
10873 shlibpath_overrides_runpath=yes
10874 if test "$with_gnu_ld" = yes; then
10875 need_lib_prefix=no
10877 need_version=yes
10880 sysv4 | sysv4.3*)
10881 version_type=linux
10882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10883 soname_spec='${libname}${release}${shared_ext}$major'
10884 shlibpath_var=LD_LIBRARY_PATH
10885 case $host_vendor in
10886 sni)
10887 shlibpath_overrides_runpath=no
10888 need_lib_prefix=no
10889 runpath_var=LD_RUN_PATH
10891 siemens)
10892 need_lib_prefix=no
10894 motorola)
10895 need_lib_prefix=no
10896 need_version=no
10897 shlibpath_overrides_runpath=no
10898 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10900 esac
10903 sysv4*MP*)
10904 if test -d /usr/nec ;then
10905 version_type=linux
10906 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10907 soname_spec='$libname${shared_ext}.$major'
10908 shlibpath_var=LD_LIBRARY_PATH
10912 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10913 version_type=freebsd-elf
10914 need_lib_prefix=no
10915 need_version=no
10916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10917 soname_spec='${libname}${release}${shared_ext}$major'
10918 shlibpath_var=LD_LIBRARY_PATH
10919 shlibpath_overrides_runpath=yes
10920 hardcode_into_libs=yes
10921 if test "$with_gnu_ld" = yes; then
10922 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10923 else
10924 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10925 case $host_os in
10926 sco3.2v5*)
10927 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10929 esac
10931 sys_lib_dlsearch_path_spec='/usr/lib'
10934 tpf*)
10935 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10936 version_type=linux
10937 need_lib_prefix=no
10938 need_version=no
10939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10940 shlibpath_var=LD_LIBRARY_PATH
10941 shlibpath_overrides_runpath=no
10942 hardcode_into_libs=yes
10945 uts4*)
10946 version_type=linux
10947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10948 soname_spec='${libname}${release}${shared_ext}$major'
10949 shlibpath_var=LD_LIBRARY_PATH
10953 dynamic_linker=no
10955 esac
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10957 $as_echo "$dynamic_linker" >&6; }
10958 test "$dynamic_linker" = no && can_build_shared=no
10960 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10961 if test "$GCC" = yes; then
10962 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10965 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10966 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10968 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10969 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11064 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11065 hardcode_action=
11066 if test -n "$hardcode_libdir_flag_spec" ||
11067 test -n "$runpath_var" ||
11068 test "X$hardcode_automatic" = "Xyes" ; then
11070 # We can hardcode non-existent directories.
11071 if test "$hardcode_direct" != no &&
11072 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11073 # have to relink, otherwise we might link with an installed library
11074 # when we should be linking with a yet-to-be-installed one
11075 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11076 test "$hardcode_minus_L" != no; then
11077 # Linking always hardcodes the temporary library directory.
11078 hardcode_action=relink
11079 else
11080 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11081 hardcode_action=immediate
11083 else
11084 # We cannot hardcode anything, or else we can only hardcode existing
11085 # directories.
11086 hardcode_action=unsupported
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11089 $as_echo "$hardcode_action" >&6; }
11091 if test "$hardcode_action" = relink ||
11092 test "$inherit_rpath" = yes; then
11093 # Fast installation is not supported
11094 enable_fast_install=no
11095 elif test "$shlibpath_overrides_runpath" = yes ||
11096 test "$enable_shared" = no; then
11097 # Fast installation is not necessary
11098 enable_fast_install=needless
11106 if test "x$enable_dlopen" != xyes; then
11107 enable_dlopen=unknown
11108 enable_dlopen_self=unknown
11109 enable_dlopen_self_static=unknown
11110 else
11111 lt_cv_dlopen=no
11112 lt_cv_dlopen_libs=
11114 case $host_os in
11115 beos*)
11116 lt_cv_dlopen="load_add_on"
11117 lt_cv_dlopen_libs=
11118 lt_cv_dlopen_self=yes
11121 mingw* | pw32* | cegcc*)
11122 lt_cv_dlopen="LoadLibrary"
11123 lt_cv_dlopen_libs=
11126 cygwin*)
11127 lt_cv_dlopen="dlopen"
11128 lt_cv_dlopen_libs=
11131 darwin*)
11132 # if libdl is installed we need to link against it
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11134 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11135 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11136 $as_echo_n "(cached) " >&6
11137 else
11138 ac_check_lib_save_LIBS=$LIBS
11139 LIBS="-ldl $LIBS"
11140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11141 /* end confdefs.h. */
11143 /* Override any GCC internal prototype to avoid an error.
11144 Use char because int might match the return type of a GCC
11145 builtin and then its argument prototype would still apply. */
11146 #ifdef __cplusplus
11147 extern "C"
11148 #endif
11149 char dlopen ();
11151 main ()
11153 return dlopen ();
11155 return 0;
11157 _ACEOF
11158 if ac_fn_c_try_link "$LINENO"; then :
11159 ac_cv_lib_dl_dlopen=yes
11160 else
11161 ac_cv_lib_dl_dlopen=no
11163 rm -f core conftest.err conftest.$ac_objext \
11164 conftest$ac_exeext conftest.$ac_ext
11165 LIBS=$ac_check_lib_save_LIBS
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11168 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11169 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11170 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11171 else
11173 lt_cv_dlopen="dyld"
11174 lt_cv_dlopen_libs=
11175 lt_cv_dlopen_self=yes
11182 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11183 if test "x$ac_cv_func_shl_load" = x""yes; then :
11184 lt_cv_dlopen="shl_load"
11185 else
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11187 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11188 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11189 $as_echo_n "(cached) " >&6
11190 else
11191 ac_check_lib_save_LIBS=$LIBS
11192 LIBS="-ldld $LIBS"
11193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11194 /* end confdefs.h. */
11196 /* Override any GCC internal prototype to avoid an error.
11197 Use char because int might match the return type of a GCC
11198 builtin and then its argument prototype would still apply. */
11199 #ifdef __cplusplus
11200 extern "C"
11201 #endif
11202 char shl_load ();
11204 main ()
11206 return shl_load ();
11208 return 0;
11210 _ACEOF
11211 if ac_fn_c_try_link "$LINENO"; then :
11212 ac_cv_lib_dld_shl_load=yes
11213 else
11214 ac_cv_lib_dld_shl_load=no
11216 rm -f core conftest.err conftest.$ac_objext \
11217 conftest$ac_exeext conftest.$ac_ext
11218 LIBS=$ac_check_lib_save_LIBS
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11221 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11222 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11223 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11224 else
11225 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11226 if test "x$ac_cv_func_dlopen" = x""yes; then :
11227 lt_cv_dlopen="dlopen"
11228 else
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11230 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11231 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11232 $as_echo_n "(cached) " >&6
11233 else
11234 ac_check_lib_save_LIBS=$LIBS
11235 LIBS="-ldl $LIBS"
11236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11237 /* end confdefs.h. */
11239 /* Override any GCC internal prototype to avoid an error.
11240 Use char because int might match the return type of a GCC
11241 builtin and then its argument prototype would still apply. */
11242 #ifdef __cplusplus
11243 extern "C"
11244 #endif
11245 char dlopen ();
11247 main ()
11249 return dlopen ();
11251 return 0;
11253 _ACEOF
11254 if ac_fn_c_try_link "$LINENO"; then :
11255 ac_cv_lib_dl_dlopen=yes
11256 else
11257 ac_cv_lib_dl_dlopen=no
11259 rm -f core conftest.err conftest.$ac_objext \
11260 conftest$ac_exeext conftest.$ac_ext
11261 LIBS=$ac_check_lib_save_LIBS
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11264 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11265 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11266 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11267 else
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11269 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11270 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11271 $as_echo_n "(cached) " >&6
11272 else
11273 ac_check_lib_save_LIBS=$LIBS
11274 LIBS="-lsvld $LIBS"
11275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11276 /* end confdefs.h. */
11278 /* Override any GCC internal prototype to avoid an error.
11279 Use char because int might match the return type of a GCC
11280 builtin and then its argument prototype would still apply. */
11281 #ifdef __cplusplus
11282 extern "C"
11283 #endif
11284 char dlopen ();
11286 main ()
11288 return dlopen ();
11290 return 0;
11292 _ACEOF
11293 if ac_fn_c_try_link "$LINENO"; then :
11294 ac_cv_lib_svld_dlopen=yes
11295 else
11296 ac_cv_lib_svld_dlopen=no
11298 rm -f core conftest.err conftest.$ac_objext \
11299 conftest$ac_exeext conftest.$ac_ext
11300 LIBS=$ac_check_lib_save_LIBS
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11303 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11304 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11305 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11306 else
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11308 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11309 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11310 $as_echo_n "(cached) " >&6
11311 else
11312 ac_check_lib_save_LIBS=$LIBS
11313 LIBS="-ldld $LIBS"
11314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11315 /* end confdefs.h. */
11317 /* Override any GCC internal prototype to avoid an error.
11318 Use char because int might match the return type of a GCC
11319 builtin and then its argument prototype would still apply. */
11320 #ifdef __cplusplus
11321 extern "C"
11322 #endif
11323 char dld_link ();
11325 main ()
11327 return dld_link ();
11329 return 0;
11331 _ACEOF
11332 if ac_fn_c_try_link "$LINENO"; then :
11333 ac_cv_lib_dld_dld_link=yes
11334 else
11335 ac_cv_lib_dld_dld_link=no
11337 rm -f core conftest.err conftest.$ac_objext \
11338 conftest$ac_exeext conftest.$ac_ext
11339 LIBS=$ac_check_lib_save_LIBS
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11342 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11343 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11344 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11363 esac
11365 if test "x$lt_cv_dlopen" != xno; then
11366 enable_dlopen=yes
11367 else
11368 enable_dlopen=no
11371 case $lt_cv_dlopen in
11372 dlopen)
11373 save_CPPFLAGS="$CPPFLAGS"
11374 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11376 save_LDFLAGS="$LDFLAGS"
11377 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11379 save_LIBS="$LIBS"
11380 LIBS="$lt_cv_dlopen_libs $LIBS"
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11383 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11384 if test "${lt_cv_dlopen_self+set}" = set; then :
11385 $as_echo_n "(cached) " >&6
11386 else
11387 if test "$cross_compiling" = yes; then :
11388 lt_cv_dlopen_self=cross
11389 else
11390 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11391 lt_status=$lt_dlunknown
11392 cat > conftest.$ac_ext <<_LT_EOF
11393 #line 11393 "configure"
11394 #include "confdefs.h"
11396 #if HAVE_DLFCN_H
11397 #include <dlfcn.h>
11398 #endif
11400 #include <stdio.h>
11402 #ifdef RTLD_GLOBAL
11403 # define LT_DLGLOBAL RTLD_GLOBAL
11404 #else
11405 # ifdef DL_GLOBAL
11406 # define LT_DLGLOBAL DL_GLOBAL
11407 # else
11408 # define LT_DLGLOBAL 0
11409 # endif
11410 #endif
11412 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11413 find out it does not work in some platform. */
11414 #ifndef LT_DLLAZY_OR_NOW
11415 # ifdef RTLD_LAZY
11416 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11417 # else
11418 # ifdef DL_LAZY
11419 # define LT_DLLAZY_OR_NOW DL_LAZY
11420 # else
11421 # ifdef RTLD_NOW
11422 # define LT_DLLAZY_OR_NOW RTLD_NOW
11423 # else
11424 # ifdef DL_NOW
11425 # define LT_DLLAZY_OR_NOW DL_NOW
11426 # else
11427 # define LT_DLLAZY_OR_NOW 0
11428 # endif
11429 # endif
11430 # endif
11431 # endif
11432 #endif
11434 /* When -fvisbility=hidden is used, assume the code has been annotated
11435 correspondingly for the symbols needed. */
11436 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11437 void fnord () __attribute__((visibility("default")));
11438 #endif
11440 void fnord () { int i=42; }
11441 int main ()
11443 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11444 int status = $lt_dlunknown;
11446 if (self)
11448 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11449 else
11451 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11452 else puts (dlerror ());
11454 /* dlclose (self); */
11456 else
11457 puts (dlerror ());
11459 return status;
11461 _LT_EOF
11462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11463 (eval $ac_link) 2>&5
11464 ac_status=$?
11465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11466 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11467 (./conftest; exit; ) >&5 2>/dev/null
11468 lt_status=$?
11469 case x$lt_status in
11470 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11471 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11472 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11473 esac
11474 else :
11475 # compilation failed
11476 lt_cv_dlopen_self=no
11479 rm -fr conftest*
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11484 $as_echo "$lt_cv_dlopen_self" >&6; }
11486 if test "x$lt_cv_dlopen_self" = xyes; then
11487 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11489 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11490 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11491 $as_echo_n "(cached) " >&6
11492 else
11493 if test "$cross_compiling" = yes; then :
11494 lt_cv_dlopen_self_static=cross
11495 else
11496 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11497 lt_status=$lt_dlunknown
11498 cat > conftest.$ac_ext <<_LT_EOF
11499 #line 11499 "configure"
11500 #include "confdefs.h"
11502 #if HAVE_DLFCN_H
11503 #include <dlfcn.h>
11504 #endif
11506 #include <stdio.h>
11508 #ifdef RTLD_GLOBAL
11509 # define LT_DLGLOBAL RTLD_GLOBAL
11510 #else
11511 # ifdef DL_GLOBAL
11512 # define LT_DLGLOBAL DL_GLOBAL
11513 # else
11514 # define LT_DLGLOBAL 0
11515 # endif
11516 #endif
11518 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11519 find out it does not work in some platform. */
11520 #ifndef LT_DLLAZY_OR_NOW
11521 # ifdef RTLD_LAZY
11522 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11523 # else
11524 # ifdef DL_LAZY
11525 # define LT_DLLAZY_OR_NOW DL_LAZY
11526 # else
11527 # ifdef RTLD_NOW
11528 # define LT_DLLAZY_OR_NOW RTLD_NOW
11529 # else
11530 # ifdef DL_NOW
11531 # define LT_DLLAZY_OR_NOW DL_NOW
11532 # else
11533 # define LT_DLLAZY_OR_NOW 0
11534 # endif
11535 # endif
11536 # endif
11537 # endif
11538 #endif
11540 /* When -fvisbility=hidden is used, assume the code has been annotated
11541 correspondingly for the symbols needed. */
11542 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11543 void fnord () __attribute__((visibility("default")));
11544 #endif
11546 void fnord () { int i=42; }
11547 int main ()
11549 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11550 int status = $lt_dlunknown;
11552 if (self)
11554 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11555 else
11557 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11558 else puts (dlerror ());
11560 /* dlclose (self); */
11562 else
11563 puts (dlerror ());
11565 return status;
11567 _LT_EOF
11568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11569 (eval $ac_link) 2>&5
11570 ac_status=$?
11571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11572 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11573 (./conftest; exit; ) >&5 2>/dev/null
11574 lt_status=$?
11575 case x$lt_status in
11576 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11577 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11578 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11579 esac
11580 else :
11581 # compilation failed
11582 lt_cv_dlopen_self_static=no
11585 rm -fr conftest*
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11590 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11593 CPPFLAGS="$save_CPPFLAGS"
11594 LDFLAGS="$save_LDFLAGS"
11595 LIBS="$save_LIBS"
11597 esac
11599 case $lt_cv_dlopen_self in
11600 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11601 *) enable_dlopen_self=unknown ;;
11602 esac
11604 case $lt_cv_dlopen_self_static in
11605 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11606 *) enable_dlopen_self_static=unknown ;;
11607 esac
11626 striplib=
11627 old_striplib=
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11629 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11630 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11631 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11632 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11634 $as_echo "yes" >&6; }
11635 else
11636 # FIXME - insert some real tests, host_os isn't really good enough
11637 case $host_os in
11638 darwin*)
11639 if test -n "$STRIP" ; then
11640 striplib="$STRIP -x"
11641 old_striplib="$STRIP -S"
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11643 $as_echo "yes" >&6; }
11644 else
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11646 $as_echo "no" >&6; }
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11651 $as_echo "no" >&6; }
11653 esac
11667 # Report which library types will actually be built
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11669 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11671 $as_echo "$can_build_shared" >&6; }
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11674 $as_echo_n "checking whether to build shared libraries... " >&6; }
11675 test "$can_build_shared" = "no" && enable_shared=no
11677 # On AIX, shared libraries and static libraries use the same namespace, and
11678 # are all built from PIC.
11679 case $host_os in
11680 aix3*)
11681 test "$enable_shared" = yes && enable_static=no
11682 if test -n "$RANLIB"; then
11683 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11684 postinstall_cmds='$RANLIB $lib'
11688 aix[4-9]*)
11689 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11690 test "$enable_shared" = yes && enable_static=no
11693 esac
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11695 $as_echo "$enable_shared" >&6; }
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11698 $as_echo_n "checking whether to build static libraries... " >&6; }
11699 # Make sure either enable_shared or enable_static is yes.
11700 test "$enable_shared" = yes || enable_static=yes
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11702 $as_echo "$enable_static" >&6; }
11708 ac_ext=c
11709 ac_cpp='$CPP $CPPFLAGS'
11710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11714 CC="$lt_save_CC"
11716 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11717 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11718 (test "X$CXX" != "Xg++"))) ; then
11719 ac_ext=cpp
11720 ac_cpp='$CXXCPP $CPPFLAGS'
11721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11725 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11726 if test -z "$CXXCPP"; then
11727 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11728 $as_echo_n "(cached) " >&6
11729 else
11730 # Double quotes because CXXCPP needs to be expanded
11731 for CXXCPP in "$CXX -E" "/lib/cpp"
11733 ac_preproc_ok=false
11734 for ac_cxx_preproc_warn_flag in '' yes
11736 # Use a header file that comes with gcc, so configuring glibc
11737 # with a fresh cross-compiler works.
11738 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11739 # <limits.h> exists even on freestanding compilers.
11740 # On the NeXT, cc -E runs the code through the compiler's parser,
11741 # not just through cpp. "Syntax error" is here to catch this case.
11742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11743 /* end confdefs.h. */
11744 #ifdef __STDC__
11745 # include <limits.h>
11746 #else
11747 # include <assert.h>
11748 #endif
11749 Syntax error
11750 _ACEOF
11751 if ac_fn_cxx_try_cpp "$LINENO"; then :
11753 else
11754 # Broken: fails on valid input.
11755 continue
11757 rm -f conftest.err conftest.$ac_ext
11759 # OK, works on sane cases. Now check whether nonexistent headers
11760 # can be detected and how.
11761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11762 /* end confdefs.h. */
11763 #include <ac_nonexistent.h>
11764 _ACEOF
11765 if ac_fn_cxx_try_cpp "$LINENO"; then :
11766 # Broken: success on invalid input.
11767 continue
11768 else
11769 # Passes both tests.
11770 ac_preproc_ok=:
11771 break
11773 rm -f conftest.err conftest.$ac_ext
11775 done
11776 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11777 rm -f conftest.err conftest.$ac_ext
11778 if $ac_preproc_ok; then :
11779 break
11782 done
11783 ac_cv_prog_CXXCPP=$CXXCPP
11786 CXXCPP=$ac_cv_prog_CXXCPP
11787 else
11788 ac_cv_prog_CXXCPP=$CXXCPP
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11791 $as_echo "$CXXCPP" >&6; }
11792 ac_preproc_ok=false
11793 for ac_cxx_preproc_warn_flag in '' yes
11795 # Use a header file that comes with gcc, so configuring glibc
11796 # with a fresh cross-compiler works.
11797 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11798 # <limits.h> exists even on freestanding compilers.
11799 # On the NeXT, cc -E runs the code through the compiler's parser,
11800 # not just through cpp. "Syntax error" is here to catch this case.
11801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11802 /* end confdefs.h. */
11803 #ifdef __STDC__
11804 # include <limits.h>
11805 #else
11806 # include <assert.h>
11807 #endif
11808 Syntax error
11809 _ACEOF
11810 if ac_fn_cxx_try_cpp "$LINENO"; then :
11812 else
11813 # Broken: fails on valid input.
11814 continue
11816 rm -f conftest.err conftest.$ac_ext
11818 # OK, works on sane cases. Now check whether nonexistent headers
11819 # can be detected and how.
11820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11821 /* end confdefs.h. */
11822 #include <ac_nonexistent.h>
11823 _ACEOF
11824 if ac_fn_cxx_try_cpp "$LINENO"; then :
11825 # Broken: success on invalid input.
11826 continue
11827 else
11828 # Passes both tests.
11829 ac_preproc_ok=:
11830 break
11832 rm -f conftest.err conftest.$ac_ext
11834 done
11835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11836 rm -f conftest.err conftest.$ac_ext
11837 if $ac_preproc_ok; then :
11839 else
11840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11842 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11843 See \`config.log' for more details." "$LINENO" 5; }
11846 ac_ext=c
11847 ac_cpp='$CPP $CPPFLAGS'
11848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11852 else
11853 _lt_caught_CXX_error=yes
11856 ac_ext=cpp
11857 ac_cpp='$CXXCPP $CPPFLAGS'
11858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11862 archive_cmds_need_lc_CXX=no
11863 allow_undefined_flag_CXX=
11864 always_export_symbols_CXX=no
11865 archive_expsym_cmds_CXX=
11866 compiler_needs_object_CXX=no
11867 export_dynamic_flag_spec_CXX=
11868 hardcode_direct_CXX=no
11869 hardcode_direct_absolute_CXX=no
11870 hardcode_libdir_flag_spec_CXX=
11871 hardcode_libdir_flag_spec_ld_CXX=
11872 hardcode_libdir_separator_CXX=
11873 hardcode_minus_L_CXX=no
11874 hardcode_shlibpath_var_CXX=unsupported
11875 hardcode_automatic_CXX=no
11876 inherit_rpath_CXX=no
11877 module_cmds_CXX=
11878 module_expsym_cmds_CXX=
11879 link_all_deplibs_CXX=unknown
11880 old_archive_cmds_CXX=$old_archive_cmds
11881 reload_flag_CXX=$reload_flag
11882 reload_cmds_CXX=$reload_cmds
11883 no_undefined_flag_CXX=
11884 whole_archive_flag_spec_CXX=
11885 enable_shared_with_static_runtimes_CXX=no
11887 # Source file extension for C++ test sources.
11888 ac_ext=cpp
11890 # Object file extension for compiled C++ test sources.
11891 objext=o
11892 objext_CXX=$objext
11894 # No sense in running all these tests if we already determined that
11895 # the CXX compiler isn't working. Some variables (like enable_shared)
11896 # are currently assumed to apply to all compilers on this platform,
11897 # and will be corrupted by setting them based on a non-working compiler.
11898 if test "$_lt_caught_CXX_error" != yes; then
11899 # Code to be used in simple compile tests
11900 lt_simple_compile_test_code="int some_variable = 0;"
11902 # Code to be used in simple link tests
11903 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11905 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11912 # If no C compiler was specified, use CC.
11913 LTCC=${LTCC-"$CC"}
11915 # If no C compiler flags were specified, use CFLAGS.
11916 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11918 # Allow CC to be a program name with arguments.
11919 compiler=$CC
11922 # save warnings/boilerplate of simple test code
11923 ac_outfile=conftest.$ac_objext
11924 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11925 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11926 _lt_compiler_boilerplate=`cat conftest.err`
11927 $RM conftest*
11929 ac_outfile=conftest.$ac_objext
11930 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11931 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11932 _lt_linker_boilerplate=`cat conftest.err`
11933 $RM -r conftest*
11936 # Allow CC to be a program name with arguments.
11937 lt_save_CC=$CC
11938 lt_save_LD=$LD
11939 lt_save_GCC=$GCC
11940 GCC=$GXX
11941 lt_save_with_gnu_ld=$with_gnu_ld
11942 lt_save_path_LD=$lt_cv_path_LD
11943 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11944 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11945 else
11946 $as_unset lt_cv_prog_gnu_ld
11948 if test -n "${lt_cv_path_LDCXX+set}"; then
11949 lt_cv_path_LD=$lt_cv_path_LDCXX
11950 else
11951 $as_unset lt_cv_path_LD
11953 test -z "${LDCXX+set}" || LD=$LDCXX
11954 CC=${CXX-"c++"}
11955 compiler=$CC
11956 compiler_CXX=$CC
11957 for cc_temp in $compiler""; do
11958 case $cc_temp in
11959 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11960 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11961 \-*) ;;
11962 *) break;;
11963 esac
11964 done
11965 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11968 if test -n "$compiler"; then
11969 # We don't want -fno-exception when compiling C++ code, so set the
11970 # no_builtin_flag separately
11971 if test "$GXX" = yes; then
11972 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11973 else
11974 lt_prog_compiler_no_builtin_flag_CXX=
11977 if test "$GXX" = yes; then
11978 # Set up default GNU C++ configuration
11982 # Check whether --with-gnu-ld was given.
11983 if test "${with_gnu_ld+set}" = set; then :
11984 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11985 else
11986 with_gnu_ld=no
11989 ac_prog=ld
11990 if test "$GCC" = yes; then
11991 # Check if gcc -print-prog-name=ld gives a path.
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11993 $as_echo_n "checking for ld used by $CC... " >&6; }
11994 case $host in
11995 *-*-mingw*)
11996 # gcc leaves a trailing carriage return which upsets mingw
11997 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11999 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12000 esac
12001 case $ac_prog in
12002 # Accept absolute paths.
12003 [\\/]* | ?:[\\/]*)
12004 re_direlt='/[^/][^/]*/\.\./'
12005 # Canonicalize the pathname of ld
12006 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12007 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12008 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12009 done
12010 test -z "$LD" && LD="$ac_prog"
12013 # If it fails, then pretend we aren't using GCC.
12014 ac_prog=ld
12017 # If it is relative, then search for the first ld in PATH.
12018 with_gnu_ld=unknown
12020 esac
12021 elif test "$with_gnu_ld" = yes; then
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12023 $as_echo_n "checking for GNU ld... " >&6; }
12024 else
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12026 $as_echo_n "checking for non-GNU ld... " >&6; }
12028 if test "${lt_cv_path_LD+set}" = set; then :
12029 $as_echo_n "(cached) " >&6
12030 else
12031 if test -z "$LD"; then
12032 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12033 for ac_dir in $PATH; do
12034 IFS="$lt_save_ifs"
12035 test -z "$ac_dir" && ac_dir=.
12036 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12037 lt_cv_path_LD="$ac_dir/$ac_prog"
12038 # Check to see if the program is GNU ld. I'd rather use --version,
12039 # but apparently some variants of GNU ld only accept -v.
12040 # Break only if it was the GNU/non-GNU ld that we prefer.
12041 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12042 *GNU* | *'with BFD'*)
12043 test "$with_gnu_ld" != no && break
12046 test "$with_gnu_ld" != yes && break
12048 esac
12050 done
12051 IFS="$lt_save_ifs"
12052 else
12053 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12057 LD="$lt_cv_path_LD"
12058 if test -n "$LD"; then
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12060 $as_echo "$LD" >&6; }
12061 else
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12063 $as_echo "no" >&6; }
12065 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12067 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12068 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12069 $as_echo_n "(cached) " >&6
12070 else
12071 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12072 case `$LD -v 2>&1 </dev/null` in
12073 *GNU* | *'with BFD'*)
12074 lt_cv_prog_gnu_ld=yes
12077 lt_cv_prog_gnu_ld=no
12079 esac
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12082 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12083 with_gnu_ld=$lt_cv_prog_gnu_ld
12091 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12092 # archiving commands below assume that GNU ld is being used.
12093 if test "$with_gnu_ld" = yes; then
12094 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12095 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12097 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12098 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12100 # If archive_cmds runs LD, not CC, wlarc should be empty
12101 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12102 # investigate it a little bit more. (MM)
12103 wlarc='${wl}'
12105 # ancient GNU ld didn't support --whole-archive et. al.
12106 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12107 $GREP 'no-whole-archive' > /dev/null; then
12108 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12109 else
12110 whole_archive_flag_spec_CXX=
12112 else
12113 with_gnu_ld=no
12114 wlarc=
12116 # A generic and very simple default shared library creation
12117 # command for GNU C++ for the case where it uses the native
12118 # linker, instead of GNU ld. If possible, this setting should
12119 # overridden to take advantage of the native linker features on
12120 # the platform it is being used on.
12121 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12124 # Commands to make compiler produce verbose output that lists
12125 # what "hidden" libraries, object files and flags are used when
12126 # linking a shared library.
12127 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12129 else
12130 GXX=no
12131 with_gnu_ld=no
12132 wlarc=
12135 # PORTME: fill in a description of your system's C++ link characteristics
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12137 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12138 ld_shlibs_CXX=yes
12139 case $host_os in
12140 aix3*)
12141 # FIXME: insert proper C++ library support
12142 ld_shlibs_CXX=no
12144 aix[4-9]*)
12145 if test "$host_cpu" = ia64; then
12146 # On IA64, the linker does run time linking by default, so we don't
12147 # have to do anything special.
12148 aix_use_runtimelinking=no
12149 exp_sym_flag='-Bexport'
12150 no_entry_flag=""
12151 else
12152 aix_use_runtimelinking=no
12154 # Test if we are trying to use run time linking or normal
12155 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12156 # need to do runtime linking.
12157 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12158 for ld_flag in $LDFLAGS; do
12159 case $ld_flag in
12160 *-brtl*)
12161 aix_use_runtimelinking=yes
12162 break
12164 esac
12165 done
12167 esac
12169 exp_sym_flag='-bexport'
12170 no_entry_flag='-bnoentry'
12173 # When large executables or shared objects are built, AIX ld can
12174 # have problems creating the table of contents. If linking a library
12175 # or program results in "error TOC overflow" add -mminimal-toc to
12176 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12177 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12179 archive_cmds_CXX=''
12180 hardcode_direct_CXX=yes
12181 hardcode_direct_absolute_CXX=yes
12182 hardcode_libdir_separator_CXX=':'
12183 link_all_deplibs_CXX=yes
12184 file_list_spec_CXX='${wl}-f,'
12186 if test "$GXX" = yes; then
12187 case $host_os in aix4.[012]|aix4.[012].*)
12188 # We only want to do this on AIX 4.2 and lower, the check
12189 # below for broken collect2 doesn't work under 4.3+
12190 collect2name=`${CC} -print-prog-name=collect2`
12191 if test -f "$collect2name" &&
12192 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12193 then
12194 # We have reworked collect2
12196 else
12197 # We have old collect2
12198 hardcode_direct_CXX=unsupported
12199 # It fails to find uninstalled libraries when the uninstalled
12200 # path is not listed in the libpath. Setting hardcode_minus_L
12201 # to unsupported forces relinking
12202 hardcode_minus_L_CXX=yes
12203 hardcode_libdir_flag_spec_CXX='-L$libdir'
12204 hardcode_libdir_separator_CXX=
12206 esac
12207 shared_flag='-shared'
12208 if test "$aix_use_runtimelinking" = yes; then
12209 shared_flag="$shared_flag "'${wl}-G'
12211 else
12212 # not using gcc
12213 if test "$host_cpu" = ia64; then
12214 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12215 # chokes on -Wl,-G. The following line is correct:
12216 shared_flag='-G'
12217 else
12218 if test "$aix_use_runtimelinking" = yes; then
12219 shared_flag='${wl}-G'
12220 else
12221 shared_flag='${wl}-bM:SRE'
12226 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12227 # It seems that -bexpall does not export symbols beginning with
12228 # underscore (_), so it is better to generate a list of symbols to
12229 # export.
12230 always_export_symbols_CXX=yes
12231 if test "$aix_use_runtimelinking" = yes; then
12232 # Warning - without using the other runtime loading flags (-brtl),
12233 # -berok will link without error, but may produce a broken library.
12234 allow_undefined_flag_CXX='-berok'
12235 # Determine the default libpath from the value encoded in an empty
12236 # executable.
12237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12238 /* end confdefs.h. */
12241 main ()
12245 return 0;
12247 _ACEOF
12248 if ac_fn_cxx_try_link "$LINENO"; then :
12250 lt_aix_libpath_sed='
12251 /Import File Strings/,/^$/ {
12252 /^0/ {
12253 s/^0 *\(.*\)$/\1/
12257 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12258 # Check for a 64-bit object if we didn't find anything.
12259 if test -z "$aix_libpath"; then
12260 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12263 rm -f core conftest.err conftest.$ac_objext \
12264 conftest$ac_exeext conftest.$ac_ext
12265 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12267 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12269 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12270 else
12271 if test "$host_cpu" = ia64; then
12272 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12273 allow_undefined_flag_CXX="-z nodefs"
12274 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12275 else
12276 # Determine the default libpath from the value encoded in an
12277 # empty executable.
12278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h. */
12282 main ()
12286 return 0;
12288 _ACEOF
12289 if ac_fn_cxx_try_link "$LINENO"; then :
12291 lt_aix_libpath_sed='
12292 /Import File Strings/,/^$/ {
12293 /^0/ {
12294 s/^0 *\(.*\)$/\1/
12298 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12299 # Check for a 64-bit object if we didn't find anything.
12300 if test -z "$aix_libpath"; then
12301 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12304 rm -f core conftest.err conftest.$ac_objext \
12305 conftest$ac_exeext conftest.$ac_ext
12306 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12308 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12309 # Warning - without using the other run time loading flags,
12310 # -berok will link without error, but may produce a broken library.
12311 no_undefined_flag_CXX=' ${wl}-bernotok'
12312 allow_undefined_flag_CXX=' ${wl}-berok'
12313 if test "$with_gnu_ld" = yes; then
12314 # We only use this code for GNU lds that support --whole-archive.
12315 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12316 else
12317 # Exported symbols can be pulled into shared objects from archives
12318 whole_archive_flag_spec_CXX='$convenience'
12320 archive_cmds_need_lc_CXX=yes
12321 # This is similar to how AIX traditionally builds its shared
12322 # libraries.
12323 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12328 beos*)
12329 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12330 allow_undefined_flag_CXX=unsupported
12331 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12332 # support --undefined. This deserves some investigation. FIXME
12333 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12334 else
12335 ld_shlibs_CXX=no
12339 chorus*)
12340 case $cc_basename in
12342 # FIXME: insert proper C++ library support
12343 ld_shlibs_CXX=no
12345 esac
12348 cygwin* | mingw* | pw32* | cegcc*)
12349 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12350 # as there is no search path for DLLs.
12351 hardcode_libdir_flag_spec_CXX='-L$libdir'
12352 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12353 allow_undefined_flag_CXX=unsupported
12354 always_export_symbols_CXX=no
12355 enable_shared_with_static_runtimes_CXX=yes
12357 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12358 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12359 # If the export-symbols file already is a .def file (1st line
12360 # is EXPORTS), use it as is; otherwise, prepend...
12361 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12362 cp $export_symbols $output_objdir/$soname.def;
12363 else
12364 echo EXPORTS > $output_objdir/$soname.def;
12365 cat $export_symbols >> $output_objdir/$soname.def;
12367 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12368 else
12369 ld_shlibs_CXX=no
12372 darwin* | rhapsody*)
12375 archive_cmds_need_lc_CXX=no
12376 hardcode_direct_CXX=no
12377 hardcode_automatic_CXX=yes
12378 hardcode_shlibpath_var_CXX=unsupported
12379 if test "$lt_cv_ld_force_load" = "yes"; then
12380 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12381 else
12382 whole_archive_flag_spec_CXX=''
12384 link_all_deplibs_CXX=yes
12385 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12386 case $cc_basename in
12387 ifort*) _lt_dar_can_shared=yes ;;
12388 *) _lt_dar_can_shared=$GCC ;;
12389 esac
12390 if test "$_lt_dar_can_shared" = "yes"; then
12391 output_verbose_link_cmd=func_echo_all
12392 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12393 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12394 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12395 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12396 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12397 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12398 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12401 else
12402 ld_shlibs_CXX=no
12407 dgux*)
12408 case $cc_basename in
12409 ec++*)
12410 # FIXME: insert proper C++ library support
12411 ld_shlibs_CXX=no
12413 ghcx*)
12414 # Green Hills C++ Compiler
12415 # FIXME: insert proper C++ library support
12416 ld_shlibs_CXX=no
12419 # FIXME: insert proper C++ library support
12420 ld_shlibs_CXX=no
12422 esac
12425 freebsd2.*)
12426 # C++ shared libraries reported to be fairly broken before
12427 # switch to ELF
12428 ld_shlibs_CXX=no
12431 freebsd-elf*)
12432 archive_cmds_need_lc_CXX=no
12435 freebsd* | dragonfly*)
12436 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12437 # conventions
12438 ld_shlibs_CXX=yes
12441 gnu*)
12444 haiku*)
12445 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12446 link_all_deplibs_CXX=yes
12449 hpux9*)
12450 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12451 hardcode_libdir_separator_CXX=:
12452 export_dynamic_flag_spec_CXX='${wl}-E'
12453 hardcode_direct_CXX=yes
12454 hardcode_minus_L_CXX=yes # Not in the search PATH,
12455 # but as the default
12456 # location of the library.
12458 case $cc_basename in
12459 CC*)
12460 # FIXME: insert proper C++ library support
12461 ld_shlibs_CXX=no
12463 aCC*)
12464 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12465 # Commands to make compiler produce verbose output that lists
12466 # what "hidden" libraries, object files and flags are used when
12467 # linking a shared library.
12469 # There doesn't appear to be a way to prevent this compiler from
12470 # explicitly linking system object files so we need to strip them
12471 # from the output so that they don't get included in the library
12472 # dependencies.
12473 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12476 if test "$GXX" = yes; then
12477 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12478 else
12479 # FIXME: insert proper C++ library support
12480 ld_shlibs_CXX=no
12483 esac
12486 hpux10*|hpux11*)
12487 if test $with_gnu_ld = no; then
12488 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12489 hardcode_libdir_separator_CXX=:
12491 case $host_cpu in
12492 hppa*64*|ia64*)
12495 export_dynamic_flag_spec_CXX='${wl}-E'
12497 esac
12499 case $host_cpu in
12500 hppa*64*|ia64*)
12501 hardcode_direct_CXX=no
12502 hardcode_shlibpath_var_CXX=no
12505 hardcode_direct_CXX=yes
12506 hardcode_direct_absolute_CXX=yes
12507 hardcode_minus_L_CXX=yes # Not in the search PATH,
12508 # but as the default
12509 # location of the library.
12511 esac
12513 case $cc_basename in
12514 CC*)
12515 # FIXME: insert proper C++ library support
12516 ld_shlibs_CXX=no
12518 aCC*)
12519 case $host_cpu in
12520 hppa*64*)
12521 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12523 ia64*)
12524 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12527 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12529 esac
12530 # Commands to make compiler produce verbose output that lists
12531 # what "hidden" libraries, object files and flags are used when
12532 # linking a shared library.
12534 # There doesn't appear to be a way to prevent this compiler from
12535 # explicitly linking system object files so we need to strip them
12536 # from the output so that they don't get included in the library
12537 # dependencies.
12538 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12541 if test "$GXX" = yes; then
12542 if test $with_gnu_ld = no; then
12543 case $host_cpu in
12544 hppa*64*)
12545 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12547 ia64*)
12548 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12551 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12553 esac
12555 else
12556 # FIXME: insert proper C++ library support
12557 ld_shlibs_CXX=no
12560 esac
12563 interix[3-9]*)
12564 hardcode_direct_CXX=no
12565 hardcode_shlibpath_var_CXX=no
12566 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12567 export_dynamic_flag_spec_CXX='${wl}-E'
12568 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12569 # Instead, shared libraries are loaded at an image base (0x10000000 by
12570 # default) and relocated if they conflict, which is a slow very memory
12571 # consuming and fragmenting process. To avoid this, we pick a random,
12572 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12573 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12574 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12575 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12577 irix5* | irix6*)
12578 case $cc_basename in
12579 CC*)
12580 # SGI C++
12581 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12583 # Archives containing C++ object files must be created using
12584 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12585 # necessary to make sure instantiated templates are included
12586 # in the archive.
12587 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12590 if test "$GXX" = yes; then
12591 if test "$with_gnu_ld" = no; then
12592 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12593 else
12594 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12597 link_all_deplibs_CXX=yes
12599 esac
12600 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12601 hardcode_libdir_separator_CXX=:
12602 inherit_rpath_CXX=yes
12605 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12606 case $cc_basename in
12607 KCC*)
12608 # Kuck and Associates, Inc. (KAI) C++ Compiler
12610 # KCC will only create a shared library if the output file
12611 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12612 # to its proper name (with version) after linking.
12613 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12614 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12615 # Commands to make compiler produce verbose output that lists
12616 # what "hidden" libraries, object files and flags are used when
12617 # linking a shared library.
12619 # There doesn't appear to be a way to prevent this compiler from
12620 # explicitly linking system object files so we need to strip them
12621 # from the output so that they don't get included in the library
12622 # dependencies.
12623 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12625 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12626 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12628 # Archives containing C++ object files must be created using
12629 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12630 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12632 icpc* | ecpc* )
12633 # Intel C++
12634 with_gnu_ld=yes
12635 # version 8.0 and above of icpc choke on multiply defined symbols
12636 # if we add $predep_objects and $postdep_objects, however 7.1 and
12637 # earlier do not add the objects themselves.
12638 case `$CC -V 2>&1` in
12639 *"Version 7."*)
12640 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12641 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12643 *) # Version 8.0 or newer
12644 tmp_idyn=
12645 case $host_cpu in
12646 ia64*) tmp_idyn=' -i_dynamic';;
12647 esac
12648 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12649 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12651 esac
12652 archive_cmds_need_lc_CXX=no
12653 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12654 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12655 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12657 pgCC* | pgcpp*)
12658 # Portland Group C++ compiler
12659 case `$CC -V` in
12660 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12661 prelink_cmds_CXX='tpldir=Template.dir~
12662 rm -rf $tpldir~
12663 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12664 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12665 old_archive_cmds_CXX='tpldir=Template.dir~
12666 rm -rf $tpldir~
12667 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12668 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12669 $RANLIB $oldlib'
12670 archive_cmds_CXX='tpldir=Template.dir~
12671 rm -rf $tpldir~
12672 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12673 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12674 archive_expsym_cmds_CXX='tpldir=Template.dir~
12675 rm -rf $tpldir~
12676 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12677 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12679 *) # Version 6 and above use weak symbols
12680 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12681 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12683 esac
12685 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12686 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12687 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12689 cxx*)
12690 # Compaq C++
12691 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12692 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12694 runpath_var=LD_RUN_PATH
12695 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12696 hardcode_libdir_separator_CXX=:
12698 # Commands to make compiler produce verbose output that lists
12699 # what "hidden" libraries, object files and flags are used when
12700 # linking a shared library.
12702 # There doesn't appear to be a way to prevent this compiler from
12703 # explicitly linking system object files so we need to strip them
12704 # from the output so that they don't get included in the library
12705 # dependencies.
12706 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
12708 xl* | mpixl* | bgxl*)
12709 # IBM XL 8.0 on PPC, with GNU ld
12710 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12711 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12712 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12713 if test "x$supports_anon_versioning" = xyes; then
12714 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12715 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12716 echo "local: *; };" >> $output_objdir/$libname.ver~
12717 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12721 case `$CC -V 2>&1 | sed 5q` in
12722 *Sun\ C*)
12723 # Sun C++ 5.9
12724 no_undefined_flag_CXX=' -zdefs'
12725 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12726 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12727 hardcode_libdir_flag_spec_CXX='-R$libdir'
12728 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12729 compiler_needs_object_CXX=yes
12731 # Not sure whether something based on
12732 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12733 # would be better.
12734 output_verbose_link_cmd='func_echo_all'
12736 # Archives containing C++ object files must be created using
12737 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12738 # necessary to make sure instantiated templates are included
12739 # in the archive.
12740 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12742 esac
12744 esac
12747 lynxos*)
12748 # FIXME: insert proper C++ library support
12749 ld_shlibs_CXX=no
12752 m88k*)
12753 # FIXME: insert proper C++ library support
12754 ld_shlibs_CXX=no
12757 mvs*)
12758 case $cc_basename in
12759 cxx*)
12760 # FIXME: insert proper C++ library support
12761 ld_shlibs_CXX=no
12764 # FIXME: insert proper C++ library support
12765 ld_shlibs_CXX=no
12767 esac
12770 netbsd*)
12771 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12772 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12773 wlarc=
12774 hardcode_libdir_flag_spec_CXX='-R$libdir'
12775 hardcode_direct_CXX=yes
12776 hardcode_shlibpath_var_CXX=no
12778 # Workaround some broken pre-1.5 toolchains
12779 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12782 *nto* | *qnx*)
12783 ld_shlibs_CXX=yes
12786 openbsd2*)
12787 # C++ shared libraries are fairly broken
12788 ld_shlibs_CXX=no
12791 openbsd*)
12792 if test -f /usr/libexec/ld.so; then
12793 hardcode_direct_CXX=yes
12794 hardcode_shlibpath_var_CXX=no
12795 hardcode_direct_absolute_CXX=yes
12796 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12797 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12798 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12799 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12800 export_dynamic_flag_spec_CXX='${wl}-E'
12801 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12803 output_verbose_link_cmd=func_echo_all
12804 else
12805 ld_shlibs_CXX=no
12809 osf3* | osf4* | osf5*)
12810 case $cc_basename in
12811 KCC*)
12812 # Kuck and Associates, Inc. (KAI) C++ Compiler
12814 # KCC will only create a shared library if the output file
12815 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12816 # to its proper name (with version) after linking.
12817 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12819 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12820 hardcode_libdir_separator_CXX=:
12822 # Archives containing C++ object files must be created using
12823 # the KAI C++ compiler.
12824 case $host in
12825 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12826 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12827 esac
12829 RCC*)
12830 # Rational C++ 2.4.1
12831 # FIXME: insert proper C++ library support
12832 ld_shlibs_CXX=no
12834 cxx*)
12835 case $host in
12836 osf3*)
12837 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12838 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12839 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12842 allow_undefined_flag_CXX=' -expect_unresolved \*'
12843 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12844 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12845 echo "-hidden">> $lib.exp~
12846 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
12847 $RM $lib.exp'
12848 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12850 esac
12852 hardcode_libdir_separator_CXX=:
12854 # Commands to make compiler produce verbose output that lists
12855 # what "hidden" libraries, object files and flags are used when
12856 # linking a shared library.
12858 # There doesn't appear to be a way to prevent this compiler from
12859 # explicitly linking system object files so we need to strip them
12860 # from the output so that they don't get included in the library
12861 # dependencies.
12862 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12865 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12866 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12867 case $host in
12868 osf3*)
12869 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12872 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12874 esac
12876 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12877 hardcode_libdir_separator_CXX=:
12879 # Commands to make compiler produce verbose output that lists
12880 # what "hidden" libraries, object files and flags are used when
12881 # linking a shared library.
12882 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12884 else
12885 # FIXME: insert proper C++ library support
12886 ld_shlibs_CXX=no
12889 esac
12892 psos*)
12893 # FIXME: insert proper C++ library support
12894 ld_shlibs_CXX=no
12897 sunos4*)
12898 case $cc_basename in
12899 CC*)
12900 # Sun C++ 4.x
12901 # FIXME: insert proper C++ library support
12902 ld_shlibs_CXX=no
12904 lcc*)
12905 # Lucid
12906 # FIXME: insert proper C++ library support
12907 ld_shlibs_CXX=no
12910 # FIXME: insert proper C++ library support
12911 ld_shlibs_CXX=no
12913 esac
12916 solaris*)
12917 case $cc_basename in
12918 CC*)
12919 # Sun C++ 4.2, 5.x and Centerline C++
12920 archive_cmds_need_lc_CXX=yes
12921 no_undefined_flag_CXX=' -zdefs'
12922 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12923 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12924 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12926 hardcode_libdir_flag_spec_CXX='-R$libdir'
12927 hardcode_shlibpath_var_CXX=no
12928 case $host_os in
12929 solaris2.[0-5] | solaris2.[0-5].*) ;;
12931 # The compiler driver will combine and reorder linker options,
12932 # but understands `-z linker_flag'.
12933 # Supported since Solaris 2.6 (maybe 2.5.1?)
12934 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12936 esac
12937 link_all_deplibs_CXX=yes
12939 output_verbose_link_cmd='func_echo_all'
12941 # Archives containing C++ object files must be created using
12942 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12943 # necessary to make sure instantiated templates are included
12944 # in the archive.
12945 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12947 gcx*)
12948 # Green Hills C++ Compiler
12949 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12951 # The C++ compiler must be used to create the archive.
12952 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12955 # GNU C++ compiler with Solaris linker
12956 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12957 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12958 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12959 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12960 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12961 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12963 # Commands to make compiler produce verbose output that lists
12964 # what "hidden" libraries, object files and flags are used when
12965 # linking a shared library.
12966 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12967 else
12968 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12969 # platform.
12970 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12971 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12972 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12974 # Commands to make compiler produce verbose output that lists
12975 # what "hidden" libraries, object files and flags are used when
12976 # linking a shared library.
12977 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12980 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12981 case $host_os in
12982 solaris2.[0-5] | solaris2.[0-5].*) ;;
12984 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12986 esac
12989 esac
12992 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12993 no_undefined_flag_CXX='${wl}-z,text'
12994 archive_cmds_need_lc_CXX=no
12995 hardcode_shlibpath_var_CXX=no
12996 runpath_var='LD_RUN_PATH'
12998 case $cc_basename in
12999 CC*)
13000 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13001 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13004 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13005 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13007 esac
13010 sysv5* | sco3.2v5* | sco5v6*)
13011 # Note: We can NOT use -z defs as we might desire, because we do not
13012 # link with -lc, and that would cause any symbols used from libc to
13013 # always be unresolved, which means just about no library would
13014 # ever link correctly. If we're not using GNU ld we use -z text
13015 # though, which does catch some bad symbols but isn't as heavy-handed
13016 # as -z defs.
13017 no_undefined_flag_CXX='${wl}-z,text'
13018 allow_undefined_flag_CXX='${wl}-z,nodefs'
13019 archive_cmds_need_lc_CXX=no
13020 hardcode_shlibpath_var_CXX=no
13021 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13022 hardcode_libdir_separator_CXX=':'
13023 link_all_deplibs_CXX=yes
13024 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13025 runpath_var='LD_RUN_PATH'
13027 case $cc_basename in
13028 CC*)
13029 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13030 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13031 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13032 '"$old_archive_cmds_CXX"
13033 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13034 '"$reload_cmds_CXX"
13037 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13038 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13040 esac
13043 tandem*)
13044 case $cc_basename in
13045 NCC*)
13046 # NonStop-UX NCC 3.20
13047 # FIXME: insert proper C++ library support
13048 ld_shlibs_CXX=no
13051 # FIXME: insert proper C++ library support
13052 ld_shlibs_CXX=no
13054 esac
13057 vxworks*)
13058 # FIXME: insert proper C++ library support
13059 ld_shlibs_CXX=no
13063 # FIXME: insert proper C++ library support
13064 ld_shlibs_CXX=no
13066 esac
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13069 $as_echo "$ld_shlibs_CXX" >&6; }
13070 test "$ld_shlibs_CXX" = no && can_build_shared=no
13072 GCC_CXX="$GXX"
13073 LD_CXX="$LD"
13075 ## CAVEAT EMPTOR:
13076 ## There is no encapsulation within the following macros, do not change
13077 ## the running order or otherwise move them around unless you know exactly
13078 ## what you are doing...
13079 # Dependencies to place before and after the object being linked:
13080 predep_objects_CXX=
13081 postdep_objects_CXX=
13082 predeps_CXX=
13083 postdeps_CXX=
13084 compiler_lib_search_path_CXX=
13086 cat > conftest.$ac_ext <<_LT_EOF
13087 class Foo
13089 public:
13090 Foo (void) { a = 0; }
13091 private:
13092 int a;
13094 _LT_EOF
13096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13097 (eval $ac_compile) 2>&5
13098 ac_status=$?
13099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13100 test $ac_status = 0; }; then
13101 # Parse the compiler output and extract the necessary
13102 # objects, libraries and library flags.
13104 # Sentinel used to keep track of whether or not we are before
13105 # the conftest object file.
13106 pre_test_object_deps_done=no
13108 for p in `eval "$output_verbose_link_cmd"`; do
13109 case $p in
13111 -L* | -R* | -l*)
13112 # Some compilers place space between "-{L,R}" and the path.
13113 # Remove the space.
13114 if test $p = "-L" ||
13115 test $p = "-R"; then
13116 prev=$p
13117 continue
13118 else
13119 prev=
13122 if test "$pre_test_object_deps_done" = no; then
13123 case $p in
13124 -L* | -R*)
13125 # Internal compiler library paths should come after those
13126 # provided the user. The postdeps already come after the
13127 # user supplied libs so there is no need to process them.
13128 if test -z "$compiler_lib_search_path_CXX"; then
13129 compiler_lib_search_path_CXX="${prev}${p}"
13130 else
13131 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13134 # The "-l" case would never come before the object being
13135 # linked, so don't bother handling this case.
13136 esac
13137 else
13138 if test -z "$postdeps_CXX"; then
13139 postdeps_CXX="${prev}${p}"
13140 else
13141 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13146 *.$objext)
13147 # This assumes that the test object file only shows up
13148 # once in the compiler output.
13149 if test "$p" = "conftest.$objext"; then
13150 pre_test_object_deps_done=yes
13151 continue
13154 if test "$pre_test_object_deps_done" = no; then
13155 if test -z "$predep_objects_CXX"; then
13156 predep_objects_CXX="$p"
13157 else
13158 predep_objects_CXX="$predep_objects_CXX $p"
13160 else
13161 if test -z "$postdep_objects_CXX"; then
13162 postdep_objects_CXX="$p"
13163 else
13164 postdep_objects_CXX="$postdep_objects_CXX $p"
13169 *) ;; # Ignore the rest.
13171 esac
13172 done
13174 # Clean up.
13175 rm -f a.out a.exe
13176 else
13177 echo "libtool.m4: error: problem compiling CXX test program"
13180 $RM -f confest.$objext
13182 # PORTME: override above test on systems where it is broken
13183 case $host_os in
13184 interix[3-9]*)
13185 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13186 # hack all around it, let's just trust "g++" to DTRT.
13187 predep_objects_CXX=
13188 postdep_objects_CXX=
13189 postdeps_CXX=
13192 linux*)
13193 case `$CC -V 2>&1 | sed 5q` in
13194 *Sun\ C*)
13195 # Sun C++ 5.9
13197 # The more standards-conforming stlport4 library is
13198 # incompatible with the Cstd library. Avoid specifying
13199 # it if it's in CXXFLAGS. Ignore libCrun as
13200 # -library=stlport4 depends on it.
13201 case " $CXX $CXXFLAGS " in
13202 *" -library=stlport4 "*)
13203 solaris_use_stlport4=yes
13205 esac
13207 if test "$solaris_use_stlport4" != yes; then
13208 postdeps_CXX='-library=Cstd -library=Crun'
13211 esac
13214 solaris*)
13215 case $cc_basename in
13216 CC*)
13217 # The more standards-conforming stlport4 library is
13218 # incompatible with the Cstd library. Avoid specifying
13219 # it if it's in CXXFLAGS. Ignore libCrun as
13220 # -library=stlport4 depends on it.
13221 case " $CXX $CXXFLAGS " in
13222 *" -library=stlport4 "*)
13223 solaris_use_stlport4=yes
13225 esac
13227 # Adding this requires a known-good setup of shared libraries for
13228 # Sun compiler versions before 5.6, else PIC objects from an old
13229 # archive will be linked into the output, leading to subtle bugs.
13230 if test "$solaris_use_stlport4" != yes; then
13231 postdeps_CXX='-library=Cstd -library=Crun'
13234 esac
13236 esac
13239 case " $postdeps_CXX " in
13240 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13241 esac
13242 compiler_lib_search_dirs_CXX=
13243 if test -n "${compiler_lib_search_path_CXX}"; then
13244 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13277 lt_prog_compiler_wl_CXX=
13278 lt_prog_compiler_pic_CXX=
13279 lt_prog_compiler_static_CXX=
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13282 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13284 # C++ specific cases for pic, static, wl, etc.
13285 if test "$GXX" = yes; then
13286 lt_prog_compiler_wl_CXX='-Wl,'
13287 lt_prog_compiler_static_CXX='-static'
13289 case $host_os in
13290 aix*)
13291 # All AIX code is PIC.
13292 if test "$host_cpu" = ia64; then
13293 # AIX 5 now supports IA64 processor
13294 lt_prog_compiler_static_CXX='-Bstatic'
13296 lt_prog_compiler_pic_CXX='-fPIC'
13299 amigaos*)
13300 case $host_cpu in
13301 powerpc)
13302 # see comment about AmigaOS4 .so support
13303 lt_prog_compiler_pic_CXX='-fPIC'
13305 m68k)
13306 # FIXME: we need at least 68020 code to build shared libraries, but
13307 # adding the `-m68020' flag to GCC prevents building anything better,
13308 # like `-m68040'.
13309 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13311 esac
13314 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13315 # PIC is the default for these OSes.
13317 mingw* | cygwin* | os2* | pw32* | cegcc*)
13318 # This hack is so that the source file can tell whether it is being
13319 # built for inclusion in a dll (and should export symbols for example).
13320 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13321 # (--disable-auto-import) libraries
13322 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13324 darwin* | rhapsody*)
13325 # PIC is the default on this platform
13326 # Common symbols not allowed in MH_DYLIB files
13327 lt_prog_compiler_pic_CXX='-fno-common'
13329 *djgpp*)
13330 # DJGPP does not support shared libraries at all
13331 lt_prog_compiler_pic_CXX=
13333 haiku*)
13334 # PIC is the default for Haiku.
13335 # The "-static" flag exists, but is broken.
13336 lt_prog_compiler_static_CXX=
13338 interix[3-9]*)
13339 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13340 # Instead, we relocate shared libraries at runtime.
13342 sysv4*MP*)
13343 if test -d /usr/nec; then
13344 lt_prog_compiler_pic_CXX=-Kconform_pic
13347 hpux*)
13348 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13349 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13350 # sets the default TLS model and affects inlining.
13351 case $host_cpu in
13352 hppa*64*)
13355 lt_prog_compiler_pic_CXX='-fPIC'
13357 esac
13359 *qnx* | *nto*)
13360 # QNX uses GNU C++, but need to define -shared option too, otherwise
13361 # it will coredump.
13362 lt_prog_compiler_pic_CXX='-fPIC -shared'
13365 lt_prog_compiler_pic_CXX='-fPIC'
13367 esac
13368 else
13369 case $host_os in
13370 aix[4-9]*)
13371 # All AIX code is PIC.
13372 if test "$host_cpu" = ia64; then
13373 # AIX 5 now supports IA64 processor
13374 lt_prog_compiler_static_CXX='-Bstatic'
13375 else
13376 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13379 chorus*)
13380 case $cc_basename in
13381 cxch68*)
13382 # Green Hills C++ Compiler
13383 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13385 esac
13387 dgux*)
13388 case $cc_basename in
13389 ec++*)
13390 lt_prog_compiler_pic_CXX='-KPIC'
13392 ghcx*)
13393 # Green Hills C++ Compiler
13394 lt_prog_compiler_pic_CXX='-pic'
13398 esac
13400 freebsd* | dragonfly*)
13401 # FreeBSD uses GNU C++
13403 hpux9* | hpux10* | hpux11*)
13404 case $cc_basename in
13405 CC*)
13406 lt_prog_compiler_wl_CXX='-Wl,'
13407 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13408 if test "$host_cpu" != ia64; then
13409 lt_prog_compiler_pic_CXX='+Z'
13412 aCC*)
13413 lt_prog_compiler_wl_CXX='-Wl,'
13414 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13415 case $host_cpu in
13416 hppa*64*|ia64*)
13417 # +Z the default
13420 lt_prog_compiler_pic_CXX='+Z'
13422 esac
13426 esac
13428 interix*)
13429 # This is c89, which is MS Visual C++ (no shared libs)
13430 # Anyone wants to do a port?
13432 irix5* | irix6* | nonstopux*)
13433 case $cc_basename in
13434 CC*)
13435 lt_prog_compiler_wl_CXX='-Wl,'
13436 lt_prog_compiler_static_CXX='-non_shared'
13437 # CC pic flag -KPIC is the default.
13441 esac
13443 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13444 case $cc_basename in
13445 KCC*)
13446 # KAI C++ Compiler
13447 lt_prog_compiler_wl_CXX='--backend -Wl,'
13448 lt_prog_compiler_pic_CXX='-fPIC'
13450 ecpc* )
13451 # old Intel C++ for x86_64 which still supported -KPIC.
13452 lt_prog_compiler_wl_CXX='-Wl,'
13453 lt_prog_compiler_pic_CXX='-KPIC'
13454 lt_prog_compiler_static_CXX='-static'
13456 icpc* )
13457 # Intel C++, used to be incompatible with GCC.
13458 # ICC 10 doesn't accept -KPIC any more.
13459 lt_prog_compiler_wl_CXX='-Wl,'
13460 lt_prog_compiler_pic_CXX='-fPIC'
13461 lt_prog_compiler_static_CXX='-static'
13463 pgCC* | pgcpp*)
13464 # Portland Group C++ compiler
13465 lt_prog_compiler_wl_CXX='-Wl,'
13466 lt_prog_compiler_pic_CXX='-fpic'
13467 lt_prog_compiler_static_CXX='-Bstatic'
13469 cxx*)
13470 # Compaq C++
13471 # Make sure the PIC flag is empty. It appears that all Alpha
13472 # Linux and Compaq Tru64 Unix objects are PIC.
13473 lt_prog_compiler_pic_CXX=
13474 lt_prog_compiler_static_CXX='-non_shared'
13476 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13477 # IBM XL 8.0, 9.0 on PPC and BlueGene
13478 lt_prog_compiler_wl_CXX='-Wl,'
13479 lt_prog_compiler_pic_CXX='-qpic'
13480 lt_prog_compiler_static_CXX='-qstaticlink'
13483 case `$CC -V 2>&1 | sed 5q` in
13484 *Sun\ C*)
13485 # Sun C++ 5.9
13486 lt_prog_compiler_pic_CXX='-KPIC'
13487 lt_prog_compiler_static_CXX='-Bstatic'
13488 lt_prog_compiler_wl_CXX='-Qoption ld '
13490 esac
13492 esac
13494 lynxos*)
13496 m88k*)
13498 mvs*)
13499 case $cc_basename in
13500 cxx*)
13501 lt_prog_compiler_pic_CXX='-W c,exportall'
13505 esac
13507 netbsd*)
13509 *qnx* | *nto*)
13510 # QNX uses GNU C++, but need to define -shared option too, otherwise
13511 # it will coredump.
13512 lt_prog_compiler_pic_CXX='-fPIC -shared'
13514 osf3* | osf4* | osf5*)
13515 case $cc_basename in
13516 KCC*)
13517 lt_prog_compiler_wl_CXX='--backend -Wl,'
13519 RCC*)
13520 # Rational C++ 2.4.1
13521 lt_prog_compiler_pic_CXX='-pic'
13523 cxx*)
13524 # Digital/Compaq C++
13525 lt_prog_compiler_wl_CXX='-Wl,'
13526 # Make sure the PIC flag is empty. It appears that all Alpha
13527 # Linux and Compaq Tru64 Unix objects are PIC.
13528 lt_prog_compiler_pic_CXX=
13529 lt_prog_compiler_static_CXX='-non_shared'
13533 esac
13535 psos*)
13537 solaris*)
13538 case $cc_basename in
13539 CC*)
13540 # Sun C++ 4.2, 5.x and Centerline C++
13541 lt_prog_compiler_pic_CXX='-KPIC'
13542 lt_prog_compiler_static_CXX='-Bstatic'
13543 lt_prog_compiler_wl_CXX='-Qoption ld '
13545 gcx*)
13546 # Green Hills C++ Compiler
13547 lt_prog_compiler_pic_CXX='-PIC'
13551 esac
13553 sunos4*)
13554 case $cc_basename in
13555 CC*)
13556 # Sun C++ 4.x
13557 lt_prog_compiler_pic_CXX='-pic'
13558 lt_prog_compiler_static_CXX='-Bstatic'
13560 lcc*)
13561 # Lucid
13562 lt_prog_compiler_pic_CXX='-pic'
13566 esac
13568 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13569 case $cc_basename in
13570 CC*)
13571 lt_prog_compiler_wl_CXX='-Wl,'
13572 lt_prog_compiler_pic_CXX='-KPIC'
13573 lt_prog_compiler_static_CXX='-Bstatic'
13575 esac
13577 tandem*)
13578 case $cc_basename in
13579 NCC*)
13580 # NonStop-UX NCC 3.20
13581 lt_prog_compiler_pic_CXX='-KPIC'
13585 esac
13587 vxworks*)
13590 lt_prog_compiler_can_build_shared_CXX=no
13592 esac
13595 case $host_os in
13596 # For platforms which do not support PIC, -DPIC is meaningless:
13597 *djgpp*)
13598 lt_prog_compiler_pic_CXX=
13601 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13603 esac
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13605 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13610 # Check to make sure the PIC flag actually works.
13612 if test -n "$lt_prog_compiler_pic_CXX"; then
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13614 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13615 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13616 $as_echo_n "(cached) " >&6
13617 else
13618 lt_cv_prog_compiler_pic_works_CXX=no
13619 ac_outfile=conftest.$ac_objext
13620 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13621 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13622 # Insert the option either (1) after the last *FLAGS variable, or
13623 # (2) before a word containing "conftest.", or (3) at the end.
13624 # Note that $ac_compile itself does not contain backslashes and begins
13625 # with a dollar sign (not a hyphen), so the echo should work correctly.
13626 # The option is referenced via a variable to avoid confusing sed.
13627 lt_compile=`echo "$ac_compile" | $SED \
13628 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13629 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13630 -e 's:$: $lt_compiler_flag:'`
13631 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13632 (eval "$lt_compile" 2>conftest.err)
13633 ac_status=$?
13634 cat conftest.err >&5
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 if (exit $ac_status) && test -s "$ac_outfile"; then
13637 # The compiler can only warn and ignore the option if not recognized
13638 # So say no if there are warnings other than the usual output.
13639 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13640 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13641 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13642 lt_cv_prog_compiler_pic_works_CXX=yes
13645 $RM conftest*
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13649 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13651 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13652 case $lt_prog_compiler_pic_CXX in
13653 "" | " "*) ;;
13654 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13655 esac
13656 else
13657 lt_prog_compiler_pic_CXX=
13658 lt_prog_compiler_can_build_shared_CXX=no
13666 # Check to make sure the static flag actually works.
13668 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13670 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13671 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13672 $as_echo_n "(cached) " >&6
13673 else
13674 lt_cv_prog_compiler_static_works_CXX=no
13675 save_LDFLAGS="$LDFLAGS"
13676 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13677 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13678 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13679 # The linker can only warn and ignore the option if not recognized
13680 # So say no if there are warnings
13681 if test -s conftest.err; then
13682 # Append any errors to the config.log.
13683 cat conftest.err 1>&5
13684 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13685 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13686 if diff conftest.exp conftest.er2 >/dev/null; then
13687 lt_cv_prog_compiler_static_works_CXX=yes
13689 else
13690 lt_cv_prog_compiler_static_works_CXX=yes
13693 $RM -r conftest*
13694 LDFLAGS="$save_LDFLAGS"
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13698 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13700 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13702 else
13703 lt_prog_compiler_static_CXX=
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13710 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13711 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13712 $as_echo_n "(cached) " >&6
13713 else
13714 lt_cv_prog_compiler_c_o_CXX=no
13715 $RM -r conftest 2>/dev/null
13716 mkdir conftest
13717 cd conftest
13718 mkdir out
13719 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13721 lt_compiler_flag="-o out/conftest2.$ac_objext"
13722 # Insert the option either (1) after the last *FLAGS variable, or
13723 # (2) before a word containing "conftest.", or (3) at the end.
13724 # Note that $ac_compile itself does not contain backslashes and begins
13725 # with a dollar sign (not a hyphen), so the echo should work correctly.
13726 lt_compile=`echo "$ac_compile" | $SED \
13727 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13728 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13729 -e 's:$: $lt_compiler_flag:'`
13730 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13731 (eval "$lt_compile" 2>out/conftest.err)
13732 ac_status=$?
13733 cat out/conftest.err >&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13736 then
13737 # The compiler can only warn and ignore the option if not recognized
13738 # So say no if there are warnings
13739 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13740 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13741 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13742 lt_cv_prog_compiler_c_o_CXX=yes
13745 chmod u+w . 2>&5
13746 $RM conftest*
13747 # SGI C++ compiler will create directory out/ii_files/ for
13748 # template instantiation
13749 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13750 $RM out/* && rmdir out
13751 cd ..
13752 $RM -r conftest
13753 $RM conftest*
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13757 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13762 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13763 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13764 $as_echo_n "(cached) " >&6
13765 else
13766 lt_cv_prog_compiler_c_o_CXX=no
13767 $RM -r conftest 2>/dev/null
13768 mkdir conftest
13769 cd conftest
13770 mkdir out
13771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13773 lt_compiler_flag="-o out/conftest2.$ac_objext"
13774 # Insert the option either (1) after the last *FLAGS variable, or
13775 # (2) before a word containing "conftest.", or (3) at the end.
13776 # Note that $ac_compile itself does not contain backslashes and begins
13777 # with a dollar sign (not a hyphen), so the echo should work correctly.
13778 lt_compile=`echo "$ac_compile" | $SED \
13779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13781 -e 's:$: $lt_compiler_flag:'`
13782 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13783 (eval "$lt_compile" 2>out/conftest.err)
13784 ac_status=$?
13785 cat out/conftest.err >&5
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13788 then
13789 # The compiler can only warn and ignore the option if not recognized
13790 # So say no if there are warnings
13791 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13792 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13793 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13794 lt_cv_prog_compiler_c_o_CXX=yes
13797 chmod u+w . 2>&5
13798 $RM conftest*
13799 # SGI C++ compiler will create directory out/ii_files/ for
13800 # template instantiation
13801 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13802 $RM out/* && rmdir out
13803 cd ..
13804 $RM -r conftest
13805 $RM conftest*
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13809 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13814 hard_links="nottested"
13815 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13816 # do not overwrite the value of need_locks provided by the user
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13818 $as_echo_n "checking if we can lock with hard links... " >&6; }
13819 hard_links=yes
13820 $RM conftest*
13821 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13822 touch conftest.a
13823 ln conftest.a conftest.b 2>&5 || hard_links=no
13824 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13826 $as_echo "$hard_links" >&6; }
13827 if test "$hard_links" = no; then
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13829 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13830 need_locks=warn
13832 else
13833 need_locks=no
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13839 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13841 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13842 case $host_os in
13843 aix[4-9]*)
13844 # If we're using GNU nm, then we don't want the "-C" option.
13845 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13846 # Also, AIX nm treats weak defined symbols like other global defined
13847 # symbols, whereas GNU nm marks them as "W".
13848 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13849 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13850 else
13851 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13854 pw32*)
13855 export_symbols_cmds_CXX="$ltdll_cmds"
13857 cygwin* | mingw* | cegcc*)
13858 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13861 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13863 esac
13864 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13867 $as_echo "$ld_shlibs_CXX" >&6; }
13868 test "$ld_shlibs_CXX" = no && can_build_shared=no
13870 with_gnu_ld_CXX=$with_gnu_ld
13878 # Do we need to explicitly link libc?
13880 case "x$archive_cmds_need_lc_CXX" in
13881 x|xyes)
13882 # Assume -lc should be added
13883 archive_cmds_need_lc_CXX=yes
13885 if test "$enable_shared" = yes && test "$GCC" = yes; then
13886 case $archive_cmds_CXX in
13887 *'~'*)
13888 # FIXME: we may have to deal with multi-command sequences.
13890 '$CC '*)
13891 # Test whether the compiler implicitly links with -lc since on some
13892 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13893 # to ld, don't add -lc before -lgcc.
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13895 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13896 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13897 $as_echo_n "(cached) " >&6
13898 else
13899 $RM conftest*
13900 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13903 (eval $ac_compile) 2>&5
13904 ac_status=$?
13905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13906 test $ac_status = 0; } 2>conftest.err; then
13907 soname=conftest
13908 lib=conftest
13909 libobjs=conftest.$ac_objext
13910 deplibs=
13911 wl=$lt_prog_compiler_wl_CXX
13912 pic_flag=$lt_prog_compiler_pic_CXX
13913 compiler_flags=-v
13914 linker_flags=-v
13915 verstring=
13916 output_objdir=.
13917 libname=conftest
13918 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13919 allow_undefined_flag_CXX=
13920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13921 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13922 ac_status=$?
13923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13924 test $ac_status = 0; }
13925 then
13926 lt_cv_archive_cmds_need_lc_CXX=no
13927 else
13928 lt_cv_archive_cmds_need_lc_CXX=yes
13930 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13931 else
13932 cat conftest.err 1>&5
13934 $RM conftest*
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13938 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13939 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13941 esac
13944 esac
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14010 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14012 library_names_spec=
14013 libname_spec='lib$name'
14014 soname_spec=
14015 shrext_cmds=".so"
14016 postinstall_cmds=
14017 postuninstall_cmds=
14018 finish_cmds=
14019 finish_eval=
14020 shlibpath_var=
14021 shlibpath_overrides_runpath=unknown
14022 version_type=none
14023 dynamic_linker="$host_os ld.so"
14024 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14025 need_lib_prefix=unknown
14026 hardcode_into_libs=no
14028 # when you set need_version to no, make sure it does not cause -set_version
14029 # flags to be left without arguments
14030 need_version=unknown
14032 case $host_os in
14033 aix3*)
14034 version_type=linux
14035 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14036 shlibpath_var=LIBPATH
14038 # AIX 3 has no versioning support, so we append a major version to the name.
14039 soname_spec='${libname}${release}${shared_ext}$major'
14042 aix[4-9]*)
14043 version_type=linux
14044 need_lib_prefix=no
14045 need_version=no
14046 hardcode_into_libs=yes
14047 if test "$host_cpu" = ia64; then
14048 # AIX 5 supports IA64
14049 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14050 shlibpath_var=LD_LIBRARY_PATH
14051 else
14052 # With GCC up to 2.95.x, collect2 would create an import file
14053 # for dependence libraries. The import file would start with
14054 # the line `#! .'. This would cause the generated library to
14055 # depend on `.', always an invalid library. This was fixed in
14056 # development snapshots of GCC prior to 3.0.
14057 case $host_os in
14058 aix4 | aix4.[01] | aix4.[01].*)
14059 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14060 echo ' yes '
14061 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14063 else
14064 can_build_shared=no
14067 esac
14068 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14069 # soname into executable. Probably we can add versioning support to
14070 # collect2, so additional links can be useful in future.
14071 if test "$aix_use_runtimelinking" = yes; then
14072 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14073 # instead of lib<name>.a to let people know that these are not
14074 # typical AIX shared libraries.
14075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14076 else
14077 # We preserve .a as extension for shared libraries through AIX4.2
14078 # and later when we are not doing run time linking.
14079 library_names_spec='${libname}${release}.a $libname.a'
14080 soname_spec='${libname}${release}${shared_ext}$major'
14082 shlibpath_var=LIBPATH
14086 amigaos*)
14087 case $host_cpu in
14088 powerpc)
14089 # Since July 2007 AmigaOS4 officially supports .so libraries.
14090 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14093 m68k)
14094 library_names_spec='$libname.ixlibrary $libname.a'
14095 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14096 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'
14098 esac
14101 beos*)
14102 library_names_spec='${libname}${shared_ext}'
14103 dynamic_linker="$host_os ld.so"
14104 shlibpath_var=LIBRARY_PATH
14107 bsdi[45]*)
14108 version_type=linux
14109 need_version=no
14110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14111 soname_spec='${libname}${release}${shared_ext}$major'
14112 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14113 shlibpath_var=LD_LIBRARY_PATH
14114 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14115 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14116 # the default ld.so.conf also contains /usr/contrib/lib and
14117 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14118 # libtool to hard-code these into programs
14121 cygwin* | mingw* | pw32* | cegcc*)
14122 version_type=windows
14123 shrext_cmds=".dll"
14124 need_version=no
14125 need_lib_prefix=no
14127 case $GCC,$host_os in
14128 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14129 library_names_spec='$libname.dll.a'
14130 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14131 postinstall_cmds='base_file=`basename \${file}`~
14132 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14133 dldir=$destdir/`dirname \$dlpath`~
14134 test -d \$dldir || mkdir -p \$dldir~
14135 $install_prog $dir/$dlname \$dldir/$dlname~
14136 chmod a+x \$dldir/$dlname~
14137 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14138 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14140 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14141 dlpath=$dir/\$dldll~
14142 $RM \$dlpath'
14143 shlibpath_overrides_runpath=yes
14145 case $host_os in
14146 cygwin*)
14147 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14148 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14151 mingw* | cegcc*)
14152 # MinGW DLLs use traditional 'lib' prefix
14153 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14155 pw32*)
14156 # pw32 DLLs use 'pw' prefix rather than 'lib'
14157 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14159 esac
14163 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14165 esac
14166 dynamic_linker='Win32 ld.exe'
14167 # FIXME: first we should search . and the directory the executable is in
14168 shlibpath_var=PATH
14171 darwin* | rhapsody*)
14172 dynamic_linker="$host_os dyld"
14173 version_type=darwin
14174 need_lib_prefix=no
14175 need_version=no
14176 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14177 soname_spec='${libname}${release}${major}$shared_ext'
14178 shlibpath_overrides_runpath=yes
14179 shlibpath_var=DYLD_LIBRARY_PATH
14180 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14182 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14185 dgux*)
14186 version_type=linux
14187 need_lib_prefix=no
14188 need_version=no
14189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14190 soname_spec='${libname}${release}${shared_ext}$major'
14191 shlibpath_var=LD_LIBRARY_PATH
14194 freebsd* | dragonfly*)
14195 # DragonFly does not have aout. When/if they implement a new
14196 # versioning mechanism, adjust this.
14197 if test -x /usr/bin/objformat; then
14198 objformat=`/usr/bin/objformat`
14199 else
14200 case $host_os in
14201 freebsd[23].*) objformat=aout ;;
14202 *) objformat=elf ;;
14203 esac
14205 version_type=freebsd-$objformat
14206 case $version_type in
14207 freebsd-elf*)
14208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14209 need_version=no
14210 need_lib_prefix=no
14212 freebsd-*)
14213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14214 need_version=yes
14216 esac
14217 shlibpath_var=LD_LIBRARY_PATH
14218 case $host_os in
14219 freebsd2.*)
14220 shlibpath_overrides_runpath=yes
14222 freebsd3.[01]* | freebsdelf3.[01]*)
14223 shlibpath_overrides_runpath=yes
14224 hardcode_into_libs=yes
14226 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14227 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14228 shlibpath_overrides_runpath=no
14229 hardcode_into_libs=yes
14231 *) # from 4.6 on, and DragonFly
14232 shlibpath_overrides_runpath=yes
14233 hardcode_into_libs=yes
14235 esac
14238 gnu*)
14239 version_type=linux
14240 need_lib_prefix=no
14241 need_version=no
14242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14243 soname_spec='${libname}${release}${shared_ext}$major'
14244 shlibpath_var=LD_LIBRARY_PATH
14245 hardcode_into_libs=yes
14248 haiku*)
14249 version_type=linux
14250 need_lib_prefix=no
14251 need_version=no
14252 dynamic_linker="$host_os runtime_loader"
14253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14254 soname_spec='${libname}${release}${shared_ext}$major'
14255 shlibpath_var=LIBRARY_PATH
14256 shlibpath_overrides_runpath=yes
14257 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14258 hardcode_into_libs=yes
14261 hpux9* | hpux10* | hpux11*)
14262 # Give a soname corresponding to the major version so that dld.sl refuses to
14263 # link against other versions.
14264 version_type=sunos
14265 need_lib_prefix=no
14266 need_version=no
14267 case $host_cpu in
14268 ia64*)
14269 shrext_cmds='.so'
14270 hardcode_into_libs=yes
14271 dynamic_linker="$host_os dld.so"
14272 shlibpath_var=LD_LIBRARY_PATH
14273 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14275 soname_spec='${libname}${release}${shared_ext}$major'
14276 if test "X$HPUX_IA64_MODE" = X32; then
14277 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14278 else
14279 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14281 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14283 hppa*64*)
14284 shrext_cmds='.sl'
14285 hardcode_into_libs=yes
14286 dynamic_linker="$host_os dld.sl"
14287 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14288 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14290 soname_spec='${libname}${release}${shared_ext}$major'
14291 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14292 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14295 shrext_cmds='.sl'
14296 dynamic_linker="$host_os dld.sl"
14297 shlibpath_var=SHLIB_PATH
14298 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14300 soname_spec='${libname}${release}${shared_ext}$major'
14302 esac
14303 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14304 postinstall_cmds='chmod 555 $lib'
14305 # or fails outright, so override atomically:
14306 install_override_mode=555
14309 interix[3-9]*)
14310 version_type=linux
14311 need_lib_prefix=no
14312 need_version=no
14313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14314 soname_spec='${libname}${release}${shared_ext}$major'
14315 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14316 shlibpath_var=LD_LIBRARY_PATH
14317 shlibpath_overrides_runpath=no
14318 hardcode_into_libs=yes
14321 irix5* | irix6* | nonstopux*)
14322 case $host_os in
14323 nonstopux*) version_type=nonstopux ;;
14325 if test "$lt_cv_prog_gnu_ld" = yes; then
14326 version_type=linux
14327 else
14328 version_type=irix
14329 fi ;;
14330 esac
14331 need_lib_prefix=no
14332 need_version=no
14333 soname_spec='${libname}${release}${shared_ext}$major'
14334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14335 case $host_os in
14336 irix5* | nonstopux*)
14337 libsuff= shlibsuff=
14340 case $LD in # libtool.m4 will add one of these switches to LD
14341 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14342 libsuff= shlibsuff= libmagic=32-bit;;
14343 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14344 libsuff=32 shlibsuff=N32 libmagic=N32;;
14345 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14346 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14347 *) libsuff= shlibsuff= libmagic=never-match;;
14348 esac
14350 esac
14351 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14352 shlibpath_overrides_runpath=no
14353 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14354 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14355 hardcode_into_libs=yes
14358 # No shared lib support for Linux oldld, aout, or coff.
14359 linux*oldld* | linux*aout* | linux*coff*)
14360 dynamic_linker=no
14363 # This must be Linux ELF.
14364 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14365 version_type=linux
14366 need_lib_prefix=no
14367 need_version=no
14368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14369 soname_spec='${libname}${release}${shared_ext}$major'
14370 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14371 shlibpath_var=LD_LIBRARY_PATH
14372 shlibpath_overrides_runpath=no
14374 # Some binutils ld are patched to set DT_RUNPATH
14375 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14376 $as_echo_n "(cached) " >&6
14377 else
14378 lt_cv_shlibpath_overrides_runpath=no
14379 save_LDFLAGS=$LDFLAGS
14380 save_libdir=$libdir
14381 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14382 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14384 /* end confdefs.h. */
14387 main ()
14391 return 0;
14393 _ACEOF
14394 if ac_fn_cxx_try_link "$LINENO"; then :
14395 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14396 lt_cv_shlibpath_overrides_runpath=yes
14399 rm -f core conftest.err conftest.$ac_objext \
14400 conftest$ac_exeext conftest.$ac_ext
14401 LDFLAGS=$save_LDFLAGS
14402 libdir=$save_libdir
14406 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14408 # This implies no fast_install, which is unacceptable.
14409 # Some rework will be needed to allow for fast_install
14410 # before this can be enabled.
14411 hardcode_into_libs=yes
14413 # Append ld.so.conf contents to the search path
14414 if test -f /etc/ld.so.conf; then
14415 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' ' '`
14416 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14419 # We used to test for /lib/ld.so.1 and disable shared libraries on
14420 # powerpc, because MkLinux only supported shared libraries with the
14421 # GNU dynamic linker. Since this was broken with cross compilers,
14422 # most powerpc-linux boxes support dynamic linking these days and
14423 # people can always --disable-shared, the test was removed, and we
14424 # assume the GNU/Linux dynamic linker is in use.
14425 dynamic_linker='GNU/Linux ld.so'
14428 netbsd*)
14429 version_type=sunos
14430 need_lib_prefix=no
14431 need_version=no
14432 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14435 dynamic_linker='NetBSD (a.out) ld.so'
14436 else
14437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14438 soname_spec='${libname}${release}${shared_ext}$major'
14439 dynamic_linker='NetBSD ld.elf_so'
14441 shlibpath_var=LD_LIBRARY_PATH
14442 shlibpath_overrides_runpath=yes
14443 hardcode_into_libs=yes
14446 newsos6)
14447 version_type=linux
14448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14449 shlibpath_var=LD_LIBRARY_PATH
14450 shlibpath_overrides_runpath=yes
14453 *nto* | *qnx*)
14454 version_type=qnx
14455 need_lib_prefix=no
14456 need_version=no
14457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14458 soname_spec='${libname}${release}${shared_ext}$major'
14459 shlibpath_var=LD_LIBRARY_PATH
14460 shlibpath_overrides_runpath=no
14461 hardcode_into_libs=yes
14462 dynamic_linker='ldqnx.so'
14465 openbsd*)
14466 version_type=sunos
14467 sys_lib_dlsearch_path_spec="/usr/lib"
14468 need_lib_prefix=no
14469 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14470 case $host_os in
14471 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14472 *) need_version=no ;;
14473 esac
14474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14475 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14476 shlibpath_var=LD_LIBRARY_PATH
14477 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14478 case $host_os in
14479 openbsd2.[89] | openbsd2.[89].*)
14480 shlibpath_overrides_runpath=no
14483 shlibpath_overrides_runpath=yes
14485 esac
14486 else
14487 shlibpath_overrides_runpath=yes
14491 os2*)
14492 libname_spec='$name'
14493 shrext_cmds=".dll"
14494 need_lib_prefix=no
14495 library_names_spec='$libname${shared_ext} $libname.a'
14496 dynamic_linker='OS/2 ld.exe'
14497 shlibpath_var=LIBPATH
14500 osf3* | osf4* | osf5*)
14501 version_type=osf
14502 need_lib_prefix=no
14503 need_version=no
14504 soname_spec='${libname}${release}${shared_ext}$major'
14505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14506 shlibpath_var=LD_LIBRARY_PATH
14507 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14508 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14511 rdos*)
14512 dynamic_linker=no
14515 solaris*)
14516 version_type=linux
14517 need_lib_prefix=no
14518 need_version=no
14519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14520 soname_spec='${libname}${release}${shared_ext}$major'
14521 shlibpath_var=LD_LIBRARY_PATH
14522 shlibpath_overrides_runpath=yes
14523 hardcode_into_libs=yes
14524 # ldd complains unless libraries are executable
14525 postinstall_cmds='chmod +x $lib'
14528 sunos4*)
14529 version_type=sunos
14530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14531 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14532 shlibpath_var=LD_LIBRARY_PATH
14533 shlibpath_overrides_runpath=yes
14534 if test "$with_gnu_ld" = yes; then
14535 need_lib_prefix=no
14537 need_version=yes
14540 sysv4 | sysv4.3*)
14541 version_type=linux
14542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14543 soname_spec='${libname}${release}${shared_ext}$major'
14544 shlibpath_var=LD_LIBRARY_PATH
14545 case $host_vendor in
14546 sni)
14547 shlibpath_overrides_runpath=no
14548 need_lib_prefix=no
14549 runpath_var=LD_RUN_PATH
14551 siemens)
14552 need_lib_prefix=no
14554 motorola)
14555 need_lib_prefix=no
14556 need_version=no
14557 shlibpath_overrides_runpath=no
14558 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14560 esac
14563 sysv4*MP*)
14564 if test -d /usr/nec ;then
14565 version_type=linux
14566 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14567 soname_spec='$libname${shared_ext}.$major'
14568 shlibpath_var=LD_LIBRARY_PATH
14572 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14573 version_type=freebsd-elf
14574 need_lib_prefix=no
14575 need_version=no
14576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14577 soname_spec='${libname}${release}${shared_ext}$major'
14578 shlibpath_var=LD_LIBRARY_PATH
14579 shlibpath_overrides_runpath=yes
14580 hardcode_into_libs=yes
14581 if test "$with_gnu_ld" = yes; then
14582 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14583 else
14584 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14585 case $host_os in
14586 sco3.2v5*)
14587 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14589 esac
14591 sys_lib_dlsearch_path_spec='/usr/lib'
14594 tpf*)
14595 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14596 version_type=linux
14597 need_lib_prefix=no
14598 need_version=no
14599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14600 shlibpath_var=LD_LIBRARY_PATH
14601 shlibpath_overrides_runpath=no
14602 hardcode_into_libs=yes
14605 uts4*)
14606 version_type=linux
14607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14608 soname_spec='${libname}${release}${shared_ext}$major'
14609 shlibpath_var=LD_LIBRARY_PATH
14613 dynamic_linker=no
14615 esac
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14617 $as_echo "$dynamic_linker" >&6; }
14618 test "$dynamic_linker" = no && can_build_shared=no
14620 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14621 if test "$GCC" = yes; then
14622 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14625 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14626 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14628 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14629 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14670 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14671 hardcode_action_CXX=
14672 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14673 test -n "$runpath_var_CXX" ||
14674 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14676 # We can hardcode non-existent directories.
14677 if test "$hardcode_direct_CXX" != no &&
14678 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14679 # have to relink, otherwise we might link with an installed library
14680 # when we should be linking with a yet-to-be-installed one
14681 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14682 test "$hardcode_minus_L_CXX" != no; then
14683 # Linking always hardcodes the temporary library directory.
14684 hardcode_action_CXX=relink
14685 else
14686 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14687 hardcode_action_CXX=immediate
14689 else
14690 # We cannot hardcode anything, or else we can only hardcode existing
14691 # directories.
14692 hardcode_action_CXX=unsupported
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14695 $as_echo "$hardcode_action_CXX" >&6; }
14697 if test "$hardcode_action_CXX" = relink ||
14698 test "$inherit_rpath_CXX" = yes; then
14699 # Fast installation is not supported
14700 enable_fast_install=no
14701 elif test "$shlibpath_overrides_runpath" = yes ||
14702 test "$enable_shared" = no; then
14703 # Fast installation is not necessary
14704 enable_fast_install=needless
14713 fi # test -n "$compiler"
14715 CC=$lt_save_CC
14716 LDCXX=$LD
14717 LD=$lt_save_LD
14718 GCC=$lt_save_GCC
14719 with_gnu_ld=$lt_save_with_gnu_ld
14720 lt_cv_path_LDCXX=$lt_cv_path_LD
14721 lt_cv_path_LD=$lt_save_path_LD
14722 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14723 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14724 fi # test "$_lt_caught_CXX_error" != yes
14726 ac_ext=c
14727 ac_cpp='$CPP $CPPFLAGS'
14728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14744 ac_config_commands="$ac_config_commands libtool"
14749 # Only expand once:
14753 # Test for 64-bit build.
14754 # The cast to long int works around a bug in the HP C Compiler
14755 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14756 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14757 # This bug is HP SR number 8606223364.
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14759 $as_echo_n "checking size of size_t... " >&6; }
14760 if test "${ac_cv_sizeof_size_t+set}" = set; then :
14761 $as_echo_n "(cached) " >&6
14762 else
14763 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
14765 else
14766 if test "$ac_cv_type_size_t" = yes; then
14767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14769 { as_fn_set_status 77
14770 as_fn_error "cannot compute sizeof (size_t)
14771 See \`config.log' for more details." "$LINENO" 5; }; }
14772 else
14773 ac_cv_sizeof_size_t=0
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14779 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14783 cat >>confdefs.h <<_ACEOF
14784 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14785 _ACEOF
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14791 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14792 # Check whether --enable-maintainer-mode was given.
14793 if test "${enable_maintainer_mode+set}" = set; then :
14794 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14795 else
14796 USE_MAINTAINER_MODE=no
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14800 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14801 if test $USE_MAINTAINER_MODE = yes; then
14802 MAINTAINER_MODE_TRUE=
14803 MAINTAINER_MODE_FALSE='#'
14804 else
14805 MAINTAINER_MODE_TRUE='#'
14806 MAINTAINER_MODE_FALSE=
14809 MAINT=$MAINTAINER_MODE_TRUE
14813 for ac_header in sys/mman.h
14814 do :
14815 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
14816 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
14817 cat >>confdefs.h <<_ACEOF
14818 #define HAVE_SYS_MMAN_H 1
14819 _ACEOF
14823 done
14825 for ac_func in mmap mkostemp
14826 do :
14827 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14828 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14829 eval as_val=\$$as_ac_var
14830 if test "x$as_val" = x""yes; then :
14831 cat >>confdefs.h <<_ACEOF
14832 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14833 _ACEOF
14836 done
14839 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
14840 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
14841 libffi_header_sys_mman_h=yes
14842 else
14843 libffi_header_sys_mman_h=no
14847 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
14848 if test "x$ac_cv_func_mmap" = x""yes; then :
14849 libffi_func_mmap=yes
14850 else
14851 libffi_func_mmap=no
14854 if test "$libffi_header_sys_mman_h" != yes \
14855 || test "$libffi_func_mmap" != yes; then
14856 ac_cv_func_mmap_file=no
14857 ac_cv_func_mmap_dev_zero=no
14858 ac_cv_func_mmap_anon=no
14859 else
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
14861 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
14862 if test "${ac_cv_func_mmap_file+set}" = set; then :
14863 $as_echo_n "(cached) " >&6
14864 else
14865 # Add a system to this blacklist if
14866 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
14867 # memory area containing the same data that you'd get if you applied
14868 # read() to the same fd. The only system known to have a problem here
14869 # is VMS, where text files have record structure.
14870 case "$host_os" in
14871 vms* | ultrix*)
14872 ac_cv_func_mmap_file=no ;;
14874 ac_cv_func_mmap_file=yes;;
14875 esac
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
14878 $as_echo "$ac_cv_func_mmap_file" >&6; }
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
14880 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
14881 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then :
14882 $as_echo_n "(cached) " >&6
14883 else
14884 # Add a system to this blacklist if it has mmap() but /dev/zero
14885 # does not exist, or if mmapping /dev/zero does not give anonymous
14886 # zeroed pages with both the following properties:
14887 # 1. If you map N consecutive pages in with one call, and then
14888 # unmap any subset of those pages, the pages that were not
14889 # explicitly unmapped remain accessible.
14890 # 2. If you map two adjacent blocks of memory and then unmap them
14891 # both at once, they must both go away.
14892 # Systems known to be in this category are Windows (all variants),
14893 # VMS, and Darwin.
14894 case "$host_os" in
14895 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
14896 ac_cv_func_mmap_dev_zero=no ;;
14898 ac_cv_func_mmap_dev_zero=yes;;
14899 esac
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
14902 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
14904 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
14906 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
14907 if test "${ac_cv_decl_map_anon+set}" = set; then :
14908 $as_echo_n "(cached) " >&6
14909 else
14910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14911 /* end confdefs.h. */
14912 #include <sys/types.h>
14913 #include <sys/mman.h>
14914 #include <unistd.h>
14916 #ifndef MAP_ANONYMOUS
14917 #define MAP_ANONYMOUS MAP_ANON
14918 #endif
14921 main ()
14923 int n = MAP_ANONYMOUS;
14925 return 0;
14927 _ACEOF
14928 if ac_fn_c_try_compile "$LINENO"; then :
14929 ac_cv_decl_map_anon=yes
14930 else
14931 ac_cv_decl_map_anon=no
14933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
14936 $as_echo "$ac_cv_decl_map_anon" >&6; }
14938 if test $ac_cv_decl_map_anon = no; then
14939 ac_cv_func_mmap_anon=no
14940 else
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
14942 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
14943 if test "${ac_cv_func_mmap_anon+set}" = set; then :
14944 $as_echo_n "(cached) " >&6
14945 else
14946 # Add a system to this blacklist if it has mmap() and MAP_ANON or
14947 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
14948 # doesn't give anonymous zeroed pages with the same properties listed
14949 # above for use of /dev/zero.
14950 # Systems known to be in this category are Windows, VMS, and SCO Unix.
14951 case "$host_os" in
14952 vms* | cygwin* | pe | mingw* | sco* | udk* )
14953 ac_cv_func_mmap_anon=no ;;
14955 ac_cv_func_mmap_anon=yes;;
14956 esac
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
14959 $as_echo "$ac_cv_func_mmap_anon" >&6; }
14963 if test $ac_cv_func_mmap_file = yes; then
14965 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
14968 if test $ac_cv_func_mmap_dev_zero = yes; then
14970 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
14973 if test $ac_cv_func_mmap_anon = yes; then
14975 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
14980 if test -d $srcdir/testsuite; then
14981 TESTSUBDIR_TRUE=
14982 TESTSUBDIR_FALSE='#'
14983 else
14984 TESTSUBDIR_TRUE='#'
14985 TESTSUBDIR_FALSE=
14989 TARGETDIR="unknown"
14990 HAVE_LONG_DOUBLE_VARIANT=0
14992 . ${srcdir}/configure.host
14994 if test -n "${UNSUPPORTED}"; then
14995 as_fn_error "\"libffi has not been ported to $host.\"" "$LINENO" 5
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15002 $as_echo_n "checking for ANSI C header files... " >&6; }
15003 if test "${ac_cv_header_stdc+set}" = set; then :
15004 $as_echo_n "(cached) " >&6
15005 else
15006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15007 /* end confdefs.h. */
15008 #include <stdlib.h>
15009 #include <stdarg.h>
15010 #include <string.h>
15011 #include <float.h>
15014 main ()
15018 return 0;
15020 _ACEOF
15021 if ac_fn_c_try_compile "$LINENO"; then :
15022 ac_cv_header_stdc=yes
15023 else
15024 ac_cv_header_stdc=no
15026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15028 if test $ac_cv_header_stdc = yes; then
15029 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15031 /* end confdefs.h. */
15032 #include <string.h>
15034 _ACEOF
15035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15036 $EGREP "memchr" >/dev/null 2>&1; then :
15038 else
15039 ac_cv_header_stdc=no
15041 rm -f conftest*
15045 if test $ac_cv_header_stdc = yes; then
15046 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15048 /* end confdefs.h. */
15049 #include <stdlib.h>
15051 _ACEOF
15052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15053 $EGREP "free" >/dev/null 2>&1; then :
15055 else
15056 ac_cv_header_stdc=no
15058 rm -f conftest*
15062 if test $ac_cv_header_stdc = yes; then
15063 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15064 if test "$cross_compiling" = yes; then :
15066 else
15067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15068 /* end confdefs.h. */
15069 #include <ctype.h>
15070 #include <stdlib.h>
15071 #if ((' ' & 0x0FF) == 0x020)
15072 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15073 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15074 #else
15075 # define ISLOWER(c) \
15076 (('a' <= (c) && (c) <= 'i') \
15077 || ('j' <= (c) && (c) <= 'r') \
15078 || ('s' <= (c) && (c) <= 'z'))
15079 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15080 #endif
15082 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15084 main ()
15086 int i;
15087 for (i = 0; i < 256; i++)
15088 if (XOR (islower (i), ISLOWER (i))
15089 || toupper (i) != TOUPPER (i))
15090 return 2;
15091 return 0;
15093 _ACEOF
15094 if ac_fn_c_try_run "$LINENO"; then :
15096 else
15097 ac_cv_header_stdc=no
15099 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15100 conftest.$ac_objext conftest.beam conftest.$ac_ext
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15106 $as_echo "$ac_cv_header_stdc" >&6; }
15107 if test $ac_cv_header_stdc = yes; then
15109 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15113 for ac_func in memcpy
15114 do :
15115 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
15116 if test "x$ac_cv_func_memcpy" = x""yes; then :
15117 cat >>confdefs.h <<_ACEOF
15118 #define HAVE_MEMCPY 1
15119 _ACEOF
15122 done
15124 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15125 # for constant arguments. Useless!
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15127 $as_echo_n "checking for working alloca.h... " >&6; }
15128 if test "${ac_cv_working_alloca_h+set}" = set; then :
15129 $as_echo_n "(cached) " >&6
15130 else
15131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15132 /* end confdefs.h. */
15133 #include <alloca.h>
15135 main ()
15137 char *p = (char *) alloca (2 * sizeof (int));
15138 if (p) return 0;
15140 return 0;
15142 _ACEOF
15143 if ac_fn_c_try_link "$LINENO"; then :
15144 ac_cv_working_alloca_h=yes
15145 else
15146 ac_cv_working_alloca_h=no
15148 rm -f core conftest.err conftest.$ac_objext \
15149 conftest$ac_exeext conftest.$ac_ext
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15152 $as_echo "$ac_cv_working_alloca_h" >&6; }
15153 if test $ac_cv_working_alloca_h = yes; then
15155 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15160 $as_echo_n "checking for alloca... " >&6; }
15161 if test "${ac_cv_func_alloca_works+set}" = set; then :
15162 $as_echo_n "(cached) " >&6
15163 else
15164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15165 /* end confdefs.h. */
15166 #ifdef __GNUC__
15167 # define alloca __builtin_alloca
15168 #else
15169 # ifdef _MSC_VER
15170 # include <malloc.h>
15171 # define alloca _alloca
15172 # else
15173 # ifdef HAVE_ALLOCA_H
15174 # include <alloca.h>
15175 # else
15176 # ifdef _AIX
15177 #pragma alloca
15178 # else
15179 # ifndef alloca /* predefined by HP cc +Olibcalls */
15180 char *alloca ();
15181 # endif
15182 # endif
15183 # endif
15184 # endif
15185 #endif
15188 main ()
15190 char *p = (char *) alloca (1);
15191 if (p) return 0;
15193 return 0;
15195 _ACEOF
15196 if ac_fn_c_try_link "$LINENO"; then :
15197 ac_cv_func_alloca_works=yes
15198 else
15199 ac_cv_func_alloca_works=no
15201 rm -f core conftest.err conftest.$ac_objext \
15202 conftest$ac_exeext conftest.$ac_ext
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15205 $as_echo "$ac_cv_func_alloca_works" >&6; }
15207 if test $ac_cv_func_alloca_works = yes; then
15209 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15211 else
15212 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15213 # that cause trouble. Some versions do not even contain alloca or
15214 # contain a buggy version. If you still want to use their alloca,
15215 # use ar to extract alloca.o from them instead of compiling alloca.c.
15217 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15219 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15223 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15224 if test "${ac_cv_os_cray+set}" = set; then :
15225 $as_echo_n "(cached) " >&6
15226 else
15227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15228 /* end confdefs.h. */
15229 #if defined CRAY && ! defined CRAY2
15230 webecray
15231 #else
15232 wenotbecray
15233 #endif
15235 _ACEOF
15236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15237 $EGREP "webecray" >/dev/null 2>&1; then :
15238 ac_cv_os_cray=yes
15239 else
15240 ac_cv_os_cray=no
15242 rm -f conftest*
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15246 $as_echo "$ac_cv_os_cray" >&6; }
15247 if test $ac_cv_os_cray = yes; then
15248 for ac_func in _getb67 GETB67 getb67; do
15249 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15250 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15251 eval as_val=\$$as_ac_var
15252 if test "x$as_val" = x""yes; then :
15254 cat >>confdefs.h <<_ACEOF
15255 #define CRAY_STACKSEG_END $ac_func
15256 _ACEOF
15258 break
15261 done
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15265 $as_echo_n "checking stack direction for C alloca... " >&6; }
15266 if test "${ac_cv_c_stack_direction+set}" = set; then :
15267 $as_echo_n "(cached) " >&6
15268 else
15269 if test "$cross_compiling" = yes; then :
15270 ac_cv_c_stack_direction=0
15271 else
15272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15273 /* end confdefs.h. */
15274 $ac_includes_default
15276 find_stack_direction ()
15278 static char *addr = 0;
15279 auto char dummy;
15280 if (addr == 0)
15282 addr = &dummy;
15283 return find_stack_direction ();
15285 else
15286 return (&dummy > addr) ? 1 : -1;
15290 main ()
15292 return find_stack_direction () < 0;
15294 _ACEOF
15295 if ac_fn_c_try_run "$LINENO"; then :
15296 ac_cv_c_stack_direction=1
15297 else
15298 ac_cv_c_stack_direction=-1
15300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15301 conftest.$ac_objext conftest.beam conftest.$ac_ext
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15306 $as_echo "$ac_cv_c_stack_direction" >&6; }
15307 cat >>confdefs.h <<_ACEOF
15308 #define STACK_DIRECTION $ac_cv_c_stack_direction
15309 _ACEOF
15315 # The cast to long int works around a bug in the HP C Compiler
15316 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15317 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15318 # This bug is HP SR number 8606223364.
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
15320 $as_echo_n "checking size of double... " >&6; }
15321 if test "${ac_cv_sizeof_double+set}" = set; then :
15322 $as_echo_n "(cached) " >&6
15323 else
15324 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
15326 else
15327 if test "$ac_cv_type_double" = yes; then
15328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15330 { as_fn_set_status 77
15331 as_fn_error "cannot compute sizeof (double)
15332 See \`config.log' for more details." "$LINENO" 5; }; }
15333 else
15334 ac_cv_sizeof_double=0
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
15340 $as_echo "$ac_cv_sizeof_double" >&6; }
15344 cat >>confdefs.h <<_ACEOF
15345 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
15346 _ACEOF
15349 # The cast to long int works around a bug in the HP C Compiler
15350 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15351 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15352 # This bug is HP SR number 8606223364.
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
15354 $as_echo_n "checking size of long double... " >&6; }
15355 if test "${ac_cv_sizeof_long_double+set}" = set; then :
15356 $as_echo_n "(cached) " >&6
15357 else
15358 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
15360 else
15361 if test "$ac_cv_type_long_double" = yes; then
15362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15364 { as_fn_set_status 77
15365 as_fn_error "cannot compute sizeof (long double)
15366 See \`config.log' for more details." "$LINENO" 5; }; }
15367 else
15368 ac_cv_sizeof_long_double=0
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
15374 $as_echo "$ac_cv_sizeof_long_double" >&6; }
15378 cat >>confdefs.h <<_ACEOF
15379 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
15380 _ACEOF
15384 # Also AC_SUBST this variable for ffi.h.
15385 if test -z "$HAVE_LONG_DOUBLE"; then
15386 HAVE_LONG_DOUBLE=0
15387 if test $ac_cv_sizeof_long_double != 0; then
15388 if test $HAVE_LONG_DOUBLE_VARIANT != 0; then
15390 $as_echo "#define HAVE_LONG_DOUBLE_VARIANT 1" >>confdefs.h
15392 HAVE_LONG_DOUBLE=1
15393 else
15394 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
15395 HAVE_LONG_DOUBLE=1
15397 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15407 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15408 if test "${ac_cv_c_bigendian+set}" = set; then :
15409 $as_echo_n "(cached) " >&6
15410 else
15411 ac_cv_c_bigendian=unknown
15412 # See if we're dealing with a universal compiler.
15413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15414 /* end confdefs.h. */
15415 #ifndef __APPLE_CC__
15416 not a universal capable compiler
15417 #endif
15418 typedef int dummy;
15420 _ACEOF
15421 if ac_fn_c_try_compile "$LINENO"; then :
15423 # Check for potential -arch flags. It is not universal unless
15424 # there are at least two -arch flags with different values.
15425 ac_arch=
15426 ac_prev=
15427 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15428 if test -n "$ac_prev"; then
15429 case $ac_word in
15430 i?86 | x86_64 | ppc | ppc64)
15431 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15432 ac_arch=$ac_word
15433 else
15434 ac_cv_c_bigendian=universal
15435 break
15438 esac
15439 ac_prev=
15440 elif test "x$ac_word" = "x-arch"; then
15441 ac_prev=arch
15443 done
15445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15446 if test $ac_cv_c_bigendian = unknown; then
15447 # See if sys/param.h defines the BYTE_ORDER macro.
15448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15449 /* end confdefs.h. */
15450 #include <sys/types.h>
15451 #include <sys/param.h>
15454 main ()
15456 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15457 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15458 && LITTLE_ENDIAN)
15459 bogus endian macros
15460 #endif
15463 return 0;
15465 _ACEOF
15466 if ac_fn_c_try_compile "$LINENO"; then :
15467 # It does; now see whether it defined to BIG_ENDIAN or not.
15468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15469 /* end confdefs.h. */
15470 #include <sys/types.h>
15471 #include <sys/param.h>
15474 main ()
15476 #if BYTE_ORDER != BIG_ENDIAN
15477 not big endian
15478 #endif
15481 return 0;
15483 _ACEOF
15484 if ac_fn_c_try_compile "$LINENO"; then :
15485 ac_cv_c_bigendian=yes
15486 else
15487 ac_cv_c_bigendian=no
15489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15493 if test $ac_cv_c_bigendian = unknown; then
15494 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15496 /* end confdefs.h. */
15497 #include <limits.h>
15500 main ()
15502 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15503 bogus endian macros
15504 #endif
15507 return 0;
15509 _ACEOF
15510 if ac_fn_c_try_compile "$LINENO"; then :
15511 # It does; now see whether it defined to _BIG_ENDIAN or not.
15512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15513 /* end confdefs.h. */
15514 #include <limits.h>
15517 main ()
15519 #ifndef _BIG_ENDIAN
15520 not big endian
15521 #endif
15524 return 0;
15526 _ACEOF
15527 if ac_fn_c_try_compile "$LINENO"; then :
15528 ac_cv_c_bigendian=yes
15529 else
15530 ac_cv_c_bigendian=no
15532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15536 if test $ac_cv_c_bigendian = unknown; then
15537 # Compile a test program.
15538 if test "$cross_compiling" = yes; then :
15539 # Try to guess by grepping values from an object file.
15540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15541 /* end confdefs.h. */
15542 short int ascii_mm[] =
15543 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15544 short int ascii_ii[] =
15545 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15546 int use_ascii (int i) {
15547 return ascii_mm[i] + ascii_ii[i];
15549 short int ebcdic_ii[] =
15550 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15551 short int ebcdic_mm[] =
15552 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15553 int use_ebcdic (int i) {
15554 return ebcdic_mm[i] + ebcdic_ii[i];
15556 extern int foo;
15559 main ()
15561 return use_ascii (foo) == use_ebcdic (foo);
15563 return 0;
15565 _ACEOF
15566 if ac_fn_c_try_compile "$LINENO"; then :
15567 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15568 ac_cv_c_bigendian=yes
15570 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15571 if test "$ac_cv_c_bigendian" = unknown; then
15572 ac_cv_c_bigendian=no
15573 else
15574 # finding both strings is unlikely to happen, but who knows?
15575 ac_cv_c_bigendian=unknown
15579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15580 else
15581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15582 /* end confdefs.h. */
15583 $ac_includes_default
15585 main ()
15588 /* Are we little or big endian? From Harbison&Steele. */
15589 union
15591 long int l;
15592 char c[sizeof (long int)];
15593 } u;
15594 u.l = 1;
15595 return u.c[sizeof (long int) - 1] == 1;
15598 return 0;
15600 _ACEOF
15601 if ac_fn_c_try_run "$LINENO"; then :
15602 ac_cv_c_bigendian=no
15603 else
15604 ac_cv_c_bigendian=yes
15606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15607 conftest.$ac_objext conftest.beam conftest.$ac_ext
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15613 $as_echo "$ac_cv_c_bigendian" >&6; }
15614 case $ac_cv_c_bigendian in #(
15615 yes)
15616 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15617 ;; #(
15619 ;; #(
15620 universal)
15622 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15624 ;; #(
15626 as_fn_error "unknown endianness
15627 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15628 esac
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
15632 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
15633 if test "${gcc_cv_as_cfi_pseudo_op+set}" = set; then :
15634 $as_echo_n "(cached) " >&6
15635 else
15637 gcc_cv_as_cfi_pseudo_op=unknown
15638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15639 /* end confdefs.h. */
15640 asm (".cfi_startproc\n\t.cfi_endproc");
15642 main ()
15646 return 0;
15648 _ACEOF
15649 if ac_fn_c_try_compile "$LINENO"; then :
15650 gcc_cv_as_cfi_pseudo_op=yes
15651 else
15652 gcc_cv_as_cfi_pseudo_op=no
15654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
15658 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
15659 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
15661 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
15666 case "$TARGET" in
15667 SPARC)
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
15669 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
15670 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then :
15671 $as_echo_n "(cached) " >&6
15672 else
15674 save_CFLAGS="$CFLAGS"
15675 save_LDFLAGS="$LDFLAGS"
15676 CFLAGS="$CFLAGS -fpic"
15677 LDFLAGS="$LDFLAGS -shared"
15678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15679 /* end confdefs.h. */
15680 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
15682 main ()
15686 return 0;
15688 _ACEOF
15689 if ac_fn_c_try_link "$LINENO"; then :
15690 libffi_cv_as_sparc_ua_pcrel=yes
15691 else
15692 libffi_cv_as_sparc_ua_pcrel=no
15694 rm -f core conftest.err conftest.$ac_objext \
15695 conftest$ac_exeext conftest.$ac_ext
15696 CFLAGS="$save_CFLAGS"
15697 LDFLAGS="$save_LDFLAGS"
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
15700 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
15701 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
15703 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
15708 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
15709 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then :
15710 $as_echo_n "(cached) " >&6
15711 else
15713 libffi_cv_as_register_pseudo_op=unknown
15714 # Check if we have .register
15715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15716 /* end confdefs.h. */
15719 main ()
15721 asm (".register %g2, #scratch");
15723 return 0;
15725 _ACEOF
15726 if ac_fn_c_try_compile "$LINENO"; then :
15727 libffi_cv_as_register_pseudo_op=yes
15728 else
15729 libffi_cv_as_register_pseudo_op=no
15731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
15735 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
15736 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
15738 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
15743 X86*)
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15745 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15746 if test "${libffi_cv_as_x86_pcrel+set}" = set; then :
15747 $as_echo_n "(cached) " >&6
15748 else
15750 libffi_cv_as_x86_pcrel=no
15751 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15752 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15753 libffi_cv_as_x86_pcrel=yes
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
15758 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
15759 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
15761 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15766 S390)
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler uses zarch features" >&5
15768 $as_echo_n "checking compiler uses zarch features... " >&6; }
15769 if test "${libffi_cv_as_s390_zarch+set}" = set; then :
15770 $as_echo_n "(cached) " >&6
15771 else
15773 libffi_cv_as_s390_zarch=no
15774 echo 'void foo(void) { bar(); bar(); }' > conftest.c
15775 if $CC $CFLAGS -S conftest.c > /dev/null 2>&1; then
15776 if grep -q brasl conftest.s; then
15777 libffi_cv_as_s390_zarch=yes
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_s390_zarch" >&5
15783 $as_echo "$libffi_cv_as_s390_zarch" >&6; }
15784 if test "x$libffi_cv_as_s390_zarch" = xyes; then
15786 $as_echo "#define HAVE_AS_S390_ZARCH 1" >>confdefs.h
15790 esac
15792 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
15793 # Check whether --enable-pax_emutramp was given.
15794 if test "${enable_pax_emutramp+set}" = set; then :
15795 enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
15797 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
15803 FFI_EXEC_TRAMPOLINE_TABLE=0
15804 case "$target" in
15805 *arm*-apple-darwin* | aarch64-apple-darwin*)
15806 FFI_EXEC_TRAMPOLINE_TABLE=1
15808 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
15811 *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
15813 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
15816 esac
15817 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
15818 FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
15819 FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
15820 else
15821 FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
15822 FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
15827 if test x$TARGET = xX86_64; then
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking toolchain supports unwind section type" >&5
15829 $as_echo_n "checking toolchain supports unwind section type... " >&6; }
15830 if test "${libffi_cv_as_x86_64_unwind_section_type+set}" = set; then :
15831 $as_echo_n "(cached) " >&6
15832 else
15834 cat > conftest1.s << EOF
15835 .text
15836 .globl foo
15837 foo:
15838 jmp bar
15839 .section .eh_frame,"a",@unwind
15840 bar:
15843 cat > conftest2.c << EOF
15844 extern void foo();
15845 int main(){foo();}
15848 libffi_cv_as_x86_64_unwind_section_type=no
15849 # we ensure that we can compile _and_ link an assembly file containing an @unwind section
15850 # since the compiler can support it and not the linker (ie old binutils)
15851 if $CC -Wa,--fatal-warnings $CFLAGS -c conftest1.s > /dev/null 2>&1 && \
15852 $CC conftest2.c conftest1.o > /dev/null 2>&1 ; then
15853 libffi_cv_as_x86_64_unwind_section_type=yes
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
15858 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
15859 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
15861 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15866 if test "x$GCC" = "xyes"; then
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15868 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15869 if test "${libffi_cv_ro_eh_frame+set}" = set; then :
15870 $as_echo_n "(cached) " >&6
15871 else
15873 libffi_cv_ro_eh_frame=no
15874 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15875 if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c > /dev/null 2>&1; then
15876 objdump -h conftest.o > conftest.dump 2>&1
15877 libffi_eh_frame_line=`grep -n eh_frame conftest.dump | cut -d: -f 1`
15878 if test "x$libffi_eh_frame_line" != "x"; then
15879 libffi_test_line=`expr $libffi_eh_frame_line + 1`p
15880 sed -n $libffi_test_line conftest.dump > conftest.line
15881 if grep READONLY conftest.line > /dev/null; then
15882 libffi_cv_ro_eh_frame=yes
15886 rm -f conftest.*
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
15890 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
15891 if test "x$libffi_cv_ro_eh_frame" = xyes; then
15893 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
15896 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15898 else
15900 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
15905 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
15906 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then :
15907 $as_echo_n "(cached) " >&6
15908 else
15910 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
15911 libffi_cv_hidden_visibility_attribute=no
15912 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
15913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15914 (eval $ac_try) 2>&5
15915 ac_status=$?
15916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15917 test $ac_status = 0; }; }; then
15918 if grep '\.hidden.*foo' conftest.s >/dev/null; then
15919 libffi_cv_hidden_visibility_attribute=yes
15922 rm -f conftest.*
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
15926 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
15927 if test $libffi_cv_hidden_visibility_attribute = yes; then
15929 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
15940 TARGET_OBJ=
15941 for i in $SOURCES; do
15942 TARGET_OBJ="${TARGET_OBJ} src/${TARGETDIR}/"`echo $i | sed 's/[cS]$/lo/'`
15943 done
15949 # Check whether --enable-debug was given.
15950 if test "${enable_debug+set}" = set; then :
15951 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
15953 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
15958 if test "$enable_debug" = "yes"; then
15959 FFI_DEBUG_TRUE=
15960 FFI_DEBUG_FALSE='#'
15961 else
15962 FFI_DEBUG_TRUE='#'
15963 FFI_DEBUG_FALSE=
15967 # Check whether --enable-structs was given.
15968 if test "${enable_structs+set}" = set; then :
15969 enableval=$enable_structs; if test "$enable_structs" = "no"; then
15971 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
15976 if test "$enable_debug" = "yes"; then
15977 FFI_DEBUG_TRUE=
15978 FFI_DEBUG_FALSE='#'
15979 else
15980 FFI_DEBUG_TRUE='#'
15981 FFI_DEBUG_FALSE=
15985 # Check whether --enable-raw-api was given.
15986 if test "${enable_raw_api+set}" = set; then :
15987 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
15989 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
15995 # Check whether --enable-purify-safety was given.
15996 if test "${enable_purify_safety+set}" = set; then :
15997 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
15999 $as_echo "#define USING_PURIFY 1" >>confdefs.h
16005 if test -n "$with_cross_host" &&
16006 test x"$with_cross_host" != x"no"; then
16007 toolexecdir='$(exec_prefix)/$(target_alias)'
16008 toolexeclibdir='$(toolexecdir)/lib'
16009 else
16010 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16011 toolexeclibdir='$(libdir)'
16013 multi_os_directory=`$CC -print-multi-os-directory`
16014 case $multi_os_directory in
16015 .) ;; # Avoid trailing /.
16016 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
16017 esac
16021 if test "${multilib}" = "yes"; then
16022 multilib_arg="--enable-multilib"
16023 else
16024 multilib_arg=
16027 # Check linker support.
16030 # Check whether --with-gnu-ld was given.
16031 if test "${with_gnu_ld+set}" = set; then :
16032 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16033 else
16034 with_gnu_ld=no
16037 ac_prog=ld
16038 if test "$GCC" = yes; then
16039 # Check if gcc -print-prog-name=ld gives a path.
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16041 $as_echo_n "checking for ld used by $CC... " >&6; }
16042 case $host in
16043 *-*-mingw*)
16044 # gcc leaves a trailing carriage return which upsets mingw
16045 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16047 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16048 esac
16049 case $ac_prog in
16050 # Accept absolute paths.
16051 [\\/]* | ?:[\\/]*)
16052 re_direlt='/[^/][^/]*/\.\./'
16053 # Canonicalize the pathname of ld
16054 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16055 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16056 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16057 done
16058 test -z "$LD" && LD="$ac_prog"
16061 # If it fails, then pretend we aren't using GCC.
16062 ac_prog=ld
16065 # If it is relative, then search for the first ld in PATH.
16066 with_gnu_ld=unknown
16068 esac
16069 elif test "$with_gnu_ld" = yes; then
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16071 $as_echo_n "checking for GNU ld... " >&6; }
16072 else
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16074 $as_echo_n "checking for non-GNU ld... " >&6; }
16076 if test "${lt_cv_path_LD+set}" = set; then :
16077 $as_echo_n "(cached) " >&6
16078 else
16079 if test -z "$LD"; then
16080 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16081 for ac_dir in $PATH; do
16082 IFS="$lt_save_ifs"
16083 test -z "$ac_dir" && ac_dir=.
16084 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16085 lt_cv_path_LD="$ac_dir/$ac_prog"
16086 # Check to see if the program is GNU ld. I'd rather use --version,
16087 # but apparently some variants of GNU ld only accept -v.
16088 # Break only if it was the GNU/non-GNU ld that we prefer.
16089 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16090 *GNU* | *'with BFD'*)
16091 test "$with_gnu_ld" != no && break
16094 test "$with_gnu_ld" != yes && break
16096 esac
16098 done
16099 IFS="$lt_save_ifs"
16100 else
16101 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16105 LD="$lt_cv_path_LD"
16106 if test -n "$LD"; then
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16108 $as_echo "$LD" >&6; }
16109 else
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16111 $as_echo "no" >&6; }
16113 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16115 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16116 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16117 $as_echo_n "(cached) " >&6
16118 else
16119 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16120 case `$LD -v 2>&1 </dev/null` in
16121 *GNU* | *'with BFD'*)
16122 lt_cv_prog_gnu_ld=yes
16125 lt_cv_prog_gnu_ld=no
16127 esac
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16130 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16131 with_gnu_ld=$lt_cv_prog_gnu_ld
16139 # If we're not using GNU ld, then there's no point in even trying these
16140 # tests. Check for that first. We should have already tested for gld
16141 # by now (in libtool), but require it now just to be safe...
16142 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16143 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16147 # The name set by libtool depends on the version of libtool. Shame on us
16148 # for depending on an impl detail, but c'est la vie. Older versions used
16149 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16150 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16151 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16152 # set (hence we're using an older libtool), then set it.
16153 if test x${with_gnu_ld+set} != xset; then
16154 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16155 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16156 with_gnu_ld=no
16157 else
16158 with_gnu_ld=$ac_cv_prog_gnu_ld
16162 # Start by getting the version number. I think the libtool test already
16163 # does some of this, but throws away the result.
16164 libat_ld_is_gold=no
16165 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16166 libat_ld_is_gold=yes
16169 ldver=`$LD --version 2>/dev/null |
16170 sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
16172 libat_gnu_ld_version=`echo $ldver | \
16173 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16175 # Set --gc-sections.
16176 if test "$with_gnu_ld" = "notbroken"; then
16177 # GNU ld it is! Joy and bunny rabbits!
16179 # All these tests are for C++; save the language and the compiler flags.
16180 # Need to do this so that g++ won't try to link in libstdc++
16181 ac_test_CFLAGS="${CFLAGS+set}"
16182 ac_save_CFLAGS="$CFLAGS"
16183 CFLAGS='-x c++ -Wl,--gc-sections'
16185 # Check for -Wl,--gc-sections
16186 # XXX This test is broken at the moment, as symbols required for linking
16187 # are now in libsupc++ (not built yet). In addition, this test has
16188 # cored on solaris in the past. In addition, --gc-sections doesn't
16189 # really work at the moment (keeps on discarding used sections, first
16190 # .eh_frame and now some of the glibc sections for iconv).
16191 # Bzzzzt. Thanks for playing, maybe next time.
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16193 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16194 if test "$cross_compiling" = yes; then :
16195 ac_sectionLDflags=yes
16196 else
16197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16198 /* end confdefs.h. */
16200 int main(void)
16202 try { throw 1; }
16203 catch (...) { };
16204 return 0;
16207 _ACEOF
16208 if ac_fn_c_try_run "$LINENO"; then :
16209 ac_sectionLDflags=yes
16210 else
16211 ac_sectionLDflags=no
16213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16214 conftest.$ac_objext conftest.beam conftest.$ac_ext
16217 if test "$ac_test_CFLAGS" = set; then
16218 CFLAGS="$ac_save_CFLAGS"
16219 else
16220 # this is the suspicious part
16221 CFLAGS=''
16223 if test "$ac_sectionLDflags" = "yes"; then
16224 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16227 $as_echo "$ac_sectionLDflags" >&6; }
16230 # Set linker optimization flags.
16231 if test x"$with_gnu_ld" = x"yes"; then
16232 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16240 # Check whether --enable-symvers was given.
16241 if test "${enable_symvers+set}" = set; then :
16242 enableval=$enable_symvers;
16243 case "$enableval" in
16244 yes|no|gnu*|sun) ;;
16245 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16246 esac
16248 else
16249 enable_symvers=yes
16254 # If we never went through the LIBAT_CHECK_LINKER_FEATURES macro, then we
16255 # don't know enough about $LD to do tricks...
16258 # Turn a 'yes' into a suitable default.
16259 if test x$enable_symvers = xyes ; then
16260 # FIXME The following test is too strict, in theory.
16261 if test $enable_shared = no || test "x$LD" = x; then
16262 enable_symvers=no
16263 else
16264 if test $with_gnu_ld = yes ; then
16265 enable_symvers=gnu
16266 else
16267 case ${target_os} in
16268 # Sun symbol versioning exists since Solaris 2.5.
16269 solaris2.[5-9]* | solaris2.1[0-9]*)
16270 enable_symvers=sun ;;
16272 enable_symvers=no ;;
16273 esac
16278 # Check if 'sun' was requested on non-Solaris 2 platforms.
16279 if test x$enable_symvers = xsun ; then
16280 case ${target_os} in
16281 solaris2*)
16282 # All fine.
16285 # Unlikely to work.
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16287 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16289 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16291 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16292 enable_symvers=no
16294 esac
16297 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16298 if test $enable_symvers != no; then
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16300 $as_echo_n "checking for shared libgcc... " >&6; }
16301 ac_save_CFLAGS="$CFLAGS"
16302 CFLAGS=' -lgcc_s'
16303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16304 /* end confdefs.h. */
16307 main ()
16309 return 0;
16311 return 0;
16313 _ACEOF
16314 if ac_fn_c_try_link "$LINENO"; then :
16315 libat_shared_libgcc=yes
16316 else
16317 libat_shared_libgcc=no
16319 rm -f core conftest.err conftest.$ac_objext \
16320 conftest$ac_exeext conftest.$ac_ext
16321 CFLAGS="$ac_save_CFLAGS"
16322 if test $libat_shared_libgcc = no; then
16323 cat > conftest.c <<EOF
16324 int main (void) { return 0; }
16326 libat_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16327 -shared -shared-libgcc -o conftest.so \
16328 conftest.c -v 2>&1 >/dev/null \
16329 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16330 rm -f conftest.c conftest.so
16331 if test x${libat_libgcc_s_suffix+set} = xset; then
16332 CFLAGS=" -lgcc_s$libat_libgcc_s_suffix"
16333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16334 /* end confdefs.h. */
16337 main ()
16339 return 0;
16341 return 0;
16343 _ACEOF
16344 if ac_fn_c_try_link "$LINENO"; then :
16345 libat_shared_libgcc=yes
16347 rm -f core conftest.err conftest.$ac_objext \
16348 conftest$ac_exeext conftest.$ac_ext
16349 CFLAGS="$ac_save_CFLAGS"
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5
16353 $as_echo "$libat_shared_libgcc" >&6; }
16356 # For GNU ld, we need at least this version. The format is described in
16357 # LIBAT_CHECK_LINKER_FEATURES above.
16358 libat_min_gnu_ld_version=21400
16359 # XXXXXXXXXXX libat_gnu_ld_version=21390
16361 # Check to see if unspecified "yes" value can win, given results above.
16362 # Change "yes" into either "no" or a style name.
16363 if test $enable_symvers != no && test $libat_shared_libgcc = yes; then
16364 if test $with_gnu_ld = yes; then
16365 if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
16366 enable_symvers=gnu
16367 elif test $libat_ld_is_gold = yes ; then
16368 enable_symvers=gnu
16369 else
16370 # The right tools, the right setup, but too old. Fallbacks?
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
16372 $as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;}
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16374 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16376 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5
16378 $as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;}
16379 if test $libat_gnu_ld_version -ge 21200 ; then
16380 # Globbing fix is present, proper block support is not.
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16382 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16383 enable_symvers=no
16384 else
16385 # 2.11 or older.
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16387 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16388 enable_symvers=no
16391 elif test $enable_symvers = sun; then
16392 : All interesting versions of Sun ld support sun style symbol versioning.
16393 else
16394 # just fail for now
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16396 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16398 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16400 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16402 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16403 enable_symvers=no
16406 if test $enable_symvers = gnu; then
16408 $as_echo "#define LIBAT_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16412 if test $enable_symvers != no; then
16413 LIBAT_BUILD_VERSIONED_SHLIB_TRUE=
16414 LIBAT_BUILD_VERSIONED_SHLIB_FALSE='#'
16415 else
16416 LIBAT_BUILD_VERSIONED_SHLIB_TRUE='#'
16417 LIBAT_BUILD_VERSIONED_SHLIB_FALSE=
16420 if test $enable_symvers = gnu; then
16421 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16422 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16423 else
16424 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16425 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16428 if test $enable_symvers = sun; then
16429 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16430 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16431 else
16432 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16433 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16437 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16440 # Determine what GCC version number to use in filesystem paths.
16442 get_gcc_base_ver="cat"
16444 # Check whether --with-gcc-major-version-only was given.
16445 if test "${with_gcc_major_version_only+set}" = set; then :
16446 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
16447 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
16455 ac_config_commands="$ac_config_commands include"
16457 ac_config_commands="$ac_config_commands src"
16460 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
16463 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
16466 cat >confcache <<\_ACEOF
16467 # This file is a shell script that caches the results of configure
16468 # tests run on this system so they can be shared between configure
16469 # scripts and configure runs, see configure's option --config-cache.
16470 # It is not useful on other systems. If it contains results you don't
16471 # want to keep, you may remove or edit it.
16473 # config.status only pays attention to the cache file if you give it
16474 # the --recheck option to rerun configure.
16476 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16477 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16478 # following values.
16480 _ACEOF
16482 # The following way of writing the cache mishandles newlines in values,
16483 # but we know of no workaround that is simple, portable, and efficient.
16484 # So, we kill variables containing newlines.
16485 # Ultrix sh set writes to stderr and can't be redirected directly,
16486 # and sets the high bit in the cache file unless we assign to the vars.
16488 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16489 eval ac_val=\$$ac_var
16490 case $ac_val in #(
16491 *${as_nl}*)
16492 case $ac_var in #(
16493 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16494 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16495 esac
16496 case $ac_var in #(
16497 _ | IFS | as_nl) ;; #(
16498 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16499 *) { eval $ac_var=; unset $ac_var;} ;;
16500 esac ;;
16501 esac
16502 done
16504 (set) 2>&1 |
16505 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16506 *${as_nl}ac_space=\ *)
16507 # `set' does not quote correctly, so add quotes: double-quote
16508 # substitution turns \\\\ into \\, and sed turns \\ into \.
16509 sed -n \
16510 "s/'/'\\\\''/g;
16511 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16512 ;; #(
16514 # `set' quotes correctly as required by POSIX, so do not add quotes.
16515 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16517 esac |
16518 sort
16520 sed '
16521 /^ac_cv_env_/b end
16522 t clear
16523 :clear
16524 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16525 t end
16526 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16527 :end' >>confcache
16528 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16529 if test -w "$cache_file"; then
16530 test "x$cache_file" != "x/dev/null" &&
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16532 $as_echo "$as_me: updating cache $cache_file" >&6;}
16533 cat confcache >$cache_file
16534 else
16535 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16536 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16539 rm -f confcache
16541 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16542 # Let make expand exec_prefix.
16543 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16545 DEFS=-DHAVE_CONFIG_H
16547 ac_libobjs=
16548 ac_ltlibobjs=
16549 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16550 # 1. Remove the extension, and $U if already installed.
16551 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16552 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16553 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16554 # will be set to the directory where LIBOBJS objects are built.
16555 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16556 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16557 done
16558 LIBOBJS=$ac_libobjs
16560 LTLIBOBJS=$ac_ltlibobjs
16563 if test -n "$EXEEXT"; then
16564 am__EXEEXT_TRUE=
16565 am__EXEEXT_FALSE='#'
16566 else
16567 am__EXEEXT_TRUE='#'
16568 am__EXEEXT_FALSE=
16571 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16572 as_fn_error "conditional \"BUILD_INFO\" was never defined.
16573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16575 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16576 as_fn_error "conditional \"GENINSRC\" was never defined.
16577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16579 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16580 as_fn_error "conditional \"AMDEP\" was never defined.
16581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16583 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16584 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16587 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16588 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16591 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16592 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
16593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16595 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16596 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16599 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16600 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
16601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16604 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
16605 as_fn_error "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
16606 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16608 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
16609 as_fn_error "conditional \"FFI_DEBUG\" was never defined.
16610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16612 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
16613 as_fn_error "conditional \"FFI_DEBUG\" was never defined.
16614 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16616 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_FALSE}"; then
16617 as_fn_error "conditional \"LIBAT_BUILD_VERSIONED_SHLIB\" was never defined.
16618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16620 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
16621 as_fn_error "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
16622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16624 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
16625 as_fn_error "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
16626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16629 : ${CONFIG_STATUS=./config.status}
16630 ac_write_fail=0
16631 ac_clean_files_save=$ac_clean_files
16632 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16634 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16635 as_write_fail=0
16636 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16637 #! $SHELL
16638 # Generated by $as_me.
16639 # Run this file to recreate the current configuration.
16640 # Compiler output produced by configure, useful for debugging
16641 # configure, is in config.log if it exists.
16643 debug=false
16644 ac_cs_recheck=false
16645 ac_cs_silent=false
16647 SHELL=\${CONFIG_SHELL-$SHELL}
16648 export SHELL
16649 _ASEOF
16650 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16651 ## -------------------- ##
16652 ## M4sh Initialization. ##
16653 ## -------------------- ##
16655 # Be more Bourne compatible
16656 DUALCASE=1; export DUALCASE # for MKS sh
16657 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16658 emulate sh
16659 NULLCMD=:
16660 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16661 # is contrary to our usage. Disable this feature.
16662 alias -g '${1+"$@"}'='"$@"'
16663 setopt NO_GLOB_SUBST
16664 else
16665 case `(set -o) 2>/dev/null` in #(
16666 *posix*) :
16667 set -o posix ;; #(
16668 *) :
16670 esac
16674 as_nl='
16676 export as_nl
16677 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16678 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16679 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16680 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16681 # Prefer a ksh shell builtin over an external printf program on Solaris,
16682 # but without wasting forks for bash or zsh.
16683 if test -z "$BASH_VERSION$ZSH_VERSION" \
16684 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16685 as_echo='print -r --'
16686 as_echo_n='print -rn --'
16687 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16688 as_echo='printf %s\n'
16689 as_echo_n='printf %s'
16690 else
16691 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16692 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16693 as_echo_n='/usr/ucb/echo -n'
16694 else
16695 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16696 as_echo_n_body='eval
16697 arg=$1;
16698 case $arg in #(
16699 *"$as_nl"*)
16700 expr "X$arg" : "X\\(.*\\)$as_nl";
16701 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16702 esac;
16703 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16705 export as_echo_n_body
16706 as_echo_n='sh -c $as_echo_n_body as_echo'
16708 export as_echo_body
16709 as_echo='sh -c $as_echo_body as_echo'
16712 # The user is always right.
16713 if test "${PATH_SEPARATOR+set}" != set; then
16714 PATH_SEPARATOR=:
16715 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16716 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16717 PATH_SEPARATOR=';'
16722 # IFS
16723 # We need space, tab and new line, in precisely that order. Quoting is
16724 # there to prevent editors from complaining about space-tab.
16725 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16726 # splitting by setting IFS to empty value.)
16727 IFS=" "" $as_nl"
16729 # Find who we are. Look in the path if we contain no directory separator.
16730 case $0 in #((
16731 *[\\/]* ) as_myself=$0 ;;
16732 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16733 for as_dir in $PATH
16735 IFS=$as_save_IFS
16736 test -z "$as_dir" && as_dir=.
16737 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16738 done
16739 IFS=$as_save_IFS
16742 esac
16743 # We did not find ourselves, most probably we were run as `sh COMMAND'
16744 # in which case we are not to be found in the path.
16745 if test "x$as_myself" = x; then
16746 as_myself=$0
16748 if test ! -f "$as_myself"; then
16749 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16750 exit 1
16753 # Unset variables that we do not need and which cause bugs (e.g. in
16754 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16755 # suppresses any "Segmentation fault" message there. '((' could
16756 # trigger a bug in pdksh 5.2.14.
16757 for as_var in BASH_ENV ENV MAIL MAILPATH
16758 do eval test x\${$as_var+set} = xset \
16759 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16760 done
16761 PS1='$ '
16762 PS2='> '
16763 PS4='+ '
16765 # NLS nuisances.
16766 LC_ALL=C
16767 export LC_ALL
16768 LANGUAGE=C
16769 export LANGUAGE
16771 # CDPATH.
16772 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16775 # as_fn_error ERROR [LINENO LOG_FD]
16776 # ---------------------------------
16777 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16778 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16779 # script with status $?, using 1 if that was 0.
16780 as_fn_error ()
16782 as_status=$?; test $as_status -eq 0 && as_status=1
16783 if test "$3"; then
16784 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16785 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16787 $as_echo "$as_me: error: $1" >&2
16788 as_fn_exit $as_status
16789 } # as_fn_error
16792 # as_fn_set_status STATUS
16793 # -----------------------
16794 # Set $? to STATUS, without forking.
16795 as_fn_set_status ()
16797 return $1
16798 } # as_fn_set_status
16800 # as_fn_exit STATUS
16801 # -----------------
16802 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16803 as_fn_exit ()
16805 set +e
16806 as_fn_set_status $1
16807 exit $1
16808 } # as_fn_exit
16810 # as_fn_unset VAR
16811 # ---------------
16812 # Portably unset VAR.
16813 as_fn_unset ()
16815 { eval $1=; unset $1;}
16817 as_unset=as_fn_unset
16818 # as_fn_append VAR VALUE
16819 # ----------------------
16820 # Append the text in VALUE to the end of the definition contained in VAR. Take
16821 # advantage of any shell optimizations that allow amortized linear growth over
16822 # repeated appends, instead of the typical quadratic growth present in naive
16823 # implementations.
16824 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16825 eval 'as_fn_append ()
16827 eval $1+=\$2
16829 else
16830 as_fn_append ()
16832 eval $1=\$$1\$2
16834 fi # as_fn_append
16836 # as_fn_arith ARG...
16837 # ------------------
16838 # Perform arithmetic evaluation on the ARGs, and store the result in the
16839 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16840 # must be portable across $(()) and expr.
16841 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16842 eval 'as_fn_arith ()
16844 as_val=$(( $* ))
16846 else
16847 as_fn_arith ()
16849 as_val=`expr "$@" || test $? -eq 1`
16851 fi # as_fn_arith
16854 if expr a : '\(a\)' >/dev/null 2>&1 &&
16855 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16856 as_expr=expr
16857 else
16858 as_expr=false
16861 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16862 as_basename=basename
16863 else
16864 as_basename=false
16867 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16868 as_dirname=dirname
16869 else
16870 as_dirname=false
16873 as_me=`$as_basename -- "$0" ||
16874 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16875 X"$0" : 'X\(//\)$' \| \
16876 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16877 $as_echo X/"$0" |
16878 sed '/^.*\/\([^/][^/]*\)\/*$/{
16879 s//\1/
16882 /^X\/\(\/\/\)$/{
16883 s//\1/
16886 /^X\/\(\/\).*/{
16887 s//\1/
16890 s/.*/./; q'`
16892 # Avoid depending upon Character Ranges.
16893 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16894 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16895 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16896 as_cr_digits='0123456789'
16897 as_cr_alnum=$as_cr_Letters$as_cr_digits
16899 ECHO_C= ECHO_N= ECHO_T=
16900 case `echo -n x` in #(((((
16901 -n*)
16902 case `echo 'xy\c'` in
16903 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16904 xy) ECHO_C='\c';;
16905 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16906 ECHO_T=' ';;
16907 esac;;
16909 ECHO_N='-n';;
16910 esac
16912 rm -f conf$$ conf$$.exe conf$$.file
16913 if test -d conf$$.dir; then
16914 rm -f conf$$.dir/conf$$.file
16915 else
16916 rm -f conf$$.dir
16917 mkdir conf$$.dir 2>/dev/null
16919 if (echo >conf$$.file) 2>/dev/null; then
16920 if ln -s conf$$.file conf$$ 2>/dev/null; then
16921 as_ln_s='ln -s'
16922 # ... but there are two gotchas:
16923 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16924 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16925 # In both cases, we have to default to `cp -p'.
16926 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16927 as_ln_s='cp -p'
16928 elif ln conf$$.file conf$$ 2>/dev/null; then
16929 as_ln_s=ln
16930 else
16931 as_ln_s='cp -p'
16933 else
16934 as_ln_s='cp -p'
16936 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16937 rmdir conf$$.dir 2>/dev/null
16940 # as_fn_mkdir_p
16941 # -------------
16942 # Create "$as_dir" as a directory, including parents if necessary.
16943 as_fn_mkdir_p ()
16946 case $as_dir in #(
16947 -*) as_dir=./$as_dir;;
16948 esac
16949 test -d "$as_dir" || eval $as_mkdir_p || {
16950 as_dirs=
16951 while :; do
16952 case $as_dir in #(
16953 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16954 *) as_qdir=$as_dir;;
16955 esac
16956 as_dirs="'$as_qdir' $as_dirs"
16957 as_dir=`$as_dirname -- "$as_dir" ||
16958 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16959 X"$as_dir" : 'X\(//\)[^/]' \| \
16960 X"$as_dir" : 'X\(//\)$' \| \
16961 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16962 $as_echo X"$as_dir" |
16963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16964 s//\1/
16967 /^X\(\/\/\)[^/].*/{
16968 s//\1/
16971 /^X\(\/\/\)$/{
16972 s//\1/
16975 /^X\(\/\).*/{
16976 s//\1/
16979 s/.*/./; q'`
16980 test -d "$as_dir" && break
16981 done
16982 test -z "$as_dirs" || eval "mkdir $as_dirs"
16983 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16986 } # as_fn_mkdir_p
16987 if mkdir -p . 2>/dev/null; then
16988 as_mkdir_p='mkdir -p "$as_dir"'
16989 else
16990 test -d ./-p && rmdir ./-p
16991 as_mkdir_p=false
16994 if test -x / >/dev/null 2>&1; then
16995 as_test_x='test -x'
16996 else
16997 if ls -dL / >/dev/null 2>&1; then
16998 as_ls_L_option=L
16999 else
17000 as_ls_L_option=
17002 as_test_x='
17003 eval sh -c '\''
17004 if test -d "$1"; then
17005 test -d "$1/.";
17006 else
17007 case $1 in #(
17008 -*)set "./$1";;
17009 esac;
17010 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17011 ???[sx]*):;;*)false;;esac;fi
17012 '\'' sh
17015 as_executable_p=$as_test_x
17017 # Sed expression to map a string onto a valid CPP name.
17018 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17020 # Sed expression to map a string onto a valid variable name.
17021 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17024 exec 6>&1
17025 ## ----------------------------------- ##
17026 ## Main body of $CONFIG_STATUS script. ##
17027 ## ----------------------------------- ##
17028 _ASEOF
17029 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17032 # Save the log message, to keep $0 and so on meaningful, and to
17033 # report actual input values of CONFIG_FILES etc. instead of their
17034 # values after options handling.
17035 ac_log="
17036 This file was extended by libffi $as_me 3.99999, which was
17037 generated by GNU Autoconf 2.64. Invocation command line was
17039 CONFIG_FILES = $CONFIG_FILES
17040 CONFIG_HEADERS = $CONFIG_HEADERS
17041 CONFIG_LINKS = $CONFIG_LINKS
17042 CONFIG_COMMANDS = $CONFIG_COMMANDS
17043 $ $0 $@
17045 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17048 _ACEOF
17050 case $ac_config_files in *"
17051 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17052 esac
17054 case $ac_config_headers in *"
17055 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17056 esac
17059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17060 # Files that config.status was made for.
17061 config_files="$ac_config_files"
17062 config_headers="$ac_config_headers"
17063 config_links="$ac_config_links"
17064 config_commands="$ac_config_commands"
17066 _ACEOF
17068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17069 ac_cs_usage="\
17070 \`$as_me' instantiates files and other configuration actions
17071 from templates according to the current configuration. Unless the files
17072 and actions are specified as TAGs, all are instantiated by default.
17074 Usage: $0 [OPTION]... [TAG]...
17076 -h, --help print this help, then exit
17077 -V, --version print version number and configuration settings, then exit
17078 -q, --quiet, --silent
17079 do not print progress messages
17080 -d, --debug don't remove temporary files
17081 --recheck update $as_me by reconfiguring in the same conditions
17082 --file=FILE[:TEMPLATE]
17083 instantiate the configuration file FILE
17084 --header=FILE[:TEMPLATE]
17085 instantiate the configuration header FILE
17087 Configuration files:
17088 $config_files
17090 Configuration headers:
17091 $config_headers
17093 Configuration links:
17094 $config_links
17096 Configuration commands:
17097 $config_commands
17099 Report bugs to <http://github.com/atgreen/libffi/issues>."
17101 _ACEOF
17102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17103 ac_cs_version="\\
17104 libffi config.status 3.99999
17105 configured by $0, generated by GNU Autoconf 2.64,
17106 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17108 Copyright (C) 2009 Free Software Foundation, Inc.
17109 This config.status script is free software; the Free Software Foundation
17110 gives unlimited permission to copy, distribute and modify it."
17112 ac_pwd='$ac_pwd'
17113 srcdir='$srcdir'
17114 INSTALL='$INSTALL'
17115 MKDIR_P='$MKDIR_P'
17116 AWK='$AWK'
17117 test -n "\$AWK" || AWK=awk
17118 _ACEOF
17120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17121 # The default lists apply if the user does not specify any file.
17122 ac_need_defaults=:
17123 while test $# != 0
17125 case $1 in
17126 --*=*)
17127 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17128 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17129 ac_shift=:
17132 ac_option=$1
17133 ac_optarg=$2
17134 ac_shift=shift
17136 esac
17138 case $ac_option in
17139 # Handling of the options.
17140 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17141 ac_cs_recheck=: ;;
17142 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17143 $as_echo "$ac_cs_version"; exit ;;
17144 --debug | --debu | --deb | --de | --d | -d )
17145 debug=: ;;
17146 --file | --fil | --fi | --f )
17147 $ac_shift
17148 case $ac_optarg in
17149 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17150 esac
17151 as_fn_append CONFIG_FILES " '$ac_optarg'"
17152 ac_need_defaults=false;;
17153 --header | --heade | --head | --hea )
17154 $ac_shift
17155 case $ac_optarg in
17156 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17157 esac
17158 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17159 ac_need_defaults=false;;
17160 --he | --h)
17161 # Conflict between --help and --header
17162 as_fn_error "ambiguous option: \`$1'
17163 Try \`$0 --help' for more information.";;
17164 --help | --hel | -h )
17165 $as_echo "$ac_cs_usage"; exit ;;
17166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17167 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17168 ac_cs_silent=: ;;
17170 # This is an error.
17171 -*) as_fn_error "unrecognized option: \`$1'
17172 Try \`$0 --help' for more information." ;;
17174 *) as_fn_append ac_config_targets " $1"
17175 ac_need_defaults=false ;;
17177 esac
17178 shift
17179 done
17181 ac_configure_extra_args=
17183 if $ac_cs_silent; then
17184 exec 6>/dev/null
17185 ac_configure_extra_args="$ac_configure_extra_args --silent"
17188 _ACEOF
17189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17190 if \$ac_cs_recheck; then
17191 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17192 shift
17193 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17194 CONFIG_SHELL='$SHELL'
17195 export CONFIG_SHELL
17196 exec "\$@"
17199 _ACEOF
17200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17201 exec 5>>config.log
17203 echo
17204 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17205 ## Running $as_me. ##
17206 _ASBOX
17207 $as_echo "$ac_log"
17208 } >&5
17210 _ACEOF
17211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17213 # INIT-COMMANDS
17216 srcdir="$srcdir"
17217 host="$host"
17218 target="$target"
17219 with_multisubdir="$with_multisubdir"
17220 with_multisrctop="$with_multisrctop"
17221 with_target_subdir="$with_target_subdir"
17222 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17223 multi_basedir="$multi_basedir"
17224 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17225 CC="$CC"
17226 CXX="$CXX"
17227 GFORTRAN="$GFORTRAN"
17228 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17231 # The HP-UX ksh and POSIX shell print the target directory to stdout
17232 # if CDPATH is set.
17233 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17235 sed_quote_subst='$sed_quote_subst'
17236 double_quote_subst='$double_quote_subst'
17237 delay_variable_subst='$delay_variable_subst'
17238 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17239 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17240 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17241 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17242 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17243 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17244 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17245 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17246 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17247 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17248 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17249 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17250 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17251 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17252 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17253 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17254 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17255 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17256 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17257 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17258 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17259 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17260 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17261 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17262 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17263 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17264 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17265 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17266 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17267 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17268 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17269 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17270 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17271 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17272 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17273 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17274 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17275 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17276 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17277 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17278 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17279 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17280 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17281 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17282 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17283 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17284 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17285 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17286 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"`'
17287 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17288 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17289 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17290 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17291 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17292 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17293 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17294 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17295 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17296 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17297 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17298 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17299 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17300 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17301 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17302 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17303 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17304 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17305 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17306 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17307 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17308 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17309 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17310 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17311 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17312 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17313 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17314 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17315 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17316 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17317 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17318 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17319 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17320 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17321 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17322 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17323 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17324 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17325 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17326 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17327 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17328 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17329 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17330 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17331 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17332 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17333 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17334 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17335 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17336 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17337 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17338 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17339 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17340 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17341 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17342 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17343 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17344 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17345 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17346 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17347 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17348 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17349 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17350 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17351 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17352 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17353 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17354 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17355 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17356 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17357 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17358 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17359 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17360 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17361 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17362 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17363 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17364 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17365 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17366 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17367 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17368 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17369 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17370 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17371 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17372 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17373 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17374 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17375 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17376 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17377 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17378 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17379 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17380 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17381 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17382 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17383 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17384 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17385 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17386 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17387 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17388 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17389 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17390 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17391 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17392 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17393 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17394 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17395 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17396 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17397 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17398 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17399 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17400 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17401 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17402 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17403 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17404 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17405 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17406 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17407 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17408 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17409 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17410 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17411 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17412 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17414 LTCC='$LTCC'
17415 LTCFLAGS='$LTCFLAGS'
17416 compiler='$compiler_DEFAULT'
17418 # A function that is used when there is no print builtin or printf.
17419 func_fallback_echo ()
17421 eval 'cat <<_LTECHO_EOF
17423 _LTECHO_EOF'
17426 # Quote evaled strings.
17427 for var in SHELL \
17428 ECHO \
17429 SED \
17430 GREP \
17431 EGREP \
17432 FGREP \
17433 LD \
17434 NM \
17435 LN_S \
17436 lt_SP2NL \
17437 lt_NL2SP \
17438 reload_flag \
17439 OBJDUMP \
17440 deplibs_check_method \
17441 file_magic_cmd \
17442 AR \
17443 AR_FLAGS \
17444 STRIP \
17445 RANLIB \
17446 CC \
17447 CFLAGS \
17448 compiler \
17449 lt_cv_sys_global_symbol_pipe \
17450 lt_cv_sys_global_symbol_to_cdecl \
17451 lt_cv_sys_global_symbol_to_c_name_address \
17452 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17453 lt_prog_compiler_no_builtin_flag \
17454 lt_prog_compiler_wl \
17455 lt_prog_compiler_pic \
17456 lt_prog_compiler_static \
17457 lt_cv_prog_compiler_c_o \
17458 need_locks \
17459 DSYMUTIL \
17460 NMEDIT \
17461 LIPO \
17462 OTOOL \
17463 OTOOL64 \
17464 shrext_cmds \
17465 export_dynamic_flag_spec \
17466 whole_archive_flag_spec \
17467 compiler_needs_object \
17468 with_gnu_ld \
17469 allow_undefined_flag \
17470 no_undefined_flag \
17471 hardcode_libdir_flag_spec \
17472 hardcode_libdir_flag_spec_ld \
17473 hardcode_libdir_separator \
17474 fix_srcfile_path \
17475 exclude_expsyms \
17476 include_expsyms \
17477 file_list_spec \
17478 variables_saved_for_relink \
17479 libname_spec \
17480 library_names_spec \
17481 soname_spec \
17482 install_override_mode \
17483 finish_eval \
17484 old_striplib \
17485 striplib \
17486 compiler_lib_search_dirs \
17487 predep_objects \
17488 postdep_objects \
17489 predeps \
17490 postdeps \
17491 compiler_lib_search_path \
17492 LD_CXX \
17493 reload_flag_CXX \
17494 compiler_CXX \
17495 lt_prog_compiler_no_builtin_flag_CXX \
17496 lt_prog_compiler_wl_CXX \
17497 lt_prog_compiler_pic_CXX \
17498 lt_prog_compiler_static_CXX \
17499 lt_cv_prog_compiler_c_o_CXX \
17500 export_dynamic_flag_spec_CXX \
17501 whole_archive_flag_spec_CXX \
17502 compiler_needs_object_CXX \
17503 with_gnu_ld_CXX \
17504 allow_undefined_flag_CXX \
17505 no_undefined_flag_CXX \
17506 hardcode_libdir_flag_spec_CXX \
17507 hardcode_libdir_flag_spec_ld_CXX \
17508 hardcode_libdir_separator_CXX \
17509 fix_srcfile_path_CXX \
17510 exclude_expsyms_CXX \
17511 include_expsyms_CXX \
17512 file_list_spec_CXX \
17513 compiler_lib_search_dirs_CXX \
17514 predep_objects_CXX \
17515 postdep_objects_CXX \
17516 predeps_CXX \
17517 postdeps_CXX \
17518 compiler_lib_search_path_CXX; do
17519 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17520 *[\\\\\\\`\\"\\\$]*)
17521 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17524 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17526 esac
17527 done
17529 # Double-quote double-evaled strings.
17530 for var in reload_cmds \
17531 old_postinstall_cmds \
17532 old_postuninstall_cmds \
17533 old_archive_cmds \
17534 extract_expsyms_cmds \
17535 old_archive_from_new_cmds \
17536 old_archive_from_expsyms_cmds \
17537 archive_cmds \
17538 archive_expsym_cmds \
17539 module_cmds \
17540 module_expsym_cmds \
17541 export_symbols_cmds \
17542 prelink_cmds \
17543 postinstall_cmds \
17544 postuninstall_cmds \
17545 finish_cmds \
17546 sys_lib_search_path_spec \
17547 sys_lib_dlsearch_path_spec \
17548 reload_cmds_CXX \
17549 old_archive_cmds_CXX \
17550 old_archive_from_new_cmds_CXX \
17551 old_archive_from_expsyms_cmds_CXX \
17552 archive_cmds_CXX \
17553 archive_expsym_cmds_CXX \
17554 module_cmds_CXX \
17555 module_expsym_cmds_CXX \
17556 export_symbols_cmds_CXX \
17557 prelink_cmds_CXX; do
17558 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17559 *[\\\\\\\`\\"\\\$]*)
17560 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17563 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17565 esac
17566 done
17568 ac_aux_dir='$ac_aux_dir'
17569 xsi_shell='$xsi_shell'
17570 lt_shell_append='$lt_shell_append'
17572 # See if we are running on zsh, and set the options which allow our
17573 # commands through without removal of \ escapes INIT.
17574 if test -n "\${ZSH_VERSION+set}" ; then
17575 setopt NO_GLOB_SUBST
17579 PACKAGE='$PACKAGE'
17580 VERSION='$VERSION'
17581 TIMESTAMP='$TIMESTAMP'
17582 RM='$RM'
17583 ofile='$ofile'
17589 TARGETDIR="$TARGETDIR"
17591 _ACEOF
17593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17595 # Handling of arguments.
17596 for ac_config_target in $ac_config_targets
17598 case $ac_config_target in
17599 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
17600 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17601 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17602 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17603 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
17604 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
17605 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
17606 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17607 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
17608 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17609 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17610 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
17611 "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
17613 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17614 esac
17615 done
17618 # If the user did not use the arguments to specify the items to instantiate,
17619 # then the envvar interface is used. Set only those that are not.
17620 # We use the long form for the default assignment because of an extremely
17621 # bizarre bug on SunOS 4.1.3.
17622 if $ac_need_defaults; then
17623 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17624 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17625 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17626 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17629 # Have a temporary directory for convenience. Make it in the build tree
17630 # simply because there is no reason against having it here, and in addition,
17631 # creating and moving files from /tmp can sometimes cause problems.
17632 # Hook for its removal unless debugging.
17633 # Note that there is a small window in which the directory will not be cleaned:
17634 # after its creation but before its name has been assigned to `$tmp'.
17635 $debug ||
17637 tmp=
17638 trap 'exit_status=$?
17639 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17641 trap 'as_fn_exit 1' 1 2 13 15
17643 # Create a (secure) tmp directory for tmp files.
17646 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17647 test -n "$tmp" && test -d "$tmp"
17648 } ||
17650 tmp=./conf$$-$RANDOM
17651 (umask 077 && mkdir "$tmp")
17652 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17654 # Set up the scripts for CONFIG_FILES section.
17655 # No need to generate them if there are no CONFIG_FILES.
17656 # This happens for instance with `./config.status config.h'.
17657 if test -n "$CONFIG_FILES"; then
17660 ac_cr=`echo X | tr X '\015'`
17661 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17662 # But we know of no other shell where ac_cr would be empty at this
17663 # point, so we can use a bashism as a fallback.
17664 if test "x$ac_cr" = x; then
17665 eval ac_cr=\$\'\\r\'
17667 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17668 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17669 ac_cs_awk_cr='\r'
17670 else
17671 ac_cs_awk_cr=$ac_cr
17674 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17675 _ACEOF
17679 echo "cat >conf$$subs.awk <<_ACEOF" &&
17680 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17681 echo "_ACEOF"
17682 } >conf$$subs.sh ||
17683 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17684 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17685 ac_delim='%!_!# '
17686 for ac_last_try in false false false false false :; do
17687 . ./conf$$subs.sh ||
17688 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17690 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17691 if test $ac_delim_n = $ac_delim_num; then
17692 break
17693 elif $ac_last_try; then
17694 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17695 else
17696 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17698 done
17699 rm -f conf$$subs.sh
17701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17702 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17703 _ACEOF
17704 sed -n '
17706 s/^/S["/; s/!.*/"]=/
17709 s/^[^!]*!//
17710 :repl
17711 t repl
17712 s/'"$ac_delim"'$//
17713 t delim
17716 s/\(.\{148\}\).*/\1/
17717 t more1
17718 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17721 b repl
17722 :more1
17723 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17726 s/.\{148\}//
17727 t nl
17728 :delim
17730 s/\(.\{148\}\).*/\1/
17731 t more2
17732 s/["\\]/\\&/g; s/^/"/; s/$/"/
17735 :more2
17736 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17739 s/.\{148\}//
17740 t delim
17741 ' <conf$$subs.awk | sed '
17742 /^[^""]/{
17744 s/\n//
17746 ' >>$CONFIG_STATUS || ac_write_fail=1
17747 rm -f conf$$subs.awk
17748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17749 _ACAWK
17750 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17751 for (key in S) S_is_set[key] = 1
17752 FS = "\a"
17756 line = $ 0
17757 nfields = split(line, field, "@")
17758 substed = 0
17759 len = length(field[1])
17760 for (i = 2; i < nfields; i++) {
17761 key = field[i]
17762 keylen = length(key)
17763 if (S_is_set[key]) {
17764 value = S[key]
17765 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17766 len += length(value) + length(field[++i])
17767 substed = 1
17768 } else
17769 len += 1 + keylen
17772 print line
17775 _ACAWK
17776 _ACEOF
17777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17778 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17779 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17780 else
17782 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17783 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17784 _ACEOF
17786 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17787 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17788 # trailing colons and then remove the whole line if VPATH becomes empty
17789 # (actually we leave an empty line to preserve line numbers).
17790 if test "x$srcdir" = x.; then
17791 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17792 s/:*\$(srcdir):*/:/
17793 s/:*\${srcdir}:*/:/
17794 s/:*@srcdir@:*/:/
17795 s/^\([^=]*=[ ]*\):*/\1/
17796 s/:*$//
17797 s/^[^=]*=[ ]*$//
17801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17802 fi # test -n "$CONFIG_FILES"
17804 # Set up the scripts for CONFIG_HEADERS section.
17805 # No need to generate them if there are no CONFIG_HEADERS.
17806 # This happens for instance with `./config.status Makefile'.
17807 if test -n "$CONFIG_HEADERS"; then
17808 cat >"$tmp/defines.awk" <<\_ACAWK ||
17809 BEGIN {
17810 _ACEOF
17812 # Transform confdefs.h into an awk script `defines.awk', embedded as
17813 # here-document in config.status, that substitutes the proper values into
17814 # config.h.in to produce config.h.
17816 # Create a delimiter string that does not exist in confdefs.h, to ease
17817 # handling of long lines.
17818 ac_delim='%!_!# '
17819 for ac_last_try in false false :; do
17820 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17821 if test -z "$ac_t"; then
17822 break
17823 elif $ac_last_try; then
17824 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17825 else
17826 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17828 done
17830 # For the awk script, D is an array of macro values keyed by name,
17831 # likewise P contains macro parameters if any. Preserve backslash
17832 # newline sequences.
17834 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17835 sed -n '
17836 s/.\{148\}/&'"$ac_delim"'/g
17837 t rset
17838 :rset
17839 s/^[ ]*#[ ]*define[ ][ ]*/ /
17840 t def
17842 :def
17843 s/\\$//
17844 t bsnl
17845 s/["\\]/\\&/g
17846 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17847 D["\1"]=" \3"/p
17848 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17850 :bsnl
17851 s/["\\]/\\&/g
17852 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17853 D["\1"]=" \3\\\\\\n"\\/p
17854 t cont
17855 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17856 t cont
17858 :cont
17860 s/.\{148\}/&'"$ac_delim"'/g
17861 t clear
17862 :clear
17863 s/\\$//
17864 t bsnlc
17865 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17867 :bsnlc
17868 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17869 b cont
17870 ' <confdefs.h | sed '
17871 s/'"$ac_delim"'/"\\\
17872 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17875 for (key in D) D_is_set[key] = 1
17876 FS = "\a"
17878 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17879 line = \$ 0
17880 split(line, arg, " ")
17881 if (arg[1] == "#") {
17882 defundef = arg[2]
17883 mac1 = arg[3]
17884 } else {
17885 defundef = substr(arg[1], 2)
17886 mac1 = arg[2]
17888 split(mac1, mac2, "(") #)
17889 macro = mac2[1]
17890 prefix = substr(line, 1, index(line, defundef) - 1)
17891 if (D_is_set[macro]) {
17892 # Preserve the white space surrounding the "#".
17893 print prefix "define", macro P[macro] D[macro]
17894 next
17895 } else {
17896 # Replace #undef with comments. This is necessary, for example,
17897 # in the case of _POSIX_SOURCE, which is predefined and required
17898 # on some systems where configure will not decide to define it.
17899 if (defundef == "undef") {
17900 print "/*", prefix defundef, macro, "*/"
17901 next
17905 { print }
17906 _ACAWK
17907 _ACEOF
17908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17909 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17910 fi # test -n "$CONFIG_HEADERS"
17913 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17914 shift
17915 for ac_tag
17917 case $ac_tag in
17918 :[FHLC]) ac_mode=$ac_tag; continue;;
17919 esac
17920 case $ac_mode$ac_tag in
17921 :[FHL]*:*);;
17922 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17923 :[FH]-) ac_tag=-:-;;
17924 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17925 esac
17926 ac_save_IFS=$IFS
17927 IFS=:
17928 set x $ac_tag
17929 IFS=$ac_save_IFS
17930 shift
17931 ac_file=$1
17932 shift
17934 case $ac_mode in
17935 :L) ac_source=$1;;
17936 :[FH])
17937 ac_file_inputs=
17938 for ac_f
17940 case $ac_f in
17941 -) ac_f="$tmp/stdin";;
17942 *) # Look for the file first in the build tree, then in the source tree
17943 # (if the path is not absolute). The absolute path cannot be DOS-style,
17944 # because $ac_f cannot contain `:'.
17945 test -f "$ac_f" ||
17946 case $ac_f in
17947 [\\/$]*) false;;
17948 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17949 esac ||
17950 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17951 esac
17952 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17953 as_fn_append ac_file_inputs " '$ac_f'"
17954 done
17956 # Let's still pretend it is `configure' which instantiates (i.e., don't
17957 # use $as_me), people would be surprised to read:
17958 # /* config.h. Generated by config.status. */
17959 configure_input='Generated from '`
17960 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17961 `' by configure.'
17962 if test x"$ac_file" != x-; then
17963 configure_input="$ac_file. $configure_input"
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17965 $as_echo "$as_me: creating $ac_file" >&6;}
17967 # Neutralize special characters interpreted by sed in replacement strings.
17968 case $configure_input in #(
17969 *\&* | *\|* | *\\* )
17970 ac_sed_conf_input=`$as_echo "$configure_input" |
17971 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17972 *) ac_sed_conf_input=$configure_input;;
17973 esac
17975 case $ac_tag in
17976 *:-:* | *:-) cat >"$tmp/stdin" \
17977 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17978 esac
17980 esac
17982 ac_dir=`$as_dirname -- "$ac_file" ||
17983 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17984 X"$ac_file" : 'X\(//\)[^/]' \| \
17985 X"$ac_file" : 'X\(//\)$' \| \
17986 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17987 $as_echo X"$ac_file" |
17988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17989 s//\1/
17992 /^X\(\/\/\)[^/].*/{
17993 s//\1/
17996 /^X\(\/\/\)$/{
17997 s//\1/
18000 /^X\(\/\).*/{
18001 s//\1/
18004 s/.*/./; q'`
18005 as_dir="$ac_dir"; as_fn_mkdir_p
18006 ac_builddir=.
18008 case "$ac_dir" in
18009 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18011 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18012 # A ".." for each directory in $ac_dir_suffix.
18013 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18014 case $ac_top_builddir_sub in
18015 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18016 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18017 esac ;;
18018 esac
18019 ac_abs_top_builddir=$ac_pwd
18020 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18021 # for backward compatibility:
18022 ac_top_builddir=$ac_top_build_prefix
18024 case $srcdir in
18025 .) # We are building in place.
18026 ac_srcdir=.
18027 ac_top_srcdir=$ac_top_builddir_sub
18028 ac_abs_top_srcdir=$ac_pwd ;;
18029 [\\/]* | ?:[\\/]* ) # Absolute name.
18030 ac_srcdir=$srcdir$ac_dir_suffix;
18031 ac_top_srcdir=$srcdir
18032 ac_abs_top_srcdir=$srcdir ;;
18033 *) # Relative name.
18034 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18035 ac_top_srcdir=$ac_top_build_prefix$srcdir
18036 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18037 esac
18038 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18041 case $ac_mode in
18044 # CONFIG_FILE
18047 case $INSTALL in
18048 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18049 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18050 esac
18051 ac_MKDIR_P=$MKDIR_P
18052 case $MKDIR_P in
18053 [\\/$]* | ?:[\\/]* ) ;;
18054 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18055 esac
18056 _ACEOF
18058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18059 # If the template does not know about datarootdir, expand it.
18060 # FIXME: This hack should be removed a few years after 2.60.
18061 ac_datarootdir_hack=; ac_datarootdir_seen=
18062 ac_sed_dataroot='
18063 /datarootdir/ {
18067 /@datadir@/p
18068 /@docdir@/p
18069 /@infodir@/p
18070 /@localedir@/p
18071 /@mandir@/p'
18072 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18073 *datarootdir*) ac_datarootdir_seen=yes;;
18074 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18076 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18077 _ACEOF
18078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18079 ac_datarootdir_hack='
18080 s&@datadir@&$datadir&g
18081 s&@docdir@&$docdir&g
18082 s&@infodir@&$infodir&g
18083 s&@localedir@&$localedir&g
18084 s&@mandir@&$mandir&g
18085 s&\\\${datarootdir}&$datarootdir&g' ;;
18086 esac
18087 _ACEOF
18089 # Neutralize VPATH when `$srcdir' = `.'.
18090 # Shell code in configure.ac might set extrasub.
18091 # FIXME: do we really want to maintain this feature?
18092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18093 ac_sed_extra="$ac_vpsub
18094 $extrasub
18095 _ACEOF
18096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18098 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18099 s|@configure_input@|$ac_sed_conf_input|;t t
18100 s&@top_builddir@&$ac_top_builddir_sub&;t t
18101 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18102 s&@srcdir@&$ac_srcdir&;t t
18103 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18104 s&@top_srcdir@&$ac_top_srcdir&;t t
18105 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18106 s&@builddir@&$ac_builddir&;t t
18107 s&@abs_builddir@&$ac_abs_builddir&;t t
18108 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18109 s&@INSTALL@&$ac_INSTALL&;t t
18110 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18111 $ac_datarootdir_hack
18113 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18114 || as_fn_error "could not create $ac_file" "$LINENO" 5
18116 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18117 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18118 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18120 which seems to be undefined. Please make sure it is defined." >&5
18121 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18122 which seems to be undefined. Please make sure it is defined." >&2;}
18124 rm -f "$tmp/stdin"
18125 case $ac_file in
18126 -) cat "$tmp/out" && rm -f "$tmp/out";;
18127 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18128 esac \
18129 || as_fn_error "could not create $ac_file" "$LINENO" 5
18133 # CONFIG_HEADER
18135 if test x"$ac_file" != x-; then
18137 $as_echo "/* $configure_input */" \
18138 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18139 } >"$tmp/config.h" \
18140 || as_fn_error "could not create $ac_file" "$LINENO" 5
18141 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18143 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18144 else
18145 rm -f "$ac_file"
18146 mv "$tmp/config.h" "$ac_file" \
18147 || as_fn_error "could not create $ac_file" "$LINENO" 5
18149 else
18150 $as_echo "/* $configure_input */" \
18151 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18152 || as_fn_error "could not create -" "$LINENO" 5
18154 # Compute "$ac_file"'s index in $config_headers.
18155 _am_arg="$ac_file"
18156 _am_stamp_count=1
18157 for _am_header in $config_headers :; do
18158 case $_am_header in
18159 $_am_arg | $_am_arg:* )
18160 break ;;
18162 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18163 esac
18164 done
18165 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18166 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18167 X"$_am_arg" : 'X\(//\)[^/]' \| \
18168 X"$_am_arg" : 'X\(//\)$' \| \
18169 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18170 $as_echo X"$_am_arg" |
18171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18172 s//\1/
18175 /^X\(\/\/\)[^/].*/{
18176 s//\1/
18179 /^X\(\/\/\)$/{
18180 s//\1/
18183 /^X\(\/\).*/{
18184 s//\1/
18187 s/.*/./; q'`/stamp-h$_am_stamp_count
18191 # CONFIG_LINK
18194 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18196 else
18197 # Prefer the file from the source tree if names are identical.
18198 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18199 ac_source=$srcdir/$ac_source
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18203 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18205 if test ! -r "$ac_source"; then
18206 as_fn_error "$ac_source: file not found" "$LINENO" 5
18208 rm -f "$ac_file"
18210 # Try a relative symlink, then a hard link, then a copy.
18211 case $srcdir in
18212 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18213 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18214 esac
18215 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18216 ln "$ac_source" "$ac_file" 2>/dev/null ||
18217 cp -p "$ac_source" "$ac_file" ||
18218 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18221 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18222 $as_echo "$as_me: executing $ac_file commands" >&6;}
18224 esac
18227 case $ac_file$ac_mode in
18228 "default-1":C)
18229 # Only add multilib support code if we just rebuilt the top-level
18230 # Makefile.
18231 case " $CONFIG_FILES " in
18232 *" Makefile "*)
18233 ac_file=Makefile . ${multi_basedir}/config-ml.in
18235 esac ;;
18236 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18237 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18238 # are listed without --file. Let's play safe and only enable the eval
18239 # if we detect the quoting.
18240 case $CONFIG_FILES in
18241 *\'*) eval set x "$CONFIG_FILES" ;;
18242 *) set x $CONFIG_FILES ;;
18243 esac
18244 shift
18245 for mf
18247 # Strip MF so we end up with the name of the file.
18248 mf=`echo "$mf" | sed -e 's/:.*$//'`
18249 # Check whether this is an Automake generated Makefile or not.
18250 # We used to match only the files named `Makefile.in', but
18251 # some people rename them; so instead we look at the file content.
18252 # Grep'ing the first line is not enough: some people post-process
18253 # each Makefile.in and add a new line on top of each file to say so.
18254 # Grep'ing the whole file is not good either: AIX grep has a line
18255 # limit of 2048, but all sed's we know have understand at least 4000.
18256 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18257 dirpart=`$as_dirname -- "$mf" ||
18258 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18259 X"$mf" : 'X\(//\)[^/]' \| \
18260 X"$mf" : 'X\(//\)$' \| \
18261 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18262 $as_echo X"$mf" |
18263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18264 s//\1/
18267 /^X\(\/\/\)[^/].*/{
18268 s//\1/
18271 /^X\(\/\/\)$/{
18272 s//\1/
18275 /^X\(\/\).*/{
18276 s//\1/
18279 s/.*/./; q'`
18280 else
18281 continue
18283 # Extract the definition of DEPDIR, am__include, and am__quote
18284 # from the Makefile without running `make'.
18285 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18286 test -z "$DEPDIR" && continue
18287 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18288 test -z "am__include" && continue
18289 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18290 # When using ansi2knr, U may be empty or an underscore; expand it
18291 U=`sed -n 's/^U = //p' < "$mf"`
18292 # Find all dependency output files, they are included files with
18293 # $(DEPDIR) in their names. We invoke sed twice because it is the
18294 # simplest approach to changing $(DEPDIR) to its actual value in the
18295 # expansion.
18296 for file in `sed -n "
18297 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18298 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18299 # Make sure the directory exists.
18300 test -f "$dirpart/$file" && continue
18301 fdir=`$as_dirname -- "$file" ||
18302 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18303 X"$file" : 'X\(//\)[^/]' \| \
18304 X"$file" : 'X\(//\)$' \| \
18305 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18306 $as_echo X"$file" |
18307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18308 s//\1/
18311 /^X\(\/\/\)[^/].*/{
18312 s//\1/
18315 /^X\(\/\/\)$/{
18316 s//\1/
18319 /^X\(\/\).*/{
18320 s//\1/
18323 s/.*/./; q'`
18324 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18325 # echo "creating $dirpart/$file"
18326 echo '# dummy' > "$dirpart/$file"
18327 done
18328 done
18331 "libtool":C)
18333 # See if we are running on zsh, and set the options which allow our
18334 # commands through without removal of \ escapes.
18335 if test -n "${ZSH_VERSION+set}" ; then
18336 setopt NO_GLOB_SUBST
18339 cfgfile="${ofile}T"
18340 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18341 $RM "$cfgfile"
18343 cat <<_LT_EOF >> "$cfgfile"
18344 #! $SHELL
18346 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18347 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18348 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18349 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18351 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18352 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18353 # Written by Gordon Matzigkeit, 1996
18355 # This file is part of GNU Libtool.
18357 # GNU Libtool is free software; you can redistribute it and/or
18358 # modify it under the terms of the GNU General Public License as
18359 # published by the Free Software Foundation; either version 2 of
18360 # the License, or (at your option) any later version.
18362 # As a special exception to the GNU General Public License,
18363 # if you distribute this file as part of a program or library that
18364 # is built using GNU Libtool, you may include this file under the
18365 # same distribution terms that you use for the rest of that program.
18367 # GNU Libtool is distributed in the hope that it will be useful,
18368 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18369 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18370 # GNU General Public License for more details.
18372 # You should have received a copy of the GNU General Public License
18373 # along with GNU Libtool; see the file COPYING. If not, a copy
18374 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18375 # obtained by writing to the Free Software Foundation, Inc.,
18376 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18379 # The names of the tagged configurations supported by this script.
18380 available_tags="CXX "
18382 # ### BEGIN LIBTOOL CONFIG
18384 # Which release of libtool.m4 was used?
18385 macro_version=$macro_version
18386 macro_revision=$macro_revision
18388 # Whether or not to build shared libraries.
18389 build_libtool_libs=$enable_shared
18391 # Whether or not to build static libraries.
18392 build_old_libs=$enable_static
18394 # What type of objects to build.
18395 pic_mode=$pic_mode
18397 # Whether or not to optimize for fast installation.
18398 fast_install=$enable_fast_install
18400 # Shell to use when invoking shell scripts.
18401 SHELL=$lt_SHELL
18403 # An echo program that protects backslashes.
18404 ECHO=$lt_ECHO
18406 # The host system.
18407 host_alias=$host_alias
18408 host=$host
18409 host_os=$host_os
18411 # The build system.
18412 build_alias=$build_alias
18413 build=$build
18414 build_os=$build_os
18416 # A sed program that does not truncate output.
18417 SED=$lt_SED
18419 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18420 Xsed="\$SED -e 1s/^X//"
18422 # A grep program that handles long lines.
18423 GREP=$lt_GREP
18425 # An ERE matcher.
18426 EGREP=$lt_EGREP
18428 # A literal string matcher.
18429 FGREP=$lt_FGREP
18431 # A BSD- or MS-compatible name lister.
18432 NM=$lt_NM
18434 # Whether we need soft or hard links.
18435 LN_S=$lt_LN_S
18437 # What is the maximum length of a command?
18438 max_cmd_len=$max_cmd_len
18440 # Object file suffix (normally "o").
18441 objext=$ac_objext
18443 # Executable file suffix (normally "").
18444 exeext=$exeext
18446 # whether the shell understands "unset".
18447 lt_unset=$lt_unset
18449 # turn spaces into newlines.
18450 SP2NL=$lt_lt_SP2NL
18452 # turn newlines into spaces.
18453 NL2SP=$lt_lt_NL2SP
18455 # An object symbol dumper.
18456 OBJDUMP=$lt_OBJDUMP
18458 # Method to check whether dependent libraries are shared objects.
18459 deplibs_check_method=$lt_deplibs_check_method
18461 # Command to use when deplibs_check_method == "file_magic".
18462 file_magic_cmd=$lt_file_magic_cmd
18464 # The archiver.
18465 AR=$lt_AR
18466 AR_FLAGS=$lt_AR_FLAGS
18468 # A symbol stripping program.
18469 STRIP=$lt_STRIP
18471 # Commands used to install an old-style archive.
18472 RANLIB=$lt_RANLIB
18473 old_postinstall_cmds=$lt_old_postinstall_cmds
18474 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18476 # Whether to use a lock for old archive extraction.
18477 lock_old_archive_extraction=$lock_old_archive_extraction
18479 # A C compiler.
18480 LTCC=$lt_CC
18482 # LTCC compiler flags.
18483 LTCFLAGS=$lt_CFLAGS
18485 # Take the output of nm and produce a listing of raw symbols and C names.
18486 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18488 # Transform the output of nm in a proper C declaration.
18489 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18491 # Transform the output of nm in a C name address pair.
18492 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18494 # Transform the output of nm in a C name address pair when lib prefix is needed.
18495 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18497 # The name of the directory that contains temporary libtool files.
18498 objdir=$objdir
18500 # Used to examine libraries when file_magic_cmd begins with "file".
18501 MAGIC_CMD=$MAGIC_CMD
18503 # Must we lock files when doing compilation?
18504 need_locks=$lt_need_locks
18506 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18507 DSYMUTIL=$lt_DSYMUTIL
18509 # Tool to change global to local symbols on Mac OS X.
18510 NMEDIT=$lt_NMEDIT
18512 # Tool to manipulate fat objects and archives on Mac OS X.
18513 LIPO=$lt_LIPO
18515 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18516 OTOOL=$lt_OTOOL
18518 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18519 OTOOL64=$lt_OTOOL64
18521 # Old archive suffix (normally "a").
18522 libext=$libext
18524 # Shared library suffix (normally ".so").
18525 shrext_cmds=$lt_shrext_cmds
18527 # The commands to extract the exported symbol list from a shared archive.
18528 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18530 # Variables whose values should be saved in libtool wrapper scripts and
18531 # restored at link time.
18532 variables_saved_for_relink=$lt_variables_saved_for_relink
18534 # Do we need the "lib" prefix for modules?
18535 need_lib_prefix=$need_lib_prefix
18537 # Do we need a version for libraries?
18538 need_version=$need_version
18540 # Library versioning type.
18541 version_type=$version_type
18543 # Shared library runtime path variable.
18544 runpath_var=$runpath_var
18546 # Shared library path variable.
18547 shlibpath_var=$shlibpath_var
18549 # Is shlibpath searched before the hard-coded library search path?
18550 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18552 # Format of library name prefix.
18553 libname_spec=$lt_libname_spec
18555 # List of archive names. First name is the real one, the rest are links.
18556 # The last name is the one that the linker finds with -lNAME
18557 library_names_spec=$lt_library_names_spec
18559 # The coded name of the library, if different from the real name.
18560 soname_spec=$lt_soname_spec
18562 # Permission mode override for installation of shared libraries.
18563 install_override_mode=$lt_install_override_mode
18565 # Command to use after installation of a shared archive.
18566 postinstall_cmds=$lt_postinstall_cmds
18568 # Command to use after uninstallation of a shared archive.
18569 postuninstall_cmds=$lt_postuninstall_cmds
18571 # Commands used to finish a libtool library installation in a directory.
18572 finish_cmds=$lt_finish_cmds
18574 # As "finish_cmds", except a single script fragment to be evaled but
18575 # not shown.
18576 finish_eval=$lt_finish_eval
18578 # Whether we should hardcode library paths into libraries.
18579 hardcode_into_libs=$hardcode_into_libs
18581 # Compile-time system search path for libraries.
18582 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18584 # Run-time system search path for libraries.
18585 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18587 # Whether dlopen is supported.
18588 dlopen_support=$enable_dlopen
18590 # Whether dlopen of programs is supported.
18591 dlopen_self=$enable_dlopen_self
18593 # Whether dlopen of statically linked programs is supported.
18594 dlopen_self_static=$enable_dlopen_self_static
18596 # Commands to strip libraries.
18597 old_striplib=$lt_old_striplib
18598 striplib=$lt_striplib
18601 # The linker used to build libraries.
18602 LD=$lt_LD
18604 # How to create reloadable object files.
18605 reload_flag=$lt_reload_flag
18606 reload_cmds=$lt_reload_cmds
18608 # Commands used to build an old-style archive.
18609 old_archive_cmds=$lt_old_archive_cmds
18611 # A language specific compiler.
18612 CC=$lt_compiler
18614 # Is the compiler the GNU compiler?
18615 with_gcc=$GCC
18617 # Compiler flag to turn off builtin functions.
18618 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18620 # How to pass a linker flag through the compiler.
18621 wl=$lt_lt_prog_compiler_wl
18623 # Additional compiler flags for building library objects.
18624 pic_flag=$lt_lt_prog_compiler_pic
18626 # Compiler flag to prevent dynamic linking.
18627 link_static_flag=$lt_lt_prog_compiler_static
18629 # Does compiler simultaneously support -c and -o options?
18630 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18632 # Whether or not to add -lc for building shared libraries.
18633 build_libtool_need_lc=$archive_cmds_need_lc
18635 # Whether or not to disallow shared libs when runtime libs are static.
18636 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18638 # Compiler flag to allow reflexive dlopens.
18639 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18641 # Compiler flag to generate shared objects directly from archives.
18642 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18644 # Whether the compiler copes with passing no objects directly.
18645 compiler_needs_object=$lt_compiler_needs_object
18647 # Create an old-style archive from a shared archive.
18648 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18650 # Create a temporary old-style archive to link instead of a shared archive.
18651 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18653 # Commands used to build a shared archive.
18654 archive_cmds=$lt_archive_cmds
18655 archive_expsym_cmds=$lt_archive_expsym_cmds
18657 # Commands used to build a loadable module if different from building
18658 # a shared archive.
18659 module_cmds=$lt_module_cmds
18660 module_expsym_cmds=$lt_module_expsym_cmds
18662 # Whether we are building with GNU ld or not.
18663 with_gnu_ld=$lt_with_gnu_ld
18665 # Flag that allows shared libraries with undefined symbols to be built.
18666 allow_undefined_flag=$lt_allow_undefined_flag
18668 # Flag that enforces no undefined symbols.
18669 no_undefined_flag=$lt_no_undefined_flag
18671 # Flag to hardcode \$libdir into a binary during linking.
18672 # This must work even if \$libdir does not exist
18673 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18675 # If ld is used when linking, flag to hardcode \$libdir into a binary
18676 # during linking. This must work even if \$libdir does not exist.
18677 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18679 # Whether we need a single "-rpath" flag with a separated argument.
18680 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18682 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18683 # DIR into the resulting binary.
18684 hardcode_direct=$hardcode_direct
18686 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18687 # DIR into the resulting binary and the resulting library dependency is
18688 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18689 # library is relocated.
18690 hardcode_direct_absolute=$hardcode_direct_absolute
18692 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18693 # into the resulting binary.
18694 hardcode_minus_L=$hardcode_minus_L
18696 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18697 # into the resulting binary.
18698 hardcode_shlibpath_var=$hardcode_shlibpath_var
18700 # Set to "yes" if building a shared library automatically hardcodes DIR
18701 # into the library and all subsequent libraries and executables linked
18702 # against it.
18703 hardcode_automatic=$hardcode_automatic
18705 # Set to yes if linker adds runtime paths of dependent libraries
18706 # to runtime path list.
18707 inherit_rpath=$inherit_rpath
18709 # Whether libtool must link a program against all its dependency libraries.
18710 link_all_deplibs=$link_all_deplibs
18712 # Fix the shell variable \$srcfile for the compiler.
18713 fix_srcfile_path=$lt_fix_srcfile_path
18715 # Set to "yes" if exported symbols are required.
18716 always_export_symbols=$always_export_symbols
18718 # The commands to list exported symbols.
18719 export_symbols_cmds=$lt_export_symbols_cmds
18721 # Symbols that should not be listed in the preloaded symbols.
18722 exclude_expsyms=$lt_exclude_expsyms
18724 # Symbols that must always be exported.
18725 include_expsyms=$lt_include_expsyms
18727 # Commands necessary for linking programs (against libraries) with templates.
18728 prelink_cmds=$lt_prelink_cmds
18730 # Specify filename containing input files.
18731 file_list_spec=$lt_file_list_spec
18733 # How to hardcode a shared library path into an executable.
18734 hardcode_action=$hardcode_action
18736 # The directories searched by this compiler when creating a shared library.
18737 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18739 # Dependencies to place before and after the objects being linked to
18740 # create a shared library.
18741 predep_objects=$lt_predep_objects
18742 postdep_objects=$lt_postdep_objects
18743 predeps=$lt_predeps
18744 postdeps=$lt_postdeps
18746 # The library search path used internally by the compiler when linking
18747 # a shared library.
18748 compiler_lib_search_path=$lt_compiler_lib_search_path
18750 # ### END LIBTOOL CONFIG
18752 _LT_EOF
18754 case $host_os in
18755 aix3*)
18756 cat <<\_LT_EOF >> "$cfgfile"
18757 # AIX sometimes has problems with the GCC collect2 program. For some
18758 # reason, if we set the COLLECT_NAMES environment variable, the problems
18759 # vanish in a puff of smoke.
18760 if test "X${COLLECT_NAMES+set}" != Xset; then
18761 COLLECT_NAMES=
18762 export COLLECT_NAMES
18764 _LT_EOF
18766 esac
18769 ltmain="$ac_aux_dir/ltmain.sh"
18772 # We use sed instead of cat because bash on DJGPP gets confused if
18773 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18774 # text mode, it properly converts lines to CR/LF. This bash problem
18775 # is reportedly fixed, but why not run on old versions too?
18776 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18777 || (rm -f "$cfgfile"; exit 1)
18779 case $xsi_shell in
18780 yes)
18781 cat << \_LT_EOF >> "$cfgfile"
18783 # func_dirname file append nondir_replacement
18784 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18785 # otherwise set result to NONDIR_REPLACEMENT.
18786 func_dirname ()
18788 case ${1} in
18789 */*) func_dirname_result="${1%/*}${2}" ;;
18790 * ) func_dirname_result="${3}" ;;
18791 esac
18794 # func_basename file
18795 func_basename ()
18797 func_basename_result="${1##*/}"
18800 # func_dirname_and_basename file append nondir_replacement
18801 # perform func_basename and func_dirname in a single function
18802 # call:
18803 # dirname: Compute the dirname of FILE. If nonempty,
18804 # add APPEND to the result, otherwise set result
18805 # to NONDIR_REPLACEMENT.
18806 # value returned in "$func_dirname_result"
18807 # basename: Compute filename of FILE.
18808 # value retuned in "$func_basename_result"
18809 # Implementation must be kept synchronized with func_dirname
18810 # and func_basename. For efficiency, we do not delegate to
18811 # those functions but instead duplicate the functionality here.
18812 func_dirname_and_basename ()
18814 case ${1} in
18815 */*) func_dirname_result="${1%/*}${2}" ;;
18816 * ) func_dirname_result="${3}" ;;
18817 esac
18818 func_basename_result="${1##*/}"
18821 # func_stripname prefix suffix name
18822 # strip PREFIX and SUFFIX off of NAME.
18823 # PREFIX and SUFFIX must not contain globbing or regex special
18824 # characters, hashes, percent signs, but SUFFIX may contain a leading
18825 # dot (in which case that matches only a dot).
18826 func_stripname ()
18828 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18829 # positional parameters, so assign one to ordinary parameter first.
18830 func_stripname_result=${3}
18831 func_stripname_result=${func_stripname_result#"${1}"}
18832 func_stripname_result=${func_stripname_result%"${2}"}
18835 # func_opt_split
18836 func_opt_split ()
18838 func_opt_split_opt=${1%%=*}
18839 func_opt_split_arg=${1#*=}
18842 # func_lo2o object
18843 func_lo2o ()
18845 case ${1} in
18846 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18847 *) func_lo2o_result=${1} ;;
18848 esac
18851 # func_xform libobj-or-source
18852 func_xform ()
18854 func_xform_result=${1%.*}.lo
18857 # func_arith arithmetic-term...
18858 func_arith ()
18860 func_arith_result=$(( $* ))
18863 # func_len string
18864 # STRING may not start with a hyphen.
18865 func_len ()
18867 func_len_result=${#1}
18870 _LT_EOF
18872 *) # Bourne compatible functions.
18873 cat << \_LT_EOF >> "$cfgfile"
18875 # func_dirname file append nondir_replacement
18876 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18877 # otherwise set result to NONDIR_REPLACEMENT.
18878 func_dirname ()
18880 # Extract subdirectory from the argument.
18881 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18882 if test "X$func_dirname_result" = "X${1}"; then
18883 func_dirname_result="${3}"
18884 else
18885 func_dirname_result="$func_dirname_result${2}"
18889 # func_basename file
18890 func_basename ()
18892 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18896 # func_stripname prefix suffix name
18897 # strip PREFIX and SUFFIX off of NAME.
18898 # PREFIX and SUFFIX must not contain globbing or regex special
18899 # characters, hashes, percent signs, but SUFFIX may contain a leading
18900 # dot (in which case that matches only a dot).
18901 # func_strip_suffix prefix name
18902 func_stripname ()
18904 case ${2} in
18905 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18906 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18907 esac
18910 # sed scripts:
18911 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18912 my_sed_long_arg='1s/^-[^=]*=//'
18914 # func_opt_split
18915 func_opt_split ()
18917 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18918 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18921 # func_lo2o object
18922 func_lo2o ()
18924 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18927 # func_xform libobj-or-source
18928 func_xform ()
18930 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18933 # func_arith arithmetic-term...
18934 func_arith ()
18936 func_arith_result=`expr "$@"`
18939 # func_len string
18940 # STRING may not start with a hyphen.
18941 func_len ()
18943 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18946 _LT_EOF
18947 esac
18949 case $lt_shell_append in
18950 yes)
18951 cat << \_LT_EOF >> "$cfgfile"
18953 # func_append var value
18954 # Append VALUE to the end of shell variable VAR.
18955 func_append ()
18957 eval "$1+=\$2"
18959 _LT_EOF
18962 cat << \_LT_EOF >> "$cfgfile"
18964 # func_append var value
18965 # Append VALUE to the end of shell variable VAR.
18966 func_append ()
18968 eval "$1=\$$1\$2"
18971 _LT_EOF
18973 esac
18976 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18977 || (rm -f "$cfgfile"; exit 1)
18979 mv -f "$cfgfile" "$ofile" ||
18980 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18981 chmod +x "$ofile"
18984 cat <<_LT_EOF >> "$ofile"
18986 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18988 # The linker used to build libraries.
18989 LD=$lt_LD_CXX
18991 # How to create reloadable object files.
18992 reload_flag=$lt_reload_flag_CXX
18993 reload_cmds=$lt_reload_cmds_CXX
18995 # Commands used to build an old-style archive.
18996 old_archive_cmds=$lt_old_archive_cmds_CXX
18998 # A language specific compiler.
18999 CC=$lt_compiler_CXX
19001 # Is the compiler the GNU compiler?
19002 with_gcc=$GCC_CXX
19004 # Compiler flag to turn off builtin functions.
19005 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19007 # How to pass a linker flag through the compiler.
19008 wl=$lt_lt_prog_compiler_wl_CXX
19010 # Additional compiler flags for building library objects.
19011 pic_flag=$lt_lt_prog_compiler_pic_CXX
19013 # Compiler flag to prevent dynamic linking.
19014 link_static_flag=$lt_lt_prog_compiler_static_CXX
19016 # Does compiler simultaneously support -c and -o options?
19017 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19019 # Whether or not to add -lc for building shared libraries.
19020 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19022 # Whether or not to disallow shared libs when runtime libs are static.
19023 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19025 # Compiler flag to allow reflexive dlopens.
19026 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19028 # Compiler flag to generate shared objects directly from archives.
19029 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19031 # Whether the compiler copes with passing no objects directly.
19032 compiler_needs_object=$lt_compiler_needs_object_CXX
19034 # Create an old-style archive from a shared archive.
19035 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19037 # Create a temporary old-style archive to link instead of a shared archive.
19038 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19040 # Commands used to build a shared archive.
19041 archive_cmds=$lt_archive_cmds_CXX
19042 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19044 # Commands used to build a loadable module if different from building
19045 # a shared archive.
19046 module_cmds=$lt_module_cmds_CXX
19047 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19049 # Whether we are building with GNU ld or not.
19050 with_gnu_ld=$lt_with_gnu_ld_CXX
19052 # Flag that allows shared libraries with undefined symbols to be built.
19053 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19055 # Flag that enforces no undefined symbols.
19056 no_undefined_flag=$lt_no_undefined_flag_CXX
19058 # Flag to hardcode \$libdir into a binary during linking.
19059 # This must work even if \$libdir does not exist
19060 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19062 # If ld is used when linking, flag to hardcode \$libdir into a binary
19063 # during linking. This must work even if \$libdir does not exist.
19064 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19066 # Whether we need a single "-rpath" flag with a separated argument.
19067 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19069 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19070 # DIR into the resulting binary.
19071 hardcode_direct=$hardcode_direct_CXX
19073 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19074 # DIR into the resulting binary and the resulting library dependency is
19075 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19076 # library is relocated.
19077 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19079 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19080 # into the resulting binary.
19081 hardcode_minus_L=$hardcode_minus_L_CXX
19083 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19084 # into the resulting binary.
19085 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19087 # Set to "yes" if building a shared library automatically hardcodes DIR
19088 # into the library and all subsequent libraries and executables linked
19089 # against it.
19090 hardcode_automatic=$hardcode_automatic_CXX
19092 # Set to yes if linker adds runtime paths of dependent libraries
19093 # to runtime path list.
19094 inherit_rpath=$inherit_rpath_CXX
19096 # Whether libtool must link a program against all its dependency libraries.
19097 link_all_deplibs=$link_all_deplibs_CXX
19099 # Fix the shell variable \$srcfile for the compiler.
19100 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19102 # Set to "yes" if exported symbols are required.
19103 always_export_symbols=$always_export_symbols_CXX
19105 # The commands to list exported symbols.
19106 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19108 # Symbols that should not be listed in the preloaded symbols.
19109 exclude_expsyms=$lt_exclude_expsyms_CXX
19111 # Symbols that must always be exported.
19112 include_expsyms=$lt_include_expsyms_CXX
19114 # Commands necessary for linking programs (against libraries) with templates.
19115 prelink_cmds=$lt_prelink_cmds_CXX
19117 # Specify filename containing input files.
19118 file_list_spec=$lt_file_list_spec_CXX
19120 # How to hardcode a shared library path into an executable.
19121 hardcode_action=$hardcode_action_CXX
19123 # The directories searched by this compiler when creating a shared library.
19124 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19126 # Dependencies to place before and after the objects being linked to
19127 # create a shared library.
19128 predep_objects=$lt_predep_objects_CXX
19129 postdep_objects=$lt_postdep_objects_CXX
19130 predeps=$lt_predeps_CXX
19131 postdeps=$lt_postdeps_CXX
19133 # The library search path used internally by the compiler when linking
19134 # a shared library.
19135 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19137 # ### END LIBTOOL TAG CONFIG: CXX
19138 _LT_EOF
19141 "include":C) test -d include || mkdir include ;;
19142 "src":C)
19143 test -d src || mkdir src
19144 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
19147 esac
19148 done # for ac_tag
19151 as_fn_exit 0
19152 _ACEOF
19153 ac_clean_files=$ac_clean_files_save
19155 test $ac_write_fail = 0 ||
19156 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19159 # configure is writing to config.log, and then calls config.status.
19160 # config.status does its own redirection, appending to config.log.
19161 # Unfortunately, on DOS this fails, as config.log is still kept open
19162 # by configure, so config.status won't be able to write to it; its
19163 # output is simply discarded. So we exec the FD to /dev/null,
19164 # effectively closing config.log, so it can be properly (re)opened and
19165 # appended to by config.status. When coming back to configure, we
19166 # need to make the FD available again.
19167 if test "$no_create" != yes; then
19168 ac_cs_success=:
19169 ac_config_status_args=
19170 test "$silent" = yes &&
19171 ac_config_status_args="$ac_config_status_args --quiet"
19172 exec 5>/dev/null
19173 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19174 exec 5>>config.log
19175 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19176 # would make configure fail if this is the last instruction.
19177 $ac_cs_success || as_fn_exit $?
19179 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19181 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}