* scripttempl/armbpabi.sc: Revert 2010-11-02 H.J. Lu.
[binutils.git] / ld / configure
blobb4624fcf6013c9fb0434e1c54763d24d1cd2b8dd
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="ldmain.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 TESTBFDLIB
606 EMULATION_LIBPATH
607 LIB_PATH
608 EMUL_EXTRA_OFILES
609 EMULATION_OFILES
610 EMUL
611 STRINGIFY
612 enable_initfini_array
613 ENABLE_PLUGINS_FALSE
614 ENABLE_PLUGINS_TRUE
615 NATIVE_LIB_DIRS
616 HOSTING_LIBS
617 HOSTING_CRT0
618 HDEFINES
619 do_compare
620 GENINSRC_NEVER_FALSE
621 GENINSRC_NEVER_TRUE
622 LEXLIB
623 LEX_OUTPUT_ROOT
625 YFLAGS
626 YACC
627 MSGMERGE
628 MSGFMT
629 MKINSTALLDIRS
630 CATOBJEXT
631 GENCAT
632 INSTOBJEXT
633 DATADIRNAME
634 CATALOGS
635 POSUB
636 GMSGFMT
637 XGETTEXT
638 INCINTL
639 LIBINTL_DEP
640 LIBINTL
641 USE_NLS
642 CXXCPP
643 OTOOL64
644 OTOOL
645 LIPO
646 NMEDIT
647 DSYMUTIL
648 RANLIB
650 OBJDUMP
651 LN_S
653 ac_ct_DUMPBIN
654 DUMPBIN
656 FGREP
658 LIBTOOL
659 am__fastdepCXX_FALSE
660 am__fastdepCXX_TRUE
661 CXXDEPMODE
662 ac_ct_CXX
663 CXXFLAGS
665 NO_WERROR
666 WARN_CFLAGS
667 EGREP
668 GREP
670 installed_linker
671 install_as_default
672 TARGET_SYSTEM_ROOT_DEFINE
673 TARGET_SYSTEM_ROOT
674 use_sysroot
675 MAINT
676 MAINTAINER_MODE_FALSE
677 MAINTAINER_MODE_TRUE
678 am__fastdepCC_FALSE
679 am__fastdepCC_TRUE
680 CCDEPMODE
681 AMDEPBACKSLASH
682 AMDEP_FALSE
683 AMDEP_TRUE
684 am__quote
685 am__include
686 DEPDIR
687 am__untar
688 am__tar
689 AMTAR
690 am__leading_dot
691 SET_MAKE
693 mkdir_p
694 MKDIR_P
695 INSTALL_STRIP_PROGRAM
696 STRIP
697 install_sh
698 MAKEINFO
699 AUTOHEADER
700 AUTOMAKE
701 AUTOCONF
702 ACLOCAL
703 VERSION
704 PACKAGE
705 CYGPATH_W
706 am__isrc
707 INSTALL_DATA
708 INSTALL_SCRIPT
709 INSTALL_PROGRAM
710 OBJEXT
711 EXEEXT
712 ac_ct_CC
713 CPPFLAGS
714 LDFLAGS
715 CFLAGS
717 target_os
718 target_vendor
719 target_cpu
720 target
721 host_os
722 host_vendor
723 host_cpu
724 host
725 build_os
726 build_vendor
727 build_cpu
728 build
729 target_alias
730 host_alias
731 build_alias
732 LIBS
733 ECHO_T
734 ECHO_N
735 ECHO_C
736 DEFS
737 mandir
738 localedir
739 libdir
740 psdir
741 pdfdir
742 dvidir
743 htmldir
744 infodir
745 docdir
746 oldincludedir
747 includedir
748 localstatedir
749 sharedstatedir
750 sysconfdir
751 datadir
752 datarootdir
753 libexecdir
754 sbindir
755 bindir
756 program_transform_name
757 prefix
758 exec_prefix
759 PACKAGE_URL
760 PACKAGE_BUGREPORT
761 PACKAGE_STRING
762 PACKAGE_VERSION
763 PACKAGE_TARNAME
764 PACKAGE_NAME
765 PATH_SEPARATOR
766 SHELL'
767 ac_subst_files='TDIRS'
768 ac_user_opts='
769 enable_option_checking
770 enable_dependency_tracking
771 enable_maintainer_mode
772 with_lib_path
773 enable_targets
774 enable_64_bit_bfd
775 with_sysroot
776 enable_gold
777 enable_got
778 enable_werror
779 enable_build_warnings
780 enable_plugins
781 enable_largefile
782 enable_shared
783 enable_static
784 with_pic
785 enable_fast_install
786 with_gnu_ld
787 enable_libtool_lock
788 enable_nls
789 enable_initfini_array
791 ac_precious_vars='build_alias
792 host_alias
793 target_alias
795 CFLAGS
796 LDFLAGS
797 LIBS
798 CPPFLAGS
801 CXXFLAGS
803 CXXCPP
804 YACC
805 YFLAGS'
808 # Initialize some variables set by options.
809 ac_init_help=
810 ac_init_version=false
811 ac_unrecognized_opts=
812 ac_unrecognized_sep=
813 # The variables have the same names as the options, with
814 # dashes changed to underlines.
815 cache_file=/dev/null
816 exec_prefix=NONE
817 no_create=
818 no_recursion=
819 prefix=NONE
820 program_prefix=NONE
821 program_suffix=NONE
822 program_transform_name=s,x,x,
823 silent=
824 site=
825 srcdir=
826 verbose=
827 x_includes=NONE
828 x_libraries=NONE
830 # Installation directory options.
831 # These are left unexpanded so users can "make install exec_prefix=/foo"
832 # and all the variables that are supposed to be based on exec_prefix
833 # by default will actually change.
834 # Use braces instead of parens because sh, perl, etc. also accept them.
835 # (The list follows the same order as the GNU Coding Standards.)
836 bindir='${exec_prefix}/bin'
837 sbindir='${exec_prefix}/sbin'
838 libexecdir='${exec_prefix}/libexec'
839 datarootdir='${prefix}/share'
840 datadir='${datarootdir}'
841 sysconfdir='${prefix}/etc'
842 sharedstatedir='${prefix}/com'
843 localstatedir='${prefix}/var'
844 includedir='${prefix}/include'
845 oldincludedir='/usr/include'
846 docdir='${datarootdir}/doc/${PACKAGE}'
847 infodir='${datarootdir}/info'
848 htmldir='${docdir}'
849 dvidir='${docdir}'
850 pdfdir='${docdir}'
851 psdir='${docdir}'
852 libdir='${exec_prefix}/lib'
853 localedir='${datarootdir}/locale'
854 mandir='${datarootdir}/man'
856 ac_prev=
857 ac_dashdash=
858 for ac_option
860 # If the previous option needs an argument, assign it.
861 if test -n "$ac_prev"; then
862 eval $ac_prev=\$ac_option
863 ac_prev=
864 continue
867 case $ac_option in
868 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
869 *) ac_optarg=yes ;;
870 esac
872 # Accept the important Cygnus configure options, so we can diagnose typos.
874 case $ac_dashdash$ac_option in
876 ac_dashdash=yes ;;
878 -bindir | --bindir | --bindi | --bind | --bin | --bi)
879 ac_prev=bindir ;;
880 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
881 bindir=$ac_optarg ;;
883 -build | --build | --buil | --bui | --bu)
884 ac_prev=build_alias ;;
885 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
886 build_alias=$ac_optarg ;;
888 -cache-file | --cache-file | --cache-fil | --cache-fi \
889 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
890 ac_prev=cache_file ;;
891 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
892 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
893 cache_file=$ac_optarg ;;
895 --config-cache | -C)
896 cache_file=config.cache ;;
898 -datadir | --datadir | --datadi | --datad)
899 ac_prev=datadir ;;
900 -datadir=* | --datadir=* | --datadi=* | --datad=*)
901 datadir=$ac_optarg ;;
903 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
904 | --dataroo | --dataro | --datar)
905 ac_prev=datarootdir ;;
906 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
907 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
908 datarootdir=$ac_optarg ;;
910 -disable-* | --disable-*)
911 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error "invalid feature name: $ac_useropt"
915 ac_useropt_orig=$ac_useropt
916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
919 "enable_$ac_useropt"
920 "*) ;;
921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
922 ac_unrecognized_sep=', ';;
923 esac
924 eval enable_$ac_useropt=no ;;
926 -docdir | --docdir | --docdi | --doc | --do)
927 ac_prev=docdir ;;
928 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929 docdir=$ac_optarg ;;
931 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932 ac_prev=dvidir ;;
933 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934 dvidir=$ac_optarg ;;
936 -enable-* | --enable-*)
937 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error "invalid feature name: $ac_useropt"
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
945 "enable_$ac_useropt"
946 "*) ;;
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
949 esac
950 eval enable_$ac_useropt=\$ac_optarg ;;
952 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954 | --exec | --exe | --ex)
955 ac_prev=exec_prefix ;;
956 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958 | --exec=* | --exe=* | --ex=*)
959 exec_prefix=$ac_optarg ;;
961 -gas | --gas | --ga | --g)
962 # Obsolete; use --with-gas.
963 with_gas=yes ;;
965 -help | --help | --hel | --he | -h)
966 ac_init_help=long ;;
967 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968 ac_init_help=recursive ;;
969 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970 ac_init_help=short ;;
972 -host | --host | --hos | --ho)
973 ac_prev=host_alias ;;
974 -host=* | --host=* | --hos=* | --ho=*)
975 host_alias=$ac_optarg ;;
977 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978 ac_prev=htmldir ;;
979 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980 | --ht=*)
981 htmldir=$ac_optarg ;;
983 -includedir | --includedir | --includedi | --included | --include \
984 | --includ | --inclu | --incl | --inc)
985 ac_prev=includedir ;;
986 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987 | --includ=* | --inclu=* | --incl=* | --inc=*)
988 includedir=$ac_optarg ;;
990 -infodir | --infodir | --infodi | --infod | --info | --inf)
991 ac_prev=infodir ;;
992 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993 infodir=$ac_optarg ;;
995 -libdir | --libdir | --libdi | --libd)
996 ac_prev=libdir ;;
997 -libdir=* | --libdir=* | --libdi=* | --libd=*)
998 libdir=$ac_optarg ;;
1000 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001 | --libexe | --libex | --libe)
1002 ac_prev=libexecdir ;;
1003 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004 | --libexe=* | --libex=* | --libe=*)
1005 libexecdir=$ac_optarg ;;
1007 -localedir | --localedir | --localedi | --localed | --locale)
1008 ac_prev=localedir ;;
1009 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010 localedir=$ac_optarg ;;
1012 -localstatedir | --localstatedir | --localstatedi | --localstated \
1013 | --localstate | --localstat | --localsta | --localst | --locals)
1014 ac_prev=localstatedir ;;
1015 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1016 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1017 localstatedir=$ac_optarg ;;
1019 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020 ac_prev=mandir ;;
1021 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022 mandir=$ac_optarg ;;
1024 -nfp | --nfp | --nf)
1025 # Obsolete; use --without-fp.
1026 with_fp=no ;;
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n)
1030 no_create=yes ;;
1032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 no_recursion=yes ;;
1036 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038 | --oldin | --oldi | --old | --ol | --o)
1039 ac_prev=oldincludedir ;;
1040 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043 oldincludedir=$ac_optarg ;;
1045 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046 ac_prev=prefix ;;
1047 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048 prefix=$ac_optarg ;;
1050 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051 | --program-pre | --program-pr | --program-p)
1052 ac_prev=program_prefix ;;
1053 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055 program_prefix=$ac_optarg ;;
1057 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058 | --program-suf | --program-su | --program-s)
1059 ac_prev=program_suffix ;;
1060 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062 program_suffix=$ac_optarg ;;
1064 -program-transform-name | --program-transform-name \
1065 | --program-transform-nam | --program-transform-na \
1066 | --program-transform-n | --program-transform- \
1067 | --program-transform | --program-transfor \
1068 | --program-transfo | --program-transf \
1069 | --program-trans | --program-tran \
1070 | --progr-tra | --program-tr | --program-t)
1071 ac_prev=program_transform_name ;;
1072 -program-transform-name=* | --program-transform-name=* \
1073 | --program-transform-nam=* | --program-transform-na=* \
1074 | --program-transform-n=* | --program-transform-=* \
1075 | --program-transform=* | --program-transfor=* \
1076 | --program-transfo=* | --program-transf=* \
1077 | --program-trans=* | --program-tran=* \
1078 | --progr-tra=* | --program-tr=* | --program-t=*)
1079 program_transform_name=$ac_optarg ;;
1081 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082 ac_prev=pdfdir ;;
1083 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084 pdfdir=$ac_optarg ;;
1086 -psdir | --psdir | --psdi | --psd | --ps)
1087 ac_prev=psdir ;;
1088 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089 psdir=$ac_optarg ;;
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1093 silent=yes ;;
1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096 ac_prev=sbindir ;;
1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098 | --sbi=* | --sb=*)
1099 sbindir=$ac_optarg ;;
1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103 | --sharedst | --shareds | --shared | --share | --shar \
1104 | --sha | --sh)
1105 ac_prev=sharedstatedir ;;
1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109 | --sha=* | --sh=*)
1110 sharedstatedir=$ac_optarg ;;
1112 -site | --site | --sit)
1113 ac_prev=site ;;
1114 -site=* | --site=* | --sit=*)
1115 site=$ac_optarg ;;
1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118 ac_prev=srcdir ;;
1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120 srcdir=$ac_optarg ;;
1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123 | --syscon | --sysco | --sysc | --sys | --sy)
1124 ac_prev=sysconfdir ;;
1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127 sysconfdir=$ac_optarg ;;
1129 -target | --target | --targe | --targ | --tar | --ta | --t)
1130 ac_prev=target_alias ;;
1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132 target_alias=$ac_optarg ;;
1134 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135 verbose=yes ;;
1137 -version | --version | --versio | --versi | --vers | -V)
1138 ac_init_version=: ;;
1140 -with-* | --with-*)
1141 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error "invalid package name: $ac_useropt"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1149 "with_$ac_useropt"
1150 "*) ;;
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1153 esac
1154 eval with_$ac_useropt=\$ac_optarg ;;
1156 -without-* | --without-*)
1157 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 as_fn_error "invalid package name: $ac_useropt"
1161 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1165 "with_$ac_useropt"
1166 "*) ;;
1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168 ac_unrecognized_sep=', ';;
1169 esac
1170 eval with_$ac_useropt=no ;;
1172 --x)
1173 # Obsolete; use --with-x.
1174 with_x=yes ;;
1176 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1177 | --x-incl | --x-inc | --x-in | --x-i)
1178 ac_prev=x_includes ;;
1179 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1180 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1181 x_includes=$ac_optarg ;;
1183 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1184 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1185 ac_prev=x_libraries ;;
1186 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1187 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1188 x_libraries=$ac_optarg ;;
1190 -*) as_fn_error "unrecognized option: \`$ac_option'
1191 Try \`$0 --help' for more information."
1194 *=*)
1195 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196 # Reject names that are not valid shell variable names.
1197 case $ac_envvar in #(
1198 '' | [0-9]* | *[!_$as_cr_alnum]* )
1199 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1200 esac
1201 eval $ac_envvar=\$ac_optarg
1202 export $ac_envvar ;;
1205 # FIXME: should be removed in autoconf 3.0.
1206 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1207 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1209 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1212 esac
1213 done
1215 if test -n "$ac_prev"; then
1216 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1217 as_fn_error "missing argument to $ac_option"
1220 if test -n "$ac_unrecognized_opts"; then
1221 case $enable_option_checking in
1222 no) ;;
1223 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1224 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1225 esac
1228 # Check all directory arguments for consistency.
1229 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230 datadir sysconfdir sharedstatedir localstatedir includedir \
1231 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232 libdir localedir mandir
1234 eval ac_val=\$$ac_var
1235 # Remove trailing slashes.
1236 case $ac_val in
1237 */ )
1238 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239 eval $ac_var=\$ac_val;;
1240 esac
1241 # Be sure to have absolute directory names.
1242 case $ac_val in
1243 [\\/$]* | ?:[\\/]* ) continue;;
1244 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245 esac
1246 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1247 done
1249 # There might be people who depend on the old broken behavior: `$host'
1250 # used to hold the argument of --host etc.
1251 # FIXME: To remove some day.
1252 build=$build_alias
1253 host=$host_alias
1254 target=$target_alias
1256 # FIXME: To remove some day.
1257 if test "x$host_alias" != x; then
1258 if test "x$build_alias" = x; then
1259 cross_compiling=maybe
1260 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1261 If a cross compiler is detected then cross compile mode will be used." >&2
1262 elif test "x$build_alias" != "x$host_alias"; then
1263 cross_compiling=yes
1267 ac_tool_prefix=
1268 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1270 test "$silent" = yes && exec 6>/dev/null
1273 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274 ac_ls_di=`ls -di .` &&
1275 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1276 as_fn_error "working directory cannot be determined"
1277 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1278 as_fn_error "pwd does not report name of working directory"
1281 # Find the source files, if location was not specified.
1282 if test -z "$srcdir"; then
1283 ac_srcdir_defaulted=yes
1284 # Try the directory containing this script, then the parent directory.
1285 ac_confdir=`$as_dirname -- "$as_myself" ||
1286 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1287 X"$as_myself" : 'X\(//\)[^/]' \| \
1288 X"$as_myself" : 'X\(//\)$' \| \
1289 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1290 $as_echo X"$as_myself" |
1291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 s//\1/
1295 /^X\(\/\/\)[^/].*/{
1296 s//\1/
1299 /^X\(\/\/\)$/{
1300 s//\1/
1303 /^X\(\/\).*/{
1304 s//\1/
1307 s/.*/./; q'`
1308 srcdir=$ac_confdir
1309 if test ! -r "$srcdir/$ac_unique_file"; then
1310 srcdir=..
1312 else
1313 ac_srcdir_defaulted=no
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1317 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1319 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1320 ac_abs_confdir=`(
1321 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1322 pwd)`
1323 # When building in place, set srcdir=.
1324 if test "$ac_abs_confdir" = "$ac_pwd"; then
1325 srcdir=.
1327 # Remove unnecessary trailing slashes from srcdir.
1328 # Double slashes in file names in object file debugging info
1329 # mess up M-x gdb in Emacs.
1330 case $srcdir in
1331 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1332 esac
1333 for ac_var in $ac_precious_vars; do
1334 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_env_${ac_var}_value=\$${ac_var}
1336 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1338 done
1341 # Report the --help message.
1343 if test "$ac_init_help" = "long"; then
1344 # Omit some internal or obsolete options to make the list less imposing.
1345 # This message is too long to be a string in the A/UX 3.1 sh.
1346 cat <<_ACEOF
1347 \`configure' configures this package to adapt to many kinds of systems.
1349 Usage: $0 [OPTION]... [VAR=VALUE]...
1351 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1352 VAR=VALUE. See below for descriptions of some of the useful variables.
1354 Defaults for the options are specified in brackets.
1356 Configuration:
1357 -h, --help display this help and exit
1358 --help=short display options specific to this package
1359 --help=recursive display the short help of all the included packages
1360 -V, --version display version information and exit
1361 -q, --quiet, --silent do not print \`checking...' messages
1362 --cache-file=FILE cache test results in FILE [disabled]
1363 -C, --config-cache alias for \`--cache-file=config.cache'
1364 -n, --no-create do not create output files
1365 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1367 Installation directories:
1368 --prefix=PREFIX install architecture-independent files in PREFIX
1369 [$ac_default_prefix]
1370 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1371 [PREFIX]
1373 By default, \`make install' will install all the files in
1374 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1375 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1376 for instance \`--prefix=\$HOME'.
1378 For better control, use the options below.
1380 Fine tuning of the installation directories:
1381 --bindir=DIR user executables [EPREFIX/bin]
1382 --sbindir=DIR system admin executables [EPREFIX/sbin]
1383 --libexecdir=DIR program executables [EPREFIX/libexec]
1384 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1385 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1386 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1387 --libdir=DIR object code libraries [EPREFIX/lib]
1388 --includedir=DIR C header files [PREFIX/include]
1389 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1390 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1391 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1392 --infodir=DIR info documentation [DATAROOTDIR/info]
1393 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1394 --mandir=DIR man documentation [DATAROOTDIR/man]
1395 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1396 --htmldir=DIR html documentation [DOCDIR]
1397 --dvidir=DIR dvi documentation [DOCDIR]
1398 --pdfdir=DIR pdf documentation [DOCDIR]
1399 --psdir=DIR ps documentation [DOCDIR]
1400 _ACEOF
1402 cat <<\_ACEOF
1404 Program names:
1405 --program-prefix=PREFIX prepend PREFIX to installed program names
1406 --program-suffix=SUFFIX append SUFFIX to installed program names
1407 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1409 System types:
1410 --build=BUILD configure for building on BUILD [guessed]
1411 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1412 --target=TARGET configure for building compilers for TARGET [HOST]
1413 _ACEOF
1416 if test -n "$ac_init_help"; then
1418 cat <<\_ACEOF
1420 Optional Features:
1421 --disable-option-checking ignore unrecognized --enable/--with options
1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1424 --disable-dependency-tracking speeds up one-time build
1425 --enable-dependency-tracking do not reject slow dependency extractors
1426 --enable-maintainer-mode enable make rules and dependencies not useful
1427 (and sometimes confusing) to the casual installer
1428 --enable-targets alternative target configurations
1429 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1430 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1431 --enable-got=<type> GOT handling scheme (target, single, negative,
1432 multigot)
1433 --enable-werror treat compile warnings as errors
1434 --enable-build-warnings enable build-time compiler warnings
1435 --enable-plugins Enable support for plugins (defaults no)
1436 --disable-largefile omit support for large files
1437 --enable-shared[=PKGS] build shared libraries [default=yes]
1438 --enable-static[=PKGS] build static libraries [default=yes]
1439 --enable-fast-install[=PKGS]
1440 optimize for fast installation [default=yes]
1441 --disable-libtool-lock avoid locking (might break parallel builds)
1442 --disable-nls do not use Native Language Support
1443 --enable-initfini-array use .init_array/.fini_array sections
1445 Optional Packages:
1446 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1447 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1448 --with-lib-path=dir1:dir2... set default LIB_PATH
1449 --with-sysroot=DIR Search for usr/lib et al within DIR.
1450 --with-pic try to use only PIC/non-PIC objects [default=use
1451 both]
1452 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1454 Some influential environment variables:
1455 CC C compiler command
1456 CFLAGS C compiler flags
1457 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1458 nonstandard directory <lib dir>
1459 LIBS libraries to pass to the linker, e.g. -l<library>
1460 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1461 you have headers in a nonstandard directory <include dir>
1462 CPP C preprocessor
1463 CXX C++ compiler command
1464 CXXFLAGS C++ compiler flags
1465 CXXCPP C++ preprocessor
1466 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1467 the first program found out of: `bison -y', `byacc', `yacc'.
1468 YFLAGS The list of arguments that will be passed by default to $YACC.
1469 This script will default YFLAGS to the empty string to avoid a
1470 default value of `-d' given by some make applications.
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1475 Report bugs to the package provider.
1476 _ACEOF
1477 ac_status=$?
1480 if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483 test -d "$ac_dir" ||
1484 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1485 continue
1486 ac_builddir=.
1488 case "$ac_dir" in
1489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1492 # A ".." for each directory in $ac_dir_suffix.
1493 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494 case $ac_top_builddir_sub in
1495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497 esac ;;
1498 esac
1499 ac_abs_top_builddir=$ac_pwd
1500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501 # for backward compatibility:
1502 ac_top_builddir=$ac_top_build_prefix
1504 case $srcdir in
1505 .) # We are building in place.
1506 ac_srcdir=.
1507 ac_top_srcdir=$ac_top_builddir_sub
1508 ac_abs_top_srcdir=$ac_pwd ;;
1509 [\\/]* | ?:[\\/]* ) # Absolute name.
1510 ac_srcdir=$srcdir$ac_dir_suffix;
1511 ac_top_srcdir=$srcdir
1512 ac_abs_top_srcdir=$srcdir ;;
1513 *) # Relative name.
1514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515 ac_top_srcdir=$ac_top_build_prefix$srcdir
1516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517 esac
1518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1520 cd "$ac_dir" || { ac_status=$?; continue; }
1521 # Check for guested configure.
1522 if test -f "$ac_srcdir/configure.gnu"; then
1523 echo &&
1524 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525 elif test -f "$ac_srcdir/configure"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure" --help=recursive
1528 else
1529 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530 fi || ac_status=$?
1531 cd "$ac_pwd" || { ac_status=$?; break; }
1532 done
1535 test -n "$ac_init_help" && exit $ac_status
1536 if $ac_init_version; then
1537 cat <<\_ACEOF
1538 configure
1539 generated by GNU Autoconf 2.64
1541 Copyright (C) 2009 Free Software Foundation, Inc.
1542 This configure script is free software; the Free Software Foundation
1543 gives unlimited permission to copy, distribute and modify it.
1544 _ACEOF
1545 exit
1548 ## ------------------------ ##
1549 ## Autoconf initialization. ##
1550 ## ------------------------ ##
1552 # ac_fn_c_try_compile LINENO
1553 # --------------------------
1554 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1555 ac_fn_c_try_compile ()
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 rm -f conftest.$ac_objext
1559 if { { ac_try="$ac_compile"
1560 case "(($ac_try" in
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1563 esac
1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565 $as_echo "$ac_try_echo"; } >&5
1566 (eval "$ac_compile") 2>conftest.err
1567 ac_status=$?
1568 if test -s conftest.err; then
1569 grep -v '^ *+' conftest.err >conftest.er1
1570 cat conftest.er1 >&5
1571 mv -f conftest.er1 conftest.err
1573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; } && {
1575 test -z "$ac_c_werror_flag" ||
1576 test ! -s conftest.err
1577 } && test -s conftest.$ac_objext; then :
1578 ac_retval=0
1579 else
1580 $as_echo "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1583 ac_retval=1
1585 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1586 return $ac_retval
1588 } # ac_fn_c_try_compile
1590 # ac_fn_c_try_link LINENO
1591 # -----------------------
1592 # Try to link conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_c_try_link ()
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 rm -f conftest.$ac_objext conftest$ac_exeext
1597 if { { ac_try="$ac_link"
1598 case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_link") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && {
1613 test -z "$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 } && test -s conftest$ac_exeext && {
1616 test "$cross_compiling" = yes ||
1617 $as_test_x conftest$ac_exeext
1618 }; then :
1619 ac_retval=0
1620 else
1621 $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1624 ac_retval=1
1626 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1627 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1628 # interfere with the next link command; also delete a directory that is
1629 # left behind by Apple's compiler. We do this before executing the actions.
1630 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1631 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1632 return $ac_retval
1634 } # ac_fn_c_try_link
1636 # ac_fn_c_try_cpp LINENO
1637 # ----------------------
1638 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_cpp ()
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 if { { ac_try="$ac_cpp conftest.$ac_ext"
1643 case "(($ac_try" in
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1650 ac_status=$?
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } >/dev/null && {
1658 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1659 test ! -s conftest.err
1660 }; then :
1661 ac_retval=0
1662 else
1663 $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1666 ac_retval=1
1668 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669 return $ac_retval
1671 } # ac_fn_c_try_cpp
1673 # ac_fn_cxx_try_compile LINENO
1674 # ----------------------------
1675 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_cxx_try_compile ()
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 rm -f conftest.$ac_objext
1680 if { { ac_try="$ac_compile"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_compile") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && {
1696 test -z "$ac_cxx_werror_flag" ||
1697 test ! -s conftest.err
1698 } && test -s conftest.$ac_objext; then :
1699 ac_retval=0
1700 else
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1704 ac_retval=1
1706 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1707 return $ac_retval
1709 } # ac_fn_cxx_try_compile
1711 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1712 # -------------------------------------------------------
1713 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1714 # the include files in INCLUDES and setting the cache variable VAR
1715 # accordingly.
1716 ac_fn_c_check_header_mongrel ()
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721 $as_echo_n "checking for $2... " >&6; }
1722 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1723 $as_echo_n "(cached) " >&6
1725 eval ac_res=\$$3
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 $as_echo "$ac_res" >&6; }
1728 else
1729 # Is the header compilable?
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1731 $as_echo_n "checking $2 usability... " >&6; }
1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733 /* end confdefs.h. */
1735 #include <$2>
1736 _ACEOF
1737 if ac_fn_c_try_compile "$LINENO"; then :
1738 ac_header_compiler=yes
1739 else
1740 ac_header_compiler=no
1742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1744 $as_echo "$ac_header_compiler" >&6; }
1746 # Is the header present?
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1748 $as_echo_n "checking $2 presence... " >&6; }
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1751 #include <$2>
1752 _ACEOF
1753 if ac_fn_c_try_cpp "$LINENO"; then :
1754 ac_header_preproc=yes
1755 else
1756 ac_header_preproc=no
1758 rm -f conftest.err conftest.$ac_ext
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1760 $as_echo "$ac_header_preproc" >&6; }
1762 # So? What about this header?
1763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1764 yes:no: )
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1766 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1768 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1770 no:yes:* )
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1772 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1774 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1776 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1778 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1780 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1782 esac
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1786 $as_echo_n "(cached) " >&6
1787 else
1788 eval "$3=\$ac_header_compiler"
1790 eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1794 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796 } # ac_fn_c_check_header_mongrel
1798 # ac_fn_c_try_run LINENO
1799 # ----------------------
1800 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1801 # that executables *can* be run.
1802 ac_fn_c_try_run ()
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 if { { ac_try="$ac_link"
1806 case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_link") 2>&5
1813 ac_status=$?
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1816 { { case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_try") 2>&5
1823 ac_status=$?
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; }; }; then :
1826 ac_retval=0
1827 else
1828 $as_echo "$as_me: program exited with status $ac_status" >&5
1829 $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1832 ac_retval=$ac_status
1834 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836 return $ac_retval
1838 } # ac_fn_c_try_run
1840 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1841 # -------------------------------------------------------
1842 # Tests whether HEADER exists and can be compiled using the include files in
1843 # INCLUDES, setting the cache variable VAR accordingly.
1844 ac_fn_c_check_header_compile ()
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1850 $as_echo_n "(cached) " >&6
1851 else
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1855 #include <$2>
1856 _ACEOF
1857 if ac_fn_c_try_compile "$LINENO"; then :
1858 eval "$3=yes"
1859 else
1860 eval "$3=no"
1862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1864 eval ac_res=\$$3
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869 } # ac_fn_c_check_header_compile
1871 # ac_fn_c_check_func LINENO FUNC VAR
1872 # ----------------------------------
1873 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1874 ac_fn_c_check_func ()
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878 $as_echo_n "checking for $2... " >&6; }
1879 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1880 $as_echo_n "(cached) " >&6
1881 else
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1884 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1886 #define $2 innocuous_$2
1888 /* System header to define __stub macros and hopefully few prototypes,
1889 which can conflict with char $2 (); below.
1890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1891 <limits.h> exists even on freestanding compilers. */
1893 #ifdef __STDC__
1894 # include <limits.h>
1895 #else
1896 # include <assert.h>
1897 #endif
1899 #undef $2
1901 /* Override any GCC internal prototype to avoid an error.
1902 Use char because int might match the return type of a GCC
1903 builtin and then its argument prototype would still apply. */
1904 #ifdef __cplusplus
1905 extern "C"
1906 #endif
1907 char $2 ();
1908 /* The GNU C library defines this for functions which it implements
1909 to always fail with ENOSYS. Some functions are actually named
1910 something starting with __ and the normal name is an alias. */
1911 #if defined __stub_$2 || defined __stub___$2
1912 choke me
1913 #endif
1916 main ()
1918 return $2 ();
1920 return 0;
1922 _ACEOF
1923 if ac_fn_c_try_link "$LINENO"; then :
1924 eval "$3=yes"
1925 else
1926 eval "$3=no"
1928 rm -f core conftest.err conftest.$ac_objext \
1929 conftest$ac_exeext conftest.$ac_ext
1931 eval ac_res=\$$3
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1936 } # ac_fn_c_check_func
1938 # ac_fn_cxx_try_cpp LINENO
1939 # ------------------------
1940 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1941 ac_fn_cxx_try_cpp ()
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 if { { ac_try="$ac_cpp conftest.$ac_ext"
1945 case "(($ac_try" in
1946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1947 *) ac_try_echo=$ac_try;;
1948 esac
1949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1950 $as_echo "$ac_try_echo"; } >&5
1951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1952 ac_status=$?
1953 if test -s conftest.err; then
1954 grep -v '^ *+' conftest.err >conftest.er1
1955 cat conftest.er1 >&5
1956 mv -f conftest.er1 conftest.err
1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; } >/dev/null && {
1960 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1961 test ! -s conftest.err
1962 }; then :
1963 ac_retval=0
1964 else
1965 $as_echo "$as_me: failed program was:" >&5
1966 sed 's/^/| /' conftest.$ac_ext >&5
1968 ac_retval=1
1970 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1971 return $ac_retval
1973 } # ac_fn_cxx_try_cpp
1975 # ac_fn_cxx_try_link LINENO
1976 # -------------------------
1977 # Try to link conftest.$ac_ext, and return whether this succeeded.
1978 ac_fn_cxx_try_link ()
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 rm -f conftest.$ac_objext conftest$ac_exeext
1982 if { { ac_try="$ac_link"
1983 case "(($ac_try" in
1984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1985 *) ac_try_echo=$ac_try;;
1986 esac
1987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1988 $as_echo "$ac_try_echo"; } >&5
1989 (eval "$ac_link") 2>conftest.err
1990 ac_status=$?
1991 if test -s conftest.err; then
1992 grep -v '^ *+' conftest.err >conftest.er1
1993 cat conftest.er1 >&5
1994 mv -f conftest.er1 conftest.err
1996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1997 test $ac_status = 0; } && {
1998 test -z "$ac_cxx_werror_flag" ||
1999 test ! -s conftest.err
2000 } && test -s conftest$ac_exeext && {
2001 test "$cross_compiling" = yes ||
2002 $as_test_x conftest$ac_exeext
2003 }; then :
2004 ac_retval=0
2005 else
2006 $as_echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.$ac_ext >&5
2009 ac_retval=1
2011 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2012 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2013 # interfere with the next link command; also delete a directory that is
2014 # left behind by Apple's compiler. We do this before executing the actions.
2015 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2016 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2017 return $ac_retval
2019 } # ac_fn_cxx_try_link
2021 # ac_fn_c_check_decl LINENO SYMBOL VAR
2022 # ------------------------------------
2023 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2024 ac_fn_c_check_decl ()
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027 as_decl_name=`echo $2|sed 's/ *(.*//'`
2028 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2030 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2031 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2032 $as_echo_n "(cached) " >&6
2033 else
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2038 main ()
2040 #ifndef $as_decl_name
2041 #ifdef __cplusplus
2042 (void) $as_decl_use;
2043 #else
2044 (void) $as_decl_name;
2045 #endif
2046 #endif
2049 return 0;
2051 _ACEOF
2052 if ac_fn_c_try_compile "$LINENO"; then :
2053 eval "$3=yes"
2054 else
2055 eval "$3=no"
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059 eval ac_res=\$$3
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2062 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2064 } # ac_fn_c_check_decl
2066 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2067 # --------------------------------------------
2068 # Tries to find the compile-time value of EXPR in a program that includes
2069 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2070 # computed
2071 ac_fn_c_compute_int ()
2073 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074 if test "$cross_compiling" = yes; then
2075 # Depending upon the size, compute the lo and hi bounds.
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2080 main ()
2082 static int test_array [1 - 2 * !(($2) >= 0)];
2083 test_array [0] = 0
2086 return 0;
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090 ac_lo=0 ac_mid=0
2091 while :; do
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h. */
2096 main ()
2098 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2099 test_array [0] = 0
2102 return 0;
2104 _ACEOF
2105 if ac_fn_c_try_compile "$LINENO"; then :
2106 ac_hi=$ac_mid; break
2107 else
2108 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2109 if test $ac_lo -le $ac_mid; then
2110 ac_lo= ac_hi=
2111 break
2113 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116 done
2117 else
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2122 main ()
2124 static int test_array [1 - 2 * !(($2) < 0)];
2125 test_array [0] = 0
2128 return 0;
2130 _ACEOF
2131 if ac_fn_c_try_compile "$LINENO"; then :
2132 ac_hi=-1 ac_mid=-1
2133 while :; do
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2138 main ()
2140 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2141 test_array [0] = 0
2144 return 0;
2146 _ACEOF
2147 if ac_fn_c_try_compile "$LINENO"; then :
2148 ac_lo=$ac_mid; break
2149 else
2150 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2151 if test $ac_mid -le $ac_hi; then
2152 ac_lo= ac_hi=
2153 break
2155 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 done
2159 else
2160 ac_lo= ac_hi=
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 # Binary search between lo and hi bounds.
2166 while test "x$ac_lo" != "x$ac_hi"; do
2167 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2172 main ()
2174 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2175 test_array [0] = 0
2178 return 0;
2180 _ACEOF
2181 if ac_fn_c_try_compile "$LINENO"; then :
2182 ac_hi=$ac_mid
2183 else
2184 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187 done
2188 case $ac_lo in #((
2189 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2190 '') ac_retval=1 ;;
2191 esac
2192 else
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2196 static long int longval () { return $2; }
2197 static unsigned long int ulongval () { return $2; }
2198 #include <stdio.h>
2199 #include <stdlib.h>
2201 main ()
2204 FILE *f = fopen ("conftest.val", "w");
2205 if (! f)
2206 return 1;
2207 if (($2) < 0)
2209 long int i = longval ();
2210 if (i != ($2))
2211 return 1;
2212 fprintf (f, "%ld", i);
2214 else
2216 unsigned long int i = ulongval ();
2217 if (i != ($2))
2218 return 1;
2219 fprintf (f, "%lu", i);
2221 /* Do not output a trailing newline, as this causes \r\n confusion
2222 on some platforms. */
2223 return ferror (f) || fclose (f) != 0;
2226 return 0;
2228 _ACEOF
2229 if ac_fn_c_try_run "$LINENO"; then :
2230 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2231 else
2232 ac_retval=1
2234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2235 conftest.$ac_objext conftest.beam conftest.$ac_ext
2236 rm -f conftest.val
2239 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2240 return $ac_retval
2242 } # ac_fn_c_compute_int
2243 cat >config.log <<_ACEOF
2244 This file contains any messages produced by compilers while
2245 running configure, to aid debugging if configure makes a mistake.
2247 It was created by $as_me, which was
2248 generated by GNU Autoconf 2.64. Invocation command line was
2250 $ $0 $@
2252 _ACEOF
2253 exec 5>>config.log
2255 cat <<_ASUNAME
2256 ## --------- ##
2257 ## Platform. ##
2258 ## --------- ##
2260 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2261 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2262 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2263 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2264 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2266 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2267 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2269 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2270 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2271 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2272 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2273 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2274 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2275 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2277 _ASUNAME
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 for as_dir in $PATH
2282 IFS=$as_save_IFS
2283 test -z "$as_dir" && as_dir=.
2284 $as_echo "PATH: $as_dir"
2285 done
2286 IFS=$as_save_IFS
2288 } >&5
2290 cat >&5 <<_ACEOF
2293 ## ----------- ##
2294 ## Core tests. ##
2295 ## ----------- ##
2297 _ACEOF
2300 # Keep a trace of the command line.
2301 # Strip out --no-create and --no-recursion so they do not pile up.
2302 # Strip out --silent because we don't want to record it for future runs.
2303 # Also quote any args containing shell meta-characters.
2304 # Make two passes to allow for proper duplicate-argument suppression.
2305 ac_configure_args=
2306 ac_configure_args0=
2307 ac_configure_args1=
2308 ac_must_keep_next=false
2309 for ac_pass in 1 2
2311 for ac_arg
2313 case $ac_arg in
2314 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2315 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2316 | -silent | --silent | --silen | --sile | --sil)
2317 continue ;;
2318 *\'*)
2319 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2320 esac
2321 case $ac_pass in
2322 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2324 as_fn_append ac_configure_args1 " '$ac_arg'"
2325 if test $ac_must_keep_next = true; then
2326 ac_must_keep_next=false # Got value, back to normal.
2327 else
2328 case $ac_arg in
2329 *=* | --config-cache | -C | -disable-* | --disable-* \
2330 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2331 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2332 | -with-* | --with-* | -without-* | --without-* | --x)
2333 case "$ac_configure_args0 " in
2334 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2335 esac
2337 -* ) ac_must_keep_next=true ;;
2338 esac
2340 as_fn_append ac_configure_args " '$ac_arg'"
2342 esac
2343 done
2344 done
2345 { ac_configure_args0=; unset ac_configure_args0;}
2346 { ac_configure_args1=; unset ac_configure_args1;}
2348 # When interrupted or exit'd, cleanup temporary files, and complete
2349 # config.log. We remove comments because anyway the quotes in there
2350 # would cause problems or look ugly.
2351 # WARNING: Use '\'' to represent an apostrophe within the trap.
2352 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2353 trap 'exit_status=$?
2354 # Save into config.log some information that might help in debugging.
2356 echo
2358 cat <<\_ASBOX
2359 ## ---------------- ##
2360 ## Cache variables. ##
2361 ## ---------------- ##
2362 _ASBOX
2363 echo
2364 # The following way of writing the cache mishandles newlines in values,
2366 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2367 eval ac_val=\$$ac_var
2368 case $ac_val in #(
2369 *${as_nl}*)
2370 case $ac_var in #(
2371 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2372 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2373 esac
2374 case $ac_var in #(
2375 _ | IFS | as_nl) ;; #(
2376 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2377 *) { eval $ac_var=; unset $ac_var;} ;;
2378 esac ;;
2379 esac
2380 done
2381 (set) 2>&1 |
2382 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2383 *${as_nl}ac_space=\ *)
2384 sed -n \
2385 "s/'\''/'\''\\\\'\'''\''/g;
2386 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2387 ;; #(
2389 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2391 esac |
2392 sort
2394 echo
2396 cat <<\_ASBOX
2397 ## ----------------- ##
2398 ## Output variables. ##
2399 ## ----------------- ##
2400 _ASBOX
2401 echo
2402 for ac_var in $ac_subst_vars
2404 eval ac_val=\$$ac_var
2405 case $ac_val in
2406 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2407 esac
2408 $as_echo "$ac_var='\''$ac_val'\''"
2409 done | sort
2410 echo
2412 if test -n "$ac_subst_files"; then
2413 cat <<\_ASBOX
2414 ## ------------------- ##
2415 ## File substitutions. ##
2416 ## ------------------- ##
2417 _ASBOX
2418 echo
2419 for ac_var in $ac_subst_files
2421 eval ac_val=\$$ac_var
2422 case $ac_val in
2423 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2424 esac
2425 $as_echo "$ac_var='\''$ac_val'\''"
2426 done | sort
2427 echo
2430 if test -s confdefs.h; then
2431 cat <<\_ASBOX
2432 ## ----------- ##
2433 ## confdefs.h. ##
2434 ## ----------- ##
2435 _ASBOX
2436 echo
2437 cat confdefs.h
2438 echo
2440 test "$ac_signal" != 0 &&
2441 $as_echo "$as_me: caught signal $ac_signal"
2442 $as_echo "$as_me: exit $exit_status"
2443 } >&5
2444 rm -f core *.core core.conftest.* &&
2445 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2446 exit $exit_status
2448 for ac_signal in 1 2 13 15; do
2449 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2450 done
2451 ac_signal=0
2453 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2454 rm -f -r conftest* confdefs.h
2456 $as_echo "/* confdefs.h */" > confdefs.h
2458 # Predefined preprocessor variables.
2460 cat >>confdefs.h <<_ACEOF
2461 #define PACKAGE_NAME "$PACKAGE_NAME"
2462 _ACEOF
2464 cat >>confdefs.h <<_ACEOF
2465 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2466 _ACEOF
2468 cat >>confdefs.h <<_ACEOF
2469 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2470 _ACEOF
2472 cat >>confdefs.h <<_ACEOF
2473 #define PACKAGE_STRING "$PACKAGE_STRING"
2474 _ACEOF
2476 cat >>confdefs.h <<_ACEOF
2477 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2478 _ACEOF
2480 cat >>confdefs.h <<_ACEOF
2481 #define PACKAGE_URL "$PACKAGE_URL"
2482 _ACEOF
2485 # Let the site file select an alternate cache file if it wants to.
2486 # Prefer an explicitly selected file to automatically selected ones.
2487 ac_site_file1=NONE
2488 ac_site_file2=NONE
2489 if test -n "$CONFIG_SITE"; then
2490 ac_site_file1=$CONFIG_SITE
2491 elif test "x$prefix" != xNONE; then
2492 ac_site_file1=$prefix/share/config.site
2493 ac_site_file2=$prefix/etc/config.site
2494 else
2495 ac_site_file1=$ac_default_prefix/share/config.site
2496 ac_site_file2=$ac_default_prefix/etc/config.site
2498 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2500 test "x$ac_site_file" = xNONE && continue
2501 if test -r "$ac_site_file"; then
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2503 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2504 sed 's/^/| /' "$ac_site_file" >&5
2505 . "$ac_site_file"
2507 done
2509 if test -r "$cache_file"; then
2510 # Some versions of bash will fail to source /dev/null (special
2511 # files actually), so we avoid doing that.
2512 if test -f "$cache_file"; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2514 $as_echo "$as_me: loading cache $cache_file" >&6;}
2515 case $cache_file in
2516 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2517 *) . "./$cache_file";;
2518 esac
2520 else
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2522 $as_echo "$as_me: creating cache $cache_file" >&6;}
2523 >$cache_file
2526 # Check that the precious variables saved in the cache have kept the same
2527 # value.
2528 ac_cache_corrupted=false
2529 for ac_var in $ac_precious_vars; do
2530 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2531 eval ac_new_set=\$ac_env_${ac_var}_set
2532 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2533 eval ac_new_val=\$ac_env_${ac_var}_value
2534 case $ac_old_set,$ac_new_set in
2535 set,)
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2537 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2538 ac_cache_corrupted=: ;;
2539 ,set)
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2541 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2542 ac_cache_corrupted=: ;;
2543 ,);;
2545 if test "x$ac_old_val" != "x$ac_new_val"; then
2546 # differences in whitespace do not lead to failure.
2547 ac_old_val_w=`echo x $ac_old_val`
2548 ac_new_val_w=`echo x $ac_new_val`
2549 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2551 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2552 ac_cache_corrupted=:
2553 else
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2555 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2556 eval $ac_var=\$ac_old_val
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2559 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2561 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2562 fi;;
2563 esac
2564 # Pass precious variables to config.status.
2565 if test "$ac_new_set" = set; then
2566 case $ac_new_val in
2567 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2568 *) ac_arg=$ac_var=$ac_new_val ;;
2569 esac
2570 case " $ac_configure_args " in
2571 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2572 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2573 esac
2575 done
2576 if $ac_cache_corrupted; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2580 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2581 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2583 ## -------------------- ##
2584 ## Main body of script. ##
2585 ## -------------------- ##
2587 ac_ext=c
2588 ac_cpp='$CPP $CPPFLAGS'
2589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2599 ac_aux_dir=
2600 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2601 for ac_t in install-sh install.sh shtool; do
2602 if test -f "$ac_dir/$ac_t"; then
2603 ac_aux_dir=$ac_dir
2604 ac_install_sh="$ac_aux_dir/$ac_t -c"
2605 break 2
2607 done
2608 done
2609 if test -z "$ac_aux_dir"; then
2610 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2613 # These three variables are undocumented and unsupported,
2614 # and are intended to be withdrawn in a future Autoconf release.
2615 # They can cause serious problems if a builder's source tree is in a directory
2616 # whose full name contains unusual characters.
2617 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2618 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2619 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2622 # Make sure we can run config.sub.
2623 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2624 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2627 $as_echo_n "checking build system type... " >&6; }
2628 if test "${ac_cv_build+set}" = set; then :
2629 $as_echo_n "(cached) " >&6
2630 else
2631 ac_build_alias=$build_alias
2632 test "x$ac_build_alias" = x &&
2633 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2634 test "x$ac_build_alias" = x &&
2635 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2636 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2637 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2641 $as_echo "$ac_cv_build" >&6; }
2642 case $ac_cv_build in
2643 *-*-*) ;;
2644 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2645 esac
2646 build=$ac_cv_build
2647 ac_save_IFS=$IFS; IFS='-'
2648 set x $ac_cv_build
2649 shift
2650 build_cpu=$1
2651 build_vendor=$2
2652 shift; shift
2653 # Remember, the first character of IFS is used to create $*,
2654 # except with old shells:
2655 build_os=$*
2656 IFS=$ac_save_IFS
2657 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2661 $as_echo_n "checking host system type... " >&6; }
2662 if test "${ac_cv_host+set}" = set; then :
2663 $as_echo_n "(cached) " >&6
2664 else
2665 if test "x$host_alias" = x; then
2666 ac_cv_host=$ac_cv_build
2667 else
2668 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2669 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2674 $as_echo "$ac_cv_host" >&6; }
2675 case $ac_cv_host in
2676 *-*-*) ;;
2677 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2678 esac
2679 host=$ac_cv_host
2680 ac_save_IFS=$IFS; IFS='-'
2681 set x $ac_cv_host
2682 shift
2683 host_cpu=$1
2684 host_vendor=$2
2685 shift; shift
2686 # Remember, the first character of IFS is used to create $*,
2687 # except with old shells:
2688 host_os=$*
2689 IFS=$ac_save_IFS
2690 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2694 $as_echo_n "checking target system type... " >&6; }
2695 if test "${ac_cv_target+set}" = set; then :
2696 $as_echo_n "(cached) " >&6
2697 else
2698 if test "x$target_alias" = x; then
2699 ac_cv_target=$ac_cv_host
2700 else
2701 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2702 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2707 $as_echo "$ac_cv_target" >&6; }
2708 case $ac_cv_target in
2709 *-*-*) ;;
2710 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2711 esac
2712 target=$ac_cv_target
2713 ac_save_IFS=$IFS; IFS='-'
2714 set x $ac_cv_target
2715 shift
2716 target_cpu=$1
2717 target_vendor=$2
2718 shift; shift
2719 # Remember, the first character of IFS is used to create $*,
2720 # except with old shells:
2721 target_os=$*
2722 IFS=$ac_save_IFS
2723 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2726 # The aliases save the names the user supplied, while $host etc.
2727 # will get canonicalized.
2728 test -n "$target_alias" &&
2729 test "$program_prefix$program_suffix$program_transform_name" = \
2730 NONENONEs,x,x, &&
2731 program_prefix=${target_alias}-
2733 ac_ext=c
2734 ac_cpp='$CPP $CPPFLAGS'
2735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2738 if test -n "$ac_tool_prefix"; then
2739 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2740 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2742 $as_echo_n "checking for $ac_word... " >&6; }
2743 if test "${ac_cv_prog_CC+set}" = set; then :
2744 $as_echo_n "(cached) " >&6
2745 else
2746 if test -n "$CC"; then
2747 ac_cv_prog_CC="$CC" # Let the user override the test.
2748 else
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2756 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 break 2
2760 done
2761 done
2762 IFS=$as_save_IFS
2766 CC=$ac_cv_prog_CC
2767 if test -n "$CC"; then
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2769 $as_echo "$CC" >&6; }
2770 else
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772 $as_echo "no" >&6; }
2777 if test -z "$ac_cv_prog_CC"; then
2778 ac_ct_CC=$CC
2779 # Extract the first word of "gcc", so it can be a program name with args.
2780 set dummy gcc; ac_word=$2
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2782 $as_echo_n "checking for $ac_word... " >&6; }
2783 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2784 $as_echo_n "(cached) " >&6
2785 else
2786 if test -n "$ac_ct_CC"; then
2787 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2788 else
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2792 IFS=$as_save_IFS
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2796 ac_cv_prog_ac_ct_CC="gcc"
2797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 break 2
2800 done
2801 done
2802 IFS=$as_save_IFS
2806 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2807 if test -n "$ac_ct_CC"; then
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2809 $as_echo "$ac_ct_CC" >&6; }
2810 else
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2812 $as_echo "no" >&6; }
2815 if test "x$ac_ct_CC" = x; then
2816 CC=""
2817 else
2818 case $cross_compiling:$ac_tool_warned in
2819 yes:)
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2822 ac_tool_warned=yes ;;
2823 esac
2824 CC=$ac_ct_CC
2826 else
2827 CC="$ac_cv_prog_CC"
2830 if test -z "$CC"; then
2831 if test -n "$ac_tool_prefix"; then
2832 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2833 set dummy ${ac_tool_prefix}cc; ac_word=$2
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2835 $as_echo_n "checking for $ac_word... " >&6; }
2836 if test "${ac_cv_prog_CC+set}" = set; then :
2837 $as_echo_n "(cached) " >&6
2838 else
2839 if test -n "$CC"; then
2840 ac_cv_prog_CC="$CC" # Let the user override the test.
2841 else
2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 for as_dir in $PATH
2845 IFS=$as_save_IFS
2846 test -z "$as_dir" && as_dir=.
2847 for ac_exec_ext in '' $ac_executable_extensions; do
2848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2849 ac_cv_prog_CC="${ac_tool_prefix}cc"
2850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2851 break 2
2853 done
2854 done
2855 IFS=$as_save_IFS
2859 CC=$ac_cv_prog_CC
2860 if test -n "$CC"; then
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2862 $as_echo "$CC" >&6; }
2863 else
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865 $as_echo "no" >&6; }
2871 if test -z "$CC"; then
2872 # Extract the first word of "cc", so it can be a program name with args.
2873 set dummy cc; ac_word=$2
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875 $as_echo_n "checking for $ac_word... " >&6; }
2876 if test "${ac_cv_prog_CC+set}" = set; then :
2877 $as_echo_n "(cached) " >&6
2878 else
2879 if test -n "$CC"; then
2880 ac_cv_prog_CC="$CC" # Let the user override the test.
2881 else
2882 ac_prog_rejected=no
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 for as_dir in $PATH
2886 IFS=$as_save_IFS
2887 test -z "$as_dir" && as_dir=.
2888 for ac_exec_ext in '' $ac_executable_extensions; do
2889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2890 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2891 ac_prog_rejected=yes
2892 continue
2894 ac_cv_prog_CC="cc"
2895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2896 break 2
2898 done
2899 done
2900 IFS=$as_save_IFS
2902 if test $ac_prog_rejected = yes; then
2903 # We found a bogon in the path, so make sure we never use it.
2904 set dummy $ac_cv_prog_CC
2905 shift
2906 if test $# != 0; then
2907 # We chose a different compiler from the bogus one.
2908 # However, it has the same basename, so the bogon will be chosen
2909 # first if we set CC to just the basename; use the full file name.
2910 shift
2911 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2916 CC=$ac_cv_prog_CC
2917 if test -n "$CC"; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2919 $as_echo "$CC" >&6; }
2920 else
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 $as_echo "no" >&6; }
2927 if test -z "$CC"; then
2928 if test -n "$ac_tool_prefix"; then
2929 for ac_prog in cl.exe
2931 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2932 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934 $as_echo_n "checking for $ac_word... " >&6; }
2935 if test "${ac_cv_prog_CC+set}" = set; then :
2936 $as_echo_n "(cached) " >&6
2937 else
2938 if test -n "$CC"; then
2939 ac_cv_prog_CC="$CC" # Let the user override the test.
2940 else
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942 for as_dir in $PATH
2944 IFS=$as_save_IFS
2945 test -z "$as_dir" && as_dir=.
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2948 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2950 break 2
2952 done
2953 done
2954 IFS=$as_save_IFS
2958 CC=$ac_cv_prog_CC
2959 if test -n "$CC"; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2961 $as_echo "$CC" >&6; }
2962 else
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2968 test -n "$CC" && break
2969 done
2971 if test -z "$CC"; then
2972 ac_ct_CC=$CC
2973 for ac_prog in cl.exe
2975 # Extract the first word of "$ac_prog", so it can be a program name with args.
2976 set dummy $ac_prog; ac_word=$2
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978 $as_echo_n "checking for $ac_word... " >&6; }
2979 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2980 $as_echo_n "(cached) " >&6
2981 else
2982 if test -n "$ac_ct_CC"; then
2983 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2984 else
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 for as_dir in $PATH
2988 IFS=$as_save_IFS
2989 test -z "$as_dir" && as_dir=.
2990 for ac_exec_ext in '' $ac_executable_extensions; do
2991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2992 ac_cv_prog_ac_ct_CC="$ac_prog"
2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 break 2
2996 done
2997 done
2998 IFS=$as_save_IFS
3002 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3003 if test -n "$ac_ct_CC"; then
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3005 $as_echo "$ac_ct_CC" >&6; }
3006 else
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008 $as_echo "no" >&6; }
3012 test -n "$ac_ct_CC" && break
3013 done
3015 if test "x$ac_ct_CC" = x; then
3016 CC=""
3017 else
3018 case $cross_compiling:$ac_tool_warned in
3019 yes:)
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3022 ac_tool_warned=yes ;;
3023 esac
3024 CC=$ac_ct_CC
3031 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3033 as_fn_error "no acceptable C compiler found in \$PATH
3034 See \`config.log' for more details." "$LINENO" 5; }
3036 # Provide some information about the compiler.
3037 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3038 set X $ac_compile
3039 ac_compiler=$2
3040 for ac_option in --version -v -V -qversion; do
3041 { { ac_try="$ac_compiler $ac_option >&5"
3042 case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045 esac
3046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3047 $as_echo "$ac_try_echo"; } >&5
3048 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3049 ac_status=$?
3050 if test -s conftest.err; then
3051 sed '10a\
3052 ... rest of stderr output deleted ...
3053 10q' conftest.err >conftest.er1
3054 cat conftest.er1 >&5
3055 rm -f conftest.er1 conftest.err
3057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3058 test $ac_status = 0; }
3059 done
3061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3062 /* end confdefs.h. */
3065 main ()
3069 return 0;
3071 _ACEOF
3072 ac_clean_files_save=$ac_clean_files
3073 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3074 # Try to create an executable without -o first, disregard a.out.
3075 # It will help us diagnose broken compilers, and finding out an intuition
3076 # of exeext.
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3078 $as_echo_n "checking for C compiler default output file name... " >&6; }
3079 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3081 # The possible output files:
3082 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3084 ac_rmfiles=
3085 for ac_file in $ac_files
3087 case $ac_file in
3088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3089 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3090 esac
3091 done
3092 rm -f $ac_rmfiles
3094 if { { ac_try="$ac_link_default"
3095 case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098 esac
3099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3100 $as_echo "$ac_try_echo"; } >&5
3101 (eval "$ac_link_default") 2>&5
3102 ac_status=$?
3103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3104 test $ac_status = 0; }; then :
3105 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3106 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3107 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3108 # so that the user can short-circuit this test for compilers unknown to
3109 # Autoconf.
3110 for ac_file in $ac_files ''
3112 test -f "$ac_file" || continue
3113 case $ac_file in
3114 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3116 [ab].out )
3117 # We found the default executable, but exeext='' is most
3118 # certainly right.
3119 break;;
3120 *.* )
3121 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3122 then :; else
3123 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3125 # We set ac_cv_exeext here because the later test for it is not
3126 # safe: cross compilers may not add the suffix if given an `-o'
3127 # argument, so we may need to know it at that point already.
3128 # Even if this section looks crufty: it has the advantage of
3129 # actually working.
3130 break;;
3132 break;;
3133 esac
3134 done
3135 test "$ac_cv_exeext" = no && ac_cv_exeext=
3137 else
3138 ac_file=''
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3141 $as_echo "$ac_file" >&6; }
3142 if test -z "$ac_file"; then :
3143 $as_echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.$ac_ext >&5
3146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3148 { as_fn_set_status 77
3149 as_fn_error "C compiler cannot create executables
3150 See \`config.log' for more details." "$LINENO" 5; }; }
3152 ac_exeext=$ac_cv_exeext
3154 # Check that the compiler produces executables we can run. If not, either
3155 # the compiler is broken, or we cross compile.
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3157 $as_echo_n "checking whether the C compiler works... " >&6; }
3158 # If not cross compiling, check that we can run a simple program.
3159 if test "$cross_compiling" != yes; then
3160 if { ac_try='./$ac_file'
3161 { { case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164 esac
3165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3166 $as_echo "$ac_try_echo"; } >&5
3167 (eval "$ac_try") 2>&5
3168 ac_status=$?
3169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3170 test $ac_status = 0; }; }; then
3171 cross_compiling=no
3172 else
3173 if test "$cross_compiling" = maybe; then
3174 cross_compiling=yes
3175 else
3176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178 as_fn_error "cannot run C compiled programs.
3179 If you meant to cross compile, use \`--host'.
3180 See \`config.log' for more details." "$LINENO" 5; }
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3185 $as_echo "yes" >&6; }
3187 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3188 ac_clean_files=$ac_clean_files_save
3189 # Check that the compiler produces executables we can run. If not, either
3190 # the compiler is broken, or we cross compile.
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3192 $as_echo_n "checking whether we are cross compiling... " >&6; }
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3194 $as_echo "$cross_compiling" >&6; }
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3197 $as_echo_n "checking for suffix of executables... " >&6; }
3198 if { { ac_try="$ac_link"
3199 case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3202 esac
3203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3204 $as_echo "$ac_try_echo"; } >&5
3205 (eval "$ac_link") 2>&5
3206 ac_status=$?
3207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3208 test $ac_status = 0; }; then :
3209 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3210 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3211 # work properly (i.e., refer to `conftest.exe'), while it won't with
3212 # `rm'.
3213 for ac_file in conftest.exe conftest conftest.*; do
3214 test -f "$ac_file" || continue
3215 case $ac_file in
3216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3217 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3218 break;;
3219 * ) break;;
3220 esac
3221 done
3222 else
3223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3225 as_fn_error "cannot compute suffix of executables: cannot compile and link
3226 See \`config.log' for more details." "$LINENO" 5; }
3228 rm -f conftest$ac_cv_exeext
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3230 $as_echo "$ac_cv_exeext" >&6; }
3232 rm -f conftest.$ac_ext
3233 EXEEXT=$ac_cv_exeext
3234 ac_exeext=$EXEEXT
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3236 $as_echo_n "checking for suffix of object files... " >&6; }
3237 if test "${ac_cv_objext+set}" = set; then :
3238 $as_echo_n "(cached) " >&6
3239 else
3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241 /* end confdefs.h. */
3244 main ()
3248 return 0;
3250 _ACEOF
3251 rm -f conftest.o conftest.obj
3252 if { { ac_try="$ac_compile"
3253 case "(($ac_try" in
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3256 esac
3257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3258 $as_echo "$ac_try_echo"; } >&5
3259 (eval "$ac_compile") 2>&5
3260 ac_status=$?
3261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3262 test $ac_status = 0; }; then :
3263 for ac_file in conftest.o conftest.obj conftest.*; do
3264 test -f "$ac_file" || continue;
3265 case $ac_file in
3266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3267 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3268 break;;
3269 esac
3270 done
3271 else
3272 $as_echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3277 as_fn_error "cannot compute suffix of object files: cannot compile
3278 See \`config.log' for more details." "$LINENO" 5; }
3280 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3283 $as_echo "$ac_cv_objext" >&6; }
3284 OBJEXT=$ac_cv_objext
3285 ac_objext=$OBJEXT
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3287 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3288 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3289 $as_echo_n "(cached) " >&6
3290 else
3291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292 /* end confdefs.h. */
3295 main ()
3297 #ifndef __GNUC__
3298 choke me
3299 #endif
3302 return 0;
3304 _ACEOF
3305 if ac_fn_c_try_compile "$LINENO"; then :
3306 ac_compiler_gnu=yes
3307 else
3308 ac_compiler_gnu=no
3310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3315 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3316 if test $ac_compiler_gnu = yes; then
3317 GCC=yes
3318 else
3319 GCC=
3321 ac_test_CFLAGS=${CFLAGS+set}
3322 ac_save_CFLAGS=$CFLAGS
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3324 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3325 if test "${ac_cv_prog_cc_g+set}" = set; then :
3326 $as_echo_n "(cached) " >&6
3327 else
3328 ac_save_c_werror_flag=$ac_c_werror_flag
3329 ac_c_werror_flag=yes
3330 ac_cv_prog_cc_g=no
3331 CFLAGS="-g"
3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333 /* end confdefs.h. */
3336 main ()
3340 return 0;
3342 _ACEOF
3343 if ac_fn_c_try_compile "$LINENO"; then :
3344 ac_cv_prog_cc_g=yes
3345 else
3346 CFLAGS=""
3347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3348 /* end confdefs.h. */
3351 main ()
3355 return 0;
3357 _ACEOF
3358 if ac_fn_c_try_compile "$LINENO"; then :
3360 else
3361 ac_c_werror_flag=$ac_save_c_werror_flag
3362 CFLAGS="-g"
3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364 /* end confdefs.h. */
3367 main ()
3371 return 0;
3373 _ACEOF
3374 if ac_fn_c_try_compile "$LINENO"; then :
3375 ac_cv_prog_cc_g=yes
3377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3382 ac_c_werror_flag=$ac_save_c_werror_flag
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3385 $as_echo "$ac_cv_prog_cc_g" >&6; }
3386 if test "$ac_test_CFLAGS" = set; then
3387 CFLAGS=$ac_save_CFLAGS
3388 elif test $ac_cv_prog_cc_g = yes; then
3389 if test "$GCC" = yes; then
3390 CFLAGS="-g -O2"
3391 else
3392 CFLAGS="-g"
3394 else
3395 if test "$GCC" = yes; then
3396 CFLAGS="-O2"
3397 else
3398 CFLAGS=
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3402 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3403 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3404 $as_echo_n "(cached) " >&6
3405 else
3406 ac_cv_prog_cc_c89=no
3407 ac_save_CC=$CC
3408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409 /* end confdefs.h. */
3410 #include <stdarg.h>
3411 #include <stdio.h>
3412 #include <sys/types.h>
3413 #include <sys/stat.h>
3414 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3415 struct buf { int x; };
3416 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3417 static char *e (p, i)
3418 char **p;
3419 int i;
3421 return p[i];
3423 static char *f (char * (*g) (char **, int), char **p, ...)
3425 char *s;
3426 va_list v;
3427 va_start (v,p);
3428 s = g (p, va_arg (v,int));
3429 va_end (v);
3430 return s;
3433 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3434 function prototypes and stuff, but not '\xHH' hex character constants.
3435 These don't provoke an error unfortunately, instead are silently treated
3436 as 'x'. The following induces an error, until -std is added to get
3437 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3438 array size at least. It's necessary to write '\x00'==0 to get something
3439 that's true only with -std. */
3440 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3442 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3443 inside strings and character constants. */
3444 #define FOO(x) 'x'
3445 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3447 int test (int i, double x);
3448 struct s1 {int (*f) (int a);};
3449 struct s2 {int (*f) (double a);};
3450 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3451 int argc;
3452 char **argv;
3454 main ()
3456 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3458 return 0;
3460 _ACEOF
3461 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3462 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3464 CC="$ac_save_CC $ac_arg"
3465 if ac_fn_c_try_compile "$LINENO"; then :
3466 ac_cv_prog_cc_c89=$ac_arg
3468 rm -f core conftest.err conftest.$ac_objext
3469 test "x$ac_cv_prog_cc_c89" != "xno" && break
3470 done
3471 rm -f conftest.$ac_ext
3472 CC=$ac_save_CC
3475 # AC_CACHE_VAL
3476 case "x$ac_cv_prog_cc_c89" in
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3479 $as_echo "none needed" >&6; } ;;
3480 xno)
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3482 $as_echo "unsupported" >&6; } ;;
3484 CC="$CC $ac_cv_prog_cc_c89"
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3486 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3487 esac
3488 if test "x$ac_cv_prog_cc_c89" != xno; then :
3492 ac_ext=c
3493 ac_cpp='$CPP $CPPFLAGS'
3494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3500 $as_echo_n "checking for library containing strerror... " >&6; }
3501 if test "${ac_cv_search_strerror+set}" = set; then :
3502 $as_echo_n "(cached) " >&6
3503 else
3504 ac_func_search_save_LIBS=$LIBS
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3508 /* Override any GCC internal prototype to avoid an error.
3509 Use char because int might match the return type of a GCC
3510 builtin and then its argument prototype would still apply. */
3511 #ifdef __cplusplus
3512 extern "C"
3513 #endif
3514 char strerror ();
3516 main ()
3518 return strerror ();
3520 return 0;
3522 _ACEOF
3523 for ac_lib in '' cposix; do
3524 if test -z "$ac_lib"; then
3525 ac_res="none required"
3526 else
3527 ac_res=-l$ac_lib
3528 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3530 if ac_fn_c_try_link "$LINENO"; then :
3531 ac_cv_search_strerror=$ac_res
3533 rm -f core conftest.err conftest.$ac_objext \
3534 conftest$ac_exeext
3535 if test "${ac_cv_search_strerror+set}" = set; then :
3536 break
3538 done
3539 if test "${ac_cv_search_strerror+set}" = set; then :
3541 else
3542 ac_cv_search_strerror=no
3544 rm conftest.$ac_ext
3545 LIBS=$ac_func_search_save_LIBS
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3548 $as_echo "$ac_cv_search_strerror" >&6; }
3549 ac_res=$ac_cv_search_strerror
3550 if test "$ac_res" != no; then :
3551 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3556 BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
3557 am__api_version='1.11'
3559 # Find a good install program. We prefer a C program (faster),
3560 # so one script is as good as another. But avoid the broken or
3561 # incompatible versions:
3562 # SysV /etc/install, /usr/sbin/install
3563 # SunOS /usr/etc/install
3564 # IRIX /sbin/install
3565 # AIX /bin/install
3566 # AmigaOS /C/install, which installs bootblocks on floppy discs
3567 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3568 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3569 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3570 # OS/2's system install, which has a completely different semantic
3571 # ./install, which can be erroneously created by make from ./install.sh.
3572 # Reject install programs that cannot install multiple files.
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3574 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3575 if test -z "$INSTALL"; then
3576 if test "${ac_cv_path_install+set}" = set; then :
3577 $as_echo_n "(cached) " >&6
3578 else
3579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580 for as_dir in $PATH
3582 IFS=$as_save_IFS
3583 test -z "$as_dir" && as_dir=.
3584 # Account for people who put trailing slashes in PATH elements.
3585 case $as_dir/ in #((
3586 ./ | .// | /[cC]/* | \
3587 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3588 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3589 /usr/ucb/* ) ;;
3591 # OSF1 and SCO ODT 3.0 have their own names for install.
3592 # Don't use installbsd from OSF since it installs stuff as root
3593 # by default.
3594 for ac_prog in ginstall scoinst install; do
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3597 if test $ac_prog = install &&
3598 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3599 # AIX install. It has an incompatible calling convention.
3601 elif test $ac_prog = install &&
3602 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3603 # program-specific install script used by HP pwplus--don't use.
3605 else
3606 rm -rf conftest.one conftest.two conftest.dir
3607 echo one > conftest.one
3608 echo two > conftest.two
3609 mkdir conftest.dir
3610 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3611 test -s conftest.one && test -s conftest.two &&
3612 test -s conftest.dir/conftest.one &&
3613 test -s conftest.dir/conftest.two
3614 then
3615 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3616 break 3
3620 done
3621 done
3623 esac
3625 done
3626 IFS=$as_save_IFS
3628 rm -rf conftest.one conftest.two conftest.dir
3631 if test "${ac_cv_path_install+set}" = set; then
3632 INSTALL=$ac_cv_path_install
3633 else
3634 # As a last resort, use the slow shell script. Don't cache a
3635 # value for INSTALL within a source directory, because that will
3636 # break other packages using the cache if that directory is
3637 # removed, or if the value is a relative name.
3638 INSTALL=$ac_install_sh
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3642 $as_echo "$INSTALL" >&6; }
3644 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3645 # It thinks the first close brace ends the variable substitution.
3646 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3648 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3650 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3653 $as_echo_n "checking whether build environment is sane... " >&6; }
3654 # Just in case
3655 sleep 1
3656 echo timestamp > conftest.file
3657 # Reject unsafe characters in $srcdir or the absolute working directory
3658 # name. Accept space and tab only in the latter.
3659 am_lf='
3661 case `pwd` in
3662 *[\\\"\#\$\&\'\`$am_lf]*)
3663 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3664 esac
3665 case $srcdir in
3666 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3667 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3668 esac
3670 # Do `set' in a subshell so we don't clobber the current shell's
3671 # arguments. Must try -L first in case configure is actually a
3672 # symlink; some systems play weird games with the mod time of symlinks
3673 # (eg FreeBSD returns the mod time of the symlink's containing
3674 # directory).
3675 if (
3676 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3677 if test "$*" = "X"; then
3678 # -L didn't work.
3679 set X `ls -t "$srcdir/configure" conftest.file`
3681 rm -f conftest.file
3682 if test "$*" != "X $srcdir/configure conftest.file" \
3683 && test "$*" != "X conftest.file $srcdir/configure"; then
3685 # If neither matched, then we have a broken ls. This can happen
3686 # if, for instance, CONFIG_SHELL is bash and it inherits a
3687 # broken ls alias from the environment. This has actually
3688 # happened. Such a system could not be considered "sane".
3689 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3690 alias in your environment" "$LINENO" 5
3693 test "$2" = conftest.file
3695 then
3696 # Ok.
3698 else
3699 as_fn_error "newly created file is older than distributed files!
3700 Check your system clock" "$LINENO" 5
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3703 $as_echo "yes" >&6; }
3704 test "$program_prefix" != NONE &&
3705 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3706 # Use a double $ so make ignores it.
3707 test "$program_suffix" != NONE &&
3708 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3709 # Double any \ or $.
3710 # By default was `s,x,x', remove it if useless.
3711 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3712 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3714 # expand $ac_aux_dir to an absolute path
3715 am_aux_dir=`cd $ac_aux_dir && pwd`
3717 if test x"${MISSING+set}" != xset; then
3718 case $am_aux_dir in
3719 *\ * | *\ *)
3720 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3722 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3723 esac
3725 # Use eval to expand $SHELL
3726 if eval "$MISSING --run true"; then
3727 am_missing_run="$MISSING --run "
3728 else
3729 am_missing_run=
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3731 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3734 if test x"${install_sh}" != xset; then
3735 case $am_aux_dir in
3736 *\ * | *\ *)
3737 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3739 install_sh="\${SHELL} $am_aux_dir/install-sh"
3740 esac
3743 # Installed binaries are usually stripped using `strip' when the user
3744 # run `make install-strip'. However `strip' might not be the right
3745 # tool to use in cross-compilation environments, therefore Automake
3746 # will honor the `STRIP' environment variable to overrule this program.
3747 if test "$cross_compiling" != no; then
3748 if test -n "$ac_tool_prefix"; then
3749 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3750 set dummy ${ac_tool_prefix}strip; ac_word=$2
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752 $as_echo_n "checking for $ac_word... " >&6; }
3753 if test "${ac_cv_prog_STRIP+set}" = set; then :
3754 $as_echo_n "(cached) " >&6
3755 else
3756 if test -n "$STRIP"; then
3757 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3758 else
3759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 for as_dir in $PATH
3762 IFS=$as_save_IFS
3763 test -z "$as_dir" && as_dir=.
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3766 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3768 break 2
3770 done
3771 done
3772 IFS=$as_save_IFS
3776 STRIP=$ac_cv_prog_STRIP
3777 if test -n "$STRIP"; then
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3779 $as_echo "$STRIP" >&6; }
3780 else
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782 $as_echo "no" >&6; }
3787 if test -z "$ac_cv_prog_STRIP"; then
3788 ac_ct_STRIP=$STRIP
3789 # Extract the first word of "strip", so it can be a program name with args.
3790 set dummy strip; ac_word=$2
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3792 $as_echo_n "checking for $ac_word... " >&6; }
3793 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3794 $as_echo_n "(cached) " >&6
3795 else
3796 if test -n "$ac_ct_STRIP"; then
3797 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3798 else
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 for as_dir in $PATH
3802 IFS=$as_save_IFS
3803 test -z "$as_dir" && as_dir=.
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3806 ac_cv_prog_ac_ct_STRIP="strip"
3807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3808 break 2
3810 done
3811 done
3812 IFS=$as_save_IFS
3816 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3817 if test -n "$ac_ct_STRIP"; then
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3819 $as_echo "$ac_ct_STRIP" >&6; }
3820 else
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822 $as_echo "no" >&6; }
3825 if test "x$ac_ct_STRIP" = x; then
3826 STRIP=":"
3827 else
3828 case $cross_compiling:$ac_tool_warned in
3829 yes:)
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3832 ac_tool_warned=yes ;;
3833 esac
3834 STRIP=$ac_ct_STRIP
3836 else
3837 STRIP="$ac_cv_prog_STRIP"
3841 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3844 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3845 if test -z "$MKDIR_P"; then
3846 if test "${ac_cv_path_mkdir+set}" = set; then :
3847 $as_echo_n "(cached) " >&6
3848 else
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3852 IFS=$as_save_IFS
3853 test -z "$as_dir" && as_dir=.
3854 for ac_prog in mkdir gmkdir; do
3855 for ac_exec_ext in '' $ac_executable_extensions; do
3856 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3857 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3858 'mkdir (GNU coreutils) '* | \
3859 'mkdir (coreutils) '* | \
3860 'mkdir (fileutils) '4.1*)
3861 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3862 break 3;;
3863 esac
3864 done
3865 done
3866 done
3867 IFS=$as_save_IFS
3871 if test "${ac_cv_path_mkdir+set}" = set; then
3872 MKDIR_P="$ac_cv_path_mkdir -p"
3873 else
3874 # As a last resort, use the slow shell script. Don't cache a
3875 # value for MKDIR_P within a source directory, because that will
3876 # break other packages using the cache if that directory is
3877 # removed, or if the value is a relative name.
3878 test -d ./--version && rmdir ./--version
3879 MKDIR_P="$ac_install_sh -d"
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3883 $as_echo "$MKDIR_P" >&6; }
3885 mkdir_p="$MKDIR_P"
3886 case $mkdir_p in
3887 [\\/$]* | ?:[\\/]*) ;;
3888 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3889 esac
3891 for ac_prog in gawk mawk nawk awk
3893 # Extract the first word of "$ac_prog", so it can be a program name with args.
3894 set dummy $ac_prog; ac_word=$2
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3896 $as_echo_n "checking for $ac_word... " >&6; }
3897 if test "${ac_cv_prog_AWK+set}" = set; then :
3898 $as_echo_n "(cached) " >&6
3899 else
3900 if test -n "$AWK"; then
3901 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3902 else
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904 for as_dir in $PATH
3906 IFS=$as_save_IFS
3907 test -z "$as_dir" && as_dir=.
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3910 ac_cv_prog_AWK="$ac_prog"
3911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3912 break 2
3914 done
3915 done
3916 IFS=$as_save_IFS
3920 AWK=$ac_cv_prog_AWK
3921 if test -n "$AWK"; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3923 $as_echo "$AWK" >&6; }
3924 else
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 $as_echo "no" >&6; }
3930 test -n "$AWK" && break
3931 done
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3934 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3935 set x ${MAKE-make}
3936 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3937 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3938 $as_echo_n "(cached) " >&6
3939 else
3940 cat >conftest.make <<\_ACEOF
3941 SHELL = /bin/sh
3942 all:
3943 @echo '@@@%%%=$(MAKE)=@@@%%%'
3944 _ACEOF
3945 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3946 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3947 *@@@%%%=?*=@@@%%%*)
3948 eval ac_cv_prog_make_${ac_make}_set=yes;;
3950 eval ac_cv_prog_make_${ac_make}_set=no;;
3951 esac
3952 rm -f conftest.make
3954 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3956 $as_echo "yes" >&6; }
3957 SET_MAKE=
3958 else
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960 $as_echo "no" >&6; }
3961 SET_MAKE="MAKE=${MAKE-make}"
3964 rm -rf .tst 2>/dev/null
3965 mkdir .tst 2>/dev/null
3966 if test -d .tst; then
3967 am__leading_dot=.
3968 else
3969 am__leading_dot=_
3971 rmdir .tst 2>/dev/null
3973 DEPDIR="${am__leading_dot}deps"
3975 ac_config_commands="$ac_config_commands depfiles"
3978 am_make=${MAKE-make}
3979 cat > confinc << 'END'
3980 am__doit:
3981 @echo this is the am__doit target
3982 .PHONY: am__doit
3984 # If we don't find an include directive, just comment out the code.
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3986 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3987 am__include="#"
3988 am__quote=
3989 _am_result=none
3990 # First try GNU make style include.
3991 echo "include confinc" > confmf
3992 # Ignore all kinds of additional output from `make'.
3993 case `$am_make -s -f confmf 2> /dev/null` in #(
3994 *the\ am__doit\ target*)
3995 am__include=include
3996 am__quote=
3997 _am_result=GNU
3999 esac
4000 # Now try BSD make style include.
4001 if test "$am__include" = "#"; then
4002 echo '.include "confinc"' > confmf
4003 case `$am_make -s -f confmf 2> /dev/null` in #(
4004 *the\ am__doit\ target*)
4005 am__include=.include
4006 am__quote="\""
4007 _am_result=BSD
4009 esac
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4014 $as_echo "$_am_result" >&6; }
4015 rm -f confinc confmf
4017 # Check whether --enable-dependency-tracking was given.
4018 if test "${enable_dependency_tracking+set}" = set; then :
4019 enableval=$enable_dependency_tracking;
4022 if test "x$enable_dependency_tracking" != xno; then
4023 am_depcomp="$ac_aux_dir/depcomp"
4024 AMDEPBACKSLASH='\'
4026 if test "x$enable_dependency_tracking" != xno; then
4027 AMDEP_TRUE=
4028 AMDEP_FALSE='#'
4029 else
4030 AMDEP_TRUE='#'
4031 AMDEP_FALSE=
4035 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4036 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4037 # is not polluted with repeated "-I."
4038 am__isrc=' -I$(srcdir)'
4039 # test to see if srcdir already configured
4040 if test -f $srcdir/config.status; then
4041 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4045 # test whether we have cygpath
4046 if test -z "$CYGPATH_W"; then
4047 if (cygpath --version) >/dev/null 2>/dev/null; then
4048 CYGPATH_W='cygpath -w'
4049 else
4050 CYGPATH_W=echo
4055 # Define the identity of the package.
4056 PACKAGE=ld
4057 VERSION=${BFD_VERSION}
4060 cat >>confdefs.h <<_ACEOF
4061 #define PACKAGE "$PACKAGE"
4062 _ACEOF
4065 cat >>confdefs.h <<_ACEOF
4066 #define VERSION "$VERSION"
4067 _ACEOF
4069 # Some tools Automake needs.
4071 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4074 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4077 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4080 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4083 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4085 # We need awk for the "check" target. The system "awk" is bad on
4086 # some platforms.
4087 # Always define AMTAR for backward compatibility.
4089 AMTAR=${AMTAR-"${am_missing_run}tar"}
4091 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4096 depcc="$CC" am_compiler_list=
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4099 $as_echo_n "checking dependency style of $depcc... " >&6; }
4100 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4101 $as_echo_n "(cached) " >&6
4102 else
4103 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4104 # We make a subdir and do the tests there. Otherwise we can end up
4105 # making bogus files that we don't know about and never remove. For
4106 # instance it was reported that on HP-UX the gcc test will end up
4107 # making a dummy file named `D' -- because `-MD' means `put the output
4108 # in D'.
4109 mkdir conftest.dir
4110 # Copy depcomp to subdir because otherwise we won't find it if we're
4111 # using a relative directory.
4112 cp "$am_depcomp" conftest.dir
4113 cd conftest.dir
4114 # We will build objects and dependencies in a subdirectory because
4115 # it helps to detect inapplicable dependency modes. For instance
4116 # both Tru64's cc and ICC support -MD to output dependencies as a
4117 # side effect of compilation, but ICC will put the dependencies in
4118 # the current directory while Tru64 will put them in the object
4119 # directory.
4120 mkdir sub
4122 am_cv_CC_dependencies_compiler_type=none
4123 if test "$am_compiler_list" = ""; then
4124 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4126 am__universal=false
4127 case " $depcc " in #(
4128 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4129 esac
4131 for depmode in $am_compiler_list; do
4132 # Setup a source with many dependencies, because some compilers
4133 # like to wrap large dependency lists on column 80 (with \), and
4134 # we should not choose a depcomp mode which is confused by this.
4136 # We need to recreate these files for each test, as the compiler may
4137 # overwrite some of them when testing with obscure command lines.
4138 # This happens at least with the AIX C compiler.
4139 : > sub/conftest.c
4140 for i in 1 2 3 4 5 6; do
4141 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4142 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4143 # Solaris 8's {/usr,}/bin/sh.
4144 touch sub/conftst$i.h
4145 done
4146 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4148 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4149 # mode. It turns out that the SunPro C++ compiler does not properly
4150 # handle `-M -o', and we need to detect this. Also, some Intel
4151 # versions had trouble with output in subdirs
4152 am__obj=sub/conftest.${OBJEXT-o}
4153 am__minus_obj="-o $am__obj"
4154 case $depmode in
4155 gcc)
4156 # This depmode causes a compiler race in universal mode.
4157 test "$am__universal" = false || continue
4159 nosideeffect)
4160 # after this tag, mechanisms are not by side-effect, so they'll
4161 # only be used when explicitly requested
4162 if test "x$enable_dependency_tracking" = xyes; then
4163 continue
4164 else
4165 break
4168 msvisualcpp | msvcmsys)
4169 # This compiler won't grok `-c -o', but also, the minuso test has
4170 # not run yet. These depmodes are late enough in the game, and
4171 # so weak that their functioning should not be impacted.
4172 am__obj=conftest.${OBJEXT-o}
4173 am__minus_obj=
4175 none) break ;;
4176 esac
4177 if depmode=$depmode \
4178 source=sub/conftest.c object=$am__obj \
4179 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4180 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4181 >/dev/null 2>conftest.err &&
4182 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4183 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4184 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4185 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4186 # icc doesn't choke on unknown options, it will just issue warnings
4187 # or remarks (even with -Werror). So we grep stderr for any message
4188 # that says an option was ignored or not supported.
4189 # When given -MP, icc 7.0 and 7.1 complain thusly:
4190 # icc: Command line warning: ignoring option '-M'; no argument required
4191 # The diagnosis changed in icc 8.0:
4192 # icc: Command line remark: option '-MP' not supported
4193 if (grep 'ignoring option' conftest.err ||
4194 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4195 am_cv_CC_dependencies_compiler_type=$depmode
4196 break
4199 done
4201 cd ..
4202 rm -rf conftest.dir
4203 else
4204 am_cv_CC_dependencies_compiler_type=none
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4209 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4210 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4213 test "x$enable_dependency_tracking" != xno \
4214 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4215 am__fastdepCC_TRUE=
4216 am__fastdepCC_FALSE='#'
4217 else
4218 am__fastdepCC_TRUE='#'
4219 am__fastdepCC_FALSE=
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4226 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4227 # Check whether --enable-maintainer-mode was given.
4228 if test "${enable_maintainer_mode+set}" = set; then :
4229 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4230 else
4231 USE_MAINTAINER_MODE=no
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4235 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4236 if test $USE_MAINTAINER_MODE = yes; then
4237 MAINTAINER_MODE_TRUE=
4238 MAINTAINER_MODE_FALSE='#'
4239 else
4240 MAINTAINER_MODE_TRUE='#'
4241 MAINTAINER_MODE_FALSE=
4244 MAINT=$MAINTAINER_MODE_TRUE
4249 # Check whether --with-lib-path was given.
4250 if test "${with_lib_path+set}" = set; then :
4251 withval=$with_lib_path; LIB_PATH=$withval
4254 # Check whether --enable-targets was given.
4255 if test "${enable_targets+set}" = set; then :
4256 enableval=$enable_targets; case "${enableval}" in
4257 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
4259 no) enable_targets= ;;
4260 *) enable_targets=$enableval ;;
4261 esac
4263 # Check whether --enable-64-bit-bfd was given.
4264 if test "${enable_64_bit_bfd+set}" = set; then :
4265 enableval=$enable_64_bit_bfd; case "${enableval}" in
4266 yes) want64=true ;;
4267 no) want64=false ;;
4268 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
4269 esac
4270 else
4271 want64=false
4275 # Check whether --with-sysroot was given.
4276 if test "${with_sysroot+set}" = set; then :
4277 withval=$with_sysroot;
4278 case ${with_sysroot} in
4279 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
4280 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
4281 esac
4283 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
4284 use_sysroot=yes
4286 if test "x$prefix" = xNONE; then
4287 test_prefix=/usr/local
4288 else
4289 test_prefix=$prefix
4291 if test "x$exec_prefix" = xNONE; then
4292 test_exec_prefix=$test_prefix
4293 else
4294 test_exec_prefix=$exec_prefix
4296 case ${TARGET_SYSTEM_ROOT} in
4297 "${test_prefix}"|"${test_prefix}/"*|\
4298 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
4299 '${prefix}'|'${prefix}/'*|\
4300 '${exec_prefix}'|'${exec_prefix}/'*)
4301 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
4302 TARGET_SYSTEM_ROOT_DEFINE="$t"
4304 esac
4306 else
4308 use_sysroot=no
4309 TARGET_SYSTEM_ROOT=
4310 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
4318 # Check whether --enable-gold was given.
4319 if test "${enable_gold+set}" = set; then :
4320 enableval=$enable_gold; case "${enableval}" in
4321 default)
4322 install_as_default=no
4323 installed_linker=ld.bfd
4325 yes|no)
4326 install_as_default=yes
4327 installed_linker=ld.bfd
4330 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
4332 esac
4333 else
4334 install_as_default=yes
4335 installed_linker=ld.bfd
4341 # Check whether --enable-got was given.
4342 if test "${enable_got+set}" = set; then :
4343 enableval=$enable_got; case "${enableval}" in
4344 target | single | negative | multigot) got_handling=$enableval ;;
4345 *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;;
4346 esac
4347 else
4348 got_handling=target
4352 case "${got_handling}" in
4353 target)
4355 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h
4357 single)
4359 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h
4361 negative)
4363 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h
4365 multigot)
4367 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h
4369 *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;;
4370 esac
4372 ac_ext=c
4373 ac_cpp='$CPP $CPPFLAGS'
4374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4378 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4379 # On Suns, sometimes $CPP names a directory.
4380 if test -n "$CPP" && test -d "$CPP"; then
4381 CPP=
4383 if test -z "$CPP"; then
4384 if test "${ac_cv_prog_CPP+set}" = set; then :
4385 $as_echo_n "(cached) " >&6
4386 else
4387 # Double quotes because CPP needs to be expanded
4388 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4390 ac_preproc_ok=false
4391 for ac_c_preproc_warn_flag in '' yes
4393 # Use a header file that comes with gcc, so configuring glibc
4394 # with a fresh cross-compiler works.
4395 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4396 # <limits.h> exists even on freestanding compilers.
4397 # On the NeXT, cc -E runs the code through the compiler's parser,
4398 # not just through cpp. "Syntax error" is here to catch this case.
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h. */
4401 #ifdef __STDC__
4402 # include <limits.h>
4403 #else
4404 # include <assert.h>
4405 #endif
4406 Syntax error
4407 _ACEOF
4408 if ac_fn_c_try_cpp "$LINENO"; then :
4410 else
4411 # Broken: fails on valid input.
4412 continue
4414 rm -f conftest.err conftest.$ac_ext
4416 # OK, works on sane cases. Now check whether nonexistent headers
4417 # can be detected and how.
4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h. */
4420 #include <ac_nonexistent.h>
4421 _ACEOF
4422 if ac_fn_c_try_cpp "$LINENO"; then :
4423 # Broken: success on invalid input.
4424 continue
4425 else
4426 # Passes both tests.
4427 ac_preproc_ok=:
4428 break
4430 rm -f conftest.err conftest.$ac_ext
4432 done
4433 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4434 rm -f conftest.err conftest.$ac_ext
4435 if $ac_preproc_ok; then :
4436 break
4439 done
4440 ac_cv_prog_CPP=$CPP
4443 CPP=$ac_cv_prog_CPP
4444 else
4445 ac_cv_prog_CPP=$CPP
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4448 $as_echo "$CPP" >&6; }
4449 ac_preproc_ok=false
4450 for ac_c_preproc_warn_flag in '' yes
4452 # Use a header file that comes with gcc, so configuring glibc
4453 # with a fresh cross-compiler works.
4454 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4455 # <limits.h> exists even on freestanding compilers.
4456 # On the NeXT, cc -E runs the code through the compiler's parser,
4457 # not just through cpp. "Syntax error" is here to catch this case.
4458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459 /* end confdefs.h. */
4460 #ifdef __STDC__
4461 # include <limits.h>
4462 #else
4463 # include <assert.h>
4464 #endif
4465 Syntax error
4466 _ACEOF
4467 if ac_fn_c_try_cpp "$LINENO"; then :
4469 else
4470 # Broken: fails on valid input.
4471 continue
4473 rm -f conftest.err conftest.$ac_ext
4475 # OK, works on sane cases. Now check whether nonexistent headers
4476 # can be detected and how.
4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478 /* end confdefs.h. */
4479 #include <ac_nonexistent.h>
4480 _ACEOF
4481 if ac_fn_c_try_cpp "$LINENO"; then :
4482 # Broken: success on invalid input.
4483 continue
4484 else
4485 # Passes both tests.
4486 ac_preproc_ok=:
4487 break
4489 rm -f conftest.err conftest.$ac_ext
4491 done
4492 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4493 rm -f conftest.err conftest.$ac_ext
4494 if $ac_preproc_ok; then :
4496 else
4497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4499 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4500 See \`config.log' for more details." "$LINENO" 5; }
4503 ac_ext=c
4504 ac_cpp='$CPP $CPPFLAGS'
4505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4511 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4512 if test "${ac_cv_path_GREP+set}" = set; then :
4513 $as_echo_n "(cached) " >&6
4514 else
4515 if test -z "$GREP"; then
4516 ac_path_GREP_found=false
4517 # Loop through the user's path and test for each of PROGNAME-LIST
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4521 IFS=$as_save_IFS
4522 test -z "$as_dir" && as_dir=.
4523 for ac_prog in grep ggrep; do
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4526 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4527 # Check for GNU ac_path_GREP and select it if it is found.
4528 # Check for GNU $ac_path_GREP
4529 case `"$ac_path_GREP" --version 2>&1` in
4530 *GNU*)
4531 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4533 ac_count=0
4534 $as_echo_n 0123456789 >"conftest.in"
4535 while :
4537 cat "conftest.in" "conftest.in" >"conftest.tmp"
4538 mv "conftest.tmp" "conftest.in"
4539 cp "conftest.in" "conftest.nl"
4540 $as_echo 'GREP' >> "conftest.nl"
4541 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4542 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4543 as_fn_arith $ac_count + 1 && ac_count=$as_val
4544 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4545 # Best one so far, save it but keep looking for a better one
4546 ac_cv_path_GREP="$ac_path_GREP"
4547 ac_path_GREP_max=$ac_count
4549 # 10*(2^10) chars as input seems more than enough
4550 test $ac_count -gt 10 && break
4551 done
4552 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4553 esac
4555 $ac_path_GREP_found && break 3
4556 done
4557 done
4558 done
4559 IFS=$as_save_IFS
4560 if test -z "$ac_cv_path_GREP"; then
4561 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4563 else
4564 ac_cv_path_GREP=$GREP
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4569 $as_echo "$ac_cv_path_GREP" >&6; }
4570 GREP="$ac_cv_path_GREP"
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4574 $as_echo_n "checking for egrep... " >&6; }
4575 if test "${ac_cv_path_EGREP+set}" = set; then :
4576 $as_echo_n "(cached) " >&6
4577 else
4578 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4579 then ac_cv_path_EGREP="$GREP -E"
4580 else
4581 if test -z "$EGREP"; then
4582 ac_path_EGREP_found=false
4583 # Loop through the user's path and test for each of PROGNAME-LIST
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4587 IFS=$as_save_IFS
4588 test -z "$as_dir" && as_dir=.
4589 for ac_prog in egrep; do
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4592 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4593 # Check for GNU ac_path_EGREP and select it if it is found.
4594 # Check for GNU $ac_path_EGREP
4595 case `"$ac_path_EGREP" --version 2>&1` in
4596 *GNU*)
4597 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4599 ac_count=0
4600 $as_echo_n 0123456789 >"conftest.in"
4601 while :
4603 cat "conftest.in" "conftest.in" >"conftest.tmp"
4604 mv "conftest.tmp" "conftest.in"
4605 cp "conftest.in" "conftest.nl"
4606 $as_echo 'EGREP' >> "conftest.nl"
4607 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4608 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4609 as_fn_arith $ac_count + 1 && ac_count=$as_val
4610 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4611 # Best one so far, save it but keep looking for a better one
4612 ac_cv_path_EGREP="$ac_path_EGREP"
4613 ac_path_EGREP_max=$ac_count
4615 # 10*(2^10) chars as input seems more than enough
4616 test $ac_count -gt 10 && break
4617 done
4618 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4619 esac
4621 $ac_path_EGREP_found && break 3
4622 done
4623 done
4624 done
4625 IFS=$as_save_IFS
4626 if test -z "$ac_cv_path_EGREP"; then
4627 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4629 else
4630 ac_cv_path_EGREP=$EGREP
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4636 $as_echo "$ac_cv_path_EGREP" >&6; }
4637 EGREP="$ac_cv_path_EGREP"
4641 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643 /* end confdefs.h. */
4644 __GNUC__
4645 _ACEOF
4646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4647 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
4649 else
4650 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
4652 rm -f conftest*
4655 # Check whether --enable-werror was given.
4656 if test "${enable_werror+set}" = set; then :
4657 enableval=$enable_werror; case "${enableval}" in
4658 yes | y) ERROR_ON_WARNING="yes" ;;
4659 no | n) ERROR_ON_WARNING="no" ;;
4660 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
4661 esac
4665 # Disable -Wformat by default when using gcc on mingw
4666 case "${host}" in
4667 *-*-mingw32*)
4668 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4669 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
4672 *) ;;
4673 esac
4675 # Enable -Werror by default when using gcc
4676 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4677 ERROR_ON_WARNING=yes
4680 NO_WERROR=
4681 if test "${ERROR_ON_WARNING}" = yes ; then
4682 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4683 NO_WERROR="-Wno-error"
4686 if test "${GCC}" = yes ; then
4687 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4690 # Check whether --enable-build-warnings was given.
4691 if test "${enable_build_warnings+set}" = set; then :
4692 enableval=$enable_build_warnings; case "${enableval}" in
4693 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4694 no) if test "${GCC}" = yes ; then
4695 WARN_CFLAGS="-w"
4696 fi;;
4697 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4698 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4699 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4700 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4701 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4702 esac
4706 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4707 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4714 ac_config_headers="$ac_config_headers config.h:config.in"
4717 if test -z "$target" ; then
4718 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
4720 if test -z "$host" ; then
4721 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5
4724 # host-specific stuff:
4726 ac_ext=c
4727 ac_cpp='$CPP $CPPFLAGS'
4728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4731 if test -n "$ac_tool_prefix"; then
4732 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4733 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4735 $as_echo_n "checking for $ac_word... " >&6; }
4736 if test "${ac_cv_prog_CC+set}" = set; then :
4737 $as_echo_n "(cached) " >&6
4738 else
4739 if test -n "$CC"; then
4740 ac_cv_prog_CC="$CC" # Let the user override the test.
4741 else
4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 for as_dir in $PATH
4745 IFS=$as_save_IFS
4746 test -z "$as_dir" && as_dir=.
4747 for ac_exec_ext in '' $ac_executable_extensions; do
4748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4749 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 break 2
4753 done
4754 done
4755 IFS=$as_save_IFS
4759 CC=$ac_cv_prog_CC
4760 if test -n "$CC"; then
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4762 $as_echo "$CC" >&6; }
4763 else
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4765 $as_echo "no" >&6; }
4770 if test -z "$ac_cv_prog_CC"; then
4771 ac_ct_CC=$CC
4772 # Extract the first word of "gcc", so it can be a program name with args.
4773 set dummy gcc; ac_word=$2
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4775 $as_echo_n "checking for $ac_word... " >&6; }
4776 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4777 $as_echo_n "(cached) " >&6
4778 else
4779 if test -n "$ac_ct_CC"; then
4780 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4781 else
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 for as_dir in $PATH
4785 IFS=$as_save_IFS
4786 test -z "$as_dir" && as_dir=.
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4789 ac_cv_prog_ac_ct_CC="gcc"
4790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 break 2
4793 done
4794 done
4795 IFS=$as_save_IFS
4799 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4800 if test -n "$ac_ct_CC"; then
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4802 $as_echo "$ac_ct_CC" >&6; }
4803 else
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805 $as_echo "no" >&6; }
4808 if test "x$ac_ct_CC" = x; then
4809 CC=""
4810 else
4811 case $cross_compiling:$ac_tool_warned in
4812 yes:)
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4815 ac_tool_warned=yes ;;
4816 esac
4817 CC=$ac_ct_CC
4819 else
4820 CC="$ac_cv_prog_CC"
4823 if test -z "$CC"; then
4824 if test -n "$ac_tool_prefix"; then
4825 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4826 set dummy ${ac_tool_prefix}cc; ac_word=$2
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4828 $as_echo_n "checking for $ac_word... " >&6; }
4829 if test "${ac_cv_prog_CC+set}" = set; then :
4830 $as_echo_n "(cached) " >&6
4831 else
4832 if test -n "$CC"; then
4833 ac_cv_prog_CC="$CC" # Let the user override the test.
4834 else
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 for as_dir in $PATH
4838 IFS=$as_save_IFS
4839 test -z "$as_dir" && as_dir=.
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4842 ac_cv_prog_CC="${ac_tool_prefix}cc"
4843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 break 2
4846 done
4847 done
4848 IFS=$as_save_IFS
4852 CC=$ac_cv_prog_CC
4853 if test -n "$CC"; then
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4855 $as_echo "$CC" >&6; }
4856 else
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4858 $as_echo "no" >&6; }
4864 if test -z "$CC"; then
4865 # Extract the first word of "cc", so it can be a program name with args.
4866 set dummy cc; ac_word=$2
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4868 $as_echo_n "checking for $ac_word... " >&6; }
4869 if test "${ac_cv_prog_CC+set}" = set; then :
4870 $as_echo_n "(cached) " >&6
4871 else
4872 if test -n "$CC"; then
4873 ac_cv_prog_CC="$CC" # Let the user override the test.
4874 else
4875 ac_prog_rejected=no
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4883 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4884 ac_prog_rejected=yes
4885 continue
4887 ac_cv_prog_CC="cc"
4888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 break 2
4891 done
4892 done
4893 IFS=$as_save_IFS
4895 if test $ac_prog_rejected = yes; then
4896 # We found a bogon in the path, so make sure we never use it.
4897 set dummy $ac_cv_prog_CC
4898 shift
4899 if test $# != 0; then
4900 # We chose a different compiler from the bogus one.
4901 # However, it has the same basename, so the bogon will be chosen
4902 # first if we set CC to just the basename; use the full file name.
4903 shift
4904 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4909 CC=$ac_cv_prog_CC
4910 if test -n "$CC"; then
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4912 $as_echo "$CC" >&6; }
4913 else
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915 $as_echo "no" >&6; }
4920 if test -z "$CC"; then
4921 if test -n "$ac_tool_prefix"; then
4922 for ac_prog in cl.exe
4924 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4925 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4927 $as_echo_n "checking for $ac_word... " >&6; }
4928 if test "${ac_cv_prog_CC+set}" = set; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 if test -n "$CC"; then
4932 ac_cv_prog_CC="$CC" # Let the user override the test.
4933 else
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4941 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 break 2
4945 done
4946 done
4947 IFS=$as_save_IFS
4951 CC=$ac_cv_prog_CC
4952 if test -n "$CC"; then
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4954 $as_echo "$CC" >&6; }
4955 else
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957 $as_echo "no" >&6; }
4961 test -n "$CC" && break
4962 done
4964 if test -z "$CC"; then
4965 ac_ct_CC=$CC
4966 for ac_prog in cl.exe
4968 # Extract the first word of "$ac_prog", so it can be a program name with args.
4969 set dummy $ac_prog; ac_word=$2
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4971 $as_echo_n "checking for $ac_word... " >&6; }
4972 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4973 $as_echo_n "(cached) " >&6
4974 else
4975 if test -n "$ac_ct_CC"; then
4976 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4977 else
4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH
4981 IFS=$as_save_IFS
4982 test -z "$as_dir" && as_dir=.
4983 for ac_exec_ext in '' $ac_executable_extensions; do
4984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4985 ac_cv_prog_ac_ct_CC="$ac_prog"
4986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4987 break 2
4989 done
4990 done
4991 IFS=$as_save_IFS
4995 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4996 if test -n "$ac_ct_CC"; then
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4998 $as_echo "$ac_ct_CC" >&6; }
4999 else
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5001 $as_echo "no" >&6; }
5005 test -n "$ac_ct_CC" && break
5006 done
5008 if test "x$ac_ct_CC" = x; then
5009 CC=""
5010 else
5011 case $cross_compiling:$ac_tool_warned in
5012 yes:)
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5015 ac_tool_warned=yes ;;
5016 esac
5017 CC=$ac_ct_CC
5024 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5026 as_fn_error "no acceptable C compiler found in \$PATH
5027 See \`config.log' for more details." "$LINENO" 5; }
5029 # Provide some information about the compiler.
5030 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5031 set X $ac_compile
5032 ac_compiler=$2
5033 for ac_option in --version -v -V -qversion; do
5034 { { ac_try="$ac_compiler $ac_option >&5"
5035 case "(($ac_try" in
5036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5037 *) ac_try_echo=$ac_try;;
5038 esac
5039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5040 $as_echo "$ac_try_echo"; } >&5
5041 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5042 ac_status=$?
5043 if test -s conftest.err; then
5044 sed '10a\
5045 ... rest of stderr output deleted ...
5046 10q' conftest.err >conftest.er1
5047 cat conftest.er1 >&5
5048 rm -f conftest.er1 conftest.err
5050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5051 test $ac_status = 0; }
5052 done
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5055 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5056 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5057 $as_echo_n "(cached) " >&6
5058 else
5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h. */
5063 main ()
5065 #ifndef __GNUC__
5066 choke me
5067 #endif
5070 return 0;
5072 _ACEOF
5073 if ac_fn_c_try_compile "$LINENO"; then :
5074 ac_compiler_gnu=yes
5075 else
5076 ac_compiler_gnu=no
5078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5079 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5083 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5084 if test $ac_compiler_gnu = yes; then
5085 GCC=yes
5086 else
5087 GCC=
5089 ac_test_CFLAGS=${CFLAGS+set}
5090 ac_save_CFLAGS=$CFLAGS
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5092 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5093 if test "${ac_cv_prog_cc_g+set}" = set; then :
5094 $as_echo_n "(cached) " >&6
5095 else
5096 ac_save_c_werror_flag=$ac_c_werror_flag
5097 ac_c_werror_flag=yes
5098 ac_cv_prog_cc_g=no
5099 CFLAGS="-g"
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5104 main ()
5108 return 0;
5110 _ACEOF
5111 if ac_fn_c_try_compile "$LINENO"; then :
5112 ac_cv_prog_cc_g=yes
5113 else
5114 CFLAGS=""
5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116 /* end confdefs.h. */
5119 main ()
5123 return 0;
5125 _ACEOF
5126 if ac_fn_c_try_compile "$LINENO"; then :
5128 else
5129 ac_c_werror_flag=$ac_save_c_werror_flag
5130 CFLAGS="-g"
5131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5132 /* end confdefs.h. */
5135 main ()
5139 return 0;
5141 _ACEOF
5142 if ac_fn_c_try_compile "$LINENO"; then :
5143 ac_cv_prog_cc_g=yes
5145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5150 ac_c_werror_flag=$ac_save_c_werror_flag
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5153 $as_echo "$ac_cv_prog_cc_g" >&6; }
5154 if test "$ac_test_CFLAGS" = set; then
5155 CFLAGS=$ac_save_CFLAGS
5156 elif test $ac_cv_prog_cc_g = yes; then
5157 if test "$GCC" = yes; then
5158 CFLAGS="-g -O2"
5159 else
5160 CFLAGS="-g"
5162 else
5163 if test "$GCC" = yes; then
5164 CFLAGS="-O2"
5165 else
5166 CFLAGS=
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5170 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5171 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5172 $as_echo_n "(cached) " >&6
5173 else
5174 ac_cv_prog_cc_c89=no
5175 ac_save_CC=$CC
5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h. */
5178 #include <stdarg.h>
5179 #include <stdio.h>
5180 #include <sys/types.h>
5181 #include <sys/stat.h>
5182 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5183 struct buf { int x; };
5184 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5185 static char *e (p, i)
5186 char **p;
5187 int i;
5189 return p[i];
5191 static char *f (char * (*g) (char **, int), char **p, ...)
5193 char *s;
5194 va_list v;
5195 va_start (v,p);
5196 s = g (p, va_arg (v,int));
5197 va_end (v);
5198 return s;
5201 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5202 function prototypes and stuff, but not '\xHH' hex character constants.
5203 These don't provoke an error unfortunately, instead are silently treated
5204 as 'x'. The following induces an error, until -std is added to get
5205 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5206 array size at least. It's necessary to write '\x00'==0 to get something
5207 that's true only with -std. */
5208 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5210 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5211 inside strings and character constants. */
5212 #define FOO(x) 'x'
5213 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5215 int test (int i, double x);
5216 struct s1 {int (*f) (int a);};
5217 struct s2 {int (*f) (double a);};
5218 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5219 int argc;
5220 char **argv;
5222 main ()
5224 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5226 return 0;
5228 _ACEOF
5229 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5230 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5232 CC="$ac_save_CC $ac_arg"
5233 if ac_fn_c_try_compile "$LINENO"; then :
5234 ac_cv_prog_cc_c89=$ac_arg
5236 rm -f core conftest.err conftest.$ac_objext
5237 test "x$ac_cv_prog_cc_c89" != "xno" && break
5238 done
5239 rm -f conftest.$ac_ext
5240 CC=$ac_save_CC
5243 # AC_CACHE_VAL
5244 case "x$ac_cv_prog_cc_c89" in
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5247 $as_echo "none needed" >&6; } ;;
5248 xno)
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5250 $as_echo "unsupported" >&6; } ;;
5252 CC="$CC $ac_cv_prog_cc_c89"
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5254 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5255 esac
5256 if test "x$ac_cv_prog_cc_c89" != xno; then :
5260 ac_ext=c
5261 ac_cpp='$CPP $CPPFLAGS'
5262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5266 ac_ext=cpp
5267 ac_cpp='$CXXCPP $CPPFLAGS'
5268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5271 if test -z "$CXX"; then
5272 if test -n "$CCC"; then
5273 CXX=$CCC
5274 else
5275 if test -n "$ac_tool_prefix"; then
5276 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5279 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5281 $as_echo_n "checking for $ac_word... " >&6; }
5282 if test "${ac_cv_prog_CXX+set}" = set; then :
5283 $as_echo_n "(cached) " >&6
5284 else
5285 if test -n "$CXX"; then
5286 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5287 else
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in $PATH
5291 IFS=$as_save_IFS
5292 test -z "$as_dir" && as_dir=.
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5295 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 break 2
5299 done
5300 done
5301 IFS=$as_save_IFS
5305 CXX=$ac_cv_prog_CXX
5306 if test -n "$CXX"; then
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5308 $as_echo "$CXX" >&6; }
5309 else
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5311 $as_echo "no" >&6; }
5315 test -n "$CXX" && break
5316 done
5318 if test -z "$CXX"; then
5319 ac_ct_CXX=$CXX
5320 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5322 # Extract the first word of "$ac_prog", so it can be a program name with args.
5323 set dummy $ac_prog; ac_word=$2
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5325 $as_echo_n "checking for $ac_word... " >&6; }
5326 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5327 $as_echo_n "(cached) " >&6
5328 else
5329 if test -n "$ac_ct_CXX"; then
5330 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5331 else
5332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333 for as_dir in $PATH
5335 IFS=$as_save_IFS
5336 test -z "$as_dir" && as_dir=.
5337 for ac_exec_ext in '' $ac_executable_extensions; do
5338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5339 ac_cv_prog_ac_ct_CXX="$ac_prog"
5340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5341 break 2
5343 done
5344 done
5345 IFS=$as_save_IFS
5349 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5350 if test -n "$ac_ct_CXX"; then
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5352 $as_echo "$ac_ct_CXX" >&6; }
5353 else
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355 $as_echo "no" >&6; }
5359 test -n "$ac_ct_CXX" && break
5360 done
5362 if test "x$ac_ct_CXX" = x; then
5363 CXX="g++"
5364 else
5365 case $cross_compiling:$ac_tool_warned in
5366 yes:)
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5369 ac_tool_warned=yes ;;
5370 esac
5371 CXX=$ac_ct_CXX
5377 # Provide some information about the compiler.
5378 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5379 set X $ac_compile
5380 ac_compiler=$2
5381 for ac_option in --version -v -V -qversion; do
5382 { { ac_try="$ac_compiler $ac_option >&5"
5383 case "(($ac_try" in
5384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385 *) ac_try_echo=$ac_try;;
5386 esac
5387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5388 $as_echo "$ac_try_echo"; } >&5
5389 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5390 ac_status=$?
5391 if test -s conftest.err; then
5392 sed '10a\
5393 ... rest of stderr output deleted ...
5394 10q' conftest.err >conftest.er1
5395 cat conftest.er1 >&5
5396 rm -f conftest.er1 conftest.err
5398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5399 test $ac_status = 0; }
5400 done
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5403 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5404 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5405 $as_echo_n "(cached) " >&6
5406 else
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5411 main ()
5413 #ifndef __GNUC__
5414 choke me
5415 #endif
5418 return 0;
5420 _ACEOF
5421 if ac_fn_cxx_try_compile "$LINENO"; then :
5422 ac_compiler_gnu=yes
5423 else
5424 ac_compiler_gnu=no
5426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5427 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5431 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5432 if test $ac_compiler_gnu = yes; then
5433 GXX=yes
5434 else
5435 GXX=
5437 ac_test_CXXFLAGS=${CXXFLAGS+set}
5438 ac_save_CXXFLAGS=$CXXFLAGS
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5440 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5441 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5442 $as_echo_n "(cached) " >&6
5443 else
5444 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5445 ac_cxx_werror_flag=yes
5446 ac_cv_prog_cxx_g=no
5447 CXXFLAGS="-g"
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h. */
5452 main ()
5456 return 0;
5458 _ACEOF
5459 if ac_fn_cxx_try_compile "$LINENO"; then :
5460 ac_cv_prog_cxx_g=yes
5461 else
5462 CXXFLAGS=""
5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464 /* end confdefs.h. */
5467 main ()
5471 return 0;
5473 _ACEOF
5474 if ac_fn_cxx_try_compile "$LINENO"; then :
5476 else
5477 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5478 CXXFLAGS="-g"
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h. */
5483 main ()
5487 return 0;
5489 _ACEOF
5490 if ac_fn_cxx_try_compile "$LINENO"; then :
5491 ac_cv_prog_cxx_g=yes
5493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5498 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5501 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5502 if test "$ac_test_CXXFLAGS" = set; then
5503 CXXFLAGS=$ac_save_CXXFLAGS
5504 elif test $ac_cv_prog_cxx_g = yes; then
5505 if test "$GXX" = yes; then
5506 CXXFLAGS="-g -O2"
5507 else
5508 CXXFLAGS="-g"
5510 else
5511 if test "$GXX" = yes; then
5512 CXXFLAGS="-O2"
5513 else
5514 CXXFLAGS=
5517 ac_ext=c
5518 ac_cpp='$CPP $CPPFLAGS'
5519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5523 depcc="$CXX" am_compiler_list=
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5526 $as_echo_n "checking dependency style of $depcc... " >&6; }
5527 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5528 $as_echo_n "(cached) " >&6
5529 else
5530 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5531 # We make a subdir and do the tests there. Otherwise we can end up
5532 # making bogus files that we don't know about and never remove. For
5533 # instance it was reported that on HP-UX the gcc test will end up
5534 # making a dummy file named `D' -- because `-MD' means `put the output
5535 # in D'.
5536 mkdir conftest.dir
5537 # Copy depcomp to subdir because otherwise we won't find it if we're
5538 # using a relative directory.
5539 cp "$am_depcomp" conftest.dir
5540 cd conftest.dir
5541 # We will build objects and dependencies in a subdirectory because
5542 # it helps to detect inapplicable dependency modes. For instance
5543 # both Tru64's cc and ICC support -MD to output dependencies as a
5544 # side effect of compilation, but ICC will put the dependencies in
5545 # the current directory while Tru64 will put them in the object
5546 # directory.
5547 mkdir sub
5549 am_cv_CXX_dependencies_compiler_type=none
5550 if test "$am_compiler_list" = ""; then
5551 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5553 am__universal=false
5554 case " $depcc " in #(
5555 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5556 esac
5558 for depmode in $am_compiler_list; do
5559 # Setup a source with many dependencies, because some compilers
5560 # like to wrap large dependency lists on column 80 (with \), and
5561 # we should not choose a depcomp mode which is confused by this.
5563 # We need to recreate these files for each test, as the compiler may
5564 # overwrite some of them when testing with obscure command lines.
5565 # This happens at least with the AIX C compiler.
5566 : > sub/conftest.c
5567 for i in 1 2 3 4 5 6; do
5568 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5569 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5570 # Solaris 8's {/usr,}/bin/sh.
5571 touch sub/conftst$i.h
5572 done
5573 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5575 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5576 # mode. It turns out that the SunPro C++ compiler does not properly
5577 # handle `-M -o', and we need to detect this. Also, some Intel
5578 # versions had trouble with output in subdirs
5579 am__obj=sub/conftest.${OBJEXT-o}
5580 am__minus_obj="-o $am__obj"
5581 case $depmode in
5582 gcc)
5583 # This depmode causes a compiler race in universal mode.
5584 test "$am__universal" = false || continue
5586 nosideeffect)
5587 # after this tag, mechanisms are not by side-effect, so they'll
5588 # only be used when explicitly requested
5589 if test "x$enable_dependency_tracking" = xyes; then
5590 continue
5591 else
5592 break
5595 msvisualcpp | msvcmsys)
5596 # This compiler won't grok `-c -o', but also, the minuso test has
5597 # not run yet. These depmodes are late enough in the game, and
5598 # so weak that their functioning should not be impacted.
5599 am__obj=conftest.${OBJEXT-o}
5600 am__minus_obj=
5602 none) break ;;
5603 esac
5604 if depmode=$depmode \
5605 source=sub/conftest.c object=$am__obj \
5606 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5607 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5608 >/dev/null 2>conftest.err &&
5609 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5610 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5611 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5612 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5613 # icc doesn't choke on unknown options, it will just issue warnings
5614 # or remarks (even with -Werror). So we grep stderr for any message
5615 # that says an option was ignored or not supported.
5616 # When given -MP, icc 7.0 and 7.1 complain thusly:
5617 # icc: Command line warning: ignoring option '-M'; no argument required
5618 # The diagnosis changed in icc 8.0:
5619 # icc: Command line remark: option '-MP' not supported
5620 if (grep 'ignoring option' conftest.err ||
5621 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5622 am_cv_CXX_dependencies_compiler_type=$depmode
5623 break
5626 done
5628 cd ..
5629 rm -rf conftest.dir
5630 else
5631 am_cv_CXX_dependencies_compiler_type=none
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5636 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5637 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5640 test "x$enable_dependency_tracking" != xno \
5641 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5642 am__fastdepCXX_TRUE=
5643 am__fastdepCXX_FALSE='#'
5644 else
5645 am__fastdepCXX_TRUE='#'
5646 am__fastdepCXX_FALSE=
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5651 $as_echo_n "checking for ANSI C header files... " >&6; }
5652 if test "${ac_cv_header_stdc+set}" = set; then :
5653 $as_echo_n "(cached) " >&6
5654 else
5655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656 /* end confdefs.h. */
5657 #include <stdlib.h>
5658 #include <stdarg.h>
5659 #include <string.h>
5660 #include <float.h>
5663 main ()
5667 return 0;
5669 _ACEOF
5670 if ac_fn_c_try_compile "$LINENO"; then :
5671 ac_cv_header_stdc=yes
5672 else
5673 ac_cv_header_stdc=no
5675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677 if test $ac_cv_header_stdc = yes; then
5678 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680 /* end confdefs.h. */
5681 #include <string.h>
5683 _ACEOF
5684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5685 $EGREP "memchr" >/dev/null 2>&1; then :
5687 else
5688 ac_cv_header_stdc=no
5690 rm -f conftest*
5694 if test $ac_cv_header_stdc = yes; then
5695 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h. */
5698 #include <stdlib.h>
5700 _ACEOF
5701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5702 $EGREP "free" >/dev/null 2>&1; then :
5704 else
5705 ac_cv_header_stdc=no
5707 rm -f conftest*
5711 if test $ac_cv_header_stdc = yes; then
5712 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5713 if test "$cross_compiling" = yes; then :
5715 else
5716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5717 /* end confdefs.h. */
5718 #include <ctype.h>
5719 #include <stdlib.h>
5720 #if ((' ' & 0x0FF) == 0x020)
5721 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5722 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5723 #else
5724 # define ISLOWER(c) \
5725 (('a' <= (c) && (c) <= 'i') \
5726 || ('j' <= (c) && (c) <= 'r') \
5727 || ('s' <= (c) && (c) <= 'z'))
5728 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5729 #endif
5731 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5733 main ()
5735 int i;
5736 for (i = 0; i < 256; i++)
5737 if (XOR (islower (i), ISLOWER (i))
5738 || toupper (i) != TOUPPER (i))
5739 return 2;
5740 return 0;
5742 _ACEOF
5743 if ac_fn_c_try_run "$LINENO"; then :
5745 else
5746 ac_cv_header_stdc=no
5748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5749 conftest.$ac_objext conftest.beam conftest.$ac_ext
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5755 $as_echo "$ac_cv_header_stdc" >&6; }
5756 if test $ac_cv_header_stdc = yes; then
5758 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5762 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5763 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5764 inttypes.h stdint.h unistd.h
5765 do :
5766 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5767 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5769 eval as_val=\$$as_ac_Header
5770 if test "x$as_val" = x""yes; then :
5771 cat >>confdefs.h <<_ACEOF
5772 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5773 _ACEOF
5777 done
5781 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5782 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5783 MINIX=yes
5784 else
5785 MINIX=
5789 if test "$MINIX" = yes; then
5791 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5794 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5797 $as_echo "#define _MINIX 1" >>confdefs.h
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5803 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5804 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5805 $as_echo_n "(cached) " >&6
5806 else
5807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808 /* end confdefs.h. */
5810 # define __EXTENSIONS__ 1
5811 $ac_includes_default
5813 main ()
5817 return 0;
5819 _ACEOF
5820 if ac_fn_c_try_compile "$LINENO"; then :
5821 ac_cv_safe_to_define___extensions__=yes
5822 else
5823 ac_cv_safe_to_define___extensions__=no
5825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5828 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5829 test $ac_cv_safe_to_define___extensions__ = yes &&
5830 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5832 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5834 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5836 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5838 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5844 # The tests for host and target for $enable_largefile require
5845 # canonical names.
5849 # As the $enable_largefile decision depends on --enable-plugins we must set it
5850 # even in directories otherwise not depending on the $plugins option.
5853 # Check whether --enable-plugins was given.
5854 if test "${enable_plugins+set}" = set; then :
5855 enableval=$enable_plugins; case "${enableval}" in
5856 yes | "") plugins=yes ;;
5857 no) plugins=no ;;
5858 *) plugins=yes ;;
5859 esac
5860 else
5861 plugins=no
5866 case "${host}" in
5867 sparc-*-solaris*|i[3-7]86-*-solaris*)
5868 # On native 32bit sparc and ia32 solaris, large-file and procfs support
5869 # are mutually exclusive; and without procfs support, the bfd/ elf module
5870 # cannot provide certain routines such as elfcore_write_prpsinfo
5871 # or elfcore_write_prstatus. So unless the user explicitly requested
5872 # large-file support through the --enable-largefile switch, disable
5873 # large-file support in favor of procfs support.
5874 test "${target}" = "${host}" -a "x$plugins" = xno \
5875 && : ${enable_largefile="no"}
5877 esac
5879 # Check whether --enable-largefile was given.
5880 if test "${enable_largefile+set}" = set; then :
5881 enableval=$enable_largefile;
5884 if test "$enable_largefile" != no; then
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5887 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5888 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5889 $as_echo_n "(cached) " >&6
5890 else
5891 ac_cv_sys_largefile_CC=no
5892 if test "$GCC" != yes; then
5893 ac_save_CC=$CC
5894 while :; do
5895 # IRIX 6.2 and later do not support large files by default,
5896 # so use the C compiler's -n32 option if that helps.
5897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5898 /* end confdefs.h. */
5899 #include <sys/types.h>
5900 /* Check that off_t can represent 2**63 - 1 correctly.
5901 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5902 since some C++ compilers masquerading as C compilers
5903 incorrectly reject 9223372036854775807. */
5904 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5905 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5906 && LARGE_OFF_T % 2147483647 == 1)
5907 ? 1 : -1];
5909 main ()
5913 return 0;
5915 _ACEOF
5916 if ac_fn_c_try_compile "$LINENO"; then :
5917 break
5919 rm -f core conftest.err conftest.$ac_objext
5920 CC="$CC -n32"
5921 if ac_fn_c_try_compile "$LINENO"; then :
5922 ac_cv_sys_largefile_CC=' -n32'; break
5924 rm -f core conftest.err conftest.$ac_objext
5925 break
5926 done
5927 CC=$ac_save_CC
5928 rm -f conftest.$ac_ext
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5932 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5933 if test "$ac_cv_sys_largefile_CC" != no; then
5934 CC=$CC$ac_cv_sys_largefile_CC
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5938 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5939 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5940 $as_echo_n "(cached) " >&6
5941 else
5942 while :; do
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944 /* end confdefs.h. */
5945 #include <sys/types.h>
5946 /* Check that off_t can represent 2**63 - 1 correctly.
5947 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5948 since some C++ compilers masquerading as C compilers
5949 incorrectly reject 9223372036854775807. */
5950 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5951 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5952 && LARGE_OFF_T % 2147483647 == 1)
5953 ? 1 : -1];
5955 main ()
5959 return 0;
5961 _ACEOF
5962 if ac_fn_c_try_compile "$LINENO"; then :
5963 ac_cv_sys_file_offset_bits=no; break
5965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5967 /* end confdefs.h. */
5968 #define _FILE_OFFSET_BITS 64
5969 #include <sys/types.h>
5970 /* Check that off_t can represent 2**63 - 1 correctly.
5971 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5972 since some C++ compilers masquerading as C compilers
5973 incorrectly reject 9223372036854775807. */
5974 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5975 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5976 && LARGE_OFF_T % 2147483647 == 1)
5977 ? 1 : -1];
5979 main ()
5983 return 0;
5985 _ACEOF
5986 if ac_fn_c_try_compile "$LINENO"; then :
5987 ac_cv_sys_file_offset_bits=64; break
5989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5990 ac_cv_sys_file_offset_bits=unknown
5991 break
5992 done
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5995 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5996 case $ac_cv_sys_file_offset_bits in #(
5997 no | unknown) ;;
5999 cat >>confdefs.h <<_ACEOF
6000 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6001 _ACEOF
6003 esac
6004 rm -rf conftest*
6005 if test $ac_cv_sys_file_offset_bits = unknown; then
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6007 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6008 if test "${ac_cv_sys_large_files+set}" = set; then :
6009 $as_echo_n "(cached) " >&6
6010 else
6011 while :; do
6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013 /* end confdefs.h. */
6014 #include <sys/types.h>
6015 /* Check that off_t can represent 2**63 - 1 correctly.
6016 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6017 since some C++ compilers masquerading as C compilers
6018 incorrectly reject 9223372036854775807. */
6019 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6020 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6021 && LARGE_OFF_T % 2147483647 == 1)
6022 ? 1 : -1];
6024 main ()
6028 return 0;
6030 _ACEOF
6031 if ac_fn_c_try_compile "$LINENO"; then :
6032 ac_cv_sys_large_files=no; break
6034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036 /* end confdefs.h. */
6037 #define _LARGE_FILES 1
6038 #include <sys/types.h>
6039 /* Check that off_t can represent 2**63 - 1 correctly.
6040 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6041 since some C++ compilers masquerading as C compilers
6042 incorrectly reject 9223372036854775807. */
6043 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6044 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6045 && LARGE_OFF_T % 2147483647 == 1)
6046 ? 1 : -1];
6048 main ()
6052 return 0;
6054 _ACEOF
6055 if ac_fn_c_try_compile "$LINENO"; then :
6056 ac_cv_sys_large_files=1; break
6058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6059 ac_cv_sys_large_files=unknown
6060 break
6061 done
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6064 $as_echo "$ac_cv_sys_large_files" >&6; }
6065 case $ac_cv_sys_large_files in #(
6066 no | unknown) ;;
6068 cat >>confdefs.h <<_ACEOF
6069 #define _LARGE_FILES $ac_cv_sys_large_files
6070 _ACEOF
6072 esac
6073 rm -rf conftest*
6080 case `pwd` in
6081 *\ * | *\ *)
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6083 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6084 esac
6088 macro_version='2.2.7a'
6089 macro_revision='1.3134'
6103 ltmain="$ac_aux_dir/ltmain.sh"
6105 # Backslashify metacharacters that are still active within
6106 # double-quoted strings.
6107 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6109 # Same as above, but do not quote variable references.
6110 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6112 # Sed substitution to delay expansion of an escaped shell variable in a
6113 # double_quote_subst'ed string.
6114 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6116 # Sed substitution to delay expansion of an escaped single quote.
6117 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6119 # Sed substitution to avoid accidental globbing in evaled expressions
6120 no_glob_subst='s/\*/\\\*/g'
6122 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6123 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6124 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6127 $as_echo_n "checking how to print strings... " >&6; }
6128 # Test print first, because it will be a builtin if present.
6129 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6130 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6131 ECHO='print -r --'
6132 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6133 ECHO='printf %s\n'
6134 else
6135 # Use this function as a fallback that always works.
6136 func_fallback_echo ()
6138 eval 'cat <<_LTECHO_EOF
6140 _LTECHO_EOF'
6142 ECHO='func_fallback_echo'
6145 # func_echo_all arg...
6146 # Invoke $ECHO with all args, space-separated.
6147 func_echo_all ()
6149 $ECHO ""
6152 case "$ECHO" in
6153 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6154 $as_echo "printf" >&6; } ;;
6155 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6156 $as_echo "print -r" >&6; } ;;
6157 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6158 $as_echo "cat" >&6; } ;;
6159 esac
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6175 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6176 if test "${ac_cv_path_SED+set}" = set; then :
6177 $as_echo_n "(cached) " >&6
6178 else
6179 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6180 for ac_i in 1 2 3 4 5 6 7; do
6181 ac_script="$ac_script$as_nl$ac_script"
6182 done
6183 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6184 { ac_script=; unset ac_script;}
6185 if test -z "$SED"; then
6186 ac_path_SED_found=false
6187 # Loop through the user's path and test for each of PROGNAME-LIST
6188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 for as_dir in $PATH
6191 IFS=$as_save_IFS
6192 test -z "$as_dir" && as_dir=.
6193 for ac_prog in sed gsed; do
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6196 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6197 # Check for GNU ac_path_SED and select it if it is found.
6198 # Check for GNU $ac_path_SED
6199 case `"$ac_path_SED" --version 2>&1` in
6200 *GNU*)
6201 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6203 ac_count=0
6204 $as_echo_n 0123456789 >"conftest.in"
6205 while :
6207 cat "conftest.in" "conftest.in" >"conftest.tmp"
6208 mv "conftest.tmp" "conftest.in"
6209 cp "conftest.in" "conftest.nl"
6210 $as_echo '' >> "conftest.nl"
6211 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6212 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6213 as_fn_arith $ac_count + 1 && ac_count=$as_val
6214 if test $ac_count -gt ${ac_path_SED_max-0}; then
6215 # Best one so far, save it but keep looking for a better one
6216 ac_cv_path_SED="$ac_path_SED"
6217 ac_path_SED_max=$ac_count
6219 # 10*(2^10) chars as input seems more than enough
6220 test $ac_count -gt 10 && break
6221 done
6222 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6223 esac
6225 $ac_path_SED_found && break 3
6226 done
6227 done
6228 done
6229 IFS=$as_save_IFS
6230 if test -z "$ac_cv_path_SED"; then
6231 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6233 else
6234 ac_cv_path_SED=$SED
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6239 $as_echo "$ac_cv_path_SED" >&6; }
6240 SED="$ac_cv_path_SED"
6241 rm -f conftest.sed
6243 test -z "$SED" && SED=sed
6244 Xsed="$SED -e 1s/^X//"
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6257 $as_echo_n "checking for fgrep... " >&6; }
6258 if test "${ac_cv_path_FGREP+set}" = set; then :
6259 $as_echo_n "(cached) " >&6
6260 else
6261 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6262 then ac_cv_path_FGREP="$GREP -F"
6263 else
6264 if test -z "$FGREP"; then
6265 ac_path_FGREP_found=false
6266 # Loop through the user's path and test for each of PROGNAME-LIST
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6270 IFS=$as_save_IFS
6271 test -z "$as_dir" && as_dir=.
6272 for ac_prog in fgrep; do
6273 for ac_exec_ext in '' $ac_executable_extensions; do
6274 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6275 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6276 # Check for GNU ac_path_FGREP and select it if it is found.
6277 # Check for GNU $ac_path_FGREP
6278 case `"$ac_path_FGREP" --version 2>&1` in
6279 *GNU*)
6280 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6282 ac_count=0
6283 $as_echo_n 0123456789 >"conftest.in"
6284 while :
6286 cat "conftest.in" "conftest.in" >"conftest.tmp"
6287 mv "conftest.tmp" "conftest.in"
6288 cp "conftest.in" "conftest.nl"
6289 $as_echo 'FGREP' >> "conftest.nl"
6290 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6291 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6292 as_fn_arith $ac_count + 1 && ac_count=$as_val
6293 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6294 # Best one so far, save it but keep looking for a better one
6295 ac_cv_path_FGREP="$ac_path_FGREP"
6296 ac_path_FGREP_max=$ac_count
6298 # 10*(2^10) chars as input seems more than enough
6299 test $ac_count -gt 10 && break
6300 done
6301 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6302 esac
6304 $ac_path_FGREP_found && break 3
6305 done
6306 done
6307 done
6308 IFS=$as_save_IFS
6309 if test -z "$ac_cv_path_FGREP"; then
6310 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6312 else
6313 ac_cv_path_FGREP=$FGREP
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6319 $as_echo "$ac_cv_path_FGREP" >&6; }
6320 FGREP="$ac_cv_path_FGREP"
6323 test -z "$GREP" && GREP=grep
6343 # Check whether --with-gnu-ld was given.
6344 if test "${with_gnu_ld+set}" = set; then :
6345 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6346 else
6347 with_gnu_ld=no
6350 ac_prog=ld
6351 if test "$GCC" = yes; then
6352 # Check if gcc -print-prog-name=ld gives a path.
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6354 $as_echo_n "checking for ld used by $CC... " >&6; }
6355 case $host in
6356 *-*-mingw*)
6357 # gcc leaves a trailing carriage return which upsets mingw
6358 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6360 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6361 esac
6362 case $ac_prog in
6363 # Accept absolute paths.
6364 [\\/]* | ?:[\\/]*)
6365 re_direlt='/[^/][^/]*/\.\./'
6366 # Canonicalize the pathname of ld
6367 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6368 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6369 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6370 done
6371 test -z "$LD" && LD="$ac_prog"
6374 # If it fails, then pretend we aren't using GCC.
6375 ac_prog=ld
6378 # If it is relative, then search for the first ld in PATH.
6379 with_gnu_ld=unknown
6381 esac
6382 elif test "$with_gnu_ld" = yes; then
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6384 $as_echo_n "checking for GNU ld... " >&6; }
6385 else
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6387 $as_echo_n "checking for non-GNU ld... " >&6; }
6389 if test "${lt_cv_path_LD+set}" = set; then :
6390 $as_echo_n "(cached) " >&6
6391 else
6392 if test -z "$LD"; then
6393 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6394 for ac_dir in $PATH; do
6395 IFS="$lt_save_ifs"
6396 test -z "$ac_dir" && ac_dir=.
6397 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6398 lt_cv_path_LD="$ac_dir/$ac_prog"
6399 # Check to see if the program is GNU ld. I'd rather use --version,
6400 # but apparently some variants of GNU ld only accept -v.
6401 # Break only if it was the GNU/non-GNU ld that we prefer.
6402 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6403 *GNU* | *'with BFD'*)
6404 test "$with_gnu_ld" != no && break
6407 test "$with_gnu_ld" != yes && break
6409 esac
6411 done
6412 IFS="$lt_save_ifs"
6413 else
6414 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6418 LD="$lt_cv_path_LD"
6419 if test -n "$LD"; then
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6421 $as_echo "$LD" >&6; }
6422 else
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424 $as_echo "no" >&6; }
6426 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6428 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6429 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6430 $as_echo_n "(cached) " >&6
6431 else
6432 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6433 case `$LD -v 2>&1 </dev/null` in
6434 *GNU* | *'with BFD'*)
6435 lt_cv_prog_gnu_ld=yes
6438 lt_cv_prog_gnu_ld=no
6440 esac
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6443 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6444 with_gnu_ld=$lt_cv_prog_gnu_ld
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6455 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6456 if test "${lt_cv_path_NM+set}" = set; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6459 if test -n "$NM"; then
6460 # Let the user override the test.
6461 lt_cv_path_NM="$NM"
6462 else
6463 lt_nm_to_check="${ac_tool_prefix}nm"
6464 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6465 lt_nm_to_check="$lt_nm_to_check nm"
6467 for lt_tmp_nm in $lt_nm_to_check; do
6468 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6469 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6470 IFS="$lt_save_ifs"
6471 test -z "$ac_dir" && ac_dir=.
6472 tmp_nm="$ac_dir/$lt_tmp_nm"
6473 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6474 # Check to see if the nm accepts a BSD-compat flag.
6475 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6476 # nm: unknown option "B" ignored
6477 # Tru64's nm complains that /dev/null is an invalid object file
6478 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6479 */dev/null* | *'Invalid file or object type'*)
6480 lt_cv_path_NM="$tmp_nm -B"
6481 break
6484 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6485 */dev/null*)
6486 lt_cv_path_NM="$tmp_nm -p"
6487 break
6490 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6491 continue # so that we can try to find one that supports BSD flags
6493 esac
6495 esac
6497 done
6498 IFS="$lt_save_ifs"
6499 done
6500 : ${lt_cv_path_NM=no}
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6504 $as_echo "$lt_cv_path_NM" >&6; }
6505 if test "$lt_cv_path_NM" != "no"; then
6506 NM="$lt_cv_path_NM"
6507 else
6508 # Didn't find any BSD compatible name lister, look for dumpbin.
6509 if test -n "$DUMPBIN"; then :
6510 # Let the user override the test.
6511 else
6512 if test -n "$ac_tool_prefix"; then
6513 for ac_prog in dumpbin "link -dump"
6515 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6516 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6518 $as_echo_n "checking for $ac_word... " >&6; }
6519 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6520 $as_echo_n "(cached) " >&6
6521 else
6522 if test -n "$DUMPBIN"; then
6523 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6524 else
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 for as_dir in $PATH
6528 IFS=$as_save_IFS
6529 test -z "$as_dir" && as_dir=.
6530 for ac_exec_ext in '' $ac_executable_extensions; do
6531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6532 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6534 break 2
6536 done
6537 done
6538 IFS=$as_save_IFS
6542 DUMPBIN=$ac_cv_prog_DUMPBIN
6543 if test -n "$DUMPBIN"; then
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6545 $as_echo "$DUMPBIN" >&6; }
6546 else
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548 $as_echo "no" >&6; }
6552 test -n "$DUMPBIN" && break
6553 done
6555 if test -z "$DUMPBIN"; then
6556 ac_ct_DUMPBIN=$DUMPBIN
6557 for ac_prog in dumpbin "link -dump"
6559 # Extract the first word of "$ac_prog", so it can be a program name with args.
6560 set dummy $ac_prog; ac_word=$2
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6562 $as_echo_n "checking for $ac_word... " >&6; }
6563 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6564 $as_echo_n "(cached) " >&6
6565 else
6566 if test -n "$ac_ct_DUMPBIN"; then
6567 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6568 else
6569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570 for as_dir in $PATH
6572 IFS=$as_save_IFS
6573 test -z "$as_dir" && as_dir=.
6574 for ac_exec_ext in '' $ac_executable_extensions; do
6575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6576 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6578 break 2
6580 done
6581 done
6582 IFS=$as_save_IFS
6586 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6587 if test -n "$ac_ct_DUMPBIN"; then
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6589 $as_echo "$ac_ct_DUMPBIN" >&6; }
6590 else
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6592 $as_echo "no" >&6; }
6596 test -n "$ac_ct_DUMPBIN" && break
6597 done
6599 if test "x$ac_ct_DUMPBIN" = x; then
6600 DUMPBIN=":"
6601 else
6602 case $cross_compiling:$ac_tool_warned in
6603 yes:)
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6606 ac_tool_warned=yes ;;
6607 esac
6608 DUMPBIN=$ac_ct_DUMPBIN
6612 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6613 *COFF*)
6614 DUMPBIN="$DUMPBIN -symbols"
6617 DUMPBIN=:
6619 esac
6622 if test "$DUMPBIN" != ":"; then
6623 NM="$DUMPBIN"
6626 test -z "$NM" && NM=nm
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6634 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6635 if test "${lt_cv_nm_interface+set}" = set; then :
6636 $as_echo_n "(cached) " >&6
6637 else
6638 lt_cv_nm_interface="BSD nm"
6639 echo "int some_variable = 0;" > conftest.$ac_ext
6640 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6641 (eval "$ac_compile" 2>conftest.err)
6642 cat conftest.err >&5
6643 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6644 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6645 cat conftest.err >&5
6646 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6647 cat conftest.out >&5
6648 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6649 lt_cv_nm_interface="MS dumpbin"
6651 rm -f conftest*
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6654 $as_echo "$lt_cv_nm_interface" >&6; }
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6657 $as_echo_n "checking whether ln -s works... " >&6; }
6658 LN_S=$as_ln_s
6659 if test "$LN_S" = "ln -s"; then
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6661 $as_echo "yes" >&6; }
6662 else
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6664 $as_echo "no, using $LN_S" >&6; }
6667 # find the maximum length of command line arguments
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6669 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6670 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6671 $as_echo_n "(cached) " >&6
6672 else
6674 teststring="ABCD"
6676 case $build_os in
6677 msdosdjgpp*)
6678 # On DJGPP, this test can blow up pretty badly due to problems in libc
6679 # (any single argument exceeding 2000 bytes causes a buffer overrun
6680 # during glob expansion). Even if it were fixed, the result of this
6681 # check would be larger than it should be.
6682 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6685 gnu*)
6686 # Under GNU Hurd, this test is not required because there is
6687 # no limit to the length of command line arguments.
6688 # Libtool will interpret -1 as no limit whatsoever
6689 lt_cv_sys_max_cmd_len=-1;
6692 cygwin* | mingw* | cegcc*)
6693 # On Win9x/ME, this test blows up -- it succeeds, but takes
6694 # about 5 minutes as the teststring grows exponentially.
6695 # Worse, since 9x/ME are not pre-emptively multitasking,
6696 # you end up with a "frozen" computer, even though with patience
6697 # the test eventually succeeds (with a max line length of 256k).
6698 # Instead, let's just punt: use the minimum linelength reported by
6699 # all of the supported platforms: 8192 (on NT/2K/XP).
6700 lt_cv_sys_max_cmd_len=8192;
6703 mint*)
6704 # On MiNT this can take a long time and run out of memory.
6705 lt_cv_sys_max_cmd_len=8192;
6708 amigaos*)
6709 # On AmigaOS with pdksh, this test takes hours, literally.
6710 # So we just punt and use a minimum line length of 8192.
6711 lt_cv_sys_max_cmd_len=8192;
6714 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6715 # This has been around since 386BSD, at least. Likely further.
6716 if test -x /sbin/sysctl; then
6717 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6718 elif test -x /usr/sbin/sysctl; then
6719 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6720 else
6721 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6723 # And add a safety zone
6724 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6725 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6728 interix*)
6729 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6730 lt_cv_sys_max_cmd_len=196608
6733 osf*)
6734 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6735 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6736 # nice to cause kernel panics so lets avoid the loop below.
6737 # First set a reasonable default.
6738 lt_cv_sys_max_cmd_len=16384
6740 if test -x /sbin/sysconfig; then
6741 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6742 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6743 esac
6746 sco3.2v5*)
6747 lt_cv_sys_max_cmd_len=102400
6749 sysv5* | sco5v6* | sysv4.2uw2*)
6750 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6751 if test -n "$kargmax"; then
6752 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6753 else
6754 lt_cv_sys_max_cmd_len=32768
6758 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6759 if test -n "$lt_cv_sys_max_cmd_len"; then
6760 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6761 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6762 else
6763 # Make teststring a little bigger before we do anything with it.
6764 # a 1K string should be a reasonable start.
6765 for i in 1 2 3 4 5 6 7 8 ; do
6766 teststring=$teststring$teststring
6767 done
6768 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6769 # If test is not a shell built-in, we'll probably end up computing a
6770 # maximum length that is only half of the actual maximum length, but
6771 # we can't tell.
6772 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6773 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6774 test $i != 17 # 1/2 MB should be enough
6776 i=`expr $i + 1`
6777 teststring=$teststring$teststring
6778 done
6779 # Only check the string length outside the loop.
6780 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6781 teststring=
6782 # Add a significant safety factor because C++ compilers can tack on
6783 # massive amounts of additional arguments before passing them to the
6784 # linker. It appears as though 1/2 is a usable value.
6785 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6788 esac
6792 if test -n $lt_cv_sys_max_cmd_len ; then
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6794 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6795 else
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6797 $as_echo "none" >&6; }
6799 max_cmd_len=$lt_cv_sys_max_cmd_len
6806 : ${CP="cp -f"}
6807 : ${MV="mv -f"}
6808 : ${RM="rm -f"}
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6811 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6812 # Try some XSI features
6813 xsi_shell=no
6814 ( _lt_dummy="a/b/c"
6815 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6816 = c,a/b,, \
6817 && eval 'test $(( 1 + 1 )) -eq 2 \
6818 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6819 && xsi_shell=yes
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6821 $as_echo "$xsi_shell" >&6; }
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6825 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6826 lt_shell_append=no
6827 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6828 >/dev/null 2>&1 \
6829 && lt_shell_append=yes
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6831 $as_echo "$lt_shell_append" >&6; }
6834 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6835 lt_unset=unset
6836 else
6837 lt_unset=false
6844 # test EBCDIC or ASCII
6845 case `echo X|tr X '\101'` in
6846 A) # ASCII based system
6847 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6848 lt_SP2NL='tr \040 \012'
6849 lt_NL2SP='tr \015\012 \040\040'
6851 *) # EBCDIC based system
6852 lt_SP2NL='tr \100 \n'
6853 lt_NL2SP='tr \r\n \100\100'
6855 esac
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6866 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6867 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6868 $as_echo_n "(cached) " >&6
6869 else
6870 lt_cv_ld_reload_flag='-r'
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6873 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6874 reload_flag=$lt_cv_ld_reload_flag
6875 case $reload_flag in
6876 "" | " "*) ;;
6877 *) reload_flag=" $reload_flag" ;;
6878 esac
6879 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6880 case $host_os in
6881 darwin*)
6882 if test "$GCC" = yes; then
6883 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6884 else
6885 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6888 esac
6898 if test -n "$ac_tool_prefix"; then
6899 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6900 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902 $as_echo_n "checking for $ac_word... " >&6; }
6903 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6904 $as_echo_n "(cached) " >&6
6905 else
6906 if test -n "$OBJDUMP"; then
6907 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6908 else
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 for as_dir in $PATH
6912 IFS=$as_save_IFS
6913 test -z "$as_dir" && as_dir=.
6914 for ac_exec_ext in '' $ac_executable_extensions; do
6915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6916 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6918 break 2
6920 done
6921 done
6922 IFS=$as_save_IFS
6926 OBJDUMP=$ac_cv_prog_OBJDUMP
6927 if test -n "$OBJDUMP"; then
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6929 $as_echo "$OBJDUMP" >&6; }
6930 else
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932 $as_echo "no" >&6; }
6937 if test -z "$ac_cv_prog_OBJDUMP"; then
6938 ac_ct_OBJDUMP=$OBJDUMP
6939 # Extract the first word of "objdump", so it can be a program name with args.
6940 set dummy objdump; ac_word=$2
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942 $as_echo_n "checking for $ac_word... " >&6; }
6943 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6944 $as_echo_n "(cached) " >&6
6945 else
6946 if test -n "$ac_ct_OBJDUMP"; then
6947 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6948 else
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 for as_dir in $PATH
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6956 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 break 2
6960 done
6961 done
6962 IFS=$as_save_IFS
6966 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6967 if test -n "$ac_ct_OBJDUMP"; then
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6969 $as_echo "$ac_ct_OBJDUMP" >&6; }
6970 else
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972 $as_echo "no" >&6; }
6975 if test "x$ac_ct_OBJDUMP" = x; then
6976 OBJDUMP="false"
6977 else
6978 case $cross_compiling:$ac_tool_warned in
6979 yes:)
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6982 ac_tool_warned=yes ;;
6983 esac
6984 OBJDUMP=$ac_ct_OBJDUMP
6986 else
6987 OBJDUMP="$ac_cv_prog_OBJDUMP"
6990 test -z "$OBJDUMP" && OBJDUMP=objdump
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7001 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7002 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7003 $as_echo_n "(cached) " >&6
7004 else
7005 lt_cv_file_magic_cmd='$MAGIC_CMD'
7006 lt_cv_file_magic_test_file=
7007 lt_cv_deplibs_check_method='unknown'
7008 # Need to set the preceding variable on all platforms that support
7009 # interlibrary dependencies.
7010 # 'none' -- dependencies not supported.
7011 # `unknown' -- same as none, but documents that we really don't know.
7012 # 'pass_all' -- all dependencies passed with no checks.
7013 # 'test_compile' -- check by making test program.
7014 # 'file_magic [[regex]]' -- check by looking for files in library path
7015 # which responds to the $file_magic_cmd with a given extended regex.
7016 # If you have `file' or equivalent on your system and you're not sure
7017 # whether `pass_all' will *always* work, you probably want this one.
7019 case $host_os in
7020 aix[4-9]*)
7021 lt_cv_deplibs_check_method=pass_all
7024 beos*)
7025 lt_cv_deplibs_check_method=pass_all
7028 bsdi[45]*)
7029 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7030 lt_cv_file_magic_cmd='/usr/bin/file -L'
7031 lt_cv_file_magic_test_file=/shlib/libc.so
7034 cygwin*)
7035 # func_win32_libid is a shell function defined in ltmain.sh
7036 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7037 lt_cv_file_magic_cmd='func_win32_libid'
7040 mingw* | pw32*)
7041 # Base MSYS/MinGW do not provide the 'file' command needed by
7042 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7043 # unless we find 'file', for example because we are cross-compiling.
7044 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7045 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7046 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7047 lt_cv_file_magic_cmd='func_win32_libid'
7048 else
7049 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7050 lt_cv_file_magic_cmd='$OBJDUMP -f'
7054 cegcc*)
7055 # use the weaker test based on 'objdump'. See mingw*.
7056 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7057 lt_cv_file_magic_cmd='$OBJDUMP -f'
7060 darwin* | rhapsody*)
7061 lt_cv_deplibs_check_method=pass_all
7064 freebsd* | dragonfly*)
7065 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7066 case $host_cpu in
7067 i*86 )
7068 # Not sure whether the presence of OpenBSD here was a mistake.
7069 # Let's accept both of them until this is cleared up.
7070 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7071 lt_cv_file_magic_cmd=/usr/bin/file
7072 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7074 esac
7075 else
7076 lt_cv_deplibs_check_method=pass_all
7080 gnu*)
7081 lt_cv_deplibs_check_method=pass_all
7084 haiku*)
7085 lt_cv_deplibs_check_method=pass_all
7088 hpux10.20* | hpux11*)
7089 lt_cv_file_magic_cmd=/usr/bin/file
7090 case $host_cpu in
7091 ia64*)
7092 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7093 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7095 hppa*64*)
7096 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]'
7097 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7100 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7101 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7103 esac
7106 interix[3-9]*)
7107 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7108 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7111 irix5* | irix6* | nonstopux*)
7112 case $LD in
7113 *-32|*"-32 ") libmagic=32-bit;;
7114 *-n32|*"-n32 ") libmagic=N32;;
7115 *-64|*"-64 ") libmagic=64-bit;;
7116 *) libmagic=never-match;;
7117 esac
7118 lt_cv_deplibs_check_method=pass_all
7121 # This must be Linux ELF.
7122 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7123 lt_cv_deplibs_check_method=pass_all
7126 netbsd*)
7127 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7128 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7129 else
7130 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7134 newos6*)
7135 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7136 lt_cv_file_magic_cmd=/usr/bin/file
7137 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7140 *nto* | *qnx*)
7141 lt_cv_deplibs_check_method=pass_all
7144 openbsd*)
7145 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7146 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7147 else
7148 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7152 osf3* | osf4* | osf5*)
7153 lt_cv_deplibs_check_method=pass_all
7156 rdos*)
7157 lt_cv_deplibs_check_method=pass_all
7160 solaris*)
7161 lt_cv_deplibs_check_method=pass_all
7164 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7165 lt_cv_deplibs_check_method=pass_all
7168 sysv4 | sysv4.3*)
7169 case $host_vendor in
7170 motorola)
7171 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]'
7172 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7174 ncr)
7175 lt_cv_deplibs_check_method=pass_all
7177 sequent)
7178 lt_cv_file_magic_cmd='/bin/file'
7179 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7181 sni)
7182 lt_cv_file_magic_cmd='/bin/file'
7183 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7184 lt_cv_file_magic_test_file=/lib/libc.so
7186 siemens)
7187 lt_cv_deplibs_check_method=pass_all
7190 lt_cv_deplibs_check_method=pass_all
7192 esac
7195 tpf*)
7196 lt_cv_deplibs_check_method=pass_all
7198 esac
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7202 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7203 file_magic_cmd=$lt_cv_file_magic_cmd
7204 deplibs_check_method=$lt_cv_deplibs_check_method
7205 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7218 if test -n "$ac_tool_prefix"; then
7219 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7220 set dummy ${ac_tool_prefix}ar; ac_word=$2
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7222 $as_echo_n "checking for $ac_word... " >&6; }
7223 if test "${ac_cv_prog_AR+set}" = set; then :
7224 $as_echo_n "(cached) " >&6
7225 else
7226 if test -n "$AR"; then
7227 ac_cv_prog_AR="$AR" # Let the user override the test.
7228 else
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 for as_dir in $PATH
7232 IFS=$as_save_IFS
7233 test -z "$as_dir" && as_dir=.
7234 for ac_exec_ext in '' $ac_executable_extensions; do
7235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7236 ac_cv_prog_AR="${ac_tool_prefix}ar"
7237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7238 break 2
7240 done
7241 done
7242 IFS=$as_save_IFS
7246 AR=$ac_cv_prog_AR
7247 if test -n "$AR"; then
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7249 $as_echo "$AR" >&6; }
7250 else
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252 $as_echo "no" >&6; }
7257 if test -z "$ac_cv_prog_AR"; then
7258 ac_ct_AR=$AR
7259 # Extract the first word of "ar", so it can be a program name with args.
7260 set dummy ar; ac_word=$2
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7262 $as_echo_n "checking for $ac_word... " >&6; }
7263 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7264 $as_echo_n "(cached) " >&6
7265 else
7266 if test -n "$ac_ct_AR"; then
7267 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7268 else
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 for as_dir in $PATH
7272 IFS=$as_save_IFS
7273 test -z "$as_dir" && as_dir=.
7274 for ac_exec_ext in '' $ac_executable_extensions; do
7275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7276 ac_cv_prog_ac_ct_AR="ar"
7277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7278 break 2
7280 done
7281 done
7282 IFS=$as_save_IFS
7286 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7287 if test -n "$ac_ct_AR"; then
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7289 $as_echo "$ac_ct_AR" >&6; }
7290 else
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7292 $as_echo "no" >&6; }
7295 if test "x$ac_ct_AR" = x; then
7296 AR="false"
7297 else
7298 case $cross_compiling:$ac_tool_warned in
7299 yes:)
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7302 ac_tool_warned=yes ;;
7303 esac
7304 AR=$ac_ct_AR
7306 else
7307 AR="$ac_cv_prog_AR"
7310 test -z "$AR" && AR=ar
7311 test -z "$AR_FLAGS" && AR_FLAGS=cru
7323 if test -n "$ac_tool_prefix"; then
7324 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7325 set dummy ${ac_tool_prefix}strip; ac_word=$2
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327 $as_echo_n "checking for $ac_word... " >&6; }
7328 if test "${ac_cv_prog_STRIP+set}" = set; then :
7329 $as_echo_n "(cached) " >&6
7330 else
7331 if test -n "$STRIP"; then
7332 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7333 else
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 for as_dir in $PATH
7337 IFS=$as_save_IFS
7338 test -z "$as_dir" && as_dir=.
7339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7341 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7343 break 2
7345 done
7346 done
7347 IFS=$as_save_IFS
7351 STRIP=$ac_cv_prog_STRIP
7352 if test -n "$STRIP"; then
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7354 $as_echo "$STRIP" >&6; }
7355 else
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7362 if test -z "$ac_cv_prog_STRIP"; then
7363 ac_ct_STRIP=$STRIP
7364 # Extract the first word of "strip", so it can be a program name with args.
7365 set dummy strip; ac_word=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7369 $as_echo_n "(cached) " >&6
7370 else
7371 if test -n "$ac_ct_STRIP"; then
7372 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7373 else
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 for as_dir in $PATH
7377 IFS=$as_save_IFS
7378 test -z "$as_dir" && as_dir=.
7379 for ac_exec_ext in '' $ac_executable_extensions; do
7380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7381 ac_cv_prog_ac_ct_STRIP="strip"
7382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383 break 2
7385 done
7386 done
7387 IFS=$as_save_IFS
7391 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7392 if test -n "$ac_ct_STRIP"; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7394 $as_echo "$ac_ct_STRIP" >&6; }
7395 else
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7400 if test "x$ac_ct_STRIP" = x; then
7401 STRIP=":"
7402 else
7403 case $cross_compiling:$ac_tool_warned in
7404 yes:)
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7407 ac_tool_warned=yes ;;
7408 esac
7409 STRIP=$ac_ct_STRIP
7411 else
7412 STRIP="$ac_cv_prog_STRIP"
7415 test -z "$STRIP" && STRIP=:
7422 if test -n "$ac_tool_prefix"; then
7423 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7424 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7426 $as_echo_n "checking for $ac_word... " >&6; }
7427 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7428 $as_echo_n "(cached) " >&6
7429 else
7430 if test -n "$RANLIB"; then
7431 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7432 else
7433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434 for as_dir in $PATH
7436 IFS=$as_save_IFS
7437 test -z "$as_dir" && as_dir=.
7438 for ac_exec_ext in '' $ac_executable_extensions; do
7439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7440 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7442 break 2
7444 done
7445 done
7446 IFS=$as_save_IFS
7450 RANLIB=$ac_cv_prog_RANLIB
7451 if test -n "$RANLIB"; then
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7453 $as_echo "$RANLIB" >&6; }
7454 else
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7456 $as_echo "no" >&6; }
7461 if test -z "$ac_cv_prog_RANLIB"; then
7462 ac_ct_RANLIB=$RANLIB
7463 # Extract the first word of "ranlib", so it can be a program name with args.
7464 set dummy ranlib; ac_word=$2
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7466 $as_echo_n "checking for $ac_word... " >&6; }
7467 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7468 $as_echo_n "(cached) " >&6
7469 else
7470 if test -n "$ac_ct_RANLIB"; then
7471 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7472 else
7473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474 for as_dir in $PATH
7476 IFS=$as_save_IFS
7477 test -z "$as_dir" && as_dir=.
7478 for ac_exec_ext in '' $ac_executable_extensions; do
7479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7480 ac_cv_prog_ac_ct_RANLIB="ranlib"
7481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7482 break 2
7484 done
7485 done
7486 IFS=$as_save_IFS
7490 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7491 if test -n "$ac_ct_RANLIB"; then
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7493 $as_echo "$ac_ct_RANLIB" >&6; }
7494 else
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496 $as_echo "no" >&6; }
7499 if test "x$ac_ct_RANLIB" = x; then
7500 RANLIB=":"
7501 else
7502 case $cross_compiling:$ac_tool_warned in
7503 yes:)
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7506 ac_tool_warned=yes ;;
7507 esac
7508 RANLIB=$ac_ct_RANLIB
7510 else
7511 RANLIB="$ac_cv_prog_RANLIB"
7514 test -z "$RANLIB" && RANLIB=:
7521 # Determine commands to create old-style static archives.
7522 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7523 old_postinstall_cmds='chmod 644 $oldlib'
7524 old_postuninstall_cmds=
7526 if test -n "$RANLIB"; then
7527 case $host_os in
7528 openbsd*)
7529 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7532 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7534 esac
7535 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7538 case $host_os in
7539 darwin*)
7540 lock_old_archive_extraction=yes ;;
7542 lock_old_archive_extraction=no ;;
7543 esac
7583 # If no C compiler was specified, use CC.
7584 LTCC=${LTCC-"$CC"}
7586 # If no C compiler flags were specified, use CFLAGS.
7587 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7589 # Allow CC to be a program name with arguments.
7590 compiler=$CC
7593 # Check for command to grab the raw symbol name followed by C symbol from nm.
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7595 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7596 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7597 $as_echo_n "(cached) " >&6
7598 else
7600 # These are sane defaults that work on at least a few old systems.
7601 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7603 # Character class describing NM global symbol codes.
7604 symcode='[BCDEGRST]'
7606 # Regexp to match symbols that can be accessed directly from C.
7607 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7609 # Define system-specific variables.
7610 case $host_os in
7611 aix*)
7612 symcode='[BCDT]'
7614 cygwin* | mingw* | pw32* | cegcc*)
7615 symcode='[ABCDGISTW]'
7617 hpux*)
7618 if test "$host_cpu" = ia64; then
7619 symcode='[ABCDEGRST]'
7622 irix* | nonstopux*)
7623 symcode='[BCDEGRST]'
7625 osf*)
7626 symcode='[BCDEGQRST]'
7628 solaris*)
7629 symcode='[BDRT]'
7631 sco3.2v5*)
7632 symcode='[DT]'
7634 sysv4.2uw2*)
7635 symcode='[DT]'
7637 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7638 symcode='[ABDT]'
7640 sysv4)
7641 symcode='[DFNSTU]'
7643 esac
7645 # If we're using GNU nm, then use its standard symbol codes.
7646 case `$NM -V 2>&1` in
7647 *GNU* | *'with BFD'*)
7648 symcode='[ABCDGIRSTW]' ;;
7649 esac
7651 # Transform an extracted symbol line into a proper C declaration.
7652 # Some systems (esp. on ia64) link data and code symbols differently,
7653 # so use this general approach.
7654 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7656 # Transform an extracted symbol line into symbol name and symbol address
7657 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7658 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'"
7660 # Handle CRLF in mingw tool chain
7661 opt_cr=
7662 case $build_os in
7663 mingw*)
7664 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7666 esac
7668 # Try without a prefix underscore, then with it.
7669 for ac_symprfx in "" "_"; do
7671 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7672 symxfrm="\\1 $ac_symprfx\\2 \\2"
7674 # Write the raw and C identifiers.
7675 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7676 # Fake it for dumpbin and say T for any non-static function
7677 # and D for any global variable.
7678 # Also find C++ and __fastcall symbols from MSVC++,
7679 # which start with @ or ?.
7680 lt_cv_sys_global_symbol_pipe="$AWK '"\
7681 " {last_section=section; section=\$ 3};"\
7682 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7683 " \$ 0!~/External *\|/{next};"\
7684 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7685 " {if(hide[section]) next};"\
7686 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7687 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7688 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7689 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7690 " ' prfx=^$ac_symprfx"
7691 else
7692 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7695 # Check to see that the pipe works correctly.
7696 pipe_works=no
7698 rm -f conftest*
7699 cat > conftest.$ac_ext <<_LT_EOF
7700 #ifdef __cplusplus
7701 extern "C" {
7702 #endif
7703 char nm_test_var;
7704 void nm_test_func(void);
7705 void nm_test_func(void){}
7706 #ifdef __cplusplus
7708 #endif
7709 int main(){nm_test_var='a';nm_test_func();return(0);}
7710 _LT_EOF
7712 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7713 (eval $ac_compile) 2>&5
7714 ac_status=$?
7715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7716 test $ac_status = 0; }; then
7717 # Now try to grab the symbols.
7718 nlist=conftest.nm
7719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7720 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7721 ac_status=$?
7722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7723 test $ac_status = 0; } && test -s "$nlist"; then
7724 # Try sorting and uniquifying the output.
7725 if sort "$nlist" | uniq > "$nlist"T; then
7726 mv -f "$nlist"T "$nlist"
7727 else
7728 rm -f "$nlist"T
7731 # Make sure that we snagged all the symbols we need.
7732 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7733 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7734 cat <<_LT_EOF > conftest.$ac_ext
7735 #ifdef __cplusplus
7736 extern "C" {
7737 #endif
7739 _LT_EOF
7740 # Now generate the symbol file.
7741 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7743 cat <<_LT_EOF >> conftest.$ac_ext
7745 /* The mapping between symbol names and symbols. */
7746 const struct {
7747 const char *name;
7748 void *address;
7750 lt__PROGRAM__LTX_preloaded_symbols[] =
7752 { "@PROGRAM@", (void *) 0 },
7753 _LT_EOF
7754 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7755 cat <<\_LT_EOF >> conftest.$ac_ext
7756 {0, (void *) 0}
7759 /* This works around a problem in FreeBSD linker */
7760 #ifdef FREEBSD_WORKAROUND
7761 static const void *lt_preloaded_setup() {
7762 return lt__PROGRAM__LTX_preloaded_symbols;
7764 #endif
7766 #ifdef __cplusplus
7768 #endif
7769 _LT_EOF
7770 # Now try linking the two files.
7771 mv conftest.$ac_objext conftstm.$ac_objext
7772 lt_save_LIBS="$LIBS"
7773 lt_save_CFLAGS="$CFLAGS"
7774 LIBS="conftstm.$ac_objext"
7775 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7777 (eval $ac_link) 2>&5
7778 ac_status=$?
7779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7780 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7781 pipe_works=yes
7783 LIBS="$lt_save_LIBS"
7784 CFLAGS="$lt_save_CFLAGS"
7785 else
7786 echo "cannot find nm_test_func in $nlist" >&5
7788 else
7789 echo "cannot find nm_test_var in $nlist" >&5
7791 else
7792 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7794 else
7795 echo "$progname: failed program was:" >&5
7796 cat conftest.$ac_ext >&5
7798 rm -rf conftest* conftst*
7800 # Do not use the global_symbol_pipe unless it works.
7801 if test "$pipe_works" = yes; then
7802 break
7803 else
7804 lt_cv_sys_global_symbol_pipe=
7806 done
7810 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7811 lt_cv_sys_global_symbol_to_cdecl=
7813 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7815 $as_echo "failed" >&6; }
7816 else
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7818 $as_echo "ok" >&6; }
7842 # Check whether --enable-libtool-lock was given.
7843 if test "${enable_libtool_lock+set}" = set; then :
7844 enableval=$enable_libtool_lock;
7847 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7849 # Some flags need to be propagated to the compiler or linker for good
7850 # libtool support.
7851 case $host in
7852 ia64-*-hpux*)
7853 # Find out which ABI we are using.
7854 echo 'int i;' > conftest.$ac_ext
7855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7856 (eval $ac_compile) 2>&5
7857 ac_status=$?
7858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7859 test $ac_status = 0; }; then
7860 case `/usr/bin/file conftest.$ac_objext` in
7861 *ELF-32*)
7862 HPUX_IA64_MODE="32"
7864 *ELF-64*)
7865 HPUX_IA64_MODE="64"
7867 esac
7869 rm -rf conftest*
7871 *-*-irix6*)
7872 # Find out which ABI we are using.
7873 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7875 (eval $ac_compile) 2>&5
7876 ac_status=$?
7877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7878 test $ac_status = 0; }; then
7879 if test "$lt_cv_prog_gnu_ld" = yes; then
7880 case `/usr/bin/file conftest.$ac_objext` in
7881 *32-bit*)
7882 LD="${LD-ld} -melf32bsmip"
7884 *N32*)
7885 LD="${LD-ld} -melf32bmipn32"
7887 *64-bit*)
7888 LD="${LD-ld} -melf64bmip"
7890 esac
7891 else
7892 case `/usr/bin/file conftest.$ac_objext` in
7893 *32-bit*)
7894 LD="${LD-ld} -32"
7896 *N32*)
7897 LD="${LD-ld} -n32"
7899 *64-bit*)
7900 LD="${LD-ld} -64"
7902 esac
7905 rm -rf conftest*
7908 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7909 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7910 # Find out which ABI we are using.
7911 echo 'int i;' > conftest.$ac_ext
7912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7913 (eval $ac_compile) 2>&5
7914 ac_status=$?
7915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7916 test $ac_status = 0; }; then
7917 case `/usr/bin/file conftest.o` in
7918 *32-bit*)
7919 case $host in
7920 x86_64-*kfreebsd*-gnu)
7921 LD="${LD-ld} -m elf_i386_fbsd"
7923 x86_64-*linux*)
7924 LD="${LD-ld} -m elf_i386"
7926 ppc64-*linux*|powerpc64-*linux*)
7927 LD="${LD-ld} -m elf32ppclinux"
7929 s390x-*linux*)
7930 LD="${LD-ld} -m elf_s390"
7932 sparc64-*linux*)
7933 LD="${LD-ld} -m elf32_sparc"
7935 esac
7937 *64-bit*)
7938 case $host in
7939 x86_64-*kfreebsd*-gnu)
7940 LD="${LD-ld} -m elf_x86_64_fbsd"
7942 x86_64-*linux*)
7943 LD="${LD-ld} -m elf_x86_64"
7945 ppc*-*linux*|powerpc*-*linux*)
7946 LD="${LD-ld} -m elf64ppc"
7948 s390*-*linux*|s390*-*tpf*)
7949 LD="${LD-ld} -m elf64_s390"
7951 sparc*-*linux*)
7952 LD="${LD-ld} -m elf64_sparc"
7954 esac
7956 esac
7958 rm -rf conftest*
7961 *-*-sco3.2v5*)
7962 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7963 SAVE_CFLAGS="$CFLAGS"
7964 CFLAGS="$CFLAGS -belf"
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7966 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7967 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7968 $as_echo_n "(cached) " >&6
7969 else
7970 ac_ext=c
7971 ac_cpp='$CPP $CPPFLAGS'
7972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977 /* end confdefs.h. */
7980 main ()
7984 return 0;
7986 _ACEOF
7987 if ac_fn_c_try_link "$LINENO"; then :
7988 lt_cv_cc_needs_belf=yes
7989 else
7990 lt_cv_cc_needs_belf=no
7992 rm -f core conftest.err conftest.$ac_objext \
7993 conftest$ac_exeext conftest.$ac_ext
7994 ac_ext=c
7995 ac_cpp='$CPP $CPPFLAGS'
7996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8002 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8003 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8004 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8005 CFLAGS="$SAVE_CFLAGS"
8008 sparc*-*solaris*)
8009 # Find out which ABI we are using.
8010 echo 'int i;' > conftest.$ac_ext
8011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8012 (eval $ac_compile) 2>&5
8013 ac_status=$?
8014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8015 test $ac_status = 0; }; then
8016 case `/usr/bin/file conftest.o` in
8017 *64-bit*)
8018 case $lt_cv_prog_gnu_ld in
8019 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8021 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8022 LD="${LD-ld} -64"
8025 esac
8027 esac
8029 rm -rf conftest*
8031 esac
8033 need_locks="$enable_libtool_lock"
8036 case $host_os in
8037 rhapsody* | darwin*)
8038 if test -n "$ac_tool_prefix"; then
8039 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8040 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8042 $as_echo_n "checking for $ac_word... " >&6; }
8043 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8044 $as_echo_n "(cached) " >&6
8045 else
8046 if test -n "$DSYMUTIL"; then
8047 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8048 else
8049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8050 for as_dir in $PATH
8052 IFS=$as_save_IFS
8053 test -z "$as_dir" && as_dir=.
8054 for ac_exec_ext in '' $ac_executable_extensions; do
8055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8056 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8058 break 2
8060 done
8061 done
8062 IFS=$as_save_IFS
8066 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8067 if test -n "$DSYMUTIL"; then
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8069 $as_echo "$DSYMUTIL" >&6; }
8070 else
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8072 $as_echo "no" >&6; }
8077 if test -z "$ac_cv_prog_DSYMUTIL"; then
8078 ac_ct_DSYMUTIL=$DSYMUTIL
8079 # Extract the first word of "dsymutil", so it can be a program name with args.
8080 set dummy dsymutil; ac_word=$2
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8082 $as_echo_n "checking for $ac_word... " >&6; }
8083 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8084 $as_echo_n "(cached) " >&6
8085 else
8086 if test -n "$ac_ct_DSYMUTIL"; then
8087 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8088 else
8089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090 for as_dir in $PATH
8092 IFS=$as_save_IFS
8093 test -z "$as_dir" && as_dir=.
8094 for ac_exec_ext in '' $ac_executable_extensions; do
8095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8096 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8098 break 2
8100 done
8101 done
8102 IFS=$as_save_IFS
8106 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8107 if test -n "$ac_ct_DSYMUTIL"; then
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8109 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8110 else
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112 $as_echo "no" >&6; }
8115 if test "x$ac_ct_DSYMUTIL" = x; then
8116 DSYMUTIL=":"
8117 else
8118 case $cross_compiling:$ac_tool_warned in
8119 yes:)
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8122 ac_tool_warned=yes ;;
8123 esac
8124 DSYMUTIL=$ac_ct_DSYMUTIL
8126 else
8127 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8130 if test -n "$ac_tool_prefix"; then
8131 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8132 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8134 $as_echo_n "checking for $ac_word... " >&6; }
8135 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8136 $as_echo_n "(cached) " >&6
8137 else
8138 if test -n "$NMEDIT"; then
8139 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8140 else
8141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8142 for as_dir in $PATH
8144 IFS=$as_save_IFS
8145 test -z "$as_dir" && as_dir=.
8146 for ac_exec_ext in '' $ac_executable_extensions; do
8147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8148 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8150 break 2
8152 done
8153 done
8154 IFS=$as_save_IFS
8158 NMEDIT=$ac_cv_prog_NMEDIT
8159 if test -n "$NMEDIT"; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8161 $as_echo "$NMEDIT" >&6; }
8162 else
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164 $as_echo "no" >&6; }
8169 if test -z "$ac_cv_prog_NMEDIT"; then
8170 ac_ct_NMEDIT=$NMEDIT
8171 # Extract the first word of "nmedit", so it can be a program name with args.
8172 set dummy nmedit; ac_word=$2
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8174 $as_echo_n "checking for $ac_word... " >&6; }
8175 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8176 $as_echo_n "(cached) " >&6
8177 else
8178 if test -n "$ac_ct_NMEDIT"; then
8179 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8180 else
8181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182 for as_dir in $PATH
8184 IFS=$as_save_IFS
8185 test -z "$as_dir" && as_dir=.
8186 for ac_exec_ext in '' $ac_executable_extensions; do
8187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8188 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8190 break 2
8192 done
8193 done
8194 IFS=$as_save_IFS
8198 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8199 if test -n "$ac_ct_NMEDIT"; then
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8201 $as_echo "$ac_ct_NMEDIT" >&6; }
8202 else
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204 $as_echo "no" >&6; }
8207 if test "x$ac_ct_NMEDIT" = x; then
8208 NMEDIT=":"
8209 else
8210 case $cross_compiling:$ac_tool_warned in
8211 yes:)
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8214 ac_tool_warned=yes ;;
8215 esac
8216 NMEDIT=$ac_ct_NMEDIT
8218 else
8219 NMEDIT="$ac_cv_prog_NMEDIT"
8222 if test -n "$ac_tool_prefix"; then
8223 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8224 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8226 $as_echo_n "checking for $ac_word... " >&6; }
8227 if test "${ac_cv_prog_LIPO+set}" = set; then :
8228 $as_echo_n "(cached) " >&6
8229 else
8230 if test -n "$LIPO"; then
8231 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8232 else
8233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8234 for as_dir in $PATH
8236 IFS=$as_save_IFS
8237 test -z "$as_dir" && as_dir=.
8238 for ac_exec_ext in '' $ac_executable_extensions; do
8239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8240 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8242 break 2
8244 done
8245 done
8246 IFS=$as_save_IFS
8250 LIPO=$ac_cv_prog_LIPO
8251 if test -n "$LIPO"; then
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8253 $as_echo "$LIPO" >&6; }
8254 else
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256 $as_echo "no" >&6; }
8261 if test -z "$ac_cv_prog_LIPO"; then
8262 ac_ct_LIPO=$LIPO
8263 # Extract the first word of "lipo", so it can be a program name with args.
8264 set dummy lipo; ac_word=$2
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8266 $as_echo_n "checking for $ac_word... " >&6; }
8267 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8268 $as_echo_n "(cached) " >&6
8269 else
8270 if test -n "$ac_ct_LIPO"; then
8271 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8272 else
8273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8274 for as_dir in $PATH
8276 IFS=$as_save_IFS
8277 test -z "$as_dir" && as_dir=.
8278 for ac_exec_ext in '' $ac_executable_extensions; do
8279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8280 ac_cv_prog_ac_ct_LIPO="lipo"
8281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8282 break 2
8284 done
8285 done
8286 IFS=$as_save_IFS
8290 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8291 if test -n "$ac_ct_LIPO"; then
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8293 $as_echo "$ac_ct_LIPO" >&6; }
8294 else
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296 $as_echo "no" >&6; }
8299 if test "x$ac_ct_LIPO" = x; then
8300 LIPO=":"
8301 else
8302 case $cross_compiling:$ac_tool_warned in
8303 yes:)
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8306 ac_tool_warned=yes ;;
8307 esac
8308 LIPO=$ac_ct_LIPO
8310 else
8311 LIPO="$ac_cv_prog_LIPO"
8314 if test -n "$ac_tool_prefix"; then
8315 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8316 set dummy ${ac_tool_prefix}otool; ac_word=$2
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8318 $as_echo_n "checking for $ac_word... " >&6; }
8319 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8320 $as_echo_n "(cached) " >&6
8321 else
8322 if test -n "$OTOOL"; then
8323 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8324 else
8325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8326 for as_dir in $PATH
8328 IFS=$as_save_IFS
8329 test -z "$as_dir" && as_dir=.
8330 for ac_exec_ext in '' $ac_executable_extensions; do
8331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8332 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8334 break 2
8336 done
8337 done
8338 IFS=$as_save_IFS
8342 OTOOL=$ac_cv_prog_OTOOL
8343 if test -n "$OTOOL"; then
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8345 $as_echo "$OTOOL" >&6; }
8346 else
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348 $as_echo "no" >&6; }
8353 if test -z "$ac_cv_prog_OTOOL"; then
8354 ac_ct_OTOOL=$OTOOL
8355 # Extract the first word of "otool", so it can be a program name with args.
8356 set dummy otool; ac_word=$2
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358 $as_echo_n "checking for $ac_word... " >&6; }
8359 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8360 $as_echo_n "(cached) " >&6
8361 else
8362 if test -n "$ac_ct_OTOOL"; then
8363 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8364 else
8365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366 for as_dir in $PATH
8368 IFS=$as_save_IFS
8369 test -z "$as_dir" && as_dir=.
8370 for ac_exec_ext in '' $ac_executable_extensions; do
8371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8372 ac_cv_prog_ac_ct_OTOOL="otool"
8373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8374 break 2
8376 done
8377 done
8378 IFS=$as_save_IFS
8382 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8383 if test -n "$ac_ct_OTOOL"; then
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8385 $as_echo "$ac_ct_OTOOL" >&6; }
8386 else
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8391 if test "x$ac_ct_OTOOL" = x; then
8392 OTOOL=":"
8393 else
8394 case $cross_compiling:$ac_tool_warned in
8395 yes:)
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8398 ac_tool_warned=yes ;;
8399 esac
8400 OTOOL=$ac_ct_OTOOL
8402 else
8403 OTOOL="$ac_cv_prog_OTOOL"
8406 if test -n "$ac_tool_prefix"; then
8407 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8408 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8410 $as_echo_n "checking for $ac_word... " >&6; }
8411 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8412 $as_echo_n "(cached) " >&6
8413 else
8414 if test -n "$OTOOL64"; then
8415 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8416 else
8417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8418 for as_dir in $PATH
8420 IFS=$as_save_IFS
8421 test -z "$as_dir" && as_dir=.
8422 for ac_exec_ext in '' $ac_executable_extensions; do
8423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8424 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8426 break 2
8428 done
8429 done
8430 IFS=$as_save_IFS
8434 OTOOL64=$ac_cv_prog_OTOOL64
8435 if test -n "$OTOOL64"; then
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8437 $as_echo "$OTOOL64" >&6; }
8438 else
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8440 $as_echo "no" >&6; }
8445 if test -z "$ac_cv_prog_OTOOL64"; then
8446 ac_ct_OTOOL64=$OTOOL64
8447 # Extract the first word of "otool64", so it can be a program name with args.
8448 set dummy otool64; ac_word=$2
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8450 $as_echo_n "checking for $ac_word... " >&6; }
8451 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8452 $as_echo_n "(cached) " >&6
8453 else
8454 if test -n "$ac_ct_OTOOL64"; then
8455 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8456 else
8457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8458 for as_dir in $PATH
8460 IFS=$as_save_IFS
8461 test -z "$as_dir" && as_dir=.
8462 for ac_exec_ext in '' $ac_executable_extensions; do
8463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8464 ac_cv_prog_ac_ct_OTOOL64="otool64"
8465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8466 break 2
8468 done
8469 done
8470 IFS=$as_save_IFS
8474 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8475 if test -n "$ac_ct_OTOOL64"; then
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8477 $as_echo "$ac_ct_OTOOL64" >&6; }
8478 else
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8480 $as_echo "no" >&6; }
8483 if test "x$ac_ct_OTOOL64" = x; then
8484 OTOOL64=":"
8485 else
8486 case $cross_compiling:$ac_tool_warned in
8487 yes:)
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8490 ac_tool_warned=yes ;;
8491 esac
8492 OTOOL64=$ac_ct_OTOOL64
8494 else
8495 OTOOL64="$ac_cv_prog_OTOOL64"
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8525 $as_echo_n "checking for -single_module linker flag... " >&6; }
8526 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8527 $as_echo_n "(cached) " >&6
8528 else
8529 lt_cv_apple_cc_single_mod=no
8530 if test -z "${LT_MULTI_MODULE}"; then
8531 # By default we will add the -single_module flag. You can override
8532 # by either setting the environment variable LT_MULTI_MODULE
8533 # non-empty at configure time, or by adding -multi_module to the
8534 # link flags.
8535 rm -rf libconftest.dylib*
8536 echo "int foo(void){return 1;}" > conftest.c
8537 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8538 -dynamiclib -Wl,-single_module conftest.c" >&5
8539 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8540 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8541 _lt_result=$?
8542 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8543 lt_cv_apple_cc_single_mod=yes
8544 else
8545 cat conftest.err >&5
8547 rm -rf libconftest.dylib*
8548 rm -f conftest.*
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8552 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8554 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8555 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8556 $as_echo_n "(cached) " >&6
8557 else
8558 lt_cv_ld_exported_symbols_list=no
8559 save_LDFLAGS=$LDFLAGS
8560 echo "_main" > conftest.sym
8561 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8563 /* end confdefs.h. */
8566 main ()
8570 return 0;
8572 _ACEOF
8573 if ac_fn_c_try_link "$LINENO"; then :
8574 lt_cv_ld_exported_symbols_list=yes
8575 else
8576 lt_cv_ld_exported_symbols_list=no
8578 rm -f core conftest.err conftest.$ac_objext \
8579 conftest$ac_exeext conftest.$ac_ext
8580 LDFLAGS="$save_LDFLAGS"
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8584 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8586 $as_echo_n "checking for -force_load linker flag... " >&6; }
8587 if test "${lt_cv_ld_force_load+set}" = set; then :
8588 $as_echo_n "(cached) " >&6
8589 else
8590 lt_cv_ld_force_load=no
8591 cat > conftest.c << _LT_EOF
8592 int forced_loaded() { return 2;}
8593 _LT_EOF
8594 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8595 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8596 echo "$AR cru libconftest.a conftest.o" >&5
8597 $AR cru libconftest.a conftest.o 2>&5
8598 cat > conftest.c << _LT_EOF
8599 int main() { return 0;}
8600 _LT_EOF
8601 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8602 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8603 _lt_result=$?
8604 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8605 lt_cv_ld_force_load=yes
8606 else
8607 cat conftest.err >&5
8609 rm -f conftest.err libconftest.a conftest conftest.c
8610 rm -rf conftest.dSYM
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8614 $as_echo "$lt_cv_ld_force_load" >&6; }
8615 case $host_os in
8616 rhapsody* | darwin1.[012])
8617 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8618 darwin1.*)
8619 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8620 darwin*) # darwin 5.x on
8621 # if running on 10.5 or later, the deployment target defaults
8622 # to the OS version, if on x86, and 10.4, the deployment
8623 # target defaults to 10.4. Don't you love it?
8624 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8625 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8626 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8627 10.[012]*)
8628 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8629 10.*)
8630 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8631 esac
8633 esac
8634 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8635 _lt_dar_single_mod='$single_module'
8637 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8638 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8639 else
8640 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8642 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8643 _lt_dsymutil='~$DSYMUTIL $lib || :'
8644 else
8645 _lt_dsymutil=
8648 esac
8650 for ac_header in dlfcn.h
8651 do :
8652 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8654 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8655 cat >>confdefs.h <<_ACEOF
8656 #define HAVE_DLFCN_H 1
8657 _ACEOF
8661 done
8668 # Set options
8672 enable_dlopen=no
8675 enable_win32_dll=no
8678 # Check whether --enable-shared was given.
8679 if test "${enable_shared+set}" = set; then :
8680 enableval=$enable_shared; p=${PACKAGE-default}
8681 case $enableval in
8682 yes) enable_shared=yes ;;
8683 no) enable_shared=no ;;
8685 enable_shared=no
8686 # Look at the argument we got. We use all the common list separators.
8687 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8688 for pkg in $enableval; do
8689 IFS="$lt_save_ifs"
8690 if test "X$pkg" = "X$p"; then
8691 enable_shared=yes
8693 done
8694 IFS="$lt_save_ifs"
8696 esac
8697 else
8698 enable_shared=yes
8709 # Check whether --enable-static was given.
8710 if test "${enable_static+set}" = set; then :
8711 enableval=$enable_static; p=${PACKAGE-default}
8712 case $enableval in
8713 yes) enable_static=yes ;;
8714 no) enable_static=no ;;
8716 enable_static=no
8717 # Look at the argument we got. We use all the common list separators.
8718 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8719 for pkg in $enableval; do
8720 IFS="$lt_save_ifs"
8721 if test "X$pkg" = "X$p"; then
8722 enable_static=yes
8724 done
8725 IFS="$lt_save_ifs"
8727 esac
8728 else
8729 enable_static=yes
8741 # Check whether --with-pic was given.
8742 if test "${with_pic+set}" = set; then :
8743 withval=$with_pic; pic_mode="$withval"
8744 else
8745 pic_mode=default
8749 test -z "$pic_mode" && pic_mode=default
8757 # Check whether --enable-fast-install was given.
8758 if test "${enable_fast_install+set}" = set; then :
8759 enableval=$enable_fast_install; p=${PACKAGE-default}
8760 case $enableval in
8761 yes) enable_fast_install=yes ;;
8762 no) enable_fast_install=no ;;
8764 enable_fast_install=no
8765 # Look at the argument we got. We use all the common list separators.
8766 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8767 for pkg in $enableval; do
8768 IFS="$lt_save_ifs"
8769 if test "X$pkg" = "X$p"; then
8770 enable_fast_install=yes
8772 done
8773 IFS="$lt_save_ifs"
8775 esac
8776 else
8777 enable_fast_install=yes
8790 # This can be used to rebuild libtool when needed
8791 LIBTOOL_DEPS="$ltmain"
8793 # Always use our own libtool.
8794 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8821 test -z "$LN_S" && LN_S="ln -s"
8836 if test -n "${ZSH_VERSION+set}" ; then
8837 setopt NO_GLOB_SUBST
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8841 $as_echo_n "checking for objdir... " >&6; }
8842 if test "${lt_cv_objdir+set}" = set; then :
8843 $as_echo_n "(cached) " >&6
8844 else
8845 rm -f .libs 2>/dev/null
8846 mkdir .libs 2>/dev/null
8847 if test -d .libs; then
8848 lt_cv_objdir=.libs
8849 else
8850 # MS-DOS does not allow filenames that begin with a dot.
8851 lt_cv_objdir=_libs
8853 rmdir .libs 2>/dev/null
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8856 $as_echo "$lt_cv_objdir" >&6; }
8857 objdir=$lt_cv_objdir
8863 cat >>confdefs.h <<_ACEOF
8864 #define LT_OBJDIR "$lt_cv_objdir/"
8865 _ACEOF
8870 case $host_os in
8871 aix3*)
8872 # AIX sometimes has problems with the GCC collect2 program. For some
8873 # reason, if we set the COLLECT_NAMES environment variable, the problems
8874 # vanish in a puff of smoke.
8875 if test "X${COLLECT_NAMES+set}" != Xset; then
8876 COLLECT_NAMES=
8877 export COLLECT_NAMES
8880 esac
8882 # Global variables:
8883 ofile=libtool
8884 can_build_shared=yes
8886 # All known linkers require a `.a' archive for static linking (except MSVC,
8887 # which needs '.lib').
8888 libext=a
8890 with_gnu_ld="$lt_cv_prog_gnu_ld"
8892 old_CC="$CC"
8893 old_CFLAGS="$CFLAGS"
8895 # Set sane defaults for various variables
8896 test -z "$CC" && CC=cc
8897 test -z "$LTCC" && LTCC=$CC
8898 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8899 test -z "$LD" && LD=ld
8900 test -z "$ac_objext" && ac_objext=o
8902 for cc_temp in $compiler""; do
8903 case $cc_temp in
8904 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8905 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8906 \-*) ;;
8907 *) break;;
8908 esac
8909 done
8910 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8913 # Only perform the check for file, if the check method requires it
8914 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8915 case $deplibs_check_method in
8916 file_magic*)
8917 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8919 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8920 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8921 $as_echo_n "(cached) " >&6
8922 else
8923 case $MAGIC_CMD in
8924 [\\/*] | ?:[\\/]*)
8925 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8928 lt_save_MAGIC_CMD="$MAGIC_CMD"
8929 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8930 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8931 for ac_dir in $ac_dummy; do
8932 IFS="$lt_save_ifs"
8933 test -z "$ac_dir" && ac_dir=.
8934 if test -f $ac_dir/${ac_tool_prefix}file; then
8935 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8936 if test -n "$file_magic_test_file"; then
8937 case $deplibs_check_method in
8938 "file_magic "*)
8939 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8940 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8941 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8942 $EGREP "$file_magic_regex" > /dev/null; then
8944 else
8945 cat <<_LT_EOF 1>&2
8947 *** Warning: the command libtool uses to detect shared libraries,
8948 *** $file_magic_cmd, produces output that libtool cannot recognize.
8949 *** The result is that libtool may fail to recognize shared libraries
8950 *** as such. This will affect the creation of libtool libraries that
8951 *** depend on shared libraries, but programs linked with such libtool
8952 *** libraries will work regardless of this problem. Nevertheless, you
8953 *** may want to report the problem to your system manager and/or to
8954 *** bug-libtool@gnu.org
8956 _LT_EOF
8957 fi ;;
8958 esac
8960 break
8962 done
8963 IFS="$lt_save_ifs"
8964 MAGIC_CMD="$lt_save_MAGIC_CMD"
8966 esac
8969 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8970 if test -n "$MAGIC_CMD"; then
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8972 $as_echo "$MAGIC_CMD" >&6; }
8973 else
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8975 $as_echo "no" >&6; }
8982 if test -z "$lt_cv_path_MAGIC_CMD"; then
8983 if test -n "$ac_tool_prefix"; then
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8985 $as_echo_n "checking for file... " >&6; }
8986 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8987 $as_echo_n "(cached) " >&6
8988 else
8989 case $MAGIC_CMD in
8990 [\\/*] | ?:[\\/]*)
8991 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8994 lt_save_MAGIC_CMD="$MAGIC_CMD"
8995 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8996 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8997 for ac_dir in $ac_dummy; do
8998 IFS="$lt_save_ifs"
8999 test -z "$ac_dir" && ac_dir=.
9000 if test -f $ac_dir/file; then
9001 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9002 if test -n "$file_magic_test_file"; then
9003 case $deplibs_check_method in
9004 "file_magic "*)
9005 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9006 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9007 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9008 $EGREP "$file_magic_regex" > /dev/null; then
9010 else
9011 cat <<_LT_EOF 1>&2
9013 *** Warning: the command libtool uses to detect shared libraries,
9014 *** $file_magic_cmd, produces output that libtool cannot recognize.
9015 *** The result is that libtool may fail to recognize shared libraries
9016 *** as such. This will affect the creation of libtool libraries that
9017 *** depend on shared libraries, but programs linked with such libtool
9018 *** libraries will work regardless of this problem. Nevertheless, you
9019 *** may want to report the problem to your system manager and/or to
9020 *** bug-libtool@gnu.org
9022 _LT_EOF
9023 fi ;;
9024 esac
9026 break
9028 done
9029 IFS="$lt_save_ifs"
9030 MAGIC_CMD="$lt_save_MAGIC_CMD"
9032 esac
9035 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9036 if test -n "$MAGIC_CMD"; then
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9038 $as_echo "$MAGIC_CMD" >&6; }
9039 else
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9041 $as_echo "no" >&6; }
9045 else
9046 MAGIC_CMD=:
9052 esac
9054 # Use C for the default configuration in the libtool script
9056 lt_save_CC="$CC"
9057 ac_ext=c
9058 ac_cpp='$CPP $CPPFLAGS'
9059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9064 # Source file extension for C test sources.
9065 ac_ext=c
9067 # Object file extension for compiled C test sources.
9068 objext=o
9069 objext=$objext
9071 # Code to be used in simple compile tests
9072 lt_simple_compile_test_code="int some_variable = 0;"
9074 # Code to be used in simple link tests
9075 lt_simple_link_test_code='int main(){return(0);}'
9083 # If no C compiler was specified, use CC.
9084 LTCC=${LTCC-"$CC"}
9086 # If no C compiler flags were specified, use CFLAGS.
9087 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9089 # Allow CC to be a program name with arguments.
9090 compiler=$CC
9092 # Save the default compiler, since it gets overwritten when the other
9093 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9094 compiler_DEFAULT=$CC
9096 # save warnings/boilerplate of simple test code
9097 ac_outfile=conftest.$ac_objext
9098 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9099 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9100 _lt_compiler_boilerplate=`cat conftest.err`
9101 $RM conftest*
9103 ac_outfile=conftest.$ac_objext
9104 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9105 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9106 _lt_linker_boilerplate=`cat conftest.err`
9107 $RM -r conftest*
9110 ## CAVEAT EMPTOR:
9111 ## There is no encapsulation within the following macros, do not change
9112 ## the running order or otherwise move them around unless you know exactly
9113 ## what you are doing...
9114 if test -n "$compiler"; then
9116 lt_prog_compiler_no_builtin_flag=
9118 if test "$GCC" = yes; then
9119 case $cc_basename in
9120 nvcc*)
9121 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9123 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9124 esac
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9127 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9128 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9129 $as_echo_n "(cached) " >&6
9130 else
9131 lt_cv_prog_compiler_rtti_exceptions=no
9132 ac_outfile=conftest.$ac_objext
9133 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9134 lt_compiler_flag="-fno-rtti -fno-exceptions"
9135 # Insert the option either (1) after the last *FLAGS variable, or
9136 # (2) before a word containing "conftest.", or (3) at the end.
9137 # Note that $ac_compile itself does not contain backslashes and begins
9138 # with a dollar sign (not a hyphen), so the echo should work correctly.
9139 # The option is referenced via a variable to avoid confusing sed.
9140 lt_compile=`echo "$ac_compile" | $SED \
9141 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9142 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9143 -e 's:$: $lt_compiler_flag:'`
9144 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9145 (eval "$lt_compile" 2>conftest.err)
9146 ac_status=$?
9147 cat conftest.err >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 if (exit $ac_status) && test -s "$ac_outfile"; then
9150 # The compiler can only warn and ignore the option if not recognized
9151 # So say no if there are warnings other than the usual output.
9152 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9153 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9154 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9155 lt_cv_prog_compiler_rtti_exceptions=yes
9158 $RM conftest*
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9162 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9164 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9165 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9166 else
9177 lt_prog_compiler_wl=
9178 lt_prog_compiler_pic=
9179 lt_prog_compiler_static=
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9182 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9184 if test "$GCC" = yes; then
9185 lt_prog_compiler_wl='-Wl,'
9186 lt_prog_compiler_static='-static'
9188 case $host_os in
9189 aix*)
9190 # All AIX code is PIC.
9191 if test "$host_cpu" = ia64; then
9192 # AIX 5 now supports IA64 processor
9193 lt_prog_compiler_static='-Bstatic'
9197 amigaos*)
9198 case $host_cpu in
9199 powerpc)
9200 # see comment about AmigaOS4 .so support
9201 lt_prog_compiler_pic='-fPIC'
9203 m68k)
9204 # FIXME: we need at least 68020 code to build shared libraries, but
9205 # adding the `-m68020' flag to GCC prevents building anything better,
9206 # like `-m68040'.
9207 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9209 esac
9212 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9213 # PIC is the default for these OSes.
9216 mingw* | cygwin* | pw32* | os2* | cegcc*)
9217 # This hack is so that the source file can tell whether it is being
9218 # built for inclusion in a dll (and should export symbols for example).
9219 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9220 # (--disable-auto-import) libraries
9221 lt_prog_compiler_pic='-DDLL_EXPORT'
9224 darwin* | rhapsody*)
9225 # PIC is the default on this platform
9226 # Common symbols not allowed in MH_DYLIB files
9227 lt_prog_compiler_pic='-fno-common'
9230 haiku*)
9231 # PIC is the default for Haiku.
9232 # The "-static" flag exists, but is broken.
9233 lt_prog_compiler_static=
9236 hpux*)
9237 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9238 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9239 # sets the default TLS model and affects inlining.
9240 case $host_cpu in
9241 hppa*64*)
9242 # +Z the default
9245 lt_prog_compiler_pic='-fPIC'
9247 esac
9250 interix[3-9]*)
9251 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9252 # Instead, we relocate shared libraries at runtime.
9255 msdosdjgpp*)
9256 # Just because we use GCC doesn't mean we suddenly get shared libraries
9257 # on systems that don't support them.
9258 lt_prog_compiler_can_build_shared=no
9259 enable_shared=no
9262 *nto* | *qnx*)
9263 # QNX uses GNU C++, but need to define -shared option too, otherwise
9264 # it will coredump.
9265 lt_prog_compiler_pic='-fPIC -shared'
9268 sysv4*MP*)
9269 if test -d /usr/nec; then
9270 lt_prog_compiler_pic=-Kconform_pic
9275 lt_prog_compiler_pic='-fPIC'
9277 esac
9279 case $cc_basename in
9280 nvcc*) # Cuda Compiler Driver 2.2
9281 lt_prog_compiler_wl='-Xlinker '
9282 lt_prog_compiler_pic='-Xcompiler -fPIC'
9284 esac
9285 else
9286 # PORTME Check for flag to pass linker flags through the system compiler.
9287 case $host_os in
9288 aix*)
9289 lt_prog_compiler_wl='-Wl,'
9290 if test "$host_cpu" = ia64; then
9291 # AIX 5 now supports IA64 processor
9292 lt_prog_compiler_static='-Bstatic'
9293 else
9294 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9298 mingw* | cygwin* | pw32* | os2* | cegcc*)
9299 # This hack is so that the source file can tell whether it is being
9300 # built for inclusion in a dll (and should export symbols for example).
9301 lt_prog_compiler_pic='-DDLL_EXPORT'
9304 hpux9* | hpux10* | hpux11*)
9305 lt_prog_compiler_wl='-Wl,'
9306 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9307 # not for PA HP-UX.
9308 case $host_cpu in
9309 hppa*64*|ia64*)
9310 # +Z the default
9313 lt_prog_compiler_pic='+Z'
9315 esac
9316 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9317 lt_prog_compiler_static='${wl}-a ${wl}archive'
9320 irix5* | irix6* | nonstopux*)
9321 lt_prog_compiler_wl='-Wl,'
9322 # PIC (with -KPIC) is the default.
9323 lt_prog_compiler_static='-non_shared'
9326 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9327 case $cc_basename in
9328 # old Intel for x86_64 which still supported -KPIC.
9329 ecc*)
9330 lt_prog_compiler_wl='-Wl,'
9331 lt_prog_compiler_pic='-KPIC'
9332 lt_prog_compiler_static='-static'
9334 # icc used to be incompatible with GCC.
9335 # ICC 10 doesn't accept -KPIC any more.
9336 icc* | ifort*)
9337 lt_prog_compiler_wl='-Wl,'
9338 lt_prog_compiler_pic='-fPIC'
9339 lt_prog_compiler_static='-static'
9341 # Lahey Fortran 8.1.
9342 lf95*)
9343 lt_prog_compiler_wl='-Wl,'
9344 lt_prog_compiler_pic='--shared'
9345 lt_prog_compiler_static='--static'
9347 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9348 # Portland Group compilers (*not* the Pentium gcc compiler,
9349 # which looks to be a dead project)
9350 lt_prog_compiler_wl='-Wl,'
9351 lt_prog_compiler_pic='-fpic'
9352 lt_prog_compiler_static='-Bstatic'
9354 ccc*)
9355 lt_prog_compiler_wl='-Wl,'
9356 # All Alpha code is PIC.
9357 lt_prog_compiler_static='-non_shared'
9359 xl* | bgxl* | bgf* | mpixl*)
9360 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9361 lt_prog_compiler_wl='-Wl,'
9362 lt_prog_compiler_pic='-qpic'
9363 lt_prog_compiler_static='-qstaticlink'
9366 case `$CC -V 2>&1 | sed 5q` in
9367 *Sun\ F* | *Sun*Fortran*)
9368 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9369 lt_prog_compiler_pic='-KPIC'
9370 lt_prog_compiler_static='-Bstatic'
9371 lt_prog_compiler_wl=''
9373 *Sun\ C*)
9374 # Sun C 5.9
9375 lt_prog_compiler_pic='-KPIC'
9376 lt_prog_compiler_static='-Bstatic'
9377 lt_prog_compiler_wl='-Wl,'
9379 esac
9381 esac
9384 newsos6)
9385 lt_prog_compiler_pic='-KPIC'
9386 lt_prog_compiler_static='-Bstatic'
9389 *nto* | *qnx*)
9390 # QNX uses GNU C++, but need to define -shared option too, otherwise
9391 # it will coredump.
9392 lt_prog_compiler_pic='-fPIC -shared'
9395 osf3* | osf4* | osf5*)
9396 lt_prog_compiler_wl='-Wl,'
9397 # All OSF/1 code is PIC.
9398 lt_prog_compiler_static='-non_shared'
9401 rdos*)
9402 lt_prog_compiler_static='-non_shared'
9405 solaris*)
9406 lt_prog_compiler_pic='-KPIC'
9407 lt_prog_compiler_static='-Bstatic'
9408 case $cc_basename in
9409 f77* | f90* | f95*)
9410 lt_prog_compiler_wl='-Qoption ld ';;
9412 lt_prog_compiler_wl='-Wl,';;
9413 esac
9416 sunos4*)
9417 lt_prog_compiler_wl='-Qoption ld '
9418 lt_prog_compiler_pic='-PIC'
9419 lt_prog_compiler_static='-Bstatic'
9422 sysv4 | sysv4.2uw2* | sysv4.3*)
9423 lt_prog_compiler_wl='-Wl,'
9424 lt_prog_compiler_pic='-KPIC'
9425 lt_prog_compiler_static='-Bstatic'
9428 sysv4*MP*)
9429 if test -d /usr/nec ;then
9430 lt_prog_compiler_pic='-Kconform_pic'
9431 lt_prog_compiler_static='-Bstatic'
9435 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9436 lt_prog_compiler_wl='-Wl,'
9437 lt_prog_compiler_pic='-KPIC'
9438 lt_prog_compiler_static='-Bstatic'
9441 unicos*)
9442 lt_prog_compiler_wl='-Wl,'
9443 lt_prog_compiler_can_build_shared=no
9446 uts4*)
9447 lt_prog_compiler_pic='-pic'
9448 lt_prog_compiler_static='-Bstatic'
9452 lt_prog_compiler_can_build_shared=no
9454 esac
9457 case $host_os in
9458 # For platforms which do not support PIC, -DPIC is meaningless:
9459 *djgpp*)
9460 lt_prog_compiler_pic=
9463 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9465 esac
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9467 $as_echo "$lt_prog_compiler_pic" >&6; }
9475 # Check to make sure the PIC flag actually works.
9477 if test -n "$lt_prog_compiler_pic"; then
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9479 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9480 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9481 $as_echo_n "(cached) " >&6
9482 else
9483 lt_cv_prog_compiler_pic_works=no
9484 ac_outfile=conftest.$ac_objext
9485 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9486 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9487 # Insert the option either (1) after the last *FLAGS variable, or
9488 # (2) before a word containing "conftest.", or (3) at the end.
9489 # Note that $ac_compile itself does not contain backslashes and begins
9490 # with a dollar sign (not a hyphen), so the echo should work correctly.
9491 # The option is referenced via a variable to avoid confusing sed.
9492 lt_compile=`echo "$ac_compile" | $SED \
9493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9495 -e 's:$: $lt_compiler_flag:'`
9496 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9497 (eval "$lt_compile" 2>conftest.err)
9498 ac_status=$?
9499 cat conftest.err >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 if (exit $ac_status) && test -s "$ac_outfile"; then
9502 # The compiler can only warn and ignore the option if not recognized
9503 # So say no if there are warnings other than the usual output.
9504 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9506 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9507 lt_cv_prog_compiler_pic_works=yes
9510 $RM conftest*
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9514 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9516 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9517 case $lt_prog_compiler_pic in
9518 "" | " "*) ;;
9519 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9520 esac
9521 else
9522 lt_prog_compiler_pic=
9523 lt_prog_compiler_can_build_shared=no
9534 # Check to make sure the static flag actually works.
9536 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9538 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9539 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9540 $as_echo_n "(cached) " >&6
9541 else
9542 lt_cv_prog_compiler_static_works=no
9543 save_LDFLAGS="$LDFLAGS"
9544 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9545 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9546 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9547 # The linker can only warn and ignore the option if not recognized
9548 # So say no if there are warnings
9549 if test -s conftest.err; then
9550 # Append any errors to the config.log.
9551 cat conftest.err 1>&5
9552 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9553 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9554 if diff conftest.exp conftest.er2 >/dev/null; then
9555 lt_cv_prog_compiler_static_works=yes
9557 else
9558 lt_cv_prog_compiler_static_works=yes
9561 $RM -r conftest*
9562 LDFLAGS="$save_LDFLAGS"
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9566 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9568 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9570 else
9571 lt_prog_compiler_static=
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9581 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9582 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9583 $as_echo_n "(cached) " >&6
9584 else
9585 lt_cv_prog_compiler_c_o=no
9586 $RM -r conftest 2>/dev/null
9587 mkdir conftest
9588 cd conftest
9589 mkdir out
9590 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9592 lt_compiler_flag="-o out/conftest2.$ac_objext"
9593 # Insert the option either (1) after the last *FLAGS variable, or
9594 # (2) before a word containing "conftest.", or (3) at the end.
9595 # Note that $ac_compile itself does not contain backslashes and begins
9596 # with a dollar sign (not a hyphen), so the echo should work correctly.
9597 lt_compile=`echo "$ac_compile" | $SED \
9598 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9599 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9600 -e 's:$: $lt_compiler_flag:'`
9601 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9602 (eval "$lt_compile" 2>out/conftest.err)
9603 ac_status=$?
9604 cat out/conftest.err >&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9607 then
9608 # The compiler can only warn and ignore the option if not recognized
9609 # So say no if there are warnings
9610 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9611 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9612 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9613 lt_cv_prog_compiler_c_o=yes
9616 chmod u+w . 2>&5
9617 $RM conftest*
9618 # SGI C++ compiler will create directory out/ii_files/ for
9619 # template instantiation
9620 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9621 $RM out/* && rmdir out
9622 cd ..
9623 $RM -r conftest
9624 $RM conftest*
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9628 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9636 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9637 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9638 $as_echo_n "(cached) " >&6
9639 else
9640 lt_cv_prog_compiler_c_o=no
9641 $RM -r conftest 2>/dev/null
9642 mkdir conftest
9643 cd conftest
9644 mkdir out
9645 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9647 lt_compiler_flag="-o out/conftest2.$ac_objext"
9648 # Insert the option either (1) after the last *FLAGS variable, or
9649 # (2) before a word containing "conftest.", or (3) at the end.
9650 # Note that $ac_compile itself does not contain backslashes and begins
9651 # with a dollar sign (not a hyphen), so the echo should work correctly.
9652 lt_compile=`echo "$ac_compile" | $SED \
9653 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9655 -e 's:$: $lt_compiler_flag:'`
9656 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9657 (eval "$lt_compile" 2>out/conftest.err)
9658 ac_status=$?
9659 cat out/conftest.err >&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9662 then
9663 # The compiler can only warn and ignore the option if not recognized
9664 # So say no if there are warnings
9665 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9666 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9667 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9668 lt_cv_prog_compiler_c_o=yes
9671 chmod u+w . 2>&5
9672 $RM conftest*
9673 # SGI C++ compiler will create directory out/ii_files/ for
9674 # template instantiation
9675 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9676 $RM out/* && rmdir out
9677 cd ..
9678 $RM -r conftest
9679 $RM conftest*
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9683 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9688 hard_links="nottested"
9689 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9690 # do not overwrite the value of need_locks provided by the user
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9692 $as_echo_n "checking if we can lock with hard links... " >&6; }
9693 hard_links=yes
9694 $RM conftest*
9695 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9696 touch conftest.a
9697 ln conftest.a conftest.b 2>&5 || hard_links=no
9698 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9700 $as_echo "$hard_links" >&6; }
9701 if test "$hard_links" = no; then
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9703 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9704 need_locks=warn
9706 else
9707 need_locks=no
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9716 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9718 runpath_var=
9719 allow_undefined_flag=
9720 always_export_symbols=no
9721 archive_cmds=
9722 archive_expsym_cmds=
9723 compiler_needs_object=no
9724 enable_shared_with_static_runtimes=no
9725 export_dynamic_flag_spec=
9726 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9727 hardcode_automatic=no
9728 hardcode_direct=no
9729 hardcode_direct_absolute=no
9730 hardcode_libdir_flag_spec=
9731 hardcode_libdir_flag_spec_ld=
9732 hardcode_libdir_separator=
9733 hardcode_minus_L=no
9734 hardcode_shlibpath_var=unsupported
9735 inherit_rpath=no
9736 link_all_deplibs=unknown
9737 module_cmds=
9738 module_expsym_cmds=
9739 old_archive_from_new_cmds=
9740 old_archive_from_expsyms_cmds=
9741 thread_safe_flag_spec=
9742 whole_archive_flag_spec=
9743 # include_expsyms should be a list of space-separated symbols to be *always*
9744 # included in the symbol list
9745 include_expsyms=
9746 # exclude_expsyms can be an extended regexp of symbols to exclude
9747 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9748 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9749 # as well as any symbol that contains `d'.
9750 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9751 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9752 # platforms (ab)use it in PIC code, but their linkers get confused if
9753 # the symbol is explicitly referenced. Since portable code cannot
9754 # rely on this symbol name, it's probably fine to never include it in
9755 # preloaded symbol tables.
9756 # Exclude shared library initialization/finalization symbols.
9757 extract_expsyms_cmds=
9759 case $host_os in
9760 cygwin* | mingw* | pw32* | cegcc*)
9761 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9762 # When not using gcc, we currently assume that we are using
9763 # Microsoft Visual C++.
9764 if test "$GCC" != yes; then
9765 with_gnu_ld=no
9768 interix*)
9769 # we just hope/assume this is gcc and not c89 (= MSVC++)
9770 with_gnu_ld=yes
9772 openbsd*)
9773 with_gnu_ld=no
9775 esac
9777 ld_shlibs=yes
9779 # On some targets, GNU ld is compatible enough with the native linker
9780 # that we're better off using the native interface for both.
9781 lt_use_gnu_ld_interface=no
9782 if test "$with_gnu_ld" = yes; then
9783 case $host_os in
9784 aix*)
9785 # The AIX port of GNU ld has always aspired to compatibility
9786 # with the native linker. However, as the warning in the GNU ld
9787 # block says, versions before 2.19.5* couldn't really create working
9788 # shared libraries, regardless of the interface used.
9789 case `$LD -v 2>&1` in
9790 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9791 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9792 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9794 lt_use_gnu_ld_interface=yes
9796 esac
9799 lt_use_gnu_ld_interface=yes
9801 esac
9804 if test "$lt_use_gnu_ld_interface" = yes; then
9805 # If archive_cmds runs LD, not CC, wlarc should be empty
9806 wlarc='${wl}'
9808 # Set some defaults for GNU ld with shared library support. These
9809 # are reset later if shared libraries are not supported. Putting them
9810 # here allows them to be overridden if necessary.
9811 runpath_var=LD_RUN_PATH
9812 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9813 export_dynamic_flag_spec='${wl}--export-dynamic'
9814 # ancient GNU ld didn't support --whole-archive et. al.
9815 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9816 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9817 else
9818 whole_archive_flag_spec=
9820 supports_anon_versioning=no
9821 case `$LD -v 2>&1` in
9822 *GNU\ gold*) supports_anon_versioning=yes ;;
9823 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9824 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9825 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9826 *\ 2.11.*) ;; # other 2.11 versions
9827 *) supports_anon_versioning=yes ;;
9828 esac
9830 # See if GNU ld supports shared libraries.
9831 case $host_os in
9832 aix[3-9]*)
9833 # On AIX/PPC, the GNU linker is very broken
9834 if test "$host_cpu" != ia64; then
9835 ld_shlibs=no
9836 cat <<_LT_EOF 1>&2
9838 *** Warning: the GNU linker, at least up to release 2.19, is reported
9839 *** to be unable to reliably create shared libraries on AIX.
9840 *** Therefore, libtool is disabling shared libraries support. If you
9841 *** really care for shared libraries, you may want to install binutils
9842 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9843 *** You will then need to restart the configuration process.
9845 _LT_EOF
9849 amigaos*)
9850 case $host_cpu in
9851 powerpc)
9852 # see comment about AmigaOS4 .so support
9853 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9854 archive_expsym_cmds=''
9856 m68k)
9857 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)'
9858 hardcode_libdir_flag_spec='-L$libdir'
9859 hardcode_minus_L=yes
9861 esac
9864 beos*)
9865 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9866 allow_undefined_flag=unsupported
9867 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9868 # support --undefined. This deserves some investigation. FIXME
9869 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9870 else
9871 ld_shlibs=no
9875 cygwin* | mingw* | pw32* | cegcc*)
9876 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9877 # as there is no search path for DLLs.
9878 hardcode_libdir_flag_spec='-L$libdir'
9879 export_dynamic_flag_spec='${wl}--export-all-symbols'
9880 allow_undefined_flag=unsupported
9881 always_export_symbols=no
9882 enable_shared_with_static_runtimes=yes
9883 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9885 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9886 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9887 # If the export-symbols file already is a .def file (1st line
9888 # is EXPORTS), use it as is; otherwise, prepend...
9889 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9890 cp $export_symbols $output_objdir/$soname.def;
9891 else
9892 echo EXPORTS > $output_objdir/$soname.def;
9893 cat $export_symbols >> $output_objdir/$soname.def;
9895 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9896 else
9897 ld_shlibs=no
9901 haiku*)
9902 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9903 link_all_deplibs=yes
9906 interix[3-9]*)
9907 hardcode_direct=no
9908 hardcode_shlibpath_var=no
9909 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9910 export_dynamic_flag_spec='${wl}-E'
9911 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9912 # Instead, shared libraries are loaded at an image base (0x10000000 by
9913 # default) and relocated if they conflict, which is a slow very memory
9914 # consuming and fragmenting process. To avoid this, we pick a random,
9915 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9916 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9917 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9918 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'
9921 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9922 tmp_diet=no
9923 if test "$host_os" = linux-dietlibc; then
9924 case $cc_basename in
9925 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9926 esac
9928 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9929 && test "$tmp_diet" = no
9930 then
9931 tmp_addflag=
9932 tmp_sharedflag='-shared'
9933 case $cc_basename,$host_cpu in
9934 pgcc*) # Portland Group C compiler
9935 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'
9936 tmp_addflag=' $pic_flag'
9938 pgf77* | pgf90* | pgf95* | pgfortran*)
9939 # Portland Group f77 and f90 compilers
9940 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'
9941 tmp_addflag=' $pic_flag -Mnomain' ;;
9942 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9943 tmp_addflag=' -i_dynamic' ;;
9944 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9945 tmp_addflag=' -i_dynamic -nofor_main' ;;
9946 ifc* | ifort*) # Intel Fortran compiler
9947 tmp_addflag=' -nofor_main' ;;
9948 lf95*) # Lahey Fortran 8.1
9949 whole_archive_flag_spec=
9950 tmp_sharedflag='--shared' ;;
9951 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9952 tmp_sharedflag='-qmkshrobj'
9953 tmp_addflag= ;;
9954 nvcc*) # Cuda Compiler Driver 2.2
9955 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'
9956 compiler_needs_object=yes
9958 esac
9959 case `$CC -V 2>&1 | sed 5q` in
9960 *Sun\ C*) # Sun C 5.9
9961 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'
9962 compiler_needs_object=yes
9963 tmp_sharedflag='-G' ;;
9964 *Sun\ F*) # Sun Fortran 8.3
9965 tmp_sharedflag='-G' ;;
9966 esac
9967 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9969 if test "x$supports_anon_versioning" = xyes; then
9970 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9971 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9972 echo "local: *; };" >> $output_objdir/$libname.ver~
9973 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9976 case $cc_basename in
9977 xlf* | bgf* | bgxlf* | mpixlf*)
9978 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9979 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9980 hardcode_libdir_flag_spec=
9981 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9982 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9983 if test "x$supports_anon_versioning" = xyes; then
9984 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9985 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9986 echo "local: *; };" >> $output_objdir/$libname.ver~
9987 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9990 esac
9991 else
9992 ld_shlibs=no
9996 netbsd*)
9997 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9998 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9999 wlarc=
10000 else
10001 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10002 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10006 solaris*)
10007 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10008 ld_shlibs=no
10009 cat <<_LT_EOF 1>&2
10011 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10012 *** create shared libraries on Solaris systems. Therefore, libtool
10013 *** is disabling shared libraries support. We urge you to upgrade GNU
10014 *** binutils to release 2.9.1 or newer. Another option is to modify
10015 *** your PATH or compiler configuration so that the native linker is
10016 *** used, and then restart.
10018 _LT_EOF
10019 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10020 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10021 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10022 else
10023 ld_shlibs=no
10027 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10028 case `$LD -v 2>&1` in
10029 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10030 ld_shlibs=no
10031 cat <<_LT_EOF 1>&2
10033 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10034 *** reliably create shared libraries on SCO systems. Therefore, libtool
10035 *** is disabling shared libraries support. We urge you to upgrade GNU
10036 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10037 *** your PATH or compiler configuration so that the native linker is
10038 *** used, and then restart.
10040 _LT_EOF
10043 # For security reasons, it is highly recommended that you always
10044 # use absolute paths for naming shared libraries, and exclude the
10045 # DT_RUNPATH tag from executables and libraries. But doing so
10046 # requires that you compile everything twice, which is a pain.
10047 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10048 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10049 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10050 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10051 else
10052 ld_shlibs=no
10055 esac
10058 sunos4*)
10059 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10060 wlarc=
10061 hardcode_direct=yes
10062 hardcode_shlibpath_var=no
10066 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10068 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10069 else
10070 ld_shlibs=no
10073 esac
10075 if test "$ld_shlibs" = no; then
10076 runpath_var=
10077 hardcode_libdir_flag_spec=
10078 export_dynamic_flag_spec=
10079 whole_archive_flag_spec=
10081 else
10082 # PORTME fill in a description of your system's linker (not GNU ld)
10083 case $host_os in
10084 aix3*)
10085 allow_undefined_flag=unsupported
10086 always_export_symbols=yes
10087 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'
10088 # Note: this linker hardcodes the directories in LIBPATH if there
10089 # are no directories specified by -L.
10090 hardcode_minus_L=yes
10091 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10092 # Neither direct hardcoding nor static linking is supported with a
10093 # broken collect2.
10094 hardcode_direct=unsupported
10098 aix[4-9]*)
10099 if test "$host_cpu" = ia64; then
10100 # On IA64, the linker does run time linking by default, so we don't
10101 # have to do anything special.
10102 aix_use_runtimelinking=no
10103 exp_sym_flag='-Bexport'
10104 no_entry_flag=""
10105 else
10106 # If we're using GNU nm, then we don't want the "-C" option.
10107 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10108 # Also, AIX nm treats weak defined symbols like other global
10109 # defined symbols, whereas GNU nm marks them as "W".
10110 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10111 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'
10112 else
10113 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10115 aix_use_runtimelinking=no
10117 # Test if we are trying to use run time linking or normal
10118 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10119 # need to do runtime linking.
10120 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10121 for ld_flag in $LDFLAGS; do
10122 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10123 aix_use_runtimelinking=yes
10124 break
10126 done
10128 esac
10130 exp_sym_flag='-bexport'
10131 no_entry_flag='-bnoentry'
10134 # When large executables or shared objects are built, AIX ld can
10135 # have problems creating the table of contents. If linking a library
10136 # or program results in "error TOC overflow" add -mminimal-toc to
10137 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10138 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10140 archive_cmds=''
10141 hardcode_direct=yes
10142 hardcode_direct_absolute=yes
10143 hardcode_libdir_separator=':'
10144 link_all_deplibs=yes
10145 file_list_spec='${wl}-f,'
10147 if test "$GCC" = yes; then
10148 case $host_os in aix4.[012]|aix4.[012].*)
10149 # We only want to do this on AIX 4.2 and lower, the check
10150 # below for broken collect2 doesn't work under 4.3+
10151 collect2name=`${CC} -print-prog-name=collect2`
10152 if test -f "$collect2name" &&
10153 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10154 then
10155 # We have reworked collect2
10157 else
10158 # We have old collect2
10159 hardcode_direct=unsupported
10160 # It fails to find uninstalled libraries when the uninstalled
10161 # path is not listed in the libpath. Setting hardcode_minus_L
10162 # to unsupported forces relinking
10163 hardcode_minus_L=yes
10164 hardcode_libdir_flag_spec='-L$libdir'
10165 hardcode_libdir_separator=
10168 esac
10169 shared_flag='-shared'
10170 if test "$aix_use_runtimelinking" = yes; then
10171 shared_flag="$shared_flag "'${wl}-G'
10173 else
10174 # not using gcc
10175 if test "$host_cpu" = ia64; then
10176 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10177 # chokes on -Wl,-G. The following line is correct:
10178 shared_flag='-G'
10179 else
10180 if test "$aix_use_runtimelinking" = yes; then
10181 shared_flag='${wl}-G'
10182 else
10183 shared_flag='${wl}-bM:SRE'
10188 export_dynamic_flag_spec='${wl}-bexpall'
10189 # It seems that -bexpall does not export symbols beginning with
10190 # underscore (_), so it is better to generate a list of symbols to export.
10191 always_export_symbols=yes
10192 if test "$aix_use_runtimelinking" = yes; then
10193 # Warning - without using the other runtime loading flags (-brtl),
10194 # -berok will link without error, but may produce a broken library.
10195 allow_undefined_flag='-berok'
10196 # Determine the default libpath from the value encoded in an
10197 # empty executable.
10198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10199 /* end confdefs.h. */
10202 main ()
10206 return 0;
10208 _ACEOF
10209 if ac_fn_c_try_link "$LINENO"; then :
10211 lt_aix_libpath_sed='
10212 /Import File Strings/,/^$/ {
10213 /^0/ {
10214 s/^0 *\(.*\)$/\1/
10218 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10219 # Check for a 64-bit object if we didn't find anything.
10220 if test -z "$aix_libpath"; then
10221 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10224 rm -f core conftest.err conftest.$ac_objext \
10225 conftest$ac_exeext conftest.$ac_ext
10226 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10228 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10229 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"
10230 else
10231 if test "$host_cpu" = ia64; then
10232 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10233 allow_undefined_flag="-z nodefs"
10234 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"
10235 else
10236 # Determine the default libpath from the value encoded in an
10237 # empty executable.
10238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10239 /* end confdefs.h. */
10242 main ()
10246 return 0;
10248 _ACEOF
10249 if ac_fn_c_try_link "$LINENO"; then :
10251 lt_aix_libpath_sed='
10252 /Import File Strings/,/^$/ {
10253 /^0/ {
10254 s/^0 *\(.*\)$/\1/
10258 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10259 # Check for a 64-bit object if we didn't find anything.
10260 if test -z "$aix_libpath"; then
10261 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10264 rm -f core conftest.err conftest.$ac_objext \
10265 conftest$ac_exeext conftest.$ac_ext
10266 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10268 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10269 # Warning - without using the other run time loading flags,
10270 # -berok will link without error, but may produce a broken library.
10271 no_undefined_flag=' ${wl}-bernotok'
10272 allow_undefined_flag=' ${wl}-berok'
10273 if test "$with_gnu_ld" = yes; then
10274 # We only use this code for GNU lds that support --whole-archive.
10275 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10276 else
10277 # Exported symbols can be pulled into shared objects from archives
10278 whole_archive_flag_spec='$convenience'
10280 archive_cmds_need_lc=yes
10281 # This is similar to how AIX traditionally builds its shared libraries.
10282 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'
10287 amigaos*)
10288 case $host_cpu in
10289 powerpc)
10290 # see comment about AmigaOS4 .so support
10291 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10292 archive_expsym_cmds=''
10294 m68k)
10295 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)'
10296 hardcode_libdir_flag_spec='-L$libdir'
10297 hardcode_minus_L=yes
10299 esac
10302 bsdi[45]*)
10303 export_dynamic_flag_spec=-rdynamic
10306 cygwin* | mingw* | pw32* | cegcc*)
10307 # When not using gcc, we currently assume that we are using
10308 # Microsoft Visual C++.
10309 # hardcode_libdir_flag_spec is actually meaningless, as there is
10310 # no search path for DLLs.
10311 hardcode_libdir_flag_spec=' '
10312 allow_undefined_flag=unsupported
10313 # Tell ltmain to make .lib files, not .a files.
10314 libext=lib
10315 # Tell ltmain to make .dll files, not .so files.
10316 shrext_cmds=".dll"
10317 # FIXME: Setting linknames here is a bad hack.
10318 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10319 # The linker will automatically build a .lib file if we build a DLL.
10320 old_archive_from_new_cmds='true'
10321 # FIXME: Should let the user specify the lib program.
10322 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10323 fix_srcfile_path='`cygpath -w "$srcfile"`'
10324 enable_shared_with_static_runtimes=yes
10327 darwin* | rhapsody*)
10330 archive_cmds_need_lc=no
10331 hardcode_direct=no
10332 hardcode_automatic=yes
10333 hardcode_shlibpath_var=unsupported
10334 if test "$lt_cv_ld_force_load" = "yes"; then
10335 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\"`'
10336 else
10337 whole_archive_flag_spec=''
10339 link_all_deplibs=yes
10340 allow_undefined_flag="$_lt_dar_allow_undefined"
10341 case $cc_basename in
10342 ifort*) _lt_dar_can_shared=yes ;;
10343 *) _lt_dar_can_shared=$GCC ;;
10344 esac
10345 if test "$_lt_dar_can_shared" = "yes"; then
10346 output_verbose_link_cmd=func_echo_all
10347 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10348 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10349 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}"
10350 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}"
10352 else
10353 ld_shlibs=no
10358 dgux*)
10359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10360 hardcode_libdir_flag_spec='-L$libdir'
10361 hardcode_shlibpath_var=no
10364 freebsd1*)
10365 ld_shlibs=no
10368 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10369 # support. Future versions do this automatically, but an explicit c++rt0.o
10370 # does not break anything, and helps significantly (at the cost of a little
10371 # extra space).
10372 freebsd2.2*)
10373 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10374 hardcode_libdir_flag_spec='-R$libdir'
10375 hardcode_direct=yes
10376 hardcode_shlibpath_var=no
10379 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10380 freebsd2*)
10381 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10382 hardcode_direct=yes
10383 hardcode_minus_L=yes
10384 hardcode_shlibpath_var=no
10387 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10388 freebsd* | dragonfly*)
10389 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10390 hardcode_libdir_flag_spec='-R$libdir'
10391 hardcode_direct=yes
10392 hardcode_shlibpath_var=no
10395 hpux9*)
10396 if test "$GCC" = yes; then
10397 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'
10398 else
10399 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'
10401 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10402 hardcode_libdir_separator=:
10403 hardcode_direct=yes
10405 # hardcode_minus_L: Not really in the search PATH,
10406 # but as the default location of the library.
10407 hardcode_minus_L=yes
10408 export_dynamic_flag_spec='${wl}-E'
10411 hpux10*)
10412 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10413 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10414 else
10415 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10417 if test "$with_gnu_ld" = no; then
10418 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10419 hardcode_libdir_flag_spec_ld='+b $libdir'
10420 hardcode_libdir_separator=:
10421 hardcode_direct=yes
10422 hardcode_direct_absolute=yes
10423 export_dynamic_flag_spec='${wl}-E'
10424 # hardcode_minus_L: Not really in the search PATH,
10425 # but as the default location of the library.
10426 hardcode_minus_L=yes
10430 hpux11*)
10431 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10432 case $host_cpu in
10433 hppa*64*)
10434 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10436 ia64*)
10437 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10440 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10442 esac
10443 else
10444 case $host_cpu in
10445 hppa*64*)
10446 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10448 ia64*)
10449 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10453 # Older versions of the 11.00 compiler do not understand -b yet
10454 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10456 $as_echo_n "checking if $CC understands -b... " >&6; }
10457 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10458 $as_echo_n "(cached) " >&6
10459 else
10460 lt_cv_prog_compiler__b=no
10461 save_LDFLAGS="$LDFLAGS"
10462 LDFLAGS="$LDFLAGS -b"
10463 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10464 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10465 # The linker can only warn and ignore the option if not recognized
10466 # So say no if there are warnings
10467 if test -s conftest.err; then
10468 # Append any errors to the config.log.
10469 cat conftest.err 1>&5
10470 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10471 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10472 if diff conftest.exp conftest.er2 >/dev/null; then
10473 lt_cv_prog_compiler__b=yes
10475 else
10476 lt_cv_prog_compiler__b=yes
10479 $RM -r conftest*
10480 LDFLAGS="$save_LDFLAGS"
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10484 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10486 if test x"$lt_cv_prog_compiler__b" = xyes; then
10487 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10488 else
10489 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10493 esac
10495 if test "$with_gnu_ld" = no; then
10496 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10497 hardcode_libdir_separator=:
10499 case $host_cpu in
10500 hppa*64*|ia64*)
10501 hardcode_direct=no
10502 hardcode_shlibpath_var=no
10505 hardcode_direct=yes
10506 hardcode_direct_absolute=yes
10507 export_dynamic_flag_spec='${wl}-E'
10509 # hardcode_minus_L: Not really in the search PATH,
10510 # but as the default location of the library.
10511 hardcode_minus_L=yes
10513 esac
10517 irix5* | irix6* | nonstopux*)
10518 if test "$GCC" = yes; then
10519 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'
10520 # Try to use the -exported_symbol ld option, if it does not
10521 # work, assume that -exports_file does not work either and
10522 # implicitly export all symbols.
10523 save_LDFLAGS="$LDFLAGS"
10524 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10526 /* end confdefs.h. */
10527 int foo(void) {}
10528 _ACEOF
10529 if ac_fn_c_try_link "$LINENO"; then :
10530 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'
10533 rm -f core conftest.err conftest.$ac_objext \
10534 conftest$ac_exeext conftest.$ac_ext
10535 LDFLAGS="$save_LDFLAGS"
10536 else
10537 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'
10538 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'
10540 archive_cmds_need_lc='no'
10541 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10542 hardcode_libdir_separator=:
10543 inherit_rpath=yes
10544 link_all_deplibs=yes
10547 netbsd*)
10548 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10549 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10550 else
10551 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10553 hardcode_libdir_flag_spec='-R$libdir'
10554 hardcode_direct=yes
10555 hardcode_shlibpath_var=no
10558 newsos6)
10559 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10560 hardcode_direct=yes
10561 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10562 hardcode_libdir_separator=:
10563 hardcode_shlibpath_var=no
10566 *nto* | *qnx*)
10569 openbsd*)
10570 if test -f /usr/libexec/ld.so; then
10571 hardcode_direct=yes
10572 hardcode_shlibpath_var=no
10573 hardcode_direct_absolute=yes
10574 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10575 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10576 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10577 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10578 export_dynamic_flag_spec='${wl}-E'
10579 else
10580 case $host_os in
10581 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10582 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10583 hardcode_libdir_flag_spec='-R$libdir'
10586 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10587 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10589 esac
10591 else
10592 ld_shlibs=no
10596 os2*)
10597 hardcode_libdir_flag_spec='-L$libdir'
10598 hardcode_minus_L=yes
10599 allow_undefined_flag=unsupported
10600 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'
10601 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10604 osf3*)
10605 if test "$GCC" = yes; then
10606 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10607 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'
10608 else
10609 allow_undefined_flag=' -expect_unresolved \*'
10610 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'
10612 archive_cmds_need_lc='no'
10613 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10614 hardcode_libdir_separator=:
10617 osf4* | osf5*) # as osf3* with the addition of -msym flag
10618 if test "$GCC" = yes; then
10619 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10620 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'
10621 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10622 else
10623 allow_undefined_flag=' -expect_unresolved \*'
10624 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'
10625 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~
10626 $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'
10628 # Both c and cxx compiler support -rpath directly
10629 hardcode_libdir_flag_spec='-rpath $libdir'
10631 archive_cmds_need_lc='no'
10632 hardcode_libdir_separator=:
10635 solaris*)
10636 no_undefined_flag=' -z defs'
10637 if test "$GCC" = yes; then
10638 wlarc='${wl}'
10639 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10640 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10641 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10642 else
10643 case `$CC -V 2>&1` in
10644 *"Compilers 5.0"*)
10645 wlarc=''
10646 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10647 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10648 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10651 wlarc='${wl}'
10652 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10653 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10654 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10656 esac
10658 hardcode_libdir_flag_spec='-R$libdir'
10659 hardcode_shlibpath_var=no
10660 case $host_os in
10661 solaris2.[0-5] | solaris2.[0-5].*) ;;
10663 # The compiler driver will combine and reorder linker options,
10664 # but understands `-z linker_flag'. GCC discards it without `$wl',
10665 # but is careful enough not to reorder.
10666 # Supported since Solaris 2.6 (maybe 2.5.1?)
10667 if test "$GCC" = yes; then
10668 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10669 else
10670 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10673 esac
10674 link_all_deplibs=yes
10677 sunos4*)
10678 if test "x$host_vendor" = xsequent; then
10679 # Use $CC to link under sequent, because it throws in some extra .o
10680 # files that make .init and .fini sections work.
10681 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10682 else
10683 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10685 hardcode_libdir_flag_spec='-L$libdir'
10686 hardcode_direct=yes
10687 hardcode_minus_L=yes
10688 hardcode_shlibpath_var=no
10691 sysv4)
10692 case $host_vendor in
10693 sni)
10694 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10695 hardcode_direct=yes # is this really true???
10697 siemens)
10698 ## LD is ld it makes a PLAMLIB
10699 ## CC just makes a GrossModule.
10700 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10701 reload_cmds='$CC -r -o $output$reload_objs'
10702 hardcode_direct=no
10704 motorola)
10705 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10706 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10708 esac
10709 runpath_var='LD_RUN_PATH'
10710 hardcode_shlibpath_var=no
10713 sysv4.3*)
10714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10715 hardcode_shlibpath_var=no
10716 export_dynamic_flag_spec='-Bexport'
10719 sysv4*MP*)
10720 if test -d /usr/nec; then
10721 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10722 hardcode_shlibpath_var=no
10723 runpath_var=LD_RUN_PATH
10724 hardcode_runpath_var=yes
10725 ld_shlibs=yes
10729 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10730 no_undefined_flag='${wl}-z,text'
10731 archive_cmds_need_lc=no
10732 hardcode_shlibpath_var=no
10733 runpath_var='LD_RUN_PATH'
10735 if test "$GCC" = yes; then
10736 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10737 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10738 else
10739 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10740 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10744 sysv5* | sco3.2v5* | sco5v6*)
10745 # Note: We can NOT use -z defs as we might desire, because we do not
10746 # link with -lc, and that would cause any symbols used from libc to
10747 # always be unresolved, which means just about no library would
10748 # ever link correctly. If we're not using GNU ld we use -z text
10749 # though, which does catch some bad symbols but isn't as heavy-handed
10750 # as -z defs.
10751 no_undefined_flag='${wl}-z,text'
10752 allow_undefined_flag='${wl}-z,nodefs'
10753 archive_cmds_need_lc=no
10754 hardcode_shlibpath_var=no
10755 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10756 hardcode_libdir_separator=':'
10757 link_all_deplibs=yes
10758 export_dynamic_flag_spec='${wl}-Bexport'
10759 runpath_var='LD_RUN_PATH'
10761 if test "$GCC" = yes; then
10762 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10763 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10764 else
10765 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10766 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10770 uts4*)
10771 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10772 hardcode_libdir_flag_spec='-L$libdir'
10773 hardcode_shlibpath_var=no
10777 ld_shlibs=no
10779 esac
10781 if test x$host_vendor = xsni; then
10782 case $host in
10783 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10784 export_dynamic_flag_spec='${wl}-Blargedynsym'
10786 esac
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10791 $as_echo "$ld_shlibs" >&6; }
10792 test "$ld_shlibs" = no && can_build_shared=no
10794 with_gnu_ld=$with_gnu_ld
10811 # Do we need to explicitly link libc?
10813 case "x$archive_cmds_need_lc" in
10814 x|xyes)
10815 # Assume -lc should be added
10816 archive_cmds_need_lc=yes
10818 if test "$enable_shared" = yes && test "$GCC" = yes; then
10819 case $archive_cmds in
10820 *'~'*)
10821 # FIXME: we may have to deal with multi-command sequences.
10823 '$CC '*)
10824 # Test whether the compiler implicitly links with -lc since on some
10825 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10826 # to ld, don't add -lc before -lgcc.
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10828 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10829 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10830 $as_echo_n "(cached) " >&6
10831 else
10832 $RM conftest*
10833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10835 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10836 (eval $ac_compile) 2>&5
10837 ac_status=$?
10838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10839 test $ac_status = 0; } 2>conftest.err; then
10840 soname=conftest
10841 lib=conftest
10842 libobjs=conftest.$ac_objext
10843 deplibs=
10844 wl=$lt_prog_compiler_wl
10845 pic_flag=$lt_prog_compiler_pic
10846 compiler_flags=-v
10847 linker_flags=-v
10848 verstring=
10849 output_objdir=.
10850 libname=conftest
10851 lt_save_allow_undefined_flag=$allow_undefined_flag
10852 allow_undefined_flag=
10853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10854 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10855 ac_status=$?
10856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10857 test $ac_status = 0; }
10858 then
10859 lt_cv_archive_cmds_need_lc=no
10860 else
10861 lt_cv_archive_cmds_need_lc=yes
10863 allow_undefined_flag=$lt_save_allow_undefined_flag
10864 else
10865 cat conftest.err 1>&5
10867 $RM conftest*
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10871 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10872 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10874 esac
10877 esac
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11036 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11038 if test "$GCC" = yes; then
11039 case $host_os in
11040 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11041 *) lt_awk_arg="/^libraries:/" ;;
11042 esac
11043 case $host_os in
11044 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11045 *) lt_sed_strip_eq="s,=/,/,g" ;;
11046 esac
11047 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11048 case $lt_search_path_spec in
11049 *\;*)
11050 # if the path contains ";" then we assume it to be the separator
11051 # otherwise default to the standard path separator (i.e. ":") - it is
11052 # assumed that no part of a normal pathname contains ";" but that should
11053 # okay in the real world where ";" in dirpaths is itself problematic.
11054 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11057 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11059 esac
11060 # Ok, now we have the path, separated by spaces, we can step through it
11061 # and add multilib dir if necessary.
11062 lt_tmp_lt_search_path_spec=
11063 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11064 for lt_sys_path in $lt_search_path_spec; do
11065 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11066 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11067 else
11068 test -d "$lt_sys_path" && \
11069 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11071 done
11072 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11073 BEGIN {RS=" "; FS="/|\n";} {
11074 lt_foo="";
11075 lt_count=0;
11076 for (lt_i = NF; lt_i > 0; lt_i--) {
11077 if ($lt_i != "" && $lt_i != ".") {
11078 if ($lt_i == "..") {
11079 lt_count++;
11080 } else {
11081 if (lt_count == 0) {
11082 lt_foo="/" $lt_i lt_foo;
11083 } else {
11084 lt_count--;
11089 if (lt_foo != "") { lt_freq[lt_foo]++; }
11090 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11092 # AWK program above erroneously prepends '/' to C:/dos/paths
11093 # for these hosts.
11094 case $host_os in
11095 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11096 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11097 esac
11098 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11099 else
11100 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11102 library_names_spec=
11103 libname_spec='lib$name'
11104 soname_spec=
11105 shrext_cmds=".so"
11106 postinstall_cmds=
11107 postuninstall_cmds=
11108 finish_cmds=
11109 finish_eval=
11110 shlibpath_var=
11111 shlibpath_overrides_runpath=unknown
11112 version_type=none
11113 dynamic_linker="$host_os ld.so"
11114 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11115 need_lib_prefix=unknown
11116 hardcode_into_libs=no
11118 # when you set need_version to no, make sure it does not cause -set_version
11119 # flags to be left without arguments
11120 need_version=unknown
11122 case $host_os in
11123 aix3*)
11124 version_type=linux
11125 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11126 shlibpath_var=LIBPATH
11128 # AIX 3 has no versioning support, so we append a major version to the name.
11129 soname_spec='${libname}${release}${shared_ext}$major'
11132 aix[4-9]*)
11133 version_type=linux
11134 need_lib_prefix=no
11135 need_version=no
11136 hardcode_into_libs=yes
11137 if test "$host_cpu" = ia64; then
11138 # AIX 5 supports IA64
11139 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11140 shlibpath_var=LD_LIBRARY_PATH
11141 else
11142 # With GCC up to 2.95.x, collect2 would create an import file
11143 # for dependence libraries. The import file would start with
11144 # the line `#! .'. This would cause the generated library to
11145 # depend on `.', always an invalid library. This was fixed in
11146 # development snapshots of GCC prior to 3.0.
11147 case $host_os in
11148 aix4 | aix4.[01] | aix4.[01].*)
11149 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11150 echo ' yes '
11151 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11153 else
11154 can_build_shared=no
11157 esac
11158 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11159 # soname into executable. Probably we can add versioning support to
11160 # collect2, so additional links can be useful in future.
11161 if test "$aix_use_runtimelinking" = yes; then
11162 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11163 # instead of lib<name>.a to let people know that these are not
11164 # typical AIX shared libraries.
11165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11166 else
11167 # We preserve .a as extension for shared libraries through AIX4.2
11168 # and later when we are not doing run time linking.
11169 library_names_spec='${libname}${release}.a $libname.a'
11170 soname_spec='${libname}${release}${shared_ext}$major'
11172 shlibpath_var=LIBPATH
11176 amigaos*)
11177 case $host_cpu in
11178 powerpc)
11179 # Since July 2007 AmigaOS4 officially supports .so libraries.
11180 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11183 m68k)
11184 library_names_spec='$libname.ixlibrary $libname.a'
11185 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11186 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'
11188 esac
11191 beos*)
11192 library_names_spec='${libname}${shared_ext}'
11193 dynamic_linker="$host_os ld.so"
11194 shlibpath_var=LIBRARY_PATH
11197 bsdi[45]*)
11198 version_type=linux
11199 need_version=no
11200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11201 soname_spec='${libname}${release}${shared_ext}$major'
11202 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11203 shlibpath_var=LD_LIBRARY_PATH
11204 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11205 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11206 # the default ld.so.conf also contains /usr/contrib/lib and
11207 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11208 # libtool to hard-code these into programs
11211 cygwin* | mingw* | pw32* | cegcc*)
11212 version_type=windows
11213 shrext_cmds=".dll"
11214 need_version=no
11215 need_lib_prefix=no
11217 case $GCC,$host_os in
11218 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11219 library_names_spec='$libname.dll.a'
11220 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11221 postinstall_cmds='base_file=`basename \${file}`~
11222 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11223 dldir=$destdir/`dirname \$dlpath`~
11224 test -d \$dldir || mkdir -p \$dldir~
11225 $install_prog $dir/$dlname \$dldir/$dlname~
11226 chmod a+x \$dldir/$dlname~
11227 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11228 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11230 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11231 dlpath=$dir/\$dldll~
11232 $RM \$dlpath'
11233 shlibpath_overrides_runpath=yes
11235 case $host_os in
11236 cygwin*)
11237 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11238 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11240 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11242 mingw* | cegcc*)
11243 # MinGW DLLs use traditional 'lib' prefix
11244 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11246 pw32*)
11247 # pw32 DLLs use 'pw' prefix rather than 'lib'
11248 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11250 esac
11254 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11256 esac
11257 dynamic_linker='Win32 ld.exe'
11258 # FIXME: first we should search . and the directory the executable is in
11259 shlibpath_var=PATH
11262 darwin* | rhapsody*)
11263 dynamic_linker="$host_os dyld"
11264 version_type=darwin
11265 need_lib_prefix=no
11266 need_version=no
11267 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11268 soname_spec='${libname}${release}${major}$shared_ext'
11269 shlibpath_overrides_runpath=yes
11270 shlibpath_var=DYLD_LIBRARY_PATH
11271 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11273 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11274 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11277 dgux*)
11278 version_type=linux
11279 need_lib_prefix=no
11280 need_version=no
11281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11282 soname_spec='${libname}${release}${shared_ext}$major'
11283 shlibpath_var=LD_LIBRARY_PATH
11286 freebsd1*)
11287 dynamic_linker=no
11290 freebsd* | dragonfly*)
11291 # DragonFly does not have aout. When/if they implement a new
11292 # versioning mechanism, adjust this.
11293 if test -x /usr/bin/objformat; then
11294 objformat=`/usr/bin/objformat`
11295 else
11296 case $host_os in
11297 freebsd[123]*) objformat=aout ;;
11298 *) objformat=elf ;;
11299 esac
11301 version_type=freebsd-$objformat
11302 case $version_type in
11303 freebsd-elf*)
11304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11305 need_version=no
11306 need_lib_prefix=no
11308 freebsd-*)
11309 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11310 need_version=yes
11312 esac
11313 shlibpath_var=LD_LIBRARY_PATH
11314 case $host_os in
11315 freebsd2*)
11316 shlibpath_overrides_runpath=yes
11318 freebsd3.[01]* | freebsdelf3.[01]*)
11319 shlibpath_overrides_runpath=yes
11320 hardcode_into_libs=yes
11322 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11323 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11324 shlibpath_overrides_runpath=no
11325 hardcode_into_libs=yes
11327 *) # from 4.6 on, and DragonFly
11328 shlibpath_overrides_runpath=yes
11329 hardcode_into_libs=yes
11331 esac
11334 gnu*)
11335 version_type=linux
11336 need_lib_prefix=no
11337 need_version=no
11338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11339 soname_spec='${libname}${release}${shared_ext}$major'
11340 shlibpath_var=LD_LIBRARY_PATH
11341 hardcode_into_libs=yes
11344 haiku*)
11345 version_type=linux
11346 need_lib_prefix=no
11347 need_version=no
11348 dynamic_linker="$host_os runtime_loader"
11349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11350 soname_spec='${libname}${release}${shared_ext}$major'
11351 shlibpath_var=LIBRARY_PATH
11352 shlibpath_overrides_runpath=yes
11353 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11354 hardcode_into_libs=yes
11357 hpux9* | hpux10* | hpux11*)
11358 # Give a soname corresponding to the major version so that dld.sl refuses to
11359 # link against other versions.
11360 version_type=sunos
11361 need_lib_prefix=no
11362 need_version=no
11363 case $host_cpu in
11364 ia64*)
11365 shrext_cmds='.so'
11366 hardcode_into_libs=yes
11367 dynamic_linker="$host_os dld.so"
11368 shlibpath_var=LD_LIBRARY_PATH
11369 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11371 soname_spec='${libname}${release}${shared_ext}$major'
11372 if test "X$HPUX_IA64_MODE" = X32; then
11373 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11374 else
11375 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11377 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11379 hppa*64*)
11380 shrext_cmds='.sl'
11381 hardcode_into_libs=yes
11382 dynamic_linker="$host_os dld.sl"
11383 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11384 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11386 soname_spec='${libname}${release}${shared_ext}$major'
11387 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11388 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11391 shrext_cmds='.sl'
11392 dynamic_linker="$host_os dld.sl"
11393 shlibpath_var=SHLIB_PATH
11394 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11396 soname_spec='${libname}${release}${shared_ext}$major'
11398 esac
11399 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11400 postinstall_cmds='chmod 555 $lib'
11401 # or fails outright, so override atomically:
11402 install_override_mode=555
11405 interix[3-9]*)
11406 version_type=linux
11407 need_lib_prefix=no
11408 need_version=no
11409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11410 soname_spec='${libname}${release}${shared_ext}$major'
11411 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11412 shlibpath_var=LD_LIBRARY_PATH
11413 shlibpath_overrides_runpath=no
11414 hardcode_into_libs=yes
11417 irix5* | irix6* | nonstopux*)
11418 case $host_os in
11419 nonstopux*) version_type=nonstopux ;;
11421 if test "$lt_cv_prog_gnu_ld" = yes; then
11422 version_type=linux
11423 else
11424 version_type=irix
11425 fi ;;
11426 esac
11427 need_lib_prefix=no
11428 need_version=no
11429 soname_spec='${libname}${release}${shared_ext}$major'
11430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11431 case $host_os in
11432 irix5* | nonstopux*)
11433 libsuff= shlibsuff=
11436 case $LD in # libtool.m4 will add one of these switches to LD
11437 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11438 libsuff= shlibsuff= libmagic=32-bit;;
11439 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11440 libsuff=32 shlibsuff=N32 libmagic=N32;;
11441 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11442 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11443 *) libsuff= shlibsuff= libmagic=never-match;;
11444 esac
11446 esac
11447 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11448 shlibpath_overrides_runpath=no
11449 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11450 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11451 hardcode_into_libs=yes
11454 # No shared lib support for Linux oldld, aout, or coff.
11455 linux*oldld* | linux*aout* | linux*coff*)
11456 dynamic_linker=no
11459 # This must be Linux ELF.
11460 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11461 version_type=linux
11462 need_lib_prefix=no
11463 need_version=no
11464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11465 soname_spec='${libname}${release}${shared_ext}$major'
11466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11467 shlibpath_var=LD_LIBRARY_PATH
11468 shlibpath_overrides_runpath=no
11470 # Some binutils ld are patched to set DT_RUNPATH
11471 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11472 $as_echo_n "(cached) " >&6
11473 else
11474 lt_cv_shlibpath_overrides_runpath=no
11475 save_LDFLAGS=$LDFLAGS
11476 save_libdir=$libdir
11477 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11478 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11480 /* end confdefs.h. */
11483 main ()
11487 return 0;
11489 _ACEOF
11490 if ac_fn_c_try_link "$LINENO"; then :
11491 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11492 lt_cv_shlibpath_overrides_runpath=yes
11495 rm -f core conftest.err conftest.$ac_objext \
11496 conftest$ac_exeext conftest.$ac_ext
11497 LDFLAGS=$save_LDFLAGS
11498 libdir=$save_libdir
11502 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11504 # This implies no fast_install, which is unacceptable.
11505 # Some rework will be needed to allow for fast_install
11506 # before this can be enabled.
11507 hardcode_into_libs=yes
11509 # Append ld.so.conf contents to the search path
11510 if test -f /etc/ld.so.conf; then
11511 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' ' '`
11512 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11515 # We used to test for /lib/ld.so.1 and disable shared libraries on
11516 # powerpc, because MkLinux only supported shared libraries with the
11517 # GNU dynamic linker. Since this was broken with cross compilers,
11518 # most powerpc-linux boxes support dynamic linking these days and
11519 # people can always --disable-shared, the test was removed, and we
11520 # assume the GNU/Linux dynamic linker is in use.
11521 dynamic_linker='GNU/Linux ld.so'
11524 netbsd*)
11525 version_type=sunos
11526 need_lib_prefix=no
11527 need_version=no
11528 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11531 dynamic_linker='NetBSD (a.out) ld.so'
11532 else
11533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11534 soname_spec='${libname}${release}${shared_ext}$major'
11535 dynamic_linker='NetBSD ld.elf_so'
11537 shlibpath_var=LD_LIBRARY_PATH
11538 shlibpath_overrides_runpath=yes
11539 hardcode_into_libs=yes
11542 newsos6)
11543 version_type=linux
11544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11545 shlibpath_var=LD_LIBRARY_PATH
11546 shlibpath_overrides_runpath=yes
11549 *nto* | *qnx*)
11550 version_type=qnx
11551 need_lib_prefix=no
11552 need_version=no
11553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11554 soname_spec='${libname}${release}${shared_ext}$major'
11555 shlibpath_var=LD_LIBRARY_PATH
11556 shlibpath_overrides_runpath=no
11557 hardcode_into_libs=yes
11558 dynamic_linker='ldqnx.so'
11561 openbsd*)
11562 version_type=sunos
11563 sys_lib_dlsearch_path_spec="/usr/lib"
11564 need_lib_prefix=no
11565 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11566 case $host_os in
11567 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11568 *) need_version=no ;;
11569 esac
11570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11571 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11572 shlibpath_var=LD_LIBRARY_PATH
11573 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11574 case $host_os in
11575 openbsd2.[89] | openbsd2.[89].*)
11576 shlibpath_overrides_runpath=no
11579 shlibpath_overrides_runpath=yes
11581 esac
11582 else
11583 shlibpath_overrides_runpath=yes
11587 os2*)
11588 libname_spec='$name'
11589 shrext_cmds=".dll"
11590 need_lib_prefix=no
11591 library_names_spec='$libname${shared_ext} $libname.a'
11592 dynamic_linker='OS/2 ld.exe'
11593 shlibpath_var=LIBPATH
11596 osf3* | osf4* | osf5*)
11597 version_type=osf
11598 need_lib_prefix=no
11599 need_version=no
11600 soname_spec='${libname}${release}${shared_ext}$major'
11601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11602 shlibpath_var=LD_LIBRARY_PATH
11603 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11604 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11607 rdos*)
11608 dynamic_linker=no
11611 solaris*)
11612 version_type=linux
11613 need_lib_prefix=no
11614 need_version=no
11615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11616 soname_spec='${libname}${release}${shared_ext}$major'
11617 shlibpath_var=LD_LIBRARY_PATH
11618 shlibpath_overrides_runpath=yes
11619 hardcode_into_libs=yes
11620 # ldd complains unless libraries are executable
11621 postinstall_cmds='chmod +x $lib'
11624 sunos4*)
11625 version_type=sunos
11626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11627 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11628 shlibpath_var=LD_LIBRARY_PATH
11629 shlibpath_overrides_runpath=yes
11630 if test "$with_gnu_ld" = yes; then
11631 need_lib_prefix=no
11633 need_version=yes
11636 sysv4 | sysv4.3*)
11637 version_type=linux
11638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11639 soname_spec='${libname}${release}${shared_ext}$major'
11640 shlibpath_var=LD_LIBRARY_PATH
11641 case $host_vendor in
11642 sni)
11643 shlibpath_overrides_runpath=no
11644 need_lib_prefix=no
11645 runpath_var=LD_RUN_PATH
11647 siemens)
11648 need_lib_prefix=no
11650 motorola)
11651 need_lib_prefix=no
11652 need_version=no
11653 shlibpath_overrides_runpath=no
11654 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11656 esac
11659 sysv4*MP*)
11660 if test -d /usr/nec ;then
11661 version_type=linux
11662 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11663 soname_spec='$libname${shared_ext}.$major'
11664 shlibpath_var=LD_LIBRARY_PATH
11668 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11669 version_type=freebsd-elf
11670 need_lib_prefix=no
11671 need_version=no
11672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11673 soname_spec='${libname}${release}${shared_ext}$major'
11674 shlibpath_var=LD_LIBRARY_PATH
11675 shlibpath_overrides_runpath=yes
11676 hardcode_into_libs=yes
11677 if test "$with_gnu_ld" = yes; then
11678 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11679 else
11680 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11681 case $host_os in
11682 sco3.2v5*)
11683 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11685 esac
11687 sys_lib_dlsearch_path_spec='/usr/lib'
11690 tpf*)
11691 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11692 version_type=linux
11693 need_lib_prefix=no
11694 need_version=no
11695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11696 shlibpath_var=LD_LIBRARY_PATH
11697 shlibpath_overrides_runpath=no
11698 hardcode_into_libs=yes
11701 uts4*)
11702 version_type=linux
11703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11704 soname_spec='${libname}${release}${shared_ext}$major'
11705 shlibpath_var=LD_LIBRARY_PATH
11709 dynamic_linker=no
11711 esac
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11713 $as_echo "$dynamic_linker" >&6; }
11714 test "$dynamic_linker" = no && can_build_shared=no
11716 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11717 if test "$GCC" = yes; then
11718 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11721 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11722 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11724 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11725 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11820 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11821 hardcode_action=
11822 if test -n "$hardcode_libdir_flag_spec" ||
11823 test -n "$runpath_var" ||
11824 test "X$hardcode_automatic" = "Xyes" ; then
11826 # We can hardcode non-existent directories.
11827 if test "$hardcode_direct" != no &&
11828 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11829 # have to relink, otherwise we might link with an installed library
11830 # when we should be linking with a yet-to-be-installed one
11831 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11832 test "$hardcode_minus_L" != no; then
11833 # Linking always hardcodes the temporary library directory.
11834 hardcode_action=relink
11835 else
11836 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11837 hardcode_action=immediate
11839 else
11840 # We cannot hardcode anything, or else we can only hardcode existing
11841 # directories.
11842 hardcode_action=unsupported
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11845 $as_echo "$hardcode_action" >&6; }
11847 if test "$hardcode_action" = relink ||
11848 test "$inherit_rpath" = yes; then
11849 # Fast installation is not supported
11850 enable_fast_install=no
11851 elif test "$shlibpath_overrides_runpath" = yes ||
11852 test "$enable_shared" = no; then
11853 # Fast installation is not necessary
11854 enable_fast_install=needless
11862 if test "x$enable_dlopen" != xyes; then
11863 enable_dlopen=unknown
11864 enable_dlopen_self=unknown
11865 enable_dlopen_self_static=unknown
11866 else
11867 lt_cv_dlopen=no
11868 lt_cv_dlopen_libs=
11870 case $host_os in
11871 beos*)
11872 lt_cv_dlopen="load_add_on"
11873 lt_cv_dlopen_libs=
11874 lt_cv_dlopen_self=yes
11877 mingw* | pw32* | cegcc*)
11878 lt_cv_dlopen="LoadLibrary"
11879 lt_cv_dlopen_libs=
11882 cygwin*)
11883 lt_cv_dlopen="dlopen"
11884 lt_cv_dlopen_libs=
11887 darwin*)
11888 # if libdl is installed we need to link against it
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11890 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11891 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11892 $as_echo_n "(cached) " >&6
11893 else
11894 ac_check_lib_save_LIBS=$LIBS
11895 LIBS="-ldl $LIBS"
11896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11897 /* end confdefs.h. */
11899 /* Override any GCC internal prototype to avoid an error.
11900 Use char because int might match the return type of a GCC
11901 builtin and then its argument prototype would still apply. */
11902 #ifdef __cplusplus
11903 extern "C"
11904 #endif
11905 char dlopen ();
11907 main ()
11909 return dlopen ();
11911 return 0;
11913 _ACEOF
11914 if ac_fn_c_try_link "$LINENO"; then :
11915 ac_cv_lib_dl_dlopen=yes
11916 else
11917 ac_cv_lib_dl_dlopen=no
11919 rm -f core conftest.err conftest.$ac_objext \
11920 conftest$ac_exeext conftest.$ac_ext
11921 LIBS=$ac_check_lib_save_LIBS
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11924 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11925 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11926 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11927 else
11929 lt_cv_dlopen="dyld"
11930 lt_cv_dlopen_libs=
11931 lt_cv_dlopen_self=yes
11938 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11939 if test "x$ac_cv_func_shl_load" = x""yes; then :
11940 lt_cv_dlopen="shl_load"
11941 else
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11943 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11944 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11945 $as_echo_n "(cached) " >&6
11946 else
11947 ac_check_lib_save_LIBS=$LIBS
11948 LIBS="-ldld $LIBS"
11949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11950 /* end confdefs.h. */
11952 /* Override any GCC internal prototype to avoid an error.
11953 Use char because int might match the return type of a GCC
11954 builtin and then its argument prototype would still apply. */
11955 #ifdef __cplusplus
11956 extern "C"
11957 #endif
11958 char shl_load ();
11960 main ()
11962 return shl_load ();
11964 return 0;
11966 _ACEOF
11967 if ac_fn_c_try_link "$LINENO"; then :
11968 ac_cv_lib_dld_shl_load=yes
11969 else
11970 ac_cv_lib_dld_shl_load=no
11972 rm -f core conftest.err conftest.$ac_objext \
11973 conftest$ac_exeext conftest.$ac_ext
11974 LIBS=$ac_check_lib_save_LIBS
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11977 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11978 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11979 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11980 else
11981 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11982 if test "x$ac_cv_func_dlopen" = x""yes; then :
11983 lt_cv_dlopen="dlopen"
11984 else
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11986 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11987 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11988 $as_echo_n "(cached) " >&6
11989 else
11990 ac_check_lib_save_LIBS=$LIBS
11991 LIBS="-ldl $LIBS"
11992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11993 /* end confdefs.h. */
11995 /* Override any GCC internal prototype to avoid an error.
11996 Use char because int might match the return type of a GCC
11997 builtin and then its argument prototype would still apply. */
11998 #ifdef __cplusplus
11999 extern "C"
12000 #endif
12001 char dlopen ();
12003 main ()
12005 return dlopen ();
12007 return 0;
12009 _ACEOF
12010 if ac_fn_c_try_link "$LINENO"; then :
12011 ac_cv_lib_dl_dlopen=yes
12012 else
12013 ac_cv_lib_dl_dlopen=no
12015 rm -f core conftest.err conftest.$ac_objext \
12016 conftest$ac_exeext conftest.$ac_ext
12017 LIBS=$ac_check_lib_save_LIBS
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12020 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12021 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12022 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12023 else
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12025 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12026 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12027 $as_echo_n "(cached) " >&6
12028 else
12029 ac_check_lib_save_LIBS=$LIBS
12030 LIBS="-lsvld $LIBS"
12031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12032 /* end confdefs.h. */
12034 /* Override any GCC internal prototype to avoid an error.
12035 Use char because int might match the return type of a GCC
12036 builtin and then its argument prototype would still apply. */
12037 #ifdef __cplusplus
12038 extern "C"
12039 #endif
12040 char dlopen ();
12042 main ()
12044 return dlopen ();
12046 return 0;
12048 _ACEOF
12049 if ac_fn_c_try_link "$LINENO"; then :
12050 ac_cv_lib_svld_dlopen=yes
12051 else
12052 ac_cv_lib_svld_dlopen=no
12054 rm -f core conftest.err conftest.$ac_objext \
12055 conftest$ac_exeext conftest.$ac_ext
12056 LIBS=$ac_check_lib_save_LIBS
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12059 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12060 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12061 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12062 else
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12064 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12065 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12066 $as_echo_n "(cached) " >&6
12067 else
12068 ac_check_lib_save_LIBS=$LIBS
12069 LIBS="-ldld $LIBS"
12070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12071 /* end confdefs.h. */
12073 /* Override any GCC internal prototype to avoid an error.
12074 Use char because int might match the return type of a GCC
12075 builtin and then its argument prototype would still apply. */
12076 #ifdef __cplusplus
12077 extern "C"
12078 #endif
12079 char dld_link ();
12081 main ()
12083 return dld_link ();
12085 return 0;
12087 _ACEOF
12088 if ac_fn_c_try_link "$LINENO"; then :
12089 ac_cv_lib_dld_dld_link=yes
12090 else
12091 ac_cv_lib_dld_dld_link=no
12093 rm -f core conftest.err conftest.$ac_objext \
12094 conftest$ac_exeext conftest.$ac_ext
12095 LIBS=$ac_check_lib_save_LIBS
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12098 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12099 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12100 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12119 esac
12121 if test "x$lt_cv_dlopen" != xno; then
12122 enable_dlopen=yes
12123 else
12124 enable_dlopen=no
12127 case $lt_cv_dlopen in
12128 dlopen)
12129 save_CPPFLAGS="$CPPFLAGS"
12130 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12132 save_LDFLAGS="$LDFLAGS"
12133 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12135 save_LIBS="$LIBS"
12136 LIBS="$lt_cv_dlopen_libs $LIBS"
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12139 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12140 if test "${lt_cv_dlopen_self+set}" = set; then :
12141 $as_echo_n "(cached) " >&6
12142 else
12143 if test "$cross_compiling" = yes; then :
12144 lt_cv_dlopen_self=cross
12145 else
12146 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12147 lt_status=$lt_dlunknown
12148 cat > conftest.$ac_ext <<_LT_EOF
12149 #line 12149 "configure"
12150 #include "confdefs.h"
12152 #if HAVE_DLFCN_H
12153 #include <dlfcn.h>
12154 #endif
12156 #include <stdio.h>
12158 #ifdef RTLD_GLOBAL
12159 # define LT_DLGLOBAL RTLD_GLOBAL
12160 #else
12161 # ifdef DL_GLOBAL
12162 # define LT_DLGLOBAL DL_GLOBAL
12163 # else
12164 # define LT_DLGLOBAL 0
12165 # endif
12166 #endif
12168 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12169 find out it does not work in some platform. */
12170 #ifndef LT_DLLAZY_OR_NOW
12171 # ifdef RTLD_LAZY
12172 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12173 # else
12174 # ifdef DL_LAZY
12175 # define LT_DLLAZY_OR_NOW DL_LAZY
12176 # else
12177 # ifdef RTLD_NOW
12178 # define LT_DLLAZY_OR_NOW RTLD_NOW
12179 # else
12180 # ifdef DL_NOW
12181 # define LT_DLLAZY_OR_NOW DL_NOW
12182 # else
12183 # define LT_DLLAZY_OR_NOW 0
12184 # endif
12185 # endif
12186 # endif
12187 # endif
12188 #endif
12190 /* When -fvisbility=hidden is used, assume the code has been annotated
12191 correspondingly for the symbols needed. */
12192 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12193 void fnord () __attribute__((visibility("default")));
12194 #endif
12196 void fnord () { int i=42; }
12197 int main ()
12199 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12200 int status = $lt_dlunknown;
12202 if (self)
12204 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12205 else
12207 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12208 else puts (dlerror ());
12210 /* dlclose (self); */
12212 else
12213 puts (dlerror ());
12215 return status;
12217 _LT_EOF
12218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12219 (eval $ac_link) 2>&5
12220 ac_status=$?
12221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12222 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12223 (./conftest; exit; ) >&5 2>/dev/null
12224 lt_status=$?
12225 case x$lt_status in
12226 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12227 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12228 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12229 esac
12230 else :
12231 # compilation failed
12232 lt_cv_dlopen_self=no
12235 rm -fr conftest*
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12240 $as_echo "$lt_cv_dlopen_self" >&6; }
12242 if test "x$lt_cv_dlopen_self" = xyes; then
12243 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12245 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12246 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12247 $as_echo_n "(cached) " >&6
12248 else
12249 if test "$cross_compiling" = yes; then :
12250 lt_cv_dlopen_self_static=cross
12251 else
12252 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12253 lt_status=$lt_dlunknown
12254 cat > conftest.$ac_ext <<_LT_EOF
12255 #line 12255 "configure"
12256 #include "confdefs.h"
12258 #if HAVE_DLFCN_H
12259 #include <dlfcn.h>
12260 #endif
12262 #include <stdio.h>
12264 #ifdef RTLD_GLOBAL
12265 # define LT_DLGLOBAL RTLD_GLOBAL
12266 #else
12267 # ifdef DL_GLOBAL
12268 # define LT_DLGLOBAL DL_GLOBAL
12269 # else
12270 # define LT_DLGLOBAL 0
12271 # endif
12272 #endif
12274 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12275 find out it does not work in some platform. */
12276 #ifndef LT_DLLAZY_OR_NOW
12277 # ifdef RTLD_LAZY
12278 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12279 # else
12280 # ifdef DL_LAZY
12281 # define LT_DLLAZY_OR_NOW DL_LAZY
12282 # else
12283 # ifdef RTLD_NOW
12284 # define LT_DLLAZY_OR_NOW RTLD_NOW
12285 # else
12286 # ifdef DL_NOW
12287 # define LT_DLLAZY_OR_NOW DL_NOW
12288 # else
12289 # define LT_DLLAZY_OR_NOW 0
12290 # endif
12291 # endif
12292 # endif
12293 # endif
12294 #endif
12296 /* When -fvisbility=hidden is used, assume the code has been annotated
12297 correspondingly for the symbols needed. */
12298 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12299 void fnord () __attribute__((visibility("default")));
12300 #endif
12302 void fnord () { int i=42; }
12303 int main ()
12305 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12306 int status = $lt_dlunknown;
12308 if (self)
12310 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12311 else
12313 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12314 else puts (dlerror ());
12316 /* dlclose (self); */
12318 else
12319 puts (dlerror ());
12321 return status;
12323 _LT_EOF
12324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12325 (eval $ac_link) 2>&5
12326 ac_status=$?
12327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12328 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12329 (./conftest; exit; ) >&5 2>/dev/null
12330 lt_status=$?
12331 case x$lt_status in
12332 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12333 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12334 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12335 esac
12336 else :
12337 # compilation failed
12338 lt_cv_dlopen_self_static=no
12341 rm -fr conftest*
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12346 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12349 CPPFLAGS="$save_CPPFLAGS"
12350 LDFLAGS="$save_LDFLAGS"
12351 LIBS="$save_LIBS"
12353 esac
12355 case $lt_cv_dlopen_self in
12356 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12357 *) enable_dlopen_self=unknown ;;
12358 esac
12360 case $lt_cv_dlopen_self_static in
12361 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12362 *) enable_dlopen_self_static=unknown ;;
12363 esac
12382 striplib=
12383 old_striplib=
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12385 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12386 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12387 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12388 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12390 $as_echo "yes" >&6; }
12391 else
12392 # FIXME - insert some real tests, host_os isn't really good enough
12393 case $host_os in
12394 darwin*)
12395 if test -n "$STRIP" ; then
12396 striplib="$STRIP -x"
12397 old_striplib="$STRIP -S"
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12399 $as_echo "yes" >&6; }
12400 else
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12402 $as_echo "no" >&6; }
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12407 $as_echo "no" >&6; }
12409 esac
12423 # Report which library types will actually be built
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12425 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12427 $as_echo "$can_build_shared" >&6; }
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12430 $as_echo_n "checking whether to build shared libraries... " >&6; }
12431 test "$can_build_shared" = "no" && enable_shared=no
12433 # On AIX, shared libraries and static libraries use the same namespace, and
12434 # are all built from PIC.
12435 case $host_os in
12436 aix3*)
12437 test "$enable_shared" = yes && enable_static=no
12438 if test -n "$RANLIB"; then
12439 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12440 postinstall_cmds='$RANLIB $lib'
12444 aix[4-9]*)
12445 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12446 test "$enable_shared" = yes && enable_static=no
12449 esac
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12451 $as_echo "$enable_shared" >&6; }
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12454 $as_echo_n "checking whether to build static libraries... " >&6; }
12455 # Make sure either enable_shared or enable_static is yes.
12456 test "$enable_shared" = yes || enable_static=yes
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12458 $as_echo "$enable_static" >&6; }
12464 ac_ext=c
12465 ac_cpp='$CPP $CPPFLAGS'
12466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12470 CC="$lt_save_CC"
12472 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12473 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12474 (test "X$CXX" != "Xg++"))) ; then
12475 ac_ext=cpp
12476 ac_cpp='$CXXCPP $CPPFLAGS'
12477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12481 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12482 if test -z "$CXXCPP"; then
12483 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12484 $as_echo_n "(cached) " >&6
12485 else
12486 # Double quotes because CXXCPP needs to be expanded
12487 for CXXCPP in "$CXX -E" "/lib/cpp"
12489 ac_preproc_ok=false
12490 for ac_cxx_preproc_warn_flag in '' yes
12492 # Use a header file that comes with gcc, so configuring glibc
12493 # with a fresh cross-compiler works.
12494 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12495 # <limits.h> exists even on freestanding compilers.
12496 # On the NeXT, cc -E runs the code through the compiler's parser,
12497 # not just through cpp. "Syntax error" is here to catch this case.
12498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12499 /* end confdefs.h. */
12500 #ifdef __STDC__
12501 # include <limits.h>
12502 #else
12503 # include <assert.h>
12504 #endif
12505 Syntax error
12506 _ACEOF
12507 if ac_fn_cxx_try_cpp "$LINENO"; then :
12509 else
12510 # Broken: fails on valid input.
12511 continue
12513 rm -f conftest.err conftest.$ac_ext
12515 # OK, works on sane cases. Now check whether nonexistent headers
12516 # can be detected and how.
12517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12518 /* end confdefs.h. */
12519 #include <ac_nonexistent.h>
12520 _ACEOF
12521 if ac_fn_cxx_try_cpp "$LINENO"; then :
12522 # Broken: success on invalid input.
12523 continue
12524 else
12525 # Passes both tests.
12526 ac_preproc_ok=:
12527 break
12529 rm -f conftest.err conftest.$ac_ext
12531 done
12532 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12533 rm -f conftest.err conftest.$ac_ext
12534 if $ac_preproc_ok; then :
12535 break
12538 done
12539 ac_cv_prog_CXXCPP=$CXXCPP
12542 CXXCPP=$ac_cv_prog_CXXCPP
12543 else
12544 ac_cv_prog_CXXCPP=$CXXCPP
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12547 $as_echo "$CXXCPP" >&6; }
12548 ac_preproc_ok=false
12549 for ac_cxx_preproc_warn_flag in '' yes
12551 # Use a header file that comes with gcc, so configuring glibc
12552 # with a fresh cross-compiler works.
12553 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12554 # <limits.h> exists even on freestanding compilers.
12555 # On the NeXT, cc -E runs the code through the compiler's parser,
12556 # not just through cpp. "Syntax error" is here to catch this case.
12557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558 /* end confdefs.h. */
12559 #ifdef __STDC__
12560 # include <limits.h>
12561 #else
12562 # include <assert.h>
12563 #endif
12564 Syntax error
12565 _ACEOF
12566 if ac_fn_cxx_try_cpp "$LINENO"; then :
12568 else
12569 # Broken: fails on valid input.
12570 continue
12572 rm -f conftest.err conftest.$ac_ext
12574 # OK, works on sane cases. Now check whether nonexistent headers
12575 # can be detected and how.
12576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12577 /* end confdefs.h. */
12578 #include <ac_nonexistent.h>
12579 _ACEOF
12580 if ac_fn_cxx_try_cpp "$LINENO"; then :
12581 # Broken: success on invalid input.
12582 continue
12583 else
12584 # Passes both tests.
12585 ac_preproc_ok=:
12586 break
12588 rm -f conftest.err conftest.$ac_ext
12590 done
12591 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12592 rm -f conftest.err conftest.$ac_ext
12593 if $ac_preproc_ok; then :
12595 else
12596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12598 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12599 See \`config.log' for more details." "$LINENO" 5; }
12602 ac_ext=c
12603 ac_cpp='$CPP $CPPFLAGS'
12604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12608 else
12609 _lt_caught_CXX_error=yes
12612 ac_ext=cpp
12613 ac_cpp='$CXXCPP $CPPFLAGS'
12614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12618 archive_cmds_need_lc_CXX=no
12619 allow_undefined_flag_CXX=
12620 always_export_symbols_CXX=no
12621 archive_expsym_cmds_CXX=
12622 compiler_needs_object_CXX=no
12623 export_dynamic_flag_spec_CXX=
12624 hardcode_direct_CXX=no
12625 hardcode_direct_absolute_CXX=no
12626 hardcode_libdir_flag_spec_CXX=
12627 hardcode_libdir_flag_spec_ld_CXX=
12628 hardcode_libdir_separator_CXX=
12629 hardcode_minus_L_CXX=no
12630 hardcode_shlibpath_var_CXX=unsupported
12631 hardcode_automatic_CXX=no
12632 inherit_rpath_CXX=no
12633 module_cmds_CXX=
12634 module_expsym_cmds_CXX=
12635 link_all_deplibs_CXX=unknown
12636 old_archive_cmds_CXX=$old_archive_cmds
12637 reload_flag_CXX=$reload_flag
12638 reload_cmds_CXX=$reload_cmds
12639 no_undefined_flag_CXX=
12640 whole_archive_flag_spec_CXX=
12641 enable_shared_with_static_runtimes_CXX=no
12643 # Source file extension for C++ test sources.
12644 ac_ext=cpp
12646 # Object file extension for compiled C++ test sources.
12647 objext=o
12648 objext_CXX=$objext
12650 # No sense in running all these tests if we already determined that
12651 # the CXX compiler isn't working. Some variables (like enable_shared)
12652 # are currently assumed to apply to all compilers on this platform,
12653 # and will be corrupted by setting them based on a non-working compiler.
12654 if test "$_lt_caught_CXX_error" != yes; then
12655 # Code to be used in simple compile tests
12656 lt_simple_compile_test_code="int some_variable = 0;"
12658 # Code to be used in simple link tests
12659 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12661 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12668 # If no C compiler was specified, use CC.
12669 LTCC=${LTCC-"$CC"}
12671 # If no C compiler flags were specified, use CFLAGS.
12672 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12674 # Allow CC to be a program name with arguments.
12675 compiler=$CC
12678 # save warnings/boilerplate of simple test code
12679 ac_outfile=conftest.$ac_objext
12680 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12681 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12682 _lt_compiler_boilerplate=`cat conftest.err`
12683 $RM conftest*
12685 ac_outfile=conftest.$ac_objext
12686 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12687 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12688 _lt_linker_boilerplate=`cat conftest.err`
12689 $RM -r conftest*
12692 # Allow CC to be a program name with arguments.
12693 lt_save_CC=$CC
12694 lt_save_LD=$LD
12695 lt_save_GCC=$GCC
12696 GCC=$GXX
12697 lt_save_with_gnu_ld=$with_gnu_ld
12698 lt_save_path_LD=$lt_cv_path_LD
12699 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12700 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12701 else
12702 $as_unset lt_cv_prog_gnu_ld
12704 if test -n "${lt_cv_path_LDCXX+set}"; then
12705 lt_cv_path_LD=$lt_cv_path_LDCXX
12706 else
12707 $as_unset lt_cv_path_LD
12709 test -z "${LDCXX+set}" || LD=$LDCXX
12710 CC=${CXX-"c++"}
12711 compiler=$CC
12712 compiler_CXX=$CC
12713 for cc_temp in $compiler""; do
12714 case $cc_temp in
12715 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12716 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12717 \-*) ;;
12718 *) break;;
12719 esac
12720 done
12721 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12724 if test -n "$compiler"; then
12725 # We don't want -fno-exception when compiling C++ code, so set the
12726 # no_builtin_flag separately
12727 if test "$GXX" = yes; then
12728 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12729 else
12730 lt_prog_compiler_no_builtin_flag_CXX=
12733 if test "$GXX" = yes; then
12734 # Set up default GNU C++ configuration
12738 # Check whether --with-gnu-ld was given.
12739 if test "${with_gnu_ld+set}" = set; then :
12740 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12741 else
12742 with_gnu_ld=no
12745 ac_prog=ld
12746 if test "$GCC" = yes; then
12747 # Check if gcc -print-prog-name=ld gives a path.
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12749 $as_echo_n "checking for ld used by $CC... " >&6; }
12750 case $host in
12751 *-*-mingw*)
12752 # gcc leaves a trailing carriage return which upsets mingw
12753 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12755 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12756 esac
12757 case $ac_prog in
12758 # Accept absolute paths.
12759 [\\/]* | ?:[\\/]*)
12760 re_direlt='/[^/][^/]*/\.\./'
12761 # Canonicalize the pathname of ld
12762 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12763 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12764 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12765 done
12766 test -z "$LD" && LD="$ac_prog"
12769 # If it fails, then pretend we aren't using GCC.
12770 ac_prog=ld
12773 # If it is relative, then search for the first ld in PATH.
12774 with_gnu_ld=unknown
12776 esac
12777 elif test "$with_gnu_ld" = yes; then
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12779 $as_echo_n "checking for GNU ld... " >&6; }
12780 else
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12782 $as_echo_n "checking for non-GNU ld... " >&6; }
12784 if test "${lt_cv_path_LD+set}" = set; then :
12785 $as_echo_n "(cached) " >&6
12786 else
12787 if test -z "$LD"; then
12788 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12789 for ac_dir in $PATH; do
12790 IFS="$lt_save_ifs"
12791 test -z "$ac_dir" && ac_dir=.
12792 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12793 lt_cv_path_LD="$ac_dir/$ac_prog"
12794 # Check to see if the program is GNU ld. I'd rather use --version,
12795 # but apparently some variants of GNU ld only accept -v.
12796 # Break only if it was the GNU/non-GNU ld that we prefer.
12797 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12798 *GNU* | *'with BFD'*)
12799 test "$with_gnu_ld" != no && break
12802 test "$with_gnu_ld" != yes && break
12804 esac
12806 done
12807 IFS="$lt_save_ifs"
12808 else
12809 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12813 LD="$lt_cv_path_LD"
12814 if test -n "$LD"; then
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12816 $as_echo "$LD" >&6; }
12817 else
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12819 $as_echo "no" >&6; }
12821 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12823 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12824 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12825 $as_echo_n "(cached) " >&6
12826 else
12827 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12828 case `$LD -v 2>&1 </dev/null` in
12829 *GNU* | *'with BFD'*)
12830 lt_cv_prog_gnu_ld=yes
12833 lt_cv_prog_gnu_ld=no
12835 esac
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12838 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12839 with_gnu_ld=$lt_cv_prog_gnu_ld
12847 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12848 # archiving commands below assume that GNU ld is being used.
12849 if test "$with_gnu_ld" = yes; then
12850 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12851 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12853 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12854 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12856 # If archive_cmds runs LD, not CC, wlarc should be empty
12857 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12858 # investigate it a little bit more. (MM)
12859 wlarc='${wl}'
12861 # ancient GNU ld didn't support --whole-archive et. al.
12862 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12863 $GREP 'no-whole-archive' > /dev/null; then
12864 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12865 else
12866 whole_archive_flag_spec_CXX=
12868 else
12869 with_gnu_ld=no
12870 wlarc=
12872 # A generic and very simple default shared library creation
12873 # command for GNU C++ for the case where it uses the native
12874 # linker, instead of GNU ld. If possible, this setting should
12875 # overridden to take advantage of the native linker features on
12876 # the platform it is being used on.
12877 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12880 # Commands to make compiler produce verbose output that lists
12881 # what "hidden" libraries, object files and flags are used when
12882 # linking a shared library.
12883 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12885 else
12886 GXX=no
12887 with_gnu_ld=no
12888 wlarc=
12891 # PORTME: fill in a description of your system's C++ link characteristics
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12893 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12894 ld_shlibs_CXX=yes
12895 case $host_os in
12896 aix3*)
12897 # FIXME: insert proper C++ library support
12898 ld_shlibs_CXX=no
12900 aix[4-9]*)
12901 if test "$host_cpu" = ia64; then
12902 # On IA64, the linker does run time linking by default, so we don't
12903 # have to do anything special.
12904 aix_use_runtimelinking=no
12905 exp_sym_flag='-Bexport'
12906 no_entry_flag=""
12907 else
12908 aix_use_runtimelinking=no
12910 # Test if we are trying to use run time linking or normal
12911 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12912 # need to do runtime linking.
12913 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12914 for ld_flag in $LDFLAGS; do
12915 case $ld_flag in
12916 *-brtl*)
12917 aix_use_runtimelinking=yes
12918 break
12920 esac
12921 done
12923 esac
12925 exp_sym_flag='-bexport'
12926 no_entry_flag='-bnoentry'
12929 # When large executables or shared objects are built, AIX ld can
12930 # have problems creating the table of contents. If linking a library
12931 # or program results in "error TOC overflow" add -mminimal-toc to
12932 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12933 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12935 archive_cmds_CXX=''
12936 hardcode_direct_CXX=yes
12937 hardcode_direct_absolute_CXX=yes
12938 hardcode_libdir_separator_CXX=':'
12939 link_all_deplibs_CXX=yes
12940 file_list_spec_CXX='${wl}-f,'
12942 if test "$GXX" = yes; then
12943 case $host_os in aix4.[012]|aix4.[012].*)
12944 # We only want to do this on AIX 4.2 and lower, the check
12945 # below for broken collect2 doesn't work under 4.3+
12946 collect2name=`${CC} -print-prog-name=collect2`
12947 if test -f "$collect2name" &&
12948 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12949 then
12950 # We have reworked collect2
12952 else
12953 # We have old collect2
12954 hardcode_direct_CXX=unsupported
12955 # It fails to find uninstalled libraries when the uninstalled
12956 # path is not listed in the libpath. Setting hardcode_minus_L
12957 # to unsupported forces relinking
12958 hardcode_minus_L_CXX=yes
12959 hardcode_libdir_flag_spec_CXX='-L$libdir'
12960 hardcode_libdir_separator_CXX=
12962 esac
12963 shared_flag='-shared'
12964 if test "$aix_use_runtimelinking" = yes; then
12965 shared_flag="$shared_flag "'${wl}-G'
12967 else
12968 # not using gcc
12969 if test "$host_cpu" = ia64; then
12970 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12971 # chokes on -Wl,-G. The following line is correct:
12972 shared_flag='-G'
12973 else
12974 if test "$aix_use_runtimelinking" = yes; then
12975 shared_flag='${wl}-G'
12976 else
12977 shared_flag='${wl}-bM:SRE'
12982 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12983 # It seems that -bexpall does not export symbols beginning with
12984 # underscore (_), so it is better to generate a list of symbols to
12985 # export.
12986 always_export_symbols_CXX=yes
12987 if test "$aix_use_runtimelinking" = yes; then
12988 # Warning - without using the other runtime loading flags (-brtl),
12989 # -berok will link without error, but may produce a broken library.
12990 allow_undefined_flag_CXX='-berok'
12991 # Determine the default libpath from the value encoded in an empty
12992 # executable.
12993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12994 /* end confdefs.h. */
12997 main ()
13001 return 0;
13003 _ACEOF
13004 if ac_fn_cxx_try_link "$LINENO"; then :
13006 lt_aix_libpath_sed='
13007 /Import File Strings/,/^$/ {
13008 /^0/ {
13009 s/^0 *\(.*\)$/\1/
13013 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13014 # Check for a 64-bit object if we didn't find anything.
13015 if test -z "$aix_libpath"; then
13016 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13019 rm -f core conftest.err conftest.$ac_objext \
13020 conftest$ac_exeext conftest.$ac_ext
13021 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13023 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13025 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"
13026 else
13027 if test "$host_cpu" = ia64; then
13028 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13029 allow_undefined_flag_CXX="-z nodefs"
13030 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"
13031 else
13032 # Determine the default libpath from the value encoded in an
13033 # empty executable.
13034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13035 /* end confdefs.h. */
13038 main ()
13042 return 0;
13044 _ACEOF
13045 if ac_fn_cxx_try_link "$LINENO"; then :
13047 lt_aix_libpath_sed='
13048 /Import File Strings/,/^$/ {
13049 /^0/ {
13050 s/^0 *\(.*\)$/\1/
13054 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13055 # Check for a 64-bit object if we didn't find anything.
13056 if test -z "$aix_libpath"; then
13057 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13060 rm -f core conftest.err conftest.$ac_objext \
13061 conftest$ac_exeext conftest.$ac_ext
13062 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13064 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13065 # Warning - without using the other run time loading flags,
13066 # -berok will link without error, but may produce a broken library.
13067 no_undefined_flag_CXX=' ${wl}-bernotok'
13068 allow_undefined_flag_CXX=' ${wl}-berok'
13069 if test "$with_gnu_ld" = yes; then
13070 # We only use this code for GNU lds that support --whole-archive.
13071 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13072 else
13073 # Exported symbols can be pulled into shared objects from archives
13074 whole_archive_flag_spec_CXX='$convenience'
13076 archive_cmds_need_lc_CXX=yes
13077 # This is similar to how AIX traditionally builds its shared
13078 # libraries.
13079 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'
13084 beos*)
13085 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13086 allow_undefined_flag_CXX=unsupported
13087 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13088 # support --undefined. This deserves some investigation. FIXME
13089 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13090 else
13091 ld_shlibs_CXX=no
13095 chorus*)
13096 case $cc_basename in
13098 # FIXME: insert proper C++ library support
13099 ld_shlibs_CXX=no
13101 esac
13104 cygwin* | mingw* | pw32* | cegcc*)
13105 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13106 # as there is no search path for DLLs.
13107 hardcode_libdir_flag_spec_CXX='-L$libdir'
13108 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13109 allow_undefined_flag_CXX=unsupported
13110 always_export_symbols_CXX=no
13111 enable_shared_with_static_runtimes_CXX=yes
13113 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13114 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'
13115 # If the export-symbols file already is a .def file (1st line
13116 # is EXPORTS), use it as is; otherwise, prepend...
13117 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13118 cp $export_symbols $output_objdir/$soname.def;
13119 else
13120 echo EXPORTS > $output_objdir/$soname.def;
13121 cat $export_symbols >> $output_objdir/$soname.def;
13123 $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'
13124 else
13125 ld_shlibs_CXX=no
13128 darwin* | rhapsody*)
13131 archive_cmds_need_lc_CXX=no
13132 hardcode_direct_CXX=no
13133 hardcode_automatic_CXX=yes
13134 hardcode_shlibpath_var_CXX=unsupported
13135 if test "$lt_cv_ld_force_load" = "yes"; then
13136 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\"`'
13137 else
13138 whole_archive_flag_spec_CXX=''
13140 link_all_deplibs_CXX=yes
13141 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13142 case $cc_basename in
13143 ifort*) _lt_dar_can_shared=yes ;;
13144 *) _lt_dar_can_shared=$GCC ;;
13145 esac
13146 if test "$_lt_dar_can_shared" = "yes"; then
13147 output_verbose_link_cmd=func_echo_all
13148 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}"
13149 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13150 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}"
13151 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}"
13152 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13153 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}"
13154 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}"
13157 else
13158 ld_shlibs_CXX=no
13163 dgux*)
13164 case $cc_basename in
13165 ec++*)
13166 # FIXME: insert proper C++ library support
13167 ld_shlibs_CXX=no
13169 ghcx*)
13170 # Green Hills C++ Compiler
13171 # FIXME: insert proper C++ library support
13172 ld_shlibs_CXX=no
13175 # FIXME: insert proper C++ library support
13176 ld_shlibs_CXX=no
13178 esac
13181 freebsd[12]*)
13182 # C++ shared libraries reported to be fairly broken before
13183 # switch to ELF
13184 ld_shlibs_CXX=no
13187 freebsd-elf*)
13188 archive_cmds_need_lc_CXX=no
13191 freebsd* | dragonfly*)
13192 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13193 # conventions
13194 ld_shlibs_CXX=yes
13197 gnu*)
13200 haiku*)
13201 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13202 link_all_deplibs_CXX=yes
13205 hpux9*)
13206 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13207 hardcode_libdir_separator_CXX=:
13208 export_dynamic_flag_spec_CXX='${wl}-E'
13209 hardcode_direct_CXX=yes
13210 hardcode_minus_L_CXX=yes # Not in the search PATH,
13211 # but as the default
13212 # location of the library.
13214 case $cc_basename in
13215 CC*)
13216 # FIXME: insert proper C++ library support
13217 ld_shlibs_CXX=no
13219 aCC*)
13220 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'
13221 # Commands to make compiler produce verbose output that lists
13222 # what "hidden" libraries, object files and flags are used when
13223 # linking a shared library.
13225 # There doesn't appear to be a way to prevent this compiler from
13226 # explicitly linking system object files so we need to strip them
13227 # from the output so that they don't get included in the library
13228 # dependencies.
13229 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"'
13232 if test "$GXX" = yes; then
13233 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'
13234 else
13235 # FIXME: insert proper C++ library support
13236 ld_shlibs_CXX=no
13239 esac
13242 hpux10*|hpux11*)
13243 if test $with_gnu_ld = no; then
13244 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13245 hardcode_libdir_separator_CXX=:
13247 case $host_cpu in
13248 hppa*64*|ia64*)
13251 export_dynamic_flag_spec_CXX='${wl}-E'
13253 esac
13255 case $host_cpu in
13256 hppa*64*|ia64*)
13257 hardcode_direct_CXX=no
13258 hardcode_shlibpath_var_CXX=no
13261 hardcode_direct_CXX=yes
13262 hardcode_direct_absolute_CXX=yes
13263 hardcode_minus_L_CXX=yes # Not in the search PATH,
13264 # but as the default
13265 # location of the library.
13267 esac
13269 case $cc_basename in
13270 CC*)
13271 # FIXME: insert proper C++ library support
13272 ld_shlibs_CXX=no
13274 aCC*)
13275 case $host_cpu in
13276 hppa*64*)
13277 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13279 ia64*)
13280 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13283 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13285 esac
13286 # Commands to make compiler produce verbose output that lists
13287 # what "hidden" libraries, object files and flags are used when
13288 # linking a shared library.
13290 # There doesn't appear to be a way to prevent this compiler from
13291 # explicitly linking system object files so we need to strip them
13292 # from the output so that they don't get included in the library
13293 # dependencies.
13294 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"'
13297 if test "$GXX" = yes; then
13298 if test $with_gnu_ld = no; then
13299 case $host_cpu in
13300 hppa*64*)
13301 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13303 ia64*)
13304 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13307 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'
13309 esac
13311 else
13312 # FIXME: insert proper C++ library support
13313 ld_shlibs_CXX=no
13316 esac
13319 interix[3-9]*)
13320 hardcode_direct_CXX=no
13321 hardcode_shlibpath_var_CXX=no
13322 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13323 export_dynamic_flag_spec_CXX='${wl}-E'
13324 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13325 # Instead, shared libraries are loaded at an image base (0x10000000 by
13326 # default) and relocated if they conflict, which is a slow very memory
13327 # consuming and fragmenting process. To avoid this, we pick a random,
13328 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13329 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13330 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'
13331 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'
13333 irix5* | irix6*)
13334 case $cc_basename in
13335 CC*)
13336 # SGI C++
13337 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'
13339 # Archives containing C++ object files must be created using
13340 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13341 # necessary to make sure instantiated templates are included
13342 # in the archive.
13343 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13346 if test "$GXX" = yes; then
13347 if test "$with_gnu_ld" = no; then
13348 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'
13349 else
13350 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'
13353 link_all_deplibs_CXX=yes
13355 esac
13356 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13357 hardcode_libdir_separator_CXX=:
13358 inherit_rpath_CXX=yes
13361 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13362 case $cc_basename in
13363 KCC*)
13364 # Kuck and Associates, Inc. (KAI) C++ Compiler
13366 # KCC will only create a shared library if the output file
13367 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13368 # to its proper name (with version) after linking.
13369 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'
13370 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'
13371 # Commands to make compiler produce verbose output that lists
13372 # what "hidden" libraries, object files and flags are used when
13373 # linking a shared library.
13375 # There doesn't appear to be a way to prevent this compiler from
13376 # explicitly linking system object files so we need to strip them
13377 # from the output so that they don't get included in the library
13378 # dependencies.
13379 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"'
13381 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13382 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13384 # Archives containing C++ object files must be created using
13385 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13386 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13388 icpc* | ecpc* )
13389 # Intel C++
13390 with_gnu_ld=yes
13391 # version 8.0 and above of icpc choke on multiply defined symbols
13392 # if we add $predep_objects and $postdep_objects, however 7.1 and
13393 # earlier do not add the objects themselves.
13394 case `$CC -V 2>&1` in
13395 *"Version 7."*)
13396 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13397 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'
13399 *) # Version 8.0 or newer
13400 tmp_idyn=
13401 case $host_cpu in
13402 ia64*) tmp_idyn=' -i_dynamic';;
13403 esac
13404 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13405 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'
13407 esac
13408 archive_cmds_need_lc_CXX=no
13409 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13410 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13411 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13413 pgCC* | pgcpp*)
13414 # Portland Group C++ compiler
13415 case `$CC -V` in
13416 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13417 prelink_cmds_CXX='tpldir=Template.dir~
13418 rm -rf $tpldir~
13419 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13420 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13421 old_archive_cmds_CXX='tpldir=Template.dir~
13422 rm -rf $tpldir~
13423 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13424 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13425 $RANLIB $oldlib'
13426 archive_cmds_CXX='tpldir=Template.dir~
13427 rm -rf $tpldir~
13428 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13429 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13430 archive_expsym_cmds_CXX='tpldir=Template.dir~
13431 rm -rf $tpldir~
13432 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13433 $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'
13435 *) # Version 6 and above use weak symbols
13436 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13437 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'
13439 esac
13441 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13442 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13443 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'
13445 cxx*)
13446 # Compaq C++
13447 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13448 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'
13450 runpath_var=LD_RUN_PATH
13451 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13452 hardcode_libdir_separator_CXX=:
13454 # Commands to make compiler produce verbose output that lists
13455 # what "hidden" libraries, object files and flags are used when
13456 # linking a shared library.
13458 # There doesn't appear to be a way to prevent this compiler from
13459 # explicitly linking system object files so we need to strip them
13460 # from the output so that they don't get included in the library
13461 # dependencies.
13462 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'
13464 xl* | mpixl* | bgxl*)
13465 # IBM XL 8.0 on PPC, with GNU ld
13466 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13467 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13468 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13469 if test "x$supports_anon_versioning" = xyes; then
13470 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13471 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13472 echo "local: *; };" >> $output_objdir/$libname.ver~
13473 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13477 case `$CC -V 2>&1 | sed 5q` in
13478 *Sun\ C*)
13479 # Sun C++ 5.9
13480 no_undefined_flag_CXX=' -zdefs'
13481 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13482 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'
13483 hardcode_libdir_flag_spec_CXX='-R$libdir'
13484 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'
13485 compiler_needs_object_CXX=yes
13487 # Not sure whether something based on
13488 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13489 # would be better.
13490 output_verbose_link_cmd='func_echo_all'
13492 # Archives containing C++ object files must be created using
13493 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13494 # necessary to make sure instantiated templates are included
13495 # in the archive.
13496 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13498 esac
13500 esac
13503 lynxos*)
13504 # FIXME: insert proper C++ library support
13505 ld_shlibs_CXX=no
13508 m88k*)
13509 # FIXME: insert proper C++ library support
13510 ld_shlibs_CXX=no
13513 mvs*)
13514 case $cc_basename in
13515 cxx*)
13516 # FIXME: insert proper C++ library support
13517 ld_shlibs_CXX=no
13520 # FIXME: insert proper C++ library support
13521 ld_shlibs_CXX=no
13523 esac
13526 netbsd*)
13527 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13528 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13529 wlarc=
13530 hardcode_libdir_flag_spec_CXX='-R$libdir'
13531 hardcode_direct_CXX=yes
13532 hardcode_shlibpath_var_CXX=no
13534 # Workaround some broken pre-1.5 toolchains
13535 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13538 *nto* | *qnx*)
13539 ld_shlibs_CXX=yes
13542 openbsd2*)
13543 # C++ shared libraries are fairly broken
13544 ld_shlibs_CXX=no
13547 openbsd*)
13548 if test -f /usr/libexec/ld.so; then
13549 hardcode_direct_CXX=yes
13550 hardcode_shlibpath_var_CXX=no
13551 hardcode_direct_absolute_CXX=yes
13552 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13553 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13554 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13555 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13556 export_dynamic_flag_spec_CXX='${wl}-E'
13557 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13559 output_verbose_link_cmd=func_echo_all
13560 else
13561 ld_shlibs_CXX=no
13565 osf3* | osf4* | osf5*)
13566 case $cc_basename in
13567 KCC*)
13568 # Kuck and Associates, Inc. (KAI) C++ Compiler
13570 # KCC will only create a shared library if the output file
13571 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13572 # to its proper name (with version) after linking.
13573 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'
13575 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13576 hardcode_libdir_separator_CXX=:
13578 # Archives containing C++ object files must be created using
13579 # the KAI C++ compiler.
13580 case $host in
13581 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13582 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13583 esac
13585 RCC*)
13586 # Rational C++ 2.4.1
13587 # FIXME: insert proper C++ library support
13588 ld_shlibs_CXX=no
13590 cxx*)
13591 case $host in
13592 osf3*)
13593 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13594 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'
13595 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13598 allow_undefined_flag_CXX=' -expect_unresolved \*'
13599 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'
13600 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13601 echo "-hidden">> $lib.exp~
13602 $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~
13603 $RM $lib.exp'
13604 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13606 esac
13608 hardcode_libdir_separator_CXX=:
13610 # Commands to make compiler produce verbose output that lists
13611 # what "hidden" libraries, object files and flags are used when
13612 # linking a shared library.
13614 # There doesn't appear to be a way to prevent this compiler from
13615 # explicitly linking system object files so we need to strip them
13616 # from the output so that they don't get included in the library
13617 # dependencies.
13618 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"'
13621 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13622 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13623 case $host in
13624 osf3*)
13625 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'
13628 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'
13630 esac
13632 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13633 hardcode_libdir_separator_CXX=:
13635 # Commands to make compiler produce verbose output that lists
13636 # what "hidden" libraries, object files and flags are used when
13637 # linking a shared library.
13638 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13640 else
13641 # FIXME: insert proper C++ library support
13642 ld_shlibs_CXX=no
13645 esac
13648 psos*)
13649 # FIXME: insert proper C++ library support
13650 ld_shlibs_CXX=no
13653 sunos4*)
13654 case $cc_basename in
13655 CC*)
13656 # Sun C++ 4.x
13657 # FIXME: insert proper C++ library support
13658 ld_shlibs_CXX=no
13660 lcc*)
13661 # Lucid
13662 # FIXME: insert proper C++ library support
13663 ld_shlibs_CXX=no
13666 # FIXME: insert proper C++ library support
13667 ld_shlibs_CXX=no
13669 esac
13672 solaris*)
13673 case $cc_basename in
13674 CC*)
13675 # Sun C++ 4.2, 5.x and Centerline C++
13676 archive_cmds_need_lc_CXX=yes
13677 no_undefined_flag_CXX=' -zdefs'
13678 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13679 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13680 $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'
13682 hardcode_libdir_flag_spec_CXX='-R$libdir'
13683 hardcode_shlibpath_var_CXX=no
13684 case $host_os in
13685 solaris2.[0-5] | solaris2.[0-5].*) ;;
13687 # The compiler driver will combine and reorder linker options,
13688 # but understands `-z linker_flag'.
13689 # Supported since Solaris 2.6 (maybe 2.5.1?)
13690 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13692 esac
13693 link_all_deplibs_CXX=yes
13695 output_verbose_link_cmd='func_echo_all'
13697 # Archives containing C++ object files must be created using
13698 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13699 # necessary to make sure instantiated templates are included
13700 # in the archive.
13701 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13703 gcx*)
13704 # Green Hills C++ Compiler
13705 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13707 # The C++ compiler must be used to create the archive.
13708 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13711 # GNU C++ compiler with Solaris linker
13712 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13713 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13714 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13715 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13716 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13717 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13719 # Commands to make compiler produce verbose output that lists
13720 # what "hidden" libraries, object files and flags are used when
13721 # linking a shared library.
13722 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13723 else
13724 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13725 # platform.
13726 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13727 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13728 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13730 # Commands to make compiler produce verbose output that lists
13731 # what "hidden" libraries, object files and flags are used when
13732 # linking a shared library.
13733 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13736 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13737 case $host_os in
13738 solaris2.[0-5] | solaris2.[0-5].*) ;;
13740 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13742 esac
13745 esac
13748 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13749 no_undefined_flag_CXX='${wl}-z,text'
13750 archive_cmds_need_lc_CXX=no
13751 hardcode_shlibpath_var_CXX=no
13752 runpath_var='LD_RUN_PATH'
13754 case $cc_basename in
13755 CC*)
13756 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13757 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13760 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13761 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13763 esac
13766 sysv5* | sco3.2v5* | sco5v6*)
13767 # Note: We can NOT use -z defs as we might desire, because we do not
13768 # link with -lc, and that would cause any symbols used from libc to
13769 # always be unresolved, which means just about no library would
13770 # ever link correctly. If we're not using GNU ld we use -z text
13771 # though, which does catch some bad symbols but isn't as heavy-handed
13772 # as -z defs.
13773 no_undefined_flag_CXX='${wl}-z,text'
13774 allow_undefined_flag_CXX='${wl}-z,nodefs'
13775 archive_cmds_need_lc_CXX=no
13776 hardcode_shlibpath_var_CXX=no
13777 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13778 hardcode_libdir_separator_CXX=':'
13779 link_all_deplibs_CXX=yes
13780 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13781 runpath_var='LD_RUN_PATH'
13783 case $cc_basename in
13784 CC*)
13785 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13786 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13787 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13788 '"$old_archive_cmds_CXX"
13789 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13790 '"$reload_cmds_CXX"
13793 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13794 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13796 esac
13799 tandem*)
13800 case $cc_basename in
13801 NCC*)
13802 # NonStop-UX NCC 3.20
13803 # FIXME: insert proper C++ library support
13804 ld_shlibs_CXX=no
13807 # FIXME: insert proper C++ library support
13808 ld_shlibs_CXX=no
13810 esac
13813 vxworks*)
13814 # FIXME: insert proper C++ library support
13815 ld_shlibs_CXX=no
13819 # FIXME: insert proper C++ library support
13820 ld_shlibs_CXX=no
13822 esac
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13825 $as_echo "$ld_shlibs_CXX" >&6; }
13826 test "$ld_shlibs_CXX" = no && can_build_shared=no
13828 GCC_CXX="$GXX"
13829 LD_CXX="$LD"
13831 ## CAVEAT EMPTOR:
13832 ## There is no encapsulation within the following macros, do not change
13833 ## the running order or otherwise move them around unless you know exactly
13834 ## what you are doing...
13835 # Dependencies to place before and after the object being linked:
13836 predep_objects_CXX=
13837 postdep_objects_CXX=
13838 predeps_CXX=
13839 postdeps_CXX=
13840 compiler_lib_search_path_CXX=
13842 cat > conftest.$ac_ext <<_LT_EOF
13843 class Foo
13845 public:
13846 Foo (void) { a = 0; }
13847 private:
13848 int a;
13850 _LT_EOF
13852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13853 (eval $ac_compile) 2>&5
13854 ac_status=$?
13855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13856 test $ac_status = 0; }; then
13857 # Parse the compiler output and extract the necessary
13858 # objects, libraries and library flags.
13860 # Sentinel used to keep track of whether or not we are before
13861 # the conftest object file.
13862 pre_test_object_deps_done=no
13864 for p in `eval "$output_verbose_link_cmd"`; do
13865 case $p in
13867 -L* | -R* | -l*)
13868 # Some compilers place space between "-{L,R}" and the path.
13869 # Remove the space.
13870 if test $p = "-L" ||
13871 test $p = "-R"; then
13872 prev=$p
13873 continue
13874 else
13875 prev=
13878 if test "$pre_test_object_deps_done" = no; then
13879 case $p in
13880 -L* | -R*)
13881 # Internal compiler library paths should come after those
13882 # provided the user. The postdeps already come after the
13883 # user supplied libs so there is no need to process them.
13884 if test -z "$compiler_lib_search_path_CXX"; then
13885 compiler_lib_search_path_CXX="${prev}${p}"
13886 else
13887 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13890 # The "-l" case would never come before the object being
13891 # linked, so don't bother handling this case.
13892 esac
13893 else
13894 if test -z "$postdeps_CXX"; then
13895 postdeps_CXX="${prev}${p}"
13896 else
13897 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13902 *.$objext)
13903 # This assumes that the test object file only shows up
13904 # once in the compiler output.
13905 if test "$p" = "conftest.$objext"; then
13906 pre_test_object_deps_done=yes
13907 continue
13910 if test "$pre_test_object_deps_done" = no; then
13911 if test -z "$predep_objects_CXX"; then
13912 predep_objects_CXX="$p"
13913 else
13914 predep_objects_CXX="$predep_objects_CXX $p"
13916 else
13917 if test -z "$postdep_objects_CXX"; then
13918 postdep_objects_CXX="$p"
13919 else
13920 postdep_objects_CXX="$postdep_objects_CXX $p"
13925 *) ;; # Ignore the rest.
13927 esac
13928 done
13930 # Clean up.
13931 rm -f a.out a.exe
13932 else
13933 echo "libtool.m4: error: problem compiling CXX test program"
13936 $RM -f confest.$objext
13938 # PORTME: override above test on systems where it is broken
13939 case $host_os in
13940 interix[3-9]*)
13941 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13942 # hack all around it, let's just trust "g++" to DTRT.
13943 predep_objects_CXX=
13944 postdep_objects_CXX=
13945 postdeps_CXX=
13948 linux*)
13949 case `$CC -V 2>&1 | sed 5q` in
13950 *Sun\ C*)
13951 # Sun C++ 5.9
13953 # The more standards-conforming stlport4 library is
13954 # incompatible with the Cstd library. Avoid specifying
13955 # it if it's in CXXFLAGS. Ignore libCrun as
13956 # -library=stlport4 depends on it.
13957 case " $CXX $CXXFLAGS " in
13958 *" -library=stlport4 "*)
13959 solaris_use_stlport4=yes
13961 esac
13963 if test "$solaris_use_stlport4" != yes; then
13964 postdeps_CXX='-library=Cstd -library=Crun'
13967 esac
13970 solaris*)
13971 case $cc_basename in
13972 CC*)
13973 # The more standards-conforming stlport4 library is
13974 # incompatible with the Cstd library. Avoid specifying
13975 # it if it's in CXXFLAGS. Ignore libCrun as
13976 # -library=stlport4 depends on it.
13977 case " $CXX $CXXFLAGS " in
13978 *" -library=stlport4 "*)
13979 solaris_use_stlport4=yes
13981 esac
13983 # Adding this requires a known-good setup of shared libraries for
13984 # Sun compiler versions before 5.6, else PIC objects from an old
13985 # archive will be linked into the output, leading to subtle bugs.
13986 if test "$solaris_use_stlport4" != yes; then
13987 postdeps_CXX='-library=Cstd -library=Crun'
13990 esac
13992 esac
13995 case " $postdeps_CXX " in
13996 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13997 esac
13998 compiler_lib_search_dirs_CXX=
13999 if test -n "${compiler_lib_search_path_CXX}"; then
14000 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14033 lt_prog_compiler_wl_CXX=
14034 lt_prog_compiler_pic_CXX=
14035 lt_prog_compiler_static_CXX=
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14038 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14040 # C++ specific cases for pic, static, wl, etc.
14041 if test "$GXX" = yes; then
14042 lt_prog_compiler_wl_CXX='-Wl,'
14043 lt_prog_compiler_static_CXX='-static'
14045 case $host_os in
14046 aix*)
14047 # All AIX code is PIC.
14048 if test "$host_cpu" = ia64; then
14049 # AIX 5 now supports IA64 processor
14050 lt_prog_compiler_static_CXX='-Bstatic'
14054 amigaos*)
14055 case $host_cpu in
14056 powerpc)
14057 # see comment about AmigaOS4 .so support
14058 lt_prog_compiler_pic_CXX='-fPIC'
14060 m68k)
14061 # FIXME: we need at least 68020 code to build shared libraries, but
14062 # adding the `-m68020' flag to GCC prevents building anything better,
14063 # like `-m68040'.
14064 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14066 esac
14069 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14070 # PIC is the default for these OSes.
14072 mingw* | cygwin* | os2* | pw32* | cegcc*)
14073 # This hack is so that the source file can tell whether it is being
14074 # built for inclusion in a dll (and should export symbols for example).
14075 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14076 # (--disable-auto-import) libraries
14077 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14079 darwin* | rhapsody*)
14080 # PIC is the default on this platform
14081 # Common symbols not allowed in MH_DYLIB files
14082 lt_prog_compiler_pic_CXX='-fno-common'
14084 *djgpp*)
14085 # DJGPP does not support shared libraries at all
14086 lt_prog_compiler_pic_CXX=
14088 haiku*)
14089 # PIC is the default for Haiku.
14090 # The "-static" flag exists, but is broken.
14091 lt_prog_compiler_static_CXX=
14093 interix[3-9]*)
14094 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14095 # Instead, we relocate shared libraries at runtime.
14097 sysv4*MP*)
14098 if test -d /usr/nec; then
14099 lt_prog_compiler_pic_CXX=-Kconform_pic
14102 hpux*)
14103 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14104 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14105 # sets the default TLS model and affects inlining.
14106 case $host_cpu in
14107 hppa*64*)
14110 lt_prog_compiler_pic_CXX='-fPIC'
14112 esac
14114 *qnx* | *nto*)
14115 # QNX uses GNU C++, but need to define -shared option too, otherwise
14116 # it will coredump.
14117 lt_prog_compiler_pic_CXX='-fPIC -shared'
14120 lt_prog_compiler_pic_CXX='-fPIC'
14122 esac
14123 else
14124 case $host_os in
14125 aix[4-9]*)
14126 # All AIX code is PIC.
14127 if test "$host_cpu" = ia64; then
14128 # AIX 5 now supports IA64 processor
14129 lt_prog_compiler_static_CXX='-Bstatic'
14130 else
14131 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14134 chorus*)
14135 case $cc_basename in
14136 cxch68*)
14137 # Green Hills C++ Compiler
14138 # _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"
14140 esac
14142 dgux*)
14143 case $cc_basename in
14144 ec++*)
14145 lt_prog_compiler_pic_CXX='-KPIC'
14147 ghcx*)
14148 # Green Hills C++ Compiler
14149 lt_prog_compiler_pic_CXX='-pic'
14153 esac
14155 freebsd* | dragonfly*)
14156 # FreeBSD uses GNU C++
14158 hpux9* | hpux10* | hpux11*)
14159 case $cc_basename in
14160 CC*)
14161 lt_prog_compiler_wl_CXX='-Wl,'
14162 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14163 if test "$host_cpu" != ia64; then
14164 lt_prog_compiler_pic_CXX='+Z'
14167 aCC*)
14168 lt_prog_compiler_wl_CXX='-Wl,'
14169 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14170 case $host_cpu in
14171 hppa*64*|ia64*)
14172 # +Z the default
14175 lt_prog_compiler_pic_CXX='+Z'
14177 esac
14181 esac
14183 interix*)
14184 # This is c89, which is MS Visual C++ (no shared libs)
14185 # Anyone wants to do a port?
14187 irix5* | irix6* | nonstopux*)
14188 case $cc_basename in
14189 CC*)
14190 lt_prog_compiler_wl_CXX='-Wl,'
14191 lt_prog_compiler_static_CXX='-non_shared'
14192 # CC pic flag -KPIC is the default.
14196 esac
14198 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14199 case $cc_basename in
14200 KCC*)
14201 # KAI C++ Compiler
14202 lt_prog_compiler_wl_CXX='--backend -Wl,'
14203 lt_prog_compiler_pic_CXX='-fPIC'
14205 ecpc* )
14206 # old Intel C++ for x86_64 which still supported -KPIC.
14207 lt_prog_compiler_wl_CXX='-Wl,'
14208 lt_prog_compiler_pic_CXX='-KPIC'
14209 lt_prog_compiler_static_CXX='-static'
14211 icpc* )
14212 # Intel C++, used to be incompatible with GCC.
14213 # ICC 10 doesn't accept -KPIC any more.
14214 lt_prog_compiler_wl_CXX='-Wl,'
14215 lt_prog_compiler_pic_CXX='-fPIC'
14216 lt_prog_compiler_static_CXX='-static'
14218 pgCC* | pgcpp*)
14219 # Portland Group C++ compiler
14220 lt_prog_compiler_wl_CXX='-Wl,'
14221 lt_prog_compiler_pic_CXX='-fpic'
14222 lt_prog_compiler_static_CXX='-Bstatic'
14224 cxx*)
14225 # Compaq C++
14226 # Make sure the PIC flag is empty. It appears that all Alpha
14227 # Linux and Compaq Tru64 Unix objects are PIC.
14228 lt_prog_compiler_pic_CXX=
14229 lt_prog_compiler_static_CXX='-non_shared'
14231 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14232 # IBM XL 8.0, 9.0 on PPC and BlueGene
14233 lt_prog_compiler_wl_CXX='-Wl,'
14234 lt_prog_compiler_pic_CXX='-qpic'
14235 lt_prog_compiler_static_CXX='-qstaticlink'
14238 case `$CC -V 2>&1 | sed 5q` in
14239 *Sun\ C*)
14240 # Sun C++ 5.9
14241 lt_prog_compiler_pic_CXX='-KPIC'
14242 lt_prog_compiler_static_CXX='-Bstatic'
14243 lt_prog_compiler_wl_CXX='-Qoption ld '
14245 esac
14247 esac
14249 lynxos*)
14251 m88k*)
14253 mvs*)
14254 case $cc_basename in
14255 cxx*)
14256 lt_prog_compiler_pic_CXX='-W c,exportall'
14260 esac
14262 netbsd*)
14264 *qnx* | *nto*)
14265 # QNX uses GNU C++, but need to define -shared option too, otherwise
14266 # it will coredump.
14267 lt_prog_compiler_pic_CXX='-fPIC -shared'
14269 osf3* | osf4* | osf5*)
14270 case $cc_basename in
14271 KCC*)
14272 lt_prog_compiler_wl_CXX='--backend -Wl,'
14274 RCC*)
14275 # Rational C++ 2.4.1
14276 lt_prog_compiler_pic_CXX='-pic'
14278 cxx*)
14279 # Digital/Compaq C++
14280 lt_prog_compiler_wl_CXX='-Wl,'
14281 # Make sure the PIC flag is empty. It appears that all Alpha
14282 # Linux and Compaq Tru64 Unix objects are PIC.
14283 lt_prog_compiler_pic_CXX=
14284 lt_prog_compiler_static_CXX='-non_shared'
14288 esac
14290 psos*)
14292 solaris*)
14293 case $cc_basename in
14294 CC*)
14295 # Sun C++ 4.2, 5.x and Centerline C++
14296 lt_prog_compiler_pic_CXX='-KPIC'
14297 lt_prog_compiler_static_CXX='-Bstatic'
14298 lt_prog_compiler_wl_CXX='-Qoption ld '
14300 gcx*)
14301 # Green Hills C++ Compiler
14302 lt_prog_compiler_pic_CXX='-PIC'
14306 esac
14308 sunos4*)
14309 case $cc_basename in
14310 CC*)
14311 # Sun C++ 4.x
14312 lt_prog_compiler_pic_CXX='-pic'
14313 lt_prog_compiler_static_CXX='-Bstatic'
14315 lcc*)
14316 # Lucid
14317 lt_prog_compiler_pic_CXX='-pic'
14321 esac
14323 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14324 case $cc_basename in
14325 CC*)
14326 lt_prog_compiler_wl_CXX='-Wl,'
14327 lt_prog_compiler_pic_CXX='-KPIC'
14328 lt_prog_compiler_static_CXX='-Bstatic'
14330 esac
14332 tandem*)
14333 case $cc_basename in
14334 NCC*)
14335 # NonStop-UX NCC 3.20
14336 lt_prog_compiler_pic_CXX='-KPIC'
14340 esac
14342 vxworks*)
14345 lt_prog_compiler_can_build_shared_CXX=no
14347 esac
14350 case $host_os in
14351 # For platforms which do not support PIC, -DPIC is meaningless:
14352 *djgpp*)
14353 lt_prog_compiler_pic_CXX=
14356 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14358 esac
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14360 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14365 # Check to make sure the PIC flag actually works.
14367 if test -n "$lt_prog_compiler_pic_CXX"; then
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14369 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14370 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14371 $as_echo_n "(cached) " >&6
14372 else
14373 lt_cv_prog_compiler_pic_works_CXX=no
14374 ac_outfile=conftest.$ac_objext
14375 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14376 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14377 # Insert the option either (1) after the last *FLAGS variable, or
14378 # (2) before a word containing "conftest.", or (3) at the end.
14379 # Note that $ac_compile itself does not contain backslashes and begins
14380 # with a dollar sign (not a hyphen), so the echo should work correctly.
14381 # The option is referenced via a variable to avoid confusing sed.
14382 lt_compile=`echo "$ac_compile" | $SED \
14383 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14384 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14385 -e 's:$: $lt_compiler_flag:'`
14386 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14387 (eval "$lt_compile" 2>conftest.err)
14388 ac_status=$?
14389 cat conftest.err >&5
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 if (exit $ac_status) && test -s "$ac_outfile"; then
14392 # The compiler can only warn and ignore the option if not recognized
14393 # So say no if there are warnings other than the usual output.
14394 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14395 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14396 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14397 lt_cv_prog_compiler_pic_works_CXX=yes
14400 $RM conftest*
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14404 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14406 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14407 case $lt_prog_compiler_pic_CXX in
14408 "" | " "*) ;;
14409 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14410 esac
14411 else
14412 lt_prog_compiler_pic_CXX=
14413 lt_prog_compiler_can_build_shared_CXX=no
14421 # Check to make sure the static flag actually works.
14423 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14425 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14426 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14427 $as_echo_n "(cached) " >&6
14428 else
14429 lt_cv_prog_compiler_static_works_CXX=no
14430 save_LDFLAGS="$LDFLAGS"
14431 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14432 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14433 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14434 # The linker can only warn and ignore the option if not recognized
14435 # So say no if there are warnings
14436 if test -s conftest.err; then
14437 # Append any errors to the config.log.
14438 cat conftest.err 1>&5
14439 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14440 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14441 if diff conftest.exp conftest.er2 >/dev/null; then
14442 lt_cv_prog_compiler_static_works_CXX=yes
14444 else
14445 lt_cv_prog_compiler_static_works_CXX=yes
14448 $RM -r conftest*
14449 LDFLAGS="$save_LDFLAGS"
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14453 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14455 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14457 else
14458 lt_prog_compiler_static_CXX=
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14465 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14466 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14467 $as_echo_n "(cached) " >&6
14468 else
14469 lt_cv_prog_compiler_c_o_CXX=no
14470 $RM -r conftest 2>/dev/null
14471 mkdir conftest
14472 cd conftest
14473 mkdir out
14474 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14476 lt_compiler_flag="-o out/conftest2.$ac_objext"
14477 # Insert the option either (1) after the last *FLAGS variable, or
14478 # (2) before a word containing "conftest.", or (3) at the end.
14479 # Note that $ac_compile itself does not contain backslashes and begins
14480 # with a dollar sign (not a hyphen), so the echo should work correctly.
14481 lt_compile=`echo "$ac_compile" | $SED \
14482 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14483 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14484 -e 's:$: $lt_compiler_flag:'`
14485 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14486 (eval "$lt_compile" 2>out/conftest.err)
14487 ac_status=$?
14488 cat out/conftest.err >&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14491 then
14492 # The compiler can only warn and ignore the option if not recognized
14493 # So say no if there are warnings
14494 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14495 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14496 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14497 lt_cv_prog_compiler_c_o_CXX=yes
14500 chmod u+w . 2>&5
14501 $RM conftest*
14502 # SGI C++ compiler will create directory out/ii_files/ for
14503 # template instantiation
14504 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14505 $RM out/* && rmdir out
14506 cd ..
14507 $RM -r conftest
14508 $RM conftest*
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14512 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14517 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14518 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14519 $as_echo_n "(cached) " >&6
14520 else
14521 lt_cv_prog_compiler_c_o_CXX=no
14522 $RM -r conftest 2>/dev/null
14523 mkdir conftest
14524 cd conftest
14525 mkdir out
14526 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14528 lt_compiler_flag="-o out/conftest2.$ac_objext"
14529 # Insert the option either (1) after the last *FLAGS variable, or
14530 # (2) before a word containing "conftest.", or (3) at the end.
14531 # Note that $ac_compile itself does not contain backslashes and begins
14532 # with a dollar sign (not a hyphen), so the echo should work correctly.
14533 lt_compile=`echo "$ac_compile" | $SED \
14534 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14535 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14536 -e 's:$: $lt_compiler_flag:'`
14537 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14538 (eval "$lt_compile" 2>out/conftest.err)
14539 ac_status=$?
14540 cat out/conftest.err >&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14543 then
14544 # The compiler can only warn and ignore the option if not recognized
14545 # So say no if there are warnings
14546 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14547 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14548 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14549 lt_cv_prog_compiler_c_o_CXX=yes
14552 chmod u+w . 2>&5
14553 $RM conftest*
14554 # SGI C++ compiler will create directory out/ii_files/ for
14555 # template instantiation
14556 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14557 $RM out/* && rmdir out
14558 cd ..
14559 $RM -r conftest
14560 $RM conftest*
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14564 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14569 hard_links="nottested"
14570 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14571 # do not overwrite the value of need_locks provided by the user
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14573 $as_echo_n "checking if we can lock with hard links... " >&6; }
14574 hard_links=yes
14575 $RM conftest*
14576 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14577 touch conftest.a
14578 ln conftest.a conftest.b 2>&5 || hard_links=no
14579 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14581 $as_echo "$hard_links" >&6; }
14582 if test "$hard_links" = no; then
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14584 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14585 need_locks=warn
14587 else
14588 need_locks=no
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14594 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14596 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14597 case $host_os in
14598 aix[4-9]*)
14599 # If we're using GNU nm, then we don't want the "-C" option.
14600 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14601 # Also, AIX nm treats weak defined symbols like other global defined
14602 # symbols, whereas GNU nm marks them as "W".
14603 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14604 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'
14605 else
14606 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14609 pw32*)
14610 export_symbols_cmds_CXX="$ltdll_cmds"
14612 cygwin* | mingw* | cegcc*)
14613 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'
14616 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14618 esac
14619 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14622 $as_echo "$ld_shlibs_CXX" >&6; }
14623 test "$ld_shlibs_CXX" = no && can_build_shared=no
14625 with_gnu_ld_CXX=$with_gnu_ld
14633 # Do we need to explicitly link libc?
14635 case "x$archive_cmds_need_lc_CXX" in
14636 x|xyes)
14637 # Assume -lc should be added
14638 archive_cmds_need_lc_CXX=yes
14640 if test "$enable_shared" = yes && test "$GCC" = yes; then
14641 case $archive_cmds_CXX in
14642 *'~'*)
14643 # FIXME: we may have to deal with multi-command sequences.
14645 '$CC '*)
14646 # Test whether the compiler implicitly links with -lc since on some
14647 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14648 # to ld, don't add -lc before -lgcc.
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14650 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14651 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14652 $as_echo_n "(cached) " >&6
14653 else
14654 $RM conftest*
14655 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14658 (eval $ac_compile) 2>&5
14659 ac_status=$?
14660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14661 test $ac_status = 0; } 2>conftest.err; then
14662 soname=conftest
14663 lib=conftest
14664 libobjs=conftest.$ac_objext
14665 deplibs=
14666 wl=$lt_prog_compiler_wl_CXX
14667 pic_flag=$lt_prog_compiler_pic_CXX
14668 compiler_flags=-v
14669 linker_flags=-v
14670 verstring=
14671 output_objdir=.
14672 libname=conftest
14673 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14674 allow_undefined_flag_CXX=
14675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14676 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14677 ac_status=$?
14678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14679 test $ac_status = 0; }
14680 then
14681 lt_cv_archive_cmds_need_lc_CXX=no
14682 else
14683 lt_cv_archive_cmds_need_lc_CXX=yes
14685 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14686 else
14687 cat conftest.err 1>&5
14689 $RM conftest*
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14693 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14694 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14696 esac
14699 esac
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14765 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14767 library_names_spec=
14768 libname_spec='lib$name'
14769 soname_spec=
14770 shrext_cmds=".so"
14771 postinstall_cmds=
14772 postuninstall_cmds=
14773 finish_cmds=
14774 finish_eval=
14775 shlibpath_var=
14776 shlibpath_overrides_runpath=unknown
14777 version_type=none
14778 dynamic_linker="$host_os ld.so"
14779 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14780 need_lib_prefix=unknown
14781 hardcode_into_libs=no
14783 # when you set need_version to no, make sure it does not cause -set_version
14784 # flags to be left without arguments
14785 need_version=unknown
14787 case $host_os in
14788 aix3*)
14789 version_type=linux
14790 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14791 shlibpath_var=LIBPATH
14793 # AIX 3 has no versioning support, so we append a major version to the name.
14794 soname_spec='${libname}${release}${shared_ext}$major'
14797 aix[4-9]*)
14798 version_type=linux
14799 need_lib_prefix=no
14800 need_version=no
14801 hardcode_into_libs=yes
14802 if test "$host_cpu" = ia64; then
14803 # AIX 5 supports IA64
14804 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14805 shlibpath_var=LD_LIBRARY_PATH
14806 else
14807 # With GCC up to 2.95.x, collect2 would create an import file
14808 # for dependence libraries. The import file would start with
14809 # the line `#! .'. This would cause the generated library to
14810 # depend on `.', always an invalid library. This was fixed in
14811 # development snapshots of GCC prior to 3.0.
14812 case $host_os in
14813 aix4 | aix4.[01] | aix4.[01].*)
14814 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14815 echo ' yes '
14816 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14818 else
14819 can_build_shared=no
14822 esac
14823 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14824 # soname into executable. Probably we can add versioning support to
14825 # collect2, so additional links can be useful in future.
14826 if test "$aix_use_runtimelinking" = yes; then
14827 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14828 # instead of lib<name>.a to let people know that these are not
14829 # typical AIX shared libraries.
14830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14831 else
14832 # We preserve .a as extension for shared libraries through AIX4.2
14833 # and later when we are not doing run time linking.
14834 library_names_spec='${libname}${release}.a $libname.a'
14835 soname_spec='${libname}${release}${shared_ext}$major'
14837 shlibpath_var=LIBPATH
14841 amigaos*)
14842 case $host_cpu in
14843 powerpc)
14844 # Since July 2007 AmigaOS4 officially supports .so libraries.
14845 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14848 m68k)
14849 library_names_spec='$libname.ixlibrary $libname.a'
14850 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14851 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'
14853 esac
14856 beos*)
14857 library_names_spec='${libname}${shared_ext}'
14858 dynamic_linker="$host_os ld.so"
14859 shlibpath_var=LIBRARY_PATH
14862 bsdi[45]*)
14863 version_type=linux
14864 need_version=no
14865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14866 soname_spec='${libname}${release}${shared_ext}$major'
14867 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14868 shlibpath_var=LD_LIBRARY_PATH
14869 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14870 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14871 # the default ld.so.conf also contains /usr/contrib/lib and
14872 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14873 # libtool to hard-code these into programs
14876 cygwin* | mingw* | pw32* | cegcc*)
14877 version_type=windows
14878 shrext_cmds=".dll"
14879 need_version=no
14880 need_lib_prefix=no
14882 case $GCC,$host_os in
14883 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14884 library_names_spec='$libname.dll.a'
14885 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14886 postinstall_cmds='base_file=`basename \${file}`~
14887 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14888 dldir=$destdir/`dirname \$dlpath`~
14889 test -d \$dldir || mkdir -p \$dldir~
14890 $install_prog $dir/$dlname \$dldir/$dlname~
14891 chmod a+x \$dldir/$dlname~
14892 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14893 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14895 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14896 dlpath=$dir/\$dldll~
14897 $RM \$dlpath'
14898 shlibpath_overrides_runpath=yes
14900 case $host_os in
14901 cygwin*)
14902 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14903 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14906 mingw* | cegcc*)
14907 # MinGW DLLs use traditional 'lib' prefix
14908 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14910 pw32*)
14911 # pw32 DLLs use 'pw' prefix rather than 'lib'
14912 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14914 esac
14918 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14920 esac
14921 dynamic_linker='Win32 ld.exe'
14922 # FIXME: first we should search . and the directory the executable is in
14923 shlibpath_var=PATH
14926 darwin* | rhapsody*)
14927 dynamic_linker="$host_os dyld"
14928 version_type=darwin
14929 need_lib_prefix=no
14930 need_version=no
14931 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14932 soname_spec='${libname}${release}${major}$shared_ext'
14933 shlibpath_overrides_runpath=yes
14934 shlibpath_var=DYLD_LIBRARY_PATH
14935 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14937 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14940 dgux*)
14941 version_type=linux
14942 need_lib_prefix=no
14943 need_version=no
14944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14945 soname_spec='${libname}${release}${shared_ext}$major'
14946 shlibpath_var=LD_LIBRARY_PATH
14949 freebsd1*)
14950 dynamic_linker=no
14953 freebsd* | dragonfly*)
14954 # DragonFly does not have aout. When/if they implement a new
14955 # versioning mechanism, adjust this.
14956 if test -x /usr/bin/objformat; then
14957 objformat=`/usr/bin/objformat`
14958 else
14959 case $host_os in
14960 freebsd[123]*) objformat=aout ;;
14961 *) objformat=elf ;;
14962 esac
14964 version_type=freebsd-$objformat
14965 case $version_type in
14966 freebsd-elf*)
14967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14968 need_version=no
14969 need_lib_prefix=no
14971 freebsd-*)
14972 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14973 need_version=yes
14975 esac
14976 shlibpath_var=LD_LIBRARY_PATH
14977 case $host_os in
14978 freebsd2*)
14979 shlibpath_overrides_runpath=yes
14981 freebsd3.[01]* | freebsdelf3.[01]*)
14982 shlibpath_overrides_runpath=yes
14983 hardcode_into_libs=yes
14985 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14986 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14987 shlibpath_overrides_runpath=no
14988 hardcode_into_libs=yes
14990 *) # from 4.6 on, and DragonFly
14991 shlibpath_overrides_runpath=yes
14992 hardcode_into_libs=yes
14994 esac
14997 gnu*)
14998 version_type=linux
14999 need_lib_prefix=no
15000 need_version=no
15001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15002 soname_spec='${libname}${release}${shared_ext}$major'
15003 shlibpath_var=LD_LIBRARY_PATH
15004 hardcode_into_libs=yes
15007 haiku*)
15008 version_type=linux
15009 need_lib_prefix=no
15010 need_version=no
15011 dynamic_linker="$host_os runtime_loader"
15012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15013 soname_spec='${libname}${release}${shared_ext}$major'
15014 shlibpath_var=LIBRARY_PATH
15015 shlibpath_overrides_runpath=yes
15016 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15017 hardcode_into_libs=yes
15020 hpux9* | hpux10* | hpux11*)
15021 # Give a soname corresponding to the major version so that dld.sl refuses to
15022 # link against other versions.
15023 version_type=sunos
15024 need_lib_prefix=no
15025 need_version=no
15026 case $host_cpu in
15027 ia64*)
15028 shrext_cmds='.so'
15029 hardcode_into_libs=yes
15030 dynamic_linker="$host_os dld.so"
15031 shlibpath_var=LD_LIBRARY_PATH
15032 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15034 soname_spec='${libname}${release}${shared_ext}$major'
15035 if test "X$HPUX_IA64_MODE" = X32; then
15036 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15037 else
15038 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15040 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15042 hppa*64*)
15043 shrext_cmds='.sl'
15044 hardcode_into_libs=yes
15045 dynamic_linker="$host_os dld.sl"
15046 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15047 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15049 soname_spec='${libname}${release}${shared_ext}$major'
15050 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15051 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15054 shrext_cmds='.sl'
15055 dynamic_linker="$host_os dld.sl"
15056 shlibpath_var=SHLIB_PATH
15057 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15059 soname_spec='${libname}${release}${shared_ext}$major'
15061 esac
15062 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15063 postinstall_cmds='chmod 555 $lib'
15064 # or fails outright, so override atomically:
15065 install_override_mode=555
15068 interix[3-9]*)
15069 version_type=linux
15070 need_lib_prefix=no
15071 need_version=no
15072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15073 soname_spec='${libname}${release}${shared_ext}$major'
15074 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15075 shlibpath_var=LD_LIBRARY_PATH
15076 shlibpath_overrides_runpath=no
15077 hardcode_into_libs=yes
15080 irix5* | irix6* | nonstopux*)
15081 case $host_os in
15082 nonstopux*) version_type=nonstopux ;;
15084 if test "$lt_cv_prog_gnu_ld" = yes; then
15085 version_type=linux
15086 else
15087 version_type=irix
15088 fi ;;
15089 esac
15090 need_lib_prefix=no
15091 need_version=no
15092 soname_spec='${libname}${release}${shared_ext}$major'
15093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15094 case $host_os in
15095 irix5* | nonstopux*)
15096 libsuff= shlibsuff=
15099 case $LD in # libtool.m4 will add one of these switches to LD
15100 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15101 libsuff= shlibsuff= libmagic=32-bit;;
15102 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15103 libsuff=32 shlibsuff=N32 libmagic=N32;;
15104 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15105 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15106 *) libsuff= shlibsuff= libmagic=never-match;;
15107 esac
15109 esac
15110 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15111 shlibpath_overrides_runpath=no
15112 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15113 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15114 hardcode_into_libs=yes
15117 # No shared lib support for Linux oldld, aout, or coff.
15118 linux*oldld* | linux*aout* | linux*coff*)
15119 dynamic_linker=no
15122 # This must be Linux ELF.
15123 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15124 version_type=linux
15125 need_lib_prefix=no
15126 need_version=no
15127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15128 soname_spec='${libname}${release}${shared_ext}$major'
15129 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15130 shlibpath_var=LD_LIBRARY_PATH
15131 shlibpath_overrides_runpath=no
15133 # Some binutils ld are patched to set DT_RUNPATH
15134 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15135 $as_echo_n "(cached) " >&6
15136 else
15137 lt_cv_shlibpath_overrides_runpath=no
15138 save_LDFLAGS=$LDFLAGS
15139 save_libdir=$libdir
15140 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15141 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15143 /* end confdefs.h. */
15146 main ()
15150 return 0;
15152 _ACEOF
15153 if ac_fn_cxx_try_link "$LINENO"; then :
15154 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15155 lt_cv_shlibpath_overrides_runpath=yes
15158 rm -f core conftest.err conftest.$ac_objext \
15159 conftest$ac_exeext conftest.$ac_ext
15160 LDFLAGS=$save_LDFLAGS
15161 libdir=$save_libdir
15165 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15167 # This implies no fast_install, which is unacceptable.
15168 # Some rework will be needed to allow for fast_install
15169 # before this can be enabled.
15170 hardcode_into_libs=yes
15172 # Append ld.so.conf contents to the search path
15173 if test -f /etc/ld.so.conf; then
15174 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' ' '`
15175 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15178 # We used to test for /lib/ld.so.1 and disable shared libraries on
15179 # powerpc, because MkLinux only supported shared libraries with the
15180 # GNU dynamic linker. Since this was broken with cross compilers,
15181 # most powerpc-linux boxes support dynamic linking these days and
15182 # people can always --disable-shared, the test was removed, and we
15183 # assume the GNU/Linux dynamic linker is in use.
15184 dynamic_linker='GNU/Linux ld.so'
15187 netbsd*)
15188 version_type=sunos
15189 need_lib_prefix=no
15190 need_version=no
15191 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15193 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15194 dynamic_linker='NetBSD (a.out) ld.so'
15195 else
15196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15197 soname_spec='${libname}${release}${shared_ext}$major'
15198 dynamic_linker='NetBSD ld.elf_so'
15200 shlibpath_var=LD_LIBRARY_PATH
15201 shlibpath_overrides_runpath=yes
15202 hardcode_into_libs=yes
15205 newsos6)
15206 version_type=linux
15207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15208 shlibpath_var=LD_LIBRARY_PATH
15209 shlibpath_overrides_runpath=yes
15212 *nto* | *qnx*)
15213 version_type=qnx
15214 need_lib_prefix=no
15215 need_version=no
15216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15217 soname_spec='${libname}${release}${shared_ext}$major'
15218 shlibpath_var=LD_LIBRARY_PATH
15219 shlibpath_overrides_runpath=no
15220 hardcode_into_libs=yes
15221 dynamic_linker='ldqnx.so'
15224 openbsd*)
15225 version_type=sunos
15226 sys_lib_dlsearch_path_spec="/usr/lib"
15227 need_lib_prefix=no
15228 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15229 case $host_os in
15230 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15231 *) need_version=no ;;
15232 esac
15233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15234 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15235 shlibpath_var=LD_LIBRARY_PATH
15236 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15237 case $host_os in
15238 openbsd2.[89] | openbsd2.[89].*)
15239 shlibpath_overrides_runpath=no
15242 shlibpath_overrides_runpath=yes
15244 esac
15245 else
15246 shlibpath_overrides_runpath=yes
15250 os2*)
15251 libname_spec='$name'
15252 shrext_cmds=".dll"
15253 need_lib_prefix=no
15254 library_names_spec='$libname${shared_ext} $libname.a'
15255 dynamic_linker='OS/2 ld.exe'
15256 shlibpath_var=LIBPATH
15259 osf3* | osf4* | osf5*)
15260 version_type=osf
15261 need_lib_prefix=no
15262 need_version=no
15263 soname_spec='${libname}${release}${shared_ext}$major'
15264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15265 shlibpath_var=LD_LIBRARY_PATH
15266 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15267 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15270 rdos*)
15271 dynamic_linker=no
15274 solaris*)
15275 version_type=linux
15276 need_lib_prefix=no
15277 need_version=no
15278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15279 soname_spec='${libname}${release}${shared_ext}$major'
15280 shlibpath_var=LD_LIBRARY_PATH
15281 shlibpath_overrides_runpath=yes
15282 hardcode_into_libs=yes
15283 # ldd complains unless libraries are executable
15284 postinstall_cmds='chmod +x $lib'
15287 sunos4*)
15288 version_type=sunos
15289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15290 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15291 shlibpath_var=LD_LIBRARY_PATH
15292 shlibpath_overrides_runpath=yes
15293 if test "$with_gnu_ld" = yes; then
15294 need_lib_prefix=no
15296 need_version=yes
15299 sysv4 | sysv4.3*)
15300 version_type=linux
15301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15302 soname_spec='${libname}${release}${shared_ext}$major'
15303 shlibpath_var=LD_LIBRARY_PATH
15304 case $host_vendor in
15305 sni)
15306 shlibpath_overrides_runpath=no
15307 need_lib_prefix=no
15308 runpath_var=LD_RUN_PATH
15310 siemens)
15311 need_lib_prefix=no
15313 motorola)
15314 need_lib_prefix=no
15315 need_version=no
15316 shlibpath_overrides_runpath=no
15317 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15319 esac
15322 sysv4*MP*)
15323 if test -d /usr/nec ;then
15324 version_type=linux
15325 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15326 soname_spec='$libname${shared_ext}.$major'
15327 shlibpath_var=LD_LIBRARY_PATH
15331 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15332 version_type=freebsd-elf
15333 need_lib_prefix=no
15334 need_version=no
15335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15336 soname_spec='${libname}${release}${shared_ext}$major'
15337 shlibpath_var=LD_LIBRARY_PATH
15338 shlibpath_overrides_runpath=yes
15339 hardcode_into_libs=yes
15340 if test "$with_gnu_ld" = yes; then
15341 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15342 else
15343 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15344 case $host_os in
15345 sco3.2v5*)
15346 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15348 esac
15350 sys_lib_dlsearch_path_spec='/usr/lib'
15353 tpf*)
15354 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15355 version_type=linux
15356 need_lib_prefix=no
15357 need_version=no
15358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15359 shlibpath_var=LD_LIBRARY_PATH
15360 shlibpath_overrides_runpath=no
15361 hardcode_into_libs=yes
15364 uts4*)
15365 version_type=linux
15366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15367 soname_spec='${libname}${release}${shared_ext}$major'
15368 shlibpath_var=LD_LIBRARY_PATH
15372 dynamic_linker=no
15374 esac
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15376 $as_echo "$dynamic_linker" >&6; }
15377 test "$dynamic_linker" = no && can_build_shared=no
15379 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15380 if test "$GCC" = yes; then
15381 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15384 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15385 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15387 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15388 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15429 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15430 hardcode_action_CXX=
15431 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15432 test -n "$runpath_var_CXX" ||
15433 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15435 # We can hardcode non-existent directories.
15436 if test "$hardcode_direct_CXX" != no &&
15437 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15438 # have to relink, otherwise we might link with an installed library
15439 # when we should be linking with a yet-to-be-installed one
15440 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15441 test "$hardcode_minus_L_CXX" != no; then
15442 # Linking always hardcodes the temporary library directory.
15443 hardcode_action_CXX=relink
15444 else
15445 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15446 hardcode_action_CXX=immediate
15448 else
15449 # We cannot hardcode anything, or else we can only hardcode existing
15450 # directories.
15451 hardcode_action_CXX=unsupported
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15454 $as_echo "$hardcode_action_CXX" >&6; }
15456 if test "$hardcode_action_CXX" = relink ||
15457 test "$inherit_rpath_CXX" = yes; then
15458 # Fast installation is not supported
15459 enable_fast_install=no
15460 elif test "$shlibpath_overrides_runpath" = yes ||
15461 test "$enable_shared" = no; then
15462 # Fast installation is not necessary
15463 enable_fast_install=needless
15472 fi # test -n "$compiler"
15474 CC=$lt_save_CC
15475 LDCXX=$LD
15476 LD=$lt_save_LD
15477 GCC=$lt_save_GCC
15478 with_gnu_ld=$lt_save_with_gnu_ld
15479 lt_cv_path_LDCXX=$lt_cv_path_LD
15480 lt_cv_path_LD=$lt_save_path_LD
15481 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15482 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15483 fi # test "$_lt_caught_CXX_error" != yes
15485 ac_ext=c
15486 ac_cpp='$CPP $CPPFLAGS'
15487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15503 ac_config_commands="$ac_config_commands libtool"
15508 # Only expand once:
15512 ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id bg"
15513 # If we haven't got the data from the intl directory,
15514 # assume NLS is disabled.
15515 USE_NLS=no
15516 LIBINTL=
15517 LIBINTL_DEP=
15518 INCINTL=
15519 XGETTEXT=
15520 GMSGFMT=
15521 POSUB=
15523 if test -f ../intl/config.intl; then
15524 . ../intl/config.intl
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15527 $as_echo_n "checking whether NLS is requested... " >&6; }
15528 if test x"$USE_NLS" != xyes; then
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15530 $as_echo "no" >&6; }
15531 else
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15533 $as_echo "yes" >&6; }
15535 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
15539 $as_echo_n "checking for catalogs to be installed... " >&6; }
15540 # Look for .po and .gmo files in the source directory.
15541 CATALOGS=
15542 XLINGUAS=
15543 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
15544 # If there aren't any .gmo files the shell will give us the
15545 # literal string "../path/to/srcdir/po/*.gmo" which has to be
15546 # weeded out.
15547 case "$cat" in *\**)
15548 continue;;
15549 esac
15550 # The quadruple backslash is collapsed to a double backslash
15551 # by the backticks, then collapsed again by the double quotes,
15552 # leaving us with one backslash in the sed expression (right
15553 # before the dot that mustn't act as a wildcard).
15554 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
15555 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
15556 # The user is allowed to set LINGUAS to a list of languages to
15557 # install catalogs for. If it's empty that means "all of them."
15558 if test "x$LINGUAS" = x; then
15559 CATALOGS="$CATALOGS $cat"
15560 XLINGUAS="$XLINGUAS $lang"
15561 else
15562 case "$LINGUAS" in *$lang*)
15563 CATALOGS="$CATALOGS $cat"
15564 XLINGUAS="$XLINGUAS $lang"
15566 esac
15568 done
15569 LINGUAS="$XLINGUAS"
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
15571 $as_echo "$LINGUAS" >&6; }
15574 DATADIRNAME=share
15576 INSTOBJEXT=.mo
15578 GENCAT=gencat
15580 CATOBJEXT=.gmo
15584 MKINSTALLDIRS=
15585 if test -n "$ac_aux_dir"; then
15586 case "$ac_aux_dir" in
15587 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
15588 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
15589 esac
15591 if test -z "$MKINSTALLDIRS"; then
15592 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15598 $as_echo_n "checking whether NLS is requested... " >&6; }
15599 # Check whether --enable-nls was given.
15600 if test "${enable_nls+set}" = set; then :
15601 enableval=$enable_nls; USE_NLS=$enableval
15602 else
15603 USE_NLS=yes
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15607 $as_echo "$USE_NLS" >&6; }
15614 # Prepare PATH_SEPARATOR.
15615 # The user is always right.
15616 if test "${PATH_SEPARATOR+set}" != set; then
15617 echo "#! /bin/sh" >conf$$.sh
15618 echo "exit 0" >>conf$$.sh
15619 chmod +x conf$$.sh
15620 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15621 PATH_SEPARATOR=';'
15622 else
15623 PATH_SEPARATOR=:
15625 rm -f conf$$.sh
15628 # Find out how to test for executable files. Don't use a zero-byte file,
15629 # as systems may use methods other than mode bits to determine executability.
15630 cat >conf$$.file <<_ASEOF
15631 #! /bin/sh
15632 exit 0
15633 _ASEOF
15634 chmod +x conf$$.file
15635 if test -x conf$$.file >/dev/null 2>&1; then
15636 ac_executable_p="test -x"
15637 else
15638 ac_executable_p="test -f"
15640 rm -f conf$$.file
15642 # Extract the first word of "msgfmt", so it can be a program name with args.
15643 set dummy msgfmt; ac_word=$2
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15645 $as_echo_n "checking for $ac_word... " >&6; }
15646 if test "${ac_cv_path_MSGFMT+set}" = set; then :
15647 $as_echo_n "(cached) " >&6
15648 else
15649 case "$MSGFMT" in
15650 [\\/]* | ?:[\\/]*)
15651 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15654 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15655 for ac_dir in $PATH; do
15656 IFS="$ac_save_IFS"
15657 test -z "$ac_dir" && ac_dir=.
15658 for ac_exec_ext in '' $ac_executable_extensions; do
15659 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15660 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15661 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15662 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15663 break 2
15666 done
15667 done
15668 IFS="$ac_save_IFS"
15669 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15671 esac
15673 MSGFMT="$ac_cv_path_MSGFMT"
15674 if test "$MSGFMT" != ":"; then
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15676 $as_echo "$MSGFMT" >&6; }
15677 else
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15679 $as_echo "no" >&6; }
15682 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15683 set dummy gmsgfmt; ac_word=$2
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15685 $as_echo_n "checking for $ac_word... " >&6; }
15686 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
15687 $as_echo_n "(cached) " >&6
15688 else
15689 case $GMSGFMT in
15690 [\\/]* | ?:[\\/]*)
15691 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15695 for as_dir in $PATH
15697 IFS=$as_save_IFS
15698 test -z "$as_dir" && as_dir=.
15699 for ac_exec_ext in '' $ac_executable_extensions; do
15700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15701 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15703 break 2
15705 done
15706 done
15707 IFS=$as_save_IFS
15709 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15711 esac
15713 GMSGFMT=$ac_cv_path_GMSGFMT
15714 if test -n "$GMSGFMT"; then
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15716 $as_echo "$GMSGFMT" >&6; }
15717 else
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15719 $as_echo "no" >&6; }
15725 # Prepare PATH_SEPARATOR.
15726 # The user is always right.
15727 if test "${PATH_SEPARATOR+set}" != set; then
15728 echo "#! /bin/sh" >conf$$.sh
15729 echo "exit 0" >>conf$$.sh
15730 chmod +x conf$$.sh
15731 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15732 PATH_SEPARATOR=';'
15733 else
15734 PATH_SEPARATOR=:
15736 rm -f conf$$.sh
15739 # Find out how to test for executable files. Don't use a zero-byte file,
15740 # as systems may use methods other than mode bits to determine executability.
15741 cat >conf$$.file <<_ASEOF
15742 #! /bin/sh
15743 exit 0
15744 _ASEOF
15745 chmod +x conf$$.file
15746 if test -x conf$$.file >/dev/null 2>&1; then
15747 ac_executable_p="test -x"
15748 else
15749 ac_executable_p="test -f"
15751 rm -f conf$$.file
15753 # Extract the first word of "xgettext", so it can be a program name with args.
15754 set dummy xgettext; ac_word=$2
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15756 $as_echo_n "checking for $ac_word... " >&6; }
15757 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
15758 $as_echo_n "(cached) " >&6
15759 else
15760 case "$XGETTEXT" in
15761 [\\/]* | ?:[\\/]*)
15762 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15765 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15766 for ac_dir in $PATH; do
15767 IFS="$ac_save_IFS"
15768 test -z "$ac_dir" && ac_dir=.
15769 for ac_exec_ext in '' $ac_executable_extensions; do
15770 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15771 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15772 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15773 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15774 break 2
15777 done
15778 done
15779 IFS="$ac_save_IFS"
15780 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15782 esac
15784 XGETTEXT="$ac_cv_path_XGETTEXT"
15785 if test "$XGETTEXT" != ":"; then
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15787 $as_echo "$XGETTEXT" >&6; }
15788 else
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15790 $as_echo "no" >&6; }
15793 rm -f messages.po
15796 # Prepare PATH_SEPARATOR.
15797 # The user is always right.
15798 if test "${PATH_SEPARATOR+set}" != set; then
15799 echo "#! /bin/sh" >conf$$.sh
15800 echo "exit 0" >>conf$$.sh
15801 chmod +x conf$$.sh
15802 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15803 PATH_SEPARATOR=';'
15804 else
15805 PATH_SEPARATOR=:
15807 rm -f conf$$.sh
15810 # Find out how to test for executable files. Don't use a zero-byte file,
15811 # as systems may use methods other than mode bits to determine executability.
15812 cat >conf$$.file <<_ASEOF
15813 #! /bin/sh
15814 exit 0
15815 _ASEOF
15816 chmod +x conf$$.file
15817 if test -x conf$$.file >/dev/null 2>&1; then
15818 ac_executable_p="test -x"
15819 else
15820 ac_executable_p="test -f"
15822 rm -f conf$$.file
15824 # Extract the first word of "msgmerge", so it can be a program name with args.
15825 set dummy msgmerge; ac_word=$2
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15827 $as_echo_n "checking for $ac_word... " >&6; }
15828 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
15829 $as_echo_n "(cached) " >&6
15830 else
15831 case "$MSGMERGE" in
15832 [\\/]* | ?:[\\/]*)
15833 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15836 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15837 for ac_dir in $PATH; do
15838 IFS="$ac_save_IFS"
15839 test -z "$ac_dir" && ac_dir=.
15840 for ac_exec_ext in '' $ac_executable_extensions; do
15841 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15842 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15843 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
15844 break 2
15847 done
15848 done
15849 IFS="$ac_save_IFS"
15850 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15852 esac
15854 MSGMERGE="$ac_cv_path_MSGMERGE"
15855 if test "$MSGMERGE" != ":"; then
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15857 $as_echo "$MSGMERGE" >&6; }
15858 else
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15860 $as_echo "no" >&6; }
15864 if test "$GMSGFMT" != ":"; then
15865 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
15866 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15868 else
15869 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15871 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
15872 GMSGFMT=":"
15876 if test "$XGETTEXT" != ":"; then
15877 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15878 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15880 else
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
15882 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
15883 XGETTEXT=":"
15885 rm -f messages.po
15888 ac_config_commands="$ac_config_commands default-1"
15894 for ac_prog in 'bison -y' byacc
15896 # Extract the first word of "$ac_prog", so it can be a program name with args.
15897 set dummy $ac_prog; ac_word=$2
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15899 $as_echo_n "checking for $ac_word... " >&6; }
15900 if test "${ac_cv_prog_YACC+set}" = set; then :
15901 $as_echo_n "(cached) " >&6
15902 else
15903 if test -n "$YACC"; then
15904 ac_cv_prog_YACC="$YACC" # Let the user override the test.
15905 else
15906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15907 for as_dir in $PATH
15909 IFS=$as_save_IFS
15910 test -z "$as_dir" && as_dir=.
15911 for ac_exec_ext in '' $ac_executable_extensions; do
15912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15913 ac_cv_prog_YACC="$ac_prog"
15914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15915 break 2
15917 done
15918 done
15919 IFS=$as_save_IFS
15923 YACC=$ac_cv_prog_YACC
15924 if test -n "$YACC"; then
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
15926 $as_echo "$YACC" >&6; }
15927 else
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15929 $as_echo "no" >&6; }
15933 test -n "$YACC" && break
15934 done
15935 test -n "$YACC" || YACC="yacc"
15937 for ac_prog in flex lex
15939 # Extract the first word of "$ac_prog", so it can be a program name with args.
15940 set dummy $ac_prog; ac_word=$2
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15942 $as_echo_n "checking for $ac_word... " >&6; }
15943 if test "${ac_cv_prog_LEX+set}" = set; then :
15944 $as_echo_n "(cached) " >&6
15945 else
15946 if test -n "$LEX"; then
15947 ac_cv_prog_LEX="$LEX" # Let the user override the test.
15948 else
15949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15950 for as_dir in $PATH
15952 IFS=$as_save_IFS
15953 test -z "$as_dir" && as_dir=.
15954 for ac_exec_ext in '' $ac_executable_extensions; do
15955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15956 ac_cv_prog_LEX="$ac_prog"
15957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15958 break 2
15960 done
15961 done
15962 IFS=$as_save_IFS
15966 LEX=$ac_cv_prog_LEX
15967 if test -n "$LEX"; then
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
15969 $as_echo "$LEX" >&6; }
15970 else
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15972 $as_echo "no" >&6; }
15976 test -n "$LEX" && break
15977 done
15978 test -n "$LEX" || LEX=":"
15980 if test "x$LEX" != "x:"; then
15981 cat >conftest.l <<_ACEOF
15983 a { ECHO; }
15984 b { REJECT; }
15985 c { yymore (); }
15986 d { yyless (1); }
15987 e { yyless (input () != 0); }
15988 f { unput (yytext[0]); }
15989 . { BEGIN INITIAL; }
15991 #ifdef YYTEXT_POINTER
15992 extern char *yytext;
15993 #endif
15995 main (void)
15997 return ! yylex () + ! yywrap ();
15999 _ACEOF
16000 { { ac_try="$LEX conftest.l"
16001 case "(($ac_try" in
16002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16003 *) ac_try_echo=$ac_try;;
16004 esac
16005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16006 $as_echo "$ac_try_echo"; } >&5
16007 (eval "$LEX conftest.l") 2>&5
16008 ac_status=$?
16009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16010 test $ac_status = 0; }
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16012 $as_echo_n "checking lex output file root... " >&6; }
16013 if test "${ac_cv_prog_lex_root+set}" = set; then :
16014 $as_echo_n "(cached) " >&6
16015 else
16017 if test -f lex.yy.c; then
16018 ac_cv_prog_lex_root=lex.yy
16019 elif test -f lexyy.c; then
16020 ac_cv_prog_lex_root=lexyy
16021 else
16022 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16026 $as_echo "$ac_cv_prog_lex_root" >&6; }
16027 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
16029 if test -z "${LEXLIB+set}"; then
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16031 $as_echo_n "checking lex library... " >&6; }
16032 if test "${ac_cv_lib_lex+set}" = set; then :
16033 $as_echo_n "(cached) " >&6
16034 else
16036 ac_save_LIBS=$LIBS
16037 ac_cv_lib_lex='none needed'
16038 for ac_lib in '' -lfl -ll; do
16039 LIBS="$ac_lib $ac_save_LIBS"
16040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16041 /* end confdefs.h. */
16042 `cat $LEX_OUTPUT_ROOT.c`
16043 _ACEOF
16044 if ac_fn_c_try_link "$LINENO"; then :
16045 ac_cv_lib_lex=$ac_lib
16047 rm -f core conftest.err conftest.$ac_objext \
16048 conftest$ac_exeext conftest.$ac_ext
16049 test "$ac_cv_lib_lex" != 'none needed' && break
16050 done
16051 LIBS=$ac_save_LIBS
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16055 $as_echo "$ac_cv_lib_lex" >&6; }
16056 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16061 $as_echo_n "checking whether yytext is a pointer... " >&6; }
16062 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
16063 $as_echo_n "(cached) " >&6
16064 else
16065 # POSIX says lex can declare yytext either as a pointer or an array; the
16066 # default is implementation-dependent. Figure out which it is, since
16067 # not all implementations provide the %pointer and %array declarations.
16068 ac_cv_prog_lex_yytext_pointer=no
16069 ac_save_LIBS=$LIBS
16070 LIBS="$LEXLIB $ac_save_LIBS"
16071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16072 /* end confdefs.h. */
16073 #define YYTEXT_POINTER 1
16074 `cat $LEX_OUTPUT_ROOT.c`
16075 _ACEOF
16076 if ac_fn_c_try_link "$LINENO"; then :
16077 ac_cv_prog_lex_yytext_pointer=yes
16079 rm -f core conftest.err conftest.$ac_objext \
16080 conftest$ac_exeext conftest.$ac_ext
16081 LIBS=$ac_save_LIBS
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16085 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
16086 if test $ac_cv_prog_lex_yytext_pointer = yes; then
16088 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
16091 rm -f conftest.l $LEX_OUTPUT_ROOT.c
16094 if test "$LEX" = :; then
16095 LEX=${am_missing_run}flex
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16100 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16101 # Check whether --enable-maintainer-mode was given.
16102 if test "${enable_maintainer_mode+set}" = set; then :
16103 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16104 else
16105 USE_MAINTAINER_MODE=no
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16109 $as_echo "$USE_MAINTAINER_MODE" >&6; }
16110 if test $USE_MAINTAINER_MODE = yes; then
16111 MAINTAINER_MODE_TRUE=
16112 MAINTAINER_MODE_FALSE='#'
16113 else
16114 MAINTAINER_MODE_TRUE='#'
16115 MAINTAINER_MODE_FALSE=
16118 MAINT=$MAINTAINER_MODE_TRUE
16121 if false; then
16122 GENINSRC_NEVER_TRUE=
16123 GENINSRC_NEVER_FALSE='#'
16124 else
16125 GENINSRC_NEVER_TRUE='#'
16126 GENINSRC_NEVER_FALSE=
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
16130 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
16131 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
16132 $as_echo_n "(cached) " >&6
16133 else
16134 echo abfoo >t1
16135 echo cdfoo >t2
16136 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
16137 if cmp t1 t2 2 2 > /dev/null 2>&1; then
16138 if cmp t1 t2 1 1 > /dev/null 2>&1; then
16140 else
16141 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
16144 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
16145 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
16147 else
16148 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
16151 rm t1 t2
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
16155 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
16156 do_compare="$gcc_cv_prog_cmp_skip"
16160 . ${srcdir}/configure.host
16167 for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h sys/param.h
16168 do :
16169 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16170 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16171 eval as_val=\$$as_ac_Header
16172 if test "x$as_val" = x""yes; then :
16173 cat >>confdefs.h <<_ACEOF
16174 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16175 _ACEOF
16179 done
16181 for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
16182 do :
16183 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16184 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16185 eval as_val=\$$as_ac_Header
16186 if test "x$as_val" = x""yes; then :
16187 cat >>confdefs.h <<_ACEOF
16188 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16189 _ACEOF
16193 done
16195 for ac_func in glob mkstemp realpath sbrk waitpid
16196 do :
16197 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16198 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16199 eval as_val=\$$as_ac_var
16200 if test "x$as_val" = x""yes; then :
16201 cat >>confdefs.h <<_ACEOF
16202 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16203 _ACEOF
16206 done
16208 for ac_func in open lseek close
16209 do :
16210 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16211 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16212 eval as_val=\$$as_ac_var
16213 if test "x$as_val" = x""yes; then :
16214 cat >>confdefs.h <<_ACEOF
16215 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16216 _ACEOF
16219 done
16221 ac_header_dirent=no
16222 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16223 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16225 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
16227 $as_echo_n "(cached) " >&6
16228 else
16229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16230 /* end confdefs.h. */
16231 #include <sys/types.h>
16232 #include <$ac_hdr>
16235 main ()
16237 if ((DIR *) 0)
16238 return 0;
16240 return 0;
16242 _ACEOF
16243 if ac_fn_c_try_compile "$LINENO"; then :
16244 eval "$as_ac_Header=yes"
16245 else
16246 eval "$as_ac_Header=no"
16248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16250 eval ac_res=\$$as_ac_Header
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16252 $as_echo "$ac_res" >&6; }
16253 eval as_val=\$$as_ac_Header
16254 if test "x$as_val" = x""yes; then :
16255 cat >>confdefs.h <<_ACEOF
16256 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16257 _ACEOF
16259 ac_header_dirent=$ac_hdr; break
16262 done
16263 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16264 if test $ac_header_dirent = dirent.h; then
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16266 $as_echo_n "checking for library containing opendir... " >&6; }
16267 if test "${ac_cv_search_opendir+set}" = set; then :
16268 $as_echo_n "(cached) " >&6
16269 else
16270 ac_func_search_save_LIBS=$LIBS
16271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16272 /* end confdefs.h. */
16274 /* Override any GCC internal prototype to avoid an error.
16275 Use char because int might match the return type of a GCC
16276 builtin and then its argument prototype would still apply. */
16277 #ifdef __cplusplus
16278 extern "C"
16279 #endif
16280 char opendir ();
16282 main ()
16284 return opendir ();
16286 return 0;
16288 _ACEOF
16289 for ac_lib in '' dir; do
16290 if test -z "$ac_lib"; then
16291 ac_res="none required"
16292 else
16293 ac_res=-l$ac_lib
16294 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16296 if ac_fn_c_try_link "$LINENO"; then :
16297 ac_cv_search_opendir=$ac_res
16299 rm -f core conftest.err conftest.$ac_objext \
16300 conftest$ac_exeext
16301 if test "${ac_cv_search_opendir+set}" = set; then :
16302 break
16304 done
16305 if test "${ac_cv_search_opendir+set}" = set; then :
16307 else
16308 ac_cv_search_opendir=no
16310 rm conftest.$ac_ext
16311 LIBS=$ac_func_search_save_LIBS
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16314 $as_echo "$ac_cv_search_opendir" >&6; }
16315 ac_res=$ac_cv_search_opendir
16316 if test "$ac_res" != no; then :
16317 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16321 else
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16323 $as_echo_n "checking for library containing opendir... " >&6; }
16324 if test "${ac_cv_search_opendir+set}" = set; then :
16325 $as_echo_n "(cached) " >&6
16326 else
16327 ac_func_search_save_LIBS=$LIBS
16328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16329 /* end confdefs.h. */
16331 /* Override any GCC internal prototype to avoid an error.
16332 Use char because int might match the return type of a GCC
16333 builtin and then its argument prototype would still apply. */
16334 #ifdef __cplusplus
16335 extern "C"
16336 #endif
16337 char opendir ();
16339 main ()
16341 return opendir ();
16343 return 0;
16345 _ACEOF
16346 for ac_lib in '' x; do
16347 if test -z "$ac_lib"; then
16348 ac_res="none required"
16349 else
16350 ac_res=-l$ac_lib
16351 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16353 if ac_fn_c_try_link "$LINENO"; then :
16354 ac_cv_search_opendir=$ac_res
16356 rm -f core conftest.err conftest.$ac_objext \
16357 conftest$ac_exeext
16358 if test "${ac_cv_search_opendir+set}" = set; then :
16359 break
16361 done
16362 if test "${ac_cv_search_opendir+set}" = set; then :
16364 else
16365 ac_cv_search_opendir=no
16367 rm conftest.$ac_ext
16368 LIBS=$ac_func_search_save_LIBS
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16371 $as_echo "$ac_cv_search_opendir" >&6; }
16372 ac_res=$ac_cv_search_opendir
16373 if test "$ac_res" != no; then :
16374 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16381 # Check for dlopen support and enable plugins if possible.
16382 enable_plugins=yes
16383 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
16385 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
16387 else
16388 enable_plugins=no
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16393 $as_echo_n "checking for library containing dlopen... " >&6; }
16394 if test "${ac_cv_search_dlopen+set}" = set; then :
16395 $as_echo_n "(cached) " >&6
16396 else
16397 ac_func_search_save_LIBS=$LIBS
16398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16399 /* end confdefs.h. */
16401 /* Override any GCC internal prototype to avoid an error.
16402 Use char because int might match the return type of a GCC
16403 builtin and then its argument prototype would still apply. */
16404 #ifdef __cplusplus
16405 extern "C"
16406 #endif
16407 char dlopen ();
16409 main ()
16411 return dlopen ();
16413 return 0;
16415 _ACEOF
16416 for ac_lib in '' dl; do
16417 if test -z "$ac_lib"; then
16418 ac_res="none required"
16419 else
16420 ac_res=-l$ac_lib
16421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16423 if ac_fn_c_try_link "$LINENO"; then :
16424 ac_cv_search_dlopen=$ac_res
16426 rm -f core conftest.err conftest.$ac_objext \
16427 conftest$ac_exeext
16428 if test "${ac_cv_search_dlopen+set}" = set; then :
16429 break
16431 done
16432 if test "${ac_cv_search_dlopen+set}" = set; then :
16434 else
16435 ac_cv_search_dlopen=no
16437 rm conftest.$ac_ext
16438 LIBS=$ac_func_search_save_LIBS
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16441 $as_echo "$ac_cv_search_dlopen" >&6; }
16442 ac_res=$ac_cv_search_dlopen
16443 if test "$ac_res" != no; then :
16444 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16446 else
16447 enable_plugins=no
16450 for ac_func in dlopen dlsym dlclose
16451 do :
16452 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16453 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16454 eval as_val=\$$as_ac_var
16455 if test "x$as_val" = x""yes; then :
16456 cat >>confdefs.h <<_ACEOF
16457 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16458 _ACEOF
16460 else
16461 enable_plugins=no
16463 done
16465 # We also support plugins on Windows (MinGW).
16466 if test x$enable_plugins = xno ; then
16467 for ac_header in Windows.h
16468 do :
16469 ac_fn_c_check_header_compile "$LINENO" "Windows.h" "ac_cv_header_Windows_h" "$ac_includes_default
16471 if test "x$ac_cv_header_Windows_h" = x""yes; then :
16472 cat >>confdefs.h <<_ACEOF
16473 #define HAVE_WINDOWS_H 1
16474 _ACEOF
16475 enable_plugins=yes
16478 done
16481 if test x$enable_plugins = xyes; then
16482 ENABLE_PLUGINS_TRUE=
16483 ENABLE_PLUGINS_FALSE='#'
16484 else
16485 ENABLE_PLUGINS_TRUE='#'
16486 ENABLE_PLUGINS_FALSE=
16490 # Check whether --enable-initfini-array was given.
16491 if test "${enable_initfini_array+set}" = set; then :
16492 enableval=$enable_initfini_array;
16493 else
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
16496 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
16497 if test "${gcc_cv_initfini_array+set}" = set; then :
16498 $as_echo_n "(cached) " >&6
16499 else
16500 if test "x${build}" = "x${target}" ; then
16501 if test "$cross_compiling" = yes; then :
16502 gcc_cv_initfini_array=no
16503 else
16504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16505 /* end confdefs.h. */
16507 static int x = -1;
16508 int main (void) { return x; }
16509 int foo (void) { x = 0; }
16510 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
16511 _ACEOF
16512 if ac_fn_c_try_run "$LINENO"; then :
16513 gcc_cv_initfini_array=yes
16514 else
16515 gcc_cv_initfini_array=no
16517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16518 conftest.$ac_objext conftest.beam conftest.$ac_ext
16521 else
16522 gcc_cv_initfini_array=no
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
16526 $as_echo "$gcc_cv_initfini_array" >&6; }
16527 enable_initfini_array=$gcc_cv_initfini_array
16532 if test $enable_initfini_array = yes; then
16534 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
16539 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
16540 if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then :
16541 $as_echo_n "(cached) " >&6
16542 else
16543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16544 /* end confdefs.h. */
16545 #include <unistd.h>
16547 main ()
16549 extern int getopt (int, char *const*, const char *);
16551 return 0;
16553 _ACEOF
16554 if ac_fn_c_try_compile "$LINENO"; then :
16555 ld_cv_decl_getopt_unistd_h=yes
16556 else
16557 ld_cv_decl_getopt_unistd_h=no
16559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5
16563 $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; }
16564 if test $ld_cv_decl_getopt_unistd_h = yes; then
16566 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
16571 case "${host}" in
16572 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
16574 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
16576 esac
16578 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
16579 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
16580 ac_have_decl=1
16581 else
16582 ac_have_decl=0
16585 cat >>confdefs.h <<_ACEOF
16586 #define HAVE_DECL_STRSTR $ac_have_decl
16587 _ACEOF
16588 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
16589 if test "x$ac_cv_have_decl_free" = x""yes; then :
16590 ac_have_decl=1
16591 else
16592 ac_have_decl=0
16595 cat >>confdefs.h <<_ACEOF
16596 #define HAVE_DECL_FREE $ac_have_decl
16597 _ACEOF
16598 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default"
16599 if test "x$ac_cv_have_decl_sbrk" = x""yes; then :
16600 ac_have_decl=1
16601 else
16602 ac_have_decl=0
16605 cat >>confdefs.h <<_ACEOF
16606 #define HAVE_DECL_SBRK $ac_have_decl
16607 _ACEOF
16608 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
16609 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
16610 ac_have_decl=1
16611 else
16612 ac_have_decl=0
16615 cat >>confdefs.h <<_ACEOF
16616 #define HAVE_DECL_GETENV $ac_have_decl
16617 _ACEOF
16618 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default"
16619 if test "x$ac_cv_have_decl_environ" = x""yes; then :
16620 ac_have_decl=1
16621 else
16622 ac_have_decl=0
16625 cat >>confdefs.h <<_ACEOF
16626 #define HAVE_DECL_ENVIRON $ac_have_decl
16627 _ACEOF
16630 # Link in zlib if we can. This is needed only for the bootstrap tests
16631 # right now, since those tests use libbfd, which depends on zlib.
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
16633 $as_echo_n "checking for library containing zlibVersion... " >&6; }
16634 if test "${ac_cv_search_zlibVersion+set}" = set; then :
16635 $as_echo_n "(cached) " >&6
16636 else
16637 ac_func_search_save_LIBS=$LIBS
16638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16639 /* end confdefs.h. */
16641 /* Override any GCC internal prototype to avoid an error.
16642 Use char because int might match the return type of a GCC
16643 builtin and then its argument prototype would still apply. */
16644 #ifdef __cplusplus
16645 extern "C"
16646 #endif
16647 char zlibVersion ();
16649 main ()
16651 return zlibVersion ();
16653 return 0;
16655 _ACEOF
16656 for ac_lib in '' z; do
16657 if test -z "$ac_lib"; then
16658 ac_res="none required"
16659 else
16660 ac_res=-l$ac_lib
16661 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16663 if ac_fn_c_try_link "$LINENO"; then :
16664 ac_cv_search_zlibVersion=$ac_res
16666 rm -f core conftest.err conftest.$ac_objext \
16667 conftest$ac_exeext
16668 if test "${ac_cv_search_zlibVersion+set}" = set; then :
16669 break
16671 done
16672 if test "${ac_cv_search_zlibVersion+set}" = set; then :
16674 else
16675 ac_cv_search_zlibVersion=no
16677 rm conftest.$ac_ext
16678 LIBS=$ac_func_search_save_LIBS
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
16681 $as_echo "$ac_cv_search_zlibVersion" >&6; }
16682 ac_res=$ac_cv_search_zlibVersion
16683 if test "$ac_res" != no; then :
16684 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16685 for ac_header in zlib.h
16686 do :
16687 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
16688 if test "x$ac_cv_header_zlib_h" = x""yes; then :
16689 cat >>confdefs.h <<_ACEOF
16690 #define HAVE_ZLIB_H 1
16691 _ACEOF
16695 done
16700 # When converting linker scripts into strings for use in emulation
16701 # files, use astring.sed if the compiler supports ANSI string
16702 # concatenation, or ostring.sed otherwise. This is to support the
16703 # broken Microsoft MSVC compiler, which limits the length of string
16704 # constants, while still supporting pre-ANSI compilers which do not
16705 # support string concatenation.
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5
16707 $as_echo_n "checking whether ANSI C string concatenation works... " >&6; }
16708 if test "${ld_cv_string_concatenation+set}" = set; then :
16709 $as_echo_n "(cached) " >&6
16710 else
16711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16712 /* end confdefs.h. */
16715 main ()
16717 char *a = "a" "a";
16719 return 0;
16721 _ACEOF
16722 if ac_fn_c_try_compile "$LINENO"; then :
16723 ld_cv_string_concatenation=yes
16724 else
16725 ld_cv_string_concatenation=no
16727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5
16731 $as_echo "$ld_cv_string_concatenation" >&6; }
16732 if test "$ld_cv_string_concatenation" = "yes"; then
16733 STRINGIFY=astring.sed
16734 else
16735 STRINGIFY=ostring.sed
16739 # target-specific stuff:
16741 all_targets=
16742 EMUL=
16743 all_emuls=
16744 all_emul_extras=
16745 all_libpath=
16747 rm -f tdirs
16749 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
16751 if test "$targ_alias" = "all"; then
16752 all_targets=true
16753 else
16754 # Canonicalize the secondary target names.
16755 result=`$ac_config_sub $targ_alias 2>/dev/null`
16756 if test -n "$result"; then
16757 targ=$result
16758 else
16759 targ=$targ_alias
16762 . ${srcdir}/configure.tgt
16764 if test "$targ" = "$target"; then
16765 EMUL=$targ_emul
16768 if test x${want64} = xfalse; then
16769 . ${srcdir}/../bfd/config.bfd
16772 if test x${want64} = xtrue; then
16773 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
16774 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
16777 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
16778 case " $all_emuls " in
16779 *" e${i}.o "*) ;;
16781 all_emuls="$all_emuls e${i}.o"
16782 eval result=\$tdir_$i
16783 test -z "$result" && result=$targ_alias
16784 echo tdir_$i=$result >> tdirs
16786 esac
16787 done
16789 for i in $targ_emul $targ_extra_libpath; do
16790 case " $all_libpath " in
16791 *" ${i} "*) ;;
16793 if test -z "$all_libpath"; then
16794 all_libpath=${i}
16795 else
16796 all_libpath="$all_libpath ${i}"
16799 esac
16800 done
16802 for i in $targ_extra_ofiles; do
16803 case " $all_emul_extras " in
16804 *" ${i} "*) ;;
16806 all_emul_extras="$all_emul_extras ${i}"
16808 esac
16809 done
16811 done
16815 TDIRS=tdirs
16818 if test x${all_targets} = xtrue; then
16819 if test x${want64} = xfalse; then
16820 # The cast to long int works around a bug in the HP C Compiler
16821 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16822 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16823 # This bug is HP SR number 8606223364.
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16825 $as_echo_n "checking size of long... " >&6; }
16826 if test "${ac_cv_sizeof_long+set}" = set; then :
16827 $as_echo_n "(cached) " >&6
16828 else
16829 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16831 else
16832 if test "$ac_cv_type_long" = yes; then
16833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16835 { as_fn_set_status 77
16836 as_fn_error "cannot compute sizeof (long)
16837 See \`config.log' for more details." "$LINENO" 5; }; }
16838 else
16839 ac_cv_sizeof_long=0
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16845 $as_echo "$ac_cv_sizeof_long" >&6; }
16849 cat >>confdefs.h <<_ACEOF
16850 #define SIZEOF_LONG $ac_cv_sizeof_long
16851 _ACEOF
16854 if test "x${ac_cv_sizeof_long}" = "x8"; then
16855 want64=true
16858 if test x${want64} = xtrue; then
16859 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)'
16860 else
16861 EMULATION_OFILES='$(ALL_EMULATIONS)'
16863 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)'
16864 else
16865 EMULATION_OFILES=$all_emuls
16866 EMUL_EXTRA_OFILES=$all_emul_extras
16872 EMULATION_LIBPATH=$all_libpath
16875 if test x${enable_static} = xno; then
16876 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so"
16877 else
16878 TESTBFDLIB="../bfd/.libs/libbfd.a"
16882 target_vendor=${target_vendor=$host_vendor}
16883 case "$target_vendor" in
16884 hp) EXTRA_SHLIB_EXTENSION=".sl" ;;
16885 *) EXTRA_SHLIB_EXTENSION= ;;
16886 esac
16888 case "$target_os" in
16889 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;;
16890 esac
16892 if test x${EXTRA_SHLIB_EXTENSION} != x ; then
16894 cat >>confdefs.h <<_ACEOF
16895 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION"
16896 _ACEOF
16905 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in"
16907 cat >confcache <<\_ACEOF
16908 # This file is a shell script that caches the results of configure
16909 # tests run on this system so they can be shared between configure
16910 # scripts and configure runs, see configure's option --config-cache.
16911 # It is not useful on other systems. If it contains results you don't
16912 # want to keep, you may remove or edit it.
16914 # config.status only pays attention to the cache file if you give it
16915 # the --recheck option to rerun configure.
16917 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16918 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16919 # following values.
16921 _ACEOF
16923 # The following way of writing the cache mishandles newlines in values,
16924 # but we know of no workaround that is simple, portable, and efficient.
16925 # So, we kill variables containing newlines.
16926 # Ultrix sh set writes to stderr and can't be redirected directly,
16927 # and sets the high bit in the cache file unless we assign to the vars.
16929 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16930 eval ac_val=\$$ac_var
16931 case $ac_val in #(
16932 *${as_nl}*)
16933 case $ac_var in #(
16934 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16935 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16936 esac
16937 case $ac_var in #(
16938 _ | IFS | as_nl) ;; #(
16939 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16940 *) { eval $ac_var=; unset $ac_var;} ;;
16941 esac ;;
16942 esac
16943 done
16945 (set) 2>&1 |
16946 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16947 *${as_nl}ac_space=\ *)
16948 # `set' does not quote correctly, so add quotes: double-quote
16949 # substitution turns \\\\ into \\, and sed turns \\ into \.
16950 sed -n \
16951 "s/'/'\\\\''/g;
16952 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16953 ;; #(
16955 # `set' quotes correctly as required by POSIX, so do not add quotes.
16956 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16958 esac |
16959 sort
16961 sed '
16962 /^ac_cv_env_/b end
16963 t clear
16964 :clear
16965 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16966 t end
16967 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16968 :end' >>confcache
16969 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16970 if test -w "$cache_file"; then
16971 test "x$cache_file" != "x/dev/null" &&
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16973 $as_echo "$as_me: updating cache $cache_file" >&6;}
16974 cat confcache >$cache_file
16975 else
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16977 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16980 rm -f confcache
16982 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16983 # Let make expand exec_prefix.
16984 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16986 DEFS=-DHAVE_CONFIG_H
16988 ac_libobjs=
16989 ac_ltlibobjs=
16990 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16991 # 1. Remove the extension, and $U if already installed.
16992 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16993 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16994 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16995 # will be set to the directory where LIBOBJS objects are built.
16996 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16997 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16998 done
16999 LIBOBJS=$ac_libobjs
17001 LTLIBOBJS=$ac_ltlibobjs
17004 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17005 as_fn_error "conditional \"AMDEP\" was never defined.
17006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17008 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17009 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17012 if test -n "$EXEEXT"; then
17013 am__EXEEXT_TRUE=
17014 am__EXEEXT_FALSE='#'
17015 else
17016 am__EXEEXT_TRUE='#'
17017 am__EXEEXT_FALSE=
17020 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17021 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17024 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17025 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17028 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17029 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17032 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
17033 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
17034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17036 if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then
17037 as_fn_error "conditional \"ENABLE_PLUGINS\" was never defined.
17038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17041 : ${CONFIG_STATUS=./config.status}
17042 ac_write_fail=0
17043 ac_clean_files_save=$ac_clean_files
17044 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17046 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17047 as_write_fail=0
17048 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17049 #! $SHELL
17050 # Generated by $as_me.
17051 # Run this file to recreate the current configuration.
17052 # Compiler output produced by configure, useful for debugging
17053 # configure, is in config.log if it exists.
17055 debug=false
17056 ac_cs_recheck=false
17057 ac_cs_silent=false
17059 SHELL=\${CONFIG_SHELL-$SHELL}
17060 export SHELL
17061 _ASEOF
17062 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17063 ## -------------------- ##
17064 ## M4sh Initialization. ##
17065 ## -------------------- ##
17067 # Be more Bourne compatible
17068 DUALCASE=1; export DUALCASE # for MKS sh
17069 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17070 emulate sh
17071 NULLCMD=:
17072 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17073 # is contrary to our usage. Disable this feature.
17074 alias -g '${1+"$@"}'='"$@"'
17075 setopt NO_GLOB_SUBST
17076 else
17077 case `(set -o) 2>/dev/null` in #(
17078 *posix*) :
17079 set -o posix ;; #(
17080 *) :
17082 esac
17086 as_nl='
17088 export as_nl
17089 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17090 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17091 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17092 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17093 # Prefer a ksh shell builtin over an external printf program on Solaris,
17094 # but without wasting forks for bash or zsh.
17095 if test -z "$BASH_VERSION$ZSH_VERSION" \
17096 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17097 as_echo='print -r --'
17098 as_echo_n='print -rn --'
17099 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17100 as_echo='printf %s\n'
17101 as_echo_n='printf %s'
17102 else
17103 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17104 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17105 as_echo_n='/usr/ucb/echo -n'
17106 else
17107 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17108 as_echo_n_body='eval
17109 arg=$1;
17110 case $arg in #(
17111 *"$as_nl"*)
17112 expr "X$arg" : "X\\(.*\\)$as_nl";
17113 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17114 esac;
17115 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17117 export as_echo_n_body
17118 as_echo_n='sh -c $as_echo_n_body as_echo'
17120 export as_echo_body
17121 as_echo='sh -c $as_echo_body as_echo'
17124 # The user is always right.
17125 if test "${PATH_SEPARATOR+set}" != set; then
17126 PATH_SEPARATOR=:
17127 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17128 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17129 PATH_SEPARATOR=';'
17134 # IFS
17135 # We need space, tab and new line, in precisely that order. Quoting is
17136 # there to prevent editors from complaining about space-tab.
17137 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17138 # splitting by setting IFS to empty value.)
17139 IFS=" "" $as_nl"
17141 # Find who we are. Look in the path if we contain no directory separator.
17142 case $0 in #((
17143 *[\\/]* ) as_myself=$0 ;;
17144 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17145 for as_dir in $PATH
17147 IFS=$as_save_IFS
17148 test -z "$as_dir" && as_dir=.
17149 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17150 done
17151 IFS=$as_save_IFS
17154 esac
17155 # We did not find ourselves, most probably we were run as `sh COMMAND'
17156 # in which case we are not to be found in the path.
17157 if test "x$as_myself" = x; then
17158 as_myself=$0
17160 if test ! -f "$as_myself"; then
17161 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17162 exit 1
17165 # Unset variables that we do not need and which cause bugs (e.g. in
17166 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17167 # suppresses any "Segmentation fault" message there. '((' could
17168 # trigger a bug in pdksh 5.2.14.
17169 for as_var in BASH_ENV ENV MAIL MAILPATH
17170 do eval test x\${$as_var+set} = xset \
17171 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17172 done
17173 PS1='$ '
17174 PS2='> '
17175 PS4='+ '
17177 # NLS nuisances.
17178 LC_ALL=C
17179 export LC_ALL
17180 LANGUAGE=C
17181 export LANGUAGE
17183 # CDPATH.
17184 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17187 # as_fn_error ERROR [LINENO LOG_FD]
17188 # ---------------------------------
17189 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17190 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17191 # script with status $?, using 1 if that was 0.
17192 as_fn_error ()
17194 as_status=$?; test $as_status -eq 0 && as_status=1
17195 if test "$3"; then
17196 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17197 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17199 $as_echo "$as_me: error: $1" >&2
17200 as_fn_exit $as_status
17201 } # as_fn_error
17204 # as_fn_set_status STATUS
17205 # -----------------------
17206 # Set $? to STATUS, without forking.
17207 as_fn_set_status ()
17209 return $1
17210 } # as_fn_set_status
17212 # as_fn_exit STATUS
17213 # -----------------
17214 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17215 as_fn_exit ()
17217 set +e
17218 as_fn_set_status $1
17219 exit $1
17220 } # as_fn_exit
17222 # as_fn_unset VAR
17223 # ---------------
17224 # Portably unset VAR.
17225 as_fn_unset ()
17227 { eval $1=; unset $1;}
17229 as_unset=as_fn_unset
17230 # as_fn_append VAR VALUE
17231 # ----------------------
17232 # Append the text in VALUE to the end of the definition contained in VAR. Take
17233 # advantage of any shell optimizations that allow amortized linear growth over
17234 # repeated appends, instead of the typical quadratic growth present in naive
17235 # implementations.
17236 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17237 eval 'as_fn_append ()
17239 eval $1+=\$2
17241 else
17242 as_fn_append ()
17244 eval $1=\$$1\$2
17246 fi # as_fn_append
17248 # as_fn_arith ARG...
17249 # ------------------
17250 # Perform arithmetic evaluation on the ARGs, and store the result in the
17251 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17252 # must be portable across $(()) and expr.
17253 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17254 eval 'as_fn_arith ()
17256 as_val=$(( $* ))
17258 else
17259 as_fn_arith ()
17261 as_val=`expr "$@" || test $? -eq 1`
17263 fi # as_fn_arith
17266 if expr a : '\(a\)' >/dev/null 2>&1 &&
17267 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17268 as_expr=expr
17269 else
17270 as_expr=false
17273 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17274 as_basename=basename
17275 else
17276 as_basename=false
17279 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17280 as_dirname=dirname
17281 else
17282 as_dirname=false
17285 as_me=`$as_basename -- "$0" ||
17286 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17287 X"$0" : 'X\(//\)$' \| \
17288 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17289 $as_echo X/"$0" |
17290 sed '/^.*\/\([^/][^/]*\)\/*$/{
17291 s//\1/
17294 /^X\/\(\/\/\)$/{
17295 s//\1/
17298 /^X\/\(\/\).*/{
17299 s//\1/
17302 s/.*/./; q'`
17304 # Avoid depending upon Character Ranges.
17305 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17306 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17307 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17308 as_cr_digits='0123456789'
17309 as_cr_alnum=$as_cr_Letters$as_cr_digits
17311 ECHO_C= ECHO_N= ECHO_T=
17312 case `echo -n x` in #(((((
17313 -n*)
17314 case `echo 'xy\c'` in
17315 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17316 xy) ECHO_C='\c';;
17317 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17318 ECHO_T=' ';;
17319 esac;;
17321 ECHO_N='-n';;
17322 esac
17324 rm -f conf$$ conf$$.exe conf$$.file
17325 if test -d conf$$.dir; then
17326 rm -f conf$$.dir/conf$$.file
17327 else
17328 rm -f conf$$.dir
17329 mkdir conf$$.dir 2>/dev/null
17331 if (echo >conf$$.file) 2>/dev/null; then
17332 if ln -s conf$$.file conf$$ 2>/dev/null; then
17333 as_ln_s='ln -s'
17334 # ... but there are two gotchas:
17335 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17336 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17337 # In both cases, we have to default to `cp -p'.
17338 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17339 as_ln_s='cp -p'
17340 elif ln conf$$.file conf$$ 2>/dev/null; then
17341 as_ln_s=ln
17342 else
17343 as_ln_s='cp -p'
17345 else
17346 as_ln_s='cp -p'
17348 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17349 rmdir conf$$.dir 2>/dev/null
17352 # as_fn_mkdir_p
17353 # -------------
17354 # Create "$as_dir" as a directory, including parents if necessary.
17355 as_fn_mkdir_p ()
17358 case $as_dir in #(
17359 -*) as_dir=./$as_dir;;
17360 esac
17361 test -d "$as_dir" || eval $as_mkdir_p || {
17362 as_dirs=
17363 while :; do
17364 case $as_dir in #(
17365 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17366 *) as_qdir=$as_dir;;
17367 esac
17368 as_dirs="'$as_qdir' $as_dirs"
17369 as_dir=`$as_dirname -- "$as_dir" ||
17370 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17371 X"$as_dir" : 'X\(//\)[^/]' \| \
17372 X"$as_dir" : 'X\(//\)$' \| \
17373 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17374 $as_echo X"$as_dir" |
17375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17376 s//\1/
17379 /^X\(\/\/\)[^/].*/{
17380 s//\1/
17383 /^X\(\/\/\)$/{
17384 s//\1/
17387 /^X\(\/\).*/{
17388 s//\1/
17391 s/.*/./; q'`
17392 test -d "$as_dir" && break
17393 done
17394 test -z "$as_dirs" || eval "mkdir $as_dirs"
17395 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17398 } # as_fn_mkdir_p
17399 if mkdir -p . 2>/dev/null; then
17400 as_mkdir_p='mkdir -p "$as_dir"'
17401 else
17402 test -d ./-p && rmdir ./-p
17403 as_mkdir_p=false
17406 if test -x / >/dev/null 2>&1; then
17407 as_test_x='test -x'
17408 else
17409 if ls -dL / >/dev/null 2>&1; then
17410 as_ls_L_option=L
17411 else
17412 as_ls_L_option=
17414 as_test_x='
17415 eval sh -c '\''
17416 if test -d "$1"; then
17417 test -d "$1/.";
17418 else
17419 case $1 in #(
17420 -*)set "./$1";;
17421 esac;
17422 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17423 ???[sx]*):;;*)false;;esac;fi
17424 '\'' sh
17427 as_executable_p=$as_test_x
17429 # Sed expression to map a string onto a valid CPP name.
17430 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17432 # Sed expression to map a string onto a valid variable name.
17433 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17436 exec 6>&1
17437 ## ----------------------------------- ##
17438 ## Main body of $CONFIG_STATUS script. ##
17439 ## ----------------------------------- ##
17440 _ASEOF
17441 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17444 # Save the log message, to keep $0 and so on meaningful, and to
17445 # report actual input values of CONFIG_FILES etc. instead of their
17446 # values after options handling.
17447 ac_log="
17448 This file was extended by $as_me, which was
17449 generated by GNU Autoconf 2.64. Invocation command line was
17451 CONFIG_FILES = $CONFIG_FILES
17452 CONFIG_HEADERS = $CONFIG_HEADERS
17453 CONFIG_LINKS = $CONFIG_LINKS
17454 CONFIG_COMMANDS = $CONFIG_COMMANDS
17455 $ $0 $@
17457 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17460 _ACEOF
17462 case $ac_config_files in *"
17463 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17464 esac
17466 case $ac_config_headers in *"
17467 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17468 esac
17471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17472 # Files that config.status was made for.
17473 config_files="$ac_config_files"
17474 config_headers="$ac_config_headers"
17475 config_commands="$ac_config_commands"
17477 _ACEOF
17479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17480 ac_cs_usage="\
17481 \`$as_me' instantiates files and other configuration actions
17482 from templates according to the current configuration. Unless the files
17483 and actions are specified as TAGs, all are instantiated by default.
17485 Usage: $0 [OPTION]... [TAG]...
17487 -h, --help print this help, then exit
17488 -V, --version print version number and configuration settings, then exit
17489 -q, --quiet, --silent
17490 do not print progress messages
17491 -d, --debug don't remove temporary files
17492 --recheck update $as_me by reconfiguring in the same conditions
17493 --file=FILE[:TEMPLATE]
17494 instantiate the configuration file FILE
17495 --header=FILE[:TEMPLATE]
17496 instantiate the configuration header FILE
17498 Configuration files:
17499 $config_files
17501 Configuration headers:
17502 $config_headers
17504 Configuration commands:
17505 $config_commands
17507 Report bugs to the package provider."
17509 _ACEOF
17510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17511 ac_cs_version="\\
17512 config.status
17513 configured by $0, generated by GNU Autoconf 2.64,
17514 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17516 Copyright (C) 2009 Free Software Foundation, Inc.
17517 This config.status script is free software; the Free Software Foundation
17518 gives unlimited permission to copy, distribute and modify it."
17520 ac_pwd='$ac_pwd'
17521 srcdir='$srcdir'
17522 INSTALL='$INSTALL'
17523 MKDIR_P='$MKDIR_P'
17524 AWK='$AWK'
17525 test -n "\$AWK" || AWK=awk
17526 _ACEOF
17528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17529 # The default lists apply if the user does not specify any file.
17530 ac_need_defaults=:
17531 while test $# != 0
17533 case $1 in
17534 --*=*)
17535 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17536 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17537 ac_shift=:
17540 ac_option=$1
17541 ac_optarg=$2
17542 ac_shift=shift
17544 esac
17546 case $ac_option in
17547 # Handling of the options.
17548 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17549 ac_cs_recheck=: ;;
17550 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17551 $as_echo "$ac_cs_version"; exit ;;
17552 --debug | --debu | --deb | --de | --d | -d )
17553 debug=: ;;
17554 --file | --fil | --fi | --f )
17555 $ac_shift
17556 case $ac_optarg in
17557 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17558 esac
17559 as_fn_append CONFIG_FILES " '$ac_optarg'"
17560 ac_need_defaults=false;;
17561 --header | --heade | --head | --hea )
17562 $ac_shift
17563 case $ac_optarg in
17564 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17565 esac
17566 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17567 ac_need_defaults=false;;
17568 --he | --h)
17569 # Conflict between --help and --header
17570 as_fn_error "ambiguous option: \`$1'
17571 Try \`$0 --help' for more information.";;
17572 --help | --hel | -h )
17573 $as_echo "$ac_cs_usage"; exit ;;
17574 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17575 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17576 ac_cs_silent=: ;;
17578 # This is an error.
17579 -*) as_fn_error "unrecognized option: \`$1'
17580 Try \`$0 --help' for more information." ;;
17582 *) as_fn_append ac_config_targets " $1"
17583 ac_need_defaults=false ;;
17585 esac
17586 shift
17587 done
17589 ac_configure_extra_args=
17591 if $ac_cs_silent; then
17592 exec 6>/dev/null
17593 ac_configure_extra_args="$ac_configure_extra_args --silent"
17596 _ACEOF
17597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17598 if \$ac_cs_recheck; then
17599 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17600 shift
17601 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17602 CONFIG_SHELL='$SHELL'
17603 export CONFIG_SHELL
17604 exec "\$@"
17607 _ACEOF
17608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17609 exec 5>>config.log
17611 echo
17612 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17613 ## Running $as_me. ##
17614 _ASBOX
17615 $as_echo "$ac_log"
17616 } >&5
17618 _ACEOF
17619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17621 # INIT-COMMANDS
17623 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17626 # The HP-UX ksh and POSIX shell print the target directory to stdout
17627 # if CDPATH is set.
17628 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17630 sed_quote_subst='$sed_quote_subst'
17631 double_quote_subst='$double_quote_subst'
17632 delay_variable_subst='$delay_variable_subst'
17633 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17634 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17635 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17636 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17637 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17638 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17639 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17640 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17641 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17642 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17643 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17644 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17645 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17646 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17647 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17648 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17649 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17650 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17651 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17652 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17653 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17654 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17655 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17656 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17657 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17658 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17659 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17660 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17661 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17662 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17663 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17664 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17665 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17666 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17667 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17668 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17669 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17670 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17671 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17672 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17673 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17674 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17675 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17676 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17677 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17678 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17679 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17680 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17681 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"`'
17682 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17683 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17684 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17685 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17686 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17687 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17688 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17689 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17690 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17691 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17692 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17693 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17694 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17695 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17696 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17697 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17698 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17699 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17700 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17701 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17702 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17703 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17704 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17705 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17706 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17707 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17708 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17709 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17710 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17711 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17712 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17713 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17714 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17715 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17716 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17717 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17718 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17719 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17720 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17721 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17722 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17723 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17724 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17725 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17726 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17727 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17728 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17729 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17730 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17731 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17732 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17733 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17734 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17735 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17736 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17737 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17738 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17739 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17740 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17741 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17742 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17743 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17744 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17745 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17746 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17747 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17748 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17749 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17750 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17751 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17752 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17753 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17754 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17755 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17756 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17757 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17758 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17759 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17760 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17761 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17762 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17763 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17764 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17765 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17766 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17767 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17768 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17769 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17770 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17771 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17772 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17773 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17774 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17775 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17776 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17777 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17778 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17779 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17780 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17781 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17782 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17783 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17784 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17785 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17786 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17787 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17788 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17789 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17790 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17791 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17792 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17793 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17794 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17795 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17796 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17797 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17798 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17799 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17800 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17801 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17802 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17803 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17804 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17805 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17806 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17807 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17809 LTCC='$LTCC'
17810 LTCFLAGS='$LTCFLAGS'
17811 compiler='$compiler_DEFAULT'
17813 # A function that is used when there is no print builtin or printf.
17814 func_fallback_echo ()
17816 eval 'cat <<_LTECHO_EOF
17818 _LTECHO_EOF'
17821 # Quote evaled strings.
17822 for var in SHELL \
17823 ECHO \
17824 SED \
17825 GREP \
17826 EGREP \
17827 FGREP \
17828 LD \
17829 NM \
17830 LN_S \
17831 lt_SP2NL \
17832 lt_NL2SP \
17833 reload_flag \
17834 OBJDUMP \
17835 deplibs_check_method \
17836 file_magic_cmd \
17837 AR \
17838 AR_FLAGS \
17839 STRIP \
17840 RANLIB \
17841 CC \
17842 CFLAGS \
17843 compiler \
17844 lt_cv_sys_global_symbol_pipe \
17845 lt_cv_sys_global_symbol_to_cdecl \
17846 lt_cv_sys_global_symbol_to_c_name_address \
17847 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17848 lt_prog_compiler_no_builtin_flag \
17849 lt_prog_compiler_wl \
17850 lt_prog_compiler_pic \
17851 lt_prog_compiler_static \
17852 lt_cv_prog_compiler_c_o \
17853 need_locks \
17854 DSYMUTIL \
17855 NMEDIT \
17856 LIPO \
17857 OTOOL \
17858 OTOOL64 \
17859 shrext_cmds \
17860 export_dynamic_flag_spec \
17861 whole_archive_flag_spec \
17862 compiler_needs_object \
17863 with_gnu_ld \
17864 allow_undefined_flag \
17865 no_undefined_flag \
17866 hardcode_libdir_flag_spec \
17867 hardcode_libdir_flag_spec_ld \
17868 hardcode_libdir_separator \
17869 fix_srcfile_path \
17870 exclude_expsyms \
17871 include_expsyms \
17872 file_list_spec \
17873 variables_saved_for_relink \
17874 libname_spec \
17875 library_names_spec \
17876 soname_spec \
17877 install_override_mode \
17878 finish_eval \
17879 old_striplib \
17880 striplib \
17881 compiler_lib_search_dirs \
17882 predep_objects \
17883 postdep_objects \
17884 predeps \
17885 postdeps \
17886 compiler_lib_search_path \
17887 LD_CXX \
17888 reload_flag_CXX \
17889 compiler_CXX \
17890 lt_prog_compiler_no_builtin_flag_CXX \
17891 lt_prog_compiler_wl_CXX \
17892 lt_prog_compiler_pic_CXX \
17893 lt_prog_compiler_static_CXX \
17894 lt_cv_prog_compiler_c_o_CXX \
17895 export_dynamic_flag_spec_CXX \
17896 whole_archive_flag_spec_CXX \
17897 compiler_needs_object_CXX \
17898 with_gnu_ld_CXX \
17899 allow_undefined_flag_CXX \
17900 no_undefined_flag_CXX \
17901 hardcode_libdir_flag_spec_CXX \
17902 hardcode_libdir_flag_spec_ld_CXX \
17903 hardcode_libdir_separator_CXX \
17904 fix_srcfile_path_CXX \
17905 exclude_expsyms_CXX \
17906 include_expsyms_CXX \
17907 file_list_spec_CXX \
17908 compiler_lib_search_dirs_CXX \
17909 predep_objects_CXX \
17910 postdep_objects_CXX \
17911 predeps_CXX \
17912 postdeps_CXX \
17913 compiler_lib_search_path_CXX; do
17914 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17915 *[\\\\\\\`\\"\\\$]*)
17916 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17919 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17921 esac
17922 done
17924 # Double-quote double-evaled strings.
17925 for var in reload_cmds \
17926 old_postinstall_cmds \
17927 old_postuninstall_cmds \
17928 old_archive_cmds \
17929 extract_expsyms_cmds \
17930 old_archive_from_new_cmds \
17931 old_archive_from_expsyms_cmds \
17932 archive_cmds \
17933 archive_expsym_cmds \
17934 module_cmds \
17935 module_expsym_cmds \
17936 export_symbols_cmds \
17937 prelink_cmds \
17938 postinstall_cmds \
17939 postuninstall_cmds \
17940 finish_cmds \
17941 sys_lib_search_path_spec \
17942 sys_lib_dlsearch_path_spec \
17943 reload_cmds_CXX \
17944 old_archive_cmds_CXX \
17945 old_archive_from_new_cmds_CXX \
17946 old_archive_from_expsyms_cmds_CXX \
17947 archive_cmds_CXX \
17948 archive_expsym_cmds_CXX \
17949 module_cmds_CXX \
17950 module_expsym_cmds_CXX \
17951 export_symbols_cmds_CXX \
17952 prelink_cmds_CXX; do
17953 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17954 *[\\\\\\\`\\"\\\$]*)
17955 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17958 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17960 esac
17961 done
17963 ac_aux_dir='$ac_aux_dir'
17964 xsi_shell='$xsi_shell'
17965 lt_shell_append='$lt_shell_append'
17967 # See if we are running on zsh, and set the options which allow our
17968 # commands through without removal of \ escapes INIT.
17969 if test -n "\${ZSH_VERSION+set}" ; then
17970 setopt NO_GLOB_SUBST
17974 PACKAGE='$PACKAGE'
17975 VERSION='$VERSION'
17976 TIMESTAMP='$TIMESTAMP'
17977 RM='$RM'
17978 ofile='$ofile'
17984 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17985 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17986 # from automake.
17987 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17988 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17989 LINGUAS="${LINGUAS-%UNSET%}"
17992 _ACEOF
17994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17996 # Handling of arguments.
17997 for ac_config_target in $ac_config_targets
17999 case $ac_config_target in
18000 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18001 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
18002 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18003 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18004 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18005 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
18007 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18008 esac
18009 done
18012 # If the user did not use the arguments to specify the items to instantiate,
18013 # then the envvar interface is used. Set only those that are not.
18014 # We use the long form for the default assignment because of an extremely
18015 # bizarre bug on SunOS 4.1.3.
18016 if $ac_need_defaults; then
18017 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18018 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18019 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18022 # Have a temporary directory for convenience. Make it in the build tree
18023 # simply because there is no reason against having it here, and in addition,
18024 # creating and moving files from /tmp can sometimes cause problems.
18025 # Hook for its removal unless debugging.
18026 # Note that there is a small window in which the directory will not be cleaned:
18027 # after its creation but before its name has been assigned to `$tmp'.
18028 $debug ||
18030 tmp=
18031 trap 'exit_status=$?
18032 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18034 trap 'as_fn_exit 1' 1 2 13 15
18036 # Create a (secure) tmp directory for tmp files.
18039 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18040 test -n "$tmp" && test -d "$tmp"
18041 } ||
18043 tmp=./conf$$-$RANDOM
18044 (umask 077 && mkdir "$tmp")
18045 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18047 # Set up the scripts for CONFIG_FILES section.
18048 # No need to generate them if there are no CONFIG_FILES.
18049 # This happens for instance with `./config.status config.h'.
18050 if test -n "$CONFIG_FILES"; then
18052 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18053 ac_cs_awk_getline=:
18054 ac_cs_awk_pipe_init=
18055 ac_cs_awk_read_file='
18056 while ((getline aline < (F[key])) > 0)
18057 print(aline)
18058 close(F[key])'
18059 ac_cs_awk_pipe_fini=
18060 else
18061 ac_cs_awk_getline=false
18062 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18063 ac_cs_awk_read_file='
18064 print "|#_!!_#|"
18065 print "cat " F[key] " &&"
18066 '$ac_cs_awk_pipe_init
18067 # The final `:' finishes the AND list.
18068 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18070 ac_cr=`echo X | tr X '\015'`
18071 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18072 # But we know of no other shell where ac_cr would be empty at this
18073 # point, so we can use a bashism as a fallback.
18074 if test "x$ac_cr" = x; then
18075 eval ac_cr=\$\'\\r\'
18077 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18078 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18079 ac_cs_awk_cr='\r'
18080 else
18081 ac_cs_awk_cr=$ac_cr
18084 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18085 _ACEOF
18087 # Create commands to substitute file output variables.
18089 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18090 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
18091 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18092 echo "_ACAWK" &&
18093 echo "_ACEOF"
18094 } >conf$$files.sh &&
18095 . ./conf$$files.sh ||
18096 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18097 rm -f conf$$files.sh
18100 echo "cat >conf$$subs.awk <<_ACEOF" &&
18101 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18102 echo "_ACEOF"
18103 } >conf$$subs.sh ||
18104 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18105 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18106 ac_delim='%!_!# '
18107 for ac_last_try in false false false false false :; do
18108 . ./conf$$subs.sh ||
18109 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18111 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18112 if test $ac_delim_n = $ac_delim_num; then
18113 break
18114 elif $ac_last_try; then
18115 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18116 else
18117 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18119 done
18120 rm -f conf$$subs.sh
18122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18123 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18124 _ACEOF
18125 sed -n '
18127 s/^/S["/; s/!.*/"]=/
18130 s/^[^!]*!//
18131 :repl
18132 t repl
18133 s/'"$ac_delim"'$//
18134 t delim
18137 s/\(.\{148\}\).*/\1/
18138 t more1
18139 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18142 b repl
18143 :more1
18144 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18147 s/.\{148\}//
18148 t nl
18149 :delim
18151 s/\(.\{148\}\).*/\1/
18152 t more2
18153 s/["\\]/\\&/g; s/^/"/; s/$/"/
18156 :more2
18157 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18160 s/.\{148\}//
18161 t delim
18162 ' <conf$$subs.awk | sed '
18163 /^[^""]/{
18165 s/\n//
18167 ' >>$CONFIG_STATUS || ac_write_fail=1
18168 rm -f conf$$subs.awk
18169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18170 _ACAWK
18171 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18172 for (key in S) S_is_set[key] = 1
18173 FS = "\a"
18174 \$ac_cs_awk_pipe_init
18177 line = $ 0
18178 nfields = split(line, field, "@")
18179 substed = 0
18180 len = length(field[1])
18181 for (i = 2; i < nfields; i++) {
18182 key = field[i]
18183 keylen = length(key)
18184 if (S_is_set[key]) {
18185 value = S[key]
18186 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18187 len += length(value) + length(field[++i])
18188 substed = 1
18189 } else
18190 len += 1 + keylen
18192 if (nfields == 3 && !substed) {
18193 key = field[2]
18194 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18195 \$ac_cs_awk_read_file
18196 next
18199 print line
18201 \$ac_cs_awk_pipe_fini
18202 _ACAWK
18203 _ACEOF
18204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18205 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18206 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18207 else
18209 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18210 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18211 _ACEOF
18213 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18214 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18215 # trailing colons and then remove the whole line if VPATH becomes empty
18216 # (actually we leave an empty line to preserve line numbers).
18217 if test "x$srcdir" = x.; then
18218 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18219 s/:*\$(srcdir):*/:/
18220 s/:*\${srcdir}:*/:/
18221 s/:*@srcdir@:*/:/
18222 s/^\([^=]*=[ ]*\):*/\1/
18223 s/:*$//
18224 s/^[^=]*=[ ]*$//
18228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18229 fi # test -n "$CONFIG_FILES"
18231 # Set up the scripts for CONFIG_HEADERS section.
18232 # No need to generate them if there are no CONFIG_HEADERS.
18233 # This happens for instance with `./config.status Makefile'.
18234 if test -n "$CONFIG_HEADERS"; then
18235 cat >"$tmp/defines.awk" <<\_ACAWK ||
18236 BEGIN {
18237 _ACEOF
18239 # Transform confdefs.h into an awk script `defines.awk', embedded as
18240 # here-document in config.status, that substitutes the proper values into
18241 # config.h.in to produce config.h.
18243 # Create a delimiter string that does not exist in confdefs.h, to ease
18244 # handling of long lines.
18245 ac_delim='%!_!# '
18246 for ac_last_try in false false :; do
18247 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18248 if test -z "$ac_t"; then
18249 break
18250 elif $ac_last_try; then
18251 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18252 else
18253 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18255 done
18257 # For the awk script, D is an array of macro values keyed by name,
18258 # likewise P contains macro parameters if any. Preserve backslash
18259 # newline sequences.
18261 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18262 sed -n '
18263 s/.\{148\}/&'"$ac_delim"'/g
18264 t rset
18265 :rset
18266 s/^[ ]*#[ ]*define[ ][ ]*/ /
18267 t def
18269 :def
18270 s/\\$//
18271 t bsnl
18272 s/["\\]/\\&/g
18273 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18274 D["\1"]=" \3"/p
18275 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18277 :bsnl
18278 s/["\\]/\\&/g
18279 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18280 D["\1"]=" \3\\\\\\n"\\/p
18281 t cont
18282 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18283 t cont
18285 :cont
18287 s/.\{148\}/&'"$ac_delim"'/g
18288 t clear
18289 :clear
18290 s/\\$//
18291 t bsnlc
18292 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18294 :bsnlc
18295 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18296 b cont
18297 ' <confdefs.h | sed '
18298 s/'"$ac_delim"'/"\\\
18299 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18302 for (key in D) D_is_set[key] = 1
18303 FS = "\a"
18305 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18306 line = \$ 0
18307 split(line, arg, " ")
18308 if (arg[1] == "#") {
18309 defundef = arg[2]
18310 mac1 = arg[3]
18311 } else {
18312 defundef = substr(arg[1], 2)
18313 mac1 = arg[2]
18315 split(mac1, mac2, "(") #)
18316 macro = mac2[1]
18317 prefix = substr(line, 1, index(line, defundef) - 1)
18318 if (D_is_set[macro]) {
18319 # Preserve the white space surrounding the "#".
18320 print prefix "define", macro P[macro] D[macro]
18321 next
18322 } else {
18323 # Replace #undef with comments. This is necessary, for example,
18324 # in the case of _POSIX_SOURCE, which is predefined and required
18325 # on some systems where configure will not decide to define it.
18326 if (defundef == "undef") {
18327 print "/*", prefix defundef, macro, "*/"
18328 next
18332 { print }
18333 _ACAWK
18334 _ACEOF
18335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18336 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18337 fi # test -n "$CONFIG_HEADERS"
18340 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18341 shift
18342 for ac_tag
18344 case $ac_tag in
18345 :[FHLC]) ac_mode=$ac_tag; continue;;
18346 esac
18347 case $ac_mode$ac_tag in
18348 :[FHL]*:*);;
18349 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18350 :[FH]-) ac_tag=-:-;;
18351 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18352 esac
18353 ac_save_IFS=$IFS
18354 IFS=:
18355 set x $ac_tag
18356 IFS=$ac_save_IFS
18357 shift
18358 ac_file=$1
18359 shift
18361 case $ac_mode in
18362 :L) ac_source=$1;;
18363 :[FH])
18364 ac_file_inputs=
18365 for ac_f
18367 case $ac_f in
18368 -) ac_f="$tmp/stdin";;
18369 *) # Look for the file first in the build tree, then in the source tree
18370 # (if the path is not absolute). The absolute path cannot be DOS-style,
18371 # because $ac_f cannot contain `:'.
18372 test -f "$ac_f" ||
18373 case $ac_f in
18374 [\\/$]*) false;;
18375 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18376 esac ||
18377 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18378 esac
18379 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18380 as_fn_append ac_file_inputs " '$ac_f'"
18381 done
18383 # Let's still pretend it is `configure' which instantiates (i.e., don't
18384 # use $as_me), people would be surprised to read:
18385 # /* config.h. Generated by config.status. */
18386 configure_input='Generated from '`
18387 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18388 `' by configure.'
18389 if test x"$ac_file" != x-; then
18390 configure_input="$ac_file. $configure_input"
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18392 $as_echo "$as_me: creating $ac_file" >&6;}
18394 # Neutralize special characters interpreted by sed in replacement strings.
18395 case $configure_input in #(
18396 *\&* | *\|* | *\\* )
18397 ac_sed_conf_input=`$as_echo "$configure_input" |
18398 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18399 *) ac_sed_conf_input=$configure_input;;
18400 esac
18402 case $ac_tag in
18403 *:-:* | *:-) cat >"$tmp/stdin" \
18404 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18405 esac
18407 esac
18409 ac_dir=`$as_dirname -- "$ac_file" ||
18410 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18411 X"$ac_file" : 'X\(//\)[^/]' \| \
18412 X"$ac_file" : 'X\(//\)$' \| \
18413 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18414 $as_echo X"$ac_file" |
18415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18416 s//\1/
18419 /^X\(\/\/\)[^/].*/{
18420 s//\1/
18423 /^X\(\/\/\)$/{
18424 s//\1/
18427 /^X\(\/\).*/{
18428 s//\1/
18431 s/.*/./; q'`
18432 as_dir="$ac_dir"; as_fn_mkdir_p
18433 ac_builddir=.
18435 case "$ac_dir" in
18436 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18438 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18439 # A ".." for each directory in $ac_dir_suffix.
18440 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18441 case $ac_top_builddir_sub in
18442 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18443 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18444 esac ;;
18445 esac
18446 ac_abs_top_builddir=$ac_pwd
18447 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18448 # for backward compatibility:
18449 ac_top_builddir=$ac_top_build_prefix
18451 case $srcdir in
18452 .) # We are building in place.
18453 ac_srcdir=.
18454 ac_top_srcdir=$ac_top_builddir_sub
18455 ac_abs_top_srcdir=$ac_pwd ;;
18456 [\\/]* | ?:[\\/]* ) # Absolute name.
18457 ac_srcdir=$srcdir$ac_dir_suffix;
18458 ac_top_srcdir=$srcdir
18459 ac_abs_top_srcdir=$srcdir ;;
18460 *) # Relative name.
18461 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18462 ac_top_srcdir=$ac_top_build_prefix$srcdir
18463 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18464 esac
18465 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18468 case $ac_mode in
18471 # CONFIG_FILE
18474 case $INSTALL in
18475 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18476 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18477 esac
18478 ac_MKDIR_P=$MKDIR_P
18479 case $MKDIR_P in
18480 [\\/$]* | ?:[\\/]* ) ;;
18481 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18482 esac
18483 _ACEOF
18485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18486 # If the template does not know about datarootdir, expand it.
18487 # FIXME: This hack should be removed a few years after 2.60.
18488 ac_datarootdir_hack=; ac_datarootdir_seen=
18489 ac_sed_dataroot='
18490 /datarootdir/ {
18494 /@datadir@/p
18495 /@docdir@/p
18496 /@infodir@/p
18497 /@localedir@/p
18498 /@mandir@/p'
18499 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18500 *datarootdir*) ac_datarootdir_seen=yes;;
18501 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18503 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18504 _ACEOF
18505 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18506 ac_datarootdir_hack='
18507 s&@datadir@&$datadir&g
18508 s&@docdir@&$docdir&g
18509 s&@infodir@&$infodir&g
18510 s&@localedir@&$localedir&g
18511 s&@mandir@&$mandir&g
18512 s&\\\${datarootdir}&$datarootdir&g' ;;
18513 esac
18514 _ACEOF
18516 # Neutralize VPATH when `$srcdir' = `.'.
18517 # Shell code in configure.ac might set extrasub.
18518 # FIXME: do we really want to maintain this feature?
18519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18520 ac_sed_extra="$ac_vpsub
18521 $extrasub
18522 _ACEOF
18523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18525 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18526 s|@configure_input@|$ac_sed_conf_input|;t t
18527 s&@top_builddir@&$ac_top_builddir_sub&;t t
18528 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18529 s&@srcdir@&$ac_srcdir&;t t
18530 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18531 s&@top_srcdir@&$ac_top_srcdir&;t t
18532 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18533 s&@builddir@&$ac_builddir&;t t
18534 s&@abs_builddir@&$ac_abs_builddir&;t t
18535 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18536 s&@INSTALL@&$ac_INSTALL&;t t
18537 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18538 $ac_datarootdir_hack
18540 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18541 if $ac_cs_awk_getline; then
18542 $AWK -f "$tmp/subs.awk"
18543 else
18544 $AWK -f "$tmp/subs.awk" | $SHELL
18545 fi >$tmp/out \
18546 || as_fn_error "could not create $ac_file" "$LINENO" 5
18548 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18549 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18550 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18552 which seems to be undefined. Please make sure it is defined." >&5
18553 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18554 which seems to be undefined. Please make sure it is defined." >&2;}
18556 rm -f "$tmp/stdin"
18557 case $ac_file in
18558 -) cat "$tmp/out" && rm -f "$tmp/out";;
18559 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18560 esac \
18561 || as_fn_error "could not create $ac_file" "$LINENO" 5
18565 # CONFIG_HEADER
18567 if test x"$ac_file" != x-; then
18569 $as_echo "/* $configure_input */" \
18570 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18571 } >"$tmp/config.h" \
18572 || as_fn_error "could not create $ac_file" "$LINENO" 5
18573 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18575 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18576 else
18577 rm -f "$ac_file"
18578 mv "$tmp/config.h" "$ac_file" \
18579 || as_fn_error "could not create $ac_file" "$LINENO" 5
18581 else
18582 $as_echo "/* $configure_input */" \
18583 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18584 || as_fn_error "could not create -" "$LINENO" 5
18586 # Compute "$ac_file"'s index in $config_headers.
18587 _am_arg="$ac_file"
18588 _am_stamp_count=1
18589 for _am_header in $config_headers :; do
18590 case $_am_header in
18591 $_am_arg | $_am_arg:* )
18592 break ;;
18594 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18595 esac
18596 done
18597 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18598 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18599 X"$_am_arg" : 'X\(//\)[^/]' \| \
18600 X"$_am_arg" : 'X\(//\)$' \| \
18601 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18602 $as_echo X"$_am_arg" |
18603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18604 s//\1/
18607 /^X\(\/\/\)[^/].*/{
18608 s//\1/
18611 /^X\(\/\/\)$/{
18612 s//\1/
18615 /^X\(\/\).*/{
18616 s//\1/
18619 s/.*/./; q'`/stamp-h$_am_stamp_count
18622 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18623 $as_echo "$as_me: executing $ac_file commands" >&6;}
18625 esac
18628 case $ac_file$ac_mode in
18629 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18630 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18631 # are listed without --file. Let's play safe and only enable the eval
18632 # if we detect the quoting.
18633 case $CONFIG_FILES in
18634 *\'*) eval set x "$CONFIG_FILES" ;;
18635 *) set x $CONFIG_FILES ;;
18636 esac
18637 shift
18638 for mf
18640 # Strip MF so we end up with the name of the file.
18641 mf=`echo "$mf" | sed -e 's/:.*$//'`
18642 # Check whether this is an Automake generated Makefile or not.
18643 # We used to match only the files named `Makefile.in', but
18644 # some people rename them; so instead we look at the file content.
18645 # Grep'ing the first line is not enough: some people post-process
18646 # each Makefile.in and add a new line on top of each file to say so.
18647 # Grep'ing the whole file is not good either: AIX grep has a line
18648 # limit of 2048, but all sed's we know have understand at least 4000.
18649 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18650 dirpart=`$as_dirname -- "$mf" ||
18651 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18652 X"$mf" : 'X\(//\)[^/]' \| \
18653 X"$mf" : 'X\(//\)$' \| \
18654 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18655 $as_echo X"$mf" |
18656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18657 s//\1/
18660 /^X\(\/\/\)[^/].*/{
18661 s//\1/
18664 /^X\(\/\/\)$/{
18665 s//\1/
18668 /^X\(\/\).*/{
18669 s//\1/
18672 s/.*/./; q'`
18673 else
18674 continue
18676 # Extract the definition of DEPDIR, am__include, and am__quote
18677 # from the Makefile without running `make'.
18678 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18679 test -z "$DEPDIR" && continue
18680 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18681 test -z "am__include" && continue
18682 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18683 # When using ansi2knr, U may be empty or an underscore; expand it
18684 U=`sed -n 's/^U = //p' < "$mf"`
18685 # Find all dependency output files, they are included files with
18686 # $(DEPDIR) in their names. We invoke sed twice because it is the
18687 # simplest approach to changing $(DEPDIR) to its actual value in the
18688 # expansion.
18689 for file in `sed -n "
18690 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18691 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18692 # Make sure the directory exists.
18693 test -f "$dirpart/$file" && continue
18694 fdir=`$as_dirname -- "$file" ||
18695 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18696 X"$file" : 'X\(//\)[^/]' \| \
18697 X"$file" : 'X\(//\)$' \| \
18698 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18699 $as_echo X"$file" |
18700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18701 s//\1/
18704 /^X\(\/\/\)[^/].*/{
18705 s//\1/
18708 /^X\(\/\/\)$/{
18709 s//\1/
18712 /^X\(\/\).*/{
18713 s//\1/
18716 s/.*/./; q'`
18717 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18718 # echo "creating $dirpart/$file"
18719 echo '# dummy' > "$dirpart/$file"
18720 done
18721 done
18724 "libtool":C)
18726 # See if we are running on zsh, and set the options which allow our
18727 # commands through without removal of \ escapes.
18728 if test -n "${ZSH_VERSION+set}" ; then
18729 setopt NO_GLOB_SUBST
18732 cfgfile="${ofile}T"
18733 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18734 $RM "$cfgfile"
18736 cat <<_LT_EOF >> "$cfgfile"
18737 #! $SHELL
18739 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18740 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18741 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18742 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18744 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18745 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18746 # Written by Gordon Matzigkeit, 1996
18748 # This file is part of GNU Libtool.
18750 # GNU Libtool is free software; you can redistribute it and/or
18751 # modify it under the terms of the GNU General Public License as
18752 # published by the Free Software Foundation; either version 2 of
18753 # the License, or (at your option) any later version.
18755 # As a special exception to the GNU General Public License,
18756 # if you distribute this file as part of a program or library that
18757 # is built using GNU Libtool, you may include this file under the
18758 # same distribution terms that you use for the rest of that program.
18760 # GNU Libtool is distributed in the hope that it will be useful,
18761 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18762 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18763 # GNU General Public License for more details.
18765 # You should have received a copy of the GNU General Public License
18766 # along with GNU Libtool; see the file COPYING. If not, a copy
18767 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18768 # obtained by writing to the Free Software Foundation, Inc.,
18769 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18772 # The names of the tagged configurations supported by this script.
18773 available_tags="CXX "
18775 # ### BEGIN LIBTOOL CONFIG
18777 # Which release of libtool.m4 was used?
18778 macro_version=$macro_version
18779 macro_revision=$macro_revision
18781 # Whether or not to build shared libraries.
18782 build_libtool_libs=$enable_shared
18784 # Whether or not to build static libraries.
18785 build_old_libs=$enable_static
18787 # What type of objects to build.
18788 pic_mode=$pic_mode
18790 # Whether or not to optimize for fast installation.
18791 fast_install=$enable_fast_install
18793 # Shell to use when invoking shell scripts.
18794 SHELL=$lt_SHELL
18796 # An echo program that protects backslashes.
18797 ECHO=$lt_ECHO
18799 # The host system.
18800 host_alias=$host_alias
18801 host=$host
18802 host_os=$host_os
18804 # The build system.
18805 build_alias=$build_alias
18806 build=$build
18807 build_os=$build_os
18809 # A sed program that does not truncate output.
18810 SED=$lt_SED
18812 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18813 Xsed="\$SED -e 1s/^X//"
18815 # A grep program that handles long lines.
18816 GREP=$lt_GREP
18818 # An ERE matcher.
18819 EGREP=$lt_EGREP
18821 # A literal string matcher.
18822 FGREP=$lt_FGREP
18824 # A BSD- or MS-compatible name lister.
18825 NM=$lt_NM
18827 # Whether we need soft or hard links.
18828 LN_S=$lt_LN_S
18830 # What is the maximum length of a command?
18831 max_cmd_len=$max_cmd_len
18833 # Object file suffix (normally "o").
18834 objext=$ac_objext
18836 # Executable file suffix (normally "").
18837 exeext=$exeext
18839 # whether the shell understands "unset".
18840 lt_unset=$lt_unset
18842 # turn spaces into newlines.
18843 SP2NL=$lt_lt_SP2NL
18845 # turn newlines into spaces.
18846 NL2SP=$lt_lt_NL2SP
18848 # An object symbol dumper.
18849 OBJDUMP=$lt_OBJDUMP
18851 # Method to check whether dependent libraries are shared objects.
18852 deplibs_check_method=$lt_deplibs_check_method
18854 # Command to use when deplibs_check_method == "file_magic".
18855 file_magic_cmd=$lt_file_magic_cmd
18857 # The archiver.
18858 AR=$lt_AR
18859 AR_FLAGS=$lt_AR_FLAGS
18861 # A symbol stripping program.
18862 STRIP=$lt_STRIP
18864 # Commands used to install an old-style archive.
18865 RANLIB=$lt_RANLIB
18866 old_postinstall_cmds=$lt_old_postinstall_cmds
18867 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18869 # Whether to use a lock for old archive extraction.
18870 lock_old_archive_extraction=$lock_old_archive_extraction
18872 # A C compiler.
18873 LTCC=$lt_CC
18875 # LTCC compiler flags.
18876 LTCFLAGS=$lt_CFLAGS
18878 # Take the output of nm and produce a listing of raw symbols and C names.
18879 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18881 # Transform the output of nm in a proper C declaration.
18882 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18884 # Transform the output of nm in a C name address pair.
18885 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18887 # Transform the output of nm in a C name address pair when lib prefix is needed.
18888 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18890 # The name of the directory that contains temporary libtool files.
18891 objdir=$objdir
18893 # Used to examine libraries when file_magic_cmd begins with "file".
18894 MAGIC_CMD=$MAGIC_CMD
18896 # Must we lock files when doing compilation?
18897 need_locks=$lt_need_locks
18899 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18900 DSYMUTIL=$lt_DSYMUTIL
18902 # Tool to change global to local symbols on Mac OS X.
18903 NMEDIT=$lt_NMEDIT
18905 # Tool to manipulate fat objects and archives on Mac OS X.
18906 LIPO=$lt_LIPO
18908 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18909 OTOOL=$lt_OTOOL
18911 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18912 OTOOL64=$lt_OTOOL64
18914 # Old archive suffix (normally "a").
18915 libext=$libext
18917 # Shared library suffix (normally ".so").
18918 shrext_cmds=$lt_shrext_cmds
18920 # The commands to extract the exported symbol list from a shared archive.
18921 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18923 # Variables whose values should be saved in libtool wrapper scripts and
18924 # restored at link time.
18925 variables_saved_for_relink=$lt_variables_saved_for_relink
18927 # Do we need the "lib" prefix for modules?
18928 need_lib_prefix=$need_lib_prefix
18930 # Do we need a version for libraries?
18931 need_version=$need_version
18933 # Library versioning type.
18934 version_type=$version_type
18936 # Shared library runtime path variable.
18937 runpath_var=$runpath_var
18939 # Shared library path variable.
18940 shlibpath_var=$shlibpath_var
18942 # Is shlibpath searched before the hard-coded library search path?
18943 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18945 # Format of library name prefix.
18946 libname_spec=$lt_libname_spec
18948 # List of archive names. First name is the real one, the rest are links.
18949 # The last name is the one that the linker finds with -lNAME
18950 library_names_spec=$lt_library_names_spec
18952 # The coded name of the library, if different from the real name.
18953 soname_spec=$lt_soname_spec
18955 # Permission mode override for installation of shared libraries.
18956 install_override_mode=$lt_install_override_mode
18958 # Command to use after installation of a shared archive.
18959 postinstall_cmds=$lt_postinstall_cmds
18961 # Command to use after uninstallation of a shared archive.
18962 postuninstall_cmds=$lt_postuninstall_cmds
18964 # Commands used to finish a libtool library installation in a directory.
18965 finish_cmds=$lt_finish_cmds
18967 # As "finish_cmds", except a single script fragment to be evaled but
18968 # not shown.
18969 finish_eval=$lt_finish_eval
18971 # Whether we should hardcode library paths into libraries.
18972 hardcode_into_libs=$hardcode_into_libs
18974 # Compile-time system search path for libraries.
18975 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18977 # Run-time system search path for libraries.
18978 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18980 # Whether dlopen is supported.
18981 dlopen_support=$enable_dlopen
18983 # Whether dlopen of programs is supported.
18984 dlopen_self=$enable_dlopen_self
18986 # Whether dlopen of statically linked programs is supported.
18987 dlopen_self_static=$enable_dlopen_self_static
18989 # Commands to strip libraries.
18990 old_striplib=$lt_old_striplib
18991 striplib=$lt_striplib
18994 # The linker used to build libraries.
18995 LD=$lt_LD
18997 # How to create reloadable object files.
18998 reload_flag=$lt_reload_flag
18999 reload_cmds=$lt_reload_cmds
19001 # Commands used to build an old-style archive.
19002 old_archive_cmds=$lt_old_archive_cmds
19004 # A language specific compiler.
19005 CC=$lt_compiler
19007 # Is the compiler the GNU compiler?
19008 with_gcc=$GCC
19010 # Compiler flag to turn off builtin functions.
19011 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19013 # How to pass a linker flag through the compiler.
19014 wl=$lt_lt_prog_compiler_wl
19016 # Additional compiler flags for building library objects.
19017 pic_flag=$lt_lt_prog_compiler_pic
19019 # Compiler flag to prevent dynamic linking.
19020 link_static_flag=$lt_lt_prog_compiler_static
19022 # Does compiler simultaneously support -c and -o options?
19023 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19025 # Whether or not to add -lc for building shared libraries.
19026 build_libtool_need_lc=$archive_cmds_need_lc
19028 # Whether or not to disallow shared libs when runtime libs are static.
19029 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19031 # Compiler flag to allow reflexive dlopens.
19032 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19034 # Compiler flag to generate shared objects directly from archives.
19035 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19037 # Whether the compiler copes with passing no objects directly.
19038 compiler_needs_object=$lt_compiler_needs_object
19040 # Create an old-style archive from a shared archive.
19041 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19043 # Create a temporary old-style archive to link instead of a shared archive.
19044 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19046 # Commands used to build a shared archive.
19047 archive_cmds=$lt_archive_cmds
19048 archive_expsym_cmds=$lt_archive_expsym_cmds
19050 # Commands used to build a loadable module if different from building
19051 # a shared archive.
19052 module_cmds=$lt_module_cmds
19053 module_expsym_cmds=$lt_module_expsym_cmds
19055 # Whether we are building with GNU ld or not.
19056 with_gnu_ld=$lt_with_gnu_ld
19058 # Flag that allows shared libraries with undefined symbols to be built.
19059 allow_undefined_flag=$lt_allow_undefined_flag
19061 # Flag that enforces no undefined symbols.
19062 no_undefined_flag=$lt_no_undefined_flag
19064 # Flag to hardcode \$libdir into a binary during linking.
19065 # This must work even if \$libdir does not exist
19066 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19068 # If ld is used when linking, flag to hardcode \$libdir into a binary
19069 # during linking. This must work even if \$libdir does not exist.
19070 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19072 # Whether we need a single "-rpath" flag with a separated argument.
19073 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19075 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19076 # DIR into the resulting binary.
19077 hardcode_direct=$hardcode_direct
19079 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19080 # DIR into the resulting binary and the resulting library dependency is
19081 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19082 # library is relocated.
19083 hardcode_direct_absolute=$hardcode_direct_absolute
19085 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19086 # into the resulting binary.
19087 hardcode_minus_L=$hardcode_minus_L
19089 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19090 # into the resulting binary.
19091 hardcode_shlibpath_var=$hardcode_shlibpath_var
19093 # Set to "yes" if building a shared library automatically hardcodes DIR
19094 # into the library and all subsequent libraries and executables linked
19095 # against it.
19096 hardcode_automatic=$hardcode_automatic
19098 # Set to yes if linker adds runtime paths of dependent libraries
19099 # to runtime path list.
19100 inherit_rpath=$inherit_rpath
19102 # Whether libtool must link a program against all its dependency libraries.
19103 link_all_deplibs=$link_all_deplibs
19105 # Fix the shell variable \$srcfile for the compiler.
19106 fix_srcfile_path=$lt_fix_srcfile_path
19108 # Set to "yes" if exported symbols are required.
19109 always_export_symbols=$always_export_symbols
19111 # The commands to list exported symbols.
19112 export_symbols_cmds=$lt_export_symbols_cmds
19114 # Symbols that should not be listed in the preloaded symbols.
19115 exclude_expsyms=$lt_exclude_expsyms
19117 # Symbols that must always be exported.
19118 include_expsyms=$lt_include_expsyms
19120 # Commands necessary for linking programs (against libraries) with templates.
19121 prelink_cmds=$lt_prelink_cmds
19123 # Specify filename containing input files.
19124 file_list_spec=$lt_file_list_spec
19126 # How to hardcode a shared library path into an executable.
19127 hardcode_action=$hardcode_action
19129 # The directories searched by this compiler when creating a shared library.
19130 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19132 # Dependencies to place before and after the objects being linked to
19133 # create a shared library.
19134 predep_objects=$lt_predep_objects
19135 postdep_objects=$lt_postdep_objects
19136 predeps=$lt_predeps
19137 postdeps=$lt_postdeps
19139 # The library search path used internally by the compiler when linking
19140 # a shared library.
19141 compiler_lib_search_path=$lt_compiler_lib_search_path
19143 # ### END LIBTOOL CONFIG
19145 _LT_EOF
19147 case $host_os in
19148 aix3*)
19149 cat <<\_LT_EOF >> "$cfgfile"
19150 # AIX sometimes has problems with the GCC collect2 program. For some
19151 # reason, if we set the COLLECT_NAMES environment variable, the problems
19152 # vanish in a puff of smoke.
19153 if test "X${COLLECT_NAMES+set}" != Xset; then
19154 COLLECT_NAMES=
19155 export COLLECT_NAMES
19157 _LT_EOF
19159 esac
19162 ltmain="$ac_aux_dir/ltmain.sh"
19165 # We use sed instead of cat because bash on DJGPP gets confused if
19166 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19167 # text mode, it properly converts lines to CR/LF. This bash problem
19168 # is reportedly fixed, but why not run on old versions too?
19169 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19170 || (rm -f "$cfgfile"; exit 1)
19172 case $xsi_shell in
19173 yes)
19174 cat << \_LT_EOF >> "$cfgfile"
19176 # func_dirname file append nondir_replacement
19177 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19178 # otherwise set result to NONDIR_REPLACEMENT.
19179 func_dirname ()
19181 case ${1} in
19182 */*) func_dirname_result="${1%/*}${2}" ;;
19183 * ) func_dirname_result="${3}" ;;
19184 esac
19187 # func_basename file
19188 func_basename ()
19190 func_basename_result="${1##*/}"
19193 # func_dirname_and_basename file append nondir_replacement
19194 # perform func_basename and func_dirname in a single function
19195 # call:
19196 # dirname: Compute the dirname of FILE. If nonempty,
19197 # add APPEND to the result, otherwise set result
19198 # to NONDIR_REPLACEMENT.
19199 # value returned in "$func_dirname_result"
19200 # basename: Compute filename of FILE.
19201 # value retuned in "$func_basename_result"
19202 # Implementation must be kept synchronized with func_dirname
19203 # and func_basename. For efficiency, we do not delegate to
19204 # those functions but instead duplicate the functionality here.
19205 func_dirname_and_basename ()
19207 case ${1} in
19208 */*) func_dirname_result="${1%/*}${2}" ;;
19209 * ) func_dirname_result="${3}" ;;
19210 esac
19211 func_basename_result="${1##*/}"
19214 # func_stripname prefix suffix name
19215 # strip PREFIX and SUFFIX off of NAME.
19216 # PREFIX and SUFFIX must not contain globbing or regex special
19217 # characters, hashes, percent signs, but SUFFIX may contain a leading
19218 # dot (in which case that matches only a dot).
19219 func_stripname ()
19221 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19222 # positional parameters, so assign one to ordinary parameter first.
19223 func_stripname_result=${3}
19224 func_stripname_result=${func_stripname_result#"${1}"}
19225 func_stripname_result=${func_stripname_result%"${2}"}
19228 # func_opt_split
19229 func_opt_split ()
19231 func_opt_split_opt=${1%%=*}
19232 func_opt_split_arg=${1#*=}
19235 # func_lo2o object
19236 func_lo2o ()
19238 case ${1} in
19239 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19240 *) func_lo2o_result=${1} ;;
19241 esac
19244 # func_xform libobj-or-source
19245 func_xform ()
19247 func_xform_result=${1%.*}.lo
19250 # func_arith arithmetic-term...
19251 func_arith ()
19253 func_arith_result=$(( $* ))
19256 # func_len string
19257 # STRING may not start with a hyphen.
19258 func_len ()
19260 func_len_result=${#1}
19263 _LT_EOF
19265 *) # Bourne compatible functions.
19266 cat << \_LT_EOF >> "$cfgfile"
19268 # func_dirname file append nondir_replacement
19269 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19270 # otherwise set result to NONDIR_REPLACEMENT.
19271 func_dirname ()
19273 # Extract subdirectory from the argument.
19274 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19275 if test "X$func_dirname_result" = "X${1}"; then
19276 func_dirname_result="${3}"
19277 else
19278 func_dirname_result="$func_dirname_result${2}"
19282 # func_basename file
19283 func_basename ()
19285 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19289 # func_stripname prefix suffix name
19290 # strip PREFIX and SUFFIX off of NAME.
19291 # PREFIX and SUFFIX must not contain globbing or regex special
19292 # characters, hashes, percent signs, but SUFFIX may contain a leading
19293 # dot (in which case that matches only a dot).
19294 # func_strip_suffix prefix name
19295 func_stripname ()
19297 case ${2} in
19298 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19299 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19300 esac
19303 # sed scripts:
19304 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19305 my_sed_long_arg='1s/^-[^=]*=//'
19307 # func_opt_split
19308 func_opt_split ()
19310 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19311 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19314 # func_lo2o object
19315 func_lo2o ()
19317 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19320 # func_xform libobj-or-source
19321 func_xform ()
19323 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19326 # func_arith arithmetic-term...
19327 func_arith ()
19329 func_arith_result=`expr "$@"`
19332 # func_len string
19333 # STRING may not start with a hyphen.
19334 func_len ()
19336 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19339 _LT_EOF
19340 esac
19342 case $lt_shell_append in
19343 yes)
19344 cat << \_LT_EOF >> "$cfgfile"
19346 # func_append var value
19347 # Append VALUE to the end of shell variable VAR.
19348 func_append ()
19350 eval "$1+=\$2"
19352 _LT_EOF
19355 cat << \_LT_EOF >> "$cfgfile"
19357 # func_append var value
19358 # Append VALUE to the end of shell variable VAR.
19359 func_append ()
19361 eval "$1=\$$1\$2"
19364 _LT_EOF
19366 esac
19369 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19370 || (rm -f "$cfgfile"; exit 1)
19372 mv -f "$cfgfile" "$ofile" ||
19373 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19374 chmod +x "$ofile"
19377 cat <<_LT_EOF >> "$ofile"
19379 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19381 # The linker used to build libraries.
19382 LD=$lt_LD_CXX
19384 # How to create reloadable object files.
19385 reload_flag=$lt_reload_flag_CXX
19386 reload_cmds=$lt_reload_cmds_CXX
19388 # Commands used to build an old-style archive.
19389 old_archive_cmds=$lt_old_archive_cmds_CXX
19391 # A language specific compiler.
19392 CC=$lt_compiler_CXX
19394 # Is the compiler the GNU compiler?
19395 with_gcc=$GCC_CXX
19397 # Compiler flag to turn off builtin functions.
19398 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19400 # How to pass a linker flag through the compiler.
19401 wl=$lt_lt_prog_compiler_wl_CXX
19403 # Additional compiler flags for building library objects.
19404 pic_flag=$lt_lt_prog_compiler_pic_CXX
19406 # Compiler flag to prevent dynamic linking.
19407 link_static_flag=$lt_lt_prog_compiler_static_CXX
19409 # Does compiler simultaneously support -c and -o options?
19410 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19412 # Whether or not to add -lc for building shared libraries.
19413 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19415 # Whether or not to disallow shared libs when runtime libs are static.
19416 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19418 # Compiler flag to allow reflexive dlopens.
19419 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19421 # Compiler flag to generate shared objects directly from archives.
19422 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19424 # Whether the compiler copes with passing no objects directly.
19425 compiler_needs_object=$lt_compiler_needs_object_CXX
19427 # Create an old-style archive from a shared archive.
19428 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19430 # Create a temporary old-style archive to link instead of a shared archive.
19431 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19433 # Commands used to build a shared archive.
19434 archive_cmds=$lt_archive_cmds_CXX
19435 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19437 # Commands used to build a loadable module if different from building
19438 # a shared archive.
19439 module_cmds=$lt_module_cmds_CXX
19440 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19442 # Whether we are building with GNU ld or not.
19443 with_gnu_ld=$lt_with_gnu_ld_CXX
19445 # Flag that allows shared libraries with undefined symbols to be built.
19446 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19448 # Flag that enforces no undefined symbols.
19449 no_undefined_flag=$lt_no_undefined_flag_CXX
19451 # Flag to hardcode \$libdir into a binary during linking.
19452 # This must work even if \$libdir does not exist
19453 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19455 # If ld is used when linking, flag to hardcode \$libdir into a binary
19456 # during linking. This must work even if \$libdir does not exist.
19457 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19459 # Whether we need a single "-rpath" flag with a separated argument.
19460 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19462 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19463 # DIR into the resulting binary.
19464 hardcode_direct=$hardcode_direct_CXX
19466 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19467 # DIR into the resulting binary and the resulting library dependency is
19468 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19469 # library is relocated.
19470 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19472 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19473 # into the resulting binary.
19474 hardcode_minus_L=$hardcode_minus_L_CXX
19476 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19477 # into the resulting binary.
19478 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19480 # Set to "yes" if building a shared library automatically hardcodes DIR
19481 # into the library and all subsequent libraries and executables linked
19482 # against it.
19483 hardcode_automatic=$hardcode_automatic_CXX
19485 # Set to yes if linker adds runtime paths of dependent libraries
19486 # to runtime path list.
19487 inherit_rpath=$inherit_rpath_CXX
19489 # Whether libtool must link a program against all its dependency libraries.
19490 link_all_deplibs=$link_all_deplibs_CXX
19492 # Fix the shell variable \$srcfile for the compiler.
19493 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19495 # Set to "yes" if exported symbols are required.
19496 always_export_symbols=$always_export_symbols_CXX
19498 # The commands to list exported symbols.
19499 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19501 # Symbols that should not be listed in the preloaded symbols.
19502 exclude_expsyms=$lt_exclude_expsyms_CXX
19504 # Symbols that must always be exported.
19505 include_expsyms=$lt_include_expsyms_CXX
19507 # Commands necessary for linking programs (against libraries) with templates.
19508 prelink_cmds=$lt_prelink_cmds_CXX
19510 # Specify filename containing input files.
19511 file_list_spec=$lt_file_list_spec_CXX
19513 # How to hardcode a shared library path into an executable.
19514 hardcode_action=$hardcode_action_CXX
19516 # The directories searched by this compiler when creating a shared library.
19517 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19519 # Dependencies to place before and after the objects being linked to
19520 # create a shared library.
19521 predep_objects=$lt_predep_objects_CXX
19522 postdep_objects=$lt_postdep_objects_CXX
19523 predeps=$lt_predeps_CXX
19524 postdeps=$lt_postdeps_CXX
19526 # The library search path used internally by the compiler when linking
19527 # a shared library.
19528 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19530 # ### END LIBTOOL TAG CONFIG: CXX
19531 _LT_EOF
19534 "default-1":C)
19535 for ac_file in $CONFIG_FILES; do
19536 # Support "outfile[:infile[:infile...]]"
19537 case "$ac_file" in
19538 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19539 esac
19540 # PO directories have a Makefile.in generated from Makefile.in.in.
19541 case "$ac_file" in */Makefile.in)
19542 # Adjust a relative srcdir.
19543 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19544 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
19545 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19546 # In autoconf-2.13 it is called $ac_given_srcdir.
19547 # In autoconf-2.50 it is called $srcdir.
19548 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19549 case "$ac_given_srcdir" in
19550 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19551 /*) top_srcdir="$ac_given_srcdir" ;;
19552 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19553 esac
19554 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19555 rm -f "$ac_dir/POTFILES"
19556 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19557 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19558 POMAKEFILEDEPS="POTFILES.in"
19559 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
19560 # on $ac_dir but don't depend on user-specified configuration
19561 # parameters.
19562 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19563 # The LINGUAS file contains the set of available languages.
19564 if test -n "$OBSOLETE_ALL_LINGUAS"; then
19565 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
19567 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19568 # Hide the ALL_LINGUAS assigment from automake.
19569 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19570 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19571 else
19572 # The set of available languages was given in configure.in.
19573 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19575 case "$ac_given_srcdir" in
19576 .) srcdirpre= ;;
19577 *) srcdirpre='$(srcdir)/' ;;
19578 esac
19579 POFILES=
19580 GMOFILES=
19581 UPDATEPOFILES=
19582 DUMMYPOFILES=
19583 for lang in $ALL_LINGUAS; do
19584 POFILES="$POFILES $srcdirpre$lang.po"
19585 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19586 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19587 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19588 done
19589 # CATALOGS depends on both $ac_dir and the user's LINGUAS
19590 # environment variable.
19591 INST_LINGUAS=
19592 if test -n "$ALL_LINGUAS"; then
19593 for presentlang in $ALL_LINGUAS; do
19594 useit=no
19595 if test "%UNSET%" != "$LINGUAS"; then
19596 desiredlanguages="$LINGUAS"
19597 else
19598 desiredlanguages="$ALL_LINGUAS"
19600 for desiredlang in $desiredlanguages; do
19601 # Use the presentlang catalog if desiredlang is
19602 # a. equal to presentlang, or
19603 # b. a variant of presentlang (because in this case,
19604 # presentlang can be used as a fallback for messages
19605 # which are not translated in the desiredlang catalog).
19606 case "$desiredlang" in
19607 "$presentlang"*) useit=yes;;
19608 esac
19609 done
19610 if test $useit = yes; then
19611 INST_LINGUAS="$INST_LINGUAS $presentlang"
19613 done
19615 CATALOGS=
19616 if test -n "$INST_LINGUAS"; then
19617 for lang in $INST_LINGUAS; do
19618 CATALOGS="$CATALOGS $lang.gmo"
19619 done
19621 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19622 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
19623 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19624 if test -f "$f"; then
19625 case "$f" in
19626 *.orig | *.bak | *~) ;;
19627 *) cat "$f" >> "$ac_dir/Makefile" ;;
19628 esac
19630 done
19633 esac
19634 done ;;
19636 esac
19637 done # for ac_tag
19640 as_fn_exit 0
19641 _ACEOF
19642 ac_clean_files=$ac_clean_files_save
19644 test $ac_write_fail = 0 ||
19645 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19648 # configure is writing to config.log, and then calls config.status.
19649 # config.status does its own redirection, appending to config.log.
19650 # Unfortunately, on DOS this fails, as config.log is still kept open
19651 # by configure, so config.status won't be able to write to it; its
19652 # output is simply discarded. So we exec the FD to /dev/null,
19653 # effectively closing config.log, so it can be properly (re)opened and
19654 # appended to by config.status. When coming back to configure, we
19655 # need to make the FD available again.
19656 if test "$no_create" != yes; then
19657 ac_cs_success=:
19658 ac_config_status_args=
19659 test "$silent" = yes &&
19660 ac_config_status_args="$ac_config_status_args --quiet"
19661 exec 5>/dev/null
19662 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19663 exec 5>>config.log
19664 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19665 # would make configure fail if this is the last instruction.
19666 $ac_cs_success || as_fn_exit $?
19668 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19670 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}